Académique Documents
Professionnel Documents
Culture Documents
By
September 2014
Declaration
I do hereby declare that the work reported in this dissertation was exclusively carried
out by me under the supervision of Mr. Vajira Thambavita. It describes the result of
my own independent research except where due reference has been made in the text.
No part of this dissertation has been submitted earlier or concurrently for the same or
any other degree.
Date:
S.M.U.C Seneviratne
Date: ...
Supervisor
Abstract
According to the latest scientific findings, diet is a basic factor related to the human
health. In other way diet directly affects to a persons health condition. Most of
diseases of human body are occurred due to the unsuitable selection of diet. By
selecting a suitable diet, people not only can refrain from diseases but also can cure
existing diseases. Analysing a diet and getting to a decision is extremely difficult by
the general food consumers due to their less knowledge and the complexity of the
formation of current food products.
Expert Food Analysing System is an information technology based solution which
minimizes the complexity of above mentioned issue by acting as a Digital Expert in
the food analysing domain. Expert Food Analysing System is able to store the
Ayurvedic food analysing rules inside its knowledge base which are made by the
human Ayurvedic food analysing experts. The reason for choosing Ayurvedic
medicine as the knowledge base is its incomparable richness of food analyzing
theories. Food producers can register their food items with the system by providing
the information regarding content of the food items. Food consumers also can
subscribe to the system by providing a user profile which contains social and
biological information which may interact with the diet. After this process, food
consumers can introduce the registered food product to the system and retrieve Expert
suggestions regarding the diet not only based on general facts but also based on the
personal social and biological characteristics. Systems knowledge base and the
reasoning part have been implemented with CLIPS. General consumer interface has
been built as an Android application. Web application acts as the interface between
the android application and the Expert Engine. Ms SQL is used to store general
subscriber and food product related data. Expert Food Analysis System is a
software product which combines the knowledge streams in IT and Medicine. This
system not only improves the life quality of the food consumers in the society but also
create opportunities for food production industries to increase the values of their
products.
ii
Acknowledgement
I would like to take this opportunity to thank all those who helped me in making my
project a success. My sincere gratitude goes out to
My parents who provides all the facilities for the success of my life.
Mr. Vajira Thambawita, the project supervisor who gave all the guidance for
the success of this project by providing the necessary technical knowledge and
non-technical knowledge related to the project.
Dr. E. P. S. K. Ediriweera, the Head of the Department, Computer Science and
Technology degree program for his great guidance towards the academic stuff.
All the experts in the Ayurvedic Food Analysis domain who have published
their knowledge in books to be useful for the future.
All the colleagues who have provided feedbacks to implemented a more
successful system.
iii
Table of Content
Declaration
..
Abstract
..
ii
Acknowledgement .. iii
List of Figures
..
vi
Chapter 1
Introduction .
Chapter 2
Literature survey .. 4
2.1 Fooducate Healthy Weight Loss 4
2.2 Is My Food Safe
2.3 FoodSwitch 5
2.4 Food Hygiene Standards 5
2.5 Nutrition Analysis Tool (NAT) . 6
2.6 MyPlate .. 6
2.7 Critical Success Factors . 7
Chapter 3
Methodology 9
3.1 Technology adopted for Expert System
Chapter 4
11
12
12
iv
Chapter 5
13
Implementation 16
5.1 Configuration / implementation environment ...
16
Chapter 6
Chapter 7
25
References
26
List of Figures
Figure 1
System Design ..
14
Figure 2
15
Figure 3
16
Figure 4
17
Figure 5
18
Figure 6
18
Figure 7
19
Figure 8
19
Figure 9
20
Figure 10
21
Figure 11
21
Figure 12
22
Figure 13
22
vi
Chapter 1
Introduction
1.1 Background and Motivation
Diet is a main factor which directly affect for the health condition of a living being.
Most of times unsuitable diet practices are the reasons for long term diseases in the
human body. As some examples, unsuitable diet practice is the reasons for occurring
and increasing the diseases like diabetes, high blood pressure, heart diseases, cancers,
allergies, etc. By choosing the correct diet can not only save a body from numerous
diseases but also cure the existing diseases.
Suitability or unsuitability of a diet depend on numerous factors like existing diseases
of the body, age, gender, special body events like pregnancy, season of the year etc.
Apart from the human health it may be required to select a suitable diet based on the
religion and cultural facts of each person.
To identify a suitable diet(food product), it is required to analyse each and every food
component which are used to produce a complete food product. But, due to the
complexity of the formation of the food products in the current market and the less
knowledge in the food analysing domain makes it difficult to select the suitable food
product base on the above mentioned facts.
With the help of Information Technology and Ayurvedic Medicine knowledge it is
possible to identify a potential to reduce the difficulty in analysing food products.
Ayurvedic Medicine is rich with the knowledge to analysing a food product but it is
difficult to use that knowledge by the general public due to the less understanding
regarding the Ayurvedic food analysing knowledge and the less availability of the
information from the food producers regarding the food product.
1.2 Goals
Expert Food Analysis System will help the people by minimizing the complexity
when they are going to select a suitable diet based on their physical body and social
status. Selection of a suitable diet will result a healthier society which is free from
most of highly spreader diseases like Diabetes, High Blood Pressure, Heart Diseases
etc.
Expert Food Analysis System creates new business opportunities in the market. It
will create a competition among food products for their healthiness. That competition
will keep the healthy food products in the market and will create new opportunities for
new healthy food products in the food market. And also will remove the food products
which are obvious reasons for diseases.
Final outcome of this solution or in other words final goal of this product is improving
life quality of the society by combining the Medicine, Business with the Information
Technology.
Chapter 2
Literature Review
This chapter presents the literature review on various IT related systems which have
been developed for the Diet and Health domain combination.
Currently there are various systems which are related to Diet and Health domain
combination. Most of them are developed by integrating the Mobile and Web
Technology. Another obvious fact which is common to most of those system is they
are based only on western medicine. Most of current systems are seemingly based on
static information and direct information flow among food consumers, food producers
and food analysis experts is poor or not exist.
2.3 FoodSwitch
A mobile application for both Android and IOS. Users can identify food products by
scanning the barcode which are printed on food products. Application will provide
three options which can be selected according to the requirement.
FoodSwitch classic can be used for everyone looking to make generally healthier
food choices. Salt Switch mode has been designed to help people looking
specifically to lower their salt intake. GlutenSwitch mode helps people living with
coeliac disease or gluten intolerance.
Users can share healthier food choices with friends. Furthermore food switch provide
similar foods that are healthier choices.
Ref :- https://www.bupa.com.au/foodswitch#HowFoodSwitch
2.6 MyPlate
This is a web application which can be accessed through www.ChooseMyPlate.gov
which is maintained by US Dept of Agriculture. It provides services under following
categories.
Assess Your Food Intake
Online dietary assessment provides information on diet quality, related nutrition
messages, and links to nutrient information. After providing a days worth of dietary
information, users receive an overall evaluation by comparing the amounts of food
eaten to current nutritional guidance. To better understanding diet over time, visitors
can track what they eat for up to 1 year.
Assess Your Physical Activity
This physical activity assessment evaluates physical activity status and provides
related energy expenditure information and educational messages. After providing a
days worth of physical activity information, users receive an overall score for their
physical activities, which looks at the types and duration of each physical activity
performed and then compares this score to the physical activity recommendation for
health. Scores are for several days or up to 1 year.
Ref: - http://www.choosemyplate.gov/
6
Existing Systems
region.
food analysing.
Provide unique barcode by the system to
Chapter 3
Methodology
This chapter describes the technologies and the methodologies that were used to
develop the system. As the system have three sub components such as Expert system,
Web system and Mobile System, different technologies were used for them.
C# had been used for the back-end implementation of the web application. It is used
for integrate Expert System and Mobile Application together by acting as the
intermediate communicator. Database communication also implemented with C#.
Databases are implemented with MsSQL which is the default and more integrated
Database language for Microsoft technologies.
Visual Studio 2010 was used as the IDE for development of web application. It
provides development support for HTML, CSS, and JavaScript other than C# and
MsSQL.
Web application has been hosted in an IIS which is the default web server for
ASP.net.
10
3.5 Approach
The whole project is consisting of three main part as Expert System, Web Application
and Mobile application. Expert System is implemented with CLIPS and integrated to
Web application using Mommosoft library. Web application is implemented with
HTML, JavaScript, and CSS and C# in the Visual Studio 2010 environment.
Databases were created with Ms SQL. Web application is hosted in an IIS testing
server. Mobile application is developed with Java on Android platform in the Eclipse
environment. Mobile application and Web application is linked together with internet.
11
Chapter 4
12
communication will be done between mobile application and web application via
internet.
Figure 1
14
Figure 2
Figure 2 use case describes the users of the system and the services that they are
provided by the system.
15
Chapter 5
Implementation
5.1 Configuration / implementation environment
Web application should be hosted in an IIS web server where the CLIPS is installed.
Public IP of the web site should be added to the configuration file in the mobile
application. Mobile application currently can be installed only in Mobile devices
which are powered by Android. Mobile device should be included with a Camera and
Zxing barcode scanning software.
Testing environment is built locally. web application is hosted in a testing IIS server.
Mobile application and web application connected via Wi-Fi. Using a port forwarding
software to access local testing IIS server by remote devices.
Figure 3
16
Image shown below is the snapshot of the web page which can be used to add
rules and facts to the knowledge base. This page also provide functions to
delete, disable and enable existing rules in the knowledge base. This page has
a preview of real-code that is going to be appended to the knowledge base
source according to the given input.
Figure 4
Shown below is the snapshot of the page to register a food product in the
system. Food producer can provide the name of the product and the
ingredients of the products. Ingredients will be available only if it is inserted
previously by the analysis experts. After the data submission food product will
be registered if it is not already available and QR code will be generated
including an unique identification number.
17
Figure 5
Below image shows the page where the other business people can search QR
codes for others food products and print them to attach it if the product is not
available with that QR code. This is useful for products that are not shipped
with a package. (But ingredients should be shown to the customer for the
validation purpose.)
Figure 6
18
Figure 7
Shown below is the main menu in the mobile application. Five main functions
are available to each and every user.
Figure 8
19
Following is the snapshots of the activity views which are used to set-up an
user profile. It collects the users general information like country, culture,
birthday, gender, pregnancy state etc. which can be affecting to a persons diet
practices and health. Other than that it collects information related to diseases
which are suffering from and allergic food items. All this information are
based to the final diet analysis results.
Figure 9
Following are the views of after choosing the Food Analyser service from
the main menu. Initially Zxing barcode application will be deployed and user
is asked to target a QR code. When the QR code is identified analysis report
will be received if the food product is registered in the system. By matching
the food content of the received report and printed content of the package, user
can validate analysis report is applicable for the selected product.
20
Figure 10
Following images are the snapshots of the commenting function in the mobile
application. Food consumers can make comments regarding their eating
experience related to a particular product or read other peoples comments.
Figure 11
21
Following image shows the activity for searching a food product which is
suitable for a particular physical body state. In other words this option can be
used to search food products which can act as medicines for a particular
difficulty in the body.
Figure 12
Shown below is the activity view of browsing the history of the current users
diet. This option will track 20 records of name, producer, date and time,
ingredients etc. which are the food products that were eaten by the user.
Figure 13
22
Chapter 6
23
aimed to uncover design flaws that may result in data corruption, unauthorized data
access, lack of data integrity across multiple tables.
6.1.4 Feature Testing
This was done to assure whether all the required features are functioning in the way
that fulfils the expected requirements. All the major and minor functions were tested
to verify the system functions are working accordingly.
24
Chapter 7
25
References
Alwis, R. (2012). Elawalu Guna. 4th ed. Colombo: Dayawansa Jayakody and
Company.
Hemachandra, D. and Karunaratne, H. (2007). Neerogi Diviyakata Ayurvedaya. 1st
ed. Kalagedihena: Nepco Printers.
Nagodawithana, P. (2007). Sankshiptha Dravya Guna Sangrahaya. 1st ed. Colombo:
Samayawardhna Publishers.
Anon, (2014). [online] Available at: http://www.jatit.org/volumes/researchpapers/Vol4No10/5Vol4No10.pdf [Accessed 26 Sep. 2014].
CLIPSNet, (2014). CLIPSNet. [online] SourceForge. Available at:
http://sourceforge.net/projects/clipsnet/ [Accessed 26 Sep. 2014].
Clipsrules.sourceforge.net, (2014). CLIPS: A Tool for Building Expert Systems.
[online] Available at: http://clipsrules.sourceforge.net/ [Accessed 26 Sep. 2014].
Msdn.microsoft.com, (2014). MSDN Library. [online] Available at:
http://msdn.microsoft.com/en-us/library/ [Accessed 26 Sep. 2014].
Stackoverflow.com, (2014). Newest Questions. [online] Available at:
http://stackoverflow.com/questions/ [Accessed 26 Sep. 2014].
26