Skip to content
Open access

Comparative Analysis of Image Augmentation and Class Weighting on ResNet50-CBAM for Pneumonia Detection from Chest X-Ray Images

Aug 2026 · Indonesian Journal of Electronics Electromedical Engineering and Medical Informatics · 0 citations · 25 references

TL;DR

It is demonstrated that integrating image augmentation and class weighting within the ResNet50-CBAM framework effectively mitigates class imbalance and improves the reliability of automated pneumonia classification.

Abstract

Pneumonia remains one of the leading causes of morbidity and mortality worldwide, particularly among children, older adults, and immunocompromised individuals. Although chest X-ray (CXR) imaging is widely used for pneumonia diagnosis, manual interpretation is time-consuming, subjective, and highly dependent on radiologist expertise. Deep learning has shown promising performance for automated pneumonia classification; however, class imbalance remains a major challenge that can lead to biased predictions and reduced model generalization. Therefore, this study investigates the effectiveness of image augmentation and class weighting for handling class imbalance in pneumonia classification using chest X-ray images. The main contribution of this study is a systematic comparison of four experimental scenarios: Baseline, Augmentation Only, Class Weighting Only, and Hybrid (Image Augmentation and Class Weighting) implemented on a ResNet50 architecture integrated with the Convolutional Block Attention Module (CBAM). Experiments were conducted using the publicly available Chest X-Ray Images (Pneumonia) dataset from Kaggle, comprising 1,583 Normal and 4,273 Pneumonia images. Model performance was evaluated using Accuracy, ROC-AUC, Precision, Recall, F1-Score, confusion matrix analysis, and Youden’s J-Statistic for threshold optimization. The Hybrid model achieved the best overall performance, with an Accuracy of 95.74%, a ROC-AUC of 98.83%, a Macro Precision of 96.01%, a Macro Recall of 93.13%, and a Macro F1-Score of 94.44%. Moreover, the number of false negative predictions decreased from 25 in the Baseline model to 5 in the Hybrid model. These findings demonstrate that integrating image augmentation and class weighting within the ResNet50-CBAM framework effectively mitigates class imbalance and improves the reliability of automated pneumonia classification.

Read PDF

Similar papers

Open access Sep 2026

COMPARISON OF PERFORMANCE AND COMPUTATIONAL COMPLEXITY OF CNN AND RESNET50 FOR PNEUMONIA CLASSIFICATION

This study aims to compare the classification performance and computational complexity of a CNN and a pre-trained ResNet50 model using transfer learning for binary pneumonia classification on chest X-ray images and shows that the CNN outperforms the ResNet50 across all classification metrics.

Tam Pran Noto Noto, Supatman Supatman · 0 citations
Sep 2026

A Deep Ensemble Transfer Learning for Pneumonia Detection from Chest X-Ray Images to Improve Health Outcome

Pneumonia is a serious respiratory issue that requires timely and accurate diagnosis to reduce the mortality rate. Chest X-ray images are a common diagnostic tool for pneumonia assessment. Early detection of pneumonia is crucial for prompt treatment and improved patient outcomes. The conventional diagnosis of pneumonia...

M. Das · 0 citations
Review Open access Sep 2026

SE-ResNet18: Attention-Enhanced Deep Learning for Multi-Class Classification of Tuberculosis and Pneumonia from Chest X-ray Images

Tuberculosis and pneumonia are major causes of respiratory mortality worldwide, requiring accurate and timely diagnosis. This study proposes SE-ResNet18, an attention-enhanced deep learning model for multi-class classification of chest X-ray images into Normal, Pneumonia, Tuberculosis, and Unknown categories. The model...

Hind Ayad Majeed Alkakjea, Erdal Özbay · 0 citations
Open access 2026

An Attention-Enhanced Hybrid Deep Learning Framework for Explainable Pneumonia Detection from Chest X-Ray Images

Chest X-ray (CXR) imaging is not particularly easy to interpret, due to the subtle appearance of the disease on CXR, and is prone to inter-observer variation, it is still regarded as the main diagnostic imaging modality for pneumonia, worldwide. Despite thepromising results of deep learning models for automated pneumon...

Posina Anusha, T. V. Rathnam, Shaik Jaffar Hussain et al. · 0 citations
Preprint Sep 2026

A Comparative Study of GAN-Based Deep Learning Models for Pneumonia Detection in Chest X-Rays

This study evaluates pneumonia classification in chest X-rays using VGG19, MobileNetV2, ResNet50, and a custom CNN, and explores Generative Adversarial Network (GAN)-based synthetic data augmentation. MobileNetV2 achieved the highest reported accuracy of 88% with balanced class-wise performance. The custom CNN achieved...

Roshan Paudel, Aashish Ghimire, P. Acharya · 0 citations

Current Medical Imaging

Shaik Sikindar, C. Raghavendran, G. Madhavi · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.