A Two-Stage Framework Combining U-Net++ Lung Segmentation and DenseNet121 for Multi-Class Classification from Chest X-Ray
Chest X-rays (CXRs) are widely used to detect lung diseases, but deep learning classifiers may rely on visual cues outside the lungs rather than relevant clinical features. This study evaluates three lung segmentation models (U-Net, U-Net++, and fine-tuned SAM ViT-B) and four ImageNet-pretrained classifiers (DenseNet121, ResNet50, VGG19, and Xception) using the COVID-19 Radiography Database of 21,165 images. U-Net++ achieved the best segmentation performance, while DenseNet121 performed best in classification. Based on these findings, we developed a two-stage framework that uses U-Net++ to segment the lungs and DenseNet121 to classify the extracted regions as COVID-19, Lung Opacity, Normal, or Viral Pneumonia. The framework was tested on unlabeled DICOM radiographs from a diagnostic center without additional fine-tuning. A medical doctor reviewed 15 cases flagged as low-confidence during an earlier run, revealing disagreements in which abnormal cases were classified as Normal, sometimes with very high confidence. Grad-CAM and insertion/deletion curves were used to examine the image regions influencing the model's predictions. These findings demonstrate the feasibility of integrating lung segmentation and disease classification for native DICOM images while highlighting the need for careful clinical validation beyond benchmark performance.
Authors
- Mohammad Shamsul Arefin (ORCID: https://orcid.org/0000-0003-0259-7624)
- Abdur Rahaman (ORCID: https://orcid.org/0009-0008-3789-7022)
- Mohammed Borhan Uddin (ORCID: https://orcid.org/0009-0004-0646-3775)
- Sanjida Tasneem
- Md. Nurul Alam
- Shahariar Nafiz
Institutions
- Chittagong University of Engineering & Technology (BD)
- International Islamic University Chittagong (BD)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-25
- DOI
- https://doi.org/10.21203/rs.3.rs-11759481/v1
- Primary Topic
- COVID-19 diagnosis using AI
- Type
- preprint