<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article">
 <front>
  <journal-meta>
   <journal-id journal-id-type="publisher-id">
    ojapps
   </journal-id>
   <journal-title-group>
    <journal-title>
     Open Journal of Applied Sciences
    </journal-title>
   </journal-title-group>
   <issn pub-type="epub">
    2165-3917
   </issn>
   <issn publication-format="print">
    2165-3925
   </issn>
   <publisher>
    <publisher-name>
     Scientific Research Publishing
    </publisher-name>
   </publisher>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="doi">
    10.4236/ojapps.2024.1410193
   </article-id>
   <article-id pub-id-type="publisher-id">
    ojapps-136903
   </article-id>
   <article-categories>
    <subj-group subj-group-type="heading">
     <subject>
      Articles
     </subject>
    </subj-group>
    <subj-group subj-group-type="Discipline-v2">
     <subject>
      Biomedical 
     </subject>
     <subject>
       Life Sciences, Chemistry 
     </subject>
     <subject>
       Materials Science, Computer Science 
     </subject>
     <subject>
       Communications, Engineering, Physics 
     </subject>
     <subject>
       Mathematics
     </subject>
    </subj-group>
   </article-categories>
   <title-group>
    Detection of Cocoa Leaf Diseases Using the CNN-Based Feature Extractor and XGBOOST Classifier
   </title-group>
   <contrib-group>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Kouassi Simeon
      </surname>
      <given-names>
       Kouassi
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref> 
     <xref ref-type="aff" rid="aff2"> 
      <sup>2</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Mamadou
      </surname>
      <given-names>
       Diarra
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Kouassi Hilaire
      </surname>
      <given-names>
       Edi
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff2"> 
      <sup>2</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Brou Jean-Claude
      </surname>
      <given-names>
       Koua
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref>
    </contrib>
   </contrib-group> 
   <aff id="aff1">
    <addr-line>
     aMechanics and Computer Science Laboratory, Felix Houphouët-Boigny University, Abidjan, Ivory Coast
    </addr-line> 
   </aff> 
   <aff id="aff2">
    <addr-line>
     aMathematics and Computer Science Laboratory, Nangui Abrogoua University, Abidjan, Ivory Coast
    </addr-line> 
   </aff> 
   <pub-date pub-type="epub">
    <day>
     16
    </day> 
    <month>
     10
    </month>
    <year>
     2024
    </year>
   </pub-date> 
   <volume>
    14
   </volume> 
   <issue>
    10
   </issue>
   <fpage>
    2955
   </fpage>
   <lpage>
    2972
   </lpage>
   <history>
    <date date-type="received">
     <day>
      28,
     </day>
     <month>
      September
     </month>
     <year>
      2024
     </year>
    </date>
    <date date-type="published">
     <day>
      25,
     </day>
     <month>
      September
     </month>
     <year>
      2024
     </year> 
    </date> 
    <date date-type="accepted">
     <day>
      25,
     </day>
     <month>
      October
     </month>
     <year>
      2024
     </year> 
    </date>
   </history>
   <permissions>
    <copyright-statement>
     © Copyright 2014 by authors and Scientific Research Publishing Inc. 
    </copyright-statement>
    <copyright-year>
     2014
    </copyright-year>
    <license>
     <license-p>
      This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/
     </license-p>
    </license>
   </permissions>
   <abstract>
    Among all the plagues threatening cocoa cultivation in general, and particularly in West Africa, the swollen shoot viral disease is currently the most dangerous. The greatest challenge in the fight to eradicate this pandemic remains its early detection. Traditional methods of swollen shoot detection are mostly based on visual observations, leading to late detection and/or diagnostic errors. The use of machine learning algorithms is now an alternative for effective plant disease detection. It is therefore crucial to provide efficient solutions to farmers’ cooperatives. In our study, we built a database of healthy and diseased cocoa leaves. We then explored the power of feature extractors based on convolutional neural networks such as VGG 19, Inception V3, DenseNet 201, and a custom CNN, combining their strengths with the XGBOOST classifier. The results of our experiments showed that this fusion of methods with XGBOOST yielded highly promising scores, outperforming the results of algorithms using the sigmoid function. These results were further consolidated by the use of evaluation metrics such as accuracy, mean squared error, F score, recall, and Matthews’s correlation coefficient. The proposed approach, combining state of the art feature extractors and the XGBOOST classifier, offers an efficient and reliable solution for the early detection of swollen shoot. Its implementation could significantly assist West African cocoa farmers in combating this devastating disease and preserving their crops. 
   </abstract>
   <kwd-group> 
    <kwd>
     Machine Learning
    </kwd> 
    <kwd>
      Cocoa Leaf Diseases
    </kwd> 
    <kwd>
      Deep Learning
    </kwd> 
    <kwd>
      Convolutional Neural Network
    </kwd> 
    <kwd>
      Feature Extraction
    </kwd> 
    <kwd>
      Image Recognition
    </kwd> 
    <kwd>
      XGBOOST
    </kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <sec id="s1">
   <title>1. Introduction</title>
   <p>The Swollen Shoot viral disease, or Cocoa Swollen Shoot Virus (CSSV), has been a major threat to cocoa cultivation in West Africa for over 70 years <xref ref-type="bibr" rid="scirp.136903-1">
     [1]
    </xref> <xref ref-type="bibr" rid="scirp.136903-2">
     [2]
    </xref>. First described in Ghana in 1936, it appeared in Côte d’Ivoire in 1943 and has since spread extensively throughout the subregion, particularly in Côte d’Ivoire, Ghana, and Togo <xref ref-type="bibr" rid="scirp.136903-2">
     [2]
    </xref> <xref ref-type="bibr" rid="scirp.136903-3">
     [3]
    </xref>. This disease poses a significant challenge to the Ivorian economy, the world’s largest cocoa producer <xref ref-type="bibr" rid="scirp.136903-4">
     [4]
    </xref> <xref ref-type="bibr" rid="scirp.136903-5">
     [5]
    </xref>. Indeed, the Swollen Shoot virus has devastated, and continues to seriously affect, cocoa production in the subregion, threatening the livelihoods of millions of smallholder farmers. This fully highlights the severity of the threat to food security and the incomes of rural communities.</p>
   <p>The symptoms of the disease vary, but mainly include abnormal swelling of shoots, branches, and roots, leaf discolouration, leaf deformation and premature leaf drop, pod stunting, and a significant reduction in yield, which may even lead to the death of the tree <xref ref-type="bibr" rid="scirp.136903-5">
     [5]
    </xref>. The disease is spread by a vector mealybug <xref ref-type="bibr" rid="scirp.136903-5">
     [5]
    </xref> <xref ref-type="bibr" rid="scirp.136903-6">
     [6]
    </xref>. In response to this plague, current control protocols rely on symptom identification and diagnosis, eradication of infected trees, vector management through insecticide use, and replanting with resistant varieties <xref ref-type="bibr" rid="scirp.136903-5">
     [5]
    </xref>-<xref ref-type="bibr" rid="scirp.136903-7">
     [7]
    </xref>. However, the primary challenge remains the early detection of disease hotspots. Manual survey methods are rudimentary and unsuitable for large plantations. It is in this context that Deep Learning technologies offer promising prospects for automating symptom detection and enabling rapid intervention, thus limiting the virus’s spread <xref ref-type="bibr" rid="scirp.136903-8">
     [8]
    </xref>.</p>
   <p>The objective of this paper is to explore recent advances in applying Deep Learning to the detection and monitoring of plant diseases, with a specific focus on the case of cocoa swollen shoot. We will examine hybrid methods based on CNN feature extractors and the XGBOOST classifier to assess AI’s potential to enhance the resilience of cocoa crops and support farming communities in their fight against this persistent threat.</p>
   <p>Our study’s contributions are as follows:</p>
   <p>These contributions highlight not only the innovation and rigour of our approach but also its potential to significantly improve early detection and management of cocoa diseases.</p>
   <p>Following this introductory section, the remainder of the paper is structured as follows: Section 2 reviews the literature. Section 3 describes the materials and proposed methodology. Section 4 presents the experimental results of the various test scenarios conducted. Section 5, dedicated to discussion, highlights the discrepancies between the results obtained from testing the different scenarios on the same dataset. Finally, Section 6 concludes the study and offers suggestions for future work.</p>
  </sec><sec id="s2">
   <title>2. State of the Art</title>
   <p>Several studies have been conducted in the field of computer vision, particularly focusing on the detection of agricultural pathologies. Below, we present some works that are relevant to our study.</p>
   <p>Kacoutchy Jean Ayikpa et al. <xref ref-type="bibr" rid="scirp.136903-9">
     [9]
    </xref> conducted an in-depth study primarily focused on evaluating the effectiveness of feature extractors and the impact of colour spaces on these extractors for classifying the maturity of cocoa pods using images from a database. Several similarity measures were applied in conjunction with feature extractors to classify pod images according to their maturity level. Classification performance was examined from various angles, using feature extractors based on convolutional neural networks (CNN) and the Gray-Level Co-occurrence Matrix (GLCM) across different colour spaces, such as RGB, HSV, Lab, and Luv <xref ref-type="bibr" rid="scirp.136903-10">
     [10]
    </xref> <xref ref-type="bibr" rid="scirp.136903-11">
     [11]
    </xref>. The results showed that the Lab colour space, combined with GLCM and the chi-square distance similarity measure, produced the best results, with an accuracy of 99.60%.</p>
   <p>Ker Sing Soh et al. <xref ref-type="bibr" rid="scirp.136903-12">
     [12]
    </xref> proposed the use of convolutional neural networks to classify cocoa diseases, focusing on addressing the significant agricultural and economic impacts of black pod rot and pod borer. They utilised a dataset of 4390 images and evaluated five CNN architectures: Custom CNN, VGG-16, EfficientNetB0, ResNet50, and LeNet-5, assessing their ability to accurately identify disease presence <xref ref-type="bibr" rid="scirp.136903-13">
     [13]
    </xref> <xref ref-type="bibr" rid="scirp.136903-14">
     [14]
    </xref>. The Custom CNN model was the most effective, achieving an accuracy of 91.79%, precision of 91.79%, recall of 91.79%, an F1-score of 82.08%, sensitivity of 96.69%, and specificity of 98.40%, demonstrating a strong capability to accurately classify healthy and diseased plants.</p>
   <p>Mamadou Coulibaly et al. <xref ref-type="bibr" rid="scirp.136903-15">
     [15]
    </xref> developed a system to recognize symptoms of the Swollen Shoot epidemic through feature extraction from cocoa pods, enabling better diagnosis of plants affected by the disease. Their study was based on convolutional neural networks, with results showing that a deep CNN achieved record accuracy on a supervised learning dataset, with a rate of 84%.</p>
   <p>Kacoutchy Jean Ayikpa et al. <xref ref-type="bibr" rid="scirp.136903-16">
     [16]
    </xref> employed various approaches for classifying and recognising coffee leaf diseases, using both traditional machine learning methods and deep learning techniques. The evaluation demonstrated high efficiency, with 100% accuracy for traditional methods such as SVM and Random Forest, as well as for deep learning methods like MobileNet and Custom CNN.</p>
   <p>Bueno et al. <xref ref-type="bibr" rid="scirp.136903-17">
     [17]
    </xref> investigated a technique to determine cocoa maturity by analyzing the acoustic properties of cocoa beans and pods. Their approach involved extracting distinguishable features from acoustic signals and applying convolutional neural networks (CNN) to classify the sound of cocoa. Their model achieved a classification accuracy of 97.46% for determining the maturity of unharvested cocoa pods.</p>
   <p>Sandra Kumi et al. <xref ref-type="bibr" rid="scirp.136903-18">
     [18]
    </xref> developed a smartphone application based on deep learning to detect Swollen Shoot disease and black pod rot in cocoa. This mobile application, designed with integrated machine learning techniques, allows cocoa farmers to take photos of cocoa pods and upload them for diagnosis, which is processed on a cloud service. They trained and tested four CNN models, achieving an accuracy of over 80% with the SSD MobileNet V2 model.</p>
   <p>Darlyn Buenano Vera et al. <xref ref-type="bibr" rid="scirp.136903-19">
     [19]
    </xref> introduced a deep learning model for identifying cocoa pod diseases, focusing on “moniliasis” and “black pod rot” using EfficientDet-Lite4 <xref ref-type="bibr" rid="scirp.136903-20">
     [20]
    </xref>, a lightweight and efficient object detection model. A dataset containing images of healthy and diseased cocoa pods was used to train the model to detect and localize disease manifestations with considerable accuracy. Improvements in model training and evaluation demonstrated its ability to recognize and classify diseases through image analysis. Additionally, the model’s features were integrated into a native Android mobile application with a user-friendly interface, allowing young or inexperienced farmers to quickly and accurately assess cocoa pod health.</p>
   <p>Ciro Rodriguez et al. <xref ref-type="bibr" rid="scirp.136903-21">
     [21]
    </xref> proposed a machine learning approach for identifying cocoa tree diseases (Theobroma cacao L.) and preventing crop losses, as farmers often lack immediate tools for timely disease detection. They used image processing and analysis techniques such as HoG (Histograms of Oriented Gradients) <xref ref-type="bibr" rid="scirp.136903-22">
     [22]
    </xref>, LBP (Local Binary Patterns) <xref ref-type="bibr" rid="scirp.136903-23">
     [23]
    </xref>, and SVM (Support Vector Machine) <xref ref-type="bibr" rid="scirp.136903-24">
     [24]
    </xref> <xref ref-type="bibr" rid="scirp.136903-25">
     [25]
    </xref> for classification, to determine whether the cocoa tree was infected with a disease. The results revealed that applying SVM, Random Forest, and artificial neural networks (ANN) with feature vectors extracted using HoG and LBP algorithms could predict the state of the cocoa tree, with accuracy improving as the dataset size increased.</p>
   <p>Annisa Fitri Maghfiroh Harvyanti et al. <xref ref-type="bibr" rid="scirp.136903-26">
     [26]
    </xref> used a deep learning approach to identify one of the most common cocoa diseases, Vascular Streak Dieback (VSD) <xref ref-type="bibr" rid="scirp.136903-27">
     [27]
    </xref>, enabling timely treatment to maintain productivity. Their method relied on analysing leaf images using convolutional neural networks to simplify and accelerate the detection process. They evaluated four CNN architectures, namely AlexNet, SqueezeNet, Darknet, and a custom CNN, to identify cocoa plants infected with VSD <xref ref-type="bibr" rid="scirp.136903-28">
     [28]
    </xref> <xref ref-type="bibr" rid="scirp.136903-29">
     [29]
    </xref>. With a dataset of 1200 images, including 600 healthy and 600 VSD-infected samples, the best results were achieved with the DarkNet-19 model, achieving a test accuracy of 98.61%.</p>
   <p>Several studies have been conducted on detecting Swollen Shoot based on cocoa pod images, yielding promising results. However, very few studies have focused on detection based on cocoa tree leaves, the most visible aerial part of the plant. In our study, we aim to detect Swollen Shoot based on symptoms present on cocoa leaves, which could serve as a basis for aerial detection of disease outbreaks.</p>
  </sec><sec id="s3">
   <title>3. Materials and Methods</title>
   <p>This section outlines the proposed methodology for our study, including the dataset and materials used, the convolutional neural network models, the data preprocessing techniques applied, the deep learning methods, and the models proposed.</p>
   <sec id="s3_1">
    <title>3.1. Materials</title>
    <p>1) Dataset Description</p>
    <p>The dataset used in this study consists of cocoa leaf images from plants belonging to the Forastero group, specifically from the Amelonado sub-variety and Trinitario group. The images were collected from three plantations in Côte d’Ivoire. The experimental plantation of the National Centre for Agronomic Research (CNRA) located in Bouaflé, in the central-western region of Côte d’Ivoire (Forastero) and a local farmer’s plantation in the same area (Forastero group). The last is a local farmer’s plantation in Divo (Forastero and Trinitario group), located in the southern part of Côte d’Ivoire, a region known for high cocoa production.</p>
    <p>The dataset comprises 6000 images (2456 px × 3275 px), organized as follows: A first folder containing 2700 images of healthy plant leaves and the second folder containing 3300 images of infected plant leaves showing visible symptoms.</p>
    <p>The images were captured in uncontrolled, real-world conditions during normal daylight hours, under clear skies (between 10 a.m. and 4 p.m.), with ambient temperatures ranging from 28˚C to 32˚C, solar irradiance between 200 W/m<sup>2</sup> and 500 W/m<sup>2</sup>, and humidity levels between 70% and 90%. The distance between the camera and the subject ranged from one to five meters.</p>
    <p>
     <xref ref-type="fig" rid="fig1">
      Figure 1
     </xref> and <xref ref-type="fig" rid="fig2">
      Figure 2
     </xref> display images of healthy cocoa leaves and leaves showing symptoms respectively.</p>
    <fig id="fig1" position="float">
     <label>Figure 1</label>
     <caption>
      <title>Figure 1. Example of holy cocoa leaves.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2312763-rId12.jpeg?20241028031022" />
    </fig>
    <fig id="fig2" position="float">
     <label>Figure 2</label>
     <caption>
      <title>Figure 2. Example of cocoa leaves showing symptoms of Swollen Shoot.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2312763-rId13.jpeg?20241028031022" />
    </fig>
    <p>2) Data Pre-processing</p>
    <p>Data pre-processing is a critical phase in any image classification process, as it significantly influences both the performance and efficiency of the models.</p>
    <p>For our data pre-processing, we utilized the CLAHE (Contrast Limited Adaptive Histogram Equalization) algorithm. CLAHE is an image processing technique designed to enhance local contrast while mitigating the noise typically amplified by global histogram equalization <xref ref-type="bibr" rid="scirp.136903-30">
      [30]
     </xref> <xref ref-type="bibr" rid="scirp.136903-31">
      [31]
     </xref>. The CLAHE pre-processing method consists of the following steps:</p>
    <p>Upon processing all blocks, the resulting image displays enhanced local contrast without the artifacts commonly associated with global histogram equalization.</p>
    <p>
     <xref ref-type="fig" rid="fig3">
      Figure 3
     </xref> below are examples of images following the application of the pre-processing algorithm.</p>
    <fig id="fig3" position="float">
     <label>Figure 3</label>
     <caption>
      <title>Figure 3. Example of pre-processed images.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2312763-rId14.jpeg?20241028031022" />
    </fig>
    <p>3) Data Augmentation</p>
    <p>
     <xref ref-type="bibr" rid="scirp.136903-"></xref>To improve the model’s generalization by exposing it to various perspectives of the original images, we applied data augmentation techniques. This was achieved by rotating the images at three angles: 90˚, 180˚, and 270˚, followed by flipping each of these rotated images (<xref ref-type="fig" rid="fig4">
      Figure 4
     </xref>). This approach effectively increases the size of our dataset by a factor of eight. The advantage of this technique lies in its ability to diversify the dataset while enhancing the model’s resilience to noise. As a result, it improves the model’s accuracy and sensitivity by optimizing feature detection and reducing biases.</p>
    <fig id="fig4" position="float">
     <label>Figure 4</label>
     <caption>
      <title>Figure 4. Example of augmented image.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2312763-rId15.jpeg?20241028031022" />
    </fig>
    <p>Following the pre-processing steps, we present in <xref ref-type="table" rid="table1">
      Table 1
     </xref> the proportions of the different categories of leaves in the dataset.</p>
    <table-wrap id="table1">
     <label>
      <xref ref-type="table" rid="table1">
       Table 1
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.136903-"></xref>Table 1. Proportions of different categories of leaves.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td aleft" width="43.22%"><p style="text-align:left">Type of Leaves</p></td> 
       <td class="custom-bottom-td aleft" width="28.74%"><p style="text-align:left">Quantity</p></td> 
       <td class="custom-bottom-td aleft" width="28.06%"><p style="text-align:left">Percentages</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td aleft" width="43.22%"><p style="text-align:left">Leaves of Healthy Plants</p></td> 
       <td class="custom-top-td aleft" width="28.74%"><p style="text-align:left">2700 Images</p></td> 
       <td class="custom-top-td aleft" width="28.06%"><p style="text-align:left">45%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="43.22%"><p style="text-align:left">Leaves Showing Symptoms</p></td> 
       <td class="aleft" width="28.74%"><p style="text-align:left">3300 Images</p></td> 
       <td class="aleft" width="28.06%"><p style="text-align:left">55%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="43.22%"><p style="text-align:left">Total</p></td> 
       <td class="aleft" width="28.74%"><p style="text-align:left">6000 Images</p></td> 
       <td class="aleft" width="28.06%"><p style="text-align:left">100%</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>4) Hardware</p>
    <p>We selected Python as the programming language for implementing our project due to its simplicity, versatility, and the extensive range of libraries it offers. Python is also supported by most online platforms. For hardware, we used an HP All-in-One desktop PC equipped with an Intel(R) CORE I7-12700T 2.4 GHz processor, 16 GB RAM, a 1 TB SSD, and an NVIDIA Quadro P400 GPU. Additionally, we utilized the free Kaggle online platform for testing, which provides 16 GB of disk space, 16 GB RAM for the CPU, and 16 GB RAM for the GPU.</p>
   </sec>
   <sec id="s3_2">
    <title>3.2. Methodology</title>
    <p>We implemented three other algorithms in parallel using the pre-trained models VGG-19, Inception V3, and DenseNet-201.</p>
    <p>1) CNN Algorithm used</p>
    <p>a) VGG-19</p>
    <p>The VGG-19 model is a deep convolutional neural network belonging to the VGG (Visual Geometry Group) family. Developed by the Visual Geometry Group at the University of Oxford, it consists of 19 convolutional layers using a 3 × 3 kernel. The model employs a nonlinear activation function and max-pooling for subsampling. Additionally, it includes two fully connected layers, each with 4096 nodes, followed by a Softmax layer for classification <xref ref-type="bibr" rid="scirp.136903-32">
      [32]
     </xref> <xref ref-type="bibr" rid="scirp.136903-33">
      [33]
     </xref>.</p>
    <p>b) Inception V3</p>
    <p>Inception V3 is a widely adopted convolutional neural network architecture designed for classification tasks. The Inception V3 module forms the backbone of the GoogLeNet network. Typically, the Inception V3 module contains three different convolution sizes and a max-pooling operation. After performing convolutions on the output from the previous layer, channels are aggregated, and pooling of non-network elements occurs. Inception V3 introduces kernel factorization to break down larger convolutions into smaller ones, optimizing computation <xref ref-type="bibr" rid="scirp.136903-34">
      [34]
     </xref>.</p>
    <p>c) DenseNet-201</p>
    <p>The Dense Convolutional Network (DenseNet) architecture includes four variants: DenseNet121, DenseNet169, DenseNet201, and DenseNet264. These networks use layers with 12 filters. In our study, we used DenseNet-201, where each layer has direct access to both the original input image and the gradients of the loss function. This architecture significantly reduces computational cost, making DenseNet-201 an excellent choice for image classification tasks <xref ref-type="bibr" rid="scirp.136903-35">
      [35]
     </xref>.</p>
    <p>2) Classifiers</p>
    <p>a) Sigmoid Classifier</p>
    <p>The sigmoid classifier employs the sigmoid function as an activation function within a model, commonly used in logistic regression or neural networks. The sigmoid function is mathematically defined by the following formula:</p>
    <p>
     <xref ref-type="bibr" rid="scirp.136903-"></xref> 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         ξ 
       </mi> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mn>
          1 
        </mn> 
        <mrow> 
         <mn>
           1 
         </mn> 
         <mo>
           + 
         </mo> 
         <msup> 
          <mtext>
            e 
          </mtext> 
          <mrow> 
           <mo>
             − 
           </mo> 
           <mi>
             x 
           </mi> 
          </mrow> 
         </msup> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math> (1)</p>
    <p>This function takes an input value xxx and transforms it into an output ranging between 0 and 1, making it particularly suitable for binary classification tasks where the objective is to predict the probability of belonging to a specific class. In neural networks, the sigmoid function is often applied for several reasons:</p>
    <p>However, the sigmoid function has certain limitations. It can lead to slow learning due to the very small gradients produced for large or small input values. This inefficiency, particularly as the function approaches 1 or 0, can hinder the learning process.</p>
    <p>b) XGBOOST Classifier</p>
    <p>XGBoost (Extreme Gradient Boosting) is an optimized machine learning library designed for implementing gradient boosting algorithms. Introduced by Tianqi Chen in 2014, it has become one of the most popular and efficient classifiers for both classification and regression tasks in machine learning <xref ref-type="bibr" rid="scirp.136903-36">
      [36]
     </xref>. XGBoost is recognized for the following:</p>
    <p>c) SVM Classifier</p>
    <p>The Support Vector Machine (SVM) is a supervised learning algorithm used for both classification and regression tasks. It seeks to maximize the margin between classes by finding an optimal hyperplane that separates them. The support vectors are the points closest to this hyperplane.</p>
    <p>SVM uses kernel functions (linear, polynomial, RBF) to handle non-linear data by projecting it into a higher-dimensional space where separation becomes possible. The C parameter controls the trade-off between maximizing the margin and minimizing classification errors.</p>
    <p>SVM is valued for its robustness and ability to generalize well, especially in high-dimensional spaces. However, it can be computationally expensive and often requires fine-tuning of parameters.</p>
    <p>3) Evaluation Metrics</p>
    <p>To evaluate the performance of the models in our study, we used several evaluation metrics, including accuracy, mean squared error (MSE), recall, F1 score, and the Matthews correlation coefficient (MCC), each calculated using the following formulas:</p>
    <p>a) Accuracy</p>
    <p>Accuracy is the simplest and most commonly used metric to evaluate the performance of deep learning algorithms. It represents the percentage of correct predictions out of the total predictions made on the selected sample.</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Accuracy 
       </mtext> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <mtext>
           PC 
         </mtext> 
        </mrow> 
        <mrow> 
         <mtext>
           PT 
         </mtext> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math> (2)</p>
    <p>b) Mean Squared Error (MSE)</p>
    <p>Mean Squared Error measures the average of the squared differences between the predicted values and the actual values of the training data.</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"> <mrow> 
       <mtext>
         MSE 
       </mtext> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mn>
          1 
        </mn> 
        <mi>
          n 
        </mi> 
       </mfrac> 
       <mstyle displaystyle="true"> 
        <msubsup> 
         <mo>
           ∑ 
         </mo> 
         <mrow> 
          <mi>
            i 
          </mi> 
          <mo>
            = 
          </mo> 
          <mn>
            1 
          </mn> 
         </mrow> 
         <mi>
           n 
         </mi> 
        </msubsup> 
        <mrow> 
         <msup> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <msub> 
              <mi>
                y 
              </mi> 
              <mi>
                i 
              </mi> 
             </msub> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mover accent="true"> 
               <mi>
                 y 
               </mi> 
               <mo>
                 ^ 
               </mo> 
              </mover> 
              <mi>
                i 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
       </mstyle> 
      </mrow> 
     </math> (3)</p>
    <p>c) Recall</p>
    <p>Recall assesses the true positive rate, which is the proportion of leaves showing symptoms that were correctly identified. It measures the model’s ability to detect all infected leaves.</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Recall 
       </mtext> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <mtext>
           VP 
         </mtext> 
        </mrow> 
        <mrow> 
         <mtext>
           VP 
         </mtext> 
         <mo>
           + 
         </mo> 
         <mtext>
           FN 
         </mtext> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math> (4)</p>
    <p>d) F1 Score</p>
    <p>The F1 score is the weighted average of recall and precision, balancing both metrics to provide a single performance measure.</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         F 
       </mtext> 
       <mn>
         1 
       </mn> 
       <mtext>
           
       </mtext> 
       <mtext>
         score 
       </mtext> 
       <mo>
         = 
       </mo> 
       <mn>
         2 
       </mn> 
       <mo>
         ∗ 
       </mo> 
       <mfrac> 
        <mrow> 
         <mtext>
           Precision 
         </mtext> 
         <mo>
           ∗ 
         </mo> 
         <mtext>
           Recall 
         </mtext> 
        </mrow> 
        <mrow> 
         <mtext>
           Precision + Recalll 
         </mtext> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math> (5)</p>
    <p>e) Matthews Correlation Coefficient (MCC)</p>
    <p>MCC is used to evaluate the quality of binary classifications, offering a more balanced assessment than accuracy, especially in cases with imbalanced datasets.</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         MCC 
       </mtext> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <mtext>
           VP 
         </mtext> 
         <mo>
           ∗ 
         </mo> 
         <mtext>
           VN 
         </mtext> 
         <mo>
           − 
         </mo> 
         <mtext>
           FP 
         </mtext> 
         <mo>
           ∗ 
         </mo> 
         <mtext>
           FN 
         </mtext> 
        </mrow> 
        <mrow> 
         <msqrt> 
          <mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mtext>
               VP 
             </mtext> 
             <mo>
               + 
             </mo> 
             <mtext>
               FP 
             </mtext> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mtext>
               VP 
             </mtext> 
             <mo>
               + 
             </mo> 
             <mtext>
               FN 
             </mtext> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mtext>
               VN 
             </mtext> 
             <mo>
               + 
             </mo> 
             <mtext>
               FP 
             </mtext> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mtext>
               VN 
             </mtext> 
             <mo>
               + 
             </mo> 
             <mtext>
               FN 
             </mtext> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
         </msqrt> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math> (6)</p>
    <p>where:</p>
    <p>These metrics were used to assess the overall performance and robustness of the implemented algorithms.</p>
    <p>4) Implementation of the Algorithms</p>
    <p>a) Architecture of the Algorithms</p>
    <p>Our algorithm follows the general architecture of convolutional neural networks. It consists of a convolutional layer, a subsampling layer, a normalization layer, and a fully connected layer (e.g. <xref ref-type="fig" rid="fig5">
      Figure 5
     </xref>).</p>
    <fig id="fig5" position="float">
     <label>Figure 5</label>
     <caption>
      <title>Figure 5. Methodology flowchart.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2312763-rId32.jpeg?20241028031022" />
    </fig>
    <p>b) Hyper parameters used</p>
    <p>We implemented this algorithm using the Python programming language with TensorFlow libraries, notably Keras. In the implementation, we used the following hyper parameters:</p>
   </sec>
  </sec><sec id="s4">
   <title>4. Results and Analysis</title>
   <p>To evaluate the performance of different algorithms and classifiers in detecting cocoa leaf diseases, we organized our tests into three scenarios.</p>
   <sec id="s4_1">
    <title>4.1. Test Organization</title>
    <p>1) Scenario 1</p>
    <p>Scenario 1 involves detecting cocoa leaf diseases using feature extractors from VGG19, DenseNet, Inception V3, and Custom CNN with fully connected RNN layers as classifiers.</p>
    <p>2) Scenario 2</p>
    <p>Scenario 2 involves detecting cocoa leaf diseases using feature extractors from VGG19, DenseNet, Inception V3, and Custom CNN with XGBOOST classifiers.</p>
    <p>3) Scenario 3</p>
    <p>Scenario 3 involves detecting cocoa leaf diseases using feature extractors from VGG19, DenseNet, Inception V3, and Custom CNN with SVM classifiers.</p>
   </sec>
   <sec id="s4_2">
    <title>4.2. Results of the Scenarios</title>
    <p>This section presents all the experimental results obtained from our work, as well as a comparative study of the results from the VGG19, Dense Net, Inception V3, and Custom CNN algorithms with a sigmoid, XGBOOST and SVM classifier. For the three scenarios, we used the same dataset described earlier.</p>
    <p>To highlight the differences and similarities between the three scenarios, we will use the standard metrics described above.</p>
    <p>1) Results of scenario 1</p>
    <p>
     <xref ref-type="table" rid="table2">
      Table 2
     </xref> and <xref ref-type="fig" rid="fig6">
      Figure 6
     </xref> below summarie the results of the tests conducted with the previously mentioned custom CNN, using the evaluation metrics discussed earlier for Scenario 1.</p>
    <fig id="fig6" position="float">
     <label>Figure 6</label>
     <caption>
      <title>Figure 6. Performance of each deep learning model during the validation phases.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2312763-rId33.jpeg?20241028031023" />
    </fig>
    <table-wrap id="table2">
     <label>
      <xref ref-type="table" rid="table2">
       Table 2
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.136903-"></xref>Table 2. Performance metrics for deep learning models.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td aleft" width="21.50%"><p style="text-align:left">Model</p></td> 
       <td class="custom-bottom-td aleft" width="16.45%"><p style="text-align:left">Accuracy</p></td> 
       <td class="custom-bottom-td aleft" width="17.99%"><p style="text-align:left">Precision</p></td> 
       <td class="custom-bottom-td aleft" width="16.01%"><p style="text-align:left">F1-score</p></td> 
       <td class="custom-bottom-td aleft" width="15.89%"><p style="text-align:left">MCC</p></td> 
       <td class="custom-bottom-td aleft" width="12.16%"><p style="text-align:left">Recall</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td aleft" width="21.50%"><p style="text-align:left">VGG19</p></td> 
       <td class="custom-top-td aleft" width="16.45%"><p style="text-align:left">92.61%</p></td> 
       <td class="custom-top-td aleft" width="17.99%"><p style="text-align:left">84.67%</p></td> 
       <td class="custom-top-td aleft" width="16.01%"><p style="text-align:left">91.38%</p></td> 
       <td class="custom-top-td aleft" width="15.89%"><p style="text-align:left">85.80%</p></td> 
       <td class="custom-top-td aleft" width="12.16%"><p style="text-align:left">99.24%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="21.50%"><p style="text-align:left">Dense Net</p></td> 
       <td class="aleft" width="16.45%"><p style="text-align:left">95.80%</p></td> 
       <td class="aleft" width="17.99%"><p style="text-align:left">90.95%</p></td> 
       <td class="aleft" width="16.01%"><p style="text-align:left">94.92%</p></td> 
       <td class="aleft" width="15.89%"><p style="text-align:left">91.61%</p></td> 
       <td class="aleft" width="12.16%"><p style="text-align:left">99.24%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="21.50%"><p style="text-align:left">InceptionV3</p></td> 
       <td class="aleft" width="16.45%"><p style="text-align:left">93.61%</p></td> 
       <td class="aleft" width="17.99%"><p style="text-align:left">86.70%</p></td> 
       <td class="aleft" width="16.01%"><p style="text-align:left">92.43%</p></td> 
       <td class="aleft" width="15.89%"><p style="text-align:left">87.51%</p></td> 
       <td class="aleft" width="12.16%"><p style="text-align:left">98.99%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="21.50%"><p style="text-align:left">Custom CNN</p></td> 
       <td class="aleft" width="16.45%"><p style="text-align:left">96.30%</p></td> 
       <td class="aleft" width="17.99%"><p style="text-align:left">91.44%</p></td> 
       <td class="aleft" width="16.01%"><p style="text-align:left">95.53%</p></td> 
       <td class="aleft" width="15.89%"><p style="text-align:left">92.66%</p></td> 
       <td class="aleft" width="12.16%"><p style="text-align:left">100.00%</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>
     <xref ref-type="table" rid="table2">
      Table 2
     </xref> presents the metric values collected during the validation and testing phases of the deep learning models used. We obtained accuracy values ranging from 92.61% to 96.30%, and recall values from 98.99% to 100%, demonstrating the overall predictive performance of the models and their ability to correctly classify both positive and negative cases. Precision values ranged from 84.67% to 91.44%, and F1-scores varied from 91.38% to 92.66%, confirming the balanced capability of the models to identify positive instances while maintaining a low false-positive rate.</p>
    <p>In this scenario, the performance of the models, particularly VGG19, DenseNet, Inception V3, and a custom CNN with a sigmoid classifier, yielded very encouraging results. The best performance was achieved with our custom CNN.</p>
    <p>2) Results of Scenario 2</p>
    <p>
     <xref ref-type="table" rid="table3">
      Table 3
     </xref> and <xref ref-type="fig" rid="fig7">
      Figure 7
     </xref> below summarize the results of the tests conducted with the previously described Custom CNN, using the specified metrics for Scenario 2.</p>
    <p>The four models were evaluated using the XGBOOST classifier, which significantly improved their performance as observed in <xref ref-type="table" rid="table3">
      Table 3
     </xref>. Accuracy values ranged from 95.94% to 99.10%, recall from 99.83% to 98.98%, precision from 90.78% to 97.77%, and F1-scores varied from 95.09% to 98.87%.</p>
    <fig id="fig7" position="float">
     <label>Figure 7</label>
     <caption>
      <title>Figure 7. Performance of each deep learning model for validation phases.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2312763-rId34.jpeg?20241028031024" />
    </fig>
    <table-wrap id="table3">
     <label>
      <xref ref-type="table" rid="table3">
       Table 3
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.136903-"></xref>Table 3. Performance measures for deep learning models.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td aleft" width="33.42%"><p style="text-align:left">Model</p></td> 
       <td class="custom-bottom-td aleft" width="14.26%"><p style="text-align:left">Accuracy</p></td> 
       <td class="custom-bottom-td aleft" width="14.82%"><p style="text-align:left">Precision</p></td> 
       <td class="custom-bottom-td aleft" width="14.34%"><p style="text-align:left">F1-score</p></td> 
       <td class="custom-bottom-td aleft" width="12.12%"><p style="text-align:left">MCC</p></td> 
       <td class="custom-bottom-td aleft" width="11.04%"><p style="text-align:left">Recall</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td aleft" width="33.42%"><p style="text-align:left">VGG19_XGBOOST</p></td> 
       <td class="custom-top-td aleft" width="14.26%"><p style="text-align:left">95.94%</p></td> 
       <td class="custom-top-td aleft" width="14.82%"><p style="text-align:left">90.78%</p></td> 
       <td class="custom-top-td aleft" width="14.34%"><p style="text-align:left">95.09%</p></td> 
       <td class="custom-top-td aleft" width="12.12%"><p style="text-align:left">91.94%</p></td> 
       <td class="custom-top-td aleft" width="11.04%"><p style="text-align:left">99.83%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="33.42%"><p style="text-align:left">Dense Net_XGBOOST</p></td> 
       <td class="aleft" width="14.26%"><p style="text-align:left">98.30%</p></td> 
       <td class="aleft" width="14.82%"><p style="text-align:left">96.10%</p></td> 
       <td class="aleft" width="14.34%"><p style="text-align:left">97.89%</p></td> 
       <td class="aleft" width="12.12%"><p style="text-align:left">96.52%</p></td> 
       <td class="aleft" width="11.04%"><p style="text-align:left">99.89%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="33.42%"><p style="text-align:left">InceptronV3_XGBOOST</p></td> 
       <td class="aleft" width="14.26%"><p style="text-align:left">96.40%</p></td> 
       <td class="aleft" width="14.82%"><p style="text-align:left">91.80%</p></td> 
       <td class="aleft" width="14.34%"><p style="text-align:left">95.61%</p></td> 
       <td class="aleft" width="12.12%"><p style="text-align:left">92.80%</p></td> 
       <td class="aleft" width="11.04%"><p style="text-align:left">99.85%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="33.42%"><p style="text-align:left">Custom CNN_XGBOOST</p></td> 
       <td class="aleft" width="14.26%"><p style="text-align:left">99.10%</p></td> 
       <td class="aleft" width="14.82%"><p style="text-align:left">97.77%</p></td> 
       <td class="aleft" width="14.34%"><p style="text-align:left">98.87%</p></td> 
       <td class="aleft" width="12.12%"><p style="text-align:left">98.14%</p></td> 
       <td class="aleft" width="11.04%"><p style="text-align:left">99.98%</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>In this scenario, the performance of the four models significantly improved with the XGBOOST classifier. The best results were achieved with our custom CNN.</p>
    <p>The graphs in <xref ref-type="fig" rid="fig7">
      Figure 7
     </xref>, below provide an overview of the performance (accuracy and loss) of each mode.</p>
    <p>3) Results of Scenario 3</p>
    <p>
     <xref ref-type="table" rid="table4">
      Table 4
     </xref> and <xref ref-type="fig" rid="fig8">
      Figure 8
     </xref> below summarize the results of the tests conducted with the previously described Custom CNN, using the specified metrics for Scenario 2.</p>
    <table-wrap id="table4">
     <label>
      <xref ref-type="table" rid="table4">
       Table 4
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.136903-"></xref>Table 4. Performance measures for deep learning models.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td aleft" width="28.52%"><p style="text-align:left">Model</p></td> 
       <td class="custom-bottom-td aleft" width="15.11%"><p style="text-align:left">Accuracy</p></td> 
       <td class="custom-bottom-td aleft" width="16.18%"><p style="text-align:left">Precision</p></td> 
       <td class="custom-bottom-td aleft" width="14.26%"><p style="text-align:left">F1-score</p></td> 
       <td class="custom-bottom-td aleft" width="13.68%"><p style="text-align:left">MCC</p></td> 
       <td class="custom-bottom-td aleft" width="12.24%"><p style="text-align:left">Recall</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td aleft" width="28.52%"><p style="text-align:left">VGG19_SVM</p></td> 
       <td class="custom-top-td acenter" width="15.11%"><p style="text-align:center">94.31%</p></td> 
       <td class="custom-top-td acenter" width="16.18%"><p style="text-align:center">90.92%</p></td> 
       <td class="custom-top-td acenter" width="14.26%"><p style="text-align:center">95.08%</p></td> 
       <td class="custom-top-td acenter" width="13.68%"><p style="text-align:center">88.87%</p></td> 
       <td class="custom-top-td acenter" width="12.24%"><p style="text-align:center">99.64%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="28.52%"><p style="text-align:left">Dense Net_ SVM</p></td> 
       <td class="acenter" width="15.11%"><p style="text-align:center">97.80%</p></td> 
       <td class="acenter" width="16.18%"><p style="text-align:center">96.86%</p></td> 
       <td class="acenter" width="14.26%"><p style="text-align:center">98.16%</p></td> 
       <td class="acenter" width="13.68%"><p style="text-align:center">94.07%</p></td> 
       <td class="acenter" width="12.24%"><p style="text-align:center">99.49%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="28.52%"><p style="text-align:left">InceptronV3_ SVM</p></td> 
       <td class="acenter" width="15.11%"><p style="text-align:center">95.61%</p></td> 
       <td class="acenter" width="16.18%"><p style="text-align:center">93.55%</p></td> 
       <td class="acenter" width="14.26%"><p style="text-align:center">96.26%</p></td> 
       <td class="acenter" width="13.68%"><p style="text-align:center">90.16%</p></td> 
       <td class="acenter" width="12.24%"><p style="text-align:center">99.12%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="28.52%"><p style="text-align:left">Custom CNN_ SVM</p></td> 
       <td class="acenter" width="15.11%"><p style="text-align:center">98.31%</p></td> 
       <td class="acenter" width="16.18%"><p style="text-align:center">97.85%</p></td> 
       <td class="acenter" width="14.26%"><p style="text-align:center">98.58%</p></td> 
       <td class="acenter" width="13.68%"><p style="text-align:center">99.12%</p></td> 
       <td class="acenter" width="12.24%"><p style="text-align:center">99.33%</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <fig id="fig8" position="float">
     <label>Figure 8</label>
     <caption>
      <title>Figure 8. Performance of each deep learning model for validation phases.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/2312763-rId35.jpeg?20241028031024" />
    </fig>
    <p>In Scenario 3, the previous models were evaluated using the SVM classifier. We obtained accuracy values ranging from 94.31% to 98.31%, recall from 99.12% to 99.64%, while precision values ranged from 90.92% to 97.85%, and F1-scores varied from 95.08% to 98.58%. We observed a significant improvement in the results for all four models with the SVM classifier, although the performance remained below that of the XGBOOST classifier in Scenario 2. All four models showed better performance with both the SVM and XGBOOST classifiers.</p>
    <p>The graphs in <xref ref-type="fig" rid="fig8">
      Figure 8
     </xref> provide an overview of the performance (accuracy and loss) of each mode.</p>
    <p>4) Results Analysis</p>
    <p>The increase in accuracy based on the test data is presented in <xref ref-type="table" rid="table5">
      Table 5
     </xref> below.</p>
    <table-wrap id="table5">
     <label>
      <xref ref-type="table" rid="table5">
       Table 5
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.136903-"></xref>Table 5. Accuracy and precision variation.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td aleft" width="23.99%"><p style="text-align:left">Model</p></td> 
       <td class="custom-bottom-td aleft" width="18.99%"><p style="text-align:left">Scenario 1</p><p style="text-align:left">Accuracy</p></td> 
       <td class="custom-bottom-td aleft" width="19.01%"><p style="text-align:left">Scenario 2</p><p style="text-align:left">Accuracy</p></td> 
       <td class="custom-bottom-td aleft" width="19.01%"><p style="text-align:left">Scenario 3</p><p style="text-align:left">Accuracy</p></td> 
       <td class="custom-bottom-td aleft" width="19.01%"><p style="text-align:left">Accuracy</p><p style="text-align:left">increase</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td aleft" width="23.99%"><p style="text-align:left">VGG19</p></td> 
       <td class="custom-top-td aleft" width="18.99%"><p style="text-align:left">92.61%</p></td> 
       <td class="custom-top-td aleft" width="19.01%"><p style="text-align:left">95.94%</p></td> 
       <td class="custom-top-td acenter" width="19.01%"><p style="text-align:center">94.31%</p></td> 
       <td class="custom-top-td aleft" width="19.01%"><p style="text-align:left">3.47%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="23.99%"><p style="text-align:left">Dense Net</p></td> 
       <td class="aleft" width="18.99%"><p style="text-align:left">95.80%</p></td> 
       <td class="aleft" width="19.01%"><p style="text-align:left">98.30%</p></td> 
       <td class="acenter" width="19.01%"><p style="text-align:center">97.39%</p></td> 
       <td class="aleft" width="19.01%"><p style="text-align:left">2.54%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="23.99%"><p style="text-align:left">InceptionV3</p></td> 
       <td class="aleft" width="18.99%"><p style="text-align:left">93.61%</p></td> 
       <td class="aleft" width="19.01%"><p style="text-align:left">96.40%</p></td> 
       <td class="acenter" width="19.01%"><p style="text-align:center">95.57%</p></td> 
       <td class="aleft" width="19.01%"><p style="text-align:left">2.89%</p></td> 
      </tr> 
      <tr> 
       <td class="aleft" width="23.99%"><p style="text-align:left">Custom CNN</p></td> 
       <td class="aleft" width="18.99%"><p style="text-align:left">96.30%</p></td> 
       <td class="aleft" width="19.01%"><p style="text-align:left">99.10%</p></td> 
       <td class="acenter" width="19.01%"><p style="text-align:center">98.23%</p></td> 
       <td class="aleft" width="19.01%"><p style="text-align:left">2.83%</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>
     <xref ref-type="table" rid="table5">
      Table 5
     </xref> above presents the variations in efficiency observed across the three scenarios during the validation and testing phases of the different models. We observed an Accuracy increase ranging from 2.54% to 3.47%. These values underscore the overall improvement in results in the second scenario.</p>
    <p>All four models showed enhanced performance with both the SVM and XGBOOST classifiers.</p>
    <p>However, the custom CNN stood out with an accuracy of 97.77% and a recall of 99.98%.</p>
    <p>A comparative analysis of the three scenarios highlights the efficiency and precision gains brought by the use of XGBOOST in Scenario 2. These results illustrate the positive impact of integrating XGBOOST on model performance. The improved performance indicates a better ability of the models to generalize on validation and test datasets, reducing classification errors and increasing overall robustness.</p>
    <p>Our study shows that the XGBOOST classifier is highly effective in classifying Swollen Shoot symptoms from cocoa leaf images.</p>
   </sec>
  </sec><sec id="s5">
   <title>5. Conclusions</title>
   <p>In this study, we applied various deep learning methods to classify and recognize the Swollen Shoot disease using cocoa leaf images. The evaluation of these methods demonstrated the effectiveness of the models used in previous studies. However, our custom CNN, combined with the XGBOOST classifier, outperformed the others, achieving a prediction accuracy of 99.10% for diseased leaves and an overall accuracy of 97.29%. The model also exhibited minimal loss, confirming its robustness. Our future goal is to apply this resilient approach in uncontrolled environments by integrating segmentation techniques to better target the affected areas of the leaves.</p>
   <p>Our dataset was composed of two cocoa sub-varieties that are available as part of the Swollen Shoot control project. In our future work, we will expand this dataset to include other varieties cultivated in Brazil and globally. We also plan to leverage the advantages of new feature extraction and classification architectures to further enhance these results.</p>
  </sec><sec id="s6">
   <title>Acknowledgements</title>
   <p>We would like to express our sincere thanks and gratitude to all the individuals who supported us throughout this study. We also extend our appreciation to the person in charge at Felix Houphouët-Boigny University.</p>
  </sec>
 </body><back>
  <ref-list>
   <title>References</title>
   <ref id="scirp.136903-ref1">
    <label>1</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Koffié, K. and Bi, K. (2011) Impact de la maladie virale du swollen shoot du cacaoyer sur la production de cacao en milieu paysan à bazré (côte d’ivoire).
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref2">
    <label>2</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Lot, H., Djiekpor, E. and Jacquemond, M. (1991) Characterization of the Genome of Cacao Swollen Shoot Virus. Journal of General Virology, 72, 1735-1739. &gt;https://doi.org/10.1099/0022-1317-72-7-1735 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref3">
    <label>3</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Franck, O., Emmanuelle, M., François, B., Bernard, D., Komlan, W. and Christian, C. (2012) Analyse spatio-temporelle de la progression du Cacao Swollen Shoot Virus à l’échelle de parcelles cacaoyères.
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref4">
    <label>4</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Kouassi, K.E. (2021) Menaces Sur L’Avenir Du Cacao Ivoirien. Revue des Études Multidisciplinairers en Sciences Économiques et Socicles, 6, 103-120.
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref5">
    <label>5</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Ofori, A., Padi, F.K., Ameyaw, G.A., Dadzie, A.M., Opoku-Agyeman, M., Domfeh, O., et al. (2022) Field Evaluation of the Impact of Cocoa Swollen Shoot Virus Disease Infection on Yield Traits of Different Cocoa (Theobroma cacao L.) Clones in Ghana. PLOS ONE, 17, e0262461. &gt;https://doi.org/10.1371/journal.pone.0262461 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref6">
    <label>6</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Herrbach, E.E., Maguet, J.L. and Hommay, G. (2012) Les cochenilles, des hémiptères peu connus comme vecteurs de virus. 8th Conference of the Société Française de Phytopathologie, Paris, 5-8 June 2012, 84.
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref7">
    <label>7</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Couturier, G., Matile-Ferrero, D. and Richard, C. (1985) Sur les cochenilles de la région de Taï (Côte d’Ivoire), recensées dans les cultures et en forêt dense, (Homoptera, Coccoidea).
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref8">
    <label>8</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Goebel, F. (2015) Bioagresseurs des cultures tropicales face au changement climatique: quelques exemples. &gt;https://www.academia.edu/16770599/Bioagresseurs_des_cultures_tropicales_face_au_changement_climatique_quelques_exemples 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref9">
    <label>9</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Ayikpa, K.J., Mamadou, D., Gouton, P. and Adou, K.J. (2023) Classification of Cocoa Pod Maturity Using Similarity Tools on an Image Database: Comparison of Feature Extractors and Color Spaces. Data, 8, Article 99. &gt;https://doi.org/10.3390/data8060099 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref10">
    <label>10</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Haralick, R.M., Shanmugam, K. and Dinstein, I. (1973) Textural Features for Image Classification. IEEE Transactions on Systems, Man, and Cybernetics, 3, 610-621. &gt;https://doi.org/10.1109/tsmc.1973.4309314 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref11">
    <label>11</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     d’Ascoli, S., Touvron, H., Leavitt, M.L., Morcos, A.S., Biroli, G. and Sagun, L. (2022) Convit: Improving Vision Transformers with Soft Convolutional Inductive Biases. Journal of Statistical Mechanics: Theory and Experiment, 2022, Article 114005. &gt;https://doi.org/10.1088/1742-5468/ac9830 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref12">
    <label>12</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Sing Soh, K., Gubin Moung, E., John Julius Danker, K., Dargham, J.A. and Farzamnia, A. (2024) Cocoa Diseases Classification Using Deep Learning Algorithm. ITM Web of Conferences, 63, Article 01014. &gt;https://doi.org/10.1051/itmconf/20246301014 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref13">
    <label>13</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Gyamfi, A., Iddrisu, S.A. and Adegbola, O. (2020) Machine Learning-Based Cocoa E-Health System. 2020 13th CMI Conference on Cybersecurity and Privacy (CMI)—Digital Transformation—Potentials and Challenges(51275), Copenhagen, 26-27 November 2020, 1-7. &gt;https://doi.org/10.1109/cmi51275.2020.9322689 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref14">
    <label>14</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Lomotey, R.K., Kumi, S., Orji, R. and Deters, R. (2023) Automatic Detection and Diagnosis of Cocoa Diseases Using Mobile Tech and Deep Learning. International Journal of Sustainable Agricultural Management and Informatics, 10, 92-119.
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref15">
    <label>15</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Coulibaly, M., Kouassi, K.H., Kolo, S. and Asseu, O. (2020) Detection of “Swollen Shoot” Disease in Ivorian Cocoa Trees via Convolutional Neural Networks. Engineering, 12, 166-176. &gt;https://doi.org/10.4236/eng.2020.123014 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref16">
    <label>16</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Ayikpa, K.J., Ayikpa, K.J., Ayikpa, K.J., Mamadou, D., Gouton, P. and Adou, K.J. (2022) Experimental Evaluation of Coffee Leaf Disease Classification and Recognition Based on Machine Learning and Deep Learning Algorithms. Journal of Computer Science, 18, 1201-1212. &gt;https://doi.org/10.3844/jcssp.2022.1201.1212 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref17">
    <label>17</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Bueno, G.E., Valenzuela, K.A. and Arboleda, E.R. (2020) Maturity Classification of Cacao through Spectrogram and Convolutional Neural Network. Jurnal Teknologi dan Sistem Komputer, 8, 228-233. &gt;https://doi.org/10.14710/jtsiskom.2020.13733 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref18">
    <label>18</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Kumi, S., Kelly, D., Woodstuff, J., Lomotey, R.K., Orji, R. and Deters, R. (2022) Cocoa Companion: Deep Learning-Based Smartphone Application for Cocoa Disease Detection. Procedia Computer Science, 203, 87-94. &gt;https://doi.org/10.1016/j.procs.2022.07.013 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref19">
    <label>19</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Buenaño Vera, D., Oviedo, B., Chiriboga Casanova, W. and Zambrano-Vega, C. (2024) Deep Learning-Based Computational Model for Disease Identification in Cocoa Pods (Theobroma cacao L.).
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref20">
    <label>20</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Shukla, N. and Fricklas, K. (2018) Machine Learning with TensorFlow. Manning.
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref21">
    <label>21</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Rodriguez, C., Alfaro, O., Paredes, P., Esenarro, D. and Hilario, F. (2021) Machine Learning Techniques in the Detection of Cocoa (Theobroma cacao L.) Diseases. Annals of the Romanian Society for Cell Biology, 25, 7732-7741.
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref22">
    <label>22</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Forsyth, D.A. and Ponce, J. (2002) Computer Vision: A Modern Approach. Prentice Hall Professional Technical Reference. Pearson.
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref23">
    <label>23</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Zhang, G., Huang, X., Li, S.Z., Wang, Y. and Wu, X. (2004) Boosting Local Binary Pattern (LBP)-Based Face Recognition. In: Lecture Notes in Computer Science, Springer, 179-186. &gt;https://doi.org/10.1007/978-3-540-30548-4_21 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref24">
    <label>24</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Noria, H. and Aniya, A. (2011) Application of Support Vector Machines (SVM) for Handwritten Digit Recognition.
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref25">
    <label>25</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Bouillant, S., Mitéran, J., Yang, F. and Paindavoine, M. (2003) Détection de défauts temps réel sur des objets à géométrie complexe: Étude par SVM et hyperrectangles. &gt;https://core.ac.uk/download/pdf/15494840.pdf 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref26">
    <label>26</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Harvyanti, A.F.M., Baihaki, R.I., Dafik,, Ridlo, Z.R. and Agustin, I.H. (2023) Application of Convolutional Neural Network for Identifying Cocoa Leaf Disease. In: Advances in Intelligent Systems Research, Atlantis Press International BV, 283-304. &gt;https://doi.org/10.2991/978-94-6463-174-6_21 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref27">
    <label>27</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Samuels, G.J., Ismaiel, A., Rosmana, A., Junaid, M., Guest, D., Mcmahon, P., et al. (2012) Vascular Streak Dieback of Cacao in Southeast Asia and Melanesia: In Planta Detection of the Pathogen and a New Taxonomy. Fungal Biology, 116, 11-23. &gt;https://doi.org/10.1016/j.funbio.2011.07.009 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref28">
    <label>28</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Deng, L. and Yu, D. (2014) Deep Learning: Methods and Applications. Foundations and Trends in Signal Processing, 7, 197-387. &gt;https://doi.org/10.1561/2000000039 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref29">
    <label>29</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Minu, M.S., et al. (2022) Optimal Squeeze Net with Deep Neural Network-Based Arial Image Classification Model in Unmanned Aerial Vehicles. Traitement du Signal, 39, 275-281. &gt;https://doi.org/10.18280/ts.390128 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref30">
    <label>30</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Reza, A.M. (2004) Realization of the Contrast Limited Adaptive Histogram Equalization (CLAHE) for Real-Time Image Enhancement. The Journal of VLSI Signal Processing-Systems for Signal, Image, and Video Technology, 38, 35-44. &gt;https://doi.org/10.1023/b:vlsi.0000028532.53893.82 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref31">
    <label>31</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Paul, K.C. and Aslan, S. (2021) An Improved Real-Time Face Recognition System at Low Resolution Based on Local Binary Pattern Histogram Algorithm and CLAHE. Optics and Photonics Journal, 11, 63-78. &gt;https://doi.org/10.4236/opj.2021.114005 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref32">
    <label>32</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Goodfellow, I., Bengio, Y. and Courville, A. (2016) Deep Learning. MIT Press.
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref33">
    <label>33</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Mascarenhas, S. and Agarwal, M. (2021) A Comparison between VGG16, VGG19 and Resnet50 Architecture Frameworks for Image Classification. 2021 International Conference on Disruptive Technologies for Multi-Disciplinary Research and Applications, Bengaluru, 19-21 November 2021, 96-99. &gt;https://doi.org/10.1109/centcon52345.2021.9687944 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref34">
    <label>34</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Himel, G.M.S., Islam, M.M. and Rahaman, M. (2024) Vision Intelligence for Smart Sheep Farming: Applying Ensemble Learning to Detect Sheep Breeds. Artificial Intelligence in Agriculture, 11, 1-12. &gt;https://doi.org/10.1016/j.aiia.2023.11.002 
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref35">
    <label>35</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Team, K. (2023) Keras documentation: DenseNet, Keras Httpskeras Ioapiapplicationsdensenet.
    </mixed-citation>
   </ref>
   <ref id="scirp.136903-ref36">
    <label>36</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Wang, F., Tian, Y., Zhang, X. and Hu, F. (2022) An Ensemble of Xgboost Models for Detecting Disorders of Consciousness in Brain Injuries through EEG Connectivity. Expert Systems with Applications, 198, Article 116778. &gt;https://doi.org/10.1016/j.eswa.2022.116778
    </mixed-citation>
   </ref>
  </ref-list>
 </back>
</article>