with the collaboration of Iranian Society of Mechanical Engineers (ISME)

Document Type : Research Article-en

Authors

Department of Computer, Electronics, and Electrical Engineering, Cavite State University, Cavite, Philippines

Abstract

This research focused on creating an IoT-enabled color-sorting machine for Robusta coffee cherries, utilizing image processing as an effective alternative to manual sorting. The system tackles a significant issue with the strip-picking harvesting method, which gathers cherries at different ripeness levels, negatively affecting coffee quality. The machine sorts cherries by ripeness—red for ripe, green for unripe, and black for overripe—using a detection model trained through image processing and implemented on a Raspberry Pi 4 Model B. The performance was assessed based on sorting speed and classification accuracy. The detection model successfully identified 277 out of 300 cherries, resulting in an overall classification accuracy of 92.33% and a mean precision of 92.55%. In practical tests with 100 cherries over 10 trials, the machine achieved an average sorting accuracy of 86.83% and a mean sorting time of 21 minutes and 33 seconds. When compared to a previously developed coffee bean sorter, the new device showed improved accuracy and faster processing speed.

Keywords

Main Subjects

©2025 The author(s). This is an open access article distributed under Creative Commons Attribution 4.0 International License (CC BY 4.0)

  1. Abbas, H. M. T., Shakoor, U., Khan, M. J., Ahmed, M., & Khurshid, K. (2019). Automated sorting and grading of agricultural products based on image processing. 2019 8th International Conference on Information and Communication Technologies (ICICT), 78-81. https://doi.org/10.1109/ICICT47744.2019.9001971
  2. Bondal, K. B., Lunes, M. P., & Llanto, J. B. M. (2011). Design and development of microcontroller-based coffee color sorter (Undergraduate thesis). Cavite State University – Don Severino Campus.
  3. Caretti, R. (2016). The process of coffee production: From seed to cup. New Food Magazine. Retrieved from https://www.newfoodmagazine.com/article/28006/process-coffeeproduction-seed-cup
  4. Coffee Behind the Scenes. (2018). Looking for the red cherry. Retrieved from http://www.coffeebehindthescenes.com/en/2018/10/31/looking-for-thered-cherry
  5. Dhanaraju, M., Chenniappan, P., Ramalingam, K., Pazhanivelan, S., & Kaliaperumal, R. (2022). Smart farming: Internet of Things (IoT)-based sustainable agriculture. Agriculture, 12(10), 1745. https://doi.org/10.3390/agriculture12101745
  6. Edan, Y., Han, S., & Kondo, N. (2009). Automation in agriculture. In Handbook of automation (pp. 531-554). https://doi.org/10.1002/9783527623488.ch22
  7. Haile, M., & Hee Kang, W. (2020). The harvest and post-harvest management practices’ impact on coffee quality. In Coffee: Production and research. IntechOpen. https://doi.org/10.5772/intechopen.89224
  8. Howard, A. G., Zhu, M., Chen, B., Kalenichenko, D., Wang, W., Weyand, T., Andreetto, M., & Adam, H. (2017). MobileNets: Efficient convolutional neural networks for mobile vision applications. arXiv. Retrieved from http://arxiv.org/abs/1704.04861
  9. Howard, B. (2011). Factors influencing cup quality in coffee. Retrieved from https://agrilife.org/worldcoffee/files/2011/03/GCQRI-Lit-Review
  10. Injante, H., Gutierrez, E., & Vinces, L. (2020). A vibratory conveying system for automatic sorting of lima beans through image processing. 2020 IEEE XXVII International Conference on Electronics, Electrical Engineering and Computing (INTERCON), 1-4. https://doi.org/10.1109/INTERCON50315.2020.9220231
  11. Jha, K., Doshi, A., Patel, P., & Shah, M. (2019). A comprehensive review on automation in agriculture using artificial intelligence. Artificial Intelligence in Agriculture, 1-12. https://doi.org/10.1016/j.aiia.2019.05.004
  12. Koffee (2018). Selective vs. strip harvesting. Retrieved from https://www.koffeekult.com/blogs/blog/selective-vs-strip-harvesting
  13. Lowenberg-DeBoer, J., Huang, I. Y., Grigoriadis, V., & Blackmore, S. (2020). Economics of robots and automation in field crop production. Precision Agriculture, 21(2), 278-299. https://doi.org/10.1007/s11119-019-09667-5
  14. Mahmud, M. S. A., Abidin, M. S. Z., Emmanuel, A. A., & Hasan, H. S. (2020). Robotics and automation in agriculture: Present and future applications. Robotics and Automation in Agriculture: Present and Future Applications, 130-140. http://arqiipubl.com/ams
  15. Russo, G., Marsigalia, B., Evangelista, F., Palmaccio, M., & Maggioni, M. (2015). Exploring regulations and scope of the Internet of Things in contemporary companies: A first literature analysis. Journal of Innovation and Entrepreneurship, 4(1), 11. https://doi.org/10.1186/s13731-015-0025-5
  16. Sreekantha, D. K., & Kavya, A. M. (2017). Agricultural crop monitoring using IoT: A study. 2017 11th International Conference on Intelligent Systems and Control (ISCO), 134-139. https://doi.org/10.1109/ISCO.2017.7855968
  17. Stanley-Foreman, Z. (2023). Why cherry sorting is essential to improving coffee quality. Perfect Daily Grind. Retrieved from https://perfectdailygrind.com/2023/11/coffee-cherry-sorting
  18. Tajinder, S. (2023). What deep learning algorithms are used for image processing and which CNN algorithm is used for image classification? Retrieved from https://www.researchgate.net/post/What_deep_learning_algorithms_are_used_for_image_processing_and_which_CNN_algorithm_is_used_for_image_classification
  19. Tripathi, M. (2023). Image processing using CNN: A beginner’s guide. Analytics Vidhya. Retrieved from https://www.analyticsvidhya.com/blog/2021/06/image-processing-usingcnn-a-beginnersguid/#:~:text=CNN%20is%20a%20powerful%20algorithm,contain%20data%20of%20RGB%20combination
  20. Voora, V., Bermudez, S., & Larrea, C. (2019). Global market report: Coffee. International Institute for Sustainable Development. Retrieved from https://www.iisd.org/system/files/publications/ssi-global-market-reportcocoa.pdf
CAPTCHA Image