Hybrid Dual-Branch ResNet-101 with Canny Edge Detection for Arabica Coffee Bean Classification
Abstract
Manual classification of Arabica coffee bean types is still largely performed by experts, making the process time-consuming and prone to subjectivity due to the visual similarity among bean types. This study aims to develop a digital image-based classification model using a Hybrid Dual-Branch architecture, evaluate its effectiveness using Baseline RGB and Baseline Edge, and visually interpret the model's decisions using Grad-CAM. The USK-Coffee dataset consists of 8,000 images in four classes (defect, longberry, peaberry, and premium). The proposed model processes RGB and Canny edge detection images using a shared-weight ResNet-101 backbone with frozen pretrained ImageNet weights, followed by feature fusion, a Squeeze-and-Excitation (SE) Block, and a fully connected layer. The Hybrid Dual-Branch model achieved the best overall performance, with an overall accuracy of 87.88% and macro-average precision, recall, and F1-score of 87.89%, 87.88%, and 87.86%, respectively, outperforming Baseline Edge (77.44%) and Baseline RGB (85.38%). These results demonstrate that integrating RGB and Canny edge detection representations improves the classification of Arabica coffee bean types.
Full text article
Authors
Copyright (c) 2026 Tiesya Andriani Ramadhanti, Ernawati, Widhia Oktoeberza KZ

This work is licensed under a Creative Commons Attribution 4.0 International License.
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 acknowledgment of the work's authorship and initial publication in this journal.