基于改进DeepLabV3+的玉米杂草密度提取方法研究OA
Research on maize weed density extraction method based on improved DeepLabV3+
针对丘陵山区复杂田间环境下玉米杂草视觉特征多变、传统分割模型精度不足且难以兼顾轻量化与实时性的问题,本研究提出一种改进DeepLabV3+语义分割模型,用于实现高精度的杂草识别与密度提取.该方法以轻量化的MobileNetV2网络替换原Xception骨干网络;设计融合通道注意力机制(Squeeze-and-Excitation networks,SE-Net)与自适应激活函数(Meta-ACONC)的SEMA-ASPP模块,替换原始空洞空间金字塔模块(Atrous Spatial Pyramid Pooling,ASPP)中的ReLU激活函数,以增强多尺度特征提取与模型泛化能力;在解码器中引入高效局部注意力机制(Efficient Local Attention,ELA),以优化杂草边缘分割效果;同时,采用交叉熵损失和Dice系数损失的组合策略,有效解决数据集中目标区域和背景区域之间不平衡的问题.试验结果表明:1)改进模型在保持高分割精度的同时显著提升了计算效率,其平均交并比(mIoU)和平均像素精度(mPA)分别为92.72%和95.05%,较原始DeepLabV3+提升3.22和2.95个百分点;2)模型计算量与参数量仅为51.84 GFLOPS和5.89×106,分别是原模型的31.04%与10.77%,在GPU上的推理速度达120.51帧/s;3)与DeepLabV3+、Segformer、PSPNet、U-Net及HRNet等主流模型相比,本模型在保持较高分割精度的同时,具备更低的计算成本和更快的推理速度.基于分割结果进一步采用滑窗扫描算法提取杂草密度,预测值与真实值线性回归的决定系数R2达0.981,验证了模型的可靠性.本模型在精度、效率与轻量化间取得了良好平衡,可为精准农业中的变量喷药提供技术支持.
To address the issues of variable visual features of maize weeds in complex field environments in hilly and mountainous areas,insufficient accuracy of traditional segmentation models,and difficulty in balancing lightweight design and real-time performance,this study proposes an improved DeepLabV3+semantic segmentation model for high-precision weed identification and density extraction.Methodologically,the lightweight MobileNetV2 network replaces the original Xception backbone.A SEMA-ASPP module integrating a channel attention mechanism(Squeeze-and-Excitation Networks,SE-Net)and an adaptive activation function(Meta-ACONC)is designed to replace the ReLU function in the original Atrous Spatial Pyramid Pooling module,aiming to enhance multi-scale feature extraction capability and generalization performance.An Efficient Local Attention(ELA)mechanism is introduced into the decoder to optimize weed edge segmentation.Meanwhile,a combined strategy of cross-entropy loss and Dice coefficient loss is adopted to effectively address the imbalance between target and background regions in the dataset.Experimental results show that:1)While maintaining high segmentation accuracy,the improved model significantly enhances computational efficiency.Its mean intersection over Union(mloU)and mean Pixel Accuracy(mPA)reach 92.72%and 95.05%,respectively,representing improvements of 3.22 and 2.95 percentage points over the original DeepLabV3+model.2)The model's computational cost and parameter count are only 51.84 GFLOPS and 5.89x106,accounting for 31.04%and 10.77%of the original model,respectively,with an inference speed reaching 120.51 frames per second on GPU.3)Compared with mainstream models including DeepLabV3+,SegFormer,PSPNet,U-Net and HRNet,the proposed model achieves lower computational cost and faster inference speed while ensuring comparable or high segmentation accuracy.Based on the segmentation results,a sliding window scanning algorithm is further employed to extract weed density.The coefficient of determination R2 for the linear regression between the predicted and actual density reaches 0.981,which verifing the reliability of the model.The proposed model achieves a favorable balance among accuracy,efficiency and lightweighting design,providing technical support for variable-rate spraying in precision agriculture.
安美林;赵建国;赵学观;王雅雅;马志凯;李媛普;王博奥;郝建军
河北农业大学机电工程学院,河北保定 071001河北农业大学机电工程学院,河北保定 071001||河北省智慧农业装备技术创新中心,河北保定 071001北京市农林科学院智能装备技术研究中心,北京 100097河北农业大学机电工程学院,河北保定 071001河北农业大学机电工程学院,河北保定 071001河北农业大学机电工程学院,河北保定 071001河北农业大学机电工程学院,河北保定 071001河北农业大学机电工程学院,河北保定 071001||河北省智慧农业装备技术创新中心,河北保定 071001
农业科技
玉米杂草密度提取语义分割DeepLabV3+轻量化模型注意力机制
maize weeddensity extractionsemantic segmentationDeepLabV3+lightweight modelattention mechanism
《中国农业大学学报》 2026 (5)
207-222,16
国家重点研发计划(2023YFD2301500)河北省现代农业产业技术体系创新团队建设项目(HBCT2024030207)
评论