Mobile Near-Infrared Spectroscopy (NIR) devices are increasingly being used to estimate food nutrients, offering substantial benefits to individuals with diabetes and obesity, who are particularly sensitive to food intake. However, most existing solutions prioritize accuracy, often neglecting to ensure reliability. This oversight can endanger individuals sensitive to specific foods, as it may lead to significant errors in nutrient estimation. To address these issues, we propose an accurate and reliable food nutrient prediction model. Our model introduces a loss function designed to minimize prediction errors by leveraging the relationships among food nutrients. Additionally, we developed a method that enables the model to autonomously estimate its own uncertainty based on the loss, reducing the risk to users. Comparative experiments demonstrate that our model achieves superior performance, with an R2 value of 0.98 and an RMSE of 0.40, reflecting a 5–15% improvement over other models. The autonomous result rejection mechanism showing a 40.6% improvement further enhances robustness, particularly in handling uncertain predictions. These findings highlight the potential of our approach for precise and trustworthy nutritional assessments in real-world applications.
Read full abstract