Abstract
Diseases have a great impact on the quality and yield of strawberries, an accurate and timely field disease identification method is urgently needed. However, identifying diseases of strawberries in field is challenging due to the complex background interference and subtle inter-class differences. A feasible method to address the challenges is to segment strawberry lesions from the background and learn fine-grained features of the lesions. Following this idea, we present a novel Class-Attention-based Lesion Proposal Convolutional Neural Network (CALP-CNN), which utilizes a class response map to locate the main lesion object and propose discriminative lesion details. Specifically, the CALP-CNN firstly locates the main lesion object from the complex background through a class object location module (COLM) and then applies a lesion part proposal module (LPPM) to propose the discriminative lesion details. With a cascade architecture, the CALP-CNN can simultaneously address the interference from the complex background and the misclassification of similar diseases. A series of experiments on a self-built dataset of field strawberry diseases is conducted to testify the effectiveness of the proposed CALP-CNN. The classification results of the CALP-CNN are 92.56%, 92.55%, 91.80% and 91.96% on the metrics of accuracy, precision, recall and F1-score, respectively. Compared with six state-of-the-art attention-based fine-grained image recognition methods, the CALP-CNN achieves 6.52% higher (on F1-score) than the sub-optimal baseline MMAL-Net, suggesting that the proposed methods are effective in identifying strawberry diseases in the field.
1 Introduction
Strawberry, often praised as the “Queen of Fruits”, is rich in vitamin C and antioxidants that support heart health and blood sugar control (). It is becoming a new income-producing agricultural product compared with traditional crops. However, strawberries are very delicate and highly susceptible to infection in natural environment. They are prone to various infectious diseases caused by fungal, bacterial and viral pathogens (). Up to now, many strawberry diseases have been identified during the whole cultivation period of strawberries. These diseases can occur in strawberries’ fruit, leaf, and stem, such as gray mold, powdery mildew and anthracnose. Therefore, disease management is a routine and labor-intensive requirement in strawberry cultivation. Currently, the identification of strawberry diseases is empirically conducted by growers, especially in China. The various types of diseases pose a great challenge to the accurate identification of the growers. Meanwhile, the manual manners are expensive, laborious and subjective, making them hard to wildly apply in modern agriculture. Hence, the current strawberry disease management cannot meet the need for automatic monitoring in agricultural practice (). Furthermore, most strawberry growers lack professional knowledge to distinguish the diseases, resulting in the use of incorrect and overdose fungicides in disease management. The abuse of fungicides greatly harms the health of consumers and has caused substantial economic loss (). There is an urgent need for a fast and effective method to identify diseases in strawberry farming.
In general, the visual symptoms, including color, texture, shape and location of the lesions are important evidence for disease identification (; ; ). Given these visual features, various methods based on computer vision (CV) technology have been developed to identify different crop diseases. The CV-based methods for crop disease identification can be summarized into two streams. In the first stream, the traditional CV-based methods (such as color space transform, histogram of oriented gradient and gray level co-occurrence matrix [GLCM]) are applied to extract lesion features from diseased spots (; ; ; ). Then, a classifier (e.g., linear/logistic regression, random forest) is constructed to yield classification results based on the extracted features (; ; ; ). For instance, three phalaenopsis seedlings diseases had been successfully identified by an artificial neural network with the GLCM extracted texture features (). Besides, () designed two descriptors of their segmented hot-spot blobs to validate the effectiveness of the related traditional CV-based methods in identifying diseases at the early stage under a complex field background. The two descriptors were used to describe the color and texture features of the blob lab channels, respectively. These studies have proved that traditional CV-based methods are effective in recognizing the diseases of crops in both laboratory and field environments. However, these methods rely on the manual selection of discriminative features among diseases. The discriminative feature selection in field disease identification is very difficult and time-consuming (). Furthermore, the identification accuracy could dramatically decrease with a slight change in the input image dataset (). These shortcomings result in the traditional CV-based methods rarely adopted in the practice of crop disease identification. The convolutional neural network (CNN) and its variants lead the second stream for crop disease identification. The CNN-based models can automatically extract basic features like color, texture, edge, and location information. Meanwhile, they are competent to obtain more abstract semantic information from the image of crop diseases (). Besides, these CNN-based models have more flexible architectures that can be applied as feature extractors or classifiers. In recent studies, the CNN-based models have become the preferred method to identify crop diseases (; ; ; ). Earlier studies apply the classical CNN models, such as AlexNet (), GoogLeNet (), and ResNet () on some specific crop disease datasets and found the most suitable model for the disease identification tasks (; ; ; ; ). The related models achieve preferable recognition accuracy on their disease datasets. However, these studies fail to consider the complexity of the practical application of field disease identification. The main challenges of field disease identification are the complex background and a variety of diseases with similar symptoms (). These models cannot be applied to crop cultivation practice. Consequently, some researches aim at reducing the misclassification caused by complex backgrounds and diseases with similar symptoms.
A simple yet effective method to eliminate the influence of complex background on disease identification is to segment the lesion region from their background. Several CNN-based semantic segmentation methods have been proposed to mitigate the adverse impact of the background. () proposed a segmentation network, KijianiNet, to segment tomato leaves from the natural field conditions. () and () adopted U-Net () and DeepLabV3+ () in the first stage of their models to segment the diseased leaves from the field scenes, respectively. The related experimental results showed that extracting diseased regions from the background can greatly improve the identification performance of the models. However, CNN-based semantic segmentation methods require pixel-level supervision. Such pixel-level annotation by experts is time-consuming, laborious and costly since plenty of lesions have varied shapes. On the topic of similar disease identification, few studies have proposed effective approaches to tackle this issue. () applied transfer learning and data augmentation technologies to enhance the ability of the classical CNN models (e.g., AlexNet, GoogLeNet and ResNet) to distinguish the grapevine yellow from its similar diseases (such as grapevine leafroll and stictocephala bisonia). The experimental results confirmed that the data augmentation technologies were beneficial for classical CNN models to identify grape diseases. Because a suitable data augmentation strategy could increase the differences among similar diseases. However, the strategy was not easy to obtain, it required trial and error. The research of () was a development in identifying similar diseases of field crops. Similar diseases were classified by increasing the weight of discriminative lesion features. To locate lesion details and learn discriminative lesion features among similar diseases, they proposed a self-supervised multi-network fusion classification model. However, the locations of the lesion details were randomly generated. Furthermore, all the obtained lesion details need to be fed to a classifier to assess the confidence of these regions as lesions, which greatly increased the time consumption of the model.
Image-based automatic disease identification is a basic need of modern large-scale cultivation agriculture. Field disease identification is challenging due to the complex background and similar symptoms among diseases. To address these problems, this paper focuses on strawberry field disease identification and proposes a novel Class-Attention-based Lesion Proposal Convolutional Neural Network (CALP-CNN) to precisely identify strawberry diseases in the field. The CALP-CNN method first utilizes a class-attention mechanism to enhance the localization of discriminative lesion feature. Two specific modules (i.e., the class object location module, COLM, and the lesion part proposal module, LPPM) are designed to recursively segment the main lesion object and lesion detail from an input image. Finally, the features of the original, main lesion object and lesion details are concatenated for final identification. To our knowledge, the CALP-CNN method is the first attempt to simultaneously address the challenges posed by the complex background and similar symptoms to crop disease identification in the field. The main contributions are summarized as follows:
We introduce a new class attention mechanism (i.e., the class response map) to improve the ability of the CNN to localize the discriminative lesion features.
We address the challenges of field disease identification by developing a novel CALP-CNN that simultaneously removes the noisy background and effectively learns discriminative lesion representations among similar diseases in an unsupervised way.
A series of experiments are conducted on the field strawberry disease dataset to evaluate the effectiveness of the CALP-CNN. The experimental results show that the proposed method has better performance than other state-of-the-art fine-grained methods on field strawberry disease identification.
2 Material and methods
2.1 Material
In this paper, the strawberry diseases with high incidence in planting practice were taken as our research objects. To this end, a strawberry common disease dataset (SCDD) was constructed. The SCDD was collected in two ways: field-collection and internet crawling. We firstly shot 1,326 disease images of three strawberry varieties (Fengxiang, Nvfeng and Hongyan) in ChangFeng County, Anhui Province, China. To increase the diversity of the dataset, the images were deliberately captured in the field at different angles and focal lengths. The second part was from the internet. A crawler was applied to download more than 5,000 images of field strawberry diseases. The collected images were manually screened one by one to discard the poor-quality samples (obscure and the resolution less than 224×224). The disease images in the dataset were annotated by three experts. One was responsible for labeling the dataset, and the other two were responsible for reviewing the results. Finally, a high-quality dataset of strawberry diseases with 3,411 images was constructed for downstream analysis. The SCDD contained 11 common diseases and healthy type. Table 1 shows detailed information of the SCDD. In addition, the typical symptoms of 11 common strawberry diseases are shown in Figure 1.
Table 1
| Category label | Strawberry disease | Number |
|---|---|---|
| 0 | healthy | 509 |
| 1 | leaf scorch | 287 |
| 2 | gray mold | 332 |
| 3 | powdery mildew | 344 |
| 4 | brown spot | 215 |
| 5 | fertilizer disorder | 308 |
| 6 | fusarium wilt | 145 |
| 7 | white leaf spot | 259 |
| 8 | calcium deficiency | 431 |
| 9 | magnesium deficiency | 197 |
| 10 | anthracnose | 198 |
| 11 | bacterial leaf spot | 186 |
| Total | 3411 |
List of strawberry common disease dataset.
Figure 1
In our experiments, the dataset was randomly divided into a training set, a validation set and a testing set in the ratio of 6:2:2 (2,047 images for training, 682 images for validation, and the remaining 682 images for testing). In the training process, we adopted the online data augmentation strategies to increase the diversity of the dataset and the robustness of the models. Specifically, the processes of Normalize, RandomHorizontalFlip, RandomVerticalFlip, and RandomResizedCrop (crop to 224×224) were applied during training.
2.2 Methods
In this paper, a class-attention-based lesion proposal CNN is presented to settle the main challenges of CNN-based methods in field disease identification, i.e., the complex background and similar diseases. The framework of CALP-CNN is shown as Figure 2. A cascade architecture is designed for extracting the region-based features from the input images at three scales including the raw image at coarse-grained level, the main lesion object at medium-grained level and the lesion detail images at fine-grained level. Furthermore, a series of modules are developed to extract class-related features in each layer of the cascade architecture. The detailed information of the CALP-CNN is described as follows:
Figure 2
First, a CNN backbone is repeatedly applied to extract region-based features from the input images in three scales. The CNN modules in three scales are given the same parameters. Second, the features are fed forward to three classifiers to predict three probability scores. The computed probability scores represent the prediction confidence of each disease category. Meanwhile, a class response map (CRM) module is constructed to generate a class attention matrix based on the region-based features. Here, the class attention matrix is defined as a class response map in this paper. Third, two different modules (COLM and LPPM) are developed to detect lesion regions based on the corresponding attention matrix from different scales of the input image, respectively. The COLM is used for locating the main lesion object in the image at coarse-grained level, while the LPPM proposes lesion details in the image at medium-grained level. Once an attended region is located, we segment the region and zoom in it to the raw image size. The located regions can be employed to generate a series of highly reliable lesion features. As a whole, the CALP-CNN takes advantage of ensemble learning to integrate the features from three scales for final identification. Moreover, the CALP-CNN combines an intra-scale cross-entropy loss and an inter-scale pairwise ranking loss to ensure rapid convergence.
2.2.1 Class response map
A series of class activation maps can be generated by the product of CNN feature maps with their corresponding class scores. The studies of (; ) have proved that the class-related information in the class activation maps is effective for locating discriminative regions in an image. In this paper, we obtain discriminative information of lesions based on the class activation maps and construct a class response map (also denoted as class attention matrix) to localize the objects of interest. Figure 3 shows the generation process of a class response map.
Figure 3
First, a pre-trained CNN backbone is applied to extract the feature maps of a 3-channel image I∈R3×H×W , where the H × W is the spatial size of the image. The extracted feature maps are represented as S∈RC×Hf×Wf,where C is the channel number and Hf × Wf is the spatial size of the feature maps. Second, the feature maps S are fed forward to a classifier consisting of a fully connected (FC) layer and a softmax layer. A vector p∈R^{N_c}.(NC is the pre-set category number of the strawberry diseases) can be computed by the classifier as the predicted probability score of each disease. In addition, the weights of the FC layer are denoted as wfc∈RC×Nc . Third, a CRM module is designed to generate the class-related features maps. It establishes a new convolutional layer with the weight of the wfc (i.e., the formed convolutional layer achieves the same weights as the FC layer). Therefore, it possesses a strong ability to extract class-related features. Based on the constructed convolutional layer, a set of class-related feature maps Q={Qi}(Qi∈RHf×Wf,i=1,…,Nc) can be generated from the extracted S. The Qi represents the i-th channel. The features of the Qi are most relevant to category i. In the training process, the CALP-CNN applies the ground truth label to select the most class-related feature map of the convolutional layer as the class response map. That is to say, if the image is annotated as category c, the class response map is Qc. In the testing process, there is no ground truth label of the input image. Follow as (), the CALP-CNN adopts the entropy of the top 5 predicted probabilities to evaluate the lesion information in their corresponding class-related maps. Let be the subset of p for top 5 predicted class probabilities. We compute the entropy as
and construct the class response map Qc based on the following strategy,
where is the class-related feature maps correspond to and ε is a threshold (empirically set to 0.2).
2.2.2 Class object location module (COLM)
In most cases, the CNN backbone could extract many irrelevant and noisy features that are adverse to disease identification, especially for a complex background (). To cope with this issue, we design the COLM to locate the main lesion object and discard the irrelevant background region. This module is inspired by the discriminative region location methods of the fine-grained image classification and retrieval domain (; ; ). The pipeline of COLM is shown as Figure 4
Figure 4
The class response map Qc is resized to the same size as the input image I by a bilinear interpolation algorithm. The interpolation result is denoted as . Ding et al. have concluded that the larger value in the class response map, the more related of the corresponding pixel to the class (). In most cases, we have no prior knowledge about the location of the lesion objects since most crop disease datasets only have image-level supervision.
Then, a mask map M can be generated according to Eq.4.
As shown in Figure 4, the object regions are marked red in the mask map. We can observe some noisy regions (the top-left and bottom-right) in the mask. In fact, the noisy regions could be non-lesion parts, whereas they are activated by the complex background. Fortunately, the sizes of the noisy regions are typically smaller than the main lesion object. Flood-fill algorithm is a common method to connect neighboring and related elements of a matrix. In this paper, we apply it to test the connectivity of all the points in M and find out the largest connected area. The largest connected area is the location of the main lesion object. The minimum enclosing rectangle of the largest connected area is denoted as M. We adopt the top-left point (xtl, ytl) and bottom-right point (xbr, ybr) to represent the location of M = M [xtl:xbr,ytl:ybr]. With the interpolation algorithm, the pixels in the mask map M are one-to-one corresponding to the pixels in the input image I. Therefore, the location of M can be used to extract the main lesion object and discard the noisy background in I. As a result, the main lesion object Iobj is computed as:
Based on the ablation experiments in section 4.2, the COLM module can effectively improve the classification accuracy.
2.2.3 Lesion part proposal module (LPPM)
Identifying similar diseases in the field is another critical problem for strawberry cultivation, especially for those diseases which have homologous backgrounds and subtle inter-class differences (e.g., the diseases at the early stage and the diseases occurring in the same part). Strengthening the differences between diseases is the key approach to address this issue (). The similar disease identification is in accord with the characteristics of the fine-grained image recognition (FGIR) (). The studies of FGIR have concluded that the discriminative features always lie in the details (; ; ; ). Hence, we present the LPPM to localize the distinguishing lesion features in the details. The design idea of this module is derived from the region proposal algorithm (RPA) (). The RPA is an effective method to propose candidate regions for object detection. The candidate region is called anchor in object detection. Nevertheless, the RPA requires an additional bounding box to annotate the location of the object. The bounding box annotation process is labor-intensive and subjective. Here, we take the average value of all pixels in the anchor as a confidence of whether the region in the anchor is a lesion detail. In this way, the RPA can be generalized to identify detailed lesions in the images without bounding box annotations.
The pipeline of LPPM is shown as Figure 5. The LPPM takes the output (i.e., class response map) of a CRM module as input. We denote it as Mc∈RHf×Wf . First, the LPPM propose the coordinates of the anchors on Mc. By default, we use 3 aspect ratios (1:1, 2:1, 1:2) and 1 scale (Hf/2), yielding k=3 anchors at each pixel of Mc. The total number of generated anchors is k × Hf× Wf. Each anchor is an eligible candidate for the lesion detail. The coordinates of the anchors are denoted by their top-left point and bottom-right point Second, we calculate the average value of an anchor at Mc as follows:
Figure 5
is the confidence of the anchor to be a lesion detail region. A higher value of ā represents the higher probability of the anchor being a lesion detail. Third, we pick out the top-N anchors according to their confidence. In practice, the top-N anchors are adjacent and contain almost the same parts (). For this reason, the directly selection of top-N anchors will cause information redundancy.
Algorithm 1
Input: The coordinate list of the anchors; The corresponding confidence list of the anchors; The IoU threshold, Output: The top-N anchor listCombined the confidence list and the coordinate list with an element as . The result is a confidence_coordinate_list; confidence_coordinate_list ← Sort the combined list in descending order with the confidence ;anchor_list ← Initialize an empty list of selected anchors; whileLength(anchor_list)< N and Length(confidence_coordinate_list) > 0do A←Pop out the first anchor element from the confidence_coordinate_list; Ifanchor_list is emptythenAdd A to the anchor_list;else Calculate the IoU between A and the other anchors in the anchor_list;ifIoU< thresholdthenIoU< threshold Add A to the anchor_list;returnthe anchor_list (is the top-N list); |
In this paper, we use the intersection over union (IoU) to indicate the redundant ratio of two anchors. The IoU between anchor A2 and anchor A2 is computed as:
The IoU ratios between the anchor with the highest confidence and the other anchors are calculated. The scores of neighboring anchors will be suppressed when their IoU ratios are higher than the pre-set threshold. The threshold is set to 0.7 in this paper. The selection process of the top-N anchors is described in Algorithm 1 Note that N is a hyper-parameter which represents the defined number of lesion details. From the ablation experiments (see Section 4.2), the CALP-CNN achieves the best classification results when N is set to 5. Finally, we map the coordinate of the anchors in the top-N list to the input image I with the stride (s = H/Hf) of the backbone network. The location of the lesion Idetail is generated as:
2.2.4 Optimization strategy
The loss function of the proposed CALP-CNN is composed of two parts, including an intra-scale cross-entropy loss Lcls and an inter-scale pairwise ranking loss Lrank. The total loss function for an image I is defined as follows:
The Lcls and Lrank are expressed in Eq. 10 and Eq. 11, respectively.
where Yr, Y°, and Yd are the predicted label vectors from the raw, object and detail images. Yc is the predicted label vector using the concatenated features and Y* is the ground truth label vector. N is the number of lesion details. Lcls is the chief loss function, which is dominant in the parameter optimization of the CALP-CNN.
where pr, p° and pd denote the prediction probabilities from the raw, object and detail images, respectively. To be specific, the ranking loss of the probabilities pi and pj is defined as:
where δ is a constant (by default, δ=0.05). The ranking loss can force the object image to acquire higher predicted probabilities than the original image. Meanwhile, the detail images are forced to acquire higher predicted probabilities than the object image. In other words, the Lrank takes a coarse prediction as reference and gradually compels the network toward more discriminative region by forcing the finer-scale images to achieve more confident predictions.
2.3 Evaluation metrics
In this paper, the Accuracy, Precision, Recall, and F1-score are adopted to evaluate the performance of the proposed CALP-CNN. The Accuracy, Precision, Recall, and F1-score of category i are defined as follows:
where TPi and TNi denote the number of samples labeled as category i and non-category i that are correctly classified, respectively. FPi denotes the number of samples labeled as non-category i but classified as category i. FNi denotes the number of samples labeled as category i but classified as non-category i.
For a multi-class classification task, the overall Accuracy, Precision, Recall, and F1-score can be defined with the average of all the categories in their binary classification case. The formulas of the overall Accuracy, Precision, Recall, and F1-score are defined as follows:
where the Nc represents the number of categories of strawberry diseases in the SCDD.
3 Experimental results and analysis
We conduct a series of experiments on the testing set of the SCDD to verify the effectiveness of the proposed CALP-CNN to identify strawberry diseases by filtering the complex background features and learning the discriminative features among similar diseases. The top-N of the anchors (lesion details) is set to 5 for the LPPM in our experiments.
Baselines: Because the CALP-CNN is an attention-based model and our SCDD only has image-level supervision, here we select six weakly-supervised fine-grained image recognition methods as baselines and compare their disease identification performance with the CALP-CNN method. The six baselines are described in detail as follows:
MA-CNN (): Multi-attention convolutional neural network, which uses channel grouping to learn different part features.
RA-CNN (): Recurrent attention convolutional neural network, which recurrent learns the finer-scale features by an attention proposal network.
MMAL-Net (): Multi-branch and multi-scale attention network, which utilizes a saliency map to locate the main object and propose discriminative parts.
SSN (): A saliency-based sampling layer for a neural network that samples the raw image based on a saliency map with a non-uniform method.
TASN (): Trilinear attention sampling network first uses a trilinear function to enhance saliency values, then samples the raw images with these enhanced values.
S3N (): Selective sparse sampling network, which captures diverse and fine-grained detail from the raw image based on a class response map with a selective sparse method.
All the baselines achieve state-of-the-art on their fine-grained datasets [e.g., CUB-200-2011 (), and FGVC Aircraft ()].
Implementation details: The proposed CALP-CNN is implemented on the open-source package Pytorch (), which can flexibly implement various CNN-based models. A pre-trained ResNet-50 on the ImageNet dataset is used as the backbone for extracting the feature maps. For a fair comparison, all baselines are re-implemented with this backbone. We use the stochastic gradient descent (SGD) to optimize network parameters. All the models are trained for 60 epochs with a batch size of 16. The initial learning rate is set to 1e-3 and will be dropped by 10 at the 20-th and 40-th epoch. The momentum is set to 0.9 and the weight decay is set to 1e-4. The input images are preprocessed to size 224×224. All the experiments are performed on a dell T5820 computer workstation with NVIDIA GeForce RTX 3090 GPU and Intel Xeon W-2200 processor.
3.1 Classification results
We compare the performance of the proposed CALP-CNN with the baselines on the testing set of the SCDD. The classification results are shown in Table 2. The CALP-CNN achieves more accurate classification results on all metrics. The CALP-CNN significantly outperforms the backbone (ResNet-50) by 9.49% on the F1-score. The overall F1-score of the CALP-CNN is higher than the saliency-based models, for example, 9.03% improvement for SSN, 7.05% improvement for TASN, and 6.52% improvement for MMAL-Net. Additionally, the proposed CALP-CNN is also superior to the recurrent attention method (RA-CNN), the channel grouping attention method (MA-CNN), and the class attention method (S3N). Specifically, it improves 8.59%, 8.4% and 6.55% compared with RA-CNN, MA-CNN, and S3N on F1-score, respectively. Note that the improvement of our proposed model is contributed by the introduction of the COLM and LPPM. The COLM can filter the noisy background features, while the LPPM provides discriminative lesion details.
Table 2
| Attention Mechanism | F1-score | Accuracy | Precision | Recall | |
|---|---|---|---|---|---|
| ResNet-50 (He et al., 2016) | – | 82.47 | 84.35 | 83.49 | 82.13 |
| RA-CNN (Fu et al., 2017) | part attention | 83.37 | 85.71 | 84.56 | 83.38 |
| MA-CNN (Zheng et al., 2017) | channel attention | 83.56 | 85.82 | 84.49 | 83.92 |
| MMAL-Net (Zhang et al., 2021) | saliency attention | 85.44 | 87.11 | 85.79 | 85.47 |
| SSN (Recasens et al., 2018) | saliency attention | 82.93 | 84.40 | 84.01 | 82.91 |
| TASN (Zheng et al., 2019) | saliency attention | 84.91 | 87.10 | 85.72 | 84.88 |
| S3N (Ding et al., 2019) | class attention | 85.41 | 86.70 | 86.56 | 84.72 |
| CALP-CNN | class attention | 91.96 | 92.56 | 92.55 | 91.80 |
The classification performance of different methods on the SCDD.
The bold and underlined values indicate the highest and sub-optimal scores in the metric, respectively.
3.2 Ablation experiments
In this paper, four ablation experiments are conducted to investigate the role of 1) different network branches, 2) lesion location methods (saliency map vs. class response map), 3) the number of lesion details, and 4) the ranking loss on field disease identification accuracy. The experiments show that the CNN with three branches and five lesion details (top-5) achieves the best performance. The best model is equipped with the class response map for lesion location and the ranking loss for model optimization.
3.2.1 Contribution of different branches
As shown in Figure 2, the CALP-CNN consists of three main branches, i.e., the raw branch (R-branch), the object branch (O-branch), and the (lesion) details branch (D-branch). In our experiments, we temporarily remove different branches to survey the contribution of each branch. The F1-score of the ablation experiments is recorded in Table 3. The following conclusions can be drawn: 1) The F1-score of the CALP-CNN with all branches (R+O+D) is 91.96%. It drops to 87.94% when omitting the O-branch. While it drops to 88.42% when the D-branch is removed. These results demonstrate that both the O-branch and the D-branch are capable of locating informative lesion regions. 2) The O-branch has the highest score (88.97%) among the three branches. It shows that the locating and segmenting operation of the class-related lesion object from the complex background can effectively eliminate the influence of the background on disease identification in the field. 3) The D-branch represents detailed information on lesions but does not yield the highest score among the three branches. It demonstrates that the discriminative lesion detail features are not all-inclusive for disease identification. Contextual information is also a key feature for disease identification. On the other hand, the D-branch could provide essential information to the other branches. The overall accuracy of the network features is improved from 83.92% to 87.94% in R+D branches setting and 87.08% to 91.21% in O+D branches setting, respectively. Furthermore, the D-branch can collect important lesion details for similar disease identification cases. 4) Note that the absence of the O-branch results in a bigger loss (4.02%, from 91.96% to 87.94%) than the D-branch (3.54%, from 91.96% to 88.42%), suggesting that removing the background features is critical for disease identification in the field. 5) The concatenated features of the three branches achieved the best performance. It indicates that the share of the object and the lesion detail features can enhance the lesion features and suppress the influence of background features. The disease surrounding context information of disease is preserved in the concatenated features.
Table 3
| Experimental Setting | R-branch(%) | O-branch(%) | D-branch(%) | Concatenation(%) |
|---|---|---|---|---|
| R branch | 82.47 | – | – | 82.47 |
| R+O branches | 82.66 | 88.97 | – | 88.42 |
| R+D branches | 83.92 | – | 83.01 | 87.94 |
| O+D branches | – | 87.08 | 84.37 | 91.21 |
| R+O+D branches | 82.44 | 88.12 | 86.05 | 91.96 |
The contribution of each branch.
3.2.2 Role of different location methods
We re-implement the COLM and LPPM with saliency-based attention () to locate the main object and the lesion details. The saliency map adopts a class-agnostic attention mechanism. Different from the saliency map, the class response map is a class-aware attention method. From Table 4, we can observe that the class-aware method has 5.57% higher scores than the class-agnostic method. It further demonstrates that the class-aware method can effectively localize class-related regions.
Table 4
| F1-score(%) | Comments | |
|---|---|---|
| saliency map | 86.39 | class-agnostic attention |
| class response map | 91.96 | class-aware attention |
Comparison between different location methods.
Number of lesion details: Ten experiments are performed to investigate the relationship between the classification result (F1-score) and the number of lesion details. As shown in Figure 6, the F1-score improves as the number of lesion details increases. However, the F1-score declines when the number of lesion details exceeds 5. It demonstrates that the disease classification performance is not positive to the number of lesion details. The underlying reason is that the contextual information is diluted in numerous detailed lesions.
Figure 6
3.2.3 Effect of ranking loss
To explore the impact of the ranking loss on classification results, we remove the ranking loss and only retain the cross-entropy loss to optimize the parameters of the CALP-CNN model. The best F1-score in 60 epochs training is 91.30%, which is 0.66% lower than the original model. The introduction of ranking loss could assist the two modules (COLM and LPPM) in localizing more discriminative regions.
3.3 Results of similar diseases identification
In practice, some of the diseases of strawberries perform similar visual appearance and contextual information, which could result in false identification among similar diseases. In order to evaluate the effectiveness of the proposed CALP-CNN for distinguishing these similar diseases, two kinds of similar strawberry diseases are chosen in the SCDD for experiments, including (1) the diseases at early stage, (2) the diseases occurring on fruits (e.g., gray mold, powdery mildew, anthracnose). We generate two sub-datasets corresponding to the two kinds of similar strawberry diseases. The disease samples from the two sub-datasets are shown in Figure 7.
Figure 7
The validation results of the trained CALP-CNN and the ResNet-50 on the two sub-datasets are recorded in Table 5. Both of the methods do not achieve the ideal identification performance. However, our CALP-CNN outperforms the ResNet-50 by 5.85% on disease at early stage dataset and 6.73% on disease on fruit dataset, respectively. Overall, the results suggest that the identification of similar strawberry diseases is challenging. While the discriminative lesion detail features provide helpful information to improve the identification performance.
Table 5
| Dataset | Amount/Categories | ResNet-50 | CALP-CNN |
|---|---|---|---|
| early stage | 324/10 | 59.87 | 65.72 |
| on fruit | 79/3 | 69.30 | 76.03 |
The performance of the CALP-CNN and the ResNet-50 on the similar disease datasets.
3.4 Qualitative evaluation of lesion localization performance
Because most of the strawberry datasets (including the SCDD) are image-level annotations. It is difficult to quantitatively evaluate the location accuracy of the main lesion object and the lesion details at the pixel-level. Here, we follow the study of () to conduct a qualitative evaluation to evaluate the accuracy of the main lesion object and lesion detail detection. We randomly pick out 3 groups of diseased images from the testing set for each strawberry disease and visualize the identification results of the lesions. The experimental results are shown in Figure 8. In Figure 8, the first column of each group is the input image, and the subsequent two columns are the location results of the main lesion object and lesion details of the image, respectively. Note that the images of lesion detail have been amplified to the same size as their input images. Based on the results of the main lesion objects, we can observe that the main lesion objects are all identified in the predicted bounding boxes of the COLM (group 1: 11/11, group 2: 11/11, group 3: 11/11). Furthermore, the predicted boxes contain contextual information by persevering the local background of the main lesion objects. In addition, most lesion details of the diseases can also be predicted by the LPPM (group 1: 54/55, group 2: 52/55, group 3: 55/55). In our experiments, the false predicted lesion areas occur in the images which have only one lesion area and the size of the lesion is relatively small (e.g., line 7, column 3 of group 2).
Figure 8
4 Discussions and conclusions
Existing methods for crop disease identification in the field are not sufficiently accurate because of their poor ability to eliminate the interference from the background and extract discriminative features among similar diseases. Detecting and segmenting the lesion region from the disease image is a simple yet effective way to reduce the influence of the complex background. Meanwhile, learning discriminative features from the lesion details is beneficial for the identification of similar diseases. The CNN-based semantic segmentation methods can effectively segment the lesion regions from the complex background. Hence, recent studies use semantic segmentation networks to segment lesion regions from the background as the first step of their models (; ). The segmentation performance of the networks highly relies on the amount of pixel-level annotated data. The pixel-level annotation is time-consuming, laborious and expensive, which restricts the applications of CNN-based segmentation methods. Besides, many studies have shown that the CNNs can localize discriminative regions from the input image (; ; ; ). However, not all the located regions are useful for disease identification. The regions, which are activated by the complicated background, are adverse for disease identification (). Therefore, it is necessary to filter out the most useful region from the located regions. The identification of similar diseases is also a challenging task. Because the discriminative details between the similar diseases are too subtle to be well-represented by the CNNs. Data augmentation technologies can increase the differences among similar diseases. Nevertheless, the increment is not obvious (). In addition, a suitable augmentation strategy is not straightforward and requires trial and error. Hence, data augmentation technologies are not an appropriate solution for similar disease identification. Fortunately, there are many similarities between crop similar disease identification and FGIR. The FGIR focuses on how to effectively represent the discriminative features between the subordinate classes (). Therefore, the discriminative region localization and feature representation methods in FGIR can be extended to crop similar disease identification.
In this paper, we cite the field strawberry disease identification as our study object and explore innovative methods to address the challenges caused by the complex background and similar diseases. First, we enhance the ability of the CNN backbone to localize discriminative regions through a new class-attention-based mechanism (i.e., class response map). Second, we construct the COLM based on the flood-fill algorithm to filter out the most useful lesion region from the complex background. Third, we raise a new lesion part proposal method (i.e., the LPPM) to propose the discriminative lesion details based on the RPA. The COLM and LPPM are connected in series to form a Class-Attention-based Lesion Proposal Convolutional Neural Network (CALP-CNN), which can simultaneously address the challenges caused by complex background and similar diseases in field disease identification.
A series of experiments are conducted on the constructed field strawberry common disease dataset to testify the effectiveness of the CALP-CNN in eliminating the interference from the complicated background and distinguishing similar strawberry diseases. The classification result on F1-score reaches 91.96%, which is greatly higher than other methods, showing that the proposed model outperforms other state-of-the-art methods in the view of field strawberry disease identification. In addition, the ablation results on F1-score drop to 87.94% and 88.42%, respectively, when the COLM and LPPM branches in the CALP-CNN are removed. It indicates that both background feature elimination and discriminative lesion detail feature representation are indispensable for field disease identification.
Statements
Data availability statement
The original contributions presented in the study are included in the article/supplementary material. Further inquiries can be directed to the corresponding authors.
Author contributions
XH, RW, JD, and TX conceived the idea and designed the network. XH, LJ, and YH contributed to collecting the dataset. XH wrote the code, validated the method, and wrote the paper. TX, JD and LJ revised the paper. All authors contributed to the article and approved the submitted version.
Funding
This work was supported by the National Key Research and Development Program of China-Intergovernmental International Scientific and Technological Innovation Cooperation (2019YFE0125700).
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
1
ArsenovicM.KaranovicM.SladojevicS.AnderlaA.StefanovicD. (2019). Solving current limitations of deep learning based approaches for plant disease detection. Symmetry11, 939–960. doi: 10.3390/sym11070939
2
BarbedoJ. G. (2018). Factors influencing the use of deep learning for plant disease recognition. Biosyst. Eng.172, 84–91. doi: 10.1016/j.biosystemseng.2018.05.013
3
ChenL.-C.ZhuY.PapandreouG.SchroffF.AdamH. (2018). “Encoder-decoder with atrous separable convolution for semantic image segmentation,” in Proceedings of the European Conference on Computer Vision (ECCV), 801–818. doi: 10.48550/arXiv.1802.02611
4
CruzA.AmpatzidisY.PierroR.MaterazziA.PanattoniA.De BellisL.et al. (2019). Detection of grapevine yellows symptoms in vitis vinifera l. with artificial intelligence. Comput. Electron. Agric.157, 63–76. doi: 10.1016/j.compag.2018.12.028
5
DabkowskiP.GalY. (2017). “Real time image saliency for black box classifiers,” in Proceedings of the 31st International Conference on Neural Information Processing Systems, Vol. NIPS’17. 6970–6979 (Curran Associates Inc: Red Hook, NY, USA). doi: 10.48550/arXiv.1705.07857
6
DingY.ZhouY.ZhuY.YeQ.JiaoJ. (2019). “Selective sparse sampling for fine-grained image recognition,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (IEEE). 6599–6608. doi: 10.1109/ICCV.2019.00670
7
DwivediP.KumarS.VijhS.ChaturvediY. (2021). “Study of machine learning techniques for plant disease recognition in agriculture,” in 2021 11th International Conference on Cloud Computing, Data Science Engineering (Confluence) (IEEE). doi: 10.1109/Confluence51648.2021.9377186
8
FerentinosK. P. (2018). Deep learning models for plant disease detection and diagnosis. Comput. Electron. Agric.145, 311–318. doi: 10.1016/j.compag.2018.01.009
9
FuJ.ZhengH.MeiT. (2017). “Look closer to see better: Recurrent attention convolutional neural network for fine-grained image recognition,” in 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (Los Alamitos, CA, USA: IEEE Computer Society), 4476–4484. doi: 10.1109/CVPR.2017.476
10
HannumS. M. (2004). Potential impact of strawberries on human health: A review of the science. Crit. Rev. Food Sci. Nutr.44, 1–17. doi: 10.1080/10408690490263756
11
HeK.ZhangX.RenS.SunJ. (2016). “Deep residual learning for image recognition,” in 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (IEEE). 770–778. doi: 10.1109/CVPR.2016.90
12
HuangK. Y. (2007). Application of artificial neural network for detecting phalaenopsis seedling diseases using color and texture features. Comput. Electron. Agric.57, 3–11. doi: 10.1016/j.compag.2007.01.015
13
HuG.WeiK.ZhangY.BaoW.LiangD. (2021). Estimation of tea leaf blight severity in natural scene images. Precis. Agric.22, 1239–1262. doi: 10.1007/s11119-020-09782-8
14
IqbalM.JamshaidM.ZahidM. A.AndreassonE.VetukuriR.StenbergJ. (2021). Biological control of strawberry crown rot, root rot and grey mould by the beneficial fungus aureobasidium pullulans. BioControl66, 535–545. doi: 10.1007/s10526-021-10083-w
15
IqbalZ.KhanM. A.SharifM.ShahJ. H.ur Rehman,. M. H.JavedK. (2018). An automated detection and classification of citrus plant diseases using image processing techniques: A review. Comput. Electron. Agric.153, 12–32. doi: 10.1016/j.compag.2018.07.032
16
JohannesA.PiconA.Alvarez-GilaA.EchazarraJ.Rodriguez-VaamondeS.NavajasA. D.et al. (2017). Automatic plant disease diagnosis using mobile capture devices, applied on a wheat use case. Comput. Electron. Agric.138, 200–209. doi: 10.1016/j.compag.2017.04.013
17
KaurI.AggarwalG.VermaA. (2016). Detection and classification of disease affected region of plant leaves using image processing technique. Indian J. Sci. Technol.9, 1–13. doi: 10.17485/ijst/2016/v9i48/104765
18
KimD. G.BurksT. F.QinJ.BulanonD. M. (2009). Classification of grapefruit peel diseases using color texture feature analysis. Int. J. Agric. Biol. Eng.2, 41–50. doi: 10.3965/j.issn.1934-6344.2009.03.041-050
19
KrizhevskyA.SutskeverI.HintonG. E. (2012). “Imagenet classification with deep convolutional neural networks,” in Advances in neural information processing systems, vol. 25 . Eds. PereiraF.BurgesC.BottouL.WeinbergerK. (Curran Associates, Inc). doi: 10.1145/3065386
20
LiangQ.XiangS.HuY.CoppolaG.ZhangD.SunW. (2019). Pd2se-net: Computer-assisted plant disease diagnosis and severity estimation network. Comput. Electron. Agric.157, 518–529. doi: 10.1016/j.compag.2019.01.034
21
MajiS.RahtuE.KannalaJ.BlaschkoM. B.VedaldiA. (2013). Fine-grained visual classification of aircraft. ArXiv. doi: 10.48550/arXiv.1306.5151
22
MohantyS. P.HughesD. P.SalathéM. (2016). Using deep learning for image-based plant disease detection. Front. Plant Sci.7. doi: 10.3389/fpls.2016.01419
23
NgugiL. C.AbdelwahabM.Abo-ZahhadM. (2020). Tomato leaf segmentation algorithms for mobile phone applications using deep learning. Comput. Electron. Agric.178, 105788. doi: 10.1016/j.compag.2020.105788
24
PaszkeA.GrossS.MassaF.LererA.BradburyJ.ChananG.et al. (2019). “Pytorch: An imperative style, high-performance deep learning library,” in Advances in neural information processing systems, vol. 32 . Eds. WallachH.LarochelleH.BeygelzimerA.Alché-BucF. D.FoxE.GarnettR. (Curran Associates, Inc). doi: 10.48550/arXiv.1912.01703
25
PiconA.Alvarez-GilaA.SeitzM.Ortiz-BarredoA.EchazarraJ.JohannesA. (2019). Deep convolutional neural networks for mobile capture device-based crop disease classification in the wild. Comput. Electron. Agric.161, 280–290. doi: 10.1016/j.compag.2018.04.002. BigData and DSS in Agriculture.
26
RecasensA.KellnhoferP.StentS.MatusikW.TorralbaA. (2018). “Learning to zoom: a saliency-based sampling layer for neural networks,” in Proceedings of the European Conference on Computer Vision (ECCV) (Springer International Publishing), 51–66. doi: 10.1007/978-3-030-01240-3\s\do5(4
27
RenS.HeK.GirshickR.SunJ. (2015). “Faster r-cnn: Towards real-time object detection with region proposal networks,” in Advances in neural information processing systems, vol. 28 . Eds. CortesC.LawrenceN.LeeD.SugiyamaM.GarnettR. (Curran Associates, Inc). doi: 10.1109/TPAMI.2016.2577031
28
RevathiP. B.HemalathaM. (2014). Cotton leaf spot diseases detection utilizing feature selection with skew divergence method. Int. J. Sci. Eng. Technol.3, 22–30. Available at: https://www.ijset.com/publication/v3/005.pdf.
29
RonnebergerO.FischerP.BroxT. (2015). U-Net: Convolutional networks for biomedical image segmentation (Springer International Publishing), 234–241. doi: 10.1007/978-3-319-24574-4\s\do5(2)8
30
SankaranS.MishraA.EhsaniR.DavisC. (2010). A review of advanced techniques for detecting plant diseases. Comput. Electron. Agric.72, 1–13. doi: 10.1016/j.compag.2010.02.007
31
SelvarajuR. R.CogswellM.DasA.VedantamR.ParikhD.BatraD. (2017). “Grad-cam: Visual explanations from deep networks via gradient-based localization,” in 2017 IEEE International Conference on Computer Vision (ICCV) (IEEE). 618–626. doi: 10.1109/ICCV.2017.74
32
Srdjan.S.MarkoA.AnderlaA.Dubravko,.u.StefanovicD. (2016). Deep neural networks based recognition of plant diseases by leaf image classification. Comput. Intell. Neurosci3289801. doi: 10.1155/2016/3289801
33
SzegedyC.LiuW.JiaY.SermanetP.ReedS.AnguelovD.et al. (2015). “Going deeper with convolutions,” in 2015 IEEE Conference on Computer Vision and Pattern Recognition (IEEE), 1–9. doi: 10.1109/CVPR.2015.7298594
34
TooE. C.YujianL.NjukiS.YingchunL. (2019). A comparative study of fine-tuning deep learning models for plant disease identification. Comput. Electron. Agric.161, 272–279. doi: 10.1016/j.compag.2018.03.032. BigData and DSS in Agriculture.
35
WangZ.DiS.QiP.XuH.ZhaoH.WangX. (2021b). Dissipation, accumulation and risk assessment of fungicides after repeated spraying on greenhouse strawberry. Sci. Total Environ.758, 144–153. doi: 10.1016/j.scitotenv.2020.144067
36
WangC.DuP.WuH.LiJ.ZhaoC.ZhuH. (2021a). A cucumber leaf disease severity classification method based on the fusion of deeplabv3+ and u-net. Comput. Electron. Agric.189, 106373. doi: 10.1016/j.compag.2021.106373
37
WeiX.-S.LuoJ.-H.WuJ.ZhouZ.-H. (2017). Selective convolutional descriptor aggregation for fine-grained image retrieval. IEEE Trans. Image Process.26, 2868–2881. doi: 10.1109/TIP.2017.2688133
38
WelinderP.BransonS.MitaT.WahC.PeronaP. (2010). Caltech-Ucsd birds 200 (california institute of technology). Available at: https://authors.library.caltech.edu/27468/1/WelinderEtal10_CUB-200.pdf.
39
YangG. F.YangY.Zi-KangH. E.ZhangX. Y.YongH. E. (2022). A rapid, low-cost deep learning system to classify strawberry disease based on cloud service. J. Of Integr. Agric.21, 460–473. doi: 10.1016/S2095-3119(21)63604-3
40
ZeilerM. D.FergusR. (2014). “Visualizing and understanding convolutional networks,” in Computer Vision – ECCV 2014 (Cham: Springer International Publishing), 818–833. doi: 10.1007/978-3-319-10590-1\s\do5(5)3
41
ZhangF.LiM.ZhaiG.LiuY. (2021). “Multi-branch and multi-scale attention learning for fine-grained visual categorization,” in International Conference on Multimedia Modeling. 136–147 (Springer). doi: 10.48550/arXiv.2003.09150
42
ZhaoS.LiuJ.WuS. (2022). Multiple disease detection method for greenhouse-cultivated strawberry based on multiscale feature fusion faster r-cnn. Comput. Electron. Agric 199, 107176. doi: 10.1016/j.compag.2022.107176
43
ZhengH.FuJ.MeiT.LuoJ. (2017). “Learning multi-attention convolutional neural network for fine-grained image recognition,” in 2017 IEEE International Conference on Computer Vision (ICCV) (IEEE), 5219–5227. doi: 10.1109/ICCV.2017.557
44
ZhengH.FuJ.ZhaZ.-J.LuoJ. (2019). “Looking for the devil in the details: Learning trilinear attention sampling network for fine-grained image recognition,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (IEEE), doi: 10.1109/CVPR.2019.00515
45
ZhouB.KhoslaA.LapedrizaA.OlivaA.TorralbaA. (2016). “Learning deep features for discriminative localization,” in 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) (IEEE), 2921–2929. doi: 10.1109/CVPR.2016.319
Summary
Keywords
convolutional neural network, strawberry disease identification, complex background, similar diseases, class response map, main lesion object, lesion details
Citation
Hu X, Wang R, Du J, Hu Y, Jiao L and Xu T (2023) Class-attention-based lesion proposal convolutional neural network for strawberry diseases identification. Front. Plant Sci. 14:1091600. doi: 10.3389/fpls.2023.1091600
Received
07 November 2022
Accepted
03 January 2023
Published
26 January 2023
Volume
14 - 2023
Edited by
Baohua Zhang, Nanjing Agricultural University, China
Reviewed by
Sashuang Sun, Zhejiang University, China; Chu Zhang, Huzhou University, China; Changmiao Wang, The Chinese University of Hong Kong, Shenzhen, China
Updates
Copyright
© 2023 Hu, Wang, Du, Hu, Jiao and Xu.
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: Rujing Wang, rjwang@iim.ac.cn; Taosheng Xu, taosheng.x@gmail.com
This article was submitted to Technical Advances in Plant Science, a section of the journal Frontiers in Plant Science
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.