Computer Science ›› 2026, Vol. 53 ›› Issue (11A): 251200193-500.doi: 10.11896/jsjkx.251200193

• Image Processing & Multimedia Technology • Previous Articles     Next Articles

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
  • Online:2026-11-16 Published: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.

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

CLC Number: 

  • 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.
[1] HE Yuhuang, WANG Qianlei DAI Yuntong DU Wu, QIN Xiaolin. Six Degrees of Freedom Pose Estimation Method Fusing Spectral and Geometric Features [J]. Computer Science, 2026, 53(9): 209-218.
[2] LI Xiaoyu, HAO Yingguang, WANG Hongyu. Infrared and Visible Image Fusion Method Based on Dual Feature Compensation and IlluminationEnhancement [J]. Computer Science, 2026, 53(9): 228-239.
[3] ZHANG Hu, XU Guolong, WANG Yujie. Knowledge-based Visual Question Answering Method Based on Hypergraph Convolutional Transformer [J]. Computer Science, 2026, 53(9): 333-339.
[4] GUO Peilin, ZOU Zhiyi, WANG Bo, LUO Jiawei. STMVF:Novel Multi-view Graph Convolutional Network for Spatial Transcriptomics Cell Deconvolution with Dual Cross-attention Mechanism [J]. Computer Science, 2026, 53(8): 40-49.
[5] LIAO Xuechao, ZOU Hang, LYU Peidong, ZENG Zhiqiang. Lithium-ion Battery Capacity Data Augmentation and Prediction Based on Diffusion,Denoise and Coding-Decoding Attention [J]. Computer Science, 2026, 53(8): 103-116.
[6] ZHOU Lijuan, LIU Zhihuan, LI Xinran, NIU Changyong. Zero-shot Skeleton-based Action Recognition Based on Class Knowledge Fusion and Latent SpaceOptimization [J]. Computer Science, 2026, 53(8): 148-155.
[7] CAI Yi, WANG Xiaobin, CHEN Ruili, XU Jinfeng. Handwriting Gender Recognition Method Based on Multi-scale Directional Attention Transformer [J]. Computer Science, 2026, 53(8): 156-164.
[8] HU Changyu, FAN Xinyu, ZHANG Zhi, DING Zixu, ZHANG Zhengyue, PENG Juhong. Hierarchical Lightweight Micro-expression Recognition Based on Optical Flow Partitioned FeatureFusion [J]. Computer Science, 2026, 53(8): 174-181.
[9] WANG Jingyang, XUE Weimin, HUANG Min, WU Shaoguang. Improved YOLOv11n Model for Small Target Detection in UAV Aerial Images [J]. Computer Science, 2026, 53(8): 201-208.
[10] YANG Chenguang, LU Jicang, GUO Jiaxing. Fake News Detection Model Based on Cross-modal Feature Fusion and Alignment [J]. Computer Science, 2026, 53(8): 257-265.
[11] LI Qingkai, QUN Nuo, NI Shengqiao, YANG Jin. From Bytes to Semantics:New Paradigm for Tibetan Named Entity Recognition [J]. Computer Science, 2026, 53(8): 266-275.
[12] FENG Haoyu, ZHANG Yuxuan, LIU Zixuan, MENG Hua. Network Anomaly Traffic Detection Based on Deep Multi-instance Learning [J]. Computer Science, 2026, 53(8): 426-436.
[13] ZHU Bin, LI Xiaobin. AETC:Image Classification Model via Attention-based Topological Features Fusion [J]. Computer Science, 2026, 53(7): 24-33.
[14] CHEN Zhixiang, XIE Zhipeng. Event Causal Data Augmentation Method Based on Large Language Model [J]. Computer Science, 2026, 53(7): 125-131.
[15] ZHANG Yan, ZHOU Jian, HAN Lei, CHENG Chunling. Gate-controlled Agent Attention Mechanism-based Soft Prompt Transfer Method [J]. Computer Science, 2026, 53(7): 139-145.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!