A Copy Paste and Semantic Segmentation-Based Approach for the Classification and Assessment of Significant Rice Diseases
<p>Sample images of rice diseases, (<b>a</b>) dataset 1—bacterial blight, (<b>b</b>) dataset 1—blast, (<b>c</b>) dataset 1—brown spot, (<b>d</b>) dataset 2—bacterial blight, (<b>e</b>) dataset 2—brown spot, (<b>f</b>) dataset 3—bacterial blight, (<b>g</b>) dataset 3—blast, (<b>h</b>) dataset 3—brown spot.</p> "> Figure 2
<p>Sample rice leaf disease image and segmentation label: (<b>a</b>) bacterial blight, (<b>b</b>) blast, (<b>c</b>) brown spot, (<b>d</b>) bacterial blight label, (<b>e</b>) blast label, (<b>f</b>) brown spot label, where orange, mauve, red, blue and black represent rice bacterial blight, blast, brown spot, healthy leaves and background areas, respectively.</p> "> Figure 3
<p>RLDCP data enhancement example: (<b>a</b>) RGB image of the pasted object, (<b>b</b>) RGB image of the copied object, (<b>c</b>) newly synthesised RGB image, (<b>d</b>) mask image of the pasted object, (<b>e</b>) mask image of the copied object, (<b>f</b>) newly synthesised mask image.</p> "> Figure 4
<p>Distribution of five severity levels of three diseases in the rice leaf disease dataset.</p> "> Figure 5
<p>The overall architecture of the RSegformer network.</p> "> Figure 6
<p>MIoU validation curves for different models.</p> "> Figure 7
<p>MIoUs for the three models were validated using 5-fold cross-validation. The dataset was divided into 5 parts, set as data-1 to data-5. fold-i is equal to the experimental results obtained by treating data-i as the validation set and the rest of the data as the training set.</p> "> Figure 8
<p>Example inference results for the validation sets on the three models. The first column represents the real images, the second column represents the real labels, the third column shows the inference results for the DeepLabv3+ network model, the fourth column shows the inference results for the Segformer network model, and the fifth column shows the inference results for the RSegformer network model.</p> "> Figure 9
<p>Confusion matrices for the severity classes of different rice diseases under different network models. The first row is the confusion matrix of the three models for the estimation of the severity of rice bacterial blight disease, the second row is the confusion matrix of the three models for the estimation of the severity of rice blast disease and the third row is the confusion matrix of the three models for the estimation of the severity of brown spot disease.</p> ">
Abstract
:1. Introduction
2. Materials and Methods
2.1. Data
2.1.1. Data Acquisition
2.1.2. Data Annotation
2.1.3. Data Augmentation
- ①
- Select a set of rice leaf disease images and their corresponding mask maps, noted as “org1-image” and “org1-mask”, respectively.
- ②
- A randomly selected set of images and their corresponding mask maps from the same disease dataset are noted as “org2-image” and “org2-mask”, respectively.
- ③
- Use the edge detection operator Canny to obtain the edges of the leaves in “org1-mask” and “org2-mask” and find the minimum outer rectangle based on the edges obtained, then calculate the rotation angle of the minimum external rectangle and and rotate “org2-mask” and “org2-image” by .
- ④
- Key out all the lesioned pixel points according to the RGB difference of “org2-mask”, paste them into the nonbackground area on “org1-mask”, key out the pixel points on the same position of “org2-image” and “org2-mask” and paste them into “org1-image”, thus composing a new “res-image” and the corresponding “res-mask”.
- ⑤
- Random flipping, horizontal flipping and random largescale dithering were used for the synthetic set of rice disease data “res-image” and “res-mask”.
2.1.4. Rice Leaf Disease Severity Label
2.2. Model Architecture
2.2.1. Model Architecture Overview
2.2.2. Encoding Section
2.2.3. Decoding Section
3. Experimental Process
3.1. Realisation Details
3.2. Assessment Indicators
4. Discussion
4.1. Validation of Data Augmentation Methods
4.2. Model Comparison Experiments
4.3. Model Ablation Study
4.4. Comparison of Model Inference Results
4.5. Comparison of Rice Disease Severity Estimates
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Li, H. Research Progress on Acquisition and Processing of Rice Disease Images Based on Computer Vision Technology. J. Phys. Conf. Ser. 2020, 1453, 012160. [Google Scholar] [CrossRef]
- Prajapati, H.B.; Shah, J.P.; Dabhi, V.K. Detection and Classification of Rice Plant Diseases. Intell. Decis. Technol. 2017, 11, 357–373. [Google Scholar] [CrossRef]
- Li, D.; Wang, R.; Xie, C.; Liu, L.; Zhang, J.; Li, R.; Wang, F.; Zhou, M.; Liu, W. A Recognition Method for Rice Plant Diseases and Pests Video Detection Based on Deep Convolutional Neural Network. Sensors 2020, 20, 578. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Mathew, A.; Antony, A.; Mahadeshwar, Y.; Khan, T.; Kulkarni, A. Plant Disease Detection Using GLCM Feature Extractor and Voting Classification Approach. Mater. Today Proc. 2022, 58, 407–415. [Google Scholar] [CrossRef]
- Ali, H.; Lali, M.I.; Nawaz, M.Z.; Sharif, M.; Saleem, B.A. Symptom Based Automated Detection of Citrus Diseases Using Color Histogram and Textural Descriptors. Comput. Electron. Agric. 2017, 138, 92–104. [Google Scholar] [CrossRef]
- Hou, C.; Zhuang, J.; Tang, Y.; He, Y.; Miao, A.; Huang, H.; Luo, S. Recognition of Early Blight and Late Blight Diseases on Potato Leaves Based on Graph Cut Segmentation. J. Agric. Food Res. 2021, 5, 100154. [Google Scholar] [CrossRef]
- Pallathadka, H.; Ravipati, P.; Sekhar Sajja, G.; Phasinam, K.; Kassanuk, T.; Sanchez, D.T.; Prabhu, P. Application of Machine Learning Techniques in Rice Leaf Disease Detection. Mater. Today Proc. 2022, 51, 2277–2280. [Google Scholar] [CrossRef]
- Javidan, S.M.; Banakar, A.; Vakilian, K.A.; Ampatzidis, Y. Diagnosis of Grape Leaf Diseases Using Automatic K-Means Clustering and Machine Learning. Smart Agric. Technol. 2023, 3, 100081. [Google Scholar] [CrossRef]
- Harakannanavar, S.S.; Rudagi, J.M.; Puranikmath, V.I.; Siddiqua, A.; Pramodhini, R. Plant Leaf Disease Detection Using Computer Vision and Machine Learning Algorithms. Glob. Transit. Proc. 2022, 3, 305–310. [Google Scholar] [CrossRef]
- Ahmad, A.; Saraswat, D.; El Gamal, A. A Survey on Using Deep Learning Techniques for Plant Disease Diagnosis and Recommendations for Development of Appropriate Tools. Smart Agric. Technol. 2023, 3, 100083. [Google Scholar] [CrossRef]
- Liu, J.; Wang, X. Plant Diseases and Pests Detection Based on Deep Learning: A Review. Plant Methods 2021, 17, 22. [Google Scholar] [CrossRef]
- Bhagat, S.; Kokare, M.; Haswani, V.; Hambarde, P.; Kamble, R. Eff-UNet++: A Novel Architecture for Plant Leaf Segmentation and Counting. Ecol. Inform. 2022, 68, 101583. [Google Scholar] [CrossRef]
- Hu, G.; Fang, M. Using a Multi-Convolutional Neural Network to Automatically Identify Small-Sample Tea Leaf Diseases. Sustain. Comput. Inform. Syst. 2022, 35, 100696. [Google Scholar] [CrossRef]
- Ghiasi, G.; Cui, Y.; Srinivas, A.; Qian, R.; Lin, T.Y.; Cubuk, E.D.; Le, Q.V.; Zoph, B. Simple Copy-Paste Is a Strong Data Augmentation Method for Instance Segmentation. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 19–25 June 2021; pp. 2917–2927. [Google Scholar] [CrossRef]
- Gonçalves, J.P.; Pinto, F.A.C.; Queiroz, D.M.; Villar, F.M.M.; Barbedo, J.G.A.; del Ponte, E.M. Deep Learning Architectures for Semantic Segmentation and Automatic Estimation of Severity of Foliar Symptoms Caused by Diseases or Pests. Biosyst. Eng. 2021, 210, 129–142. [Google Scholar] [CrossRef]
- Wang, Y.; Wang, H.; Peng, Z. Rice Diseases Detection and Classification Using Attention Based Neural Network and Bayesian Optimization. Expert Syst. Appl. 2021, 178, 114770. [Google Scholar] [CrossRef]
- Tian, Y.; Yang, G.; Wang, Z.; Li, E.; Liang, Z. Instance Segmentation of Apple Flowers Using the Improved Mask R–CNN Model. Biosyst. Eng. 2020, 193, 264–278. [Google Scholar] [CrossRef]
- Li, H.; Li, C.; Li, G.; Chen, L. A Real-Time Table Grape Detection Method Based on Improved YOLOv4-Tiny Network in Complex Background. Biosyst. Eng. 2021, 212, 347–359. [Google Scholar] [CrossRef]
- Ji, M.; Wu, Z. Automatic Detection and Severity Analysis of Grape Black Measles Disease Based on Deep Learning and Fuzzy Logic. Comput. Electron. Agric. 2022, 193, 106718. [Google Scholar] [CrossRef]
- Liang, Q.; Xiang, S.; Hu, Y.; Coppola, G.; Zhang, D.; Sun, W. PD2SE-Net: Computer-Assisted Plant Disease Diagnosis and Severity Estimation Network. Comput. Electron. Agric. 2019, 157, 518–529. [Google Scholar] [CrossRef]
- Prabhakar, M.; Purushothaman, R.; Awasthi, D.P. Deep Learning Based Assessment of Disease Severity for Early Blight in Tomato Crop. Multimed. Tools Appl. 2020, 79, 28773–28784. [Google Scholar] [CrossRef]
- Esgario, J.G.M.; Krohling, R.A.; Ventura, J.A. Deep Learning for Classification and Severity Estimation of Coffee Leaf Biotic Stress. Comput. Electron. Agric. 2020, 169, 105162. [Google Scholar] [CrossRef] [Green Version]
- Chen, S.; Zhang, K.; Zhao, Y.; Sun, Y.; Ban, W.; Chen, Y.; Zhuang, H.; Zhang, X.; Liu, J.; Yang, T. An Approach for Rice Bacterial Leaf Streak Disease Segmentation and Disease Severity Estimation. Agriculture 2021, 11, 420. [Google Scholar] [CrossRef]
- Wang, C.; Du, P.; Wu, H.; Li, J.; Zhao, C.; Zhu, H. A Cucumber Leaf Disease Severity Classification Method Based on the Fusion of DeepLabV3+ and U-Net. Comput. Electron. Agric. 2021, 189, 106373. [Google Scholar] [CrossRef]
- Sethy, P.K.; Barpanda, N.K.; Rath, A.K.; Behera, S.K. Deep Feature Based Rice Leaf Disease Identification Using Support Vector Machine. Comput. Electron. Agric. 2020, 175, 105527. [Google Scholar] [CrossRef]
- Leaf Rice Disease | Kaggle. Available online: https://www.kaggle.com/datasets/tedisetiady/leaf-rice-disease-indonesia (accessed on 7 August 2022).
- Hao, Y.; Liu, Y.; Wu, Z.; Han, L.; Chen, Y.; Chen, G.; Chu, L.; Tang, S.; Yu, Z.; Chen, Z.; et al. EdgeFlow: Achieving Practical Interactive Segmentation with Edge-Guided Flow. In Proceedings of the IEEE International Conference on Computer Vision 2021, Montreal, QC, Canada, 10–17 October 2021; pp. 1551–1560. [Google Scholar] [CrossRef]
- Shelhamer, E.; Long, J.; Darrell, T. Fully Convolutional Networks for Semantic Segmentation. IEEE Trans. Pattern. Anal. Mach. Intell. 2014, 39, 640–651. [Google Scholar] [CrossRef]
- Deng, J.; Dong, W.; Socher, R.; Li, L.-J.; Li, K.; Li, F.-F. ImageNet: A Large-Scale Hierarchical Image Database. In Proceedings of the 2009 IEEE Conference on Computer Vision and Pattern Recognition, Miami, FL, USA, 20–25 June 2009; pp. 248–255. [Google Scholar] [CrossRef] [Green Version]
- Simonyan, K.; Zisserman, A. Very Deep Convolutional Networks for Large-Scale Image Recognition. In Proceedings of the 3rd International Conference on Learning Representations, ICLR 2015—Conference Track Proceedings, San Diego, CA, USA, 7–9 May 2015. [Google Scholar] [CrossRef]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015; pp. 770–778. [Google Scholar] [CrossRef]
- Sandler, M.; Howard, A.; Zhu, M.; Zhmoginov, A.; Chen, L.C. MobileNetV2: Inverted Residuals and Linear Bottlenecks. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 4510–4520. [Google Scholar] [CrossRef]
- Yu, F.; Koltun, V. Multi-Scale Context Aggregation by Dilated Convolutions. In Proceedings of the 4th International Conference on Learning Representations, ICLR 2016—Conference Track Proceedings, San Juan, Puerto Rico, 2–4 May 2016. [Google Scholar] [CrossRef]
- Chen, L.C.; Zhu, Y.; Papandreou, G.; Schroff, F.; Adam, H. Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation. In Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2018; Volume 11211, pp. 833–851. [Google Scholar] [CrossRef]
- The Cross-Attention Mechanism | Download Scientific Diagram. Available online: https://www.researchgate.net/figure/The-cross-attention-mechanism_fig2_350779666 (accessed on 24 October 2022).
- Zhao, H.; Zhang, Y.; Liu, S.; Shi, J.; Loy, C.C.; Lin, D.; Jia, J. PSANet: Point-Wise Spatial Attention Network for Scene Parsing. In Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2018; Volume 11213, pp. 270–286. [Google Scholar] [CrossRef]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention Is All You Need. Adv. Neural Inf. Process. Syst. 2017, 2017, 5999–6009. [Google Scholar] [CrossRef]
- Xie, E.; Wang, W.; Yu, Z.; Anandkumar, A.; Alvarez, J.M.; Luo, P. SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers. Adv. Neural Inf. Process. Syst. 2021, 15, 12077–12090. [Google Scholar] [CrossRef]
- Ren, S.; Zhou, D.; He, S.; Feng, J.; Wang, X. Shunted Self-Attention via Multi-Scale Token Aggregation. arXiv 2021, arXiv:2111.15193. [Google Scholar] [CrossRef]
- Wang, J.; Chen, K.; Xu, R.; Liu, Z.; Loy, C.C.; Lin, D. CARAFE: Content-Aware ReAssembly of FEatures. In Proceedings of the IEEE International Conference on Computer Vision 2019, Seoul, Korea, 27–28 October 2019; pp. 3007–3016. [Google Scholar] [CrossRef]
- Hou, Q.; Zhou, D.; Feng, J. Coordinate Attention for Efficient Mobile Network Design. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 13708–13717. [Google Scholar] [CrossRef]
- Zhao, H.; Shi, J.; Qi, X.; Wang, X.; Jia, J. Pyramid Scene Parsing Network. In Proceedings of the 30th IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, Hawaii, 21–26 July 2016; pp. 6230–6239. [Google Scholar] [CrossRef]
- Sun, K.; Xiao, B.; Liu, D.; Wang, J. Deep High-Resolution Representation Learning for Human Pose Estimation. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition 2019, Long Beach, CA, USA, 15–20 June 2019; pp. 5686–5696. [Google Scholar] [CrossRef]
- Yuan, Y.; Chen, X.; Chen, X.; Wang, J. Segmentation Transformer: Object-Contextual Representations for Semantic Segmentation. arXiv 2019, arXiv:1909.11065. [Google Scholar] [CrossRef]
- Open-Mmlab/Mmsegmentation: OpenMMLab Semantic Segmentation Toolbox and Benchmark. Available online: https://github.com/open-mmlab/mmsegmentation (accessed on 7 August 2022).
Bacterial Blight | Brown Spot | Blast | Total | |
---|---|---|---|---|
Dataset 1 | 48 | 95 | 50 | 193 |
Dataset 2 | 40 | 40 | 0 | 80 |
Dataset 3 | 62 | 15 | 100 | 177 |
Total | 150 | 150 | 150 | 450 |
Stage 1 | Stage 2 | Stage 3 | Stage 4 | |
---|---|---|---|---|
Layer Name | Shunted Transformer Block | Shunted Transformer Block | Shunted Transformer Block | Shunted Transformer Block |
Shunted-Tiny | ||||
PSPNet | HRNet | OCRNet | |
---|---|---|---|
Without augmentation | 77.52% | 78.36% | 79.48% |
Rotate + Noise augmentation | 76.36% | 78.09% | 78.73% |
RLDCP augmentation (once) | 82.05% | 83.64% | 83.60% |
RLDCP augmentation (twice) | 82.99% | 84.70% | 84.52% |
RSegformer | DeepLabv3+ | Segformer-B1 | Segformer-B2 | |
---|---|---|---|---|
MIoU (%)↑ | 85.38 | 83.47 | 83.95 | 84.93 |
IoU of Background (%)↑ | 99.33 | 99.25 | 99.21 | 99.33 |
IoU of Leaf (%)↑ | 92.08 | 90.95 | 90.74 | 91.64 |
IoU of Bacterial blight (%)↑ | 80.91 | 79.21 | 79.47 | 73.65 |
IoU of Blast (%)↑ | 79.96 | 78.73 | 77.68 | 79.65 |
IoU of Brown spot (%)↑ | 74.61 | 69.22 | 72.65 | 80.61 |
Params (M)↓ | 14.36 | 12.47 | 13.74 | 27.48 |
Flops (G)↓ | 26.13 | 54.31 | 15.94 | 62.45 |
Model | MIoU (%) | F-Test | Multiple Comparisons | |
---|---|---|---|---|
() | F | P | ||
RSegformer | 87.56 ± 0.45 | 39.853 | 0.000005 | RSegformer > Segformer |
Segformer | 86.02 ± 0.46 | RSegformer > DeepLabv3+ | ||
DeepLabv3+ | 84.80 ± 0.54 | Segformer > DeepLabv3+ |
Model 1 | Model 2 | Model 3 | Model 4 | RSegformer | |
---|---|---|---|---|---|
MIoU | 83.95% | 84.50% | 84.43% | 85.13% | 85.22% |
Background | 99.21% | 99.27% | 99.26% | 99.31% | 99.35% |
Leaf | 90.74% | 91.20% | 91.43% | 91.61% | 92.15% |
Bacterial blight | 79.47% | 79.31% | 79.65% | 80.16% | 80.46% |
Blast | 77.68% | 78.44% | 78.23% | 79.57% | 79.67% |
Brown spot | 72.65% | 74.29% | 73.60% | 75.03% | 74.50% |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Li, Z.; Chen, P.; Shuai, L.; Wang, M.; Zhang, L.; Wang, Y.; Mu, J. A Copy Paste and Semantic Segmentation-Based Approach for the Classification and Assessment of Significant Rice Diseases. Plants 2022, 11, 3174. https://doi.org/10.3390/plants11223174
Li Z, Chen P, Shuai L, Wang M, Zhang L, Wang Y, Mu J. A Copy Paste and Semantic Segmentation-Based Approach for the Classification and Assessment of Significant Rice Diseases. Plants. 2022; 11(22):3174. https://doi.org/10.3390/plants11223174
Chicago/Turabian StyleLi, Zhiyong, Peng Chen, Luyu Shuai, Mantao Wang, Liang Zhang, Yuchao Wang, and Jiong Mu. 2022. "A Copy Paste and Semantic Segmentation-Based Approach for the Classification and Assessment of Significant Rice Diseases" Plants 11, no. 22: 3174. https://doi.org/10.3390/plants11223174
APA StyleLi, Z., Chen, P., Shuai, L., Wang, M., Zhang, L., Wang, Y., & Mu, J. (2022). A Copy Paste and Semantic Segmentation-Based Approach for the Classification and Assessment of Significant Rice Diseases. Plants, 11(22), 3174. https://doi.org/10.3390/plants11223174