Deep Learning for Lung Disease Classification Using Transfer Learning and a Customized CNN Architecture with Attention
Preprint
Abstract
Many people die from lung-related diseases every year. X-ray is an effective way to test if one is diagnosed with a lung-related disease or not. This study concentrates on categorizing three distinct types of lung X-rays: those depicting healthy lungs, those showing lung opacities, and those indicative of viral pneumonia. Accurately diagnosing the disease at an early phase is critical. In this paper, five different pre-trained models will be tested on the Lung X-ray Image Dataset. SqueezeNet, VGG11, ResNet18, DenseNet, and MobileNetV2 achieved accuracies of 0.64, 0.85, 0.87, 0.88, and 0.885, respectively. MobileNetV2, as the best-performing pre-trained model, will then be further analyzed as the base model. Eventually, our own model, MobileNet-Lung based on MobileNetV2, with fine-tuning and an additional layer of attention within feature layers, was invented to tackle the lung disease classification task and achieved an accuracy of 0.933. This result is significantly improved compared with all five pre-trained models.Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- GM-DF: Generalized Multi-Scenario Deepfake Detection2025
- Advanced Payment Security System: XGBoost, LightGBM and SMOTE Integrated2024
- Credit Card Fraud Detection Using Advanced Transformer Model2024
- A Vehicle Classification Method Based on Machine Learning2024
- Research on Autonomous Robots Navigation based on Reinforcement Learning2024
- Enhanced Detection Classification via Clustering SVM for Various Robot Collaboration Task2024
- Real-Time Pill Identification for the Visually Impaired Using Deep Learning2024
- Detection of Lung Opacity and Treatment Planning with Three-Channel Fusion CNN ModelArabian Journal for Science and Engineering, 2023
- A review on the attention mechanism of deep learningNeurocomputing, 2021
- Radiological, epidemiological and clinical patterns of pulmonary viral infectionsEuropean Journal of Radiology, 2021