Research Article

Performance Analysis of Residual Networks for Pneumonia Diagnosis on Chest X-Rays

Tanjing Zhang*
Department of Chemical and Biomolecular Engineering, Johns Hopkins University, Baltimore, MD, USA

* Corresponding author: [email protected]

Abstract

ResNets have demonstrated exceptional capabilities in image classification tasks, making them a promising tool for clinical applications. This study evaluates the performance of deep learning Residual Networks (ResNets) in classifying chest X-ray images for pneumonia diagnosis. Five ResNet variants: ResNet18, ResNet34, ResNet50, ResNet101, and ResNet152 are compared on their performance training on the same dataset of chest X-ray images, which included positive and negative diagnoses. The models were trained on a subset of images and tested on a separate set to assess their accuracy and consistency. Our results indicate that ResNet50 achieves the highest accuracy in predictions, while ResNet34 demonstrates the most consistent performance across trials. These findings provide valuable insights into selecting the most suitable ResNet variant for binary classification tasks involving chest X-rays, particularly when considering factors such as computational resource availability and accuracy requirements.

Keywords: Residual Network; Medical Image Classification; Pneumonia; X-ray images; Deep Learning
Published: March 7, 2025
DOI: 10.54254/2755-2721/2025.21363
Volume: ACE Vol.138
pp. 104-109
Download PDF

References

  1. Johns Hopkins Medicine.​ (n.​d.​).​ Pneumonia.​ Johns Hopkins Medicine.​ https:​/​/​www.​hopkinsmedicine.​org/​health/​conditions-​and-​diseases/​pneumonia
  2. Ahmad, H.​ K.​, Milne, M.​ R.​, Buchlak, Q.​ D.​, Ektas, N.​, Sanderson, G.​, Chamtie, H.​, Karunasena, S.​, Chiang, J.​, Holt, X.​, Tang, C.​ H.​ M.​, Seah, J.​ C.​ Y.​, Bottrell, G.​, Esmaili, N.​, Brotchie, P.​, &​ Jones, C.​ (2023).​ Machine learning augmented interpretation of chest x-​rays:​ A systematic review.​ Diagnostics, 13(4), 743.​ https:​/​/​doi.​org/​10.​3390/​diagnostics13040743
  3. Yamashita, R.​, Nishio, M.​, Do, R.​ K.​ G.​, &​ Togashi, K.​ (2018).​ Convolutional neural networks:​ An overview and application in radiology.​ Insights into Imaging, 9(4), 611–629.​ https:​/​/​doi.​org/​10.​1007/​s13244-​018-​0639-​9
  4. Yang, J.​, Shi, R.​, Wei, D.​, Liu, Z.​, Zhao, L.​, Ke, B.​, Pfister, H.​, &​ Ni, B.​ (2023).​ MedMNIST v2—A large-​scale lightweight benchmark for 2D and 3D biomedical image classification.​ Scientific Data, 10(1), 41.​ https:​/​/​doi.​org/​10.​1038/​s41597-​022-​01721-​8
  5. Nambu, A.​ (2014).​ Imaging of community-​acquired pneumonia:​ Roles of imaging examinations, imaging diagnosis of specific pathogens and discrimination from noninfectious diseases.​ World Journal of Radiology, 6(10), 779.​ https:​/​/​doi.​org/​10.​4329/​wjr.​v6.​i10.​779
  6. Xu, W.​, Fu, Y.​-​L.​, &​ Zhu, D.​ (2023).​ ResNet and its application to medical image processing:​ Research progress and challenges.​ Computer Methods and Programs in Biomedicine, 240, 107660.​ https:​/​/​doi.​org/​10.​1016/​j.​cmpb.​2023.​107660
  7. Sarwinda, D.​, Paradisa, R.​ H.​, Bustamam, A.​, &​ Anggia, P.​ (2021).​ Deep learning in image classification using residual network (Resnet) variants for detection of colorectal cancer.​ Procedia Computer Science, 179, 423–431.​ https:​/​/​doi.​org/​10.​1016/​j.​procs.​2021.​01.​025
  8. Athisayamani, S.​, Antonyswamy, R.​ S.​, Sarveshwaran, V.​, Almeshari, M.​, Alzamil, Y.​, &​ Ravi, V.​ (2023).​ Feature extraction using a residual deep convolutional neural network (ResNet-​152) and optimized feature dimension reduction for mri brain tumor classification.​ Diagnostics, 13(4), 668.​ https:​/​/​doi.​org/​10.​3390/​diagnostics13040668
  9. Tang, S.​, Jing, C.​, Jiang, Y.​, Yang, K.​, Huang, Z.​, Wu, H.​, Cui, C.​, Shi, S.​, Ye, X.​, Tian, H.​, Song, D.​, Xu, J.​, &​ Dong, F.​ (2023).​ The effect of image resolution on convolutional neural networks in breast ultrasound.​ Heliyon, 9(8), e19253.​ https:​/​/​doi.​org/​10.​1016/​j.​heliyon.​2023.​e19253
  10. Neuman, M.​ I.​, Lee, E.​ Y.​, Bixby, S.​, Diperna, S.​, Hellinger, J.​, Markowitz, R.​, Servaes, S.​, Monuteaux, M.​ C.​, &​ Shah, S.​ S.​ (2012).​ Variability in the interpretation of chest radiographs for the diagnosis of pneumonia in children.​ Journal of Hospital Medicine, 7(4), 294–298.​ https:​/​/​doi.​org/​10.​1002/​jhm.​955
  11. He, K.​, Zhang, X.​, Ren, S.​, &​ Sun, J.​ (2015).​ Deep residual learning for image recognition.​ arXiv.​ https:​/​/​doi.​org/​10.​48550/​ARXIV.​1512.​03385
  12. Fawcett, T.​ (2006).​ An introduction to ROC analysis.​ Pattern Recognition Letters, 27(8), 861–874.​ https:​/​/​doi.​org/​10.​1016/​j.​patrec.​2005.​10.​010
  13. Mastering resnet:​ Deep learning breakthrough in image recognition.​ (n.​d.​).​ Retrieved January 21, 2025, from https:​/​/​www.​ikomia.​ai/​blog/​mastering-​resnet-​deep-​learning-​image-​recognition