Deep Learning-Based ResNet-50 Transfer Learning Approaches for Pneumonia Detection from Chest X-Ray Images: With and Without Fine-Tuning

Main Article Content

  Dwi Robiul Rochmawati
  Lidya Maryani

Abstract

Background: Pneumonia remains one of the leading causes of morbidity and mortality worldwide, particularly among children and older adults in low-resource settings. Diagnosis based on chest X-ray interpretation often depends on radiologist expertise, which may be limited in availability and prone to subjectivity. Deep learning offers a promising alternative to improve diagnostic efficiency and consistency.
Aims: This study aims to evaluate the effectiveness of the ResNet-50 architecture for pneumonia detection using chest X-ray images by comparing transfer learning with frozen layers and partial fine-tuning strategies.
Methods: A total of 5,856 chest X-ray images were obtained from a public dataset and divided into training, validation, and testing sets using stratified sampling. Data preprocessing included resizing, normalization, and augmentation. Two models were developed: (1) a frozen ResNet-50 model, where all convolutional layers were fixed, and (2) a fine-tuned ResNet-50 model, where the final convolutional layers were retrained. Performance was evaluated using accuracy, precision, recall, F1-score, and area under the ROC curve (AUC). Statistical tests were conducted to assess performance differences between the two models.
Results: The frozen model achieved an accuracy of 62.50% and an AUC of 0.4819, indicating weak classification performance. In contrast, the fine-tuned model demonstrated substantially higher accuracy of 85.90%, F1-score of 0.8967, and AUC of 0.9510, showing strong discriminative capability. Statistical analysis confirmed that the performance improvement in accuracy was significant.
Conclusion: Fine-tuning significantly enhances the applicability of ResNet-50 for pneumonia detection. Without feature adaptation, pretrained models struggle to generalize to medical imaging domains. Fine-tuned transfer learning provides a more reliable framework for developing computer-aided diagnostic systems, particularly in clinical environments with limited expert availability.

Downloads

Download data is not yet available.

Article Details

How to Cite
Rochmawati, D. R., & Maryani, L. (2025). Deep Learning-Based ResNet-50 Transfer Learning Approaches for Pneumonia Detection from Chest X-Ray Images: With and Without Fine-Tuning. Indonesian Journal of Health Research and Development, 3(3), 146–153. https://doi.org/10.58723/ijhrd.v3i3.507
Section
Research Articles

References

Aditya Pai, H., Pareek, P. K., Guruprasad, M. S., Chandrappa, S., & Bhargava, K. (2024). Pneumonia Detection in Chest X-Rays Using Combined Approach of Deep Learning. 2nd IEEE International Conference on Networks, Multimedia and Information Technology, NMITCON 2024. Scopus. https://doi.org/10.1109/NMITCON62075.2024.10699169

Alshanketi, F., Alharbi, A., Kuruvilla, M., Mahzoon, V., Siddiqui, S. T., Rana, N., & Tahir, A. (2025). Pneumonia Detection from Chest X-Ray Images Using Deep Learning and Transfer Learning for Imbalanced Datasets. Journal of Imaging Informatics in Medicine, 38(4), 2021–2040. Scopus. https://doi.org/10.1007/s10278-024-01334-0

Banik, D., & Bhattacharjee, D. (2022). Mitigating data imbalance issues in medical image analysis. In Research Anthology on Improving Medical Imaging Techniques for Analysis and Intervention (pp. 1215–1238). Scopus. https://doi.org/10.4018/978-1-6684-7544-7.ch063

Bhola, A., & Gulhane, M. (2024). Revolutionizing Pneumonia Diagnosis and Prediction Through Deep Neural Networks. In Optimized Predictive Models in Health Care Using Machine Learning (pp. 135–150). Scopus. https://doi.org/10.1002/9781394175376.ch9

Cabeza, N., Fajardo, C. A., & Pertuz, S. (2025). Evaluating the Impact of Class Imbalance on Breast Ultrasound Image Classification. 2025 25th Symposium of Image, Signal Processing, and Artificial Vision, STSIVA 2025. Scopus. https://doi.org/10.1109/STSIVA66383.2025.11156656

Dabre, K., Varma, S. L., & Patil, P. B. (2024). RAPID-Net: Reduced architecture for pneumonia in infants detection using deep convolutional framework using chest radiograph. Biomedical Signal Processing and Control, 87. Scopus. https://doi.org/10.1016/j.bspc.2023.105375

Gupta, A., Arora, S., Jain, M., & Jain, K. (2025). Comparative Analysis of ResNet-18 and ResNet-50 Architectures for Pneumonia Detection in Medical Imaging. 1096 LNNS, 355–365. Scopus. https://doi.org/10.1007/978-981-97-7178-3_31

Jihad, M., Siam, S., Anannya, L. A., Anonto, F. R., Safin Kamal, K. M., & Reza, A. W. (2025). Explainable Artificial Intelligence for Deep Learning-Based Detection of Pneumonia in Chest X-ray Images. 1408 LNNS, 273–287. Scopus. https://doi.org/10.1007/978-981-96-6297-5_21

Khojare, S., & Bhattacharjee, S. (2025). Pneumonia Identification based on Transfer Learning over Chest X-Ray Images. Proceedings of 2025 International Conference on Emerging Trends in Industry 4.0 Technologies, ICETI4T 2025. Scopus. https://doi.org/10.1109/ICETI4T63625.2025.11132185

Maheshwar, A. M., Hari Prasad, S., & Hemalatha, R. (2025). Pneumonia Detection using Chest X-Rays. 1396–1402. Scopus. https://doi.org/10.1109/ICICCS65191.2025.10984571

Manickam, A., Jiang, J., Zhou, Y., Sagar, A., Soundrapandiyan, R., & Dinesh Jackson Samuel, R. (2021). Automated pneumonia detection on chest X-ray images: A deep learning approach with different optimizers and transfer learning architectures. Measurement: Journal of the International Measurement Confederation, 184. Scopus. https://doi.org/10.1016/j.measurement.2021.109953

Michele, A., & Kusuma, G. P. (2021). Bacterial And Virus Pneumonia Infection Detection on Chest X-Ray Images Using Machine Learning. Journal of Theoretical and Applied Information Technology, 99(24), 5638–5649. Scopus.

Munna, M. S., Plabon, N. S., & Emon, A. P. (2025). Real-Time Multi-Class Pneumonia Detection in Chest X-Rays Using Optimized Deep Learning Methods. 2025 IEEE International Conference on Quantum Photonics, Artificial Intelligence, and Networking, QPAIN 2025. Scopus. https://doi.org/10.1109/QPAIN66474.2025.11171805

Musa, A., Adamu, M. I., Kakudi, H. A., Hernandez, M., & Lawal, Y. (2024). Analyzing Cross-Population Domain Shift in Chest X-Ray Image Classification and Mitigating the Gap with Deep Supervised Domain Adaptation. 15003 LNCS, 585–595. Scopus. https://doi.org/10.1007/978-3-031-72384-1_55

Musa, A., Prasad, R., & Hernandez, M. (2025). Addressing cross-population domain shift in chest X-ray classification through supervised adversarial domain adaptation. Scientific Reports, 15(1). Scopus. https://doi.org/10.1038/s41598-025-95390-3

Paul, M., & Naskar, R. (2023). Deep Learning Enabled Pneumonia Detection From Chest X-rays: A Transfer Learning Based Ensemble Classification Approach. 2023 IEEE 3rd International Conference on Smart Technologies for Power, Energy and Control, STPEC 2023. Scopus. https://doi.org/10.1109/STPEC59253.2023.10430698

Rani, S., & Kaur, N. (2024). Comparative Analysis of Pneumonia Detection from Chest X-ray Using Deep Learning. 1001 LNNS, 276–287. Scopus. https://doi.org/10.1007/978-3-031-60935-0_25

Rguibi, Z., Hajami, A., & Dya, Z. (2022). Automatic Searching of Deep Neural Networks for Medical Imaging Diagnostic. In Lecture Notes on Data Engineering and Communications Technologies (Vol. 110, pp. 129–140). Scopus. https://doi.org/10.1007/978-3-030-94188-8_13

Shah, U., Abd-Alrazeq, A., Alam, T., Househ, M., & Shah, Z. (2020a). An efficient method to predict pneumonia from chest X-rays using deep learning approach. 272, 457–460. Scopus. https://doi.org/10.3233/SHTI200594

Shah, U., Abd-Alrazeq, A., Alam, T., Househ, M., & Shah, Z. (2020b). An efficient method to predict pneumonia from chest X-rays using deep learning approach. 272, 457–460. Scopus. https://doi.org/10.3233/SHTI200594

Shakeri, E., & Far, B. (2024a). Advancing Pneumonia Classification and Detection: Comparative Analysis of Deep Learning Models Using Convolutional Neural Networks. 108–113. Scopus. https://doi.org/10.1109/IRI62200.2024.00033

Shakeri, E., & Far, B. (2024b). Advancing Pneumonia Classification and Detection: Comparative Analysis of Deep Learning Models Using Convolutional Neural Networks. 108–113. Scopus. https://doi.org/10.1109/IRI62200.2024.00033

Sharma, S., & Guleria, K. (2024). A systematic literature review on deep learning approaches for pneumonia detection using chest X-ray images. Multimedia Tools and Applications, 83(8), 24101–24151. Scopus. https://doi.org/10.1007/s11042-023-16419-1

Shirvalkar, R., & Remya Ajai, A. S. (2024). Enhancing Pneumonia Detection Accuracy Through ResNet-Based Deep Learning Models and Ensemble Techniques: A Study Using Chest X-Ray Images. 949 LNNS, 25–37. Scopus. https://doi.org/10.1007/978-981-97-1313-4_3

Shrimali, S. (2024). Optimizing Chest X-ray Analysis for Pneumonia Detection Through Comparative Evaluation of Transfer Learning CNN Architectures. 2024 IEEE 9th International Conference for Convergence in Technology, I2CT 2024. Scopus. https://doi.org/10.1109/I2CT61223.2024.10543957

Sohel, A., Rahman, M. M., Zubaer, T., Rifat, R. I., Majumder, P. P., & Bijoy, M. H. I. (2024). Improving Pneumonia Detection in X-ray Images with Hybrid Deep Learning Techniques. 2024 6th International Conference on Sustainable Technologies for Industry 5.0, STI 2024. Scopus. https://doi.org/10.1109/STI64222.2024.10951093

Surani, S., & Jain, N. K. (2025). Bronchopneumonia: Pathogenesis, clinical insights and therapeutic approaches (p. 492). Scopus. https://doi.org/10.52305/EVQE1662

Vemuri, S. S., Kotha, S., Voruganti, S., Kunam, P. R., Nandini, A., & Kumar Mishra, T. (2025). Pneumonia Detection from X-Ray Images Using Deep Transfer Learning. 2317 CCIS, 205–219. Scopus. https://doi.org/10.1007/978-3-031-79041-6_17

Virmani, A., Singh, A., Agarwal, R., Kumar, S., & Kumar, H. (2023). X-Ray-Based Pneumonia Detection Using ResNet50 and VGG16 Extracted Features and Conventional Machine Learning Algorithms. In Artificial Intelligence and Machine Learning: An Intelligent Perspective of Emerging Technologies (pp. 15–25). Scopus. https://doi.org/10.1201/9781003388319-2

Wang, K., Zhang, X., Huang, S., & Chen, F. (2019). Automatic detection of pneumonia in chest X-ray images using cooperative convolutional neural networks. 11858 LNCS, 328–340. Scopus. https://doi.org/10.1007/978-3-030-31723-2_28

Yaqin, A., Lintang Pamungkas, O. T., Satya, B., Kraugusteeliana, K., Frobenius, A. C., & Ferdiansyah, P. (2024). Pneumonia Disease Analysis Using Deep Learning on X-Ray Images. 804–808. Scopus. https://doi.org/10.1109/ICIMCIS63449.2024.10956956