Optimized ResNet-18 Model for Ripeness Classification of Javanese Long Pepper (Piper retrofractum) Using Reflectance and Fluorescence Imaging
DOI:
https://doi.org/10.21776/ub.jkptb.2026.014.01.12Abstract
Javanese long pepper (Piper retrofractum Vahl.) is a high-valuable horticultural commodity crop whose quality and bioactive composition depend strongly on fruit ripeness. Conventional visual assessment is often subjective and inconsistent, emphasizing the need for an objective and non-destructive alternative. This study aimed to develop an automated classification system for determining ripeness stages (green, orange, and red) using reflectance (visible light) and fluorescence (ultraviolet) imaging analyzed through a fine-tuned ResNet-18 deep learning model. A total of 300 images per modality were captured under controlled studio conditions and processed through standardized background removal, size normalization, and data augmentation. Color feature analysis across RGB, CIELAB, and HSV color spaces revealed that reflectance imaging effectively captured pigment transitions associated with chlorophyll degradation and carotenoid accumulation, with the a* channel serving as the most discriminative single-channel indicator. Fluorescence imaging provided complementary physiological information through chlorophyll emission dynamics, exhibiting greater inter-class overlap particularly between green and orange stages. The ResNet-18 model was evaluated using three optimizers (Adam, SGDM, and RMSprop) based on accuracy, precision, recall, Macro F1-score, and loss. For reflectance imaging, SGDM and RMSprop both achieved perfect test classification (accuracy = 100%, Macro F1 = 1.000), while fluorescence-based models achieved up to 97.78% accuracy. Training curve analysis confirmed stable convergence without overfitting across all combinations. Confusion matrix analysis showed that misclassifications were confined to adjacent ripeness stage boundaries, and Grad-CAM visualization confirmed physiologically consistent spatial attention patterns in the best-performing models. The proposed imaging and modeling pipeline offered a reproducible framework for postharvest quality evaluation and standardization of Piper retrofractum and similar horticultural commodities.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Sandra, Retno Damayanti, Mitha Sa'diyah, Rut Juniar Nainggolan

This work is licensed under a Creative Commons Attribution-ShareAlike 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 a Creative Commons Attribution License (CC BY 4.0) that allows others to share the work with an acknowledgement 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 acknowledgement 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 (See The Effect of Open Access).











