[Paper Review] Pneumonia Detection in Chest X-Ray Images : Handling Class Imbalance
This paper proposes a novel deep learning framework for pneumonia detection in chest X-rays that addresses severe class imbalance using a hybrid GAN approach—combining DCGAN and WGAN-GP for minority class (pneumonia) data augmentation, and random under-sampling for the majority class (no findings). The method achieves state-of-the-art accuracy of 99.4% on the ChestX-Ray8 dataset using transfer learning with ResNet-50, VGG-16, and Xception models.
People all over the globe are affected by pneumonia but deaths due to it are highest in Sub-Saharan Asia and South Asia. In recent years, the overall incidence and mortality rate of pneumonia regardless of the utilization of effective vaccines and compelling antibiotics has escalated. Thus, pneumonia remains a disease that needs spry prevention and treatment. The widespread prevalence of pneumonia has caused the research community to come up with a framework that helps detect, diagnose and analyze diseases accurately and promptly. One of the major hurdles faced by the Artificial Intelligence (AI) research community is the lack of publicly available datasets for chest diseases, including pneumonia . Secondly, few of the available datasets are highly imbalanced (normal examples are over sampled, while samples with ailment are in severe minority) making the problem even more challenging. In this article we present a novel framework for the detection of pneumonia. The novelty of the proposed methodology lies in the tackling of class imbalance problem. The Generative Adversarial Network (GAN), specifically a combination of Deep Convolutional Generative Adversarial Network (DCGAN) and Wasserstein GAN gradient penalty (WGAN-GP) was applied on the minority class ``Pneumonia'' for augmentation, whereas Random Under-Sampling (RUS) was done on the majority class ``No Findings'' to deal with the imbalance problem. The ChestX-Ray8 dataset, one of the biggest datasets, is used to validate the performance of the proposed framework. The learning phase is completed using transfer learning on state-of-the-art deep learning models i.e. ResNet-50, Xception, and VGG-16. Results obtained exceed state-of-the-art.
Motivation & Objective
- To address the severe class imbalance in pneumonia detection datasets, where normal (no findings) cases vastly outnumber pneumonia cases.
- To improve the performance of deep learning models in detecting pneumonia from chest X-ray images by generating realistic synthetic minority-class samples.
- To validate the proposed framework on the large-scale ChestX-Ray8 dataset, which is publicly available but highly imbalanced.
- To surpass existing state-of-the-art accuracy in pneumonia detection using a combination of GAN-based augmentation and transfer learning.
- To explore the feasibility of explainable AI and ensemble models for future improvements in diagnostic reliability.
Proposed method
- A hybrid generative model combines Deep Convolutional GAN (DCGAN) and Wasserstein GAN with gradient penalty (WGAN-GP) to generate realistic synthetic chest X-ray images for the minority pneumonia class.
- Random Under-Sampling (RUS) is applied to the majority class (no findings) to balance the dataset and reduce training bias.
- The balanced dataset is used to fine-tune three state-of-the-art CNN architectures—ResNet-50, VGG-16, and Xception—via transfer learning.
- Model training is evaluated using standard metrics including accuracy, sensitivity, and loss curves to monitor overfitting and convergence.
- The framework leverages the feature extraction capabilities of pre-trained models to improve generalization on limited medical imaging data.
- Hyperparameter tuning and early stopping are used to optimize training stability and performance across all models.
Experimental results
Research questions
- RQ1Can a hybrid GAN framework combining DCGAN and WGAN-GP effectively augment minority-class pneumonia X-ray images to improve model generalization?
- RQ2Does combining GAN-based data generation with random under-sampling of the majority class lead to better performance than standard training on imbalanced datasets?
- RQ3How does the proposed framework compare to existing state-of-the-art models in terms of accuracy and robustness on the ChestX-Ray8 dataset?
- RQ4To what extent do transfer learning and hybrid data augmentation reduce overfitting and improve sensitivity in pneumonia detection?
- RQ5Can the proposed method be extended to other medical imaging tasks with similar class imbalance issues?
Key findings
- The proposed framework achieved a maximum accuracy of 99.4% on the ChestX-Ray8 dataset, significantly exceeding previous state-of-the-art results.
- The VGG-16 model trained with the proposed augmentation and sampling strategy showed the highest performance, outperforming models trained with standard data splits.
- The combination of DCGAN and WGAN-GP generated high-fidelity pneumonia X-ray images that improved model generalization and reduced overfitting.
- Validation loss curves indicated stable training with minimal overfitting, especially in the VGG-16 and Xception models.
- The method demonstrated robustness across multiple architectures, with ResNet-50 and Xception also achieving over 90% accuracy.
- The results suggest that hybrid GAN-based data augmentation is more effective than traditional oversampling or undersampling alone in handling extreme class imbalance in medical imaging.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.