# Automated diagnosis of lung diseases using vision transformer: a comparative study on chest x-ray classification

arXiv: https://arxiv.org/abs/2503.18973 · HTML: https://mlsanity.com/paper/2503.18973/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 10 of its 38 references that are in the map.
- First posted on arXiv 22 Mar 2025.

## Builds on (most cited first, 10 of 10)

- [Deep Residual Learning for Image Recognition](https://mlsanity.com/paper/1512.03385/) (2015)
- [Densely Connected Convolutional Networks](https://mlsanity.com/paper/1608.06993/) (2016)
- [CheXNet: Radiologist-Level Pneumonia Detection on Chest X-Rays with Deep Learning](https://mlsanity.com/paper/1711.05225/) (2017)
- [CNN Features off-the-shelf: an Astounding Baseline for Recognition](https://mlsanity.com/paper/1403.6382/) (2014)
- [Deep Learning for Automatic Pneumonia Detection](https://mlsanity.com/paper/2005.13899/) (2020)
- [An Adversarial Approach for the Robust Classification of Pneumonia from Chest Radiographs](https://mlsanity.com/paper/2001.04051/) (2020)
- [Deep Learning for Lung Disease Classification Using Transfer Learning and a Customized CNN Architecture with Attention](https://mlsanity.com/paper/2408.13180/) (2024)
- [Pneumonia Detection in Chest X-Ray Images : Handling Class Imbalance](https://mlsanity.com/paper/2301.08479/) (2023)
- [Utilizing deep learning models for the identification of enhancers and super-enhancers based on genomic and epigenomic features](https://mlsanity.com/paper/2401.07470/) (2024)
- [MultiCheXNet: A Multi-Task Learning Deep Network For Pneumonia-like Diseases Diagnosis From X-ray Scans](https://mlsanity.com/paper/2008.01973/) (2020)

## Abstract (arXiv)

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.
