Perbandingan CNN Dan ResNet50 Dalam Klasifikasi Tuberkulosis Pada Citra X-Ray Paru

Authors

  • Muhammad Fathir Aulia Universitas Islam Negeri Sumatera Utara, Medan
  • Muhammad Ikhsan Universitas Islam Negeri Sumatera Utara, Medan

DOI:

https://doi.org/10.30865/jurikom.v13i1.9554

Keywords:

Tuberkulosis, Chest X-ray, ResNet50, Transfer Learning, Image Classification, Convolutional Neural Network

Abstract

Tuberculosis (TB) remains a global health problem and requires rapid and consistent early screening. Chest X-rays are widely used because they are practical and economical, but manual interpretation is highly dependent on experts, which can lead to subjectivity, fatigue, and delayed diagnosis. This study aims to compare the performance of a basic Convolutional Neural Network (CNN) and a transfer learning-based ResNet50 in classifying lung X-ray images into two classes, namely TB and Normal, as well as to assess the trade-off between accuracy and computational efficiency. The dataset used is a balanced subset of 1,000 images (500 TB and 500 Normal) divided into 70% training data, 15% validation, and 15% testing with a fixed seed to ensure reproducible experiments. Preprocessing was performed by resizing the images to 224×224 pixels and normalizing the pixel values. ResNet50 used a preprocessing scheme in accordance with the pretrained model. Evaluation was performed using a confusion matrix and accuracy, precision, recall, and F1-score metrics. The test results show that CNN achieved an accuracy of 98.00% with three classification errors, while ResNet50 achieved an accuracy of 99.33% with one classification error and average precision, recall, and F1-score metrics above 0.99. In terms of efficiency, the CNN training time was approximately 40.46 seconds, while ResNet50 took a total of approximately 226.99 seconds. In the robustness test, the CNN inference time was approximately ±100 ms/image and ResNet50 was approximately ±1,900 ms/image. These findings indicate that ResNet50 excels in accuracy and generalization stability, while CNN is more efficient for fast response and limited resource requirements.

References

[1] A. Rasyid and L. Heryawan, “Klasifikasi Penyakit Tuberculosis (TB) Organ Paru Manusia Berdasarkan Citra Rontgen Thorax Menggunakan Metode Convolutional Neural Network (CNN),” J. Manaj. Inf. Kesehat. Indones., vol. 11, no. 1, pp. 35–44, 2023, doi: 10.33560/jmiki.v11i1.484.

[2] P. P. Aldi Akbar Alimi, Ahmad Rio Adriansyah, “PENGEMBANGAN SISTEM DETEKSI TUBERKULOSIS PADA CITRA X-RAY MENGGUNAKAN METODE CONVOLUTIONAL NEURAL NETWORK (CNN) DENGAN FRAMEWORK LARAVEL,” J. Inform. Terpadu, vol. 10, no. 2, pp. 129–138, 2024, [Online]. Available: https://journal.nurulfikri.ac.id/index.php/JIT

[3] Y. Aldiansyah, P. R. Fadilah, E. P. Nainggolan, A. P. Susilo, and P. Rosyani, “Penerapan Klasifikasi CNN Kepada Citra X-Ray Untuk Deteksi Tuberkolosis,” JURIHUM J. Inov. dan Hum., vol. 2, no. 3, pp. 471–476, 2024.

[4] G. P. H. P. Gusti, E. Haerani, F. Syafria, F. Yanto, and S. K. Gusti, “Implementation of convolutional neural network algorithm (ResNet-50) for benign and malignant skin cancer classification,” MALCOM Indones. J. Mach. Learn. Comput. Sci., vol. 4, no. 3, pp. 984–992, 2024.

[5] G. M. A. Sihotang and J. Supardi, “Pengembangan Model CNN ResNet-18 untuk Klasifikasi Kondisi Gigi Berbasis Citra RGB sebagai Solusi Diagnostik Digital,” J. Pendidik. dan Teknol. Indones., vol. 4, no. 12, pp. 747–758, 2024, doi: 10.52436/1.jpti.568.

[6] F. Y. Sulistia and A. Vatresia, “Penerapan Deep Learning Menggunakan Convolutional Neural Network (CNN) Untuk Klasifikasi Daging Ayam Menggunakan Arsitektur Resnet-50,” INTECOMS J. Inf. Technol. Comput. Sci., vol. 7, no. 3, pp. 685–691, 2024, doi: 10.31539/intecoms.v7i3.10087.

[7] B. S. Nusantara and M. Akbar, “Klasifikasi Penyakit Tuberculosis Berdasarkan Citra Rontgen Thorax Menggunakan Multi-Scale Convolutional Neural Network,” sudo J. Tek. Inform., vol. 3, no. 1, pp. 1–8, 2024, doi: 10.56211/sudo.v3i1.483.

[8] N. Fitriah, IMPLEMENTASI ALGORITMA CONVOLUTIONAL NEURAL NETWORK DALAM KLASIFIKASI KEPARAHAN LUKA KAKI PENDERITA DIABETES MELLITUS TIPE 2. Medan: UINSU Press, 2025.

[9] M. B. Kurniawan and E. Utami, “Perbandingan Kinerja ResNet50, VGG16, dan MobileNetV2 untuk Klasifikasi Tumor Otak pada Citra MRI,” J. Sist. Inf., vol. 14, no. 2, pp. 767–777, 2025, [Online]. Available: http://sistemasi.ftik.unisi.ac.id

[10] Arimbi Puspitasari, Diana Sava Salsabila, and Dwi Roliawati, “Penerapan ResNet50-CNN untuk Optimalisasi Klasifikasi pada Data Fashion,” Indones. J. Data Sci., vol. 3, no. 1, pp. 1–12, 2025, doi: 10.30989/ijds.v3i1.1533.

[11] A. Ridhovan and A. Suharso, “Penerapan Metode Residual Network (Resnet) Dalam Klasifikasi Penyakit Pada Daun Gandum,” JIPI (Jurnal Ilm. Penelit. dan Pembelajaran Inform., vol. 7, no. 1, pp. 58–65, 2022, doi: 10.29100/jipi.v7i1.2410.

[12] U. Kulsum and A. Cherid, “Penerapan Convolutional Neural Network Pada Klasifikasi Tanaman Menggunakan ResNet50,” Simkom, vol. 8, no. 2, pp. 221–228, 2023, doi: 10.51717/simkom.v8i2.191.

[13] F. P. Daviana, A. Aryanti, and N. Anugraha, “Performance Comparison Between ResNet50 and MobileNetV2 for Indonesian Sign Language Classification,” JURIKOM (Jurnal Ris. Komputer), vol. 12, no. 3, pp. 319–328, 2025, doi: 10.30865/jurikom.v12i3.8667.

[14] Isvine Zahroya Jazmine Marzuki Fahd, Abdul Rabi, and Elta Sonalitha, “Perbandingan Akurasi Model ResNet50 dan VGG16 dalam Mengklasifikasi Penyakit Cacar Menggunakan Metode Convolutional Neural Network,” Uranus J. Ilm. Tek. Elektro, Sains dan Inform., vol. 3, no. 1, pp. 170–180, 2025, doi: 10.61132/uranus.v3i1.679.

[15] J. Liu and Y. Huang, “Comparison of different CNN models in tuberculosis detecting,” KSII Trans. Internet Inf. Syst., vol. 14, no. 8, pp. 3519–3533, 2020, doi: 10.3837/tiis.2020.08.021.

Additional Files

Published

2026-02-25

How to Cite

Aulia, M. F., & Ikhsan, M. (2026). Perbandingan CNN Dan ResNet50 Dalam Klasifikasi Tuberkulosis Pada Citra X-Ray Paru. JURNAL RISET KOMPUTER (JURIKOM), 13(1), 146–158. https://doi.org/10.30865/jurikom.v13i1.9554