Optimization of Cocoa Pods Maturity Classification Using Stacking and Voting with Ensemble Learning Methods in RGB and LAB Spaces
- PMID: 39728224
- PMCID: PMC11727684
- DOI: 10.3390/jimaging10120327
Optimization of Cocoa Pods Maturity Classification Using Stacking and Voting with Ensemble Learning Methods in RGB and LAB Spaces
Abstract
Determining the maturity of cocoa pods early is not just about guaranteeing harvest quality and optimizing yield. It is also about efficient resource management. Rapid identification of the stage of maturity helps avoid losses linked to a premature or late harvest, improving productivity. Early determination of cocoa pod maturity ensures both the quality and quantity of the harvest, as immature or overripe pods cannot produce premium cocoa beans. Our innovative research harnesses artificial intelligence and computer vision technologies to revolutionize the cocoa industry, offering precise and advanced tools for accurately assessing cocoa pod maturity. Providing an objective and rapid assessment enables farmers to make informed decisions about the optimal time to harvest, helping to maximize the yield of their plantations. Furthermore, by automating this process, these technologies reduce the margins for human error and improve the management of agricultural resources. With this in mind, our study proposes to exploit a computer vision method based on the GLCM (gray level co-occurrence matrix) algorithm to extract the characteristics of images in the RGB (red, green, blue) and LAB (luminance, axis between red and green, axis between yellow and blue) color spaces. This approach allows for in-depth image analysis, which is essential for capturing the nuances of cocoa pod maturity. Next, we apply classification algorithms to identify the best performers. These algorithms are then combined via stacking and voting techniques, allowing our model to be optimized by taking advantage of the strengths of each method, thus guaranteeing more robust and precise results. The results demonstrated that the combination of algorithms produced superior performance, especially in the LAB color space, where voting scored 98.49% and stacking 98.71%. In comparison, in the RGB color space, voting scored 96.59% and stacking 97.06%. These results surpass those generally reported in the literature, showing the increased effectiveness of combined approaches in improving the accuracy of classification models. This highlights the importance of exploring ensemble techniques to maximize performance in complex contexts such as cocoa pod maturity classification.
Keywords: GLCM; cocoa pod; color spaces; ensemble learning; machine learning; stacking; voting.
Conflict of interest statement
The authors declare no conflicts of interest.
Figures








Similar articles
-
CocoaMFDB: A dataset of cocoa pod maturity and families in an uncontrolled environment in Côte d'Ivoire.Data Brief. 2023 May 3;48:109196. doi: 10.1016/j.dib.2023.109196. eCollection 2023 Jun. Data Brief. 2023. PMID: 37234732 Free PMC article.
-
A Computer Vision System Based on Majority-Voting Ensemble Neural Network for the Automatic Classification of Three Chickpea Varieties.Foods. 2020 Jan 21;9(2):113. doi: 10.3390/foods9020113. Foods. 2020. PMID: 31972986 Free PMC article.
-
Impacts of cocoa pod maturity at harvest and bean fermentation period on the production of chocolate with potential health benefits.J Sci Food Agric. 2022 Mar 15;102(4):1576-1585. doi: 10.1002/jsfa.11494. Epub 2021 Sep 4. J Sci Food Agric. 2022. PMID: 34405409
-
Ensemble Learning for Disease Prediction: A Review.Healthcare (Basel). 2023 Jun 20;11(12):1808. doi: 10.3390/healthcare11121808. Healthcare (Basel). 2023. PMID: 37372925 Free PMC article. Review.
-
Theobroma cacao L., "The food of the Gods": quality determinants of commercial cocoa beans, with particular reference to the impact of fermentation.Crit Rev Food Sci Nutr. 2011 Sep;51(8):731-61. doi: 10.1080/10408391003799913. Crit Rev Food Sci Nutr. 2011. PMID: 21838556 Review.
References
-
- End M.J., Dand R., editors. Fèves de Cacao: Exigences de Qualité de l’industrie du Chocolat et du Cacao. CAOBISCO; Brussels, Belgium: ECA; Brussels, Belgium: FCC; London, UK: 2015.
-
- Gyan J.K., Bajan B. Market Analysis on Cocoa Beans Export: The Case of Ghana and Cote d’Ivoire in West Africa. J. Agribus. Rural Dev. 2022;66:375–384. doi: 10.17306/J.JARD.2022.01646. - DOI
-
- Abdullahi N.M., Zhang Q., Shahriar S., Kea S., Huo X. Relative Export Competitiveness of the Nigerian Cocoa Industry. Compet. Rev. 2022;32:1025–1046. doi: 10.1108/CR-03-2021-0036. - DOI
-
- Marty-Terrade S., Marangoni A.G. Cocoa Butter and Related Compounds. Elsevier; Amsterdam, The Netherlands: 2012. Impact of Cocoa Butter Origin on Crystal Behavior; pp. 245–274.
-
- Henao-Ramírez A.M., Urrea-Trujillo A.I. Somatic Embryogenesis for Clonal Propagation and Associated Molecular Studies in Cacao (Theobroma cacao L.) In: Chong P.A., Newman D.J., Steinmacher D.A., editors. Agricultural, Forestry and Bioindustry Biotechnology and Biodiscovery. Springer International Publishing; Cham, Switzerland: 2020. pp. 63–102.
LinkOut - more resources
Full Text Sources
Miscellaneous