A Computational Model of an Intelligent Optical Inspection and Sorting System for Apples Based on Color and Surface Quality
This study presents a YOLOv8n-based intelligent optical inspection system for assessing apple color and visible surface quality, together with a computational framework for its integration into automated sorting processes. RGB images of apples moving along a conveyor belt were acquired using a HIKROBOT industrial camera and preprocessed using OpenCV. The YOLOv8n model was employed to detect apples, estimate their bounding-box coordinates, and classify them into four categories: red, yellow, green, and defective. The proposed framework incorporates ByteTrack for object identity association, Lucas–Kanade optical flow and RANSAC-based homography estimation for approximate geometric position updating, and a class-to-channel mapping matrix for generating sorting control commands. At 500 training epochs, the model achieved a precision of 99.31%, a recall of 98.56%, an F1-score of 98.93%, an [email protected] of 99.2%, and an [email protected]:0.95 of 84.8% on the validation subset. On 400 held-out test images, the model achieved an [email protected] of 97.0% and an [email protected]:0.95 of 82.0%, and 358 images (89.50%) were correctly classified at the image level. The combined detection, classification, and tracking pipeline achieved an average processing rate of approximately 30 FPS. A preliminary timing assessment based on a nominal conveyor speed of 0.20 m/s and a design inspection-to-actuator distance of 0.80 m yielded an available travel time of approximately 4.00 s. The findings demonstrate the potential of the evaluated vision module for optical apple quality assessment, while independent validation of tracking performance, physical sorting accuracy, and end-to-end system latency remains necessary.
Authors
- Erkin Uljaev (ORCID: https://orcid.org/0000-0001-9614-3724)
- Jasur Usmonovich Sevinov (ORCID: https://orcid.org/0000-0003-0881-970X)
- Sabina Umirzakova (ORCID: https://orcid.org/0000-0002-7694-1806)
- Kuldoshbay Avazov
- Akmalbek Bobomirzaevich Abdusalomov (ORCID: https://orcid.org/0000-0001-5923-8695)
- Talshyn Sarsembayeva (ORCID: https://orcid.org/0000-0001-7668-2640)
- Ayhan İstanbullu (ORCID: https://orcid.org/0000-0002-7066-4238)
- Ulmasjon Abdixalilov
Institutions
- Balıkesir University (TR)
- Gachon University (KR)
- Samarkand State University named after Sharof Rashidov (UZ)
- Chungbuk National University (KR)
- Al-Farabi Kazakh National University (KZ)
- Tashkent University of Information Technology (UZ)
- Tashkent State Technical University named after Islam Karimov (UZ)
- Karshi State University (UZ)
- Alfraganus University (UZ)
- University of Tashkent for Applied Sciences (UZ)
- Tashkent State University of Economics (UZ)
Publication Details
- Journal
- Algorithms
- Published
- 2026-11-23
- DOI
- https://doi.org/10.3390/a19121024
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00