Comparative Evaluation of CNN Models for Pneumonia Detection: Addressing Data Imbalance and Enhancing Diagnostic Accuracy

Pneumonia is the leading cause of disease and death worldwide, and chest X-ray (RHG) is often the most accessible diagnostic tool. However, manual interpretation is time-consuming and variable, especially in resource-limited settings. Deep convolutional neural networks (CNNs) with transfer learning can support automated selection, but performance may decrease due to class imbalances and dataset-specific artifacts. This study compares three pre-trained CNNs— VGG16, ResNet50, and DenseNet121 - using the publicly available Kaggle pneumonia CXR dataset. The images were resized to 224 × 224 pixels, normalized and augmented using safe transformations (horizontal shifts, small rotations). Cross-entropy, weighted by classes, eliminated the imbalance, and the models were refined using frozen early layers. The effectiveness was evaluated using accuracy, F1 score, sensitivity, AUC ROC, and Grad-CAM to ensure interpretability. DenseNet121 achieved the best balance of sensitivity and specificity through anatomically consistent Grad-CAM imaging. Class weighting reduced the number of false negative results while maintaining clinical sensitivity. The resulting prototype based on DenseNet121 (Streamlit + Grad-CAM) demonstrates the promise of automated pneumonia screening in training and preclinical support, especially in resource-limited settings.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-12-27
DOI
https://doi.org/10.5281/zenodo.18067326
Primary Topic
COVID-19 diagnosis using AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative Evaluation of CNN Models for Pneumonia Detection: Addressing Data Imbalance and Enhancing Diagnostic Accuracy

А. А. Seitova, Kamilla Mukhtarova, Dariga Mussa, Aizada Yezhibayeva et al.
Zenodo (CERN European Organization for Nuclear Research)
COVID-19 diagnosis using AI
article

Comparative Evaluation of CNN Models for Pneumonia Detection: Addressing Data Imbalance and Enhancing Diagnostic Accuracy

А. А. Seitova, Kamilla Mukhtarova, Dariga Mussa, Aizada Yezhibayeva, Ali Beisen
article en

Abstract

Pneumonia is the leading cause of disease and death worldwide, and chest X-ray (RHG) is often the most accessible diagnostic tool. However, manual interpretation is time-consuming and variable, especially in resource-limited settings. Deep convolutional neural networks (CNNs) with transfer learning can support automated selection, but performance may decrease due to class imbalances and dataset-specific artifacts. This study compares three pre-trained CNNs— VGG16, ResNet50, and DenseNet121 - using the publicly available Kaggle pneumonia CXR dataset. The images were resized to 224 × 224 pixels, normalized and augmented using safe transformations (horizontal shifts, small rotations). Cross-entropy, weighted by classes, eliminated the imbalance, and the models were refined using frozen early layers. The effectiveness was evaluated using accuracy, F1 score, sensitivity, AUC ROC, and Grad-CAM to ensure interpretability. DenseNet121 achieved the best balance of sensitivity and specificity through anatomically consistent Grad-CAM imaging. Class weighting reduced the number of false negative results while maintaining clinical sensitivity. The resulting prototype based on DenseNet121 (Streamlit + Grad-CAM) demonstrates the promise of automated pneumonia screening in training and preclinical support, especially in resource-limited settings.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 30%
COVID-19 diagnosis using AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Comparative Evaluation of CNN Models for Pneumonia Detection: Addressing Data Imbalance and Enhancing Diagnostic Accuracy — А. А. Seitova, Kamilla Mukhtarova, et al. · Zenodo (CERN European Organization for Nuclear Research) (2025) | TGRS Research Map | TGRS