Your Cart
Your Wishlist
1. ABSTRACT
Nutrition plays an essential role in maintaining good health, physical development, and overall well-being. However, identifying food items and estimating their nutritional content manually can be a time-consuming process. The nutritional value of a meal depends on the type of food consumed as well as its portion size. To address these challenges, the proposed NutriVision system provides an artificial intelligence-based approach for automated food detection and nutritional analysis using computer vision techniques.
The proposed system utilizes the YOLOv8 object detection algorithm to identify multiple food items from an uploaded meal image. The detected food items are processed using bounding-box coordinates to estimate their approximate portion sizes. Based on the percentage of image area occupied by each detected food item, the portions are classified into three categories: Small, Medium, and Large. The estimated portion is then associated with predefined nutritional reference values stored in the nutrition database.
The system calculates important nutritional parameters, including calories, protein, carbohydrates, fat, fiber, calcium, and iron. It also incorporates age- and sex-based nutritional reference values for users between 5 and 17 years. The calculated energy and protein contributions are compared with the corresponding reference values to generate a nutritional assessment. Additionally, a rule-based recommendation module provides suggestions based on food composition and nutritional contribution.
The system is implemented using Python, YOLOv8, OpenCV, Flask, and SQLite. It provides a user-friendly interface for uploading meal images, viewing detected food items, analysing nutritional information, and generating reports. Thus, NutriVision integrates deep learning, image processing, portion estimation, and nutritional analysis into a unified application for automated meal assessment.
2. INTRODUCTION
Nutrition is one of the most important factors influencing human health, growth, and development. A balanced diet should contain appropriate quantities of carbohydrates, proteins, fats, vitamins, minerals, and dietary fiber. Understanding the nutritional composition of daily meals helps individuals make better food choices and maintain healthy eating habits.
Traditional nutritional assessment methods generally require users to identify food items manually, estimate their quantities, and refer to nutritional tables or databases. These procedures can be difficult and time-consuming, particularly when a meal contains multiple food items. Furthermore, inaccurate portion estimation can affect the calculation of total calories and other nutritional values.
With advancements in Artificial Intelligence (AI), Machine Learning, and Computer Vision, automated food recognition systems have become an important area of research. Deep learning-based object detection algorithms can identify multiple objects within an image and provide their locations through bounding boxes. These capabilities can be applied to food recognition and automated dietary assessment.
The proposed NutriVision system is developed using the YOLOv8 object detection algorithm to identify food items from meal images. The trained model detects supported food categories such as rice, dal, vegetables, egg, and chapathi. After detection, the system calculates the bounding-box area relative to the complete image area to estimate the approximate portion size.
The detected food items are connected to a predefined nutritional database containing portion-dependent values. The system calculates the total nutritional composition of the meal by combining the nutritional values of all detected food items. It further compares the calculated calories and protein with age- and sex-based reference values and generates nutritional assessments and recommendations.
NutriVision is implemented as both a desktop-based graphical application and a Flask-based web application. The web application supports user registration, login, food image upload, nutritional analysis, SQLite database storage, and report generation.
Therefore, the proposed system provides an integrated approach to food detection and nutritional analysis, reducing manual effort and helping users understand the nutritional contribution of their meals.
Similar projects you might like