Log in

Detection of Lung Diseases for Pneumonia, Tuberculosis, and COVID-19 with Artificial Intelligence Tools

  • Original Research
  • Published:
SN Computer Science Aims and scope Submit manuscript

Abstract

Chest X-ray imaging is a low-cost, easy way to diagnose lung abnormalities caused by infectious diseases such as COVID-19, pneumonia, or tuberculosis. The primary objective of the study is to carefully analyse and evaluate several classification strategies to determine which technique based on machine learning or deep learning would be more useful for detecting lung infectious illness using chest X-rays of three pulmonary infectious diseases: pneumonia, TB, and COVID-19. To notify physicians and radiologists of probable aberrant results, the performance of numerous classifiers—deep learning algorithms (CNN) and conventional machine learning algorithms—for distinguishing between normal and pathological chest radiographs was assessed and compared. The comparative analysis is based on three important criteria: the performance metrics (precision, accuracy, recall, and f1-score), minimising overfitting, and reducing false negative and false positive counts. Results of evaluation show convolutional neural network model accuracy across training and test samples was 94.71% and 90.22% for dataset I, 96.31% and 95.60% for dataset II, and 99.01% and 99.04% for dataset III, respectively, which is better than the conventional ML models. The experimental results in this paper also show that a deep learning framework such as CNN outperforms traditional machine learning approaches, viz., support vector machines, logistic regression, k-nearest neighbours, Naive Bayes, decision trees, and random forests on large X-ray image datasets, as it also shows better results for precision, F1 score, and recall, minimum overfitting, and a reduced number of false negative and false positive counts for pneumonia, TB, and COVID-19 lung diseases.

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 excludes VAT (USA)
Tax calculation will be finalised during checkout.

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

Similar content being viewed by others

Data Availability

The reference of the data supporting the findings of this study are available within the article.

References

  1. Santosh KC, Rasmussen N, Mamun M, Aryal S. A systematic review on cough sound analysis for Covid-19 diagnosis and screening: is my cough sound COVID-19? PeerJ Comput Sci. 2022. https://doi.org/10.7717/peerj-cs.958.

    Article  PubMed  PubMed Central  Google Scholar 

  2. Tang YX, et al. Automated abnormality classification of chest radiographs using deep convolutional neural networks. NPJ Digit Med. 2020. https://doi.org/10.1038/s41746-020-0273-z.

    Article  PubMed  PubMed Central  Google Scholar 

  3. Singh S, Tripathi BK. Pneumonia classification using quaternion deep learning. Multimed Tools Appl. 2022;81(2):1743–64. https://doi.org/10.1007/s11042-021-11409-7.

    Article  PubMed  Google Scholar 

  4. Barhoom AMA, Samy P, Naser SA. Diagnosis of pneumonia using deep learning. Int J Acad Eng Res. 2022;6(2):48–68.

    Google Scholar 

  5. Wang Q, Yang D, Li Z, Zhang X, Liu C. Deep regression via multi-channel multi-modal learning for pneumonia screening. IEEE Access. 2020;8:78530–41. https://doi.org/10.1109/ACCESS.2020.2990423.

    Article  Google Scholar 

  6. Henderson J, Santosh K. Analyzing chest X-ray to detect the evidence of lung abnormality due to infectious disease. Commun Comput Inform Sci. 2023. https://doi.org/10.1007/978-3-031-23599-3_6.

    Article  Google Scholar 

  7. Ling G, Cao C. Atomatic detection and diagnosis of severe viral pneumonia CT images based on LDA-SVM. IEEE Sens J. 2020;20(20):11927–34. https://doi.org/10.1109/JSEN.2019.2959617.

    Article  ADS  CAS  Google Scholar 

  8. Santosh K, Ghosh S. CheXNet for the evidence of Covid-19 using 2.3K positive chest X-rays’. Commun Comput Inform Sci. 2022;1576 CCIS:33–41. https://doi.org/10.1007/978-3-031-07005-1_4/COVER.

    Article  Google Scholar 

  9. Ibrahim DM, Elshennawy NM, Sarhan AM. ‘Since January 2020 Elsevier has created a COVID-19 resource centre with free information in English and Mandarin on the novel coronavirus COVID- 19. The COVID-19 resource centre is hosted on Elsevier Connect , the company ’ s public news and information ’, no. January, 2020.

  10. Bhapkar HR, Mahalle PN, Dey N, Santosh KC. Revisited COVID-19 mortality and recovery rates: are we missing recovery time period? J Med Syst. 2020. https://doi.org/10.1007/s10916-020-01668-6.

    Article  PubMed  PubMed Central  Google Scholar 

  11. Mohan Y, Tripathi V. Comparative analysis of facial expression detection techniques based on neural network. Int J Eng Technol. 2018;7(4):38. https://doi.org/10.14419/ijet.v7i4.38.27597.

    Article  Google Scholar 

  12. Santosh KC. COVID-19 prediction models and unexploited data. J Med Syst. 2020. https://doi.org/10.1007/s10916-020-01645-z.

    Article  PubMed  PubMed Central  Google Scholar 

  13. Mukherjee H, et al. ‘Deep neural network for pneumonia detection using chest X-Rays. In: Communications in Computer and Information Science. New York: Springer Science and Business Media Deutschland GmbH; 2021. https://doi.org/10.1007/978-981-16-1086-8_8.

    Book  Google Scholar 

  14. Hassantabar S, Ahmadi M, Chaos AS, Fractals S, undefined 2020, ‘Diagnosis and detection of infected tissue of COVID-19 patients based on lung X-ray image using convolutional neural network approaches. Elsevier, Accessed: Oct. 20, 2022. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S096007792030566X

  15. Santosh KC, Ghosh S, Ghoshroy D. Deep learning for Covid-19 screening using chest X-rays in 2020 a systematic review. Intern J Pattern Recognit Artif Intell. 2022. https://doi.org/10.1142/S0218001422520103.

    Article  Google Scholar 

  16. Santosh K, Allu S, Rajaraman S, Antani S. Advances in deep learning for tuberculosis screening using chest X-rays: the last 5 years review. J Med Syst. 2022. https://doi.org/10.1007/s10916-022-01870-8.

    Article  PubMed  PubMed Central  Google Scholar 

  17. Santosh KC, Ghosh S. Covid-19 versus lung cancer: analyzing chest CT images using deep ensemble neural network. Int J Artif Intell Tools. 2022. https://doi.org/10.1142/S021821302250049X.

    Article  Google Scholar 

  18. Mahbub MK, Biswas M, Gaur L, Alenezi F, Santosh KC. Deep features to detect pulmonary abnormalities in chest X-rays due to infectious diseaseX: Covid-19, pneumonia, and tuberculosis. Inf Sci (N Y). 2022;592:389–401. https://doi.org/10.1016/j.ins.2022.01.062.

    Article  PubMed  Google Scholar 

  19. Bharati S, Podder P, Mondal MRH. Hybrid deep learning for detecting lung diseases from X-ray images. Inform Med Unlocked. 2020;20: 100391. https://doi.org/10.1016/j.imu.2020.100391.

    Article  PubMed  PubMed Central  Google Scholar 

  20. Liang G, Zheng L. A transfer learning method with deep residual network for pediatric pneumonia diagnosis. Comput Methods Progr Biomed. 2020. https://doi.org/10.1016/j.cmpb.2019.06.023.

    Article  Google Scholar 

  21. Jaiswal AK, Tiwari P, Kumar S, Gupta D, Khanna A, Rodrigues JJPC. Identifying pneumonia in chest X-rays: A deep learning approach. Measurement (Lond). 2019;145:511–8. https://doi.org/10.1016/j.measurement.2019.05.076.

    Article  ADS  Google Scholar 

  22. Kamal M, Chowdhury L, ND on Systems, undefined Man, and undefined 2021, ‘Explainable ai to analyze outcomes of spike neural network in covid-19 chest x-rays. ieeexplore.ieee.org, Accessed: Jun. 28, 2023. [Online]. Available: https://ieeexplore.ieee.org/abstract/document/9658745/

  23. Ortiz-Toro C, García-Pedrero A, Lillo-Saavedra M, Gonzalo-Martín C. Automatic detection of pneumonia in chest X-ray images using textural features. Comput Biol Med. 2022. https://doi.org/10.1016/j.compbiomed.2022.105466.

    Article  PubMed  PubMed Central  Google Scholar 

  24. ‘CheXNet: Radiologist-level pneumonia detection on chest X-rays with deep learning’. 2019.

  25. Das D, Santosh KC, Pal U. Cross-population train/test deep learning model: abnormality screening in chest x-rays. Proc IEEE Symp Comput-Based Med Syst. 2020. https://doi.org/10.1109/CBMS49503.2020.00103.

    Article  Google Scholar 

  26. Santosh KC. AI-driven tools for coronavirus outbreak: need of active learning and cross-population train/test models on multitudinal/multimodal data. J Med Syst. 2020. https://doi.org/10.1007/s10916-020-01562-1.

    Article  PubMed  PubMed Central  Google Scholar 

  27. Qian X, et al. M3Lung-sys: a deep learning system for multi-class lung pneumonia screening from CT imaging. IEEE J Biomed Health Inform. 2020;24(12):3539–50. https://doi.org/10.1109/JBHI.2020.3030853.

    Article  PubMed  Google Scholar 

  28. Santosh KC, Dhar MK, Rajbhandari R, Neupane A. Deep neural network for foreign object detection in chest X-rays. Proc IEEE Symp Comput-Based Med Syst. 2020. https://doi.org/10.1109/CBMS49503.2020.00107.

    Article  Google Scholar 

  29. Muhammad Y, Alshehri MD, Alenazy WM, Vinh Hoang T, Alturki R. Identification of pneumonia disease applying an intelligent computational framework based on deep learning and machine learning techniques. Mobile Inform Syst. 2021. https://doi.org/10.1155/2021/9989237.

    Article  Google Scholar 

  30. Das D, Santosh KC, Pal U. Inception-based deep learning architecture for tuberculosis screening using chest x-rays. Proc Int Conf Pattern Recogn. 2020. https://doi.org/10.1109/ICPR48806.2021.9412748.

    Article  Google Scholar 

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

    Article  PubMed  PubMed Central  Google Scholar 

  32. Gm H, Gourisaria MK, Rautaray SS, Pandey M. Pneumonia detection using CNN through chest X-ray. J Eng Sci Technol. 2021;16(1):861–76.

    Google Scholar 

  33. Mukherjee H, Ghosh S, Dhar A, Obaidullah SM, Santosh KC, Roy K. Deep neural network to detect COVID-19: one architecture for both CT Scans and Chest X-rays. Appl Intell. 2021. https://doi.org/10.1007/s10489-020-01943-6.

    Article  Google Scholar 

  34. Meng Z, Meng L, Tomiyama H. Pneumonia diagnosis on chest X-rays with machine learning. Procedia Comput Sci. 2021;187:42–51. https://doi.org/10.1016/j.procs.2021.04.032.

    Article  Google Scholar 

  35. Yaseliani M, Hamadani AZ, Maghsoodi AI, Mosavi A. Pneumonia detection proposing a hybrid deep convolutional neural network based on two parallel visual geometry group architectures and machine learning classifiers. IEEE Access. 2022;10:62110–28. https://doi.org/10.1109/access.2022.3182498.

    Article  Google Scholar 

  36. Varshni D, Thakral K, Agarwal L, Nijhawan R, Mittal A. ‘Pneumonia Detection Using CNN based Feature Extraction. Proceedings of 2019 3rd IEEE International Conference on Electrical, Computer and Communication Technologies. ICECCT 2019. 2019. doi: https://doi.org/10.1109/ICECCT.2019.8869364.

  37. Mahbub MK, Hossain Zamil MZ, Mozid Miah MA, Ghose P, Biswas M, Santosh KC. ‘MobApp4InfectiousDisease: Classify COVID-19, Pneumonia, and Tuberculosis. In: Proceedings IEEE Symposium on Computer-Based Medical Systems, 2022. doi: https://doi.org/10.1109/CBMS55023.2022.00028.

  38. ‘Chest X-Ray Images (Pneumonia) | Kaggle’. https://www.kaggle.com/datasets/paultimothymooney/chest-xray-pneumonia (accessed Mar. 01, 2023).

  39. Long A, et al. ‘The technology behind TB DEPOT: a novel public analytics platform integrating tuberculosis clinical, genomic, and radiological data for visual and statistical exploration. J Am Med Inform Assoc. 2021. https://doi.org/10.1093/jamia/ocaa228.

    Article  PubMed  Google Scholar 

  40. Rahman T, et al. Reliable tuberculosis detection using chest X-ray with deep learning, segmentation and visualization. IEEE Access. 2020;8:191586–601. https://doi.org/10.1109/ACCESS.2020.3031384.

    Article  Google Scholar 

  41. ‘Tuberculosis (TB) Chest X-ray Database | IEEE DataPort’. https://ieee-dataport.org/documents/tuberculosis-tb-chest-x-ray-database (Accessed Feb. 26, 2023).

  42. ‘Tuberculosis (TB) Chest X-ray Database | Kaggle’. https://www.kaggle.com/datasets/tawsifurrahman/tuberculosis-tb-chest-xray-dataset (Accessed Feb. 26, 2023).

  43. Jaeger S, Candemir S, S. A.- imaging in medicine, and undefined 2014, ‘Two public chest X-ray datasets for computer-aided screening of pulmonary diseases’, ncbi.nlm.nih.gov, Accessed: Feb. 26, 2023. [Online]. Available: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4256233/

  44. Cohen JP, Morrison P, Dao L, Roth K, Duong TQ, Ghassemi M. ‘COVID-19 Image Data Collection: Prospective Predictions Are the Future’, Jun. 2020, Accessed: Mar. 01, 2023. [Online]. Available: http://arxiv.org/abs/2006.11988

  45. Ng MY, et al. Imaging profile of the covid-19 infection: radiologic findings and literature review. Radiol Cardiothorac Imaging. 2020. https://doi.org/10.1148/ryct.2020200034.

    Article  PubMed  PubMed Central  Google Scholar 

  46. Santosh K, Ghosh S. Covid-19 imaging tools: how big data is big? J Med Syst. 2021. https://doi.org/10.1007/s10916-021-01747-2.

    Article  PubMed  PubMed Central  Google Scholar 

  47. Albawi S, Mohammed TA, Al-Zawi S. ‘Understanding of a convolutional neural network. Proc 2017 Int Conf Eng Technol. 2018. https://doi.org/10.1109/ICEngTechnol.2017.8308186.

    Article  Google Scholar 

  48. Gu J, et al. Recent advances in convolutional neural networks. Pattern Recognit. 2018;77:354–77. https://doi.org/10.1016/J.PATCOG.2017.10.013.

    Article  ADS  Google Scholar 

  49. Rasheed J, Hameed AA, Djeddi C, Jamil A, Al-Turjman F. ‘A machine learning-based framework for diagnosis of COVID-19 from chest X-ray images. Interdiscip Sci-Comput Life Sci. 2021;13(1):103–17. https://doi.org/10.1007/s12539-020-00403-6.

    Article  CAS  Google Scholar 

  50. Nusinovici S, et al. Logistic regression was as good as machine learning for predicting major chronic diseases. J Clin Epidemiol. 2020;122:56–69. https://doi.org/10.1016/J.JCLINEPI.2020.03.002.

    Article  PubMed  Google Scholar 

  51. Erdaw Y, Tachbele E. <p>Machine learning model applied on chest X-ray images enables automatic detection of COVID-19 cases with high accuracy</p>. Int J Gen Med. 2021;14:4923–31. https://doi.org/10.2147/IJGM.S325609.

    Article  PubMed  PubMed Central  Google Scholar 

  52. Wu X, et al. Top 10 algorithms in data mining. Knowl Inf Syst. 2008;14(1):1–37. https://doi.org/10.1007/s10115-007-0114-2.

    Article  Google Scholar 

  53. Murphy KP. Naive Bayes classifiers. University of British Columbia, vol. 18, no. 60. 2006. pp 1–8.

  54. Taheri S, Mammadov M. Learning the naive Bayes classifier with optimization models. Int J Appl Math Comput Sci. 2013;23(4):787–95. https://doi.org/10.2478/amcs-2013-0059.

    Article  MathSciNet  Google Scholar 

  55. Song Y-Y, Lu Y. Decision tree methods: applications for classification and prediction. Psychiatry. 2015;27(2):130–5. https://doi.org/10.11919/j.issn.1002-0829.215044.

    Article  Google Scholar 

Download references

Funding

Not applicable.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sapna Yadav.

Ethics declarations

Conflict of Interest

We now state that there is no conflict of interests in this study.

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

Yadav, S., Rizvi, S.A.M. & Agarwal, P. Detection of Lung Diseases for Pneumonia, Tuberculosis, and COVID-19 with Artificial Intelligence Tools. SN COMPUT. SCI. 5, 303 (2024). https://doi.org/10.1007/s42979-024-02617-7

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s42979-024-02617-7

Keywords

Navigation