Machine vision study demonstrates high-accuracy defect detection in harvested cocoa beans, highlighting an objective tool for rapid postharvest quality grading.
This study presents an automated cocoa bean classification and defect detection system developed in accordance with the ASEAN Standard for Cocoa Bean (ASEAN Stan 34:2014). Implemented in MATLAB, the system utilizes digital image processing and computer vision techniques to segment individual cocoa beans, extract geometric, color, and texture features, and classify them into quality categories: Extra Class, Class I, Class II, and Non-Compliant. The image processing workflow integrates color space transformations (RGB to HSV), adaptive thresholding, and morphological filtering to ensure accurate segmentation. Feature extraction targets parameters such as area, length, aspect ratio, texture entropy, and color uniformity to identify specific defects including moldy, slaty, insect-damaged, and germinated beans. Validation against independent expert grading achieved an overall reliability rate of 96.2%, with high precision (0.93) and recall (0.91), and an average processing speed of 1.3 seconds per image. The developed analyzer provides an objective, rapid, and repeatable tool to support standardization and postharvest cocoa quality control across the ASEAN region.
No takes yet. Share an insight, caveat, or question.
Jennifer Natnat (2026) studied this question.
Synapse has enriched 5 related papers. Consider them for comparative context: