Optimizing CNN Architectures for Advanced Thoracic Disease Classification
Tejas Mirthipati · 2025
Read Optimizing CNN Architectures for Advanced Thoracic Disease Classification by Tejas Mirthipati (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-2502-10614.txt.
Introduction
Tejas Mirthipati compares convolutional neural network designs for spotting chest diseases on X-rays, in a 2025 study. The setups cover binary classification, multi-label classification, and a ResNet50 model. Thoracic disease detection is a proven use of such networks, but three problems dog it: skewed datasets, uneven image quality, and hidden bias.
The study adds preprocessing with principal component analysis to compress the images, and a class weighted loss that charges more for missing rare diseases. Results support the promise of these networks for medical imaging. They also stress that imbalance and variation in how images are acquired must be handled before performance peaks. The paper reads as a practical survey of fixes.
Catalog record
| CREATOR | Tejas Mirthipati |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 12 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2502-10614
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Optimizing CNN Architectures for Advanced Thoracic Disease Classification Tejas Mirthipati Abstract Machine learning, particularly convolutional neural networks (CNNs), has shown promise in medical image analysis, especially for thoracic disease detection using chest X-ray images. In this study, we evaluate various CNN architectures, including binary classification, multi-label classification, and ResNet50 models, to address challenges like dataset imbalance, variations in image quality, and hidden biases. We introduce advanced preprocessing techniques such as principal component analysis (PCA) for image compression and propose a novel class-weighted loss function to mitigate imbalance issues. Our results highlight the potential of CNNs in medical imaging but emphasize that issues like unbalanced datasets and variations in image acquisition methods must be addressed for optimal model performance. I Introduction The integration of machine learning (ML) techniques in medical imaging has transformed traditional healthcare practices, enabling automated analysis of complex medical data. Among various ML techniques, convolutional neural networks (CNNs) have become a cornerstone for tasks such as image classification, segmentation, and object detection in medical imaging [ 1 ] , [ 2 ] . CNNs are particularly effective in processing pixel data, making them ideal for analyzing chest X-ray images, a crucial diagnostic tool for detecting thoracic diseases such as pneumonia, tuberculosis, and cardiomegaly. Despite their effectiveness, CNNs face significant challenges in the medical imaging domain, including dataset imbalance, noisy labels, variations in image quality, and complex multi-label classification tasks [ 3 ] , [ 4 ] . In datasets like ChestX-ray14, these challenges are exacerbated by the prevalence of diseases such as ”No Finding,” which dominate the dataset and can lead to models that are biased towards detecting only the most frequent labels [ 7 ] . Moreover, variations in imaging conditions—such as differences in X-ray positioning (front-to-back vs. back-to-front)—can introduce noise into the model training process, further complicating the task. This paper presents a detailed study of CNN-based models for chest X-ray image classification. We investigate various architectures, including binary and multi-label classifiers, to classify a range of thoracic diseases. Additionally, we propose advanced preprocessing techniques, such as image resizing and PCA compression, to optimize model efficiency and reduce computational costs. To address class imbalance, we introduce a novel class-weighted loss function. We also explore the impact of additional metadata, such as patient demographics, on model performance, which has been an area of increasing interest in the context of personalized medicine [ gao2018deep ] . This work aims to improve the accuracy, robustness, and generalizability of CNN models for medical image classification tasks. II Related Work The application of deep learning techniques, particularly CNNs, to medical imaging has been extensively explored in recent years. One of the pioneering studies in this domain was by Rajpurkar et al. [ 2 ] , where a deep CNN model was developed to diagnose pneumonia from chest X-rays, outperforming radiologists in some cases. In a similar vein, [ 3 ] addressed multi-label classification problems in medical images, specifically in classifying chest X-rays into multiple disease categories. However, one of the most persistent challenges in this area is the inherent class imbalance in the datasets, where rare diseases are underrepresented, leading to biased predictions [ 9 ] . Recent work by [ 6 ] proposed an advanced multi-label classification framework designed specifically for medical image datasets, allowing for the simultaneous prediction of multiple diseases in a single X-ray image. This framework addressed the problem of missing data by employing advanced imputation techniques. Additionally, data augmentation and synthetic data generation have been explored to balance the dataset and improve model robustness [ 5 ] . While these methods have been shown to enhance performance in some cases, they still face limitations, particularly in high-dimensional medical image datasets like ChestX-ray14. In this study, we build upon these existing works by integrating class-weighted loss functions and leveraging PCA-based image compression to address dataset imbalance and reduce computational complexity. We also propose the inclusion of patient demographic information and additional metadata to improve the model’s ability to generalize across diverse patient populations and imaging conditions. III Problem Definition The main challenges in classifying thoracic diseases from chest X-ray images include dataset imbalance, multi-label classification, and image quality variations. The ChestX-ray14 dataset, for example, contains a disproportionate number of images labeled as ”No Finding,” which dominate the dataset and lead to biased models that are less effective in detecting rarer diseases [ 9 ] . Additionally, the presence of multiple diseases in a single image makes multi-label classification an essential task in this context. Further complicating this problem is the variation in image quality due to differences in X-ray acquisition methods. In particular, images can be taken from different orientations, such as front-to-back or back-to-front, which introduces noise and reduces the consistency of the dataset. To address these challenges, we propose an approach that integrates advanced preprocessing techniques, including PCA-based image compression and class-weighted loss functions, to improve model accuracy and reduce bias. IV Data Collection and Preprocessing The ChestX-ray14 dataset consists of 112,120 X-ray images from 30,805 unique patients, labeled with one or more of 14 thoracic diseases [ 7 ] . The dataset is highly imbalanced, with ”No Finding” being the most frequent label. To mitigate this issue, we selected a subset of approximately 20,000 images for model training. These images were resized to 256x256 pixels to reduce memory usage and increase training efficiency. We applied Principal Component Analysis (PCA) to compress the images, retaining 100% of the variance with only 40 components. This compression technique significantly reduces the computational complexity while preserving the essential features of the X-ray images [ 8 ] . The resulting images were then transformed into multidimensional arrays and saved as NumPy files for use in model training. In addition to image preprocessing, we transformed the metadata to facilitate multi-label classification. Each image in the original dataset was associated with multiple rows, each containing a different disease label. We restructured the data so that each image was represented by a single row containing all its disease labels, making it suitable for training multi-label classification models. Fig. 1: Patient Demographics Analysis To determine the number of components that are required to retain enough variance, our team analyzed the compression performance of PCA. Below is the image sample that was used to visualize how the number of components affects the variance retention across the three channels. Fig. 2: PCA Compression Analysis for Variance Retention V Methodology V-A CNN Architectures We began our experimentation with a simple binary classification CNN model designed to classify chest X-ray images as either ”No Finding” or ”Disease Present.” The model consisted of three convolutional layers, each with 32 filters and a kernel size of 3, followed by a dense layer with 128 nodes. The architecture was trained using the Adam optimizer with a learning rate of 0.001. For the multi-label classification task, we extended the binary model to predict the presence of multiple diseases in a single chest X-ray image. The architecture included additional convolutional layers and fully connected layers to capture the complex relationships between the diseases. We used a sigmoid activation function in the final layer to handle the multi-label classification task. Additionally, we explored the use of ResNet50, a deeper CNN architecture with residual