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
. 2023;35(11):8259-8279.
doi: 10.1007/s00521-022-08099-z. Epub 2022 Dec 7.

Stacked ensemble learning based on deep convolutional neural networks for pediatric pneumonia diagnosis using chest X-ray images

Affiliations

Stacked ensemble learning based on deep convolutional neural networks for pediatric pneumonia diagnosis using chest X-ray images

J Arun Prakash et al. Neural Comput Appl. 2023.

Abstract

Pneumonia is an acute respiratory infection caused by bacteria, viruses, or fungi and has become very common in children ranging from 1 to 5 years of age. Common symptoms of pneumonia include difficulty breathing due to inflamed or pus and fluid-filled alveoli. The United Nations Children's Fund reports nearly 800,000 deaths in children due to pneumonia. Delayed diagnosis and overpriced tests are the prime reason for the high mortality rate, especially in underdeveloped countries. A time and cost-efficient diagnosis tool: Chest X-rays, was thus accepted as the standard diagnostic test for pediatric pneumonia. However, the lower radiation levels for diagnosis in children make the task much more onerous and time-consuming. The mentioned challenges initiate the need for a computer-aided detection model that is instantaneous and accurate. Our work proposes a stacked ensemble learning of deep learning-based features for pediatric pneumonia classification. The extracted features from the global average pooling layer of the fine-tuned Xception model pretrained on ImageNet weights are sent to the Kernel Principal Component Analysis for dimensionality reduction. The dimensionally reduced features are further trained and validated on the stacking classifier. The stacking classifier consists of two stages; the first stage uses the Random-Forest classifier, K-Nearest Neighbors, Logistic Regression, XGB classifier, Support Vector Classifier (SVC), Nu-SVC, and MLP classifier. The second stage operates on Logistic Regression using the first stage predictions for the final classification with Stratified K-fold cross-validation to prevent overfitting. The model was tested on the publicly available pediatric pneumonia dataset, achieving an accuracy of 98.3%, precision of 99.29%, recall of 98.36%, F1-score of 98.83%, and an AUC score of 98.24%. The performance shows its reliability for real-time deployment in assisting radiologists and physicians.

Keywords: Chest X-rays; Computer-aided diagnosis; Deep learning; Pneumonia; Principal component analysis; Stacking classifier; Stratified K-fold; Transfer learning.

PubMed Disclaimer

Conflict of interest statement

Conflicts of interestThe authors declare no conflict of interest.

Figures

Fig. 1
Fig. 1
Proposed architecture for pediatric pneumonia classification
Fig. 2
Fig. 2
The architecture for xception deconstructed as (a) Entry flow, (b) Middle flow and (c) Exit flow
Fig. 3
Fig. 3
Illustration of the working of a depthwise separable convolution network
Fig. 4
Fig. 4
Samples of Normal x-rays and Pneumonia x-rays from the dataset in the first row and second row, respectively
Fig. 5
Fig. 5
Confusion matrix. True Positive (TP)—number of pneumonia x-rays correctly predicted as pneumonia. False Negative (FN)—number of pneumonia x-rays wrongly predicted as normal. True Negative (TN)—number of normal x-rays correctly predicted as normal. False Positive (FP)—number of normal x-rays predicted wrongly as pneumonia
Fig. 6
Fig. 6
Confusion matrix for xception predictions on the test data
Fig. 7
Fig. 7
ROC curve for test data predictions made by the fine-tuned xception model
Fig. 8
Fig. 8
Training and validation accuracy-loss history of the fine-tuned xception model
Fig. 9
Fig. 9
Xception model performance on the validation set using different optimizers
Fig. 10
Fig. 10
Xception model performance on the validation set using different learning rates with adam as the optimizer
Fig. 11
Fig. 11
Class activation maps of misclassified X-rays (row 1: normal classified as pneumonia, row 2: normal classified as pneumonia, row 3: pneumonia classified as normal)
Fig. 12
Fig. 12
Class activation maps of correctly classified X-rays (row 1: normal classified as normal, row 2: normal classified as normal, row 3: normal classified as normal)
Fig. 13
Fig. 13
t-SNE feature representation of the test data extracted from the xception model
Fig. 14
Fig. 14
Cumulative variance plot of the extracted xception features
Fig. 15
Fig. 15
Confusion matrix for predictions made on the test dataset using the stacked classifier with kernel PCA
Fig. 16
Fig. 16
Confusion matrix for predictions made on the test dataset using the stacked classifier without kernel PCA
Fig. 17
Fig. 17
ROC curve for predictions made on the test dataset using the stacked classifier
Fig. 18
Fig. 18
Confusion matrix for predictions made on the test dataset of normal vs pneumonia classification dataset [55]
Fig. 19
Fig. 19
Confusion matrix for predictions made on the test dataset of normal vs pneumonia classification dataset [56]

Similar articles

Cited by

References

    1. Neupane B et al. (2010) Long-term exposure to ambient air pollution and risk of hospitalization with community-acquired pneumonia in older adults." American journal of respiratory and critical care medicine 181(1):47–53 - PubMed
    1. Ramezani M, Aemmi SZ, Moghadam ZE (2015) Factors affecting the rate of pediatric pneumonia in developing countries: a review and literature study. Int J Pediatrics 3(6.2):1173–1181
    1. Lee GE et al. (2010) National hospitalization trends for pediatric pneumonia and associated complications. Pediatrics 126(2):204–213 - PMC - PubMed
    1. Dean P, Florin TA. Factors associated with pneumonia severity in children: a systematic review. J Pediatric Infect Dis Soc. 2018;7(4):323–334. - PMC - PubMed
    1. Rahman MM, et al. Machine learning based computer aided diagnosis of breast cancer utilizing anthropometric and clinical features. Irbm. 2021;42(4):215–226. doi: 10.1016/j.irbm.2020.05.005. - DOI

LinkOut - more resources