Submit your papersSubmit Now
For Enquiries: [email protected]
IIARD LogoIIARD

Multiclass Chest X-Ray Classification Using Transfer Learning with Resnet50: Performance Evaluation Across Varying Train-Test Configurations

Joshua Kolapo Awe,, Samson Afolabi Arekete, Olufade Falade Williams Onifade, Olufunmilayo Olopade,, Benjamin Segun Aribisala

Abstract

Chest X-ray imaging remains the most widely used diagnostic modality for chest X-ray abnormalities globally, yet its interpretation is heavily dependent on radiologist availability and is prone to inter-observer variability, particularly in low- and middle-income countries where specialist shortages delay diagnosis. While deep learning models have achieved radiologist-level accuracy in classifying chest X-ray abnormalities, many studies report performance on a single, fixed train-test split, leaving open the question of how the proportion of data allocated to training versus testing affects performance under severe class imbalance. This study developed and evaluated a multiclass chest X-ray classification model using transfer learning with ResNet50, and systematically compared its performance across four train-test split configurations. A master dataset of 93,853 chest X-ray images was assembled from four public sources (Chest X-ray Dataset for Tuberculosis Segmentation, Chest X-Ray Images (Pneumonia), NIH Chest X-rays, COVID-19 Radiography Database) and harmonised into eight diagnostic classes: COVID-19, Pneumonia, Tuberculosis, Pleural Effusion, Cardiomegaly, Atelectasis, Pneumothorax, and Normal. Following image preprocessing and class-weighted loss adjustment for dataset imbalance, a ResNet50-based convolutional neural network was trained using transfer learning. Four train-test split configurations (20/80, 40/60, 50/50, and 70/30) were compared, and the 20/80 split yielded the best overall performance, with 71.37% accuracy, 83.59% weighted precision, 71.37% weighted recall, and 75.72% weighted F1-score, alongside a macro-average ROC-AUC of 0.9020. The model performed strongly on Pneumonia and COVID-19 (F1-scores of 93% and 89%, respectively) but showed reduced precision for minority classes such as Atelectasis, Cardiomegaly, and Pneumothorax, largely attributable to systematic misclassification of Normal images rather than confusion among disease classes. These findings show that increasing the proportion of training data does not automatically improve generalisation under severe class imbalance, and highlight class imbalance as a key target for future model refinement. IJCSMT

Keywords

Chest X-rayMulticlass ClassificationDeep LearningTransfer LearningResNet50Class Imbalance. Words count :289

References

Blake, S. R., Das, N., Tadepalli, M., Reddy, B., Singh, A., Agrawal, R., Chattoraj, S., Shah, D., & Putha, P. (2023). Using artificial intelligence to stratify normal versus abnormal chest X- rays: External validation of a deep learning algorithm at East Kent Hospitals University NHS Foundation Trust. Diagnostics, 13(22), 3408. https://doi.org/10.3390/diagnostics13223408 Brady, A. P. (2017). Error and discrepancy in radiology: Inevitable or avoidable? Insights into Imaging, 8(1), 171–182. Chen, K. C., Yu, H. R., Chen, W. S., Lin, W. C., Lee, Y. C., Chen, H. H., Jiang, J. H., Su, T. Y., Tsai, C. K., Tsai, T. A., Tsai, C. M., & Lu, H. H. S. (2020). Diagnosis of common pulmonary diseases in children by X-ray images and deep learning. Scientific Reports, 10, 17374. https://doi.org/10.1038/s41598-020-73831-5 Gidde, P. S., Prakash, C. D., Saini, A., Yadav, M., Sethi, S., & Behera, S. K. (2021). Validation of expert system enhanced deep learning algorithm for automated screening for COVID- pneumonia on chest X-rays. Scientific Reports, 11, 23210. Lundervold, A. S., & Lundervold, A. (2019). An overview of deep learning in medical imaging focusing on MRI. Zeitschrift für Medizinische Physik, 29(2), 102–127. Rajpurkar, P., O'Connell, C., Schechter, A., Asnani, N., Li, J., Kiani, A., ... Lungren, M. P. (2020). CheXaid: Deep learning assistance for physician diagnosis of tuberculosis using chest X- rays in patients with HIV. NPJ Digital Medicine, 3(1), 115. Recht, M. P., Dewey, M., Dreyer, K., Langlotz, C., Niessen, W., Prainsack, B., & Smith, J. J. (2020). Integrating artificial intelligence into the clinical practice of radiology: Challenges and recommendations. European Radiology, 30(6), 3576–3584. Santosh, K. C. (2022). Advances in deep learning for tuberculosis screening using chest X-rays: The last 5 years review. Journal of Medical Systems, 46(11), 82.

More Articles from INTERNATIONAL JOURNAL OF COMPUTER SCIENCE AND MATHEMATICAL THEORY