A Deep Learning Approach for Multiclass Pneumonia Detection in Chest X-Ray Images

A Deep Learning Approach for Multiclass Pneumonia Detection in Chest X-Ray Images

Authors

  • Timothy Karani Kenyatta University, Kenya
  • Stephen Waithaka Kenyatta University, Kenya

DOI:

https://doi.org/10.62049/jkncu.v6i2.601

Keywords:

Multiclass Detection, Class Imbalance, Transfer Learning, Data Augmentation

Abstract

Pneumonia is a significant cause of mortality, particularly in children under five. Accurate detection of pneumonia from Chest X-ray (CXR) images is crucial in mitigating diagnostic errors common in manual radiographic analysis. This study leverages deep learning models to enhance the detection of multiclass pneumonia (normal, bacterial, and viral) using CXR images. We utilized a dataset comprising 5,863 multiclass pneumonia CXR samples. Data augmentation and regularization techniques were applied to address class imbalance and overfitting. Pre-trained models, including EfficientNet, MobileNet, RegNet, and ViT, were fine-tuned using the PyTorch framework, with transfer learning employed to optimize training. Model performance was assessed using accuracy, precision, recall, and specificity. The fine-tuned models achieved high classification accuracy, with EfficientNet and ConvNext models achieving accuracy scores of 83% and 82%, respectively. Data augmentation and regularization significantly improved the models' generalization, reducing overfitting and improving predictive accuracy. The proposed deep learning models provide an efficient and accurate tool for multiclass pneumonia detection from CXRs. These models have the potential to support healthcare professionals in making more accurate diagnoses.

Author Biographies

Timothy Karani, Kenyatta University, Kenya

Department of Computing and Information Science

Stephen Waithaka, Kenyatta University, Kenya

Department of Computing and Information Science

Downloads

Published

2026-07-31

How to Cite

Karani, T., & Waithaka, S. (2026). A Deep Learning Approach for Multiclass Pneumonia Detection in Chest X-Ray Images. Journal of the Kenya National Commission for UNESCO, 6(2). https://doi.org/10.62049/jkncu.v6i2.601

Issue

Section

Communication and Information
Loading...