mlsanityData to 14 Oct 2026

Weakly Supervised Food Image Segmentation using Vision Transformers and Segment Anything Model

arXiv 2509.19028 ↗First posted 23 Sep 2025cs.CVcited by 0

Not on the map. Why?

Abstract (arXiv)

In this paper, we propose a weakly supervised semantic segmentation approach for food images which takes advantage of the zero-shot capabilities and promptability of the Segment Anything Model (SAM) along with the attention mechanisms of Vision Transformers (ViTs). Specifically, we use class activation maps (CAMs) from ViTs to generate prompts for SAM, resulting in masks suitable for food image segmentation. The ViT model, a Swin Transformer, is trained exclusively using image-level annotations, eliminating the need for pixel-level annotations during training. Additionally, to enhance the quality of the SAM-generated masks, we examine the use of image preprocessing techniques in combination with single-mask and multi-mask SAM generation strategies. The methodology is evaluated on the FoodSeg103 dataset, generating an average of 2.4 masks per image (excluding background), and achieving an mIoU of 0.54 for the multi-mask scenario. We envision the proposed approach as a tool to accelerate food image annotation tasks or as an integrated component in food and nutrition tracking applications.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 13 of its 18 references that are in the map. First posted on arXiv 23 Sep 2025.

Builds on

13 of 18 references.

References · 13

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  2. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  3. 2023Segment Anythingcited by 8,234
  4. 2024SAM 2: Segment Anything in Images and Videoscited by 2,863
  5. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
  6. 2021Large Scale Visual Food Recognitioncited by 75
  7. 2021A Large-Scale Benchmark for Food Image Segmentationcited by 45
  8. 2023FoodSAM: Any Food Segmentationcited by 19
  9. 2022Swin MAE: Masked Autoencoders for Small Datasetscited by 17
  10. 2024Segment Anything Model Can Not Segment Anything: Assessing AI Foundation Model's Generalizability in Permafrost Mappingcited by 9
  11. 2025WeakMedSAM: Weakly-Supervised Medical Image Segmentation via SAM with Sub-Class Exploration and Prompt Affinity Miningcited by 8
  12. 2024Adapting Segment Anything Model (SAM) to Experimental Datasets via Fine-Tuning on GAN-based Simulation: A Case Study in Additive Manufacturingcited by 5
1 more
  1. 2023Food Image Classification and Segmentation with Attention-based Multiple Instance Learningcited by 1

Built on by

Not cited yet.