A Decision Tree Classification Model for Cocoa Beans Quality Evaluation based on Digital Imaging

  • Aminat Oladapo Tanimowo Computer Science and Engineering, Obafemi Awolowo University IleIfe https://orcid.org/0000-0002-3412-2909
  • Safiriyu Eludiora Computer Science and Engineering, Obafemi Awolowo University IleIfe
  • Anuoluwapo Ajayi Computer Science and Engineering, Obafemi Awolowo University IleIfe
Keywords: Machine Learning, CART, Gini Diversity Index, Cocoa beans classification, ROC

Abstract

Cocoa is an important export commodity and a major foreign exchange earner for producing Countries. Cocoa beans of good qualities have more economic value than defective ones. The chocolate obtained from the good cocoa gives an aroma that is sought after. Defects in cocoa beans are detected and revealed through a cut test procedure usually carried out by the Federal Produce Inspectors. In this research, the use of a supervised machine learning approach, a decision tree, for the classification of cocoa beans into good, slatty, mouldy and weevilly beans was proposed. A digital camera was used to capture images of 300 cut cocoa beans and the images were saved in the RGB colour format on a computer system. Colour and statistical features were extracted from these images by moment analysis of the colour channels (Red, Blue and Green). Fourteen features were totally extracted and saved in a feature database. Classification and regression tree (CART), a decision tree algorithm, was employed for the classification and three splitting criteria were tested: gini diversity index (gdi), twoing and deviance. The model was evaluated by its average prediction accuracy and the receiver operating characteristics (ROC) curve for each class was plotted. The maximum classification accuracy of 89.2% was recorded from the gdi splitting criteria. With this high classification accuracy, it was concluded that the decision tree machine learning algorithm is effective in the classification of dried farm produce like cocoa.

With this high classification accuracy, it can be concluded that decision tree machine learning algorithm is effective in the classification of dried farm produce like cocoa.

Published
2020-12-15
How to Cite
Tanimowo, A. O., Eludiora, S., & Ajayi, A. (2020). A Decision Tree Classification Model for Cocoa Beans Quality Evaluation based on Digital Imaging. Ife Journal of Technology, 27(1), 6-13. Retrieved from http://ijt.oauife.edu.ng/index.php/ijt/article/view/153