COMPARISON OF PERFORMANCE AND COMPUTATIONAL COMPLEXITY OF CNN AND RESNET50 FOR PNEUMONIA CLASSIFICATION
DOI:
https://doi.org/10.34288/jri.v8i4.578Keywords:
Deep Learning, CNN, ResNet50, Transfer Learning, Pneumonia classificationAbstract
Pneumonia is an acute infection of the lung tissue and the leading cause of death among children under five years of age worldwide. Diagnosis based on chest X-ray images is considered prone to misinterpretation, particularly in mild cases that appear similar to normal lung conditions. CNN is one of the most widely used deep learning models in medical image analysis; however, selecting the appropriate architecture between scratch-built models and transfer learning requires further evaluation, particularly regarding the trade-off between classification performance and computational complexity, an aspect that remains largely unaddressed in prior studies on medical image classification. This study aims to compare the classification performance and computational complexity of a CNN and a pre-trained ResNet50 model using transfer learning for binary pneumonia classification on chest X-ray images. The dataset used is the Chest X-Ray Images (Pneumonia) from Kaggle (Mooney, 2018), comprising 5,856 images: 1,583 in the NORMAL class and 4,273 in the PNEUMONIA class. Both models were trained under the same conditions and evaluated using the metrics accuracy, precision, recall, F1-score, ROC-AUC, and computational complexity, measured by model size, number of parameters, training time, and memory consumption. The results show that the CNN outperforms the ResNet50 across all classification metrics, achieving 98,81% accuracy, 99,07% precision, 99,30% recall, 99,18% F1-score, and 0,9978 AUC. In terms of computational complexity, the CNN has a smaller model size, shorter training time, and lower memory consumption
Downloads
References
Aina, S., Salmah, U., & Abdullah, Muhammad, T. (2025). FAKTOR RISIKO KEJADIAN PNEUMONIA PADA BALITA DI WILAYAH KERJA PUSKESMAS BIRA KOTA MAKASSAR TAHUN 2024 Risk. Hasanuddin Journal of Public Health, 6(1), 46–55. doi:10.30597/hjph.v6i1.36291
Akbar, I., Supriadi, F., & Indra Junaedi, D. (2025). Pemanfaatan Machine Learning Di Bidang Kesehatan. JATI (Jurnal Mahasiswa Teknik Informatika), 9(1), 1744–1749. doi:10.36040/jati.v9i1.12663
Andriani, D. W., Hadi Endaryanto, A., Priasmoro, D. P., & Abdullah, A. (2022). Pengaruh Latihan Jalan 6 Menit Terhadap Tingkat Kebugaran Pasien Pneumonia Ringan Dan Sedang Di RS Husada Utama Surabaya. Jurnal Keperawatan Muhammadiyah, 7(1), 2022. doi:10.30651/jkm.v7i1.10838
Dewi, N., & Ismawan, F. (2021). Implementasi Deep Learning Menggunakan Cnn Untuk Sistem Pengenalan Wajah. Faktor Exacta, 14(1), 34. doi:10.30998/faktorexacta.v14i1.8989
Fitria, N. U., Adharani, Y., Meilina, P., & Risanty, R. D. (2025). Identifikasi Pneumonia Pada Anak Berbasis Citra X-Ray Paru-Paru Menggunakan Metode Convolutional Neural Network (CNN), 1–2. Retrieved from https://jurnal.umj.ac.id/index.php/semnastek/article/view/27659/12157
Khani, N. I., & Rakasiwi, S. (2025). Penerapan Convolutional Neural Network dengan ResNet-50 untuk Klasifikasi Penyakit Kulit Wajah Efektif. Edumatic: Jurnal Pendidikan Informatika, 9(1), 217–225. doi:10.29408/edumatic.v9i1.29572
Khasanah, N., & Winnarto, M. N. (2024). Application of Deep Learning with ResNet50 for Early Detection of Melanoma Skin Cancer. Journal Medical Informatics Technology, 16–20. doi:10.37034/medinftech.v2i1.31
Kim, H. E., Cosa-Linan, A., Santhanam, N., Jannesari, M., Maros, M. E., & Ganslandt, T. (2022). Transfer learning for medical image classification: a literature review. BMC Medical Imaging, 22(1), 1–13. doi:10.1186/s12880-022-00793-7
M, M. M., T. R, M., V, V. K., & Guluwadi, S. (2024). Enhancing brain tumor detection in MRI images through explainable AI using Grad-CAM with Resnet 50. BMC Medical Imaging, 24(1), 1–19. doi:10.1186/s12880-024-01292-7
Muslih, M., & Rachmawanto, E. H. (2022). Convolutional Neural Network (Cnn) Untuk Klasifikasi Citra Penyakit Diabetes Retinopathy. Skanika, 5(2), 167–176. doi:10.36080/skanika.v5i2.2945
Nugraheny, R. A., Ferdinandus, E. D., & Husada, D. (2026). Hubungan Imunisasi Dasar Lengkap dengan Kejadian Pneumonia pada Balita di Indonesia Tahun 2020-2025 : Studi Literatur, 5(1). doi:10.57218/jkl.Vol5.Iss1.2447
Pariyasto, S., Arfeni Warongan, V., & Suryani. (2025). Otimalisasi klasifikasi citra medis menggunakan cnn dan adam optimizer dengan paramater minimum. Journal of Science and Social Research, 8(1), 691–701. Retrieved from https://jurnal.goretanpena.com/index.php/JSSR/article/view/2515
Putra, G., Puja, H., Haerani, E., & Syafria, F. (2024). Implementation of Convolutional Neural Network Algorithm ( ResNet-50 ) for Benign and Malignant Skin Cancer Classification Implementasi Algoritma Convolutional Neural Network ( Resnet-50 ) untuk Klasifikasi Kanker Kulit Benign dan Malignant, 4(July), 984–992. doi:10.57152/malcom.v4i3.1398
Raihan, R., Alam, C. N., & Zulfikar, W. B. (2025). Deteksi Pneumonia pada Citra Akhir X – Ray Dada Menggunakan Convolutional Neural Networks Berdasarkan Fitur Prewitt Operator. INTERNAL (Information System Journal), 8(1), 24–36. doi:10.32627/internal.v8i1.1380
anjaswanti, Rizky, N., R, A., & Leonita, A. (2022). STUDI META-ANALISIS: FAKTOR RISIKO KEJADIAN PNEUMONIA PADA BALITA DI INDONESIA TAHUN 2016-2021 Meta-Analysis Study: Risk Factors for Pneumonia Incidence at Toddlers in Indonesia 2016-2021. Journal Of Community Mental Health And Public Policy, 2655, 56–70. doi:0.51602/cmhp.v4i2.65
Sarki, R., Ahmed, K., Wang, H., Zhang, Y., & Wang, K. (2022). Automated detection of COVID-19 through convolutional neural network using chest x-ray images. PLoS ONE, 17(1 January), 1–26. doi:10.1371/journal.pone.0262052
Suherman, E., Rahman, B., Hindarto, D., & Santoso, H. (2023). Implementation of ResNet-50 on End-to-End Object Detection (DETR) on Objects. SinkrOn, 8(2), 1085–1096. doi:10.33395/sinkron.v8i2.12378
Tamba, M. (2024). Analisis dan implementasi teknologi deep learning dalam pengolahan citra digital. Circle Archive, 1(6), 1–7.
Wona, M. M. A., Rahayu, W., & Wirantasa, U. (2025). KLASIFIKASI DAN DETEKSI PENYAKIT KULIT MELALUI PENGOLAHAN CITRA DENGAN METODE CNN, 06(01), 43–51. doi:10.30998/jrami.v6i01.9210
World Health Organization. (2022). Pneumonia in children. Retrieved 26 April 2026, from https://www.who.int/news-room/fact-sheets/detail/pneumonia
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 tam pran noto NOTO, supatman supatman

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
The Jurnal Riset Informatika has legal rules for accessing digital electronic articles uunder a Creative Commons Attribution-NonCommercial 4.0 International License . Articles published in Jurnal Riset Informatika, provide Open Access, for the purpose of scientific development, research, and libraries.










