A
system for determining the
nutrient composition of foods using
image processing, comprising: a high-resolution imaging device configured to capture images of food, wherein the imaging device includes a multispectral camera capable of capturing images across multiple
spectral bands, including visible and
infrared wavelengths; an
image processing module that is operationally connected to the imaging device, wherein the
image processing module is configured to receive the captured images and perform preprocessing operations to improve
image quality by applying contrast adjustment,
noise reduction, and
edge detection techniques; a segmentation unit within the image
processing module, configured to segment the preprocessed images into unique areas corresponding to individual food pieces or components using a combination of
thresholding, clustering, and contour detection techniques; a
feature extraction unit configured to extract visual features from each segmented area, including color histograms, texture descriptors, shape descriptors, and size
metrics; a
machine learning-based
processing unit comprising a
Convolutional Neural Network (CNN) trained on a variety of food images and corresponding
nutritional information, wherein the
machine learning-based
processing unit is configured to classify each segmented area based on the extracted features to identify the food present in the images; a nutritional
database operationally linked to the
machine learning-based processing unit, wherein the nutritional
database contains stored
nutritional information for a wide range of foods, including the content of macronutrients and micronutrients; a computing unit configured to retrieve
nutritional information from the nutritional
database based on the identified foods and to calculate the overall
nutritional composition of the foods, including the amounts of carbohydrates, proteins, fats, vitamins and minerals; a depth
estimation unit configured to estimate the volume and weight of identified food items by analyzing perspective and scaling features within the captured images; and a
user interface module operationally connected to the computing unit, the
user interface module being configured to display the
nutrient composition to the user in real time, including a detailed breakdown of macronutrients, micronutrients, and portion sizes, and to provide personalized nutritional recommendations.