AUTOMATED DIAGNOSIS OF LUNG DISEASES USING VISION TRANSFORMER: A COMPARATIVE STUDY ON CHEST X-RAY CLASSIFICATION
Main Article Content
Keywords
Lung disease, Covid-19, chest X-ray, Deep learning, ViT, medical issue, Lung disease, Covid-19, chest X-ray, Deep learning, ViT, medical issue
Abstract
Background: Lung disease is a significant health issue, particularly in children and elderly individuals. It often results from lung infections and is one of the leading causes of mortality in children. Globally, lung-related diseases claim many lives each year, making early and accurate diagnoses crucial. Radiographs are valuable tools for the diagnosis of such conditions. The most prevalent lung diseases, including pneumonia, asthma, allergies, chronic obstructive pulmonary disease (COPD), bronchitis, emphysema, and lung cancer, represent significant public health challenges. Early prediction of these conditions is critical, as it allows for the identification of risk factors and implementation of preventive measures to reduce the likelihood of disease onset
Methods: In this study, we utilized a dataset comprising 3,475 chest X-ray images sourced from from Mendeley Data provided by Talukder, M. A. (2023) [14], categorized into three classes: normal, lung opacity, and pneumonia. We applied five pre-trained deep learning models, including CNN, ResNet50, DenseNet, CheXNet, and U-Net, as well as two transfer learning algorithms such as Vision Transformer (ViT) and Shifted Window (Swin) to classify these images. This approach aims to address diagnostic issues in lung abnormalities by reducing reliance on human intervention through automated classification systems. Our analysis was conducted in both binary and multiclass settings.
Results: In the binary classification, we focused on distinguishing between normal and viral pneumonia cases, whereas in the multi-class classification, all three classes (normal, lung opacity, and viral pneumonia) were included. Our proposed methodology (ViT) achieved remarkable performance, with accuracy rates of 99% for binary classification and 95.25% for multiclass classification.
References
2. Imran, A. Training a CNN to detect Pneumonia. 2019. Available online: https://medium.com/datadriveninvestor/training-a-cnn-to- detect-pneumonia-c42a44101deb (accessed on 23 December 2019).
3. R.T. Sausa, O. Marques, F.A.A.M.N. Soares. Et al., Comparative Performance Analysis of Machine Learning Classifiers in Detection of Childhood Pneumonia Using Chest Radiographs, Procedia Computer Science 18 (2013) 2579–2582, doi:10.1016/j.procs.2013.05.444.
4. Dev Kumar Das, Madhumala Ghosh, Mallika Pal, Asok K Maiti, and Chandan Chakraborty. 2013. Machine learning approach for automated screening of malaria parasite using light microscopic images. Micron 45 (2013), 97106.
5. MahdiehPoostchi,KamolratSilamut,RichardMaude,StefanJaeger,and George Thoma. 2018. Image analysis and machine learning for detecting malaria. Translational Research (2018).
6. Nicholas E Ross, Charles J Pritchard, David M Rubin, and Adriano G Duse. 2006. Automated image processing method for the diagnosis and classification of malaria on thin blood smears. Medical and Biological Engineering and Computing 44, 5 (2006), 427436.
7. Ali Sharif Razavian, Hossein Azizpour, Josephine Sullivan, and Stefan Carlsson. 2014. CNN features off-the-shelf: an astounding baseline for recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops. 806813.
8. Nijhawan, Rahul, Rose Verma, Shashank Bhushan, Rajat Dua, and Ankush Mittal. ”An Integrated Deep Learning Framework Approach for Nail Disease Identification.” In Signal-Image Technology and InternetBased Systems (SITIS), 2017 13th International Conference on, pp. 197202. IEEE, 2017.
9. Jaiswal, A. K., Tiwari, P., Kumar, S., Gupta, D., Khanna, A., & Rodrigues, J. J. (2019). Identifying pneumonia in chest X-rays: A deep learning approach. Measurement, 145, 511-518.
10. Gayathri, J. L., Abraham, B., Sujarani, M. S., & Nair, M. S. (2022). A computer-aided diagnosis system for the classification of COVID-19 and non-COVID-19 pneumonia on chest X-ray images by integrating CNN with sparse autoencoder and feed forward neural network. Computers in biology and medicine, 141, 105134.
11. Lin, M., Hou, B., Mishra, S., Yao, T., Huo, Y., Yang, Q., ... & Peng, Y. (2023). Enhancing thoracic disease detection using chest X-rays from PubMed Central Open Access. Computers in biology and medicine, 159, 106962.
12. Ortiz-Toro, C., Garcia-Pedrero, A., Lillo-Saavedra, M., & Gonzalo-Martin, C. (2022). Automatic detection of pneumonia in chest X-ray images using textural features. Computers in biology and medicine, 145, 105466.
13. Hwang, E. J., Nam, J. G., Lim, W. H., Park, S. J., Jeong, Y. S., Kang, J. H., ... & Park, C. M. (2019). Deep learning for chest radiograph diagnosis in the emergency department. Radiology, 293(3), 573-580.
14. Talukder, M. A. "Lung X-Ray Image." Mendeley Data, Oct 24 (2023).
15. Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition. 770778.
16. Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. 2017. Densely Connected Convolutional Networks.. In CVPR, Vol. 1. 3.
17. P. Rajpurkar, J. Irvin, K. Zhu, B. Yang, H. Mehta, T. Duan, D. Ding, A. Bagul, C. Langlotz, K. Shpanskaya, M. P. Lungren, and A. Y. Ng, ‘‘CheXNet: Radiologist-level pneumonia detection on chest X-rays with deep learning,’’ 2017, arXiv:1711.05225. [Online].
18. Rahimzadeh, Mohammad, and Abolfazl Attar. "A modified deep convolutional neural network for detecting COVID-19 and pneumonia from chest X-ray images based on the concatenation of Xception and ResNet50V2." Informatics in medicine unlocked 19 (2020): 100360.
19. Rajpurkar, Pranav, et al. "Chexnet: Radiologist-level pneumonia detection on chest x-rays with deep learning." arXiv preprint arXiv:1711.05225 (2017).
20. Janizek, Joseph D., et al. "An adversarial approach for the robust classification of pneumonia from chest radiographs." Proceedings of the ACM conference on health, inference, and learning. 2020.
21. Gabruseva, Tatiana, Dmytro Poplavskiy, and Alexandr Kalinin. "Deep learning for automatic pneumonia detection." Proceedings of the IEEE/CVF conference on computer vision and pattern recognition workshops. 2020.
22. Farag, Abdullah Tarek, et al. "MultiCheXNet: A Multi-Task Learning Deep Network For Pneumonia-like Diseases Diagnosis From X-ray Scans." arXiv preprint arXiv:2008.01973 (2020).
23. Ali, Wardah, et al. "Pneumonia detection in chest X-ray images: Handling class imbalance." arXiv preprint arXiv:2301.08479 (2023).
24. Liu, Xiaoyi, Zhou Yu, and Lianghao Tan. "Deep Learning for Lung Disease Classification Using Transfer Learning and a Customized CNN Architecture with Attention." arXiv preprint arXiv:2408.13180 (2024).
25. Karla, Raghuram, and Radhika Yalavarthi. "A Hybrid RNN-based Deep Learning Model for Lung Cancer and COPD Detection." Engineering, Technology & Applied Science Research 14.5 (2024): 16847-16853.