A Novel Hybrid CNN Model Integrating Resnet and Inception for Precision Classification of Coffee Beans

Authors

  • Rahmat Zulpani Master’s Student in Informatics, STIKOM Tunas Bangsa, Pematangsiantar, Indonesia
  • Agus Perdana Windarto Department of Informatics, Master’s Program, STIKOM Tunas Bangsa, Pematangsiantar, Indonesia
  • Poningsih Department of Informatics, Master’s Program, STIKOM Tunas Bangsa, Pematangsiantar, Indonesia

DOI:

https://doi.org/10.52436/1.jutif.2026.7.3.5537

Keywords:

Coffee bean classification, ResNet, Inception, Image classification, RI-Net

Abstract

Coffee is one of Indonesia’s key strategic commodities with substantial economic value for farmers and exporters. However, inconsistencies in post-harvest coffee bean quality remain a major challenge due to manual, subjective, and expertise-dependent classification. This study addresses this issue by developing an automated and objective computer vision–based classification system using a hybrid deep learning architecture. The proposed model, named RI-Net, integrates the residual learning capability of ResNet with the multi-scale feature extraction of the Inception module to improve the precision and robustness of coffee bean classification across four roasting levels: Green, Light, Medium, and Dark. The model was trained and evaluated on a locally collected dataset and benchmarked against three standard architectures—ResNet50, InceptionV3, and a Fully Convolutional Neural Network (FCNN). Experimental results show that RI-Net outperforms all baseline models, achieving perfect scores of 100% in accuracy, precision, recall, and F1-score. These findings confirm the effectiveness of combining residual and multi-scale features in capturing subtle visual differences across roasting levels. The study demonstrates the potential of advanced hybrid CNN architectures to enhance post-harvest quality control, supporting faster, more consistent, and standardized classification processes that strengthen the competitiveness of Indonesia’s coffee industry.

Downloads

Download data is not yet available.

References

D. Apriani, A. Bashir, F. Marissa, and ‎ Mukhlis, “The Structure-Conduct-Performance of Indonesian Coffee Processing Industry,” KnE Social Sciences, vol. 2024, pp. 100–120, 2024, doi: 10.18502/kss.v9i14.16096.

A. Wahyudi, S. Wulandari, A. Aunillah, and J. C. Alouw, “Sustainability certification as a pillar to promote Indonesian coffee competitiveness,” IOP Conference Series: Earth and Environmental Science, vol. 418, no. 1, 2020, doi: 10.1088/1755-1315/418/1/012009.

E. Putri, S. Astuti, and C. Safitri, “Analysis of Elements Business Model in Coffee Shop,” Economic Education Analysis Journal, vol. 12, no. 3, pp. 255–265, 2023, doi: 10.15294/eeaj.v12i3.70595.

N. Gizaw, J. Abafita, and T. M. Merra, “Impact of coffee exports on economic growth in Ethiopia; An empirical investigation,” Cogent Economics & Finance, vol. 10, no. 1, p. 2041260, 2022, doi: 10.1080/23322039.2022.2041260.

S. H. Muhie, “Strategies to improve the quantity and quality of export coffee in Ethiopia, a look at multiple opportunities,” Journal of Agriculture and Food Research, vol. 10, p. 100372, 2022, doi: https://doi.org/10.1016/j.jafr.2022.100372.

V. Poncet, P. van Asten, C. P. Millet, P. Vaast, and C. Allinne, “Which diversification trajectories make coffee farming more sustainable?,” Current Opinion in Environmental Sustainability, vol. 68, p. 101432, 2024, doi: https://doi.org/10.1016/j.cosust.2024.101432.

G. M. Ngure and K. N. Watanabe, “Coffee sustainability: leveraging collaborative breeding for variety improvement,” Frontiers in Sustainable Food Systems, vol. 8, 2024, doi: 10.3389/fsufs.2024.1431849.

D. Fauzi, U. Purnamasari, S. A. Wicaksono, and C. Maharani, “When local customs meet the market: an analysis of coffee value chain in Tebat Benawa customary community, Indonesia,” International Journal of Agricultural Sustainability, vol. 21, no. 1, p. 2231769, 2023, doi: 10.1080/14735903.2023.2231769.

I. M. Pakaya, R. Radi, and B. Purwantana, “Classification of Roasting Level of Coffee Beans Using Convolutional Neural Network with MobileNet Architecture for Android Implementation,” Jurnal Teknik Pertanian Lampung (Journal of Agricultural Engineering), vol. 13, no. 3, p. 924, 2024, doi: 10.23960/jtep-l.v13i3.924-932.

M. García, J. E. Candelo-Becerra, and F. E. Hoyos, “Quality and Defect Inspection of Green Coffee Beans Using a Computer Vision System,” Applied Sciences, vol. 9, no. 19, 2019, doi: 10.3390/app9194195.

L. Chen, S. Li, Q. Bai, J. Yang, S. Jiang, and Y. Miao, “Review of Image Classification Algorithms Based on Convolutional Neural Networks,” Remote Sensing, vol. 13, no. 22, 2021, doi: 10.3390/rs13224712.

B. S. Rao, “INTELLIGENT SYSTEMS AND APPLICATIONS IN Advancements in Image Classification and Object Detection : Leveraging Deep Learning for Enhanced Performance,” vol. 12, pp. 466–473, 2024.

N. Sharma, V. Jain, and A. Mishra, “An Analysis Of Convolutional Neural Networks For Image Classification,” Procedia Computer Science, vol. 132, pp. 377–384, 2018, doi: https://doi.org/10.1016/j.procs.2018.05.198.

X. Zhao, L. Wang, Y. Zhang, X. Han, M. Deveci, and M. Parmar, “A review of convolutional neural networks in computer vision,” Artificial Intelligence Review, vol. 57, no. 4, 2024, doi: 10.1007/s10462-024-10721-6.

K. Kanwal et al., “Efficient CNN architecture with image sensing and algorithmic channeling for dataset harmonization,” Scientific Reports, vol. 15, no. 1, p. 7552, 2025, doi: 10.1038/s41598-025-90616-w.

W. Xu, Y.-L. Fu, and D. Zhu, “ResNet and its application to medical image processing: Research progress and challenges,” Computer Methods and Programs in Biomedicine, vol. 240, p. 107660, 2023, doi: https://doi.org/10.1016/j.cmpb.2023.107660.

G. Meena, “Sentiment analysis on images using convolutional neural networks based Inception-V3 transfer learning approach,” International Journal of Information Management Data Insights, vol. 3, no. 1, 2023, doi: 10.1016/j.jjimei.2023.100174.

C. Mawardi, A. Buono, K. Priandana, and Herianto, “Performance Analysis of ResNet50 and Inception-V3 Image Classification for Defect Detection in 3D Food Printing,” International Journal on Advanced Science, Engineering and Information Technology, vol. 14, no. 2, pp. 798–804, 2024, doi: 10.18517/ijaseit.14.2.19863.

S. Castillo-Girones, S. Munera, M. Martínez-Sober, J. Blasco, S. Cubero, and J. Gómez-Sanchis, “Artificial Neural Networks in Agriculture, the core of artificial intelligence: What, When, and Why,” Computers and Electronics in Agriculture, vol. 230, p. 109938, 2025, doi: https://doi.org/10.1016/j.compag.2025.109938.

S. Thaseentaj and S. S. Ilango, “Deep Convolutional Neural Networks for South Indian Mango Leaf Disease Detection and Classification,” Computers, Materials and Continua, vol. 77, no. 3, pp. 3593–3618, 2023, doi: https://doi.org/10.32604/cmc.2023.042496.

L. C. Ngugi, M. Abdelwahab, and M. Abo-Zahhad, “A new approach to learning and recognizing leaf diseases from individual lesions using convolutional neural networks,” Information Processing in Agriculture, vol. 10, no. 1, pp. 11–27, 2023, doi: https://doi.org/10.1016/j.inpa.2021.10.004.

B. Tugrul, E. Elfatimi, and R. Eryigit, “Convolutional Neural Networks in Detection of Plant Leaf Diseases: A Review,” Agriculture, vol. 12, no. 8, 2022, doi: 10.3390/agriculture12081192.

I. A. F. Anto, J. W. Wibowo, T. I. Salim, and A. Munandar, “Implementation of Image Processing and CNN for Roasted-Coffee Level Classification,” Indonesian Journal of Electrical Engineering and Informatics, vol. 12, no. 4, pp. 1005 – 1018, 2024, doi: 10.52549/ijeei.v12i4.5531.

Y. A. Auliya, I. Fadah, Y. Baihaqi, and I. N. Awwaliyah, “Green Bean Classification: Fully Convolutional Neural Network with Adam Optimization,” Mathematical Modelling of Engineering Problems, vol. 11, no. 6, pp. 1641 – 1648, 2024, doi: 10.18280/mmep.110626.

S. Arwatchananukul, D. Xu, P. Charoenkwan, S. Aung Moon, and R. Saengrayap, “Implementing a deep learning model for defect classification in Thai Arabica green coffee beans,” Smart Agricultural Technology, vol. 9, 2024, doi: 10.1016/j.atech.2024.100680.

S.-J. Chang and K.-H. Liu, “Multiscale Defect Extraction Neural Network for Green Coffee Bean Defects Detection,” IEEE Access, vol. 12, pp. 15856 – 15866, 2024, doi: 10.1109/ACCESS.2024.3356596.

Y. Liu, S. Zhou, W. Han, W. Liu, Z. Qiu, and C. Li, “Convolutional neural network for hyperspectral data analysis and effective wavelengths selection,” Analytica Chimica Acta, vol. 1086, pp. 46 – 54, 2019, doi: 10.1016/j.aca.2019.08.026.

H. L. Gope and H. Fukai, “Peaberry and normal coffee bean classification using CNN, SVM, and KNN: Their implementation in and the limitations of Raspberry Pi 3,” AIMS Agriculture and Food, vol. 7, no. 1, pp. 149 – 167, 2022, doi: 10.3934/AGRFOOD.2022010.

K. He, X. Zhang, S. Ren, and J. Sun, “Deep Residual Learning for Image Recognition,” in 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016, pp. 770–778. doi: 10.1109/CVPR.2016.90.

C. Szegedy, S. Reed, P. Sermanet, V. Vanhoucke, and A. Rabinovich, “Going deeper with convolutions,” pp. 1–12.

Additional Files

Published

2026-06-15

How to Cite

[1]
R. . Zulpani, A. P. . Windarto, and P. Poningsih, “A Novel Hybrid CNN Model Integrating Resnet and Inception for Precision Classification of Coffee Beans”, J. Tek. Inform. (JUTIF), vol. 7, no. 3, pp. 2038–2050, Jun. 2026.