Efficient and Accurate Pneumonia Detection Using a Novel Multi-Scale Transformer Approach
Pneumonia, a prevalent respiratory infection, remains a leading cause of morbidity and mortality worldwide, particularly among vulnerable populations. Chest X-rays serve as a primary tool for pneumonia detection; however, variations in imaging conditions and subtle visual indicators complicate consistent interpretation. Automated tools can enhance traditional methods by improving diagnostic reliability and supporting clinical decision-making. In this study, we propose a novel multi-scale transformer approach for pneumonia detection that integrates lung segmentation and classification into a unified framework. Our method introduces a lightweight transformer-enhanced TransUNet for precise lung segmentation, achieving a Dice score of 95.68% on the "Chest X-ray Masks and Labels" dataset with fewer parameters than traditional transformers. For classification, we employ pre-trained ResNet models (ResNet-50 and ResNet-101) to extract multi-scale feature maps, which are then processed through a convolutional Residual Attention Module and a modified transformer module to enhance pneumonia detection. This integration of multi-scale feature extraction and lightweight attention mechanisms ensures robust performance, making our method suitable for resource-constrained clinical environments. Our approach achieves 93.75% accuracy on the "Kermany" dataset and 96.04% accuracy on the "Cohen" dataset, outperforming existing methods while maintaining computational efficiency.
Authors
- Saideh Ferdowsi (ORCID: https://orcid.org/0000-0002-8887-0339)
- Mansoor Fateh (ORCID: https://orcid.org/0000-0003-2133-3480)
- Amirreza Fateh (ORCID: https://orcid.org/0000-0001-9894-9131)
- Pouria Parhami
- Alireza Saber (ORCID: https://orcid.org/0009-0005-0926-4648)
- Alimohammad Siahkarzadeh
Institutions
- University of Essex (GB)
- University of Shahrood (IR)
- Iran University of Science and Technology (IR)
Publication Details
- Journal
- Sensors
- Published
- 2025-11-27
- DOI
- https://doi.org/10.3390/s25237233
- Citations
- 3
- Primary Topic
- COVID-19 diagnosis using AI
- Type
- article
- Field-Weighted Citation Impact
- 4.08