FoodMem: Near real-time and precise food video segmentation

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.

Authors

Institutions

Publication Details

Journal
Pattern Recognition Letters
Published
2025-03-26
DOI
https://doi.org/10.1016/j.patrec.2025.03.014
Citations
6
Primary Topic
Advanced Chemical Sensor Technologies
Type
article
Field-Weighted Citation Impact
4.04

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

FoodMem: Near real-time and precise food video segmentation

Ricardo Marques, Ahmad AlMughrabi, Petia Radeva, Adrián Galán
6 citations
Pattern Recognition Letters
Advanced Chemical Sensor Technologies
4.04
article

FoodMem: Near real-time and precise food video segmentation

Ricardo Marques, Ahmad AlMughrabi, Petia Radeva, Adrián Galán
article en
6 citations

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.

Pattern Recognition LettersVol. 192
Universitat Pompeu Fabra (ES), Vall d'Hebron Institut de Recerca (ES), Universitat de Barcelona (ES)
European Commission, Generalitat de Catalunya, Ministerio de Ciencia e Innovación, Agència de Gestió d'Ajuts Universitaris i de Recerca, Erasmus+, Agencia Estatal de Investigación
Zero hunger
Openalex Percentile: Top 7%
Advanced Chemical Sensor Technologies
4.04
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.