湖北农业科学 ›› 2026, Vol. 65 ›› Issue (8): 207-214.doi: 10.14088/j.cnki.issn0439-8114.2026.08.030

• 信息工程 • 上一篇    下一篇

基于空间-光谱注意力U-Net的水稻病虫害高光谱语义分割

吴聪, 高统统   

  1. 北京理工大学重庆创新中心,重庆 401100
  • 收稿日期:2026-05-15 发布日期:2026-09-02
  • 作者简介:吴 聪(1989-),男,重庆人,中级工程师,硕士,主要从事高光谱计算成像及应用研究工作,(电子信箱) 269354434@qq.com
  • 基金资助:
    重庆市技术创新与应用发展专项( CSTB2024TIAD-KPX0022)

Hyperspectral semantic segmentation of rice diseases and pests based on spatial-spectral attention U-Net

WU Cong, GAO Tong-tong   

  1. Beijing Institute of Technology-Chongqing Innovation Center, Chongqing 401100, China
  • Received:2026-05-15 Online:2026-09-02

摘要: 针对水稻病虫害高光谱图像光谱冗余信息多、空间-光谱信息融合不足导致分割精度受限的问题,提出一种空间-光谱注意力U-Net模型(SSA U-Net)。该模型在输入端引入波段门控模块,通过自适应加权突出敏感波段并抑制冗余光谱信息;在跳跃连接中设计光谱引导残差注意力门控模块,结合解码器高层语义信息与光谱先验信息生成空间注意力权重,提高弱病斑、小尺度区域及模糊边界的表征能力;同时构建交叉熵损失、Dice损失与波段稀疏正则项的联合损失函数,缓解类别不平衡并增强关键光谱特征学习能力。基于1 270幅34波段水稻病虫害高光谱图像的试验结果表明,SSA U-Net在测试集上的平均Dice系数为89.6%,平均交并比为81.2%,较基准U-Net分别提高5.4和8.5个百分点,整体性能指标高于DeepLabV3+、U-Net、U-Net++和SegNet,且参数量(3.16×107)与U-Net处于同一量级。SSA U-Net可实现水稻病虫害区域的像素级分割,为智能监测与精准植保提供技术支撑。

关键词: 水稻病虫害, 高光谱成像, 语义分割, 空间-光谱注意力, U-Net

Abstract: To address the problems of high spectral redundancy and insufficient spatial-spectral information fusion in hyperspectral images of rice diseases and pests, which limited segmentation accuracy, a spatial-spectral attention U-Net model (SSA U-Net) was proposed. A band gating module was introduced at the input stage to adaptively weight spectral bands, thereby highlighting disease- and pest-sensitive bands while suppressing redundant spectral information. In the skip connections, a spectral-guided residual attention gate module was designed to generate spatial attention weights by integrating high-level decoder semantics with spectral priors, which improved the representation of weak lesions, small-scale regions, and blurred boundaries. Meanwhile, a joint loss function combining cross-entropy loss, Dice loss, and band sparsity regularization was constructed to alleviate class imbalance and enhance the learning ability for key spectral features. Experiments on 1 270 of 34-band hyperspectral images of rice diseases and pests showed that SSA U-Net achieved a mean Dice coefficient of 89.6% and a mean intersection over union of 81.2% on the test set, which were 5.4 and 8.5 percentage points higher than those of the baseline U-Net, respectively. The overall performance metrics were higher than those of DeepLabV3+, U-Net, U-Net++, and SegNet, while the parameter size (3.16×107) was at the same order of magnitude as that of U-Net. SSA U-Net achieved pixel-level segmentation of rice disease and pest regions, providing technical support for intelligent monitoring and precision plant protection.

Key words: rice diseases and pests, hyperspectral imaging, semantic segmentation, spatial-spectral attention, U-Net

中图分类号: