欢迎您访问《智慧农业(中英文)》官方网站! English

Smart Agriculture ›› 2026, Vol. 8 ›› Issue (1): 28-39.doi: 10.12133/j.smartag.SA202507043

• 专题--农业病虫害智能识别与诊断 • 上一篇    下一篇

基于改进MobileViT模型的水稻病害识别算法与系统研发

刘晓君1,2,3(), 吴茜1,2,3, 孙传亮2,3, 戚超2,3, 张谷丰2, 雷添杰4, 梁万杰1,2,3()   

  1. 1. 南京信息工程大学 生态与应用气象学院,江苏 南京 210044,中国
    2. 江苏省农业科学院农业信息研究所,江苏 南京 210014,中国
    3. 生物育种钟山实验室,江苏 南京 210014,中国
    4. 中国农业科学院农业环境与可持续发展研究所,北京 100081,中国
  • 收稿日期:2025-07-30 出版日期:2026-01-30
  • 基金项目:
    国家重点研发计划项目(2023YFD2300300); 江苏省农业科技自主创新资金(ZSBBL-KY2023-01)
  • 作者简介:

    刘晓君,硕士研究生,研究方向为作物表型算法研究。E-mail:

  • 通信作者:
    梁万杰,博士,副研究员,研究方向为灾害防控、智慧农业关键技术。E-mail:

Rice Disease Identification Method Based on Improved MobileViT Model and System Development

LIU Xiaojun1,2,3(), WU Qian1,2,3, SUN Chuanliang2,3, QI Chao2,3, ZHANG Gufeng2, LEI Tianjie4, LIANG Wanjie1,2,3()   

  1. 1. School of Ecology and Applied Meteorology, Nanjing University of Information Science &Technology, Nanjing 210044, China
    2. Institute of Agricultural Information, Jiangsu Academy of Agricultural Sciences, Nanjing 210014, China
    3. Zhongshan Biological Breeding Laboratory, Nanjing 210014, China
    4. Institute of Environment and Sustainable Development in Agriculture, Chinese Academy of Agricultural Sciences, Beijing 100081, China
  • Received:2025-07-30 Online:2026-01-30
  • Foundation items:National Key R&D Program(2023YFD2300300); Jiangsu Agricultural Science and Technology Innovation Fund(ZSBBL-KY2023-01)
  • About author:

    LIU Xiaojun, E-mail:

  • Corresponding author:
    LIANG Wanjie, E-mail: wanjie.liang @163.com

摘要:

[目的/意义] 水稻受涝害、高温等非生物胁迫时,植株抗性下降,极易发生病害。准确、快速识别水稻病害对优化生产管理、确保粮食安全具有重大意义。针对大田水稻病害图像背景复杂、干扰信息多、推理速度慢等问题,提出一种基于改进MobileViT模型的水稻病害识别方法。 [方法] 通过优化卷积层、重构 Transformer、集成高效通道注意力模块改进MobileViT模型,构建水稻病害识别模型。结合水稻病害识别模型、云计算、智能手机、知识图谱等研发水稻病害智能识别诊断系统。以自采病害图像为主、公开数据为辅,通过图像预处理、数据增强等构建水稻病害数据集;利用数据集对模型进行训练、测试、交叉验证、消融试验及优化等。 [结果和讨论] 改进MobileViT模型对水稻白叶枯病、稻曲病、叶瘟病、恶苗病、破口病、枯心病以及穗瘟病识别精度达到97.25%,比MobileViT模型提高2.3个百分点,较ConvNeXt、GhostNetV2、TinyViT、Swin-Transformer分别提高6.88、8.72、0.92、2.3个百分点,同时推理速度达到139.17 f/s,模型大小6.02 MB,可满足田间实时诊断需求。基于微信小程序、Flask框架开发的水稻病害智能识别诊断系统,可利用识别模型得到识别结果,结合水稻病害知识图谱,诊断病害并生成诊断结果和防控措施。 [结论] 水稻病害识别诊断模型和智能系统可有效提高水稻病害、涝害、高温、干旱等灾害防控效率,为水稻生产提质增效、数字化、智能化提供重要技术支撑。

关键词: 水稻病害, 作物表型, MobileViT模型, 高效通道注意力, 涝害防控

Abstract:

[Objective] Under abiotic stress conditions, rice plants become fragile and susceptible to disease infection. Accurate diagnosis and scientific prevention and control strategies for rice diseases are crucial for the prevention and control of rice diseases, even disasters such as blooding and high temperatures. However, under field natural environmental conditions, the identification of rice diseases is a challenging problem. There are various issues such as complex backgrounds, illumination changes, occlusion, which make it extremely difficult to comprehensively obtain disease information, thus significantly increasing the difficulty of disease identification. This study aims to develop an efficient rice disease recognition model by integrating the efficient channel attention (ECA) mechanism with the MobileViT model, enhancing the accuracy of rice disease identification in the field. Additionally, the rice disease knowledge graph was combined to achieve precise diagnosis and generate scientifically grounded control prescriptions for effective disease management. [Methods] A total of 1 304 raw images of rice diseases were collected from different rice disease investigation and long-term monitoring points in Jiangsu province, at different periods of time, using mobile phones and cameras. 167 disease images from the rice leaf disease image samples dataset were used to supplement the dataset. The raw images were accurately classified and preprocessed under the guidance of plant protection experts. A dataset containing 1 471 original images was constructed that includes seven types of rice diseases: bacterial leaf blight, false smut, leaf blast, bakanae disease, heart rot, grain discoloration, and panicle blast. The dataset was partitioned into training, validation, and test sets following a 7:1.5:1.5 ratio. Data augmentation techniques were applied exclusively to the training and validation sets to enhance sample diversity, while the test set remained unaugmented to preserve its independence for unbiased model evaluation. Post-augmentation, the total image count increased to 7 735. A novel rice disease recognition model was established by integrating the efficient channel attention (ECA) module into the MobileViT model. The recognition model architecture was optimized by improving convolutional structures, reconstructing Transformer encoding blocks, replacing activation function using SiLU. To verify the performance of the model, cross validation and ablation experiments were conducted. After establishing a highly accurate recognition model, the recognition model was combined with the rice disease knowledge graph to achieve accurate diagnosis of rice diseases and generate scientific prevention and control strategies. Finally, an intelligent rice disease diagnostic system was developed using the Flask framework and cloud computing technologies. [Results and Discussions] The results of the ablation study revealed that the model, which combined convolutional layer optimization, Transformer block reconstruction, and the integration of the ECA module, got outstanding performance.The overall precision, F1-Score and recall rate achieved 97.27%, 97.32%, and 97.46%, respectively. In terms of accuracy, the improved model increased to 97.25%, representing an improvement of 2.3% over the original model (94.95%). To further verify the effectiveness of the improved model, various mainstream models such as Swin Transformer, TinyVit, and ConvNeXt were compared with the proposed model.The experimental results showed that the improved model outperformed the suboptimal model (TinyVit) by 0.92, 1.43, 0.95, 1.32 percent points in overall accuracy, F1-Score and recall rate, respectively. Moreover, the improved model showed significant advantages in terms of floating-point operations, model size, and parameter count, with a parameter count of only 6.02 MB, making it more suitable for deployment on hardware-constrained devices. Analysis of the confusion matrix and heatmap visualizations revealed that the enhanced model achieved recognition accuracy improvements of 0.6, 0.3, 0.3, and 0.6 percentage points for bacterial leaf blight, heart rot, grain discoloration, and panicle blast, respectively. The integrated system, combining this model with the knowledge graph, demonstrated significantly enhanced accuracy in disease identification and diagnosis. Meanwhile, the disease prevention and control strategies were generated to guide rice disease prevention and control. During field deployment, the rice disease diagnosis system achieved an accuracy rate as high as 98%, with an average response time of 181 ms, demonstrating reliable real-time performance and stability. [Conclusions] By integrating ECA module and reconstructing Transformer encoding blocks, the MobileViT model achieved noticeable improvements in precision, recall and F1 score, while effectively reducing computational costs, leading to more efficient recognition capabilities of rice diseases in complex field environments. The application of the rice disease intelligent diagnosis system revealed that the system could achieve accurate rice disease diagnosis results, and generate disease prevention and control strategies for guide rice disease prevention and control. This method could effectively improve the prevention and control efficiency of rice diseases, providing technical support for improving the quality, efficiency, digitization and intelligence of rice production.

Key words: rice disease, crop phenotype, MobileViT, efficient channel attention, flooding disaster prevention and control

中图分类号: