Skip to main content

Classification of Pneumonia from Chest X-Ray Image Using Convolutional Neural Network

  • Conference paper
  • First Online:
ICT: Innovation and Computing (ICTCS 2023)

Abstract

Pneumonia is a common and potentially life-threatening respiratory infection affecting millions worldwide. Prompt and precise diagnosis is critical for timely treatment and reducing mortality. Nowadays, the application of artificial intelligence, particularly Convolutional Neural Networks (CNNs), has shown promise in automating pneumonia classification from medical images. This research centres on developing and evaluating a CNN-based system for pneumonia classification using chest X-ray images. The aim of this study is to overcome the limitations associated with traditional methods of diagnosing pneumonia, which heavily depend on the expertise of radiologists. To achieve this, we utilized a substantial dataset of chest X-ray images that encompassed both cases of pneumonia and non-pneumonia, obtained from various sources. The dataset underwent pre-processing to enhance image quality and standardization for consistent analysis. A custom-designed Convolutional Neural Network (CNN) architecture was employed, and it was trained using a portion of the dataset. This leveraged the CNN's ability to autonomously learn distinctive features from the images. Following training, the CNN model was subjected to validation and testing using a separate set of images to evaluate its classification performance. Key metrics such as accuracy, sensitivity, specificity, and others were calculated to gauge the model's effectiveness in distinguishing between cases of pneumonia and non-pneumonia. To highlight the superiority of the proposed CNN-based system, we compared its performance to existing methods for pneumonia classification in terms of accuracy and efficiency. The experimental results clearly demonstrate the system's effectiveness in accurately classifying pneumonia from chest X-ray images. The proposed approach exhibits high accuracy, sensitivity, and specificity, surpassing traditional methods and highlighting its potential to aid healthcare professionals in pneumonia diagnosis. Automating pneumonia classification using CNNs can significantly alleviate the workload of radiologists, expedite the diagnosis process, and enhance patient care. This model has achieved an impressive 98% accuracy rate.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Albahli S, Rauf H, Algosaibi A, Balas V (2021) AI-driven deep CNN approach for multi-label pathology classification using chest X-Rays. Peer J Comput Sci 7:e495. PMID: 33977135. View Article PubMed/NCBI Google Scholar

    Google Scholar 

  2. Albahli S, Rauf H, Arif M, Nafis M, Algosaibi A (2021) Identification of thoracic diseases by exploiting deep neural networks. Neural Netw 5:6. View Article Google Scholar

    Google Scholar 

  3. Chandra T, Verma K (2020) Pneumonia detection on chest X-Ray using machine learning paradigm. In: Proceedings of 3rd international conference on computer vision and image processing, pp 21–33

    Google Scholar 

  4. Kuo K, Talley P, Huang C, Cheng L (2019) Predicting hospital-acquired pneumonia among schizophrenic patients: a machine learning approach. BMC Med Inf Decis Making 19:1–8. PMID: 30866913. View Article PubMed/NCBI Google Scholar

    Google Scholar 

  5. Yue H, Yu Q, Liu C, Huang Y, Jiang Z, Shao C et al (2020) Machine learning-based CT radiomics method for predicting hospital stay in patients with pneumonia associated with SARS-CoV-2 infection: a multicenter study. Ann Transl Med 8. PMID: 32793703. View Article PubMed/NCBI Google Scholar

    Google Scholar 

  6. Kadry S, Nam Y, Rauf H, Rajinikanth V, Lawal I (2021) Automated detection of brain abnormality using deep-learning-scheme: a study. In: 2021 Seventh international conference on bio signals, images, and instrumentation (ICBSII), pp 1–5

    Google Scholar 

  7. Rajinikanth V, Kadry S, Taniar D, Damaševičius R, Rauf H (2021) Breast-cancer detection using thermal images with marine-predators-algorithm selected features. In: 2021 Seventh international conference on bio signals, images, and instrumentation (ICBSII), pp 1–6

    Google Scholar 

  8. Sharma H, Jain J, Bansal P, Gupta S (2020) Feature extraction and classification of chest x-ray images using cnn to detect pneumonia. In: 2020 10th International conference on cloud computing, data science & engineering (confluence), pp 227–231

    Google Scholar 

  9. Stephen O, Sain M, Maduh U, Jeong D (2019) An efficient deep learning approach to pneumonia classification in healthcare. J Healthc Eng 2019. PMID: 31049186. View Article PubMed/NCBI Google Scholar

    Google Scholar 

  10. Kermany D, Zhang K, Goldbaum M (2018) Labeled optical coherence tomography (OCT) and chest X-ray images for classification (Mendeley, 2018). View Article Google Scholar

    Google Scholar 

  11. Rajpurkar P, Irvin J, Zhu K, Yang B, Mehta H, Duan T et al (2017) Others Chexnet: radiologist-level pneumonia detection on chest x-rays with deep learning. ArXiv Preprint ArXiv:1711.05225

    Google Scholar 

  12. Janizek J, Erion G, DeGrave A, Lee S (2020) An adversarial approach for the robust classification of pneumonia from chest radiographs. In: Proceedings of the ACM conference on health, inference, and learning, pp 69–79

    Google Scholar 

  13. Rahman T, Chowdhury M, Khandakar A, Islam K, Islam K, Mahbub Z et al (2020) Transfer learning with deep convolutional neural network (CNN) for pneumonia detection using chest X-ray. Appl Sci 10:3233. View Article Google Scholar

    Google Scholar 

  14. Liang G, Zheng L (2020) A transfer learning method with deep residual network for pediatric pneumonia diagnosis. Comput Methods Programs Biomed 187:104964. PMID: 31262537. View Article PubMed/NCBI Google Scholar

    Google Scholar 

  15. Ibrahim A, Ozsoz M, Serte S, Al-Turjman F, Yakoi P (2021) Pneumonia classification using deep learning from chest X-ray images during COVID-19. Cogn Comput 1–13. PMID: 33425044. View Article PubMed/NCBI Google Scholar

    Google Scholar 

  16. Zubair S (2020) An efficient method to predict pneumonia from chest X-rays using deep learning approach. In: The importance of health informatics in public health during a pandemic, vol 272, p 457. View Article Google Scholar

    Google Scholar 

  17. Deng J, Dong W, Socher R, Li L, Li K, Fei-Fei L (2009) Imagenet: a large-scale hierarchical image database. In: 2009 IEEE conference on computer vision and pattern recognition, pp 248–255

    Google Scholar 

  18. https://www.kaggle.com/datasets/paultimothymooney/chest-xray-pneumonia

  19. WHO Pneumonia (2019) World Health Organization. https://www.who.int/news-room/fact-sheets/detail/pneumonia

  20. Neuman M, Lee E, Bixby S, Diperna S, Hellinger J, Markowitz R et al (2012) Variability in the interpretation of chest radiographs for the diagnosis of pneumonia in children. J Hosp Med 7:294–298. PMID: 22009855. View Article PubMed/NCBI Google Scholar

    Google Scholar 

  21. Williams G, Macaskill P, Kerr M, Fitzgerald D, Isaacs D, Codarini M et al (2013) Variability and accuracy in interpretation of consolidation on chest radiography for diagnosing pneumonia in children under 5 years of age. Pediatr Pulmonol 48:1195–1200. PMID: 23997040. View Article PubMed/NCBI Google Scholar

    Google Scholar 

  22. Lal S, Rehman S, Shah J, Meraj T, Rauf H, Damaševičius R et al (2021) Adversarial attack and defence through adversarial training and feature fusion for diabetic retinopathy recognition. Sensors 21:3922. PMID: 34200216. View Article PubMed/NCBI Google Scholar

    Google Scholar 

  23. Rauf H, Lali M, Khan M, Kadry S, Alolaiyan H, Razaq A et al (2021) Time series forecasting of COVID-19 transmission in Asia Pacific countries using deep neural networks. Pers Ubiquit Comput 1–18. PMID: 33456433. View Article PubMed/NCBI Google Scholar

    Google Scholar 

  24. Dalhoumi S, Dray G, Montmain J, Derosière G, Perrey S (2015) An adaptive accuracy-weighted ensemble for inter-subjects classification in brain-computer interfacing. In: 2015 7th International IEEE/EMBS conference on neural engineering (NER), pp 126–129

    Google Scholar 

  25. Zhang J, Xie Y, Pang G, Liao Z, Verjans J, Li W et al (2020) Viral pneumonia screening on chest X-rays using confidence-aware anomaly detection. IEEE Trans Med Imaging. View Article Google Scholar

    Google Scholar 

  26. Tuncer T, Ozyurt F, Dogan S, Subasi A (2021) A novel Covid-19 and pneumonia classification method based on F-transform. Chemom Intell Lab Syst 210:104256. PMID: 33531722. View Article PubMed/NCBI Google Scholar

    Google Scholar 

  27. Jaiswal A, Tiwari P, Kumar S, Gupta D, Khanna A, Rodrigues J (2019) Identifying pneumonia in chest X-rays: a deep learning approach. Measurement 145:511–518. View Article Google Scholar

    Google Scholar 

  28. Gabruseva T, Poplavskiy D, Kalinin A (2020) Deep learning for automatic pneumonia detection. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition workshops, pp 350–351

    Google Scholar 

  29. Pan I, Cadrin-Chênevert A, Cheng P (2019) Tackling the radiological society of North America pneumonia detection challenge. Am J Roentgenol 213:568–574. PMID: 31120793. View Article PubMed/NCBI Google Scholar

    Google Scholar 

  30. Meraj T, Hassan A, Zahoor S, Rauf H, Lali M, Ali L et al (2019) Lungs nodule detection using semantic segmentation and classification with optimal features. Preprints

    Google Scholar 

  31. Rajinikanth V, Kadry S, Damaševičius R, Taniar D, Rauf H (2021) Machine-learning-scheme to detect choroidal-neovascularization in retinal OCT Image. In: 2021 Seventh international conference on bio signals, images, and instrumentation (ICBSII), pp 1–5

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Nilay Vaidya .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Solanki, K., Vaidya, N., Undavia, J., Gor, K., Panchal, J. (2024). Classification of Pneumonia from Chest X-Ray Image Using Convolutional Neural Network. In: Joshi, A., Mahmud, M., Ragel, R.G., Karthik, S. (eds) ICT: Innovation and Computing. ICTCS 2023. Lecture Notes in Networks and Systems, vol 879. Springer, Singapore. https://doi.org/10.1007/978-981-99-9486-1_39

Download citation

  • DOI: https://doi.org/10.1007/978-981-99-9486-1_39

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-99-9485-4

  • Online ISBN: 978-981-99-9486-1

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics