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 Feb 20;13(4):814.
doi: 10.3390/diagnostics13040814.

Multi-Techniques for Analyzing X-ray Images for Early Detection and Differentiation of Pneumonia and Tuberculosis Based on Hybrid Features

Affiliations

Multi-Techniques for Analyzing X-ray Images for Early Detection and Differentiation of Pneumonia and Tuberculosis Based on Hybrid Features

Ibrahim Abdulrab Ahmed et al. Diagnostics (Basel). .

Abstract

An infectious disease called tuberculosis (TB) exhibits pneumonia-like symptoms and traits. One of the most important methods for identifying and diagnosing pneumonia and tuberculosis is X-ray imaging. However, early discrimination is difficult for radiologists and doctors because of the similarities between pneumonia and tuberculosis. As a result, patients do not receive the proper care, which in turn does not prevent the disease from spreading. The goal of this study is to extract hybrid features using a variety of techniques in order to achieve promising results in differentiating between pneumonia and tuberculosis. In this study, several approaches for early identification and distinguishing tuberculosis from pneumonia were suggested. The first proposed system for differentiating between pneumonia and tuberculosis uses hybrid techniques, VGG16 + support vector machine (SVM) and ResNet18 + SVM. The second proposed system for distinguishing between pneumonia and tuberculosis uses an artificial neural network (ANN) based on integrating features of VGG16 and ResNet18, before and after reducing the high dimensions using the principal component analysis (PCA) method. The third proposed system for distinguishing between pneumonia and tuberculosis uses ANN based on integrating features of VGG16 and ResNet18 separately with handcrafted features extracted by local binary pattern (LBP), discrete wavelet transform (DWT) and gray level co-occurrence matrix (GLCM) algorithms. All the proposed systems have achieved superior results in the early differentiation between pneumonia and tuberculosis. An ANN based on the features of VGG16 with LBP, DWT and GLCM (LDG) reached an accuracy of 99.6%, sensitivity of 99.17%, specificity of 99.42%, precision of 99.63%, and an AUC of 99.58%.

Keywords: ANN; DWT; GLCM; LBP; PCA; ResNet18; VGG16; tuberculosis.

PubMed Disclaimer

Conflict of interest statement

The authors confirm there are no conflicts of interest.

Figures

Figure 1
Figure 1
The framework of the structure for the proposed systems for the diagnosis of X-rays of pneumonia and tuberculosis, and for distinguishing between them.
Figure 2
Figure 2
Samples from the pneumonia and tuberculosis data set. (a). Before improving the X-rays. (b). After improving the X-rays.
Figure 3
Figure 3
Structure framework of the hybrid system for early diagnosis and discrimination between pneumonia and tuberculosis.
Figure 4
Figure 4
The structure of the early diagnosis technique and the discrimination of pneumonia and tuberculosis by ANN, based on the fusion of CNN features.
Figure 5
Figure 5
Structure framework of the technique for early diagnosis and discrimination of pneumonia and tuberculosis by ANN, based on the fusion of CNN features with hand-crafted features.
Figure 6
Figure 6
The number of X-rays of pneumonia and tuberculosis in the data set before and after applying the data augmentation technique.
Figure 7
Figure 7
The performance of the hybrid methods for diagnosing the X-rays of the pneumonia and tuberculosis data set.
Figure 8
Figure 8
The confusion matrix displays the X-ray results for diagnosing pneumonia and tuberculosis using (a). VGG16 + SVM; (b). ResNet18 + SVM.
Figure 9
Figure 9
The ANN performance based on integrating the features for the X-ray diagnostics of the pneumonia and tuberculosis data set.
Figure 10
Figure 10
Confusion matrix displaying the ANN results for the diagnosis of X-rays of pneumonia and tuberculosis based on deep feature integration, (a). VGG16 + ResNet18 before PCA algorithm; (b). VGG16 + ResNet18 after PCA algorithm.
Figure 11
Figure 11
The error histogram for diagnosing the X-ray images of pneumonia and tuberculosis using the ANN with features (a). VGG16 and LDG; (b). ResNet18 and LDG.
Figure 12
Figure 12
The best validation performance for diagnosing X-ray images of pneumonia and tuberculosis using the ANN with features (a). VGG16 and LDG; (b). ResNet18 and LDG.
Figure 13
Figure 13
The GVC for diagnosing X-ray images of pneumonia and tuberculosis using the ANN with features (a). VGG16 and LDG; (b). ResNet18 and LDG.
Figure 14
Figure 14
Confusion matrix for diagnosing the X-ray images of pneumonia and tuberculosis using the ANN with features (a). VGG16 and LDG; (b). ResNet18 and LDG.
Figure 15
Figure 15
ANN achievement based on fusing the features of CNN with hand-crafted features for diagnosing the X-rays of the pneumonia and tuberculosis data set.
Figure 16
Figure 16
The execution and differentiation of the proposed methods for diagnosing the X-rays of the pneumonia and tuberculosis data set.

Similar articles

Cited by

References

    1. Subramaniam S., Raju N., Ganesan A., Rajavel N., Chenniappan M., Prakash C., Dixit S. Artificial Intelligence Technologies for Forecasting Air Pollution and Human Health: A Narrative Review. Sustainability. 2022;14:9951. doi: 10.3390/su14169951. - DOI
    1. Nemours KidsHealth Lungs and Respiratory System (for Teens) [(accessed on 15 July 2022)]. Available online: https://kidshealth.org/en/teens/lungs.html.
    1. Dodia S., Annappa B., Mahesh P.A. Recent advancements in deep learning based lung cancer detection: A systematic review. Eng. Appl. Artif. Intell. 2022;116:105490. doi: 10.1016/j.engappai.2022.105490. - DOI
    1. Kaklauskas A., Abraham A., Milevicius V. Diurnal emotions, valence and the coronavirus lockdown analysis in public spaces. Eng. Appl. Artif. Intell. 2021;98:104122. doi: 10.1016/j.engappai.2020.104122. - DOI
    1. Kaya F., Ernest J.P., LoMauro K., Gengenbacher M., Madani A., Aragaw W.W., Zimmerman M.D., Sarathy J.P. A Rabbit Model to Study Antibiotic Penetration at the Site of Infection for Nontuberculous Mycobacterial Lung Disease: Macrolide Case Study. Antimicrob. Agents Chemother. 2022;66:e0221221. doi: 10.1128/aac.02212-21. - DOI - PMC - PubMed