FoodMem: Near real-time and precise food video segmentation
Year: 2025
Type: article
Abstract: Food segmentation, including in videos, is vital for addressing real-world health, agriculture, and food biotechnology issues. Current limitations lead to inaccurate nutritional analysis, inefficient crop management, and suboptimal food processing, impacting food security and public health. Improving segmentation techniques can enhance dietary assessments, agricultural productivity, and the food production process. This study introduces the development of a robust framework for high-quality, near-real-time segmentation and tracking of food items in videos, using minimal hardware resources. We present FoodMem, a novel framework designed to segment food items from video sequences of 360-degree unbounded scenes. FoodMem can consistently generate masks of food portions in a video sequence, overcoming the limitations of existing semantic segmentation models, such as flickering and prohibitive inference speeds in video processing contexts. To address these issues, FoodMem leverages a two-phase solution: a transformer segmentation phase to create initial segmentation masks and a memory-based tracking phase to monitor food masks in complex scenes. Our framework outperforms current state-of-the-art food segmentation models, yielding superior performance across various conditions, such as camera angles, lighting, reflections, scene complexity, and food diversity. 2 2 More details in the supplementary material. This results in reduced segmentation noise, elimination of artifacts, and completion of missing segments. We also introduce a new annotated food dataset encompassing challenging scenarios absent in previous benchmarks. Extensive experiments conducted on MetaFood3D, Nutrition5k, and Vegetables & Fruits datasets demonstrate that FoodMem enhances the state-of-the-art by 2.5% mean average precision in food video segmentation and is 58 × faster on average. The source code is available at: 3 3 https://amughrabi.github.io/foodmem . . • Introduces FoodMem, the first near-real-time food video segmentation framework. • Leverages a segmentation transformer and memory model for mask refinement. • Outperforms FoodSAM, the state-of-the-art, across diverse conditions with 2.5% higher mAP. • Achieves 58x faster processing with minimal hardware resources. • Provides a novel annotated food dataset with challenging scenarios.
Source: Pattern Recognition Letters
Institutions: Universitat de Barcelona, Universitat Pompeu Fabra
Language: English
Subfield: Computer Vision and Pattern Recognition
Field: Computer Science
Domain: Physical Sciences
SDG: Zero hunger
Open Access status: hybrid
Estimated APC paid: $2,500
Funders: Family Process Institute, European Commission, Generalitat de Catalunya, Federación Española de Enfermedades Raras, Ministerio de Ciencia e Innovación, Agència per a la Competitivitat de l’Empresa, Ministerio de Asuntos Económicos y Transformación Digital, Gobierno de España, Agència de Gestió d'Ajuts Universitaris i de Recerca, Erasmus+, Agencia Estatal de Investigación
OpenAlex ID: W4408851672
