Machine learning and machine learned prediction in chest X-ray images
Shereiff Garrett, Abhinav Adhikari, Sarina Gautam, Da’Shawn M. Morris, Chandra M. Adhikari · 2025
Read Machine learning and machine learned prediction in chest X-ray images by Shereiff Garrett, Abhinav Adhikari, Sarina Gautam, Da’Shawn M. Morris, Chandra M. Adhikari (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2507-23455.txt.
Introduction
Shereiff Garrett and co-authors compared two learning algorithms at reading chest X-rays for signs of disease, in a 2025 paper. Their test set held 5,824 chest images. A plain convolutional network served as the baseline, against a deeper standard design called DenseNet-121. Both models did very well on the two-way classification task set for them.
Heat maps of the models' attention showed the deeper network focused more precisely on the image regions that matter for the decision. The baseline spread its attention more loosely. The authors present the comparison as a teaching example of machine-learned prediction in medical imaging. They note that where a model looks is part of whether its answers deserve trust. The work stays at the level of a methods demonstration rather than a clinical claim.
Catalog record
| CREATOR | Shereiff Garrett, Abhinav Adhikari, Sarina Gautam, Da’Shawn M. Morris, Chandra M. Adhikari |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 24 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2507-23455
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Machine learning and machine learned prediction in chest X-ray images Shereiff Garrett, Abhinav Adhikari, Sarina Gautam, Da’Shawn M. Morris, Chandra M. Adhikari Abstract Machine learning and artificial intelligence are fast-growing fields of research in which data is used to train algorithms, learn patterns, and make predictions. This approach helps to solve seemingly intricate problems with significant accuracy without explicit programming by recognizing complex relationships in data. Taking an example of 5824 chest X-ray images, we implement two machine learning algorithms, namely, a baseline convolutional neural network (CNN) and a DenseNet-121, and present our analysis in making machine-learned predictions in predicting patients with ailments. Both baseline CNN and DenseNet-121 perform very well in the binary classification problem presented in this work. Gradient-weighted class activation mapping shows that DenseNet-121 correctly focuses on essential parts of the input chest X-ray images in its decision-making more than the baseline CNN. I INTRODUCTION Systems that can be expressed and explained by known physical, mathematical, or logical laws are better understood through theoretical models, as they offer precise, interpretable, and generalizable predictions, providing direct insight into cause-and-effect relationships. Some systems are so intricate, with unclear dynamics of their parameters, that presenting input-output relationships in a closed form of a mathematical model is difficult or not feasible at all, or theories are impractical and/or incomplete. As machine learning (ML) can adapt to real-world messiness and make predictions using Artificial intelligence (AI), a data-driven approach can be a wise choice to tackle such a system, provided a sufficiently large dataset is available. Disease diagnosis is one of many areas where ML and AI have great potential to revolutionize the diagnosis process by reviewing immense amounts of images and performing image classification. Neural networks (NNs), inspired by the human brain, have demonstrated human-level performance across multiple task domains, although the NN is based on statistical measures and relies on human-simulated intelligence programmed and controlled through algorithms. One node of an NN mimics the brain’s smallest measured unit, such as a voxel. The input layer of the NN mimics the raw data received by sensory organs and/or the primary cortex, such as the eyes, skin, or ears. NN’s hidden layers imitate the intermediate processing of the brain, as done by the neocortex, to extract hierarchical features analogous to the deeper processing steps that occur in the brain. Output layer of NN copies the functionality of motor cortex, aka brain’s decision regions, to produce final action or classification akin to behavior/output in brain NaMaAoKa2021 The article aims at two objectives. First, we briefly review two different approaches to NNs: the baseline Convolutional Neural Network (CNN) MaLeMi2019 and a densely connected DenseNet-121 CNN GaZh_IEEE_2018 , used in this study, which takes advantage of an open-source deep-learning framework called PyTorch Paszke_2019_PyTorch , a Python library. PyTorch utilizes tensors as a fundamental data structure, enabling researchers to modify the network’s behavior in real-time. Second, we implement these neural network techniques to analyze chest X-ray images with the aim of accurately predicting the presence of an ailment in the chest and demonstrating the capabilities of ML and AI. Pneumonia is one of the leading causes of illness and death worldwide, especially in more vulnerable populations BoGrMaLu2025 ; SaScAs2021 ; ObMuAd2025 . According to the ”National Center for Health Statistics” report of the Centers for Disease Control and Prevention (CDC) for 2023, pneumonia is the eleventh leading cause of death in the USA. For the 0-19 age group, it was listed as the 9th leading cause of death and the second among the disease-related deaths behind COVID-19 in the year 2019 FlWhSe2023 . In 2023, approximately 1.5 million patients visited emergency departments with pneumonia as the primary diagnosis, caused by infectious organisms, and pneumonia resulted in the deaths of 41,210 patients, which is 1.23 per 10,000 population CDC_2023_Pneumonia . A Rapid and accurate diagnosis from chest X-rays is critical and can be challenging. It is worth noting that deep Learning has shown considerable promise in automating and supporting the clinical interpretation of X-ray images. Reliable and interpretable AI tools can assist radiologists in accurately identifying any ailment present in images, aiding in diagnosis. The baseline CNN is a custom-designed neural network that utilizes convolutional layers for feature extraction and fully connected layers for classification. It uses a gray image of dimensions 1\times 32\times 32 or a color image of dimensions 3\times 32\times 32 , where the first numbers 1 and 3 denote the number of channels (1 for gray and 3 for RGB), while 32s are the height and width of the images in pixels. A densely connected CNN, such as DenseNet121, however, has an input size of 3\times 224\times 224 . It features a deep and pre-trained architecture with multiple layers. In this project, we compare the effectiveness of these two deep learning models for pneumonia detection on chest X-ray images, assessing both classification performance and model interpretability. II Methods Taking the chest X-ray dataset from Kaggle, which contains 5824 JPEG images with two labels, namely, NORMAL and PNEUMONIA chest-x-rays-qjmia , we investigate the effectiveness of ML models to predict pneumonia images correctly. This work will support researchers focusing on automating ML/AI-based methods to detect and classify human diseases from medical images. All low-quality or unreadable scans of chest X-rays were removed to have a better data-driven analysis. The dataset was split into training, validation, and test sets for fair evaluation, with distributions of 88%, 8%, and 4%, respectively. Preprocessing involves the application of auto-orientation, resizing, and normalizing each image to the same size. Images were augmented, allowing the saturation, brightness, and exposure to vary by only 5% to above or below the values of the original X-rays. These image data were used to train separate baseline CNN and DenseNet 121 deep learning architectures and were evaluated using various metrics, including confusion matrices SaRo2024 ; St1997 , receiver operating characteristic (ROC) curves JuDe2018 , and the area under the curve (AUC) in ROC curves Na2022 . Figure 1: Work flow. The test performance was tested for both models. To interpret the observations and predictions done by these models, the Gradient-weighted Class Activation Mapping (Grad-CAM) SeCo2020 model interpretability technique was used. Grad-CAM exploits the gradients of the target class percolating through the final convolutional layer to create a heat-map highlighting important regions in the input image. Figure 1 shows the workflow followed in this binary classification with ML and AI. Before presenting the results, a brief discussion on each of the NNs employed to learn chest X-rays in this article is in order. II.1 Baseline CNN A baseline CNN is a simple yet effective neural network model used to establish a minimum standard for performance in a specific deep learning task, typically in image classification, object detection, segmentation, and/or segmentation. It usually acts as a benchmark for evaluating more complex models, not only by providing insight into whether deeper models are really helping, but also helps to validate data pipeline, loss functions, and training setup, and in turn provides a starting point for improvement of model via architecture tuning, augmentation, regularization, and hyperparamenter adjustment if needed. The baseline CNN follows the sequential connectivity in such a way that each layer builds upon the immediately preceding feature