Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2020 Aug 28;10(9):649.
doi: 10.3390/diagnostics10090649.

Deep-Pneumonia Framework Using Deep Learning Models Based on Chest X-Ray Images

Affiliations

Deep-Pneumonia Framework Using Deep Learning Models Based on Chest X-Ray Images

Nada M Elshennawy et al. Diagnostics (Basel). .

Abstract

Pneumonia is a contagious disease that causes ulcers of the lungs, and is one of the main reasons for death among children and the elderly in the world. Several deep learning models for detecting pneumonia from chest X-ray images have been proposed. One of the extreme challenges has been to find an appropriate and efficient model that meets all performance metrics. Proposing efficient and powerful deep learning models for detecting and classifying pneumonia is the main purpose of this work. In this paper, four different models are developed by changing the used deep learning method; two pre-trained models, ResNet152V2 and MobileNetV2, a Convolutional Neural Network (CNN), and a Long Short-Term Memory (LSTM). The proposed models are implemented and evaluated using Python and compared with recent similar research. The results demonstrate that our proposed deep learning framework improves accuracy, precision, F1-score, recall, and Area Under the Curve (AUC) by 99.22%, 99.43%, 99.44%, 99.44%, and 99.77%, respectively. As clearly illustrated from the results, the ResNet152V2 model outperforms other recently proposed works. Moreover, the other proposed models-MobileNetV2, CNN, and LSTM-CNN-achieved results with more than 91% in accuracy, recall, F1-score, precision, and AUC, and exceed the recently introduced models in the literature.

Keywords: CNN; LSTM; chest X-ray image; deep learning; detecting pneumonia.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflict of interest.

Figures

Figure 1
Figure 1
The proposed deep learning framework for pneumonia diagnosis.
Figure 2
Figure 2
Proposed CNN architecture.
Figure 3
Figure 3
The main function code of the CNN model.
Figure 4
Figure 4
Proposed LSTM-CNN architecture.
Figure 5
Figure 5
The main function code of the LSTM-CNN model.
Figure 6
Figure 6
ResNet152V2 architecture.
Figure 7
Figure 7
MobileNetV2 architecture.
Figure 8
Figure 8
The main function code of the ResNet152V2 model.
Figure 9
Figure 9
The main function code of the MobileNetV2 model.
Figure 10
Figure 10
Chest X-ray images: (a) Normal images with and without a deep dream filter; (b) pneumonia images with and without a deep dream filter.
Figure 11
Figure 11
The proposed Deep-Pneumonia framework steps.
Figure 12
Figure 12
Accuracy performance metric.
Figure 13
Figure 13
Recall performance metric.
Figure 14
Figure 14
F1-score performance metric.
Figure 15
Figure 15
Precision performance metric.
Figure 16
Figure 16
Area Under the Curve (AUC) performance metric.

References

    1. Rahman T., Chowdhury M.E., Khandakar A., Islam K.R., Islam K.F., Mahbub Z.B., Kadir M.A., Kashem S. Transfer Learning with Deep Convolutional Neural Network (CNN) for Pneumonia Detection using Chest X-ray. Appl. Sci. 2020;10:3233. doi: 10.3390/app10093233. - DOI
    1. Ayan E., Ünver H.M. Diagnosis of pneumonia from chest x-ray images using deep learning; Proceedings of the Scientific Meeting on Electrical-Electronics Biomedical Engineering and Computer Science (EBBT); Istanbul, Turkey. 24–26 April 2019; pp. 1–5.
    1. Nguyen K.P., Son T.H., Le T.H., Tuan L., Nguyen T.T. Applying multi-cnns model for detecting abnormal problem on chest x-ray images; Proceedings of the 10th International Conference on Knowledge and Systems Engineering (KSE); Ho Chi Minh City, Vietnam. 1–3 November 2018; pp. 300–305.
    1. Labhane G., Pansare R., Maheshwari S., Tiwari R., Shukla A. Detection of Pediatric Pneumonia from Chest X-Ray Images using CNN and Transfer Learning; Proceedings of the 3rd International Conference on Emerging Technologies in Computer Engineering: Machine Learning and Internet of Things (ICETCE); Jaipur, India. 7–8 February 2020; pp. 85–92.
    1. Stephen O., Sain M., Maduh U.J., Jeong D.U. An efficient deep learning approach to pneumonia classification in healthcare. J. Healthc. Eng. 2019;2019:4180949. doi: 10.1155/2019/4180949. - DOI - PMC - PubMed