Intelligent Food Recommendation System Using Machine Learning
Intelligent Food Recommendation System Using Machine Learning
ISSN No:-2456-2165
Abstract:- The buying behavior of the consumer is the desired product and then some techniques such as data
affected by the suggestions given to the items. cleaning, tokenization, frequency computation, product
Recommendations can be made in the form of a review feature frequency is used to get specific words from the set
or ranking given to a specific product. Calories of reviews. Hence, these techniques provide us with clean
consumed by people contains carbohydrates, fats, data that is required in this project. In the user logged in
proteins, minerals and vitamins, and any malnutrition page, the user is imposed with set of questions to categorize
causes severe health problems. In this paper, we propose them into any nutrition gainers such as salt, protein,
a recommendation system which is trained on the basis sugar, fat etc. Based upon the option marked, the rating is
of the recommendations received by the customer who provided to the specific user with one or more nutrition
has already used the product. Software recommends the gainers having highest rating with it. Hence based on this
product to the customer on the basis of the experience of the product is recommended to the purchasers likeliness.
the consumer using the same product. Each person has This technique provides easiest way to sort the user liking
his or her own eating patterns, based on the preferences products.
and dislikes of the user, indicating that personalized diet
is important to sustain the success and health of the user. Web Crawler implementation is based review
The proposed recommendation method uses a deep collection algorithm which must collect reviews about food
learning algorithm and a genetic algorithm to provide products and store them in this application. Questions posed
the best possible advice. to the user about nutrition remains responsible for
generating the health profile for the particular user. Product
Keywords:- Deep learning algorithm, Genetic algorithm, classification algorithm is responsible for performing data
Optimized Nutrition, Recommendation System, RESTFul cleaning, tokenization, and frequency computation. Genetic
web services, TESCO database, Web crawler. Algorithm must establish the relationship between the
product and user. Product buying module must be
I. INTRODUCTION responsible for purchase of the food products in this
application.
The numbers of e-commerce websites have been
increasing rapidly in today’s world. They have their own II. METHODOLOGY
recommendation system to be provided to the user or buyer.
Many algorithms have been used by different product The figure depicts the methodology for the project i.e.
recommendation system for providing accurate items to the it provides information about various modules involved in
users. But some recommendation system provides access to the project
all people for providing review or rating about the product
irrespective of whether the person has purchased that Registration: The customer will be able to register by
product or not. This project uses both deep learning and providing the details like first name, last name, user id,
machine learning algorithms. Genetic algorithm plays password, Email, Phone No. After all the validations are
important role in providing recommendation to buyer based performed, if user id does not exist then user is allowed
on their likeliness. This project has an added feature of to register otherwise registration fails.
custom recommendation provided mainly for the purchasers
suffering from any problems such as high blood pressure, Login: This module asks for username and password
heart attack, diabetes etc. Here the nutrition is divided into allowing the user to access the system.
five types i.e. energy, sugar, proteins, fats and salts. The
genetic information of the user or purchaser is always Grocery Product Purchase: This module allows viewing
constant but the recommendation of the products is dynamic the grocery product and completing the transactions for
so as to provide an accurate product that matches with user various categories of product namely biscuit, chocolate,
likeliness over time. Here the TESCO dataset is used to yogurt and noodle. For the transaction to be completed,
provide recommendation to the users. The reviews are user will select the product and then provide the
collected from the famous websites such as Amazon, respective details to complete the transaction.
MouthShut.com, and Flipkart for taking the review about
Java Language:
Java is an object oriented, robust programming
language. (Dot) java is the extension given to the java file.
When compiled it is converted automatically into (Dot)
class format. Compiler than compiles the source code and
then converts it into (Dot) class extension. This file now
consists of byte code that is fed to the Java Virtual Machine
(JVM). As this JVM can run on any machines such as
Linux, Windows, Unix with the byte code format of our
Fig 1:- System Methodology source code. Hence Java language is called as platform
independent i.e. it follows WORA (Write Once Run
III. SYSTEM ARCHITECTURE Anywhere) Architecture.
Various end points are shown in the above figure. The Architecture of Java Language :
web container is maintained by Apache Tomcat Server. Here Main components of Java Programming Language are
the web.xml allows only the valid request into web Java Runtime environment (JRE), Java Virtual
container. The user interface is designed with the help of Machine(JVM) and Java Development Kit(JDK). JDK
JSP, Angular JS and Ext JS. To implement business services consists of javac i.e. Java compiler etc. JDK can be used to
and the entire algorithm RESTFul Services are used. only develop or write the code but it cannot be used to
execute the code. JDK and JRE are both physical entities.
The inputs given are review collection, stop words and JRE is used to execute the code as it contains JVM in it.
keywords. The procedure involves of product buying, word JVM is a logical entity.
embedding algorithm, product classification, Genetic
algorithm for computation and recommendation provided to Spring FrameWork:
the user about the product Spring Framework is used for generating the java
application. Concepts of Spring Framework are (MVC)
Input variables consist of stop words, review collection Spring Model View Controller,(JDBC) Spring Database
and keywords. The procedure involves Processing of review Connectivity etc. Instead of manually creating the object,
collection that collects the reviews in offline mode or online We can use Spring IOC to automatically generate the object.
mode with the help of web crawler. For performing the
classification, the product has to be found, this is done with Spring MVC Framework:
the help of word embedding algorithm and product Spring MVC Framework is a model that represents
classification algorithm. The relationship has o be business logic operation and the data which is responsible
established between user and the product, this is done with for representing presentation logic. Controller acts as an
IV. RESULTS
Fig 4:- Sample List of questions
The following are the steps followed:
The request is taken from the web browser. The The above snapshot depicts the nutrition questionnaire
request will be sent to web container and validated against that is shown to the user whenever the user wants to check
the web browser. The request is then forwarded to his/her likeliness of products.
dispatcher servlet. Taking the input from dispatcher servlet
and performing the basic validations is done by controller Based on the questions the user answers he/she will be
class. If the basic validations are successful, then error given some score. These scores will be used to detect the
messages are sent back else the control moves to step5.The feature of content present in the product like sugar, salt etc.
delegate class is responsible for taking input from controller
and gives it to service and then take results and sends it to
controller. The Service class will execute the algorithms and
the business logic and takes help of either single DAO class
or multiple DAO classes to complete the job. The DAO is
responsible for communicating with MYSQL. Fig 5:- Feature Points
REFERENCES