DEVELOPMENT OF AN AIoT-BASED COFFEE BEAN CLASSIFICATION AND SORTING SYSTEM USING A VISION TRANSFORMER

Authors

Dody Pintarko , Basuki Rahmat , Faisal Muttaqin

Published:

2026-07-20

Downloads

Abstract

Manual coffee bean sorting is highly prone to subjectivity, inconsistency, and low operational efficiency. This study aims to develop an automated classification and sorting system based on the Artificial Intelligence of Things (AIoT). The method integrates a Vision Transformer (ViT) model, TensorFlow Lite, Firebase, and an ESP32 microcontroller within a Mobile–Cloud–Edge Computing architecture. The ViT model was trained on four coffee roast levels to perform real-time inference on Android devices linked to physical sorting actuators. Experimental results showed that the ViT model achieved a 96.87% classification accuracy, while the automated physical sorting mechanism achieved 95.83% accuracy with an average response time of 462 ms. In conclusion, the integration of Vision Transformer and AIoT provides a fast and reliable post-harvest automation solution tailored for smart agricultural applications.

Keywords:

AIoT Vision Transformer Coffee Bean Classification TensorFlow Lite Smart Agriculture

References

Albanese, A., Nardello, M., & Brunelli, D. (2021). *Automated Pest Detection with DNN on the Edge for Precision Agriculture*. IEEE Journal on Emerging and Selected Topics in Circuits and Systems, 11(4). https://doi.org/10.1109/ JETCAS.2021.3101740.

Alzubi, AA, & Galyna, K. (2023). *Artificial Intelligence and Internet of Things for Sustainable Farming and Smart Agriculture*. IEEE Access, 11, 78686–78700. https://doi.org/10.1109/ACCESS.2023.3298215

Cao, Z., Sun, S., & Bao, X. (2025). *A Review of Computer Vision and Deep Learning Applications in Crop Growth Management*. Applied Sciences, 15(8438). https://doi.org/10.3390/app15158438

Chang, S.-J., & Huang, C.-Y. (2021). *Deep Learning Model for the Inspection of Coffee Bean Defects*. Applied Sciences, 11(8226). https://doi.org/10.3390/ app11178226

dos Santos, FFL, Rosas, JTF, Martins, RN, Araújo, GM, Viana, LA, & Gonçalves, JP (2020). *Quality Assessment of Coffee Beans through Computer Vision and Machine Learning Algorithms*. Coffee Science, 15, e151752. https://doi.org/10.25186/cs.v15i.1752

García, M., Candelo-Becerra, J.E., & Hoyos, F. (2019). *Quality and Defect Inspection of Green Coffee Beans Using a Computer Vision System*. Computers and Electronics in Agriculture, 162, 735–746.

Gope, L., Fukai, H., Ruhad, F. M., & Barman, S. (2024). *Comparative Analysis of YOLO Models for Green Coffee Bean Detection and Defect Classification*. Scientific Reports, 14, 28946. https://doi.org/10.1038/s41598-024-78598-7

Hassan. (2024). *Enhancing Coffee Bean Classification: A Comparative Analysis of Pre-Trained Deep Learning Models*. Neural Computing and Applications, 36(9), 9023–9052. https://doi.org/10.1007/s00521-024-09623-z

Korkmaz, A., Talan, T., Koşunalp, S., & Iliev, T. (2025). *Comparison of Deep Learning Models in Automatic Classification of Coffee Bean Species*. PeerJ Computer Science, 11, e2759. https://doi.org/10.7717/peerj-cs.2759

Mulyono, Apnitami, P., Wangi, IS, Wicaksono, KNP, & Apriono, C. (2022). *The Potential of Smart Farming IoT Implementation for Coffee Farming in Indonesia: A Systematic Review*. Green Intelligent Systems and Applications, 2(2), 53–70. https://doi.org/10.53623/gisa.v2i2.95

Nawaz, M., & Babar, MIK (2025). *IoT and AI for Smart Agriculture in Resource-Constrained Environments: Challenges, Opportunities and Solutions*. Discover Internet of Things, 5(24). https://doi.org/10.1007/s43926-025-00119-3

Oncu, E. (2025). *Deep Learning Framework for Coffee Quality Assessment via YOLOv8n*. IEEE Access, 13.

Rajak, P., Ganguly, A., Adhikary, S., & Bhattacharya, S. (2023). *Internet of Things and Smart Sensors in Agriculture: Scopes and Challenges*. Journal of Agriculture and Food Research, 14, 100776. https://doi.org/10.1016/ j.jafr .2023.100776

Runck, C., et al. (2024). *Real-Time Geoinformation Systems to Improve the Quality, Scalability, and Cost of IoT for Agri-Environment Research*. Computers and Electronics in Agriculture, 223, 108195.

Takahashi, S., Sakaguchi, Y., Kouno, N., et al. (2024). *Comparison of Vision Transformers and Convolutional Neural Networks in Medical Image Analysis: A Systematic Review*. Journal of Medical Systems, 48(84). https://doi.org/10.1007/s10916-024-02105-8

Tariq, M.U., Saqib, S.M., Mazhar, T., Khan, M.A., Shahzad, T., & Hamam, H. (2025). *Edge-Enabled Smart Agriculture Framework: Integrating IoT, Lightweight Deep Learning, and Agentic AI for Context-Aware Farming*. Results in Engineering, 28, 107342. https://doi.org/10.1016/ j.rineng .2025.107342

Ye, B., Xue, R., & Xu, H. (2025). *ASD-YOLO: A Lightweight Network for Coffee Fruit Ripening Detection in Complex Scenarios*. Frontiers in Plant Science, 16, 1484784. https://doi.org/10.3389/fpls.2025.1484784

Zou, X., Liu, Z., Zhu, X., Zhang, W., Qian, Y., & Li, Y. (2023). *Application of Vision Technology and Artificial Intelligence in Smart Farming*. Agriculture, 13(2106 ).https://doi.org/10.3390/agriculture13112106ps://doi.org/ 10.3390/agriculture13112106

Author Biographies

Dody Pintarko, Universitas Pembangunan Nasional "Veteran" Jawa Timur

Author Origin : Indonesia

Basuki Rahmat, Universitas Pembangunan Nasional "Veteran" Jawa Timur

Author Origin : Indonesia

Faisal Muttaqin, Universitas Pembangunan Nasional "Veteran" Jawa Timur

Author Origin : Indonesia

Downloads

Download data is not yet available.

How to Cite

Dody Pintarko, Basuki Rahmat, & Faisal Muttaqin. (2026). DEVELOPMENT OF AN AIoT-BASED COFFEE BEAN CLASSIFICATION AND SORTING SYSTEM USING A VISION TRANSFORMER. Multidiciplinary Output Research For Actual and International Issue (MORFAI), 6(5), 6774–6779. Retrieved from https://radjapublika.com/index.php/MORFAI/article/view/6049

Similar Articles

<< < 3 4 5 6 7 8 9 10 11 > >> 

You may also start an advanced similarity search for this article.