Multi-Class Lung Disease Detection Using Attention-Based Deep Learning on Chest X-Ray Images
Keywords:
Attention mechanism, Chest X-ray, Deep learning, Grad-CAM, Hierarchical classification, Lung disease detection, Medical imaging, U-NetAbstract
The increasing prevalence of respiratory diseases such as COVID-19, pneumonia, and tuberculosis has significantly impacted global healthcare systems, necessitating the development of efficient, automated diagnostic solutions. Chest X-ray (CXR) imaging is one of the most widely used diagnostic tools due to its affordability, accessibility, and rapid acquisition. However, accurate multi-class classification of lung diseases remains a challenging problem because of overlapping radiographic features and variations in image quality. This paper proposes a comprehensive deep learning-based framework for multi-class lung disease detection using attention mechanisms and hierarchical classification. The proposed system integrates lung region segmentation using a U-Net architecture to isolate relevant anatomical structures and remove background noise. An attention-enhanced convolutional neural network (CNN) is employed to extract discriminative features, focusing on disease-specific regions within the lungs. Furthermore, a hierarchical classification strategy is adopted to first distinguish between normal and abnormal cases, followed by fine-grained classification of specific lung diseases. To improve model interpretability, Grad- CAM visualization is incorporated to highlight the regions influencing the model’s predictions. Experimental results demonstrate that the proposed system significantly improves classification accuracy, reduces misclassification among similar diseases, and enhances interpretability. The framework offers a reliable and efficient computer-aided diagnosis system that can support radiologists in clinical decision-making.
References
S. Dardouri, “A deep convolutional neural network model for lung disease detection using chest X-ray imaging,” Pulmonary Medicine, vol. 2025, no. 1, Art. no. 6614016, 2025.
R. Kumar, C.-T. Pan, Y.-M. Lin, Y.-L. S. Shih, T.-S. Chung, and U. G. Janesha, “Enhanced multi-model deep learning for rapid and precise diagnosis of pulmonary diseases using chest X-ray imaging,” Diagnostics, vol. 15, no. 3, Art. no. 248, Jan. 2025.
G. D. Deepak and S. K. Bhat, “A multi-stage deep learning approach for comprehensive lung disease classification from X-ray images,” Expert Systems with Applications, vol. 277, Art. no. 127220, Jun. 2025.
T. Meeradevi, S. Sasikala, L. Murali, N. Manikandan, and K. Ramaswamy, “Lung cancer detection with machine learning classifiers with multi-attribute decision-making system and deep learning model,” Scientific Reports, vol. 15, no. 1, Art. no. 8565, Mar. 2025.
C. Usman, S. U. Rehman, A. Ali, A. M. Khan, and B. Ahmad, “Pneumonia disease detection using chest X-rays and machine learning,” Algorithms, vol. 18, no. 2, Art. no. 82, Feb. 2025.
S. Kaur, S. Gupta, D. Gupta, S. Juneja, A. Nauman, M. Khan, I. Husain, A. Islam, and S. Mallik, “High-accuracy lung disease classification via logistic regression and advanced feature extraction techniques,” Egyptian Informatics Journal, vol. 29, Art. no. 100596, Mar. 2025.
Y. Huang and Z. Meng, “Highly accurate four-class prediction of lung diseases from chest X-ray images based on EfficientNetV2,” Biomedical Signal Processing and Control, vol. 120, Art. no. 110238, Jul. 2026.
A. Sulaiman, V. Anand, S. Gupta, Y. Asiri, M. A. Elmagzoub, M. S. Reshan, and A. Shaikh, “A convolutional neural network architecture for segmentation of lung diseases using chest X-ray images,” Diagnostics, vol. 13, no. 9, Art. no. 1651, May 2023.
Y. H. Bhosale and K. S. Patnaik, “PulDi-COVID: Chronic obstructive pulmonary (lung) diseases with COVID-19 classification using ensemble deep convolutional neural network from chest X-ray images to minimize severity and mortality rates,” Biomedical Signal Processing and Control, vol. 81, art. no. 104445, Mar. 2023.
G. M. Alshmrani, Q. Ni, R. Jiang, H. Pervaiz, and N. M. Elshennawy, “A deep learning architecture for multi-class lung diseases classification using chest X-ray (CXR) images,” Alexandria Engineering Journal, vol. 64, pp. 923–935, Feb. 2023.
F. J. Shamrat, S. Azam, A. Karim, R. Islam, Z. Tasnim, P. Ghosh, and F. De Boer, “LungNet22: A fine-tuned model for multiclass classification and prediction of lung disease using X-ray images,” Journal of Personalized Medicine, vol. 12, no. 5, Art. no. 680, Apr. 2022.
A. Souid, N. Sakli, and H. Sakli, “Classification and predictions of lung diseases from chest X-rays using MobileNetV2,” Applied Sciences, vol. 11, no. 6, art. no. 2751, Mar. 2021.
P. Vieira, O. Sousa, D. Magalhães, R. Rabêlo, and R. Silva, “Detecting pulmonary diseases using deep features in X-ray images,” Pattern Recognition, vol. 119, art. no. 108081, Nov. 2021.
D. Zhang, F. Ren, Y. Li, L. Na, and Y. Ma, “Pneumonia detection from chest X-ray images based on a convolutional neural network,” Electronics, vol. 10, no. 13, art. no. 1512, Jun. 2021.
T. Rahman, A. Khandakar, Y. Qiblawey, A. Tahir, S. Kiranyaz, S. B. Kashem, M. T. Islam, S. Al Maadeed, S. M. Zughaier, M. S. Khan, and M. E. H. Chowdhury, “Exploring the effect of image enhancement techniques on COVID-19 detection using chest X-ray images,” Computers in Biology and Medicine, vol. 132, art. no. 104319, May 2021.
S. Bharati, P. Podder, and M. R. Mondal, “Hybrid deep learning for detecting lung diseases from X-ray images,” Informatics in Medicine Unlocked, vol. 20, art. no. 100391, 2020.
K. C. Chen, H. R. Yu, W. S. Chen, W. C. Lin, Y. C. Lee, H. H. Chen, J. H. Jiang, T. Y. Su, C. K. Tsai, T. A. Tsai, and C. M. Tsai, “Diagnosis of common pulmonary diseases in children by X-ray images and deep learning,” Scientific Reports, vol. 10, no. 1, art. no. 17374, oct. 2020.
S. Hassantabar, M. Ahmadi, and A. Sharifi, “Diagnosis and detection of infected tissue of COVID-19 patients based on lung X-ray image using convolutional neural network approaches,” Chaos, Solitons and Fractals, vol. 140, art. no. 110170, Nov. 2020.
D. Verma, C. Bose, N. Tufchi, K. Pant, V. Tripathi, and A. Thapliyal, “An efficient framework for identification of tuberculosis and pneumonia in chest X-ray images using neural network,” Procedia Computer Science, vol. 171, pp. 217–224, 2020.