Abstract
Lung diseases are a major global health concern, requiring rapid and accurate diagnostic tools. This paper introduces MobileNet-Lung, a customized convolutional neural network (CNN) designed to classify chest X-ray images into three categories: Normal, Lung Opacity, and Viral Pneumonia. By integrating a Squeeze-and-Excitation (SE) attention mechanism into a fine-tuned MobileNetV2 backbone, the proposed model achieves a classification accuracy of 93.3%. This approach balances high diagnostic performance with computational efficiency, making it suitable for resource-constrained clinical environments.
Introduction
Chest X-rays are fundamental in diagnosing pulmonary conditions. However, the increasing volume of medical imaging data places a significant burden on radiologists. Subtle visual differences between conditions like viral pneumonia and non-pneumonia lung opacities further complicate manual diagnosis.
Computer-aided diagnosis (CAD) systems offer a solution, but they must be both accurate and computationally efficient to be practical in diverse healthcare settings.
Methodology
The researchers developed the MobileNet-Lung architecture through a systematic three-stage process:
- Baseline Selection: Five standard architectures (SqueezeNet, VGG11, ResNet18, DenseNet, and MobileNetV2) were evaluated using transfer learning. MobileNetV2 was selected as the optimal base due to its high initial accuracy (88.5%) and low parameter count (3.5 million).
- Fine-Tuning (MobileNet-FT): The model was fully unfrozen and trained on the target lung dataset, allowing the weights to adapt to specific medical features, which increased accuracy to 92.5%.
- Attention Integration: A Squeeze-and-Excitation (SE) block was added after the initial convolutional layer. This block uses a "squeeze" step (global average pooling) and an "excitation" step (sigmoid gating) to recalibrate channel-wise feature responses. This allows the network to focus on the most pathologically relevant regions of the X-ray.
Dataset and Experimental Setup
The study utilized a public benchmark dataset of 3,475 chest X-ray images, categorized into Normal (1,250), Lung Opacity (1,125), and Viral Pneumonia (1,100).
Data was split into training (80%), validation (10%), and testing (10%) sets. Standard data augmentation techniques, such as rotations and flips, were employed to enhance model generalization.
Results and Discussion
The MobileNet-Lung model outperformed all baseline and intermediate models across key performance metrics.
| Model | Accuracy | Precision | Recall | F1-Score |
|---|---|---|---|---|
| SqueezeNet | 0.6400 | 0.7189 | 0.6400 | 0.5565 |
| MobileNetV2 (Base) | 0.8853 | 0.8864 | 0.8853 | 0.8857 |
| MobileNet-FT | 0.9253 | 0.9281 | 0.9253 | 0.9248 |
| MobileNet-Lung (Ours) | 0.9333 | 0.9337 | 0.9333 | 0.9332 |
The results demonstrate that the addition of the SE attention block provides a significant performance boost (~1% over fine-tuning alone) without substantially increasing the model's footprint. While the attention-enhanced model requires more training epochs to converge (~33 vs. ~23), the gain in diagnostic precision justifies the additional training time.
Conclusion
MobileNet-Lung provides a robust and efficient framework for automated lung disease classification. By leveraging transfer learning and channel-wise attention, the model achieves high accuracy while remaining lightweight enough for deployment on standard clinical hardware. Future research will focus on expanding the dataset size and including a broader range of conditions, such as COVID-19 and tuberculosis.
Summary updated