Group 9 Project Report
Group 9 Project Report
to
the APJ Abdul Kalam Technological University
in partial fulfillment of the requirements for the award of the Degree
of
Bachelor of Technology
in
Artificial Intelligence and Data Science
2023 - 2024
DECLARATION
Place: Kuttippuram
AAYSHA B SHUKOOR
Date: 29/04/2024
AMAL NIAN K
ASWINI SUNIL KUMAR
JENNA FATHIMA
DEPARTMENT OF ARTIFICIAL INTELLIGENCE AND DATA
SCIENCE
MES COLLEGE OF ENGINEERING, KUTTIPPURAM
CERTIFICATE
It is with great pleasure that we express our deep sense of gratitude to our project
guide, Ms. Vishnupriya M V, Assistant Professor, Department of Artificial
Intelligence and Data Science, for her guidance, supervision, encouragement and
valuable advice in each and every phase.
We would also like to express our sincere thanks and gratitude to all staff
members of the department, our friends and family members for their cooperation,
positive criticism, consistent support and consideration during the preparation of this
work.
AAYSHA B SHUKOOR
AMAL NIAN K
ASWINI SUNIL KUMAR
JENNA FATHIMA
i
ABSTRACT
Nutrimate is an innovative AI companion designed to revolutionize personal health
and wellness management by integrating real-time food calorie counting and person-
alized exercise recommendations. The system employs advanced machine learning
algorithms to accurately analyze and identify the nutritional content of consumed
food through image recognition or manual input. Nutrimate’s robust database en-
compasses a wide range of food items, enabling users to effortlessly track their daily
caloric intake.The AI companion not only focuses on calorie counting but also con-
siders individual health goals, dietary preferences, and physical activity levels. Nu-
trimate utilizes this information to generate personalized exercise recommendations,
ensuring a holistic approach to health and fitness. The system adapts and refines its
suggestions over time based on user feedback, creating a dynamic and responsive
user experience.Key features of Nutrimate include a user-friendly interface, real-time
updates, and integration with wearable devices for accurate activity tracking. The
platform promotes a proactive and sustainable approach to health by empowering
users with insightful analytics, progress tracking, and motivational feedback. Nutri-
mate aims to inspire healthier lifestyle choices, enhance user awareness, and foster a
sense of accountability in achieving and maintaining optimal health and well-being.
ii
CONTENTS
ACKNOWLEDGEMENT i
ABSTRACT ii
LIST OF FIGURES vi
ABBREVIATIONS vii
Chapter1. INTRODUCTION
Chapter2. LITERATURE SURVEY
Chapter3. SYSTEM ANALYSIS
3.1 Functional Requirments . . . . . . . . . . . . . . . . . . . . 10
3.2 User Experience And Feedback Loop . . . . . . . . . . . . 11
3.3 User Requirement Specification . . . . . . . . . . . . . . . 11
3.3.1 User Profile And Authentication . . . . . . . . . . . 11
3.3.2 Real-Time Food Calorie Counter . . . . . . . . . . . 12
3.3.3 Exercise Recommendation System . . . . . . . . . . 12
3.3.4 Disease Prediction And Health Monitoring . . . . . . 13
3.4 System Specification . . . . . . . . . . . . . . . . . . . . . 13
3.4.1 Hardware Specification . . . . . . . . . . . . . . . . 14
3.4.2 Software Specification . . . . . . . . . . . . . . . . 14
Chapter4. DESIGN AND DEVELOPMENT
4.1 Architecture Diagram . . . . . . . . . . . . . . . . . . . . . 15
4.2 System Architecture . . . . . . . . . . . . . . . . . . . . . 15
4.2.1 Data Collection . . . . . . . . . . . . . . . . . . . . 15
4.2.2 Data Preprocessing . . . . . . . . . . . . . . . . . . 17
4.2.2.1 Feature Selection . . . . . . . . . . . . . . . . . . 18
4.2.2.2 Balancing Of Data . . . . . . . . . . . . . . . . . 19
4.2.3 Training . . . . . . . . . . . . . . . . . . . . . . . . 19
4.2.3.1 TensorFlow . . . . . . . . . . . . . . . . . . . . . 19
4.2.3.2 Keras . . . . . . . . . . . . . . . . . . . . . . . . 20
4.2.4 Webscrapping . . . . . . . . . . . . . . . . . . . . . 22
4.2.4.1 Requests For Data Retrieval . . . . . . . . . . . . 22
4.2.4.2 Regular Expression For Data Extraction . . . . . . 22
4.3 Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.3.1 Convolutional Neural Network(CNN) . . . . . . . . 22
4.3.2 K-Nearest Neighbour(KNN) . . . . . . . . . . . . . 24
4.3.3 Decision Tree . . . . . . . . . . . . . . . . . . . . . 24
4.3.4 Calorie Calculator . . . . . . . . . . . . . . . . . . . 25
Chapter5. CODING
5.1 Front End . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.1.1 HTML . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.1.2 CSS . . . . . . . . . . . . . . . . . . . . . . . . . . 27
5.1.3 JavaScript . . . . . . . . . . . . . . . . . . . . . . . 28
5.1.4 Bootstrap . . . . . . . . . . . . . . . . . . . . . . . 28
5.2 Back End . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.2.1 Python . . . . . . . . . . . . . . . . . . . . . . . . . 28
5.2.2 MySQL . . . . . . . . . . . . . . . . . . . . . . . . 29
5.2.3 Django . . . . . . . . . . . . . . . . . . . . . . . . . 30
Chapter6. IMPLEMENTATION
6.1 Application . . . . . . . . . . . . . . . . . . . . . . . . . . 31
6.2 Functionalities . . . . . . . . . . . . . . . . . . . . . . . . 31
6.2.1 Real-time Calorie Counting . . . . . . . . . . . . . . 31
6.2.2 Exercise Recommendations . . . . . . . . . . . . . . 33
6.3 Performance Measure . . . . . . . . . . . . . . . . . . . . . 33
Chapter7. TESTING AND MAINTENANCE
7.1 Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
7.1.1 Unit Testing . . . . . . . . . . . . . . . . . . . . . . 34
7.1.2 Integration Testing . . . . . . . . . . . . . . . . . . 34
7.1.3 Validation Testing . . . . . . . . . . . . . . . . . . . 35
iv
7.1.4 Output . . . . . . . . . . . . . . . . . . . . . . . . . 35
7.1.5 Testing Strategies . . . . . . . . . . . . . . . . . . . 35
7.2 System Maintenance . . . . . . . . . . . . . . . . . . . . . 36
Chapter8. CONCLUSION AND FUTURE WORK
REFERENCES
LIST OF FIGURES
vi
ABBREVIATIONS
vii
CHAPTER 1
INTRODUCTION
time food calorie counter and exercise recommendation system. In a world where the
prehensive solution that seamlessly integrates artificial intelligence into the daily rou-
tines of users. This cutting-edge application harnesses the power of machine learning
The core functionality of Nutrimate centers around its real-time food calorie
counter, empowering users to effortlessly track their daily nutritional intake with pre-
cision. The application employs image recognition technology, enabling users to snap
pictures of their meals, instantly analyzing and logging the nutritional composition.
This not only simplifies the tracking process but also enhances user engagement by
lored to individual fitness levels, preferences, and health goals. The AI companion
takes into account user profiles, activity levels, and dietary habits to curate a dynamic
support through social integration. Users can connect with like-minded individuals,
1
ity and motivation. Furthermore, the platform continually evolves through machine
learning, adapting to user feedback and refining its recommendations over time. Nu-
trimate envisions a future where technology not only facilitates healthy living but
individuals from all walks of life can seamlessly integrate Nutrimate into their daily
just a functional tool but a friendly and approachable guide on the journey to better
ing down barriers that often deter individuals from embracing healthier lifestyles.
users follow specific diets, such as vegan, keto, or gluten-free, or have unique nu-
tions. The AI algorithm not only analyzes the macronutrient composition of meals
ticated and reliable tool for those seeking precise health management.
2
CHAPTER 2
LITERATURE SURVEY
help the technology [1] nowadays to keep improving and provide a reliable system for
the people to use. In this paper, two different image classification systems; Convolu-
tional Neural Network (CNN) and Residual Neural Network (ResNet) were proposed
in order to recognize six food classes; Apple, Orange, Avocado, Milo, Vico and Koko
based on color features. Then, the overall performance for both classifications were
analyzed in the end of this paper. Datasets of food images were collected from vari-
ous sources consisting 400 images for each food classes to test the robustness of each
classification system. The data were split into 60% training data, 20% validation data
and 20% testing data. The system that is proposed in this paper consist of 4 layers
for Convolutional Neural Network (CNN) while Residual Neural Network (ResNet)
consist of 50 layers. The color feature extraction that is involved for both classifica-
tions, RGB values (Red, Green, Blue) are highly considered in order to determine the
category of the food. Overall, this experimental results on food recognition showed
100% training accuracy and 98.67% overall testing accuracy for CNN while 99.87%
method can recommend more suitable exercises to students according to the cate-
gory they belong to. Firstly, we use linear regression and EM algorithm to accurately
model the students’ mastery of each knowledge point. For each knowledge point, stu-
3
dents are divided into several categories according to their mastery of the knowledge
point and their average mastery of all knowledge points. For each knowledge point,
according to the student history answer record, find out the exercise that can make
each kind of student get bigger promotion respectively. For the students who need to
recommend the exercises that contain the specified knowledge points, we first use the
k-nearest neighbor algorithm to classify the students, and then recommend the exer-
cises suitable for the students. It has been proved by experiments that this method
can help students to achieve greater improvement in the same number of exercises.
e-Health Monitoring System with Diet and Fitness Recommendation using Ma-
chine Learning. Nowadays, more individuals are being diagnosed [3] with diseases
that are becoming chronic due to not following the proper diet, not doing proper ex-
ercise regularly, or not giving proper attention to the diseases because of busy sched-
ules. Hence, we propose a system that aims at improving the health of the patients
suffering from various diseases by recommending them healthier diet and exercise
plans by analyzing and monitoring health parameters and the values from their latest
reports related to the disease. We considered patients suffering from either Diabetes
or Blood pressure or Thyroid. Our System can be essentially useful for the doctors to
recommend diet and exercise based on their latest reports and personal health details.
For this, we have broadly classified our system into 2 modules: 1. Health Monitor-
ing, 2. Diet and Exercise Recommendation. In the Health Monitoring module, the
system would suggest follow-up sessions until the reports come normal. For the Diet
and Exercise Recommendation module, the algorithm that is used is a Decision tree
4
exercise. A C4.5 Decision tree will help recommend and determine if a particular
food item and exercise should be given to a particular individual or not with respect
Machine Learning Model. Recent studies have shown that robust [4] diets rec-
diet based cloud system can increase longevity, protect against further disease, and
improve the overall quality of life. However, medical personnel are yet to fully un-
a deep learning solution for health base medical dataset that automatically detects
which food should be given to which patient base on the disease and other features
like age, gender, weight, calories, protein, fat, sodium, fiber, cholesterol. This re-
search framework is focused on implementing both machine and deep learning al-
gorithms like, logistic regression, naive bayes, Recurrent Neural Network (RNN),
Multilayer Perceptron (MLP), Gated Recurrent Units (GRU), and Long Short-Term
Memory (LSTM). The medical dataset collected through the internet and hospitals
consists of 30 patient’s data with 13 features of different diseases and 1000 products.
Product section has 8 features set. The features of these IoMT data were analyzed and
further encoded before applying deep and machine and learning-based protocols. The
performance of various machine learning and deep learning techniques was carried
and the result proves that LSTM technique performs better than other scheme with
97.74% accuracy using LSTM deep learning model. Similarly 98% precision, 99%
5
recall and 99% F1 -measure for allowed class is achieved, and for not-allowed class
Yourcare: A diet and fitness recommendation system using machine learning al-
in the world today. The advancement of machine learning has given rise to sev-
eral automation systems and technologies like intelligent gaming, automotive cars,
environmental solutions health care, etc. The paper focuses on the development of
machine learning algorithms for a productive and functional health care system. The
algorithms focused are employed in creating a system for recommending diet and
fitness plans. One such algorithm in which we approach is the K-Means Clustering
algorithm. This technique provides the diet and exercise routine with to the dataset
trained. Therefore, our approach has helped in building the system in specialized
way. Moreover, the system’s preciseness and accuracy are compared with different
tem. Interval training has been [6]shown to improve the physical and psychological
method for formulating and tailoring an optimized interval training protocol for a
specific individual that maximizes the amount of calories burned while limiting fa-
protocol must also provide motivation for repetitious and tedious exercises necessary
to improve a patient’s adherence. This paper presents a system that efficiently formu-
6
lates an optimized interval training method for each individual by using data mining
schemes on attributes, conditions, and data gathered from individuals exercise ses-
sions. This system uses accelerometers embedded within iPhones, a Bluetooth pulse
oximeter, and the Weka data mining tool to formulate optimized interval training
protocols and has been shown to increase the amount of calories burned by 29.54%
behavioral cueing system that uses music and performance feedback to provide moti-
through sensor readings, we are able to play songs that match the user’s workout
rates the user’s music preferences and the exercise speed to enhance performance.
son’s Dis- ease From Clinical and Genetic Data. The paper focuses on the ap-
plication [7]of machine learning to predict impulse control disorders (ICDs) in indi-
viduals with Parkinson’s disease. The study employs a combination of clinical and
the early identification of ICDs in Parkinson’s patients, allowing for proactive inter-
vention and personalized care. The research highlights the growing role of machine
Predictive Analytics for Chronic Kidney Disease Using Machine Learning Tech-
niques. The paper explores the application of [8] machine learning techniques in
7
predicting chronic kidney disease (CKD). The authors employ predictive analytics
to analyze relevant data and develop models capable of identifying potential cases
ease. The integration of machine learning in healthcare showcases the potential for
and Machine Learning. The paper addresses the application of image process-
ing [9] and machine learning techniques in the automated detection of dermatologi-
cal disorders. The authors explore the intersection of technology and healthcare by
research likely delves into the development of a system capable of identifying and
tion. Such interdisciplinary efforts showcase the potential for technology to enhance
Using Machine Learning algorithms for breast cancer risk prediction and diag-
nosis. The paper addresses the application [10] of machine learning algorithms in
predicting and diagnosing breast cancer. The authors likely explore the integration of
advanced computational techniques to analyze relevant data for assessing the risk of
breast cancer and aiding in the diagnostic process. The research signifies the role of
8
of breast cancer, and highlights the potential for technology to contribute to more
9
CHAPTER 3
SYSTEM ANALYSIS
fering real-time food calorie counting, exercise recommendations, and disease pre-
diction. The system aims to empower users in making informed decisions about their
tines, and predict potential health risks. The project integrates seamlessly into users’
daily lives, providing personalized and dynamic support to enhance their overall well-
being.
The core functionality of Nutrimate revolves around three main features: real-
time food calorie counting, exercise recommendations, and disease prediction. The
real-time food calorie counter employs image recognition and nutritional databases
to accurately assess the caloric content of meals, ensuring users have precise infor-
mation about their dietary intake. The exercise recommendation system employs ma-
fitness levels, preferences, and health goals. Additionally, the disease prediction mod-
ule analyzes user data, lifestyle choices, and genetic predispositions to provide early
10
3.2 User Experience And Feedback Loop
engagement and positive health outcomes. The user interface is designed to be in-
tuitive, visually appealing, and easily navigable. The system incorporates user feed-
back loops, allowing individuals to provide input on the accuracy of food recogni-
ous learning algorithms analyze this feedback to enhance the system’s accuracy and
tailor recommendations further. Regular updates and improvements are rolled out
based on user insights, ensuring Nutrimate evolves with user needs and technological
tive is to empower users in making informed decisions about their nutrition, physical
activity, and overall well-being. Nutrimate will leverage advanced artificial intelli-
gence algorithms to analyze dietary habits, track caloric intake, suggest personalized
exercise routines, and predict potential health risks based on user data.
system. Users will be required to create accounts with secure authentication mech-
anisms, allowing them to input and update their demographic information, dietary
11
preferences, health history, and fitness goals. This information will serve as the basis
ally, Nutrimate will prioritize user privacy, employing encryption methods and adher-
The core feature of Nutrimate will be its real-time Food Calorie Counter, enabling
users to effortlessly log and monitor their daily food intake. The system will support
manual entry and image recognition for food items, with the AI accurately estimat-
ing caloric content. Nutrimate will maintain an extensive food database, continually
updated with nutritional information. Integration with popular food databases and
barcode scanners will streamline data input. The application will present users with
intuitive visualizations of their daily, weekly, and monthly caloric consumption, pro-
individual preferences, fitness levels, and health objectives. Users can input their
preferred workout styles, time constraints, and fitness equipment availability. The
progress. Integration with wearables and fitness trackers will enhance accuracy in
tracking physical activity. Regular feedback and motivational prompts will encourage
12
3.3.4 Disease Prediction And Health Monitoring
Nutrimate will employ machine learning algorithms to analyze user data for poten-
tial health risks and disease predictions. By considering factors such as family his-
tory, lifestyle choices, and existing health conditions, the system will provide proac-
tive insights into potential health concerns. Users will receive personalized health
hance the accuracy of disease prediction and promote a holistic approach to preven-
tive healthcare. Regular updates and improvements to the algorithm will ensure that
ification lists all necessary requirements if met will offer better optimum software
usability.
• Software specification
• Hardware specification
13
3.4.1 Hardware Specification
ware are installed on the server on which the portal is hosted, as well as on clients
For the proposed system to work properly, it is necessary that following soft-
• Framework : Flask/django
14
CHAPTER 4
DESIGN AND DEVELOPMENT
the architecture diagram that predicts the disease based on the input symptoms.
The system architecture gives an overview of the working of the system. The
which contains patient details. Feature selection process selects the useful attributes
for the prediction of heart disease. After identifying the available data resources,
they are further selected, cleaned, made into the desired form. Different classification
Initially, dataset is collected for the food image classification. After the collection of
the dataset, it is split into training data and testing data. The training dataset is used
for prediction model learning and testing data is used for evaluating the prediction
model. In this project, 80% of training data is used and 20% of data is used for
testing.
15
Figure 4.1: Architecture Diagram
• This dataset is used to study the relationship between diet and health.
16
• Heart disease dataset
Data pre-processing is an important step for the creation of a machine learning model.
Initially, data may not be clean or in the required format for the model which can
the required format. It is used to deal with noises, duplicates, and missing values of
the dataset. Data pre-processing has the activities like importing datasets, splitting
datasets, attribute scaling, etc. Preprocessing of data is required for improving the
17
1. OpenCV for Object Detection: OpenCV is employed for object detection,
OpenCV functions, the system can preprocess food images by resizing them
Leveraging NumPy arrays, the system organizes and manages this data effec-
as the computation of total calories consumed based on user input. Its array-
Together, OpenCV and NumPy contribute to the robustness of the data pre-
processing pipeline, ensuring that the images are appropriately processed for
Attribute or Feature selection includes the selection of appropriate attributes for the
prediction system. This is used to increase the efficiency of the system. The Correla-
18
4.2.2.2 Balancing Of Data
Imbalanced datasets can be balanced in two ways. They are Under Sampling and
Over Sampling.
of the size of the ample class. This process is considered when the amount of
data is adequate.
size of the scarce samples. This process is considered when the amount of data
is inadequate.
4.2.3 Training
4.2.3.1 TensorFlow
TensorFlow acts as the backbone for training models that can recognize food items
in images, understand user descriptions, and perform calculations for calorie esti-
mation. Its versatility and robust capabilities make it a valuable tool for creating a
(CNN) for image recognition. The CNN learns from a dataset of food images,
for automatically identifying and categorizing what kind of foods are present
in user-uploaded images.
19
2. Calorie Estimation (TensorFlow for Calculations):
Once the food items are recognized, TensorFlow helps in estimating the calorie
values with different food categories and sum up the total calorie content of a
TensorFlow is used to train an NLP model. This model processes and under-
and their corresponding calorie information, the NLP model becomes capable
of extracting relevant details from user inputs, enhancing the system’s ability
tion from both sources, allowing the system to provide personalized exercise
4.2.3.2 Keras
Keras, as part of the TensorFlow ecosystem, simplifies the design and training of neu-
ral networks. It’s particularly useful for predicting calorie content based on diverse
input features, making it a valuable tool for creating models and to design a neural
network to predict the calorie content of different foods based on input features like
images or vitals.
20
1. Design Neural Network with Keras:
Define the architecture of the network, specifying the number of layers, types
more user-friendly.
2. Input Features:
mation, perhaps) that influence the prediction of calorie content. Keras allows
you to easily handle different types of input data, making it versatile for tasks
With Keras, train the neural network using a dataset that includes input fea-
tures (images or vitals) along with corresponding calorie content labels. The
network learns to associate these features with the correct calorie values during
4. Calorie Prediction:
Once the neural network is trained, it can predict the calorie content of different
foods based on new input features. Whether it’s an image of the food or specific
a level of accuracy determined by the quality and quantity of the training data.
21
Keras allows for easy fine-tuning of the model. You can optimize its perfor-
4.2.4 Webscrapping
Utilize the ”requests” library to fetch data from online databases or APIs that offer
detailed information about food items, including their calorie content. Employ ”re-
quests” to extract relevant data from websites that provide nutritional information on
various foods. This involves making HTTP requests to retrieve data from these online
sources.
Leverage Regular Expressions to extract specific information from web pages, such
as calorie counts and exercise details. Regular Expressions are powerful tools for pat-
tern matching and capturing relevant data. Use Regular Expressions to validate and
ensure the accuracy of the scraped data, reducing errors in the food calorie counter.
This helps in filtering and extracting precise details from the raw HTML or text ob-
4.3 Algorithms
learning, distinguished by its ability to directly learn intricate patterns from data,
22
Figure 4.3: User interface of calorie counter System
eliminating the need for manual feature extraction. Particularly adept at discerning
patterns in images to recognize objects, faces, and scenes, CNNs transcend traditional
image-focused applications.
time series, and signal data. In the context of the real-time food calorie counter, CNNs
are instrumental in the analysis of images depicting various food items. Leveraging
convolutional layers, these networks extract relevant features from input images, al-
lowing the model to discern and accurately classify different food items.
This capacity for automatic feature extraction makes CNNs indispensable for
tasks where intricate patterns and details within images are crucial for accurate recog-
23
4.3.2 K-Nearest Neighbour(KNN)
vitals, and health conditions. To ensure consistent analysis, feature scaling is ap-
plied, standardizing or normalizing the various features within the dataset. KNN, a
It identifies the k individuals with the most similar dietary and health profiles to
the target person, forming the nearest neighbors. The uniqueness of KNN lies in
its personalized approach, as it formulates a diet chart based on the dietary plans of
these k nearest neighbors. Moreover, the algorithm takes into account health consid-
and vitals.
This personalized and adaptive nature of KNN makes it a valuable tool for tailor-
sidering not only dietary preferences but also specific health constraints and require-
ments.
The Decision Tree model employed in this project utilizes a dataset comprising health
the most important features. At each node, decisions are made on which feature to
use for further splitting, creating branches that lead to subsequent nodes.
24
Figure 4.4: Calorie Calculator
The terminal nodes, or leaves, of the tree serve as endpoints where specific dis-
eases are predicted based on the input features. During the prediction process, new
cases traverse the tree, navigating through nodes until reaching a leaf that ultimately
predicts the likely disease. One significant advantage of decision trees lies in their
interpretability.
interpret the logic behind predictions. This transparency enhances the model’s util-
ity by providing insights into how specific health features and symptoms contribute
healthcare scenarios.
The calorie calculator Figure 4.3 uses a variety of data sources to estimate the number
of calories burned during exercise. The calculator takes into account factors such as
the user’s age, weight, gender, and activity level. It also considers the type of exercise
and the duration of the workout. The calorie calculator can be used to help users track
25
their calorie intake and expenditure. This information can be used to set weight loss
or gain goals, and to ensure that users are getting the right amount of exercise.
• Phone: The phone contains a variety of sensors that can be used to track the
• Background services: The background services on the phone collect data from
• Database: The database contains information about the user’s age, weight, gen-
identify when the user is shaking their phone. This information can be used to
• Convert to calorie: The convert to calorie algorithm uses the data from the sen-
sors and the database to estimate the number of calories burned during exercise.
26
CHAPTER 5
CODING
5.1.1 HTML
The HyperText Markup Language or HTML is the standard markup language for
documents from a web server or from local storage and render the documents into
multimedia web pages. HTML describes the structure of a web page semantically
and originally included cues for the appearance of the document. HTML elements
are the building blocks of HTML pages. With HTML constructs, images and other
objects such as interactive forms may be embedded into the rendered page. HTML
text such as headings, paragraphs, lists, links, quotes, and other items.
5.1.2 CSS
Cascading Style Sheets (CSS) is a style sheet language used for describing the pre-
nerstone technology of the World Wide Web, alongside HTML and JavaScript.CSS
colors, and fonts. This separation can improve content accessibility, provide more
tiple web pages to share formatting by specifying the relevant CSS in a separate .css
file which reduces complexity and repetition in the structural content as well as en-
27
abling the .css file to be cached to improve the page load speed between the pages that
share the file and its for- matting. Separation of formatting and content also makes
it feasible to present the same markup page in different styles for different rendering
5.1.3 JavaScript
5.1.4 Bootstrap
5.2.1 Python
28
keywords frequently whereas other languages use punctuation, and it has fewer syn-
at run-time by the interpreter. Users do not need to compile the program before ex-
ecuting it. This is similar to PERL and PHP. Python is an Interactive User who can
sit at a Python prompt and interact with the interpreter directly to write programs.
guage Python is a great language for beginner-level programmers and supports the
browsers to games.
5.2.2 MySQL
ter, and ”SQL”, the abbreviation for Structured Query Language. A relational database
organizes data into one or more data tables in which data types may be related to each
other; these relations help structure the data. SQL is a language programmers use to
create, modify and extract data from the relational database, as well as control user
computer’s storage system, manages users, allows for network access, and facilitates
software under the terms of the GNU General Public License and is also available
under a variety of proprietary licenses. MySQL was owned and sponsored by the
29
Swedish company MySQL AB, which was bought by Sun Micro-systems.
5.2.3 Django
Django is a high-level Python web framework that simplifies the process of building
web applications by providing a robust set of tools and features. Django includes fea-
URL routing system, a templating engine, and a built-in administrative interface. de-
velopers can quickly create database driven websites or web applications by focusing
on writing Python code rather than dealing with repetitive tasks like database man-
agement or user authentication. Its design promotes clean and maintainable code,
making it popular among developers for projects of all sizes, from simple websites to
30
CHAPTER 6
IMPLEMENTATION
6.1 Application
ules ii) User modules Admin modules contains complete details of user, food intake
consumed and maintains left out calorie. It manages required calorie for a day by
BMR, food database by adding, updating food items to the list with appropriate calo-
rie, carbohydrates, fats, protein values and quantity. User modules inputs parameters
like age, gender, weight, height and activities for calculating BMR. Later, User can
only view his calorie status and suitable workout or diet plan. i)System testing: Pro-
posed system modules are tested independently to calculate required calorie by BMR
calculation and consumed calorie by using food intake list. It results the left out calo-
rie by using required and consumed calories. Finally, it displays calorie status based
on BMR module and Food intake module as input. Below tables 6.1,6.2,6.3 are the
6.2 Functionalities
Imagine snapping a picture of your lunch and instantly receiving its calorie
count. Nutrimate’s real-time calorie counting feature harnesses the power of com-
puter vision. By analyzing food images, the app estimates calorie content, stream-
lining the logging process and eliminating the need for manual searching through
databases. This innovative approach saves time and ensures accuracy, allowing users
31
Figure 6.1: Test case for Sign-up
32
to focus on healthy eating habits.
cise recommendations. By considering user goals and activity levels, the app tailors
workout routines to individual needs. This personalized approach ensures users are
seamlessly integrates with fitness trackers, allowing users to monitor progress and re-
ceive suggestions for adjustments based on real-time data. With Nutrimate, exercise
User Adoption: This measures how many people use Nutrimate and how fre-
quently they engage with it. This could be tracked by logins, usage time, or com-
pleted features. Calorie Tracking Accuracy: This evaluates how well Nutrimate’s
calorie counting aligns with actual food calorie content. This might involve user
fectiveness: This measures if the recommended exercises help users achieve their
fitness goals. This could involve user feedback, progress tracking, or integration with
fitness trackers. Emotional Wellbeing Impact: This assesses if Nutrimate helps users
manage emotions related to food and exercise. This could involve user surveys, sen-
timent analysis of user interactions, or integration with mood tracking tools. User
33
CHAPTER 7
TESTING AND MAINTENANCE
7.1 Testing
System testing makes a logical assumption that verifies the part of the system
is correct. A good test uncovers an undiscovered error. Testing is the final verifica-
tion and validation activity within the organization itself. During testing, activities
are concerned with the examinations and modifications of the source code. Testing
• Unit Testing
• Integration Testing
• Validation Testing
• Output
Unit testing is an essential part of the verification of the goal and testing the internal
logic of the modules. Errors were noted down and corrected immediately, which
increases the clarity of the code. The testing was carried out during the programming
The second level of testing is the systematic testing of constructing structures. The
goal is to see if the modules are integrated between the modules. This testing activity
34
can be considered as testing the design and emphasizes testing module interaction.
It need not be the case that software when run individually showing results will also
The next level of testing is validation testing. Here the entire software is tested.Thereference
document for this process is the requirement and the goal is to see if the software
meets its requirements. The requirement document reflects and determines whether
the software functions as the user expected. Data validation checking is done to see
whether the corresponding entries made in different tables are done correctly. Proper
validation checks are done in case of in- insertion and updating of tables, to see that
7.1.4 Output
The output of the software should be acceptable to the system user. The output of the
requirement is defined during the system analysis. Testing of the software system is
done against the output and the output testing was completed with success.
The testing strategy identifies what levels of testing are to be applied. It also decides
test cases, test specifications, and test case designs, and puts them together for ex-
ecution. There are different types of software testing strategies depending upon the
nature and size of the software. This is an ideal test case comprised of testing the
35
7.2 System Maintenance
involves real-time food calorie counting and exercise recommendation, several key
aspects need attention. Here’s a maintenance checklist to keep the system running
smoothly:
• Regular Updates: Ensure that the system is updated regularly with the latest
nutritional data, exercise routines, and any bug fixes or feature enhancements.
• Data Integrity: Continuously monitor and update the food database to ensure
accuracy in calorie counts and nutritional information. Validate data from reli-
• Security: Regularly audit and update security measures to protect user data
authentication methods.
• Bug Tracking and Fixing: Maintain a system for tracking and prioritizing
reported bugs. Promptly address and fix any issues to prevent disruptions in
service.
36
• Scaling Infrastructure: Monitor system usage patterns and scale infrastruc-
ing performance.
• Backup and Disaster Recovery: Implement regular backups of data and have
tests, and user acceptance testing, to identify and address any issues early in
• User Education and Support: Provide users with resources, such as tutorials
and FAQs, to maximize the benefits of the system. Offer responsive customer
By consistently addressing these aspects of maintenance, you can ensure the re-
37
CHAPTER 8
CONCLUSION AND FUTURE WORK
seeking to manage their nutritional intake and exercise routines effectively. Lever-
aging advanced technologies such as TensorFlow for image recognition, natural lan-
guage processing, and Keras for neural network design, the system provides accurate
calorie estimations for diverse foods and offers personalized exercise recommenda-
tions based on user inputs. The integration of web scraping techniques using the ”re-
quests” library and Regular Expressions ensures the system’s database is populated
This project not only facilitates a user-friendly experience by allowing image up-
loads and natural language descriptions but also prioritizes accuracy in calorie esti-
mation through robust machine learning models. The combination of these features
several key features and improvements have been proposed. Firstly, the system aims
database through regular updates from online sources, user contributions, and part-
bot that provides instant advice and clarification on nutritional queries, offering users
38
gagement, the system will implement features encouraging users to share achieve-
ments, challenges, and recipes within the platform, with the introduction of gamifi-
cation elements for a more enjoyable and motivational health and fitness journey.
recognition and natural language processing, is crucial for improving accuracy and
39
REFERENCES
[1] Anis Nasuha Mohd Zulfikri, Farah Yasmin Abdul Rahman, Shahrani Shabud-
din and Roslina Mohamad, ”Food Recognition based on Deep Learning Al-
(ISIEA).
[2] Zhizhuang Li, Haiyang Hu, Zhipeng Xia, Jianping Zhang, Xiaoli Li, Zisihan
nologies (ICALT).
[3] Divya Mogaveera, Vedant Mathur and Sagar Waghela, ”e-Health Monitoring
System with Diet and Fitness Recommendation using Machine Learning”, 2021
[4] Celestine Iwendi, Suleman Khan, Joseph Henry Anajemba, Ali Kashif Bashir
dation System Through Machine Learning Model”, IEEE Access ( Volume: 8).
Computers.
40
[7] Johann Faouzi , Samir Bekadar, Fanny Artaud , Alexis Elbaz , Graziella Man-
(MITiCON-2016).
[9] Soumya Sourav, Nikhil Garg , Yasha Hasija, “Automated Detection of Derma-
(ICISS 2017).”
[10] Anusha Bharat, Pooja N, R Anishka Reddy, ”Using Machine Learning algo-
rithms for breast cancer risk prediction and diagnosis“, 2018, IEEE Third In-
41