Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Dec 18;10(12):327.
doi: 10.3390/jimaging10120327.

Optimization of Cocoa Pods Maturity Classification Using Stacking and Voting with Ensemble Learning Methods in RGB and LAB Spaces

Affiliations

Optimization of Cocoa Pods Maturity Classification Using Stacking and Voting with Ensemble Learning Methods in RGB and LAB Spaces

Kacoutchy Jean Ayikpa et al. J Imaging. .

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.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflicts of interest.

Figures

Figure 1
Figure 1
Diagram representing the voting process.
Figure 2
Figure 2
Illustration of the stacking process of the algorithms in our study.
Figure 3
Figure 3
The overall architecture of our method.
Figure 4
Figure 4
Histogram of model performance comparison (accuracy) in the RGB space.
Figure 5
Figure 5
Confusion matrix of the best-performing models in the RGB color space.
Figure 6
Figure 6
Histogram of model performance comparison (accuracy) in the LAB space.
Figure 7
Figure 7
Confusion matrix of the best-performing models in the LAB color space.
Figure 8
Figure 8
Histogram of algorithm performance in RGB and LAB color spaces.

Similar articles

References

    1. 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.
    1. 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
    1. 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
    1. 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.
    1. 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