A mobile application based on object detection algorithm for classifying robusta coffee cherry ripeness

Authors

  • Natasha Marie D. Relampagos Department of Electronics Engineering, University of Science and Technology of Southern Philippines, Philippines
  • Kristine Mae P. Dunque Department of Electronics Engineering, University of Science and Technology of Southern Philippines, Philippines

DOI:

https://doi.org/10.58712/ie.v2i2.39

Keywords:

ripeness classification, YOLOv5, coffee cherries, robusta coffee

Abstract

Accurate classification of coffee cherries based on ripeness is essential for enhancing the efficiency of harvesting and ensuring high-quality coffee production. Traditional manual sorting is labor-intensive and inconsistent, necessitating an automated solution. This study addresses the challenge by developing a mobile application that uses an object detection algorithm to classify Coffea canephore (Robusta) cherries into four ripeness categories: unripe, semi-ripe, ripe, and overripe. The application leverages a smartphone camera to capture images, which are then analyzed by a deep learning model trained on 1,200 annotated images, and classify coffee cherries in real-time. Model performance of the YOLOv5 computer vision was evaluated using a validation dataset (400 images) and a test dataset (400 images), ensuring balanced representation across ripeness levels. The application achieved an overall classification accuracy of 95.63%, with the highest accuracy for unripe cherries (98.50%), followed by semi-ripe (94.75%), ripe (94.75%), and overripe (94.50%) cherries. These results demonstrate the effectiveness of integrating mobile technology with object detection algorithm for field-based classification of coffee cherry ripeness. The developed application is potential for improving harvesting efficiency, optimizing quality control, and supporting decision-making in the coffee industry. Future work should focus on expanding the dataset, refining the classification model, and implementing the system in microcontrollers to enable an automatic sorting hardware, thereby reducing farmers’ workload and providing a comprehensive solution for our local stakeholders in the Bukidnon areas.

Downloads

Download data is not yet available.

References

K. R. Laurico, J. Y. Lee, B. H. Lee, and J. H. Kim, “Consumers’ Valuation of Local Specialty Coffee: The Case of Philippines,” Journal of the Korean Society of International Agriculture, vol. 33, no. 4, pp. 338–348, Dec. 2021, https://doi.org/10.12719/KSIA.2021.33.4.338

Bureau of Agriculture and Fisheries Standards, Code of Good Agricultural Practices for Coffee. Philippines, 2015.

International Coffee Organization, “Obstacles to consumption: Tariff and nontariff measures and their impact on the coffee sector,” London, 2020.

“COFFEE CONSUMPTION RISING - Philippine Coffee Board.” Accessed: Apr. 30, 2025. [Online]. Available: https://philcoffeeboard.com/coffee-consumption-rising/

“Philippines: coffee consumption | Statista.” Accessed: Apr. 30, 2025. [Online]. Available: https://www.statista.com/statistics/314989/philippines-total-coffee-consumption/

P. Poltronieri and F. Rossi, “Challenges in Specialty Coffee Processing and Quality Assurance,” Challenges, vol. 7, no. 2, p. 19, Oct. 2016, https://doi.org/10.3390/challe7020019

D. O. Cagadas, D. S. Putra, K. M. P. Dunque, and M. Azmi, “Classifying four maturity categories of coffee cherry using CNN-VGG19,” Teknomekanik, vol. 7, no. 2, pp. 176–184, Dec. 2024, https://doi.org/10.24036/teknomekanik.v7i2.31072

Y. B. S. Panggabean, M. Arsyad, Nasaruddin, and Mahyuddin, “The Future of Coffee, Digital Technology and Farmer’s Income,” International Journal of Sustainable Development and Planning, vol. 18, no. 2, pp. 411–418, Feb. 2023, https://doi.org/10.18280/ijsdp.180209

“The Coffee Belt, A World Map of the Major Coffee Producers - Seasia.co.” Accessed: Oct. 02, 2025. [Online]. Available: https://seasia.co/2018/01/27/the-coffee-belt-a-world-map-of-the-major-coffee-producers

V. Osorio Pérez, L. G. Matallana Pérez, M. R. Fernandez-Alduenda, C. I. Alvarez Barreto, C. P. Gallego Agudelo, and E. C. Montoya Restrepo, “Chemical Composition and Sensory Quality of Coffee Fruits at Different Stages of Maturity,” Agronomy, vol. 13, no. 2, p. 341, Jan. 2023, https://doi.org/10.3390/agronomy13020341

P. D. Leandro, S. S. Ney, S. A. Gilberto, R. C. Paulo, A. P. da S. Fernando, and dos S. G. O. Lidiane, “Coffee production through wet process: Ripeness and quality,” Afr J Agric Res, vol. 12, no. 36, pp. 2783–2787, Sep. 2017, https://doi.org/10.5897/AJAR2017.12485

E. Yusibani, R. I. Putra, A. Rahwanto, M. S. Surbakti, Rajibussalim, and Rahmi, “Physical properties of Sidikalang robusta coffee beans medium roasted from various colors of coffee cherries,” J Phys Conf Ser, vol. 2243, no. 1, p. 012046, Jun. 2022, https://doi.org/10.1088/1742-6596/2243/1/012046

“Coffee Science: How Can We Identify & Improve Cherry Ripeness? - Perfect Daily Grind.” Accessed: Apr. 02, 2025. [Online]. Available: https://perfectdailygrind.com/2016/02/coffee-science-how-can-we-identify-improve-cherry-ripeness/

O. Sudana, D. Witarsyah, A. Putra, and S. Raharja, “Mobile Application for Identification of Coffee Fruit Maturity using Digital Image Processing,” Int J Adv Sci Eng Inf Technol, vol. 10, no. 3, pp. 980–986, Jun. 2020, https://doi.org/10.18517/ijaseit.10.3.11135

H. C. Bazame, J. P. Molin, D. Althoff, and M. Martello, “Detection, classification, and mapping of coffee fruits during harvest with computer vision,” Comput Electron Agric, vol. 183, p. 106066, Apr. 2021, https://doi.org/10.1016/j.compag.2021.106066

A. Michael and M. Garonga, “Classification model of ‘Toraja’ arabica coffee fruit ripeness levels using convolution neural network approach,” ILKOM Jurnal Ilmiah, vol. 13,

Downloads

Published

2025-08-26

How to Cite

Relampagos, N. M. D., & Dunque, K. M. P. (2025). A mobile application based on object detection algorithm for classifying robusta coffee cherry ripeness. Innovation in Engineering, 2(2), 114–125. https://doi.org/10.58712/ie.v2i2.39