Automated Cocoa Bean Classification and Defect Detection Based on ASEAN Standard Using Image Processing and Feature-Based Analysis
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. Keywords: Defect Detection; MATLAB; cocoa bean grading; ASEAN Standard; digital image processing; computer vision
Authors
- Jennifer Natnat
Institutions
- Cavite State University (PH)
Publication Details
- Journal
- International Journal of Electrical and Electronics Engineering
- Published
- 2026-09-14
- DOI
- https://doi.org/10.64823/ijeee.2601005
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00