基于云边协同与轻量化AI的智慧农业多平台管控系统设计

Design of a Multi-platform Control System for Smart Agriculture Based on Cloud-edge Collaboration and Lightweight AI

  • 摘要: 针对智慧农业管控系统在农田弱网环境下云端指令中断导致生产失控,以及传统深度学习模型参数量大难以满足边缘端实时推理需求等问题,提出一种基于云边协同与轻量化AI(Artificial Intelligence)的智慧农业多平台管控系统。在云端服务层,采用LightGBM算法构建环境时序预测模型,并引入融入卷积块注意力模块(Convolutional Block Attention Module,CBAM)的轻量化YOLOv8n目标检测模型;通过通道剪枝将权重压缩至6.8MB,在保持89.2%平均检测精度的同时显著降低计算开销。在边缘控制层,设计基于状态机的双模切换机制与阈值镜像缓存策略,实现断网状态下边缘网关的逻辑自治;结合IAP断点续传协议,保障固件远程更新的可靠性。在应用端,基于WebGL与多层次细节(Levels of Detail,LOD)优化策略构建三维可视化管控平台,实现物理大棚状态的数字孪生映射。实验结果表明,该系统在断网后2s内即可触发边缘自治,固件更新成功率达99%以上,改进的YOLO模型检测精度较原生YOLOv8n模型提升3.0%,单帧推理耗时仅为20.5ms,满足实时监控要求,具有较高的工程落地与推广价值。

     

    Abstract: To address issues such as production loss of control due to cloud command interruptions in weak-network environments for smart agricultural management systems, as well as the difficulty of traditional deep learning models with large parameter sizes in meeting real-time inference demands at the edge, a smart agricultural multi-platform management system based on cloud-edge collaboration and lightweight AI is proposed.In the cloud service layer, an environmental time-series prediction model is constructed using the LightGBM algorithm, and a lightweight YOLOv8n object detection model incorporating the convolutional block attention module (CBAM) is introduced.Channel pruning reduces weights to 6.8MB while maintaining an average detection accuracy of 89.2%, significantly lowering computational overhead.In the edge control layer, a state-machine-based dual-mode switching mechanism and a threshold mirroring caching strategy are designed to enable logical autonomy of edge gateways under network disconnections.Combined with the IAP breakpoint-resume protocol, the system ensures the reliability of firmware remote updates.At the application level, a three-dimensional visualization management platform is built using WebGL and levels of detail (LOD) optimization strategies to achieve digital twin mapping of physical greenhouse states.Experimental results demonstrate that the system can trigger edge autonomy within 2 seconds after network disconnection, achieving a firmware update success rate of over 99%.The improved YOLO model achieves a 3.0% increase in detection accuracy compared to the native YOLOv8n model, with a single-frame inference time of only 20.5ms, meeting real-time monitoring requirements.The system exhibits high practical deployment and scalability value.

     

/

返回文章
返回