| Literature DB >> 35685005 |
Lili Fu1, Shijun Li2, Yu Sun1,3,4,5, Ye Mu1,3,4,5, Tianli Hu1,3,4,5, He Gong1,3,4,5.
Abstract
As a widely consumed fruit worldwide, it is extremely important to prevent and control disease in apple trees. In this research, we designed convolutional neural networks (CNNs) for five diseases that affect apple tree leaves based on the AlexNet model. First, the coarse-grained features of the disease are extracted in the model using dilated convolution, which helps to maintain a large receptive field while reducing the number of parameters. The parallel convolution module is added to extract leaf disease features at multiple scales. Subsequently, the series 3 × 3 convolutions shortcut connection allows the model to deal with additional nonlinearities. Further, the attention mechanism is added to all aggregated output modules to better fit channel features and reduce the impact of a complex background on the model performance. Finally, the two fully connected layers are replaced by global pooling to reduce the number of model parameters, to ensure that the features are not lost. The final recognition accuracy of the model is 97.36%, and the size of the model is 5.87 MB. In comparison with five other models, our model design is reasonable and has good robustness; further, the results show that the proposed model is lightweight and can identify apple leaf diseases with high accuracy.Entities:
Keywords: apple leaf disease; attention; cavity convolution; lightweight; multi-scale
Year: 2022 PMID: 35685005 PMCID: PMC9171387 DOI: 10.3389/fpls.2022.831219
Source DB: PubMed Journal: Front Plant Sci ISSN: 1664-462X Impact factor: 6.627
Apple leaf disease classes and the amount of data in different contexts.
| Class | Image background | Number of images | Total |
| Alternaria blotch | Simple | 1,755 | 5,343 |
| Complex | 3,588 | ||
| Brown spot | Simple | 5,655 | 5,655 |
| Complex | 0 | ||
| Gray spot | Simple | 2,288 | 4,810 |
| Complex | 2,522 | ||
| Mosaic | Simple | 2,795 | 4,875 |
| Complex | 2,080 | ||
| Rust | Simple | 5,473 | 5,681 |
| Complex | 208 |
FIGURE 1Disease types and selected image enhancement methods: (A) Alternaria blotch, (B) brown spot, (C) gray spot, (D) mosaic, (E) rust, (F) original, (G) color dithering, (H) mirror flip, (I) 270° rotation, and (J) 90° rotation.
FIGURE 2Sketch of the AlexNet model structure.
FIGURE 3Dilated convolution.
FIGURE 4BasicBlock + SE module.
FIGURE 5Apple leaf disease identification model.
Table of module parameters in our model.
| Layer | Size | Output | |
| Input | 224 × 224 | ||
| Dilated convolution | 13 × 13 | 96 × 109 × 109 | |
| Max pooling | 3 × 3 | 96 × 28 × 28 | |
| Multi-scale | 1 × 1 | 64 × 28 × 28 | |
| 1 × 1 | 3 × 3 | 128 × 28 × 28 | |
| 1 × 1 | 5 × 5 | 32 × 28 × 28 | |
| 1 × 1 | 7 × 7 | 32 × 28 × 28 | |
| SE module | (256, 16) | 256 × 28 × 28 | |
| Max pooling | 3 × 3 | 256 × 14 × 14 | |
| BasicBlock | 3 × 3 | 256 × 14 × 14 | |
| 3 × 3 | 256 × 14 × 14 | ||
| SE module | (256, 16) | 256 × 14 × 14 | |
| Global pooling | |||
| Softmax | |||
Hyperparameter settings.
| Hyperparameters | Values |
| Classes | 5 |
| Batch size | 32 |
| Epochs | 40 |
| Optimizer | Adam |
| Learning rate | 0.001 |
| Momentum | 0.9 |
Comparison of the parameters of each module: (1) add global pooling, (2) add dilated convolution, (3) add multi-scale convolution, and (4) use shortcut connection.
| Model | Global pooling | Dilated convolution | Multi-scale | Shortcut connection | SE | Total parameters | Parameter size |
| AlexNet | 58,301,829 | 222.4 | |||||
| (1) | √ | 3,812,677 | 14.54 | ||||
| (2) | √ | √ | 3,784,933 | 14.44 | |||
| (3) | √ | √ | √ | 3,337,829 | 12.37 | ||
| (4) | √ | √ | √ | √ | 2,336,101 | 8.91 | |
| Ours | √ | √ | √ | √ | √ | 1,535,579 | 5.86 |
FIGURE 6Our model graph: (A) accuracy and (B) loss.
FIGURE 7Training and validation results of each model: (A) training accuracy, (B) validation accuracy, (C) training loss, and (D) validation loss.
Performance comparison of each model.
| Architecture | Validation accuracy (%) | Parameter size (MB) | FLOPs | Time |
| AlexNet | 88.05 | 222.4 | 711.5M | 0.2560 |
| ResNet50 | 95.66 | 89.72 | 4.12G | 0.2310 |
| GoogLeNet | 97.25 | 22.81 | 2G | 0.2088 |
| ShuffleNet V2 | 81.13 | 5.26 | 591.8M | 0.3068 |
| Xception | 92.75 | 20.82 | 4.58G | 0.3485 |
| MobileNet V3 | 80.64 | 2.68 | 262.12M | 0.2270 |
| Ours | 97.36 | 5.87 | 2.553G | 0.2229 |
FIGURE 8Confusion matrix of our model.
FIGURE 9Heat map of our model: the disease area of apple leaves is shown with a certain brightness.