<?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">
    jcc
   </journal-id>
   <journal-title-group>
    <journal-title>
     Journal of Computer and Communications
    </journal-title>
   </journal-title-group>
   <issn pub-type="epub">
    2327-5219
   </issn>
   <issn publication-format="print">
    2327-5227
   </issn>
   <publisher>
    <publisher-name>
     Scientific Research Publishing
    </publisher-name>
   </publisher>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="doi">
    10.4236/jcc.2025.138006
   </article-id>
   <article-id pub-id-type="publisher-id">
    jcc-144699
   </article-id>
   <article-categories>
    <subj-group subj-group-type="heading">
     <subject>
      Articles
     </subject>
    </subj-group>
    <subj-group subj-group-type="Discipline-v2">
     <subject>
      Computer Science 
     </subject>
     <subject>
       Communications
     </subject>
    </subj-group>
   </article-categories>
   <title-group>
    Identification of Cherry Powdery Mildew Using Deep Convolutional Neural Network
   </title-group>
   <contrib-group>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Qiang
      </surname>
      <given-names>
       Jiang
      </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>
       Xu
      </surname>
      <given-names>
       Ming
      </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>
       Duyi
      </surname>
      <given-names>
       He
      </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>
       Shaojie
      </surname>
      <given-names>
       Guo
      </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>
       Tao
      </surname>
      <given-names>
       Zuo
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff3"> 
      <sup>3</sup>
     </xref>
    </contrib>
   </contrib-group> 
   <aff id="aff1">
    <addr-line>
     aSchool of Electronic Information and Artificial Intelligence, Leshan Normal University, Leshan, China
    </addr-line> 
   </aff> 
   <aff id="aff2">
    <addr-line>
     aSichuan Prefabricated Cabin Power Equipment Engineering Technology Research Center, Leshan, China
    </addr-line> 
   </aff> 
   <aff id="aff3">
    <addr-line>
     aLeshan Yi Lade Power Grid Automation Co., Ltd., Leshan, China
    </addr-line> 
   </aff> 
   <pub-date pub-type="epub">
    <day>
     01
    </day> 
    <month>
     08
    </month>
    <year>
     2025
    </year>
   </pub-date> 
   <volume>
    13
   </volume> 
   <issue>
    08
   </issue>
   <fpage>
    121
   </fpage>
   <lpage>
    137
   </lpage>
   <history>
    <date date-type="received">
     <day>
      30,
     </day>
     <month>
      June
     </month>
     <year>
      2025
     </year>
    </date>
    <date date-type="published">
     <day>
      9,
     </day>
     <month>
      June
     </month>
     <year>
      2025
     </year> 
    </date> 
    <date date-type="accepted">
     <day>
      9,
     </day>
     <month>
      August
     </month>
     <year>
      2025
     </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>
    Agriculture is essential for humanity’s survival, and productivity is crucial in agriculture. Owing to its multiple nutrients, cherry has become an important fruit for daily consumption; however, crop productivity is mainly reduced by powdery mildew. Hence, recognizing this disease is vital to farmers. We developed a deep convolutional neural network (DCNN)-based method to assess cherry tree health using leaf images. We constructed the DCNN model on Keras with TensorFlow, preprocessing the original images for convenience. We used a visualization method to analyze intermediate model layers, comparing features of healthy and diseased leaves. The model achieved 99.2% accuracy after 10 training epochs. Misclassification occurred when leaf shadow edges were close to actual leaf edges, leading the model to mistake actual edges as features indicating disease, offering new insights for distinguishing the disease. Simulation results demonstrate that identifying plant disease via a DCNN-based protocol is suitable and adaptable to other plants, providing high practical value.
   </abstract>
   <kwd-group> 
    <kwd>
     Disease Identification
    </kwd> 
    <kwd>
      Deep Learning
    </kwd> 
    <kwd>
      Convolutional Neural Network
    </kwd> 
    <kwd>
      Recognition
    </kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <sec id="s1">
   <title>1. Introduction</title>
   <p>Although most countries consider yearly economic growth, as indicated by measures such as the gross domestic product, food is unarguably the most important resource for the survival of humans and animals, especially in countries with large populations such as China and India <xref ref-type="bibr" rid="scirp.144699-1">
     [1]
    </xref> <xref ref-type="bibr" rid="scirp.144699-2">
     [2]
    </xref>. As a nation develops, more categories of food, such as grains, rice, vegetables, fruits, and meat, are required daily. Thus, food productivity and quality are crucial. However, diseases are a key cause of low productivity and reduced quality. Food security is low in resource-poor countries <xref ref-type="bibr" rid="scirp.144699-3">
     [3]
    </xref>, which directly affects human health and survival. Cherry is a fruit that is common in daily consumption. It contains many nutrients such as vitamins, minerals, and energy. It also contains important nutrients that can supply dietary elements lacking in rice and grains <xref ref-type="bibr" rid="scirp.144699-4">
     [4]
    </xref>. Hence, the diagnosis of diseases in cherry trees is vital. Unfortunately, few studies on this topic have been published.</p>
   <p>Rapidly recognizing the health of a cherry tree and classifying disease with high accuracy is a goal of many researchers. Some plant disease symptoms first appear on the leaves; thus, plant leaves can be studied to determine diseases <xref ref-type="bibr" rid="scirp.144699-5">
     [5]
    </xref>. Molecular techniques for disease identification are the foundation of this work. Over the decades, many plant researchers have constructed plant disease datasets. However, this method is only suitable for experts and small quantities of crops <xref ref-type="bibr" rid="scirp.144699-6">
     [6]
    </xref>. Fortunately, image-based techniques have been developed, and they can be combined with machine learning to effectively identify powdery mildew on plants. Machine learning, which consists of over 10 algorithms, is actively used in crop disease identification <xref ref-type="bibr" rid="scirp.144699-7">
     [7]
    </xref>. Using machine learning to identify plant pests and diseases is an efficient and precise method. By collecting images of plant leaves, stems, fruits, and other parts and combining environmental data such as temperature, humidity, and soil conditions to label the images, the types and severity of pests and diseases can be identified, assisting farmers and agricultural experts in quickly diagnosing the health status of plants and taking corresponding prevention and control measures <xref ref-type="bibr" rid="scirp.144699-8">
     [8]
    </xref> <xref ref-type="bibr" rid="scirp.144699-9">
     [9]
    </xref>.</p>
   <p>For example, Liu et al. proposed an Internet-of-Things-based method to directly perceive environmental conditions in crop fields <xref ref-type="bibr" rid="scirp.144699-10">
     [10]
    </xref>. This helps machine learning methods accurately predict the occurrence of plant diseases, with an accuracy as high as 91%. Kumar et al. used soil sensors and satellites to collect real-time data for in-depth analysis and a machine learning model to detect, evaluate, and predict plant diseases, with an average prediction accuracy above 98% <xref ref-type="bibr" rid="scirp.144699-11">
     [11]
    </xref>. To reduce the damage of white scale disease to date palm trees, an algorithm based on feature extraction and machine learning was proposed using support vector machine (SVM), K-nearest neighbors, and ensemble learning to analyze date palm tree leaf images, reaching an identification accuracy of 98.29% <xref ref-type="bibr" rid="scirp.144699-12">
     [12]
    </xref>.</p>
   <p>In practical applications, traditional machine learning is suitable for scenarios with limited resources or small data volumes, while convolutional neural networks (CNNs) are more suitable for large-scale high-precision plant pest and disease identification tasks and perform well in processing high-dimensional data, achieving superior recognition accuracy <xref ref-type="bibr" rid="scirp.144699-13">
     [13]
    </xref> <xref ref-type="bibr" rid="scirp.144699-14">
     [14]
    </xref>. Khattak et al. used a CNN to automatically detect citrus leaf diseases, with an accuracy of 94.55% <xref ref-type="bibr" rid="scirp.144699-15">
     [15]
    </xref>. Shruthi et al. proposed a CNN called TomSevNet for detecting tomato diseases and their severity, with a test accuracy of 96.91% <xref ref-type="bibr" rid="scirp.144699-16">
     [16]
    </xref>. In the past few years, deep learning has developed at an astonishing speed and become a popular research topic. Moreover, the sudden outbreak of the coronavirus disease, COVID-19, has made food security even more important. Therefore, many studies have utilized deep learning techniques to identify plant diseases to maintain the quality of agricultural products and increase yields. Studies have proposed plant disease detection models based on optimized CNNs <xref ref-type="bibr" rid="scirp.144699-17">
     [17]
    </xref>-<xref ref-type="bibr" rid="scirp.144699-20">
     [20]
    </xref>. A hybrid deep learning model combining CNN and optimized recurrent neural network was developed for precise segmentation and disease detection of rice spikelet sterility, achieving an accuracy of 96.34% <xref ref-type="bibr" rid="scirp.144699-17">
     [17]
    </xref>. The EfficientNetV2 model was demonstrated to be capable of detecting anthracnose and leaf spot diseases in cardamom plants, as well as black rot, esca, and isariopsis leaf spot in grapes, with a detection accuracy up to 98.26% <xref ref-type="bibr" rid="scirp.144699-18">
     [18]
    </xref>, outperforming other CNN and EfficientNet models. In the identification and detection of tea plant diseases and pests, transfer learning and the freezing core strategy were employed, resulting in a detection accuracy of 98.231% <xref ref-type="bibr" rid="scirp.144699-19">
     [19]
    </xref>. For detection and classification of cherry maturity and disease status, a MobileNet_v2 with SVM was adopted, achieving an identification accuracy of 98.3% <xref ref-type="bibr" rid="scirp.144699-20">
     [20]
    </xref>. The PlantDet model was proposed to enhance the robustness of disease detection in betel nut and rice leaves <xref ref-type="bibr" rid="scirp.144699-21">
     [21]
    </xref>. This model integrated multiple powerful models, achieving a detection accuracy of 98.53% and demonstrating the effectiveness of deep learning for plant disease prediction. The main drawback of deep learning is its high computational demand. Additionally, accuracy must be optimized; thus, the performance and computational load must be balanced <xref ref-type="bibr" rid="scirp.144699-22">
     [22]
    </xref>.</p>
   <p>In this study, we trained a deep CNN (DCNN) according to a dataset, optimized the hyperparameters, and classified the pixels of leaf images using the DCNN. This model performed well, and its computation was smaller than that of other methods, requiring only 72 s per epoch and 10 epochs to train. We analyzed the reasons for misclassifications of some leaves and present our conclusions.</p>
   <p>In brief, our major contributions are as follows:</p>
   <p>1) We built an improved DCNN model for cherry powdery mildew leaf diagnosis and classification and obtained a set of high-performing hyperparameters for our task.</p>
   <p>2) By conducting standardized preprocessing on the dataset (including image size normalization and key information retention algorithms), we achieved an optimal balance between the model training effect and computational efficiency, and proposed a solution that strikes a balance between recognition performance and computational consumption.</p>
   <p>3) We discovered that when the leaf shadow edge is close to the actual leaf edge, the DCNN model mistook the actual edge for a feature of disease during image processing.</p>
   <p>The remainder of this paper is organized as follows. Section 2 presents the CNN architectures. Section 3 describes the strategy for cherry disease identification, including the model design and recognition algorithm. In Section 4, we present our experiments, including dataset preparation and processing as well as the simulation results. The discussion is presented in Section 5, and conclusions are drawn in Section 6.</p>
  </sec><sec id="s2">
   <title>2. CNN Architectures</title>
   <sec id="s2_1">
    <title>2.1. CNNs</title>
    <p>Artificial neural networks were inspired by the seemingly inconceivable learning capability of the human brain. The human brain consists of billions of neurons interconnected by synapses, and their relationship changes as learning proceeds. Therefore, similar to a human brain, artificial neural networks can learn any task in principle. To improve learning capabilities, in 1998, LeCun et al. proposed the CNN architecture focusing on recognition, which is especially useful in image identification <xref ref-type="bibr" rid="scirp.144699-23">
      [23]
     </xref>.</p>
    <p>CNNs use image input directly and use the image pixels to automatically obtain features by convolving the pixels with filters. Multiple layers of convolutions can be calculated, which are followed by several fully connected layers. A set of weights and biases can be obtained through learning, and after the model has been trained, it can perform classification. In general, a CNN used in supervised learning contains an input layer, convolutional layer, pooling layer, ﬂattening layer, and softmax layer, as illustrated in <xref ref-type="fig" rid="fig1">
      Figure 1
     </xref>. CNNs are applied in many areas such as handwriting recognition, traffic ﬂow, automatic driving, face identification, and plant disease diagnosis.</p>
    <fig id="fig1" position="float">
     <label>Figure 1</label>
     <caption>
      <title>Figure 1. Architecture of DCNN.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733244-rId15.jpeg?20250812091644" />
    </fig>
   </sec>
   <sec id="s2_2">
    <title>2.2. Design of CNN Model</title>
    <p>In this study, we designed the architecture of our DCNN based on our goal. The model consists of three dense layers, one max-pooling layer, two dropout layers, and one ﬂattening layer. Furthermore, the dense layers contain two convolutional layers and one softmax output layer. The architecture of our DCNN is specified in <xref ref-type="table" rid="table1">
      Table 1
     </xref>. The total number of parameters is 420,738, but if we use an image 256 × 256 pixels, the total number of parameters is 30,938,690.</p>
    <p>The convolutional layer computes the output of each tensor. Each computation is a dot product between the weights and a small region input covered by a kernel window of 5 × 5 pixels. Moreover, each computation extracts a feature map from the input image. When the window finishes sliding over the image, a map of the main features is obtained, and the tensor output dimensionality is reduced. We design the pooling layer to subsample the features. The pooling kernel size is (4 × 4), which also reduces the dimensionality of the tensor output and can decrease the probability of overfitting. We introduce two dropout layers to avoid overfitting and improve the training speed. The final CNN model is the result of many experimental trials.</p>
    <table-wrap id="table1">
     <label>
      <xref ref-type="table" rid="table1">
       Table 1
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.144699-"></xref>Table 1. Architecture of proposed DCNN.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter"><p style="text-align:center">Layer (type)</p></td> 
       <td class="custom-bottom-td acenter"><p style="text-align:center">Tensor output (shape)</p></td> 
       <td class="custom-bottom-td acenter"><p style="text-align:center">No. params.</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter"><p style="text-align:center">Dense_1 (conv2D)</p></td> 
       <td class="custom-top-td acenter"><p style="text-align:center">(None, 60, 60, 32)</p></td> 
       <td class="custom-top-td acenter"><p style="text-align:center">832</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">Maxpooling2D_1 (max pooling)</p></td> 
       <td class="acenter"><p style="text-align:center">(None, 57, 57, 32)</p></td> 
       <td class="acenter"><p style="text-align:center">0</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">Dropout_1 (dropout)</p></td> 
       <td class="acenter"><p style="text-align:center">(None, 57, 57, 32)</p></td> 
       <td class="acenter"><p style="text-align:center">0</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">Dense_2 (conv2D)</p></td> 
       <td class="acenter"><p style="text-align:center">(None, 52, 52, 64)</p></td> 
       <td class="acenter"><p style="text-align:center">73,792</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">Dropout_2 (dropout)</p></td> 
       <td class="acenter"><p style="text-align:center">(None, 52, 52, 64)</p></td> 
       <td class="acenter"><p style="text-align:center">0</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">Flatten_1 (flattening)</p></td> 
       <td class="acenter"><p style="text-align:center">(None, 173,056)</p></td> 
       <td class="acenter"><p style="text-align:center">0</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">Dense_3 (softmax)</p></td> 
       <td class="acenter"><p style="text-align:center">(None, 2)</p></td> 
       <td class="acenter"><p style="text-align:center">346,114</p></td> 
      </tr> 
      <tr> 
       <td class="acenter"><p style="text-align:center">Total no. parameters</p></td> 
       <td class="acenter"><p style="text-align:center">420,738</p></td> 
       <td class="acenter"><p style="text-align:center"></p></td> 
      </tr> 
     </table>
    </table-wrap>
   </sec>
  </sec><sec id="s3">
   <title>3. Cherry Disease Recognition Strategy</title>
   <sec id="s3_1">
    <title>3.1. Design of Identification Architecture</title>
    <p>We used Python 3 as our design environment platform and the Keras deep learning application programming interface. Therefore, we must convert the raw images into the data type required by the dataset. Hence, we must first preprocess the data and then design the recognition architecture, as shown in <xref ref-type="fig" rid="fig2">
      Figure 2
     </xref>. This architecture contains two main parts, data preprocessing and the DCNN model, in which we embed the identification algorithm. Data preprocessing includes reducing the number of pixels, creating the label set, and reshaping and creating the training and test sets.</p>
   </sec>
   <sec id="s3_2">
    <title>3.2. Recognition Algorithm</title>
    <p>Artificial neural networks can learn by adjusting the weights and bias to minimize the error between the true and predicted labels. In general, there are two common methods for describing errors, either as a loss function or as a cross-entropy function. Moreover, there are several methods (called optimizers) for finding the best weights, including stochastic gradient descent (SGD), RMSprop, and Adam. Finally, using an index to evaluate our model performance, we design an accuracy function.</p>
    <p>1) Loss function</p>
    <p>The loss function is an important part of machine learning. Treating it as the standard of model learning, we use the loss function to measure the classification performance. It measures the error between the actual and predicted labels of an object. Many statistical measures can be used as a loss function, such as the mean squared error, mean absolute error, mean absolute percentage error, and mean squared logarithmic error. Cross-entropy, used in binary classification, allows to measure two probability distributions. Hence, we use the cross-entropy loss to increase the predicted probability as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         E 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          w 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mo>
         − 
       </mo> 
       <mfrac> 
        <mn>
          1 
        </mn> 
        <mi>
          N 
        </mi> 
       </mfrac> 
       <mstyle displaystyle="true"> 
        <munderover> 
         <mo>
           ∑ 
         </mo> 
         <mrow> 
          <mi>
            n 
          </mi> 
          <mo>
            = 
          </mo> 
          <mn>
            1 
          </mn> 
         </mrow> 
         <mi>
           N 
         </mi> 
        </munderover> 
        <mrow> 
         <mrow> 
          <mo>
            [ 
          </mo> 
          <mrow> 
           <msub> 
            <mi>
              y 
            </mi> 
            <mi>
              n 
            </mi> 
           </msub> 
           <mi>
             log 
           </mi> 
           <msub> 
            <mover accent="true"> 
             <mi>
               y 
             </mi> 
             <mo>
               ¯ 
             </mo> 
            </mover> 
            <mi>
              n 
            </mi> 
           </msub> 
           <mo>
             + 
           </mo> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mn>
               1 
             </mn> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mi>
                y 
              </mi> 
              <mi>
                n 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
           <mi>
             log 
           </mi> 
           <mrow> 
            <mo>
              ( 
            </mo> 
            <mrow> 
             <mn>
               1 
             </mn> 
             <mo>
               − 
             </mo> 
             <msub> 
              <mover accent="true"> 
               <mi>
                 y 
               </mi> 
               <mo>
                 ¯ 
               </mo> 
              </mover> 
              <mi>
                n 
              </mi> 
             </msub> 
            </mrow> 
            <mo>
              ) 
            </mo> 
           </mrow> 
          </mrow> 
          <mo>
            ] 
          </mo> 
         </mrow> 
        </mrow> 
       </mstyle> 
      </mrow> 
     </math> (1)</p>
    <p>where 
     <math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"> <mrow> 
       <mover accent="true"> 
        <mi>
          y 
        </mi> 
        <mo>
          ¯ 
        </mo> 
       </mover> 
       <mo>
         = 
       </mo> 
       <mtext>
         ReLU 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           w 
         </mi> 
         <mo>
           ⋅ 
         </mo> 
         <mi>
           x 
         </mi> 
         <mo>
           + 
         </mo> 
         <mi>
           b 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>, w is the weight vector of each x, b is the vector of the bias, 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          y 
        </mi> 
        <mi>
          n 
        </mi> 
       </msub> 
      </mrow> 
     </math> is the actual label, and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mover accent="true"> 
         <mi>
           y 
         </mi> 
         <mo>
           ¯ 
         </mo> 
        </mover> 
        <mi>
          n 
        </mi> 
       </msub> 
      </mrow> 
     </math> denotes the predicted value.</p>
    <fig id="fig2" position="float">
     <label>Figure 2</label>
     <caption>
      <title>Figure 2. Architecture of recognition method for diseased cherry leaves.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733244-rId24.jpeg?20250812091646" />
    </fig>
    <p>2) SGD</p>
    <p>SGD is a fundamental optimization method that stochastically approximates gradient descent through iterative parameter updates, capable of achieving strong performance in specific tasks despite its simplicity. The DCNN uses SGD to change w to minimize the following objective function:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          w 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
       <mo>
         = 
       </mo> 
       <msub> 
        <mi>
          w 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msub> 
       <mo>
         − 
       </mo> 
       <mi>
         η 
       </mi> 
       <mfrac> 
        <mrow> 
         <mo>
           ∂ 
         </mo> 
         <mi>
           E 
         </mi> 
         <mrow> 
          <mo>
            ( 
          </mo> 
          <mi>
            w 
          </mi> 
          <mo>
            ) 
          </mo> 
         </mrow> 
        </mrow> 
        <mrow> 
         <mo>
           ∂ 
         </mo> 
         <mi>
           w 
         </mi> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math> (2)</p>
    <p>where 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        η 
      </mi> 
     </math> is the learning ratio, which is an important parameter. A smaller 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        η 
      </mi> 
     </math> easily improves the performance but increases the computation burden. If 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        η 
      </mi> 
     </math> is large, the performance ﬂuctuates. Hence, the best value per case must be determine experimentally. In addition, 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          w 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
      </mrow> 
     </math> is the current weight, and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          w 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msub> 
      </mrow> 
     </math> is the previous weight, which is the weight updated using the SGD algorithm and the one that minimizes 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mi>
         E 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mi>
          w 
        </mi> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>.</p>
    <p>3) Softmax</p>
    <p>In the DCNN, the output of the last layer is the classification result, and hence in this layer, dense output numbers are based on the number of classes. We determine them according to the softmax function, which takes the maximum value as the classification result as follows:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         soft 
       </mtext> 
       <mi>
         max 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           y 
         </mi> 
         <mo>
           = 
         </mo> 
         <msub> 
          <mi>
            c 
          </mi> 
          <mi>
            i 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <msup> 
          <mi>
            e 
          </mi> 
          <mrow> 
           <mi>
             x 
           </mi> 
           <mo>
             ⋅ 
           </mo> 
           <mi>
             w 
           </mi> 
           <mo>
             + 
           </mo> 
           <msub> 
            <mi>
              b 
            </mi> 
            <mi>
              i 
            </mi> 
           </msub> 
          </mrow> 
         </msup> 
        </mrow> 
        <mrow> 
         <mstyle displaystyle="true"> 
          <mo>
            ∑ 
          </mo> 
          <mrow> 
           <msubsup> 
            <mrow></mrow> 
            <mrow> 
             <mi>
               j 
             </mi> 
             <mo>
               = 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
            <mi>
              N 
            </mi> 
           </msubsup> 
           <msup> 
            <mi>
              e 
            </mi> 
            <mrow> 
             <mi>
               x 
             </mi> 
             <mo>
               ⋅ 
             </mo> 
             <mi>
               w 
             </mi> 
             <mo>
               + 
             </mo> 
             <msub> 
              <mi>
                b 
              </mi> 
              <mi>
                j 
              </mi> 
             </msub> 
            </mrow> 
           </msup> 
          </mrow> 
         </mstyle> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math> (3)</p>
    <p>where N is the number of classes, y is the learning output, 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          c 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
      </mrow> 
     </math> is the 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          i 
        </mi> 
        <mrow> 
         <mi>
           t 
         </mi> 
         <mi>
           h 
         </mi> 
        </mrow> 
       </msup> 
      </mrow> 
     </math> class, w is the set of weights, and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          b 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
      </mrow> 
     </math> is the 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          i 
        </mi> 
        <mrow> 
         <mi>
           t 
         </mi> 
         <mi>
           h 
         </mi> 
        </mrow> 
       </msup> 
      </mrow> 
     </math> bias.</p>
    <p>To evaluate our model, we tested the performance using the following accuracy calculation:</p>
    <p>
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Score 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            c 
          </mi> 
          <mi>
            i 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <msub> 
          <mi>
            P 
          </mi> 
          <mi>
            T 
          </mi> 
         </msub> 
        </mrow> 
        <mrow> 
         <msub> 
          <mi>
            P 
          </mi> 
          <mi>
            T 
          </mi> 
         </msub> 
         <mo>
           + 
         </mo> 
         <msub> 
          <mi>
            P 
          </mi> 
          <mi>
            R 
          </mi> 
         </msub> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math> (4)</p>
    <p>where 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Score 
       </mtext> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            c 
          </mi> 
          <mi>
            i 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> denotes the accuracy of the 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msup> 
        <mi>
          i 
        </mi> 
        <mrow> 
         <mi>
           t 
         </mi> 
         <mi>
           h 
         </mi> 
        </mrow> 
       </msup> 
      </mrow> 
     </math> class, and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mi>
          T 
        </mi> 
       </msub> 
      </mrow> 
     </math> and 
     <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          P 
        </mi> 
        <mi>
          R 
        </mi> 
       </msub> 
      </mrow> 
     </math> are the numbers of correctly classified and misclassified images, respectively.</p>
   </sec>
  </sec><sec id="s4">
   <title>4. Experiments</title>
   <sec id="s4_1">
    <title>4.1. Dataset and Preprocessing</title>
    <p>We used the Python 3 platform, and the model was implemented using Keras, with TensorFlow being the backend. Our raw cherry leaf dataset contains 1906 leaf images, which includes 854 healthy leaf images and 1052 diseased leaf images. Each image is 256 × 256 pixels. We show four 256 × 256-pixel images from the healthy and diseased leaf datasets in <xref ref-type="fig" rid="fig3">
      Figure 3
     </xref>.</p>
    <p>Preprocessing raw data is necessary and involves many tasks, as shown in <xref ref-type="fig" rid="fig2">
      Figure 2
     </xref>. Before feeding an image into a model, we must substantially reduce its pixel size such that it drastically decreases the computation cost. In addition, we must create the image label set. Next, we convert its type into ﬂoat32 and reshape the images into size (−1, x, y, 1). Therefore, we must convert each image of the training and test sets into x × y × 1, where x and y are the image width and height, respectively. Here, we convert images into 64 × 64-pixel images. The number of pixels in each image reduces from 65,535 to 4,096, a decrease be a factor of 16. Example 64 × 64-pixels images including their features are shown in <xref ref-type="fig" rid="fig4">
      Figure 4
     </xref>. Then, we create the label set of the dataset for supervised learning. First, we reshape the image size to (−1, 64, 64, 1) and divide the dataset into training and test sets in an 80% - 20% split, where all the sample images are randomly selected. Moreover, no cross-samples exist between the training and test sets. Therefore, the dimensions of the training and test sets are (1, 524, 64, 64, 1) and (382, 64, 64, 1), respectively.</p>
    <p>Comparing the raw images in <xref ref-type="fig" rid="fig3">
      Figure 3
     </xref> and <xref ref-type="fig" rid="fig4">
      Figure 4
     </xref>, although the number of pixels is reduced, <xref ref-type="fig" rid="fig4(a)">
      Figure 4(a)
     </xref> and <xref ref-type="fig" rid="fig4(c)">
      Figure 4(c)
     </xref> remain clear after conversion to ﬂoat32 and reshaping into size (−1, 64, 64, 1).</p>
    <fig id="fig3" position="float">
     <label>Figure 3</label>
     <caption>
      <title>Figure 3. Raw 256 × 256-pixel images of cherry leaves in our dataset. (a) Healthy leaves; (b) leaves with powdery mildew.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733244-rId56.jpeg?20250812091648" />
    </fig>
    <fig id="fig4" position="float">
     <label>Figure 4</label>
     <caption>
      <title>Figure 4. Converted 64 × 64-pixel images of cherry leaves in our dataset. (a), (b) Healthy leaves. (c) (d) Leaves with powdery mildew disease. (a) and (c) are reduced to 64 × 64 pixels. (b) and (d) are the final input images, which are reshaped and transformed into ﬂoat32 images with dimension (−1, 64, 64, 1).</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733244-rId57.jpeg?20250812091648" />
    </fig>
   </sec>
   <sec id="s4_2">
    <title>4.2. DCNN Model Hyperparameters</title>
    <p>In deep learning, hyperparameters play a key role, and the model performance substantially differs under diverse hyperparameters for the same model, causing problems ranging from overfitting to nonconvergence. In our experiments, we used the hyperparameters listed in <xref ref-type="table" rid="table2">
      Table 2
     </xref>.</p>
    <table-wrap id="table2">
     <label>
      <xref ref-type="table" rid="table2">
       Table 2
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.144699-"></xref>Table 2. Hyperparameters of DCNN layers.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="27.78%"><p style="text-align:center">Layer</p></td> 
       <td class="custom-bottom-td acenter" width="21.37%"><p style="text-align:center">Parameter</p></td> 
       <td class="custom-bottom-td acenter" width="50.84%"><p style="text-align:center">Values/specifications</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="27.78%"><p style="text-align:center">Dense 1 (conv2D)</p></td> 
       <td class="custom-top-td acenter" width="21.37%"><p style="text-align:center">Filter</p><p style="text-align:center">Activation</p></td> 
       <td class="custom-top-td acenter" width="50.84%"><p style="text-align:center">Kernel size = (5, 5), rides = (1,1) ReLU</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="27.78%"><p style="text-align:center">Max_pooling2d 1 (max pooling)</p></td> 
       <td class="acenter" width="21.37%"><p style="text-align:center">Pool</p></td> 
       <td class="acenter" width="50.84%"><p style="text-align:center">pool size = (4,4), strides = (1,1)</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="27.78%"><p style="text-align:center">Dropout 1 (dropout)</p></td> 
       <td class="acenter" width="21.37%"><p style="text-align:center">Dropout ratio</p></td> 
       <td class="acenter" width="50.84%"><p style="text-align:center">0.5</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="27.78%"><p style="text-align:center">Dense 2 (conv2D)</p></td> 
       <td class="acenter" width="21.37%"><p style="text-align:center">Filter</p><p style="text-align:center">Activation</p></td> 
       <td class="acenter" width="50.84%"><p style="text-align:center">Kernel size = (6,6), strides = (1,1) ReLU</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="27.78%"><p style="text-align:center">Dropout_2 (dropout)</p></td> 
       <td class="acenter" width="21.37%"><p style="text-align:center">Dropout ratio</p></td> 
       <td class="acenter" width="50.84%"><p style="text-align:center">0.5</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="27.78%"><p style="text-align:center">Flatten_1 (flattening)</p></td> 
       <td class="acenter" width="21.37%"><p style="text-align:center">None</p></td> 
       <td class="acenter" width="50.84%"><p style="text-align:center">None</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="27.78%"><p style="text-align:center">Dense_3 (softmax)</p></td> 
       <td class="acenter" width="21.37%"><p style="text-align:center">None</p></td> 
       <td class="acenter" width="50.84%"><p style="text-align:center">None</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="27.78%"><p style="text-align:center">Batch size</p></td> 
       <td class="acenter" width="21.37%"><p style="text-align:center">16</p></td> 
       <td class="acenter" width="50.84%"><p style="text-align:center"></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="27.78%"><p style="text-align:center">No. epochs</p></td> 
       <td class="acenter" width="21.37%"><p style="text-align:center">10</p></td> 
       <td class="acenter" width="50.84%"><p style="text-align:center"></p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="27.78%"><p style="text-align:center">Learning ratio</p></td> 
       <td class="acenter" width="21.37%"><p style="text-align:center">0.005</p></td> 
       <td class="acenter" width="50.84%"><p style="text-align:center"></p></td> 
      </tr> 
     </table>
    </table-wrap>
   </sec>
   <sec id="s4_3">
    <title>4.3. Results</title>
    <p>The results from our experiments are shown in <xref ref-type="fig" rid="fig5">
      Figure 5
     </xref> as loss and accuracy curves for both training and testing. The visual output from the intermediate layers 1 - 5 are shown in <xref ref-type="fig" rid="figFigures 6-9">
      Figures 6-9
     </xref>.</p>
    <fig id="fig5" position="float">
     <label>Figure 5</label>
     <caption>
      <title>Figure 5. Results for training and testing regarding; (a) accuracy and (b) loss.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733244-rId58.jpeg?20250812091649" />
    </fig>
    <fig id="fig6" position="float">
     <label>Figure 6</label>
     <caption>
      <title>Figure 6. Visual output of channel 1 for healthy leaf.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733244-rId59.jpeg?20250812091649" />
    </fig>
    <fig id="fig7" position="float">
     <label>Figure 7</label>
     <caption>
      <title>Figure 7. Visual output of channel 4 for healthy leaf.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733244-rId60.jpeg?20250812091649" />
    </fig>
    <fig id="fig8" position="float">
     <label>Figure 8</label>
     <caption>
      <title>Figure 8. Visual output of channel 1 for diseased leaf.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733244-rId61.jpeg?20250812091649" />
    </fig>
    <p>
     <xref ref-type="fig" rid="fig5(a)">
      Figure 5(a)
     </xref> shows the change in accuracy. During both training (blue curve) and testing (red curve), the accuracy continues to increase, except for a ﬂuctuation at epoch 3 on the red curve. <xref ref-type="fig" rid="fig5(b)">
      Figure 5(b)
     </xref> shows the change in cross-entropy, which indicates that over the whole course of both training (blue curve) and testing (red curve), the curve decreases stably, except for a ﬂuctuation at epoch 7 on the red curve. <xref ref-type="table" rid="table3">
      Table 3
     </xref> lists the classification results, indicating an accuracy of 99.2%, precision of both classes of 99%, and recall of class 1 (diseased) of 100%, indicating that all samples of class 1 diseased leaves are recognized correctly. Therefore, the training and testing results show that the model performs well.</p>
    <fig id="fig9" position="float">
     <label>Figure 9</label>
     <caption>
      <title>Figure 9. Visual output of channel 4 for diseased leaf.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733244-rId62.jpeg?20250812091649" />
    </fig>
    <table-wrap id="table3">
     <label>
      <xref ref-type="table" rid="table3">
       Table 3
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.144699-"></xref>Table 3. Classification result for diseased cherry leaves.</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="27.78%"><p style="text-align:center">Class</p></td> 
       <td class="custom-bottom-td acenter" width="17.09%"><p style="text-align:center">Precision</p></td> 
       <td class="custom-bottom-td acenter" width="17.09%"><p style="text-align:center">Recall</p></td> 
       <td class="custom-bottom-td acenter" width="19.20%"><p style="text-align:center">F1-score</p></td> 
       <td class="custom-bottom-td acenter" width="18.83%"><p style="text-align:center">Support</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="27.78%"><p style="text-align:center">Class 0</p></td> 
       <td class="custom-top-td acenter" width="17.09%"><p style="text-align:center">0.99</p></td> 
       <td class="custom-top-td acenter" width="17.09%"><p style="text-align:center">0.99</p></td> 
       <td class="custom-top-td acenter" width="19.20%"><p style="text-align:center">0.99</p></td> 
       <td class="custom-top-td acenter" width="18.83%"><p style="text-align:center">152</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="27.78%"><p style="text-align:center">Class 1</p></td> 
       <td class="acenter" width="17.09%"><p style="text-align:center">0.99</p></td> 
       <td class="acenter" width="17.09%"><p style="text-align:center">1</p></td> 
       <td class="acenter" width="19.20%"><p style="text-align:center">0.99</p></td> 
       <td class="acenter" width="18.83%"><p style="text-align:center">230</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="27.78%"><p style="text-align:center">Avg./Total</p></td> 
       <td class="acenter" width="17.09%"><p style="text-align:center">0.99</p></td> 
       <td class="acenter" width="17.09%"><p style="text-align:center">0.99</p></td> 
       <td class="acenter" width="19.20%"><p style="text-align:center">0.99</p></td> 
       <td class="acenter" width="18.83%"><p style="text-align:center">382</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="27.78%"><p style="text-align:center">Test loss:</p></td> 
       <td class="acenter" width="72.22%" colspan="4"><p style="text-align:center">0.03</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="27.78%"><p style="text-align:center">Test accuracy:</p></td> 
       <td class="acenter" width="72.22%" colspan="4"><p style="text-align:center">0.992</p></td> 
      </tr> 
     </table>
    </table-wrap>
    <p>
     <xref ref-type="fig" rid="figFigures 6-9">
      Figures 6-9
     </xref> show output images from the intermediate layers. <xref ref-type="fig" rid="fig6">
      Figure 6
     </xref> and <xref ref-type="fig" rid="fig7">
      Figure 7
     </xref> show the outputs of healthy leaves for each layer from channels 1 and 4, respectively. <xref ref-type="fig" rid="fig8">
      Figure 8
     </xref> and <xref ref-type="fig" rid="fig9">
      Figure 9
     </xref> show the output for each layer of channels 1 and 4 for diseased leaves, respectively. <xref ref-type="fig" rid="fig6">
      Figure 6
     </xref> shows that the extracted features are different between layers. The dense 1 and pooling layers extract many large-scale features. By contrast, the dense 2 layer extracts more detailed characteristics. These images also help understanding the dropout method, which not only prevents overfitting but also retains feature information by comparing the outputs of the dense 2 and dropout layers.</p>
    <p>Comparing the outputs of channels 1 and 4, we can easily determine that channel 1 suitably represents the edge information of an object, and channel 4 includes a large amount of feature information contained in the edge and inner regions. Hence, in deep learning, the channels of the tensor have different roles in feature detection.</p>
    <p>Further comparison between <xref ref-type="fig" rid="fig6">
      Figure 6
     </xref> and <xref ref-type="fig" rid="fig7">
      Figure 7
     </xref> and <xref ref-type="fig" rid="fig8">
      Figure 8
     </xref> and <xref ref-type="fig" rid="fig9">
      Figure 9
     </xref> reveals that the characteristics of healthy leaves are mainly on the edge. However, the dominant information of diseased leaves is in the inner region of the object. <xref ref-type="fig" rid="fig8">
      Figure 8
     </xref> clearly shows that the pooling layer can extract crucial features from the object. In addition, <xref ref-type="fig" rid="fig8">
      Figure 8
     </xref> also shows that the DCNN model is efficient for our recognition goal. Thus, it is important to design the model architecture using several methods, which is a key advantage of DCNNs.</p>
    <p>
     <xref ref-type="table" rid="table4">
      Table 4
     </xref> lists the performance of our model, which includes accuracy, test loss, number of epochs, and training time per epoch. The accuracy is high, and training consumes only 72 s/epoch over 10 epochs. Regarding the other methods, Bhange et al. reported an accuracy of 82% using SVM classification, and Mousavi et al. proposed a classification method based on Gabor wavelet features and SVM, achieving an accuracy of 90.4%. Yang et al. <xref ref-type="bibr" rid="scirp.144699-14">
      [14]
     </xref> proposed an approach to identify rice disease using deep learning and achieved an accuracy of 95.48%. Ferentinos <xref ref-type="bibr" rid="scirp.144699-23">
      [23]
     </xref> used a deep learning model in 2018 to achieve 99.53% accuracy after training for 10,000 epochs over 5.5 days and testing over 67 epochs at 7,034 s each using a VGG. Obviously, our model provides a high performance and balance between accuracy and speed.</p>
    <table-wrap id="table4">
     <label>
      <xref ref-type="table" rid="table4">
       Table 4
      </xref></label>
     <caption>
      <title>
       <xref ref-type="bibr" rid="scirp.144699-"></xref>Table 4. Performance comparison of proposed and existing models. (Not all metrics were reported for all methods).</title>
     </caption>
     <table class="MsoTableGrid custom-table" border="0" cellspacing="0" cellpadding="0"> 
      <tr> 
       <td class="custom-bottom-td acenter" width="32.06%"><p style="text-align:center">Model</p></td> 
       <td class="custom-bottom-td acenter" width="14.95%"><p style="text-align:center">Accuracy</p></td> 
       <td class="custom-bottom-td acenter" width="14.95%"><p style="text-align:center">Test loss</p></td> 
       <td class="custom-bottom-td acenter" width="14.95%"><p style="text-align:center">No. epochs</p></td> 
       <td class="custom-bottom-td acenter" width="23.08%"><p style="text-align:center">Training time (s/epoch)</p></td> 
      </tr> 
      <tr> 
       <td class="custom-top-td acenter" width="32.06%"><p style="text-align:center">Proposed DCNN model</p></td> 
       <td class="custom-top-td acenter" width="14.95%"><p style="text-align:center">99.21%</p></td> 
       <td class="custom-top-td acenter" width="14.95%"><p style="text-align:center">0.03</p></td> 
       <td class="custom-top-td acenter" width="14.95%"><p style="text-align:center">10</p></td> 
       <td class="custom-top-td acenter" width="23.08%"><p style="text-align:center">72</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="32.06%"><p style="text-align:center">SVM classification</p></td> 
       <td class="acenter" width="14.95%"><p style="text-align:center">82.00%</p></td> 
       <td class="acenter" width="14.95%"><p style="text-align:center">–</p></td> 
       <td class="acenter" width="14.95%"><p style="text-align:center">–</p></td> 
       <td class="acenter" width="23.08%"><p style="text-align:center">–</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="32.06%"><p style="text-align:center">GWF and SVM</p></td> 
       <td class="acenter" width="14.95%"><p style="text-align:center">90.40%</p></td> 
       <td class="acenter" width="14.95%"><p style="text-align:center">–</p></td> 
       <td class="acenter" width="14.95%"><p style="text-align:center">–</p></td> 
       <td class="acenter" width="23.08%"><p style="text-align:center">–</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="32.06%"><p style="text-align:center">CNN model in <xref ref-type="bibr" rid="scirp.144699-14">
          [14]
         </xref></p></td> 
       <td class="acenter" width="14.95%"><p style="text-align:center">95.48%</p></td> 
       <td class="acenter" width="14.95%"><p style="text-align:center">–</p></td> 
       <td class="acenter" width="14.95%"><p style="text-align:center">–</p></td> 
       <td class="acenter" width="23.08%"><p style="text-align:center">–</p></td> 
      </tr> 
      <tr> 
       <td class="acenter" width="32.06%"><p style="text-align:center">Model in <xref ref-type="bibr" rid="scirp.144699-23">
          [23]
         </xref></p></td> 
       <td class="acenter" width="14.95%"><p style="text-align:center">99.53%</p></td> 
       <td class="acenter" width="14.95%"><p style="text-align:center">0.02</p></td> 
       <td class="acenter" width="14.95%"><p style="text-align:center">67</p></td> 
       <td class="acenter" width="23.08%"><p style="text-align:center">7,034</p></td> 
      </tr> 
     </table>
    </table-wrap>
   </sec>
  </sec><sec id="s5">
   <title>5. Discussion</title>
   <p>DCNNs have shown excellent performance in many research domains, especially for processing images, achieving a classification efficiency of over 99% in a few published papers. In this section, we discuss objects misclassified by our model and analyze their characteristics to identify reasons that explain the misclassifications. This discussion will be valuable for further CNN development.</p>
   <p>The three images shown in Figure 10 were classified incorrectly. <xref ref-type="fig" rid="fig10(b)">
     Figure 10(b)
    </xref> and <xref ref-type="fig" rid="fig10(c)">
     Figure 10(c)
    </xref> have the same shadow endpoint and real leaf endpoint. Hence, we analyze the images shown in <xref ref-type="fig" rid="fig10(a)">
     Figure 10(a)
    </xref> and <xref ref-type="fig" rid="fig10(c)">
     Figure 10(c)
    </xref> because they have a large shadow as a similar feature. However, we obtain different results. The first image label is diseased, but our model prediction is healthy, and the third image class is healthy. However, our classifier provides prediction diseased. To explain the prediction of our model, we highlight some features in the leaf images shown in <xref ref-type="fig" rid="fig11">
     Figure 11
    </xref>. The marked areas are used to analyze their effect on the DCNN ability to recognize powdery mildew.</p>
   <fig id="fig10" position="float">
    <label>Figure 10</label>
    <caption>
     <title>Figure 10. Misclassified leaves. (a) Diseased leaf classified as healthy and (b), (c) healthy leaves classified as diseased.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733244-rId63.jpeg?20250812091649" />
   </fig>
   <fig id="fig11" position="float">
    <label>Figure 11</label>
    <caption>
     <title>Figure 11. Annotated misclassified leaves. The features in (a), (b), and (c) are indicated by the red shapes, and the diseased regions of the image in (a) are indicated by pink ellipses.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733244-rId64.jpeg?20250812091649" />
   </fig>
   <fig id="fig12" position="float">
    <label>Figure 12</label>
    <caption>
     <title>Figure 12. Channel 4 output image of misclassified leaf in <xref ref-type="fig" rid="fig10(a)">
       Figure 10(a)
      </xref>. (a) Raw 64 × 64-pixel leaf image and (b) outputs of intermediate layers.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733244-rId65.jpeg?20250812091649" />
   </fig>
   <p>We show details from the intermediate layer outputs in <xref ref-type="fig" rid="fig12">
     Figure 12
    </xref>. In <xref ref-type="fig" rid="fig12(a)">
     Figure 12(a)
    </xref>, a shadow is located along the leaf edge. In <xref ref-type="fig" rid="fig12(b)">
     Figure 12(b)
    </xref>, both edges are recognized. Diseased regions indicated by the pink ellipses are hidden in the shadow. Thus, the disease features are ignored, and the other shadows are incorporated into another leaf. Therefore, our model misclassifies the disease. Making a correct inference by human visualization is difficult because the diseased leaf regions are occluded.</p>
   <p>Because the leaf shown in <xref ref-type="fig" rid="fig10(b">
     Figure 10(b
    </xref>) has the same features as that shown in <xref ref-type="fig" rid="fig10(c)">
     Figure 10(c)
    </xref>, we input that leaf into our model and show the outputs of the layers in <xref ref-type="fig" rid="fig13">
     Figure 13
    </xref>. The shadow of <xref ref-type="fig" rid="fig13(a">
     Figure 13(a
    </xref>) is recognized as a leaf edge, and the actual leaf edge is misclassified as a diseased region, causing misclassification. Comparing the raw images with those shown in <xref ref-type="fig" rid="fig12">
     Figure 12
    </xref>, we observe that the shadow terminal vertex and edges in <xref ref-type="fig" rid="fig12">
     Figure 12
    </xref> are far from the true leaf edge. However, in <xref ref-type="fig" rid="fig13">
     Figure 13
    </xref>, the endpoint of the shadow edge crosses the actual leaf edge. Therefore, in <xref ref-type="fig" rid="fig13">
     Figure 13
    </xref>, the shadow edge is mistaken for a leaf edge, and the real edge is mistaken as a diseased region. To address this issue, we will consider two methods in future work. The first method is training the model further to use the shadow characteristics of the object. The second method is creating an image dataset that avoids sampling under strong light and maximizes leaf flattening before capturing the images.</p>
   <fig id="fig13" position="float">
    <label>Figure 13</label>
    <caption>
     <title>Figure 13. Channel 4 output image of misclassified leaf in <xref ref-type="fig" rid="fig10(b)">
       Figure 10(b)
      </xref>. (a) Raw 64 × 64-pixel leaf image and (b) outputs of intermediate layers.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1733244-rId66.jpeg?20250812091649" />
   </fig>
  </sec><sec id="s6">
   <title>6. Conclusions</title>
   <p>We propose an approach based on a DCNN to recognize disease in cherry leaf images. In experiments, we obtained an accuracy of 99.2% after just 10 epochs. A comparison with other methods revealed that the proposed method has a high accuracy, but it also reduces the training time. A main drawback of deep learning is high computational cost. Hence, we devised a balance for the tradeoff between learning performance and computational consumption, which decreased the computation cost rapidly by reducing the size of the raw image to 64 × 64 pixels. By determining suitable hyperparameters, our method achieved high performance. Subsequently, we discussed the misclassification of our model for some instances. We interpret this case by considering that when the shadow edge is close to the actual leaf edge, the DCNN mistakes the edge for the diseased region. This hypothesis needs further evaluation in other cases, but provides a new research direction. The methods used in this study have also been retrained and can be applied to other plants.</p>
  </sec><sec id="s7">
   <title>Acknowledgements</title>
   <p>This work is supported in part by the Education Department of Sichuan Province Foundation of China (18ZB0273), in part by the key Laboratory of Sichuan Province (ZL2019004), and in part by the Central Guidance for Local Science and Technology Development Fund Projects (2024ZYD0268, 2024ZYD0311).</p>
  </sec><sec id="s8">
   <title>Code and Data Availability</title>
   <p>The experiment dataset used in this research is publicly available on GitHub: <xref ref-type="bibr" rid="scirp.144699-https://github.com/spMohanty/PlantVillage-Dataset">
     https://github.com/spMohanty/PlantVillage-Dataset
    </xref>; we would like to express our gratitude for this resource.</p>
  </sec>
 </body><back>
  <ref-list>
   <title>References</title>
   <ref id="scirp.144699-ref1">
    <label>1</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Coletta, A., Bartolini, N., Maselli, G., Kehs, A., McCloskey, P. and Hughes, D.P. (2022) Optimal Deployment in Crowdsensing for Plant Disease Diagnosis in Developing Countries. IEEE Internet of Things Journal, 9, 6359-6373. &gt;https://doi.org/10.1109/jiot.2020.3002332
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref2">
    <label>2</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Nagpal, J., Goel, L. and Shekhawat, P.S. (2024) A Hybrid Deep Learning Neural Network for Early Plant Disease Diagnosis Using a Real-World Wheat-Barley Vision Dataset: Challenges and Solutions. International Journal of Data Science and Analytics, 18, 1-15. &gt;https://doi.org/10.1007/s41060-024-00578-x
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref3">
    <label>3</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Pierre Nyakuri, J., Nkundineza, C., Gatera, O. and Nkurikiyeyezu, K. (2024) State-of-the-Art Deep Learning Algorithms for Internet of Things-Based Detection of Crop Pests and Diseases: A Comprehensive Review. IEEE Access, 12, 169824-169849. &gt;https://doi.org/10.1109/access.2024.3455244
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref4">
    <label>4</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Mikiciuk, G., Rogowska, M. and Mikiciuk, M. (2015) The Effects of Foliar Nutrition with InCa Fertilizer on the Chemical Composition of Leaves and Fruits of Sweet Cherry. Journal of Ecological Engineering, 16, 116-119.
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref5">
    <label>5</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Moupojou, E., Tagne, A., Retraint, F., Tadonkemwa, A., Wilfried, D., Tapamo, H., et al. (2023) Fieldplant: A Dataset of Field Plant Images for Plant Disease Detection and Classification with Deep Learning. IEEE Access, 11, 35398-35410. &gt;https://doi.org/10.1109/access.2023.3263042
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref6">
    <label>6</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Hassan, S.M. and Maji, A.K. (2022) Plant Disease Identification Using a Novel Convolutional Neural Network. IEEE Access, 10, 5390-5401. &gt;https://doi.org/10.1109/access.2022.3141371
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref7">
    <label>7</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Bhargava, A., Shukla, A., Goswami, O.P., Alsharif, M.H., Uthansakul, P. and Uthansakul, M. (2024) Plant Leaf Disease Detection, Classification, and Diagnosis Using Computer Vision and Artificial Intelligence: A Review. IEEE Access, 12, 37443-37469. &gt;https://doi.org/10.1109/access.2024.3373001 
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref8">
    <label>8</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Chouhan, S.S., Singh, U.P., Sharma, U. and Jain, S. (2024) Classification of Different Plant Species Using Deep Learning and Machine Learning Algorithms. Wireless Personal Communications, 136, 2275-2298. &gt;https://doi.org/10.1007/s11277-024-11374-y
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref9">
    <label>9</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Shinde, N. and Ambhaikar, A. (2024) An Efficient Plant Disease Prediction Model Based on Machine Learning and Deep Learning Classifiers. Evolutionary Intelligence, 18, 14-28. &gt;https://doi.org/10.1007/s12065-024-01000-y
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref10">
    <label>10</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Liu, Z., Bashir, R.N., Iqbal, S., Shahid, M.M.A., Tausif, M. and Umer, Q. (2022) Internet of Things (IoT) and Machine Learning Model of Plant Disease Prediction-Blister Blight for Tea Plant. IEEE Access, 10, 44934-44944. &gt;https://doi.org/10.1109/access.2022.3169147 
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref11">
    <label>11</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Kumar, M., Kumar, A. and Palaparthy, V.S. (2021) Soil Sensors-Based Prediction System for Plant Diseases Using Exploratory Data Analysis and Machine Learning. IEEE Sensors Journal, 21, 17455-17468. &gt;https://doi.org/10.1109/jsen.2020.3046295
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref12">
    <label>12</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Hessane, A., Mesbahi, M. and El Fkihi, S. (2023) A Machine Learning Based Framework for a Stage-Wise Classification of Date Palm White Scale Disease. Big Data Mining and Analytics, 6, 263-272.
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref13">
    <label>13</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Joseph, D.S., Pawar, P.M. and Pramanik, R. (2022) Intelligent Plant Disease Diagnosis Using Convolutional Neural Network: A Review. Multimedia Tools and Applications, 82, 21415-21481. &gt;https://doi.org/10.1007/s11042-022-14004-6
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref14">
    <label>14</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Yang, B., Li, M., Li, F., Wang, Y., Liang, Q., Zhao, R., et al. (2024) A Novel Plant Type, Leaf Disease and Severity Identification Framework Using CNN and Transformer with Multi-Label Method. Scientific Reports, 14, Article No. 11664. &gt;https://doi.org/10.1038/s41598-024-62452-x
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref15">
    <label>15</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Khattak, A., Asghar, M.U., Batool, U., Asghar, M.Z., Ullah, H., Al-Rakhami, M., et al. (2021) Automatic Detection of Citrus Fruit and Leaves Diseases Using Deep Neural Network Model. IEEE Access, 9, 112942-112954. &gt;https://doi.org/10.1109/access.2021.3096895
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref16">
    <label>16</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Shruthi, U. and Nagaveni, V. (2023) TomSevNet: A Hybrid CNN Model for Accurate Tomato Disease Identification with Severity Level Assessment. Neural Computing and Applications, 36, 5165-5181. &gt;https://doi.org/10.1007/s00521-023-09351-w
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref17">
    <label>17</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Patel, B. (2024) Rice Spikelet’s Disease Detection Using Hybrid Optimization Model and Optimized CNN. Soft Computing, 28, 12787-12806. &gt;https://doi.org/10.1007/s00500-024-10367-0
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref18">
    <label>18</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Sunil, C.K., Jaidhar, C.D. and Patil, N. (2022) Cardamom Plant Disease Detection Approach Using EfficientNetV2. IEEE Access, 10, 789-804. &gt;https://doi.org/10.1109/access.2021.3138920
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref19">
    <label>19</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Li, Z., Sun, J., Shen, Y., Yang, Y., Wang, X., Wang, X., et al. (2024) Deep Migration Learning-Based Recognition of Diseases and Insect Pests in Yunnan Tea under Complex Environments. Plant Methods, 20, Article No. 101. &gt;https://doi.org/10.1186/s13007-024-01219-x 
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref20">
    <label>20</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Yang, J. and Wang, G. (2023) Identifying Cherry Maturity and Disease Using Different Fusions of Deep Features and Classifiers. Journal of Food Measurement and Characterization, 17, 5794-5805. &gt;https://doi.org/10.1007/s11694-023-02091-4
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref21">
    <label>21</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Shovon, M.S.H., Mozumder, S.J., Pal, O.K., Mridha, M.F., Asai, N. and Shin, J. (2023) Plantdet: A Robust Multi-Model Ensemble Method Based on Deep Learning for Plant Disease Detection. IEEE Access, 11, 34846-34859. &gt;https://doi.org/10.1109/access.2023.3264835
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref22">
    <label>22</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Dang, M., Wang, H., Li, Y., Nguyen, T., Tightiz, L., Xuan-Mung, N., et al. (2024) Computer Vision for Plant Disease Recognition: A Comprehensive Review. The Botanical Review, 90, 251-311. &gt;https://doi.org/10.1007/s12229-024-09299-z
    </mixed-citation>
   </ref>
   <ref id="scirp.144699-ref23">
    <label>23</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Ferentinos, K.P. (2018) Deep Learning Models for Plant Disease Detection and Diagnosis. Computers and Electronics in Agriculture, 145, 311-318. &gt;https://doi.org/10.1016/j.compag.2018.01.009
    </mixed-citation>
   </ref>
  </ref-list>
 </back>
</article>