IMPLEMENTASI TRANSFER LEARNING RESNET50V2 UNTUK KLASIFIKASI TUBERKULOSIS PADA CITRA X-RAY DADA DENGAN PRA- PEMROSESAN CLAHE DAN VISUALISASI GRAD-CAM

Tuberculosis is an infectious disease that primarily affects the lungs and can be examined using chest X-ray images. Image-based classification methods can support the identification process by automatically analyzing visual characteristics. This study develops a chest X-ray image classification model using transfer learning with the ResNet50V2 architecture to distinguish between Normal and Tuberculosis classes. Image contrast enhancement is performed using Contrast Limited Adaptive Histogram Equalization (CLAHE), while Gradient-weighted Class Activation Mapping (Grad-CAM) is employed to provide visual interpretation of the model's predictions. The dataset was obtained from the TB Chest Radiography Database and consists of 4,200 images, comprising 3,500 Normal images and 700 Tuberculosis images. The preprocessing steps include converting images to grayscale, resizing them to 224 × 224 pixels, normalizing pixel values, and applying CLAHE to the corresponding configuration. Data augmentation is applied to the training set, while the validation and test sets remain unaugmented. The model uses ImageNet-pretrained weights for ResNet50V2, with the base model kept frozen. Model performance is evaluated using accuracy, precision, recall, F1-score, and a confusion matrix, supplemented by Grad-CAM visual analysis. The test results show that the configuration with CLAHE achieves an accuracy of 99.17%, a Tuberculosis-class precision of 99.26%, a recall of 95.71%, and an F1-score of 97.45%. In comparison, the configuration without CLAHE achieves an accuracy of 97.98%, a precision of 100.00%, a recall of 87.86%, and an F1-score of 93.54%. The comparison indicates that CLAHE is associated with higher accuracy, recall, and F1-score, whereas the configuration without CLAHE achieves higher precision for the Tuberculosis class. Furthermore, the number of false negatives for Tuberculosis decreases from 17 images without CLAHE to 6 images with CLAHE. Grad-CAM visualizations provide insight into the regions of chest X-ray images that receive attention from the model when generating classification predictions.

Authors

Publication Details

Journal
University of Bengkulu Scholar Repository (University of Bengkulu)
Published
2026-12-01
Primary Topic
COVID-19 diagnosis using AI
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

IMPLEMENTASI TRANSFER LEARNING RESNET50V2 UNTUK KLASIFIKASI TUBERKULOSIS PADA CITRA X-RAY DADA DENGAN PRA- PEMROSESAN CLAHE DAN VISUALISASI GRAD-CAM

Farady Coastera Funny, Besperi Besperi, Ernawati Ernawati, Revo Pratama
4 links
University of Bengkulu Scholar Repository (University of Bengkulu)
COVID-19 diagnosis using AI
article

IMPLEMENTASI TRANSFER LEARNING RESNET50V2 UNTUK KLASIFIKASI TUBERKULOSIS PADA CITRA X-RAY DADA DENGAN PRA- PEMROSESAN CLAHE DAN VISUALISASI GRAD-CAM

Farady Coastera Funny, Besperi Besperi, Ernawati Ernawati, Revo Pratama
article en

Abstract

Tuberculosis is an infectious disease that primarily affects the lungs and can be examined using chest X-ray images. Image-based classification methods can support the identification process by automatically analyzing visual characteristics. This study develops a chest X-ray image classification model using transfer learning with the ResNet50V2 architecture to distinguish between Normal and Tuberculosis classes. Image contrast enhancement is performed using Contrast Limited Adaptive Histogram Equalization (CLAHE), while Gradient-weighted Class Activation Mapping (Grad-CAM) is employed to provide visual interpretation of the model's predictions. The dataset was obtained from the TB Chest Radiography Database and consists of 4,200 images, comprising 3,500 Normal images and 700 Tuberculosis images. The preprocessing steps include converting images to grayscale, resizing them to 224 × 224 pixels, normalizing pixel values, and applying CLAHE to the corresponding configuration. Data augmentation is applied to the training set, while the validation and test sets remain unaugmented. The model uses ImageNet-pretrained weights for ResNet50V2, with the base model kept frozen. Model performance is evaluated using accuracy, precision, recall, F1-score, and a confusion matrix, supplemented by Grad-CAM visual analysis. The test results show that the configuration with CLAHE achieves an accuracy of 99.17%, a Tuberculosis-class precision of 99.26%, a recall of 95.71%, and an F1-score of 97.45%. In comparison, the configuration without CLAHE achieves an accuracy of 97.98%, a precision of 100.00%, a recall of 87.86%, and an F1-score of 93.54%. The comparison indicates that CLAHE is associated with higher accuracy, recall, and F1-score, whereas the configuration without CLAHE achieves higher precision for the Tuberculosis class. Furthermore, the number of false negatives for Tuberculosis decreases from 17 images without CLAHE to 6 images with CLAHE. Grad-CAM visualizations provide insight into the regions of chest X-ray images that receive attention from the model when generating classification predictions.

University of Bengkulu Scholar Repository (University of Bengkulu)
Good health and well-being
COVID-19 diagnosis using AI
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon