Scientific Reports

Volumetric-aware AI framework for food classification and size-conditioned nutritional quality estimation using multi-task vision transformers

Ayan Sar, Sumit Aich, Pranav Singh Puri, Tanupriya Choudhury, Tanmay Sarkar, Lubna Abdelkhreim Gabralla

Key points

From the paper's conclusion
  • We present a novel volumetric-aware multi-task framework that addresses this gap by explicitly modeling portion size as an intermediate physical property before nutritional estimation.

Abstract

Image-based dietary assessment faces a fundamental challenge: nutritional content varies significantly based on physical properties like portion size, food variety, and growing conditions factors, often not directly observable from images alone. Existing vision-based nutrition systems typically output deterministic values without acknowledging this inherent variability, limiting their scientific validity and practical utility. We present a novel volumetric-aware multi-task framework that addresses this gap by explicitly modeling portion size as an intermediate physical property before nutritional estimation. Our approach leverages the EVA-02 Vision Transformer as a backbone feature extractor with three parallel prediction heads: (1) food classification identifying 33 antioxidant-rich food categories, (2) volume/size estimation predicting relative portion dimensions, and (3) size-conditioned nutrition estimation that scales predictions based on estimated portions. The model was trained end-to-end with multi-task optimization, balancing classification accuracy, size estimation precision, and nutritional prediction error. Experimental results demonstrated superior performance with 99.76% classification accuracy on the curated dataset (95.67–97.83% on external datasets), overall nutritional MSE of 0.0048 with R 2 of 0.993 (average per-attribute MSE: 0.0045), and size estimation MAE of 0.047, demonstrating competitive performance on antioxidant-rich food categories. Cross-dataset validation on Food-201, VireoFood-172, and FoodX-251 showed strong generalization (>95% accuracy), while ablation studies confirmed that size-conditioning reduces nutritional prediction error by 31.2%. This framework advances beyond deterministic approaches by following the logical progression of image → physical properties → nutritional properties, offering enhanced scientific rigor for automated dietary assessment, personalized nutrition, and health monitoring applications.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers