Log in

X-ray image-based pneumonia detection and classification using deep learning

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Pneumonia is a dangerous lung disease that has affected millions of people worldwide. Several people have died as a result of incorrect pneumonia diagnosis and treatment. This has necessitated the urgent need for quick detection and classification methods of pneumonia detection for efficient treatment and quick recovery of affected persons. However, the causes of pneumonia are not accurately diagnosed using outmoded methods which use chest X-rays. This paper therefore presents a method for identifying and classifying chest X-ray images of normal and pneumonia-infected persons. The designed deep learning model first preprocesses the X-ray images to extract useful features, then segments them using a threshold segmentation technique, detects normal and pneumonia infected persons from X-ray images using the YOLOv3 detector, and classifies them as normal and with pneumonia using Support vector machine (SVM) and softmax. The suggested model was trained and evaluated using a dataset of chest X-ray images. The results show that the overall accuracy, precision, recall, and F1-score are all 99%. The findings show that deep features produced accurate and consistent characteristics for pneumonia detection. Using the presented approach, radiologists can assess pneumonia patients and deliver a rapid diagnosis.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price includes VAT (United Kingdom)

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13

Similar content being viewed by others

Data availability

The datasets generated during and/or analyzed during the current study are not publicly available but are available from the corresponding author on reasonable request.

Code availability

Not applicable.

References

  1. Rønn C et al (2023) Hospitalization for Chronic Obstructive Pulmonary Disease and Pneumonia: association with the dose of inhaled corticosteroids. A nation-wide cohort study of 52 100 outpatients. Clin Microbiol Infect 29. https://doi.org/10.1016/j.cmi.2022.11.029

  2. Cillóniz C, Torres A, Niederman MS (2021) Management of pneumonia in critically ill patients. BMJ 375:e065871. https://doi.org/10.1136/bmj-2021-065871

    Article  Google Scholar 

  3. Ferreira-Coimbra J, Sarda C, Rello J (2020) Burden of community-acquired pneumonia and unmet clinical needs. Adv Ther 37(4):1302–1318. https://doi.org/10.1007/s12325-020-01248-7

    Article  Google Scholar 

  4. Torres FA, Orio P, Escobar MJ (2021) Selection of stimulus parameters for enhancing slow wave sleep events with a neural-field theory thalamocortical model. PLoS Comput Biol 17(7):1–28. https://doi.org/10.1371/journal.pcbi.1008758

    Article  Google Scholar 

  5. Puttagunta M, Ravi S (2021) Medical image analysis based on deep learning approach. Multimed Tools Appl 80(16):24365–24398. https://doi.org/10.1007/s11042-021-10707-4

    Article  Google Scholar 

  6. Suganyadevi S, Seethalakshmi V, Balasamy K (2022) A review on deep learning in medical image analysis. Int J Multimed Inf Retr 11(1):19–38. https://doi.org/10.1007/s13735-021-00218-1

    Article  Google Scholar 

  7. Yi R, Tang L, Tian Y, Liu J, Wu Z (2021) Identification and classification of Pneumonia Disease using a deep learning-based intelligent computational framework. Neural Comput Appl 7. https://doi.org/10.1007/s00521-021-06102-7

  8. Manickam A, Jiang J, Zhou Y, Sagar A, Soundrapandiyan R, Jackson RD (2021) Automated pneumonia detection on chest X-ray images: A deep learning approach with different optimizers and transfer learning architectures. Measurement 184(November 2020):109953. https://doi.org/10.1016/j.measurement.2021.109953

  9. Chouhan V et al (2020) A novel transfer learning based approach for Pneumonia detection in chest X-ray images. Appl Sci 10(2):559. https://doi.org/10.3390/app10020559

    Article  Google Scholar 

  10. Račić L, Popović T, Čakić S, Šandi S (2021) Šandi S (2021) Pneumonia Detection Using Deep Learning Based on Convolutional Neural Network, 25th Int. Conf Inf Technol IT 2021(February):17–20. https://doi.org/10.1109/IT51528.2021.9390137

    Article  Google Scholar 

  11. Sharma S, Guleria K (2023) A deep learning based model for the detection of Pneumonia from chest X-Ray images using VGG-16 and neural networks. Procedia Comput Sci 218:357–366. https://doi.org/10.1016/j.procs.2023.01.018

    Article  Google Scholar 

  12. Mohammad A, Shoroq A, Ihssan Q (2021) Artificial Intelligence Framework for efficient detection and classification of Pneumonia using chest radiography images. J Med Biol Eng. https://doi.org/10.1007/s40846-021-00631-1

    Article  Google Scholar 

  13. Rahimzadeh M, Attar A (2020) A modified deep convolutional neural network for detecting COVID-19 and pneumonia from chest X-ray images based on the concatenation of Xception and ResNet50V2. Informatics Med Unlocked 19:100360. https://doi.org/10.1016/j.imu.2020.100360

    Article  Google Scholar 

  14. Kermany DS et al (2018) Identifying Medical diagnoses and Treatable Diseases by Image-based deep learning. Cell 172(5):1122–1131. https://doi.org/10.1016/j.cell.2018.02.010

    Article  Google Scholar 

  15. K SH, Madhuri SG, Professor A (2021) Image pre-processing techniques for X-ray medical images: a survey. Int J Creat Res Thoughts 9(1):1–5

  16. Zunair H, Ben Hamza A (2021) Synthesis of COVID-19 chest X-rays using unpaired image-to-image translation. Social Netw Anal Min. https://doi.org/10.1007/s13278-021-00731-5

    Article  Google Scholar 

  17. Tamyalew Y, Salau AO, Ayalew AM (2023) Detection and classification of large bowel obstruction from X-ray images using machine learning algorithms. Int J Imaging Syst Technol 33(1):1–17. https://doi.org/10.1002/ima.22800

  18. Handalage U, Kuganandamurthy L (2021) Real-time object detection using YOLO: a review. ResearchGate. https://doi.org/10.13140/RG.2.2.24367.66723

    Article  Google Scholar 

  19. Zunair H, Hamza AB (2021) Sharp U-Net: depthwise convolutional network for biomedical image segmentation. Comput Biol Med 136:104699. https://doi.org/10.1016/j.compbiomed.2021.104699

    Article  Google Scholar 

  20. Abdulateef S, Salman M (2021) A Comprehensive Review of Image Segmentation techniques. Iraqi J Electr Electron Eng 17(2):166–175. https://doi.org/10.37917/ijeee.17.2.18

    Article  Google Scholar 

  21. Al-malla MA, Jafar A, Ghneim N (2022) Pre-trained CNNs as feature-extraction modules for image Captioning: an experimental study. Comput Vis Cent 21(1):1–16

    Google Scholar 

  22. Lv Q, Zhang S, Wang Y (2022) Deep learning model of image classification using machine learning. Adv Multimed 1–12. https://doi.org/10.1155/2022/3351256

  23. Nwankpa C, Ijomah W, Gachagan A, Marshall S (2018) Activation functions: comparison of trends in practice and research for deep learning, ar**v preprint, 1–20. [Online]. Available: http://arxiv.org/abs/1811.03378

  24. Singh P, Raj P, Namboodiri VP (2020) EDS pooling layer. Image Vis Comput 98:103923. https://doi.org/10.1016/j.imavis.2020.103923

    Article  Google Scholar 

  25. Basha SHS, Dubey SR, Pulabaigari V, Mukherjee S (2020) Impact of fully connected layers on performance of convolutional neural networks for image classification. Neurocomputing 378:112–119. https://doi.org/10.1016/j.neucom.2019.10.008

    Article  Google Scholar 

  26. Wright L, Demeure N (2021) Ranger21: a synergistic deep learning optimizer [Online]. Available: http://arxiv.org/abs/2106.13731

  27. Garbin C, Zhu X, Marques O (2020) Dropout vs. batch normalization: an empirical study of their impact to deep learning. Multimed Tools Appl 79:19–20. https://doi.org/10.1007/s11042-019-08453-9

    Article  Google Scholar 

  28. Hamarashid H, Qader SM, Saeed SA, Hassan BA, Ali NA (2022) Machine learning algorithms evaluation methods by utilizing. UKH J Sci Eng 6(1):1–11. https://doi.org/10.25079/ukhjse.v6n1y2022.pp1-11

    Article  Google Scholar 

  29. Ayalew AM, Salau AO, Abeje BT, Enyew B (2022) Detection and classification of COVID-19 Disease from X-ray images using Convolutional neural networks and histogram of oriented gradients. Biomed Signal Process Control 74:1–11. https://doi.org/10.1016/j.bspc.2022.103530

    Article  Google Scholar 

  30. Salau AO, Markus ED, Assegie TA, Omeje CO, Eneh JN (2023) Influence of Class Imbalance and Resampling on classification accuracy of chronic Kidney Disease detection. Math Model Eng Probl 10(1):48–54. https://doi.org/10.18280/mmep.100106

    Article  Google Scholar 

  31. Ayalew AM, Salau AO, Tamyalew Y, Abeje BT (2023) X-Ray image-based COVID-19 detection using deep learning. Multimed Tools Appl, Vol. 82, pp. 44507–44525. https://doi.org/10.1007/s11042-023-15389-8

    Article  Google Scholar 

  32. Kundu R, Das R, Geem ZW, Han GT, Sarkar R (2021) Pneumonia detection in chest X-ray images using an ensemble of deep learning models. PLoS ONE 16(9):e0256630. https://doi.org/10.1371/journal.pone.0256630

    Article  Google Scholar 

  33. Ibrahim AU, Ozsoz M, Serte S et al (2021) Pneumonia classification using deep learning from chest X-ray images during COVID-19. Cogn Comput. https://doi.org/10.1007/s12559-020-09787-5

    Article  Google Scholar 

  34. Hashmi MF, Katiyar S, Hashmi AW, Keskar AG (2021) Pneumonia detection in chest X-ray images using compound scaled deep learning model. Automatika 62:3–4. https://doi.org/10.1080/00051144.2021.1973297

    Article  Google Scholar 

  35. Hou J, Gao T (2021) Explainable DCNN based chest X-ray image analysis and classification for COVID-19 Pneumonia detection. Sci Rep 11:16071. https://doi.org/10.1038/s41598-021-95680-6

    Article  Google Scholar 

Download references

Funding

Authors declare no funding for this research.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ayodeji Olalekan Salau.

Ethics declarations

Competing interests

The authors declare that they have no competing interests.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Asnake, N.W., Salau, A.O. & Ayalew, A.M. X-ray image-based pneumonia detection and classification using deep learning. Multimed Tools Appl 83, 60789–60807 (2024). https://doi.org/10.1007/s11042-023-17965-4

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-023-17965-4

Keywords

Navigation