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
- Farady Coastera Funny
- Besperi Besperi
- Ernawati Ernawati
- Revo Pratama
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