CP3 final pdf
CP3 final pdf
NUTRISCAN AI
at
U. V. Patel College of Engineering
Submitted to,
Department of Computer Engineering
U.V. Patel College of Engineering
Ganpat University, Ganpat Vidyanagar – 384012
U.V. PATEL COLLEGE
OF
ENGINEERING
CERTIFICATE
This is to certify that Mr. Patel Fenil Dixitbhai student of B.Tech. Semester-VII
(Computer Engineering) has completed his full semester Capstone Project - III
work titled “NutriScan AI” satisfactorily in partial fulfillment of the requirement
of Bachelor of Technology degree of Computer Engineering of Ganpat University,
Ganpat Vidyanagar in the year 2024-2025.
CERTIFICATE
This is to certify that Mr. Patel Vivek Sandipbhai student of B.Tech. Semester
VII (Computer Engineering) has completed his full semester Capstone Project -
III work titled “NutriScan AI” satisfactorily in partial fulfillment of the
requirement of Bachelor of Technology degree of Computer Engineering of Ganpat
University, Ganpat Vidyanagar in the year 2024-2025.
CERTIFICATE
This is to certify that Mr. Ragadibai Ashish Reddy student of B.Tech. Semester
VII (Computer Engineering) has completed his full semester Capstone Project -
III work titled “NutriScan AI” satisfactorily in partial fulfillment of the
requirement of Bachelor of Technology degree of Computer Engineering of Ganpat
University, Ganpat Vidyanagar in the year 2024-2025.
I
Abstract
II
INDEX
1 Introduction.................................................................................................................................1
1.1 Project Overview................................................................................................................. 1
1.2 Background.......................................................................................................................... 1
1.3 Purpose.................................................................................................................................1
1.4 Impact, Significance and Contributions...............................................................................2
1.5 Organization of Project Report............................................................................................ 4
2 Project Scope............................................................................................................................... 6
2.1 Food Image Analysis Module..............................................................................................6
2.2 Health Impact Classification................................................................................................6
2.3 Real-Time Analysis and User Interaction............................................................................6
2.4 Personalized Health Profile Integration............................................................................... 6
2.5 Scalability and Future Expansion........................................................................................ 6
2.6 User Education and Awareness............................................................................................6
2.7 Privacy and Security Considerations................................................................................... 7
2.8 Documentation and Deployment......................................................................................... 7
2.9 Mobile App Development (Future Work)............................................................................7
2.10 Project Timeline.................................................................................................................7
2.11 Collaboration......................................................................................................................7
3 Feasibility Analysis..................................................................................................................... 8
3.1 Technical feasibility............................................................................................................. 8
3.2 Time schedule feasibility..................................................................................................... 9
3.3 Operational Feasibility.........................................................................................................9
3.4 Implementation feasibility................................................................................................... 9
3.5 Economic feasibility............................................................................................................ 9
4 Software requirements specifications (SRS)...........................................................................10
4.1 Software Requirements......................................................................................................10
4.2 Hardware Requirements.....................................................................................................11
5 Process Model............................................................................................................................12
5.1 Problem Definition and Requirements Analysis................................................................12
5.2 System Design................................................................................................................... 12
5.3 Data Collection and Preprocessing.................................................................................... 12
5.4 Model Development...........................................................................................................13
5.5 System Integration............................................................................................................. 13
5.6 Performance Optimization................................................................................................. 13
5.7 Testing and Validation........................................................................................................13
6 Project Plan............................................................................................................................... 15
6.1 Project planning and Initial Research (Week 1).................................................................15
6.2 Design Phase (Weeks 2-3)................................................................................................. 15
6.3 Data Collection and Preprocessing (Weeks 4-6)................................................................15
6.4 Model Development (Weeks 7-12).................................................................................... 16
6.5 System Integration (Weeks 13-15).....................................................................................16
6.6 Performance Optimization (Weeks 16-17)........................................................................ 16
6.7 Testing and Validation (Weeks 18-20)............................................................................... 17
6.8 Deployment (Weeks 21-22)............................................................................................... 17
6.9 Maintenance and Updates (Ongoing)................................................................................ 17
7 System Design............................................................................................................................18
7.1 Class Diagram....................................................................................................................18
7.2 Activity Diagram............................................................................................................... 19
7.3 Use-case Diagram.............................................................................................................. 20
7.4 Data Flow Diagram............................................................................................................20
7.4.1 Level 0……………………………………………………………………………...20
7.4.2 Level 1……………………………………………………………………………...21
7.4.3 Level 2……………………………………………………………………………...22
8 Implementation Details............................................................................................................ 24
8.1 Understanding the Foundation...........................................................................................24
8.2 Data collection................................................................................................................... 24
8.3 Data Preprocessing.............................................................................................................25
8.4 Training..............................................................................................................................27
8.5 Design Access....................................................................................................................29
8.6 Security Measures..............................................................................................................29
8.7 Scalability and Performance Optimization........................................................................ 30
8.8 Documentation and Ongoing Maintenance....................................................................... 31
8.9 Final Testing and User Feedback....................................................................................... 32
8.10 Deployment Strategies..................................................................................................... 32
9 Testing........................................................................................................................................ 33
9.1 Introduction to NutriScan AI Testing............................................................................... 33
9.2 Testing Strategies............................................................................................................... 33
9.3 Importance of Testing........................................................................................................ 33
9.4 Unit Testing........................................................................................................................34
9.5 Integration Testing............................................................................................................. 35
9.6 User Testing....................................................................................................................... 35
9.7 Performance Testing.......................................................................................................... 37
9.8 Usability Testing................................................................................................................ 38
9.9 Scalability Testing..............................................................................................................38
10 Prototype..................................................................................................................................40
Fig 10.1 : Welcome Page of NutriScanAI...............................................................................40
Fig 10.2 : Home Page of NutriScanAI....................................................................................40
Fig 10.3 : Ingredients Scanning Page of NutriScanAI............................................................41
Fig 10.4 : Admin Login Page of NutriScanAI........................................................................42
Fig 10.5 : Admin Dashboard of NutriScanAI.........................................................................42
11 User Manual............................................................................................................................ 43
Fig 11.1 : Home Page of NutriScanAI....................................................................................43
Fig 11.2 : User Page of NutriScanAI....................................................................................... 43
Fig 11.3 : Enter Basic Details.................................................................................................. 44
Fig 11.4 : Scanned Ingredients from Packet............................................................................ 44
Fig 11.5 : User with Nut Allergy............................................................................................. 45
Fig 11.6 : Ingredients Matching User Allergy......................................................................... 45
Fig 11.7 : Admin Login Page...................................................................................................46
Fig 11.8 : Successfully Login to Admin Dashboard................................................................46
Fig 11.9 : Admin Dashboard with Graph Representation........................................................47
Fig 11.10 : Line Graph for Last 30 Days Usage...................................................................... 47
12 Conclusion and Future Work................................................................................................ 48
12.1 Conclusion....................................................................................................................... 48
12.2 Key Achievements........................................................................................................... 48
12.3 Challenges Overcome...................................................................................................... 49
12.4 Future Work..................................................................................................................... 49
13 Annexure..................................................................................................................................51
13 About College.......................................................................................................................... 54
List of Figures
Figure 1 : Class Diagram............................................................................................................... 18
Figure 2 : Activity Diagram...........................................................................................................19
Figure 3 : Use-Case Diagram.........................................................................................................20
Figure 4 : Data-Flow Diagram Level 0..........................................................................................20
Figure 5 : Data-Flow Diagram Level 1..........................................................................................21
Figure 6 : Data-Flow Diagram Level 2..........................................................................................22
Figure 7 : Model testing on Ingredients Scanning......................................................................... 36
Figure 8 : Welcome Page of NutriScanAI.................................................................................... 40
Figure 9 : Home Page of NutriScanAI..........................................................................................40
Figure 10 : Ingredients Scanning Page of NutriScanAI................................................................41
Figure 11 : Admin Login Page of NutriScanAI............................................................................42
Figure 12 : Admin Dashboard of NutriScanAI.............................................................................42
Figure 13 : Home Page of NutriScanAI........................................................................................43
Figure 14 : User Page of NutriScanAI...........................................................................................43
Figure 15 : Enter Basic Details...................................................................................................... 44
Figure 16 : Scanned Ingredients from Packet................................................................................ 44
Figure 17 : User with Nut Allergy................................................................................................. 45
Figure 18 : Ingredients Matching User Allergy............................................................................. 45
Figure 19 : Admin Login Page.......................................................................................................46
Figure 20 : Successfully Login to Admin Dashboard....................................................................46
Figure 21 : Admin Dashboard with Graph Representation........................................................... 47
Figure 22 : Line Graph for Last 30 Days Usage............................................................................47
Team ID: 103 2CEIT703: Capstone Project-III
1 INTRODUCTION
1.1 Project Overview
NutriScan AI is a cutting-edge project that leverages artificial intelligence to analyze
food ingredients for their health impact, allergy risks, and overall nutritional quality.
The project combines computer vision, machine learning, and real-time data analysis to
create an intuitive platform that enables users to easily assess the nutritional content of
their meals. NutriScan AI extracts ingredient data from food images, categorizes the
health risks associated with each ingredient, and offers personalized alerts based on the
user's health profile. With the growing interest in health-conscious eating and the rising
awareness of food allergies, NutriScan AI offers a comprehensive solution for
promoting healthier eating habits and providing individuals with the tools to make
informed food choices.
1.2 Background
1.3 Purpose
1.3.1 Problem Statement
The current landscape of food health analysis faces several challenges:
NutriScanAI 1
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 3
Team ID: 103 2CEIT703: Capstone Project-III
Non-functional Requirements:
1.5.3 Diagrams
This section includes visual representations of the system architecture, data flow, and
key components of NutriScan AI.
1.5.4 Prototype
The prototype section demonstrates the interface and user experience of NutriScan AI.
NutriScanAI 4
Team ID: 103 2CEIT703: Capstone Project-III
1.5.6 References
This section provides references to academic papers, articles, and similar projects that
informed the development of NutriScan AI.
NutriScanAI 5
Team ID: 103 2CEIT703: Capstone Project-III
2 PROJECT SCOPE
The scope of the NutriScan AI project focuses on several key areas related to food
health analysis and real-time nutritional assessment:
NutriScanAI 6
Team ID: 103 2CEIT703: Capstone Project-III
2.11 Collaboration
- The project will leverage the collective expertise and contributions of all team
members with clear roles and responsibilities outlined.
NutriScanAI 7
Team ID: 103 2CEIT703: Capstone Project-III
3 FEASIBILITY ANALYSIS
3.1 Technical feasibility
3.1.1 Hardware and Software Requirements
The hardware requirements for NutriScan AI include sufficient CPU/GPU for efficient
AI model training and inference (with a GPU recommended), at least 8 GB of RAM for
real-time image processing, SSD storage for food ingredient databases and user data, a
high-resolution camera for capturing food images, and a reliable internet connection for
image uploads and backend operations. The software stack consists of
TensorFlow/Keras for deep learning, OpenCV[2] for image processing, Streamlit for
web app development, and Pandas for data handling. A PyMango database is used for
storing profiles and ingredient data, with APIs for system integration and encryption for
secure data handling and privacy.
NutriScanAI 8
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 9
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 10
Team ID: 103 2CEIT703: Capstone Project-III
- Sufficient storage space for development tools and datasets (minimum 256 GB
SSD recommended).
NutriScanAI 11
Team ID: 103 2CEIT703: Capstone Project-III
5 PROCESS MODEL
5.1 Problem Definition and Requirements Analysis
- Identify Objectives: Define the main goals of NutriScan AI, such as real-time
food ingredient detection, health risk classification, and personalized nutrition
analysis.
- Requirement Gathering: Gather functional requirements (e.g., accurate
ingredient recognition, health impact categorization, allergy alerts) and
non-functional requirements (e.g., real-time performance, scalability, ease of
use).
- Stakeholder Analysis: Identify stakeholders, including end-users (e.g.,
individuals, health-conscious consumers), developers, and potential clients (e.g.,
food brands or nutritionists).
NutriScanAI 12
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 13
Team ID: 103 2CEIT703: Capstone Project-III
- System Testing: Test the entire system, including the web interface, AI model,
and database interaction, under real-world conditions to assess overall
performance and reliability.
- User Acceptance Testing: Gather feedback from users, ensuring that the
system provides accurate health risk classifications, personalized nutrition
recommendations, and user-friendly interactions.
NutriScanAI 14
Team ID: 103 2CEIT703: Capstone Project-III
6 PROJECT PLAN
6.1 Project planning and Initial Research (Week 1)
Objectives: Establish project goals, define the scope, and gather initial requirements.
Activities:
- Conduct team meetings to clarify project objectives.
- Identify key features such as real-time food image analysis, health risk
classification, and allergy detection.
- Develop a high-level project plan, outlining phases and milestones.
NutriScanAI 15
Team ID: 103 2CEIT703: Capstone Project-III
Activities:
Sprint 4 (Weeks 7-9):
- Data Scientists: Select appropriate machine learning algorithms for food
recognition and health classification.
- Machine Learning Engineers: Train models using the preprocessed datasets.
- Review: Evaluate the initial model performance and refine for accuracy.
NutriScanAI 16
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 17
Team ID: 103 2CEIT703: Capstone Project-III
7 SYSTEM DESIGN
7.1 Class Diagram
NutriScanAI 18
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 19
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 20
Team ID: 103 2CEIT703: Capstone Project-III
7.4.2 Level 1 :
NutriScanAI 21
Team ID: 103 2CEIT703: Capstone Project-III
7.4.3 Level 2 :
NutriScanAI 22
Team ID: 103 2CEIT703: Capstone Project-III
The DFD level 2 provides a detailed breakdown of the system's processes involved in
food image analysis. It starts with user input, image validation, and OCR to extract text.
The extracted text undergoes cleaning and tokenization for ingredient matching.
Finally, the system displays the results, including ingredient identification, allergy
information, and an HTML report.
NutriScanAI 23
Team ID: 103 2CEIT703: Capstone Project-III
8 IMPLEMENTATION DETAILS
8.1 Understanding the Foundation
8.1.1 Tech Stack
8.1.1.1 Programming Language:
- Python - A widely-used language with strong support for machine learning,
deep learning, and computer vision tasks, providing a broad range of libraries
for data manipulation, image processing, and model development.
NutriScanAI 24
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 25
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 26
Team ID: 103 2CEIT703: Capstone Project-III
8.4 Training
8.4.1 Preprocessing Module
The preprocessing module is responsible for preparing food images for analysis. Key
tasks include resizing images to a consistent resolution, normalizing pixel values to
standardize the input data, and applying data augmentation techniques such as rotation,
flipping, and scaling to increase dataset diversity and improve the model's robustness.
This step ensures that food images are standardized for feeding into the neural network
while maintaining data diversity for better generalization.
The ingredient detection module utilizes Easy OCR or other suitable algorithms to
identify and localize different ingredients within the input food images. This step
locates regions of interest in the image that contain food items, preparing them for
further analysis in the next stages. The module may employ object detection techniques
such as Easy OCR to accurately identify and segment food ingredients.
Once the ingredients are detected, the feature extraction module extracts essential
characteristics from the image, such as shapes, textures, and patterns specific to each
food item. These features are converted into high-dimensional vectors that represent the
unique properties of the detected ingredients. This module helps the model capture the
distinctive aspects of different food types, such as their color, texture, and shape, which
are key for classification.
The health risk classification module analyzes the extracted features and compares
them to a pre-built database of known food ingredients and their associated health risks.
Using machine learning algorithms, the system classifies each ingredient into different
health categories, ranging from "safe" to "harmful" (Types 0–3). The module may use
similarity metrics such as cosine similarity or Euclidean distance to compare features
with those in the database, enabling accurate classification based on the health impact
of each ingredient.
NutriScanAI 27
Team ID: 103 2CEIT703: Capstone Project-III
For NutriScan AI, a diverse dataset[3] of food images is collected, representing various
types of ingredients from different food categories. Each image is labeled with the
corresponding ingredient name and its health classification based on its impact (e.g.,
Type 0 - Safe, Type 3 - Harmful). This dataset serves as the training data for both
ingredient detection and health risk classification models.
Suitable pretrained models or architectures are selected based on their ability to handle
food images effectively. Computer Vision(CV2s) are typically chosen for their
performance in image recognition tasks. Models such as ResNet or EfficientNet, known
for their computational efficiency and ability to recognize fine-grained features, are
evaluated. A hybrid model combining food detection with health classification is
designed to ensure compatibility with project requirements.
The trained models are validated using separate validation datasets to assess
performance metrics such as accuracy, precision, recall, and F1 score. This evaluation
helps ensure that the models can generalize well to unseen food images. Iterative
adjustments and fine-tuning are made based on the validation results to improve
classification accuracy and minimize errors in ingredient detection and health risk
assessment.
8.4.9 Deployment
Once the models achieve satisfactory performance, they are deployed into the
production environment. This includes integrating the models into the NutriScan AI
web application, ensuring it can analyze food images in real-time. The system is
deployed on a cloud or server infrastructure that supports fast processing of food
images. Continuous monitoring and updates are implemented to ensure optimal
performance and to handle any potential issues with the real-time ingredient analysis
and health classification.
NutriScanAI 28
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 29
Team ID: 103 2CEIT703: Capstone Project-III
user privacy. This will be particularly important for users who may be sharing dietary
or allergy information, ensuring that sensitive health data is protected and not linked to
personal identifiers.
NutriScanAI 30
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 31
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 32
Team ID: 103 2CEIT703: Capstone Project-III
9 TESTING
9.1 Introduction to NutriScan AI Testing
Testing is a vital phase in the development of NutriScan AI. This process ensures that
the system functions as intended, delivers accurate results, and provides a seamless user
experience. By thoroughly evaluating the application's features and usability, testing
helps achieve the project’s objective of empowering users to make informed decisions
about their food choices.
Testing is the cornerstone of validating NutriScan AI's ability to deliver accurate and
reliable food assessments. It instills confidence in the app's functionality and ensures
the system meets its goal of promoting healthier food choices by identifying harmful
ingredients.
NutriScanAI 33
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 34
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 35
Team ID: 103 2CEIT703: Capstone Project-III
This image displays the interface of NutriScan AI, showcasing an ingredient analysis
system where uploaded food label data is processed. Ingredients are categorized by risk
levels (red for highest risk, green for lowest), with confidence scores indicating
detection accuracy. The user-friendly design helps users quickly identify potentially
harmful substances.
NutriScanAI 36
Team ID: 103 2CEIT703: Capstone Project-III
9.7.2.2 Throughput:
Assesses the system's ability to handle a high volume of simultaneous
requests, such as multiple users scanning or uploading food labels at the same
time. This ensures NutriScan AI can maintain efficiency during peak usage
periods.
NutriScanAI 37
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 38
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 39
Team ID: 103 2CEIT703: Capstone Project-III
10 PROTOTYPE
NutriScanAI 40
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 41
Team ID: 103 2CEIT703: Capstone Project-III
This image shows a login screen with fields for username and password. The user can
enter their credentials and click the "Login" button to proceed. There is also an eye icon
next to the password field, which likely indicates a toggle to show or hide the password
for security purposes.
11 USER MANUAL
This image shows the home page of the NutriScanAI application. It provides an
overview of the platform's purpose, which is to evaluate the ingredients in packaged
food items and categorize them based on their potential health impact. The page also
explains the categorization system used by the AI model and provides a brief overview
of how to use the application.
NutriScanAI 43
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 44
Team ID: 103 2CEIT703: Capstone Project-III
This image shows the user interface of the NutriScanAI application. The user has input
their name, gender, state, and specified a nut allergy. They are now ready to upload an
image of food to be analyzed for potential allergens.
This image shows the result of uploading a food image to the NutriScanAI application
when the user has a nut allergy. The system has identified several ingredients, including
roasted peanuts, peanut, and nutmeg, which are potential allergens for the user. The
identified allergens are highlighted with a warning symbol and a red background. The
system also displays a list of all detected ingredients, including those that are not
allergens to the user.
NutriScanAI 45
Team ID: 103 2CEIT703: Capstone Project-III
Admin Manual
NutriScanAI 46
Team ID: 103 2CEIT703: Capstone Project-III
This image displays an admin dashboard featuring various graphs and charts to
visualize data. The dashboard likely provides insights into user activity, usage patterns,
and other relevant metrics. The graphs might show trends over time, comparisons
between different groups, or the distribution of specific data points.
This image displays an admin dashboard featuring a line graph that tracks user activity
over the past 30 days. The graph likely shows the number of users or user interactions
over time, providing insights into usage trends and patterns. Additionally, there's a
stacked bar graph that visualizes the distribution of users by gender and state over the
same 30-day period. These graphs help the admin analyze user behavior and make
data-driven decisions.
NutriScanAI 47
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 48
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 49
Team ID: 103 2CEIT703: Capstone Project-III
NutriScanAI 50
Team ID: 103 2CEIT703: Capstone Project-III
13 ANNEXURE
Glossary of Terms and Abbreviations
1. Food Ingredient Detection: The process of identifying food items in an image
and extracting information about their ingredients.
2. Food Health Assessment: The process of evaluating the nutritional value and
potential health risks of food ingredients based on a predefined health
classification system.
3. Real-time Analysis: The ability to assess food ingredients and provide health
information immediately after an image is uploaded, without noticeable delay.
4. Scalability: The ability of NutriScan AI to handle a growing number of users,
food images, and data without compromising the speed or accuracy of the
analysis.
5. Robustness: The ability of a system to function correctly and reliably under
various conditions and scenarios.
6. Data Augmentation: Techniques used to artificially expand the training dataset
by applying transformations (such as cropping, rotation, or scaling) to existing
food images to improve model performance.
7. Preprocessing: The steps involved in preparing raw food image data for
analysis, including resizing, normalization, and filtering, to enhance the quality
and consistency of input data.
8. Hyperparameter Tuning: The process of adjusting the parameters of the
NutriScan AI model, such as learning rate, dropout rate, or batch size, to
optimize the system’s performance.
9. Model Training: The process of teaching NutriScan AI to recognize and
classify food ingredients through exposure to a large dataset[3] of labeled food
images and corresponding health information.
10. Deployment: The process of making NutriScan AI available for end-users,
including integrating it into a user-friendly platform and ensuring it operates
efficiently in real-world environments.
Abbreviations:
1. DBMS: Database Management System
2. GPU: Graphics Processing Unit
3. IDE: Integrated Development Environment
4. NLP: Natural Language Processing
5. QA: Quality Assurance
6. RAM: Random Access Memory
7. UX: User Experience
NutriScanAI 51
Team ID: 103 2CEIT703: Capstone Project-III
This study leveraged a combination of advanced tools and technologies from the fields
of machine learning, computer vision, and web development to build, train, and deploy
the NutriScan AI system. The following tools and libraries were utilized:
1. Python: Python is the primary programming language for this project due to its
extensive support for machine learning, deep learning, and data science. Its rich
ecosystem of libraries makes it an excellent choice for developing and
deploying AI-driven applications.
2. TensorFlow/PyTorch: These deep learning frameworks were used for building,
training, and evaluating the models in NutriScan AI. Both TensorFlow and
PyTorch offer flexible and efficient ways to implement neural networks and
benefit from GPU acceleration, which is essential for processing large volumes
of image data.
3. Sentence Transformer: It plays a pivotal role in generating semantic
embeddings for ingredient analysis. This advanced natural language processing
(NLP) model is used to convert textual ingredient descriptions into dense vector
representations. These embeddings capture the contextual and semantic
meaning of ingredients, enabling efficient similarity comparisons and
classification. By leveraging pre-trained Sentence Transformer models, the
application ensures high accuracy in identifying relationships between
ingredient terms and their associated risks.
4. EasyOCR: It is utilized as a key technology for ingredient scanning. This
lightweight and highly efficient Optical Character Recognition (OCR) library
extracts text from product labels, enabling accurate identification of ingredients
listed on packaged foods.
5. Faiss: It is employed for efficient word similarity matching and retrieval.
Developed by Facebook AI, Faiss is a powerful library for fast similarity search
and clustering of dense vectors. It enables the system to compare ingredient
embeddings (generated using Sentence Transformer) with a pre-indexed
database of harmful substances, ensuring quick and accurate identification of
potential matches.
6. OpenCV: OpenCV[2] was utilized for essential image processing tasks in
NutriScan AI, such as resizing, normalization, and image augmentation (e.g.,
random cropping, rotation, and flipping). Its highly optimized functions helped
in preparing food images for analysis.
7. Streamlit: Streamlit was chosen as the framework for building the NutriScan
AI web interface. Streamlit allows for quick and interactive web applications,
making it easy to integrate the model's functionality with a user-friendly
interface that enables real-time image uploads and analysis.
NutriScanAI 52
Team ID: 103 2CEIT703: Capstone Project-III
References
[1] Sentence Transformers Embedding
[2] EasyOCR for Optical Character Recognition
[3] USA’s FDA Dataset
[4] Cheng, H., et al. "Deep learning for food image recognition: A review." Artificial
Intelligence in Food Research (2020).
[5] Zhu, X., et al. "Deep learning for health risk classification from food-related data."
Journal of Machine Learning in Health Sciences (2020).
NutriScanAI 53
Team ID: 103 2CEIT703: Capstone Project-III
About College
U.V. Patel College of Engineering,
Ganpat University
Ganpat University-U. V. Patel College of Engineering (GUNI-UVPCE) is situated in
Ganpat Vidyanagar campus. It was established in September 1997 with the aim of
providing educational opportunities to students from It is one of the constituent
colleges of Ganpat University various strata of society. It was armed with the vision of
educating and training young talented students of Gujarat in the field of Engineering
and Technology so that they could meet the demands of Industries in Gujarat and
across the globe.
The College is named after Shri Ugarchandbhai Varanasibhai Patel, a leading
industrialist of Gujarat, for his generous support. It is a self-financed institute approved
by All India Council for Technical Education (AICTE), New Delhi and the
Commissionerate of Technical Education, Government of Gujarat. The College is
spread over 25 acres of land and is a part of Ganpat Vidyanagar Campus. It has six
ultra-modern buildings of architectural splendor, class rooms, tutorial rooms, seminar
halls, offices, drawing hall, workshop, library, well equipped departmental laboratories,
and several computer laboratories with internet connectivity through 1 Gbps Fiber link,
satellite link education center with two-way audio and one-way video link.
The superior infrastructure of the Institute is conducive for learning, research, and
training. The Institute offers various undergraduate programs, postgraduate programs,
and Ph.D. programs. Our dedicated efforts are directed towards leading our student
community to the acme of technical excellence so that they can meet the requirements
of the industry, the nation and the world at large. We aim to create a generation of
students that possess technical expertise and are adept at utilizing the technical
'know-hows' in the service of mankind.
NutriScanAI 54