计算机科学 ›› 2026, Vol. 53 ›› Issue (11A): 251200193-500.doi: 10.11896/jsjkx.251200193

• 图像处理&多媒体技术 • 上一篇    下一篇

基于原型和困难样本增强的小样本图像分割模型

马汉达, 周裕杰   

  1. 江苏大学计算机科学与通信工程学院 江苏 镇江 212013
  • 出版日期:2026-11-16 发布日期:2026-11-16
  • 通讯作者: 马汉达(mahd@ujs.edu.cn)

Few-shot Image Segmentation Model Based on Prototype and Difficult Example Augmentation

MA Handa, ZHOU Yujie   

  1. School of Computer Science and Communication Engineering,Jiangsu University,Zhenjiang,Jiangsu 212013,China
  • Published:2026-11-16 Online:2026-11-16
  • About author:MA Handa,born in 1966,professor,is a member of CCF(No.25829M).His main research interests include data mining,and big data technology research and applications.

摘要: 针对小样本条件下图像分割模型易出现泛化能力不足以及类原型特征混淆的问题,提出一种融合困难样本特征增强与交叉注意力机制的小样本图像分割方法。首先,基于模型预测不确定性对样本进行筛选,构建困难样本集,并通过困难样本与支持样本、查询样本的特征融合,缓解样本数量受限带来的泛化能力下降问题;其次,在原型生成阶段引入交叉注意力机制,对类原型特征进行加权优化,提高原型表征的判别性,降低复杂背景下的特征混淆;最后,设计一种动态损失函数,根据训练阶段自适应调节原始样本与增强样本的损失权重,以提升模型训练的稳定性与鲁棒性。在 PASCAL-5i 和 COCO-20i 数据集上的对比实验与消融实验结果表明,所提出的方法在多种评价指标上均优于现有基线模型,并在不显著增加计算开销的前提下实现了稳定的性能提升,验证了该方法的有效性与工程可行性。

关键词: 小样本学习, 数据增强, 注意力机制, 特征融合, 语义分割

Abstract: To address the issues of insufficient generalization ability and confusion of class prototype features in image segmentation models under small sample conditions,a small sample image segmentation method that integrates difficult sample feature enhancement and cross-attention mechanism is proposed.Firstly,samples are screened based on the model’s prediction uncertainty,a difficult sample set is constructed,and the features of difficult samples are fused with those of support samples and query samples to alleviate the problem of decreased generalization ability caused by limited sample quantity.Secondly,the cross-attention mechanism is introduced in the prototype generation stage to optimize the weighted features of class prototypes,improving the discriminative power of prototypes and reducing feature confusion in complex backgrounds.Finally,a dynamic loss function is designed to adaptively adjust the loss weights of original samples and enhanced samples according to the training stage,thereby enhancing the stability and robustness of model training without significantly increasing computational overhead.The comparative experiments and ablation experiments on the PASCAL-5i and COCO-20i datasets show that the proposed method outperforms existing baseline models in multiple evaluation metrics and achieves stable performance improvement without significantly increasing computational overhead,verifying the effectiveness and engineering feasibility of the method.

Key words: Few-shot learning, Data augmentation, Attention mechanism, Feature fusion, Semantic segmentation

中图分类号: 

  • TP391
[1] WEI T,LI X L,LIU H.Survey of image semantic segmentation under few-shot dilemma [J].Computer Engineering and Applications,2023,59(2):1-11.
[2] GAO F,JIANG A L,JI W,et al.Dual-path self-optimizing few-shot medical image segmentation network [J].Computer Engineering and Applications,2025,61(24):228-239.
[3] CHENG G,LI R,LANG C,et al.Task-wise attention guided part complementary learning for few-shot image classification[J].Science China Information Sciences,2021,64(2):120104.
[4] ZHANG H,CISSE M,DAUPHIN Y N,et al.mixup:Beyondempirical risk minimization[C]//Proceedings of the 6th International Conference on Learning Representations(ICLR).Vancouver:ICLR,2018.
[5] SHABAN A,BANSAL S,LIU Z,et al.One-shot learning for semantic segmentation[C]//Proceedings of the British Machine Vision Conference(BMVC).London:BMVA Press,2017:1-13.
[6] ZHANG X,WEI Y,YANG Y,et al.SG-One:Similarity guid-ance network for one-shot semantic segmentation[J].IEEE Transactions on Cybernetics,2020,50(9):3855-3865.
[7] FAN Q,PEI W,TAI Y W,et al.Self-support few-shot semantic segmentation[C]//European Conference on Computer Vision.Cham:Springer Nature Switzerland,2022:701-719.
[8] WANG K,LIEW J H,ZOU Y,et al.Panet:Few-shot image semantic segmentation with prototype alignment[C]//Procee-dings of the IEEE/CVF International Conference on Computer Vision.2019:9197-9206.
[9] SHI X,WEI D,ZHANG Y,et al.Dense cross-query-and-supportattention weighted mask aggregation for few-shot segmentation[C]//European Conference on Computer Vision.Cham:Springer Nature Switzerland,2022:151-168.
[10] LIU J,BAO Y,XIE G S,et al.Dynamic prototype convolution network for few-shot semantic segmentation[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.2022:11553-11562.
[11] ZHANG C,LIN G,LIU F,et al.Canet:Class-agnostic segmentation networks with iterative refinement and attentive few-shot learning[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.2019:5217-5226.
[12] DOS SANTOS M E,GUIMARÃES S J F,PATROCÍNIOZ K G.Cross-Attention Vision Transformer for Few-Shot Semantic Segmentation[C]//2023 IEEE Ninth Multimedia Big Data(BigMM).IEEE,2023:64-71.
[13] MEHTA S,RASTEGARI M.Mobilevit:light-weight,general-purpose,and mobile-friendly vision transformer[J].arXiv:2110.02178,2021.
[14] SHAKER A,MAAZ M,RASHEED H,et al.Swiftformer:Efficient additive attention for transformer-based real-time mobile vision applications[C]//Proceedings of the IEEE/CVF International Conference on Computer Vision.2023:17425-17436.
[15] VASWANI A,SHAZEER N,PARMAR N,et al.Attention is all you need[C]//Advances in Neural Information Processing Systems 30(NIPS 2017).Long Beach:NIPS Foundation,2017:5998-6008.
[16] WANG X,KONG T,SHEN C,et al.Solo:Segmenting objects by locations[C]//Computer Vision-ECCV 2020:16th European Conference,Glasgow,UK,August 23-28,2020,Proceedings,Part XVIII 16.Springer International Publishing,2020:649-665.
[17] HE K,ZHANG X,REN S,et al.Deep residual learning forimage recognition[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition.2016:770-778.
[18] NGUYEN K,TODOROVIC S.Feature weighting and boosting for few-shot segmentation[C]//Proceedings of the IEEE/CVF International Conference on Computer Vision.2019:622-631.
[19] LIU Y,LIU N,CAO Q,et al.Learning non-target knowledge for few-shot semantic segmentation[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.2022:11573-11582.
[20] XU Q,ZHAO W,LIN G,et al.Self-calibrated cross attentionnetwork for few-shot segmentation[C]//Proceedings of the IEEE/CVF International Conference on Computer Vision.2023:655-665.
[21] SHI X,CUI Z,ZHANGS,et al.Multi-similarity based hyperrelation network for few-shot segmentation[J].IET Image Processing,2023,17(1):204-214.
[22] YANG Y,CHEN Q,FENG Y,et al.Mianet:Aggregating unbiased instance and general information for few-shot semantic segmentation[C]//Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition.2023:7131-7140.
[23] SAKAI T,QIU H,KATSUKI T,et al.A Surprisingly Simple Approach to Generalized Few-Shot Semantic Segmentation[C]//The Thirty-eighth Annual Conference on Neural Information Processing Systems.2024.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!