Pneumonia Disease Detection Using Chest X-Rays and Machine Learning
Open Access
- 3 February 2025
- journal article
- research article
- Published by MDPI AG in Algorithms
- Vol. 18 (2) , 82
Abstract
Pneumonia is a deadly disease affecting millions worldwide, caused by microorganisms and environmental factors. It leads to lung fluid build-up, making breathing difficult, and is a leading cause of death. Early detection and treatment are crucial for preventing severe outcomes. Chest X-rays are commonly used for diagnoses due to their accessibility and low costs; however, detecting pneumonia through X-rays is challenging. Automated methods are needed, and machine learning can solve complex computer vision problems in medical imaging. This research develops a robust machine learning model for the early detection of pneumonia using chest X-rays, leveraging advanced image processing techniques and deep learning algorithms that accurately identify pneumonia patterns, enabling prompt diagnosis and treatment. The research develops a CNN model from the ground up and a ResNet-50 pretrained model This study uses the RSNA pneumonia detection challenge original dataset comprising 26,684 chest array images collected from unique patients (56% male, 44% females) to build a machine learning model for the early detection of pneumonia. The data are made up of pneumonia (31.6%) and non-pneumonia (68.8%), providing an effective foundation for the model training and evaluation. A reduced size of the dataset was used to examine the impact of data size and both versions were tested with and without the use of augmentation. The models were compared with existing works, the model’s effectiveness in detecting pneumonia was compared with one another, and the impact of augmentation and the dataset size on the performance of the models was examined. The overall best accuracy achieved was that of the CNN model from scratch, with no augmentation, an accuracy of 0.79, a precision of 0.76, a recall of 0.73, and an F1 score of 0.74. However, the pretrained model, with lower overall accuracy, was found to be more generalizable.Keywords
This publication has 26 references indexed in Scilit:
- Pneumonia Detection Proposing a Hybrid Deep Convolutional Neural Network Based on Two Parallel Visual Geometry Group Architectures and Machine Learning ClassifiersIEEE Access, 2022
- Review on Pneumonia Image Detection: A Machine Learning ApproachHuman-Centric Intelligent Systems, 2022
- Lung nodule detection and classification from Thorax CT-scan using RetinaNet with transfer learningJournal of King Saud University Computer and Information Sciences, 2022
- Automated pneumonia detection on chest X-ray images: A deep learning approach with different optimizers and transfer learning architecturesMeasurement, 2021
- Accuracy of deep learning for automated detection of pneumonia using chest X-Ray images: A systematic review and meta-analysisComputers in Biology and Medicine, 2020
- Investigation of the performance of Machine Learning Classifiers for Pneumonia Detection in Chest X-ray Images2020
- Image Optimization using Improved Gray-Scale Quantization for Content-Based Image Retrieval2020
- An Efficient Deep Learning Approach to Pneumonia Classification in HealthcareJournal of Healthcare Engineering, 2019
- ImageNet classification with deep convolutional neural networksCommunications of the ACM, 2017
- A survey of transfer learningJournal of Big Data, 2016