Skip to main content

ORIGINAL RESEARCH article

Front. Plant Sci., 06 June 2023
Sec. Technical Advances in Plant Science

Stacking-based and improved convolutional neural network: a new approach in rice leaf disease identification

Le Yang*Le Yang*Xiaoyun Yu*Xiaoyun Yu*Shaoping ZhangShaoping ZhangHuanhuan ZhangHuanhuan ZhangShuang XuShuang XuHuibin LongHuibin LongYingwen ZhuYingwen Zhu
  • School of Computer and Information Engineering, Jiangxi Agricultural University, Nanchang, China

Rice leaf diseases are important causes of poor rice yields, and accurately identifying diseases and taking corresponding measures are important ways to improve yields. However, rice leaf diseases are diverse and varied; to address the low efficiency and high cost of manual identification, this study proposes a stacking-based integrated learning model for the efficient and accurate identification of rice leaf diseases. The stacking-based integrated learning model with four convolutional neural networks (namely, an improved AlexNet, an improved GoogLeNet, ResNet50 and MobileNetV3) as the base learners and a support vector machine (SVM) as the sublearner was constructed, and the recognition rate achieved on a rice dataset reached 99.69%. Different improvement methods have different effects on the learning and training processes for different classification tasks. To investigate the effects of different improvement methods on the accuracy of rice leaf disease diagnosis, experiments such as comparison experiments between single models and different stacking-based ensemble model combinations and comparison experiments with different datasets were executed. The model proposed in this study was shown to be more effective than single models and achieved good results on a plant dataset, providing a better method for plant disease identification.

1 Introduction

Crop diseases are primary agricultural issues worldwide because they occur often and can lead to significant crop yield reductions. Recently, automatic crop disease image recognition has received much attention because of food security concerns. This is a challenging research issue due to the complex natures of crop disease images, such as their cluttered field backgrounds and irregular illumination intensities (Chen et al., 2021). The appearance of various crop diseases adversely influences plant growth; when these crop diseases are not discovered early, they may have disastrous food security consequences (Picon et al., 2019). Especially in the case of rice, which is one of the world’s important grains, it is important to prevent diseases as an important means of improving rice production. However, there are many types of rice diseases, and disease symptoms possess complex and variable information. These diseases can only be accurately identified and diagnosed by visual inspections performed by professionally trained plant specialists, and although this method can suppress some disease epidemics, it requires a large workload, is costly and is not easy to promote. Therefore, a fast, inexpensive and effective method for crop disease identification is needed due to its important practical significance.

With the rapid development of computers and digital technology, a new generation of crop disease identification is on the horizon. Computer vision technology offers an interesting and attractive alternative for the serial monitoring of crop diseases because of its low price and visual and noncontact nature (Wells, 2016). Many works have used machine learning for the purpose of recognizing and classifying crop diseases (Pawiak et al., 2019; Hammad et al., 2020; Tuncer et al., 2020). For example, Singh et al. (2015) proposed a classifier using a support vector machine (SVM) for identifying rice leaf diseases by using a k-means clustering algorithm to segment leaf infection sites as classifier inputs; this approach eventually achieved a recognition rate of 82%. Gharge and Singh (2016) proposed a backpropagation neural network to classify soybean frog eyes, downy mildew and bacterial pustules with 93.3% accuracy using image enhancement techniques to separate infected clusters from leaves via a k-means segmentation algorithm. Kaur et al. (2018) used k-means to distinguish diseased leaves from healthy leaves and trained models using SVM classifiers to implement a semiautomatic system for identifying three soybean diseases, where a maximum average accuracy of 90% was achieved. Zhong et al. (2019) proposed a method based on FPCA and an SVM for solving the difficult problem potato disease localization and identification, and experiments showed that their method achieved great success with a recognition rate of 98%. Garcia et al. (2020) used an SVM classifier and the CIELab color space to identify the ripeness of tomatoes via a machine learning method using a 5-fold cross-validation strategy and achieved a recognition rate of 83.39% across 900 images.

Although the above methods have achieved good results, it is difficult to extract many features from images solely using machine learning methods, resulting in low accuracy, until a new technique, deep learning, was proposed; deep learning overcomes most digital image processing challenges and promises to identify a wide range of crop diseases. Currently, deep learning is also becoming increasingly used in the field of agriculture (Jiang et al., 2019; Jahanbakhshi et al., 2020; Pardede et al., 2020; Sugathan et al., 2020; Xie et al., 2020). Various studies have shown that deep learning networks can achieve good plant disease identification and classification results. Kawasaki et al. (2015) proposed a novel plant disease detection system with convolutional neural networks that achieved 94.9% accuracy in terms of cucumber disease identification using 4-fold cross-validation. Brahimi et al. (2017) used convolutional neural networks as learning algorithms to train on a dataset containing nine tomato diseases and used visualization methods to locate the disease sites with good results, yielding an accuracy of 99.18%. Cai et al. (2019) used convolutional neural networks to extract features such as the sizes, colors, textures and roundness of apples and then implemented an SVM to classify the ranks of Yantai apples, verifying the effectiveness of the convolutional neural network-SVM combination. Jiang et al. (2020) combined convolutional neural networks with SVM to identify rice leaf diseases using 10-fold cross-validation, achieving an average accuracy of 96.8%. Li et al. (2022a) ResNet and Inception V1 extracted the global features of the image, and then added WDBlock to the DCGAN generator. At the same time, SeLU activation function was used to improve the training stability of the network. Experiments have shown that FWDGAN can generate higher quality data and reduce the number of model parameters without compromising network performance. In the same year, Li et al. (2022b) proposed a tree image recognition system based on the Caffe platform and dual task Gabor. The Gabor kernel was introduced into CNN to extract frequency domain features of images with different scales and directions, thereby enhancing the texture features of leaf images and improving recognition performance. The training accuracy in complex backgrounds is 96%, achieving the goal of efficient and accurate recognition of quantities. Shundong Fang et al. (2022) used MFF blocks as the main structure, adopted a multi-channel feature fusion module of LC Block and RCblock, and added a hard coordination attention mechanism module to improve the recognition accuracy of the network. The final proposed HCA-MFFNet network for corn diseases has a recognition rate of 97.75%.

The network performance proposed in the above references is good, but there are similarities between some rice leaf diseases, making it difficult for neural networks to recognize them. Therefore, this study using the stacking integrated learning method, the proposed base learner integrates four convolutional neural networks, an improved AlexNet, an improved GoogLeNet, ResNet50 and MobileNetV3, for extracting rice leaf disease features, and an SVM is selected as the sublearner for disease classification and prediction; the accuracy of the proposed approach reaches 99.69%. Compared with the existing method, this method has the following four main contributions:

1. In this study, a stacking-based ensemble learning model is proposed for efficient and accurate identification of rice leaf diseases.

2. Combine convolutional neural network with support vector machine (SVM) to improve the disease identification effect of rice leaves.

3. Help improve model performance by increasing attention mechanisms and inserting residual networks into the model as convolutional layers.

4. The Leaky function is used instead of the RELU function to improve the extraction of disease characteristics of rice leaves by the model and reduce the sparsity of the RELU function.

The rest of this article is structured as follows. In Section 2, image acquisition and image preprocessing are mainly introduced. Section 3 introduces the construction process of the proposed model in detail, mainly discussing the method of the proposed model. These experiments are described in detail in Section 4, providing a large number of experiments to probe the performance of the proposed method and analyze the experimental results. Finally, section 5 summarizes the document and presents future work.

2 Materials and methods

2.1 Image acquisition

In this study, images of diseased rice leaves were taken with a Canon EOS 6D MarkII digital camera at the Agronomy Experiment Station of Jiangxi Agricultural University, and 36 images were identified and screened by experts. An additional 1086 images were obtained through search engines as well as from the public dataset Kaggle, for a total of 1122 rice leaf disease images. These images contained eight kinds of diseases, Aphelenchoides besseyi, bacterial leaf blight, red blight, leaf smut, rice sheath blight, bacterial leaf streaks, brown spots and rice blasts, and some of these rice leaf disease images are shown in Figure 1. Among them, ACB is Aphelenchoides besseyi, BLB is bacterial leaf blight, RB is red blight, LS is leaf smut, RSB is rice sheath blight, BLS is a bacterial leaf streak, BS is a brown spot, and RL is a rice blast.

FIGURE 1
www.frontiersin.org

Figure 1 Partial leaf disease map of rice.

2.2 Image processing

The scales of the images obtained from different sources were inconsistent, so this experiment first unified the images to a size of 224×224. In addition, deep learning generally requires a large amount of data for model training; otherwise, overfitting and poor accuracy may occur. However, under the existing conditions, a large number of rice leaf disease images could not be obtained, so the collected small dataset needed to be expanded. The original dataset was expanded using expansion methods such as flipping, rotation, cropping, color transformation, and blurring. Figure 2 shows the effect of partially utilizing these data enhancement methods, and Table 1 shows the numbers of images possessed before and after expansion.

FIGURE 2
www.frontiersin.org

Figure 2 Some data enhancement renderings.

TABLE 1
www.frontiersin.org

Table 1 Dataset of rice leaf diseases.

Finally, 80% of the expanded dataset was randomly selected as the training set, and the remaining 20% was used as the test set. The training set was used again to train the model via the 5-fold cross-validation method, and the rice leaf disease image samples were labeled with a two-dimensional one-hot coded label array, where 0, 1, 2, 3, 4, 5, 6 and 7 represented dry tip nematodes, white leaf blight, bacterial streaks, hoary leaf spots, rice leaf black spikes, red blight, rice blasts, and stripe blight, respectively.

3 Rice leaf disease identification model construction

3.1 Improvement of the AlexNet model

The original AlexNet (Krizhevsky et al., 2012), a convolutional neural network model, used the ImageNet (Deng et al., 2009) dataset, and the rice leaf disease dataset used in this study differs greatly from ImageNet. The direct application of the original model to rice leaf disease recognition would lead to a lower recognition rate. To improve the effective feature extraction and generalization ability of the model, make the model more adaptable to the dataset used in this experiment, and further improve its recognition effect after repeated debugging and optimization, the original AlexNet model was improved, and the new model is named AlexNet_G. The specific improvements are as follows.

1) Activation function

In this study, the rectified linear unit (ReLU) activation function (Liang and Xu, 2021) was replaced by the Leaky ReLU activation function (Andrew et al., 2013), which prevented the output of the ReLU function from being 0 when the neuron input was negative; this might have caused that part of the neurons to not be activated and the corresponding parameters to not be updated, i.e., a “dead” neuron.

2) Network structure improvement

The original AlexNet model had five convolutional layers. To make the model better fit the dataset of this study, the original model was adjusted to reduce some of the convolutional layers, the number of convolutional kernels, and the number of output nodes without affecting the recognition accuracy, thus reducing the computational complexity of the model, speeding up the training process, and reducing the memory occupied by the model, as shown in Figure 3.

FIGURE 3
www.frontiersin.org

Figure 3 AlexNet improved structure before and after. (A) Original AlexNet structure, (B) AlexNet_G structure.

3) Optimizer improvements

In this study, the SGD (Ruder, 2016) optimizer was changed to a self-applicable learning rate-based Adam (Ruder, 2016) optimizer, which automatically adjusted the parameter learning rate, dramatically increasing the training speed and robustness of the model.

3.2 Improvement of the GoogLeNet model

In 2014, the GoogLeNet model was proposed by Google (Szegedy et al., 2014), which provided a structural innovation while increasing the depth of the network by introducing a structure called Inception to replace the previous classic convolution-plus-activation component. The top-5 error rate of GoogLeNet on the ImageNet classification competition was reduced to 6.7%. In this study, the ECA mechanism and a residual network were added to GoogLeNet, the new obtained model is named RE-GoogLeNet (Yang et al., 2023); its structure is shown in Figure 4, with the following improvements.

FIGURE 4
www.frontiersin.org

Figure 4 RE-GoogLeNet structure.

1) Activation function

In this study, the Leaky ReLU activation function replaced the ReLU activation function so that the extraction rate of rice leaf disease features could be improved and the sparsity of the ReLU activation function could be reduced.

2) Convolution kernel

The 7×7 convolutional kernels in the original GoogLeNet were replaced with three 3×3 convolutional kernels to introduce more nonlinearity.

3) Embedding the ECA attention mechanism in the Inception module

The incorporation of attention mechanisms into convolutional neural networks to improve the performance of plant leaf disease recognition has become a major hotspot and has been shown to be beneficial for improving model performance. In this experiment, the ECA mechanism (Wang et al., 2020) was selected and added to the Inception module in GoogLeNet, which is called the E-Inception module, as shown in Figure 5. The specific structure adds a fully connected layer after the Inception module, connects a one-dimensional convolution with adaptive channels, and finally uses the sigmoid activation function to output the feature map.

FIGURE 5
www.frontiersin.org

Figure 5 E-Inception structure.

4) Addition of residual connections

Adding the attention mechanism after the Inception block could enable the extraction of deeper feature information, but after adding the ECA mechanism, the obtained E-Inception had more network layers than the previous module. This increase in the number of network layers would increase the information loss and gradient loss. In 2015, Kaiming He et al. proposed the ResNet network (He et al., 2016), and the increase in the number of network layers increased the information loss and elevation loss. Therefore, this study added a residual network between each pair of E-Inception layers and added a bypass between layers with the same performance to linearly superimpose the feature information of the previous E-Inception layer and the feature output of this layer to mitigate the degradation of the weight matrix when training the deep neural network. This approach is named the Res-ECA-Inception module, and the specific connection method is shown in Figure 6.

FIGURE 6
www.frontiersin.org

Figure 6 Res-ECA-Inception module.

3.3 Ensemble learning

Ensemble learning involves constructing and combining several learners to complete a learning task; this approach is sometimes referred to as a multiclassifier system, committee-based learning, etc. Figure 7 shows a generalization of the idea of integrated learning. The learning task is accomplished by training several individual learners with certain combination strategies to eventually form a strong learner.

FIGURE 7
www.frontiersin.org

Figure 7 Ensemble Learning Overview.

The main ensemble learning methods include bagging, boosting, and stacking, and the stacking method was used in this study. The stacking method, first proposed by Wolpert (Wolpert, 1990), is a serially structured hierarchical stacking ensemble framework that is popular in major data mining competitions. It consists of two levels of classifiers, called base learners and secondary learners, using a learning strategy for model fusion; i.e., the secondary learners are retrained and predicted using the outputs of the base learners as features to obtain complete predictions for correcting several base learner errors, thus actively improving the integrated model performance and reducing the risk of overfitting. Ensemble learning is widely used in education, medicine, social sciences, etc., but it has been less used in agriculture. The stacking model fusion process is shown in Figure 8. C1,…, Cm are the base classifiers (base models), and each base classifier’s training set is the complete original training set. For each base classifier, N epochs are used for training, and after the training process, all outputs (P1,…, Pm) of (C1,…, Cm) for the original training set during the N epochs are combined as a new training set for the second training stage of the model-meta classifier.

FIGURE 8
www.frontiersin.org

Figure 8 Stacking model fusion process.

In the actual use of the stacking method, to avoid the risk of overfitting, it is often accompanied by a cross-validation operation, and this study used a 5-fold cross-validation. The specific process is shown in Figure 9. The original dataset is first divided into a training set (the training data in Figure 9) and a test set (the test data in Figure 9) using 5-fold cross-validation; i.e., the original training set is divided into five folds, among which four folds are recorded as the base learner training set (“learn”), and the remaining one fold is recorded as the validation set (“predict”). The cross-validation process consists of two parts, i.e., a stable model is obtained by training on the dataset, and then the model is used for prediction.

1) The base learner is used to train on the learning folds and perform prediction on “predict” to output the feature column predict1; the test set is used to train this stereotyped parameter learner, and the prediction result test1 is output.

2) The above steps are repeated 5 times to generate predict1, predict2,…,predict5 from the training data, and these results are merged vertically to obtain A1. The test data generate test1, test2,…, test5, and these are averaged them to obtain B1.

3) The same operation is performed for the other base learners, i.e., repeating steps 1 and 2. Suppose we have four base learners; then, A1, A2, A3, and A4 and B1, B2, B3, and B4 are generated.

4) A1, A2, A3, and A4 are input as training sets into the stacking sublearner for training, and then the trained fixed-parameter models are tested against B1, B2, B3, and B4 to obtain the final results.

FIGURE 9
www.frontiersin.org

Figure 9 5-fold cross-validation process in stacking.

This implements the stacking method in a 5-fold cross-validation manner.

3.4 The experimental model

In this study, the AlexNet_G, RE-GoogLeNet, ResNet50, and MobileNetV3 (Howard et al., 2019) models were used as the base learners of the stacking ensemble learning framework so that the fusion models could be optimized and improved from the base models with large differences.

4 Experimental results and discussion

This experiment used a computer with an Intel(R) Xeon(R) Silver 4112 CPU at 2.60 GHz, 64.0 GB of RAM, an NVIDIA Quadro RTX 5000 graphics card; CUDA version 10.1; Cudnn version 7.6.5; and the Windows 10 64-bit operating system. The utilized software mainly included the OpenCV image processing software and the TensorFlow 2.3 Python 3.7 deep learning framework, using the Python language for program compilation.

4.1 Evaluation indicators

In this study, the precision, recall, accuracy, and F1 metrics were used to measure the performance of the network model in terms of rice leaf disease identification. The precision, recall, accuracy and F1 evaluation metrics were calculated as follows.

Precision=TPTP+FP(3)
Recall=TPTP+FN (4)
 Accuray=TP+TNTP+FN+FP+TN (5)
F1=2TP2TP+FP+FN (6)

where TP indicates that a positive sample was predicted as a positive sample, that is, a correct prediction; FP indicates that a negative sample was predicted as a positive sample, that is, an incorrect prediction; FN indicates that a positive sample was predicted as a negative sample, that is, an incorrect prediction; and TN indicates that a negative sample was predicted as a negative sample, that is, a correct prediction. The accuracy rate, also called the check rate, aims to determine how many of the samples predicted to be positive are actually positive and is used to evaluate the correctness of the detector based on successful detections. The recall rate, also called the check all rate, aims to find how many of the actually positive samples are predicted to be positive and is used to evaluate the detection coverage of the detector for all targets to be detected. The accuracy rate aims to know the probability of correct prediction among the total samples. F1 is designed to reflect both the accuracy rate and recall rate as an evaluation metric.

4.2 Experiments on open datasets

Considering the small size of the original rice leaf dataset, the four varieties of disease images were selected from the PlantVillage public dataset as the experimental subjects to verify the generalization ability of the model proposed in this study. These included apple black scab, apple black rot, apple rust, corn leaf spot, corn rust, corn leaf blight, grape black rot, grape esca, grape leaf blight, tomato leaf mold, tomato early blight, tomato late blight, and tomato bacterial spot. Some of these are shown in Figure 10, with a total of 15,866 images, and the numbers of images in various categories are shown in Table 2. As in the experiments conducted on the rice leaf dataset, we used 20% of the original dataset for evaluating the model, and the other 80% was still used for training and testing the model using fivefold cross-validation.

FIGURE 10
www.frontiersin.org

Figure 10 Plant disease pictures.

TABLE 2
www.frontiersin.org

Table 2 The number of different plant diseases.

4.3 Comparisons before and after improving the model

In this study, the improved AlexNet and GoogLeNet were used for the model. To explore the performance of the improved models, the single models were separately trained and tested on the rice leaf disease dataset and plant disease dataset. Their performance was measured using different evaluation metrics, such as the accuracy, precision, recall and F1 measures, and the data here were the average values in the fivefold cross-validation process. The results are shown in Tables 3, 4. From the data in the tables, we can see that the improved AlexNet had a better recognition ability than the original model on both the rice disease dataset and the plant disease dataset, with average accuracy improvements of 0.36% and 1.66%, respectively, and the improved AlexNet had fewer parameters. The improved GoogLeNet also achieved better performance on the rice disease dataset and plant disease dataset, with average accuracy improvements of 0.42% and 2.34%, respectively, over the original model. The other metrics of both models were also improved.

TABLE 3
www.frontiersin.org

Table 3 Improved model for rice disease recognition results.

TABLE 4
www.frontiersin.org

Table 4 Improved model for plant disease recognition results.

4.4 Comparison between different sublearners

To determine the effects of different sublearners on the performance of the stacking-based integrated model, seven more common classification algorithms in machine learning were selected in this study, namely, an SVM, k-nearest neighbors (KNN) (Tang, 2013), a random forest (RF) (Abeywickrama et al., 2016), GNB, a decision tree (DT), a light gradient boosting machine (LGBM), and LGR. With the same hyperparameters for each model, the rice dataset and the plant dataset were used for training, and the obtained accuracy rates are shown in Table 5. Finally, it was found that the accuracy rates achieved on both datasets were maximized when using the SVM, so in this study, the SVM was used as the sublearner in the stacking ensemble learning model.

TABLE 5
www.frontiersin.org

Table 5 Comparison of results from different secondary learners.

4.5 Single-model analysis

The model training and testing processes in this study were performed under the TensorFlow framework, and the rice dataset and plant dataset were used to train AlexNet_G, RE-GoogLeNet, ResNet50 and MobileNetV3 separately. All hyperparameters were kept consistent to ensure that the models were trained under the same environment, and the training results are shown in Figure 11. From (a) and (b) of Figure 10, it is observed that the model accuracy improvement occurred gradually as the number of training sessions increased and finally stabilized, which indicates that the model was better trained. The final accuracies of AlexNet_G, RE-GoogLeNet, ResNet50, and MobileNetV3 on the training set of the rice dataset were stable at 98.12%, 98.23%, 98.29%, and 92.89%, respectively, and on the training set of the plant dataset, they were stable at 94.49%, 92.36%, 97.23%, and 93.31%, respectively.

FIGURE 11
www.frontiersin.org

Figure 11 Accuracy variation of the four models on the training set. (A) Rice disease dataset, (B) Plant disease dataset.

Finally, the single models were validated with images from the test set, and their classification accuracies were calculated by calculating the numbers of correctly predicted rice leaf diseases and plant diseases. In addition, the precision, recall and F1 values were also calculated, and each value is shown in Tables 6, 7.

TABLE 6
www.frontiersin.org

Table 6 Comparison of results from different single models (Rice disease dataset).

TABLE 7
www.frontiersin.org

Table 7 Comparison of results from different single models (Plant disease dataset).

4.6 Combination models with different base learners

In this experiment, the AlexNet_G, RE-GoogLeNet, ResNet50 and MobileNetV3 models were arbitrarily combined and fused into new stacking-based integrated models to explore the performance changes yielded by integrated models with different combinations, and the sublearner was an SVM. Consistent with the previous single-model validation method, the classification accuracy was calculated according to the numbers of correct rice leaf disease and plant disease classifications. Other model evaluation metrics were also employed. The test accuracies of the stacking models with different base learner combinations for the same rice leaf disease and plant disease datasets are shown in Tables 8, 9, where A denotes AlexNet_G, G denotes RE-GoogLeNet, R denotes ResNet50, and M denotes MobileNetV3.

TABLE 8
www.frontiersin.org

Table 8 Comparison of results of different base learner combinations (Rice disease dataset).

TABLE 9
www.frontiersin.org

Table 9 Comparison of results of different base learner combinations (Plant disease dataset).

From the table, we can see that the results obtained using the stacking ensemble models were at high levels; the accuracies achieved on the rice leaf disease dataset were all above 99% except for those of two combinations, AM and RM, which did not reach 99% accuracy. All other combinations exceeded 99% accuracy on the plant disease dataset. The stacking-based integrated model also achieved good results, but not on the rice leaf disease dataset. The reason for the lower accuracy yielded on this dataset may be that there are few original pictures of rice, and the dataset obtained via data expansion leads to high accuracy. However, the stacking-based integrated model was more effective than a single model on both datasets. On the rice leaf disease dataset, the accuracy of AlexNet_G plus MobileNetV3 was 98.80%, making this the least effective among all combined stacking models but still 0.51% more accurate than the best-performing single model (ResNet50). This is because a single classifier can fall into local optima and induce overfitting during training for various reasons, resulting in a poor model generalization ability, while the stacking-based integrated model integrates the performance of multiple individual classifiers, effectively reducing or avoiding the aforementioned risk, thus enhancing its generalization ability and improving the accuracy of rice leaf classification recognition. Tables 10, 11 show the accuracy, recall and F1 values obtained for each disease in the rice dataset and plant dataset, respectively.

TABLE 10
www.frontiersin.org

Table 10 The recognition results of different rice disease dataset.

TABLE 11
www.frontiersin.org

Table 11 The recognition results of different plant disease dataset.

4.7 Comparison with other models

To validate the classification performance of the model proposed in this study, the same approach as above was taken to further train and test the model on the rice disease dataset and plant disease dataset. The more influential convolutional neural networks, which include DenseNet121 (Huang et al., 2017), InceptionResNetV2 (Szegedy et al., 2017), InceptionV3 (Szegedy et al., 2016), ResNet34, and ResNet101, were selected in this paper, and the performances achieved by the models on the rice dataset and the plant dataset are shown in Tables 12, 13, respectively.

TABLE 12
www.frontiersin.org

Table 12 The recognition results of different models(Rice disease dataset).

TABLE 13
www.frontiersin.org

Table 13 The recognition results of different models(Plant disease dataset).

As shown in Tables 12, 13, the model proposed in this study successfully achieved improved performance over that of other advanced methods, with testing accuracies of 99.69% and 99.15% on the rice dataset and the plant dataset, respectively. Among them, DenseNet121 and InceptionResNetV2 are both deep convolutional neural networks, but the model proposed in this paper still yielded better results than these two techniques. In addition, Figures 12, 13 show the confusion matrices obtained from model training on both datasets, and it is shown that our proposed model successfully identified the majority of the crop disease types in each sample image. Among them, As is apple black scab, AB is apple black rot, Ar is apple rust, Cs is corn leaf spot, Cr is corn rust, CB is a corn leaf blight, GB is grape black rot, GE is grape esca, Gb is grape leaf blight, TB is tomato bacterial spot, TE is tomato early blight, Tb is tomato late blight, and TM is tomato leaf mold. In summary, the superiority of the proposed method in terms of performance has been demonstrated, and the method is also applicable to disease identification for other crops.

FIGURE 12
www.frontiersin.org

Figure 12 Confusion matrix for rice dataset.

FIGURE 13
www.frontiersin.org

Figure 13 Confusion matrix for Plant dataset.

5 Conclusion

Timely and accurate crop disease identification is essential for improving the quantities and yields of crops. Deep learning techniques can be effective for image classification as they address most of the technical challenges associated with crop disease identification (Barbedo, 2019). By exploring the functions of currently popular convolutional networks, this study proposes a new network architecture. Considering the high similarity between rice leaf diseases, we use Stacking ensemble learning method to integrate convolutional neural networks together and add attention mechanism to make the model more focused on the disease part. This enables the model to better extract global features of rice leaves, and finally uses SVM for classification, with an accuracy rate of 99.69%. The proposed method was shown to be remarkably effective in identifying various crop diseases.

By applying this model to other plant datasets and achieving good results, it indicates that our model has strong generalization ability. Train the model using different sub learners to find the most suitable classifier for this model, and further prove that the combination of the proposed model achieves the best performance by comparing models with different combinations of base learners. In addition, compared to other most advanced convolutional networks, it achieved competitive performance, although the training process is slightly complicated. In the next step, further simplification of the training process and improving the efficiency of the model will be considered. In addition, we plan to deploy the model on portable devices to automatically track and identify a wide range of knowledge related to crop diseases. And applied in other fields, such as classification and recognition in animals, automobiles, and other fields.

Data availability statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Author contributions

HL was responsible for the experiment design. YZ prepared materials. SX and HZ performed the program development. XY, LY, and SZ analyzed the data, and XY were responsible for writing the manuscript. LY and XY contributed to reviewing the manuscript. All authors contributed to the article and approved the submitted version.

Funding

This work was supported by the National Natural Science Foundation of China (No. 61862032, 71863018, 71403112), and the Project of Natural Science Foundation of Jiangxi Province (No. 20202BABL202034).

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

Abeywickrama, T., Cheema, M. A., Taniar, D. (2016). K-Nearest neighbors on road networks: a journey in experimentation and in-memory implementation. Proc. VLDB Endowment 9 (6), 492–503. doi: 10.14778/2904121.2904125

CrossRef Full Text | Google Scholar

Andrew, L. M., Awni, Y. H., Andrew, Y. N. (2013) 28:1–6. Rectifier nonlinearities improve neural network acoustic models. Comput. Sci. Depart. 28, 1–6

Google Scholar

Barbedo, J. G. A. (2019). Plant disease identification from individual lesions and spots using deep learning. Biosyst. Eng. 180, 96–107. doi: 10.1016/j.biosystemseng.2019.02.002

CrossRef Full Text | Google Scholar

Brahimi, M., Boukhalfa, K., Moussaoui, A. (2017). Deep learning for tomato diseases: classification and symptoms visualization. Appl. Artif. Intell. 31 (4), 299–315. doi: 10.1080/08839514.2017.1315516

CrossRef Full Text | Google Scholar

Cai, Y., Silva, C., Bing L, I., Wang, L., Wang, Z. (2019). Application of feature extraction through convolution neural networks and SVM classifier for robust grading of apples. J. Instr. Meter: English Ed. 4, 59–71.

Google Scholar

Chen, J., Zhang, D., Suzauddola, Md, Adnan, Z. (2021). Identifying crop diseases using attention embedded MobileNet-V2 model. Appl. Soft Computing 113, 1–12. doi: 10.1016/j.asoc.2021.107901

CrossRef Full Text | Google Scholar

Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., Li, F.-F. (2009). ImageNet: a large-scale hierarchical image database. 2009 IEEE Confer. Comput. Vision Pattern Recog 248–255. doi: 10.1109/CVPR.2009.5206848

CrossRef Full Text | Google Scholar

Fang, S. D., Wang, Y. F., Zhou GX ,Chen, A. B., Cai, W. W., Wang, Q. F., Hu, Y. H., et al. (2022). Multi-channel feature fusion networks with hard coordinate attention mechanism for maize disease identification under complex backgrounds. Comput. Electron. Agric. 203, 107486. doi: 10.1016/j.compag.2022.107486

CrossRef Full Text | Google Scholar

Garcia, M. B., Ambat, S., Adao, R. T. (2020). “Tomayto, tomahto: a machine learning approach for tomato ripening stage identification using pixel-based color image classification,” in 2019 IEEE 11th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment, and Management (HNICEM) (Laoag, Philippines: IEEE), 1–6.

Google Scholar

Gharge, S., Singh, P. (2016). Image processing for soybean disease classification and severity estimation (Springer India), 493–500.

Google Scholar

Hammad, M., Pawiak, P., Wang, K., Acharya, U. R. (2020). ResNet-attention model for human authentication using ECG signals. Expert Syst. 38 (6), 1–17.

Google Scholar

He, K., Zhang, X., Ren, S., Sun, J. (2016). Deep residual learning for image recognition (Las Vegas, NV, USA: IEEE, IEEE Conference on Computer Vision and Pattern Recognition), 770–778.

Google Scholar

Howard, A., Sandler, M., Chu, G., Chen, L. C., Chen, B., Tan, M., et al. (2019). Searching for MobileNetV3. ICCV.

Google Scholar

Huang, G., Liu, Z., van der Maaten, L., Weinberger, K. Q. (2017). “Densely connected convolutional networks,” in 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (Honolulu, HI, USA: IEEE). 2261–2269.

Google Scholar

Jahanbakhshi, A., Momeny, M., Mahmoudi, M., Zhang, Y. D. (2020). Classification of sour lemons based on apparent defects using stochastic pooling mechanism in deep convolutional neural networks. Scientia Hortic. 263, 1–10. doi: 10.1016/j.scienta.2019.109133

CrossRef Full Text | Google Scholar

Jiang, B., He, J., Yang, S., Fu, H., Li, T., Song, H., et al. (2019). Fusion of machine vision technology and AlexNet-CNNs deep learning network for the detection of postharvest apple pesticide residues Art. Intell. Agri. 1, 1–8. doi: 10.1016/j.aiia.2019.02.001

CrossRef Full Text | Google Scholar

Jiang, F, Lu, Y, Chen, Y, Cai, D, Li, G. (2020). Image recognition of four rice leaf diseases based on deep learning and support vector machine[J]. Comput. Electron. Agri. 179 (2), 1–9. doi: 10.1049/iet-ipr.2017.0822

CrossRef Full Text | Google Scholar

Kaur, S., Pandey, S., Goel, S. (2018). Semi-automatic leaf disease detection and classification system for soybean culture. IET Image Process. 12 (6), 1038–1048. doi: 10.1049/iet-ipr.2017.0822

CrossRef Full Text | Google Scholar

Kawasaki, Y., Uga, H., Kagiwada, S., Lyatomi, H. (2015). Basic study of automated diagnosis of viral plant diseases using convolutional neural networks (Cham: Springer), 638–645.

Google Scholar

Krizhevsky, A., Sutskever, I., Hinton, G. E. (2012). Imagenet classification with deep convolutional neural networks. Adv. Neural Inf. Process. Syst. 25, 1097–1105. doi: 10.1145/3065386

CrossRef Full Text | Google Scholar

Li, M. X., Zhou, G. X., Chen, A. C., Yi, J. Z., Lu, C., He, M. F., et al. (2022a). FWDGAN-based data augmentation for tomato leaf disease identification. Comput. Electron. Agric. 194, 106779. doi: 10.1016/j.compag.2022.106779

CrossRef Full Text | Google Scholar

Li, M. X., Zhou, G. X., Li, Z. C. (2022b). Fast recognition system for tree images based on dual-task gabor convolutional neural network. Multimedia Tools Appl. 81, 28607–28631. doi: 10.1007/s11042-022-12963-4

CrossRef Full Text | Google Scholar

Liang, X. L., Xu, J. (2021). Biased ReLU neural networks. Neurocomputing 423, 71–79. doi: 10.1016/j.neucom.2020.09.050

CrossRef Full Text | Google Scholar

Pardede, H. F., Suryawati, E., Zilvan, V., Ramdan, A., Rahadi, V. P. (2020). Plant diseases detection with low resolution data using nested skip connections. J. Big Data 7 (1), 1–21. doi: 10.1186/s40537-020-00332-7

CrossRef Full Text | Google Scholar

Pawiak, P., Abdar, M., Acharya, U. R. (2019). Application of new deep genetic cascade ensemble of SVM classifiers to predict the Australian credit scoring. Appl. Soft Computing 84 (2019), 1–14. doi: 10.1016/j.asoc.2019.105740

CrossRef Full Text | Google Scholar

Picon, A., Seitz, M., Alvarez-Gila, A., Mohnke, P., Ortiz-Barredo, A., Echazarra, J. (2019). Crop conditional convolutional neural networks for massive multi-crop plant disease classification over cell phone acquired images taken on real field conditions. Comput. Electron. Agric. 167, 105093–105093. doi: 10.1016/j.compag.2019.105093

CrossRef Full Text | Google Scholar

Ruder, S. (2016). An overview of gradient descent optimization algorithms. arXiv e-prints 2, 1–14.

Google Scholar

Singh, A. K., Rubiya, A., Raja, B. S. (2015). Classification of rice disease using digital image processing and svm classifier. Int. J. Electr. Electron. Eng. 7, 294–299.

Google Scholar

Sugathan, A., Sruthi, S., Shamsudeen, F. M. (2020). A comparative study to detect rice plant disease using convolutional neural network (CNN) and support vector machine (SVM). J. food Agric. Environ. 2), 79–83.

Google Scholar

Szegedy, C., Ioffe, S., Vanhoucke, V., Alemi, A. (2017). Inception-v4, inception-ResNet and the impact of residual connections on learning. Proceed. AAAI Confer. Art. Intell. 31 (1), 4278–4284. doi: 10.1609/aaai.v31i1.11231

CrossRef Full Text | Google Scholar

Szegedy, C., Liu, W., Jia, Y., Sermanet, P., Rabinovich, A. (2014). Going deeper with convolutions (Boston, MA, USA: IEEE Computer Society), 1–9.

Google Scholar

Szegedy, C., Vanhoucke, V., Ioffe, S., Shlens, J., Wojna, Z. (2016). Rethinking the inception architecture for computer vision (Las Vegas, NV, USA: IEEE), 2818–2826.

Google Scholar

Tang, Y. (2013). Deep learning using linear support vector machines (Computer ence).

Google Scholar

Tuncer, T., Ertam, F., Dogan, S., Aydemir, E., Pawiak, P. (2020). Ensemble residual networks based gender and activity recognition method with signals. J. Supercomput. 76, 2119–2138. doi: 10.1007/s11227-020-03205-1

CrossRef Full Text | Google Scholar

Wang, Q., Wu, B., Zhu, P., Li, P., Zuo, W., Hu, Q. (2020). “ECA-net: efficient channel attention for deep convolutional neural networks,” in 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (Seattle, WA, USA: IEEE). 11531–11539.

Google Scholar

Wells, W. M.I. I. I. (2016). Medical image analysis–past present future. Med.Image Anal. 33, 4–6. doi: 10.1016/j.media.2016.06.013

PubMed Abstract | CrossRef Full Text | Google Scholar

Wolpert, D. H. (1992). Stacked generalization. Neural Net-work 5 (2), 241–259. doi: 10.1016/S0893-6080(05)80023-1

CrossRef Full Text | Google Scholar

Xie, X., Ma, Y., Liu, B., He, J., Wang, H. (2020). A deep-Learning-Based real-time detector for grape leaf diseases using improved convolutional neural networks. Front. Plant Sci. 11, 1–14. doi: 10.3389/fpls.2020.00751

PubMed Abstract | CrossRef Full Text | Google Scholar

Yang, L., Yu, X. Y., Zhang, S. P., Long, H. B., Zhang, H. H., Xu, S., et al. (2023). GoogLeNet based on residual network and attention mechanism identification of rice leaf diseases. Comput. Electron. Agric. 204 (1), 107543.

Google Scholar

Zhong, Y., Yang, W., Zhou, Q., Gao, C. (2019). Feature fusion and recognition of potato disease images based on improved fractional differential mask and FPCA. Int. Conference 37–41. doi: 10.1145/3357254.3357279

CrossRef Full Text | Google Scholar

Keywords: ensemble learning, stacking, convolutional neural network, machine learning, rice diseases

Citation: Yang L, Yu X, Zhang S, Zhang H, Xu S, Long H and Zhu Y (2023) Stacking-based and improved convolutional neural network: a new approach in rice leaf disease identification. Front. Plant Sci. 14:1165940. doi: 10.3389/fpls.2023.1165940

Received: 14 February 2023; Accepted: 28 April 2023;
Published: 06 June 2023.

Edited by:

Mansour Ghorbanpour, Arak University, Iran

Reviewed by:

Jana Shafi, Prince Sattam Bin Abdulaziz University, Saudi Arabia
Guoxiong Zhou, Central South University Forestry and Technology, China

Copyright © 2023 Yang, Yu, Zhang, Zhang, Xu, Long and Zhu. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Le Yang, jxnzhyangle@163.com; Xiaoyun Yu, 1637020418@qq.com

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.