Design and Development of A Sorting System for Ripeness and Damage in Avocado (Persea Americana Mill.) Based on Machine Learning
Main Article Content
Abstract
Avocado is an important commodity that requires proper postharvest handling, particularly in
sorting based on ripeness levels and fruit condition. Conventional methods that still rely on
manual inspection have limitations in terms of accuracy and efficiency. This study proposes a
real-time sorting system based on YOLOv8n running on a Raspberry Pi 4 Model B with a
Google Coral accelerator to detect avocados and classify their ripeness levels as well as damage.
The model was trained with a custom dataset and achieved a precision of 77.2%, recall of
84.4%, and a macro-average F1-Score of 80.6%. The system was integrated with a camera for
image acquisition and a mini conveyor for the sorting process. Experimental results
demonstrated reliable detection with an inference speed of 11.7 ms per image, and field testing
successfully classified avocados according to their categories. This system has proven to be
effective, cost-efficient, and supports the improvement of avocado postharvest quality.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
References
MANAJEMEN PEMANFAATAN SUMBER DAYA
ALAM UNTUK MENINGKATKAN
PEREKONOMIAN KELUARGA KAMPUNG
CIBOLEGER LEBAK - BANTEN,” Jurnal
Pengabdian Dharma Laksana, vol. 1, no. 1, 2018.
[2] D. S. a. T. B. Lukitariati Sadwiyanti, Budidaya alpukat,
Sumatera Barat: Balai Penelitian Tanaman Buah
Tropika, 2009.
[3] Indra Lintang [Online] Available:
https://www.inilah.com/daerah-penghasil-alpukatterbanyak-di-indonesia
[4] Alpokat (Persea Americana Mill.), Taman Digital
Fakultas Pertanian Universitas Andalas, Kampus
Unand, Kota Padang. [Online]. Available:
https://tamandigital.faperta.unand.ac.id/index.php/des
kripsi/tanaman/alpokat-persea-americana-mill
[5] A. H. Makarim, "Menggunakan Convolutional Neural
Network (CNN) untuk Klasifikasi Gambar Produk,"
Medium, May 15, 2024. [Online]. Available:
https://medium.com/@21611129/menggunakanconvolutional-neural-network-cnn-untuk-klasifikasigambar-produk-c9f75c2446cb. [Accessed: Nov. 18,
2024].
[6] Xukyo, “Using a PCA9685 module with Raspberry Pi,”
AranaCorp, 27 Sep. 2020. [Online].
Available: https://bit.ly/3Qm5P6Y. [Accessed:
May. 13, 2025].
[7] Google LLC, “USB Accelerator datasheet,” v. 1.4,
Aug. 2020. [Online]. Available:
https://coral.ai/docs/accelerator/datasheet/. [Accessed:
May. 13, 2025].
[8] NVIDIA, "NVIDIA T4 Tensor Core GPU," NVIDIA.
[Online]. Available: https://www.nvidia.com/enus/data-center/tesla-t4/. [Accessed: Aug. 4, 2025].
[9] D. H. Seol, J. E. Choi, C. Y. Kim, and S. J. Hong,
“Confusion matrix: Precision, Recall, Accuracy, and
F1 score,” Jan. 2023. [Online]. Available:
https://www.researchgate.net/figure/Confusionmatrix-Precision-Recall-Accuracy-and-F1-
score_fig4_367393140. [Accessed: Aug. 4, 2025]