Optimalisasi Model CNN dengan Teknik Kontras Lokal CLAHE untuk Klasifikasi Pneumonia pada Citra X-Ray
Abstract
Pneumonia is a lung infection that has a widespread impact on public health, particularly in areas with limited access to healthcare services. Chest X-ray imaging plays an important role in diagnosing this disease; however, low contrast quality often becomes an obstacle to automated classification using deep learning methods. This study aims to evaluate the effectiveness of the Contrast Limited Adaptive Histogram Equalization (CLAHE) method in enhancing the visual quality of chest X-ray images and to analyze its impact on the performance of a Convolutional Neural Network (CNN) model in detecting pneumonia. CLAHE enhances the visibility of radiographic details through local contrast redistribution with a clip limit, allowing previously indistinct pathological structures to be more clearly recognized by the CNN. The dataset used consists of 2,623 X-ray images that are divided into two classes, namely Normal and Pneumonia. The training process was conducted under two scenarios, without and with the application of CLAHE. The evaluation results show that the CNN model without CLAHE achieved an accuracy of 96.18%, while the model with CLAHE improved to 99.69%. This improvement is significant as it reduced the classification error rate from approximately 3.8% in the model without CLAHE to only 0.3% in the model with CLAHE, while also increasing precision, recall, and f1-score across all classes. Therefore, combination of CLAHE and CNN can be applied as an effective approach for pneumonia detection that is accurate, consistent, and efficient, especially in environments with limited computational resources.
Downloads
References
S. M. Waruwu, L. A. Zega, L. Harefa, F. K. Ndraha, and N. K. Lase, “Analisis Bahan Ajar Anatomi Fisiologi Tubuh Manusia (Karya Daniel Suranta Ginting, Et Al),” Indo-MathEdu Intellectuals J., vol. 5, no. 3, pp. 4074–4086, 2024, doi: 10.54373/imeij.v5i3.1462.
S. Hooli, C. King, E. D. McCollum, et al., “In-hospital Mortality Risk Stratification in Children Under 5 Years Old with Pneumonia with or without Pulse Oximetry: A Secondary Analysis of the Pneumonia Research Partnership to Assess WHO Recommendations,” International Journal of Infectious Diseases, vol. 129, pp. 240–250, 2023, doi: 10.1016/j.ijid.2023.02.025.
International Vaccine Access Center, “Tracking Progress Toward Pneumonia and Diarrhea Control,” Johns Hopkins Bloomberg School of Public Health, Baltimore, MD, USA, Nov. 2024. [Online]. Available: https://publichealth.jhu.edu/ivac/2024/tracking-progress-toward-pneumonia-and-diarrhea-control
M. Atnang, Samsidar, and S. B. Mustamin, “Pemanfaatan Teknologi Telemedicine untuk Peningkatan Diagnosis Pneumonia Anak di Daerah Terpencil,” Jurnal Teknologi dan Sains Modern, vol. 2, no. 1, pp. 48–57, 2025, [Online]. Available: https://journal.scitechgrup.com/index.php/jtsm/article/view/314
M. Mukhtar, “Cakupan Imunisasi Dasar Bayi Sebelum dan Saat Pandemi COVID-19 di Kecamatan Kota Juang Kabupaten Bireuen,” J. Kedokt. Syiah Kuala, vol. 22, no. 1, pp. 60–67, 2022, doi: 10.24815/jks.v22i1.23096.
Ma’sum, P. Sarnianto, and N. Andayani, “Analisis Efektivitas Biaya Pengobatan Pneumonia Anak Berdasarkan Clinical Pathway di RSUD Kabupaten Tangerang,” Jurnal Mandala Pharmacon Indonesia, vol. 9, no. 2, pp. 604–612, 2023, doi: 10.35311/jmpi.v9i2.429.
N. Nurhaeni, S. E. Prastya, A. Hidayat, dan F. N. Anisa, “Pemodelan Sistem Deteksi Parasit Malaria pada Citra Mikroskopis Sel Darah Menggunakan Metode Deep Learning,” SMATIKA Jurnal: STIKI Informatika Jurnal, vol. 14, no. 2, pp. 409–416, 2024, doi: 10.32664/smatika.v14i02.1475.
L. Pinto-Coelho, “How Artificial Intelligence Is Shaping Medical Imaging Technology: A Survey of Innovations and Applications,” Bioengineering, vol. 10, no. 12, 2023, doi: 10.3390/bioengineering10121435.
D. Gunawan and H. Setiawan, “Convolutional Neural Network dalam Citra Medis,” KONSTELASI Konvergensi Teknol. dan Sist. Inf., vol. 2, no. 2, pp. 376–390, 2022, doi: 10.24002/konstelasi.v2i2.5367.
A. D. Azzumzumi, M. Hanafi, and W. M. P. Dhuhita, “Klasifikasi Penyakit Paru-Paru Berdasarkan Peningkatan Kualitas Kontras dan EfficientNet Menggunakan Gambar X-Ray,” Teknika, vol. 13, no. 2, pp. 293–300, 2024, doi: 10.34148/teknika.v13i2.881.
S. Sriani and A. Nabila, “Implementasi Deep Learning Untuk Mengidentifikasi Umur Manusia Menggunakan Convolutional Neural Network (CNN),” J. Inform. dan Tek. Elektro Terap., vol. 12, no. 3, pp. 1836–1843, 2024, doi: 10.23960/jitet.v12i3.4457.
S. Solihat, S. Widodo, and D. P. Sari, “Analisis Perbandingan Optimizer pada Pelatihan Model Convolutional Neural Network untuk Kasus Klasifikasi Hewan Primata,” J. Media Inform. Budidarma, vol. 8, no. 1, p. 459, 2024, doi: 10.30865/mib.v8i1.7274.
T. Tsuji, Y. Hirata, K. Kusunose, M. Sata, S. Kumagai, K. Shiraishi, and J. Kotoku, “Classification of Chest X-Ray Images by Incorporation of Medical Domain Knowledge Into Operation Branch Networks,” BMC Medical Imaging, vol. 23, art. 62, 2023, doi: 10.1186/s12880-023-01019-0.
H. Gm, M. K. Gourisaria, S. S. Rautaray, and M. Pandey, “Pneumonia Detection Using CNN Through Chest X-Ray,” Journal of Engineering Science and Technology, vol. 16, no. 1, pp. 861–876, 2021
C. Usman, S. U. Rehman, A. Ali, A. M. Khan, and B. Ahmad, “Pneumonia Disease Detection Using Chest X-Rays and Machine Learning,” Algorithms, vol. 18, no. 2, 2025, doi: 10.3390/a18020082.
P. Szepesi and L. Szilágyi, “Detection of pneumonia using convolutional neural networks and deep learning,” Biocybern. Biomed. Eng., vol. 42, no. 3, pp. 1012–1022, 2022, doi: 10.1016/j.bbe.2022.08.001.
N. Wiliani, T. Khawa, and S. Ramli, “Peningkatan Kontras Pada Preprocessing Gambar Permukaan Solar Panel dengan Histogram,” Innov. Technol., vol. 2, no. 1, pp. 1–8, 2025.
J. Hidayat and A. Fitriani, “Perbandingan Metode Power Law Dengan Contrast Limited Adaptive Histogram Equalization (Clahe)Pada Perbaikan Kualitas Citra Satelit,” J. Tek. Elektro, vol. 8, no. 1, 2025.
W. Juslan and A. H. Muhammad, “Evaluasi Kinerja Metode Peningkatan Kontras (CLAHE & HE) pada Klasifikasi Ras Kucing menggunakan VGG16,” Edumatic J. Pendidik. Inform., vol. 9, no. 1, pp. 246–255, 2025, doi: 10.29408/edumatic.v9i1.29578.
M. R. Pratama, S. Z. Hidayat, A. R. Nuruddin, H. W. Niamaputri, and K. Kunci, “Optimasi Peningkatan Kontras Gambar Menggunakan Interval-Valued Intuitionistic Fuzzy Sets dan Contrast Limited Adaptive Histogram Equalization ( CLAHE ),” vol. 4, no. 1, pp. 307–317, 2025, doi: 10.31284/p.semtik.2025-1.6884.
A. F. Nurjannah, A. S. D. Kurniasari, Z. Sari, and Y. Azhar, “Pneumonia Image Classification Using CNN With Max Pooling and Average Pooling,” J. RESTI (Rekayasa Sistem dan Teknologi Informasi), vol. 6, no. 2, pp. 330–338, 2022, doi: 10.29207/resti.v6i2.4001.
S. A. Widiarto, W. A. Saputra, and A. R. Dewi, “Klasifikasi Citra X-Ray Toraks Dengan Menggunakan Contrast Limited Adaptive Histogram Equalization Dan Convolutional Neural Network (Studi Kasus: Pneumonia),” JIPI (Jurnal Ilm. Penelit. dan Pembelajaran Inform., vol. 6, no. 2, pp. 348–359, 2021, doi: 10.29100/jipi.v6i2.2102.
F. Hussein et al., “Hybrid CLAHE-CNN Deep Neural Networks for Classifying Lung Diseases from X-ray Acquisitions,” Electron., vol. 11, no. 19, pp. 1–18, 2022, doi: 10.3390/electronics11193075.
N. W. S. Saraswati, D. A. P. R. Dewi, and P. Pirozmand, “Comparative Analysis of SVM and CNN for Pneumonia Detection in Chest X-Ray,” Lontar Komputer: Jurnal Ilmiah Teknologi Informasi, vol. 15, no. 1, pp. 38–50, 2024, doi: 10.24843/LKJITI.2024.v15.i01.p04.
R. B. J. Simanjuntak, Y. Fu’Adah, R. Magdalena, S. Saidah, A. B. Wiratama, and I. Da’Wan Salim Ubaidah, “Cataract Classification Based on Fundus Images Using Convolutional Neural Network,” Int. J. Informatics Vis., vol. 6, no. 1, pp. 33–38, 2022, doi: 10.30630/joiv.6.1.856.
S. A. Hakim et al., “Klasifikasi Citra Generasi Artificial Intellegence menggunakan Metodde Fine Tuning pada Residual Network,” J. Teknol. Inf. dan Ilmu Komput., vol. 11, no. 3, pp. 655–666, 2024, doi: 10.25126/jtiik.1138118.
R. Nirthika, S. Manivannan, A. Ramanan, and R. Wang, “Pooling in Convolutional Neural Networks for Medical Image Analysis: A Survey and an Empirical Study,” Neural Computing and Applications, vol. 34, pp. 5321–5347, 2022, doi: 10.1007/s00521-022-06953-8.
B. R. Ermawan and N. Cahyono, “Optimasi Metode Klasifikasi Menggunakan Fasttext Dan Grid Search Pada Analisis Sentimen Ulasan Aplikasi Seabank,” JIKO (Jurnal Inform. dan Komputer), vol. 9, no. 1, p. 226, 2025, doi: 10.26798/jiko.v9i1.1523.
S. Sharma, S. Gupta, D. Gupta, J. Rashid, S. Juneja, J. Kim, and M. M. Elarabawy, “Performance Evaluation of the Deep Learning Based Convolutional Neural Network Approach for the Recognition of Chest X-Ray Images,” Frontiers in Oncology, vol. 12, 2022, doi: 10.3389/fonc.2022.932496.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Optimalisasi Model CNN dengan Teknik Kontras Lokal CLAHE untuk Klasifikasi Pneumonia pada Citra X-Ray
Pages: 1422-1432
Copyright (c) 2025 Rania Alfita Salma, Christian Sri Kusuma Aditya

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).





















