Development of Deep Learning Medical Imaging Model for Interpreting Pneumonia Diagnosis

Authors

DOI:

https://doi.org/10.62760/iteecs.5.3.2026.207

Keywords:

Pneumonia detection, Medical imaging, Deep learning, DenseNet-121, Grad-CAM, SHAP

Abstract

Abstract: Pneumonia is still one of the key public health problems, particularly in resource-poor areas like Kisii County in Kenya, where poor diagnostic equipment hinders early diagnosis. In this project, the intention was to develop and evaluate an explainable deep learning approach for the diagnosis of pneumonia using Chest X-rays. The use of the DenseNet-121 model was considered appropriate since it is efficient in terms of its connection structure and, thus, enables effective feature extraction without the problem of vanishing gradients. Pre-processing of data for better generalization involved contrast limited adaptive histogram equalization (CLAHE), normalization, and data augmentation. Results obtained from the experiment showed a good performance, with an internal accuracy of 97.5% and an external accuracy of 93.6%. To overcome the problem of deep learning models considered as "black boxes," the model adopted explainability techniques such as Gradient-weighted Class Activation Mapping (Grad-CAM) and SHapley Additive exPlanations (SHAP) which allowed for providing explanations not only in the form of visual heatmaps but also feature-based ones to enable physicians to comprehend predictions. According to feedback from practitioners in the field, the incorporation of explainability was positively regarded due to the gained confidence and trust, thereby showing the possibility for adoption of the solution in practice. In general, this study proves the value of applying explainable AI solutions to provide an accurate and reliable diagnostic tool in rural areas where radiologists are rare. 

References

World Health Organization, Pneumonia in children, 2023. Available: https://www.who.int/news-room/fact-sheets/detail/pneumonia

Ministry of Health (Kenya), Kenya Health Sector Strategic and Investment Plan: Annual Health Sector Performance Report, 2022.

UNICEF, Integrated Global Action Plan for the Prevention and Control of Pneumonia and Diarrhoea (GAPPD), 2023. Available: https://www.unicef.org/documents/gappd

M. G. Kawooya, “Training for rural radiology and imaging in Sub-Saharan Africa: addressing the mismatch between services and population”, Journal of Clinical Imaging Science, Vol. 2, art. no. 37, 2012. https://doi.org/10.4103/2156-7514.97747

P. Rajpurkar, J. Irvin, R. L. Ball, K. Zhu, B. Yang, H. Mehta, T. Duan et al., “Deep learning for chest radiograph diagnosis: A retrospective comparison of the CheXNeXt algorithm to practicing radiologists”, PLoS Medicine, Vol. 15, No. 11, art. no. e1002686, 2018. https://doi.org/10.1371/journal.pmed.1002686

B. R. Parvathala, T. N. Malleswari and B. V. Seshu Kumari, "A Scalable Federated Learning Framework for Efficient Brain Tumor Segmentation with Advanced Data Privacy," 2025 5th International Conference on Advancement in Electronics & Communication Engineering (AECE), Ghaziabad, India, pp. 1054-1059, 2025. https://doi.org/10.1109/AECE67531.2025.11386616

G. Litjens et al., “A survey on deep learning in medical image analysis”, Medical Image Analysis, Vol. 42, pp. 60–88, 2017. https://doi.org/10.1016/j.media.2017.07.005

B. Njei, U. S. Kanmounye, M. F. Mohamed, A. Forjindam, N. B. Ndemazie, A. Adenusi, S. C. Egboh et al., “Artificial intelligence for healthcare in Africa: a scientometric analysis”, Health and Technology, Vol. 13, No. 6, pp. 947-955, 2023. https://doi.org/10.1007/s12553-023-00786-8

S. Kruschel, N. Hambauer, S. Weinzierl, S. Zilker, M. Kraus, and P. Zschech, “Challenging the performance interpretability trade-off: an evaluation of interpretable machine learning models”, Business & Information Systems Engineering, Vol. 68, No. 1, pp. 159-183, 2026. https://doi.org/10.1007/s12599-024-00922-2

S. M. Lundberg and S. Lee, “A unified approach to interpreting model predictions”, Proceedings of the 31st International Conference on Neural Information Processing Systems, Vol. 30, pp. 4768 – 4777, 2017. https://dl.acm.org/doi/10.5555/3295222.3295230

R. R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh and D. Batra, “Grad-CAM: Visual explanations from deep networks via gradient based localization”, 2017 IEEE International Conference on Computer Vision (ICCV), Venice, Italy, pp. 618-626, 2017. https://doi.org/10.1109/ICCV.2017.74

E. J. Topol, “Deep Medicine: How Artificial Intelligence Can Make Healthcare Human Again”, Basic Books, New York, NY, USA, 2019. https://dl.acm.org/doi/10.5555/3350442

T. Rahman et al., “Exploring the effect of image enhancement techniques on COVID-19 detection using chest X-ray images”, Computers in Biology and Medicine, Vol. 132, art. no. 104319, 2021. https://doi.org/10.1016/j.compbiomed.2021.104319

K. Krishna Nand, C. Eickhoff, and K. Juluru, “Weakly supervised pneumonia localization in chest X?rays using generative adversarial networks”, Medical Physics, Vol. 48, No. 11, pp. 7154-7171, 2021. https://doi.org/10.1002/mp.15185

H. Slimi, A. Balti, S. Abid, and M. Sayadi, “Trustworthy pneumonia detection in chest X-ray imaging through attention-guided deep learning”, Scientific Reports, Vol. 15, No. 1, art. no. 40029, 2025. https://doi.org/10.1038/s41598-025-23664-x

M. A. Alaran, S. K. Lawal, M. H. Jiya, S. A. Egya, M. M. Ahmed, A. Abdulsalam, U. A. Haruna, M. K. Musa, and D. E. Lucero-Prisno, “Challenges and opportunities of artificial intelligence in African health space”, Digital Health, Vol. 11, art. no. 20552076241305915, 2025. https://doi.org/10.1177/20552076241305915

A. Bandar, “A lightweight deep learning?based pneumonia detection approach for energy efficient medical systems”, Wireless Communications and Mobile Computing, Vol. 2021, No. 1, art. no. 5556635, 2021. https://doi.org/10.1155/2021/5556635

World Health Organization, Global Health Estimates Report, 2022. Available: ttps://www.who.int/data/global-health-estimates

African Union, Africa Health Strategy 2016–2030, 2021. Available: ttps://au.int/en/documents/health-strategy

M. S. Ayalew, A. O. Salau, Y. Tamyalew, B. T. Abeje, and N. Woreta, “X-Ray image based COVID-19 detection using deep learning”, Multimedia Tools and Applications, Vol. 82, No. 28, pp. 44507-44525, 2023. https://doi.org/10.1007/s11042-023-15389-8

T. Karani and S. Waithaka, “A deep learning approach for multiclass pneumonia detection in chest X-ray images”, Journal of the Kenya National Commission for UNESCO, Vol. 6, No. 2, 2026. https://doi.org/10.62049/jkncu.v6i2.601

B. Dezhong, D. Zhu, F. R. Sheykhahmad and M. Qiao, “Computer-aided skin cancer diagnosis based on a new meta-heuristic algorithm combined with support vector method”, Biomedical Signal Processing and Control, Vol. 68, art. no. 102631, 2021. https://doi.org/10.1016/j.bspc.2021.102631

A. Faisal, A. Alharbi, M. Kuruvilla, V. Mahzoon, S. T. Siddiqui, N. Rana, and A. Tahir, “Pneumonia detection from chest x-ray images using deep learning and transfer learning for imbalanced datasets”, Journal of imaging informatics in medicine, Vol. 38, No. 4, pp. 2021-2040, 2025. https://doi.org/10.1007/s10278-024-01334-0

V. Rupali and D. R. Khadatkar, “Ensemble of deep learning architectures with machine learning for pneumonia classification using chest X-rays”, Journal of Imaging Informatics in Medicine, Vol. 38, No. 2, pp. 727-746, 2025. https://doi.org/10.1007/s10278-024-01201-y

Y. Yang, G. Mei and F. Piccialli, “A deep learning approach considering image background for pneumonia identification using explainable AI (XAI)”, IEEE/ACM Transactions on Computational Biology and Bioinformatics, Vol. 21, No. 4, pp. 857-868, July-Aug 2024. https://doi.org/10.1109/TCBB.2022.3190265

H. Wu, H. Lu, M. Ping, W. Zhu and Z. Li, "A deep learning method for pneumonia detection based on fuzzy non-maximum suppression", IEEE/ACM Transactions on Computational Biology and Bioinformatics, Vol. 21, No. 4, pp. 902-911, July-August 2024. https://doi.org/10.1109/TCBB.2023.3247483

J. Kiche, I. Mwaniki, I. Orowe, and P. Weke, “Classification of pneumonia, tuberculosis and COVID-19 from chest X-ray images using convolution neural network model”, International Journal of Statistics and Probability, Vol. 13, No. 4, pp. 42–63, 2024. https://doi.org/10.5539/ijsp.v13n4p42

Q. An, W. Chen and W. Shao “A deep convolutional neural network for pneumonia detection in X-ray images with attention ensemble”, Diagnostics, Vol. 14, No. 4, art. no. 390, 2024. https://doi.org/10.3390/diagnostics14040390

T. O. Togunwa, A. O. Babatunde, O. E. Fatade, R. Olatunji, G. Ogbole, A. Falade, “Detection of pneumonia in children through chest radiographs using artificial intelligence in a low-resource setting: A pilot study”, PLOS Digital Health, Vol. 4, No. 9, art. no. e0000713, 2025. https://doi.org/10.1371/journal.pdig.0000713

Y. Elmira, A. Neizehbaz, N. Karamzade-Ziarati, and S. R. Kheradpisheh, “Explainable artificial intelligence for pneumonia classification: clinical insights into deformable prototypical part network in pediatric chest x-ray images”, Journal of medical imaging and radiation sciences, Vol. 56, No. 5, art. no. 102023, 2025. https://doi.org/10.1016/j.jmir.2025.102023

S. Biswas, R. Mostafiz, M. S. Uddin, and M. S. Uddin, “FLPneXAINet: Federated deep learning and explainable AI for improved pneumonia prediction utilizing GAN-augmented chest X-ray data”, PLOS ONE, Vol. 20, No. 7, art. no. e0324957, 2025. https://doi.org/10.1371/journal.pone.0324957

S. Akshay, S. Kashyap, D. Patel HN, and P. Kumar YR, “Hybrid deep learning and machine learning framework for automated pneumonia detection in chest X-ray images”, MethodsX, art. no. 103729, 2025. https://doi.org/10.1016/j.mex.2025.103729

Y. Xie, B. Zhu, Y. Jiang, B. Zhao, and H. Yu, “Diagnosis of pneumonia from chest X-ray images using YOLO deep learning,” Frontiers in Neurorobotics, Vol. 19, art. no. 1576438, 2025. https://doi.org/10.3389/fnbot.2025.1576438

M. Haupt, E. Jolkver, and A. Schwerk, “Explainable AI for chest radiographs: Sex-stratified fairness auditing in CNN-based pneumonia detection”, Scientific Reports, Vol. 16, art. no. 22709, 2026. https://doi.org/10.1038/s41598-026-62761-3

Z. Xu and H. Zhang, “Pneumonia detection from enhanced chest X-ray images based on Double SGAN model”, Scientific Reports, Vol. 16, art. no. 9922, 2026. https://doi.org/10.1038/s41598-026-39785-w

F. E. Boiardi, A. D. Lain, and J. M. Posma, “AI-assisted pneumonia detection, localisation and report generation from chest X-rays”, medRxiv, 2026. https://doi.org/10.64898/2026.03.20.26348879

M. Kabak, M. T. Baran and B. Cil, “Application of deep learning methods in the classification of normal and pneumonia lung images”, Frontiers in Medicine, Vol. 13, art. no. 1755871, 2026. https://doi.org/10.3389/fmed.2026.1755871

Downloads

Published

2026-09-28

How to Cite

Joyce W. Gikandi, Faith Mueni Musyoka, & Malach Onchiri Okemwa. (2026). Development of Deep Learning Medical Imaging Model for Interpreting Pneumonia Diagnosis . International Transactions on Electrical Engineering and Computer Science, 5(3), 177–188. https://doi.org/10.62760/iteecs.5.3.2026.207

Issue

Section

Articles

Similar Articles

<< < 1 2 3 

You may also start an advanced similarity search for this article.