Research Scientists, AI Group Sam Brody, Sichao Wu, Adrian ...
Ai Group Project
-
Upload
vidur-sharma -
Category
Documents
-
view
223 -
download
0
Transcript of Ai Group Project
-
7/31/2019 Ai Group Project
1/27
INTRODUCTION
For our Introduction to Artificial Intelligence project we have developed an Automated
Dietitian. A dietitians job is to guide people in eating the right food. The diet plays a vital part in
the physical well being of a person.
-
7/31/2019 Ai Group Project
2/27
IDENTIFICATION
Automated dietician is an expert system that will give a specific diet depending on a
persons body mass index (BMI). The kiosk of this system will be set up in gyms and hospitals.
As diets are important part of keeping healthy and fitness many people who dont have the time
to go make an appointment with a dietician can use the system free of cost at their gym or at their
hospital.
People would want to use the system because they dont have to wait in long queues to
consult a dietician or make appointments and would have to pay no consultation fee. People can
use it in their regular visits to the hospital or the gym.
BENEFITS OF AUTOMATED DIETICIAN
1. Time saving.2. Easily accessible for the user.3. Free of cost.4. Can be used regularly and more frequently.5. Is available 24/7.
Minimal expenses have to be made for the setting of Kiosk. It will not require much space and
can be placed in small areas. It can be implemented in small clinics who cannot afford a
specialist in diets.
-
7/31/2019 Ai Group Project
3/27
PROBLEM SPECIFICATION
AIM
The aim of our Automated Dietician is to provide a fast and free alternative to consulting
dieticians.
DOMAIN EXPERT
Doctors and dieticians are the domain experts for our system.
USERS
People who goes to gym and visit the hospitals.
PROJECT TEAM
1. Team Leader : Vidur Sharma2. Knowledge Managers : Ahmed Imthinan Faroog
Arun Das K
Mohamed Shifan
3. Programmer : Abhijit Pal
-
7/31/2019 Ai Group Project
4/27
ANALYSIS OF PROBLEM DOMAIN
For analysing the problem domain we took into account the problems faced by the patients and
people who might have a weight problem and conducted an interview with a professional
dietician.
One talking to patients an people who visit the gym we found that the all their problems revolved
around time and costs.
Problem 1:
People dont have the time to make regular visits to the dietician for them to get regular updates
on their Body to Mass ratio, and the best diet.
Problem 2:
Every time a person visits a dietician he or she has to pay a consultancy fee, which turns out to
be very expensive.
Problem 3:
Many people are not even aware of the role of having a good diet plays on your health.
Problem 4:
People usually take it easy and feel its not important for them to visit a dietician as they think its
not worth the effort, when nothing is wrong.
-
7/31/2019 Ai Group Project
5/27
EXPERT INTERVIEW
An interview with a an expert on nutrition and diets was conducted for identifying the domain
problem and also for knowledge acquisition, which will be discussed later in the documentation.
We asked the dietician questions around what he sees as the main problems faced by dieticians
and what could help him to provide better service to the people and would a system like this help
people on keeping healthy.
On conducting the interview our main findings were
1. The main problem the dietician faces is time; the dietician doesnt have enough time tofor every patient, as he is packed with appointments throughout the day. This sometimes
might lead to a misdiagnosis or the dietician might miss out on something
2. People get a little uncomfortable when asked about their personal habits and lives.3. Most people are very conscious about their weight.4. Some people might be embarrassed to share these problems.5. One of the biggest problems expressed by the dietician is that people are mostly ignorant
about what they eat, and might not think they have a problem. People feel that going to a
dietician is a waste of time if you are not fat or overweight.
6. The Dietician felt that a system like this might be very useful as people would feel morecomfortable as no one will be judging them
7. He also expressed the importance of keeping a regular check on your diet.
-
7/31/2019 Ai Group Project
6/27
-
7/31/2019 Ai Group Project
7/27
The Virtual Dietician has a very limited knowledge base. It can only respond to choices made by
the users and take around those areas.
We have taken into account the merits and demerits of both these system and attempted to
incorporate it in our system. Our system will be:
Quick in giving advice diets Will give a full diet. It will be able to check for special cases, like deities or hypertension or allergies.
-
7/31/2019 Ai Group Project
8/27
Knowledge Acquisition
Strategy
Our Knowledge Acquisition was done mainly on four fronts
i. Field visitsii. Searching the internetiii. Library visitsiv. Expert opinion
1. Field Visits
We visited few gyms and hospitals to talk to the people about their diets, and conducted
survey and handed out simple questionnaires about what people felt about visiting a
nutritionist or a dietician. We also took this opportunity to interview a few people.
Survey
-
7/31/2019 Ai Group Project
9/27
-
7/31/2019 Ai Group Project
10/27
4) Sex Male Female
5) Age years
6) Weight (kg) kg
7) Height (cm) cm
8) Middle (cm) cm
9) Hips (cm) cm
10)Do you smoke?
11)Do you Exercise?
12)Type of exercise?
13)How much alcohol do you consume?
14)Please list any cronic illnesses, if any
15)Family History of Diabetes
16)Do you suffer from any of the following?
Stomach cramps Constipation Diarrhoea
-
7/31/2019 Ai Group Project
11/27
Reflux Heartburn Excess Gas Food Intolerance Food Allergies Any other?
17)Have you been on any slimming Diets? Yes No
18)Is your weight fluctuating? Yes No
19)List current medication
20)List current supplements
21)Do you cook with Buttero Oilo Margarine
22)What do you usually have for breakfast?
23)What do you usually have for Lunch?
24)What do you usually have for Dinner?
25)What do you snack on? Morning Afternoon Late Night
-
7/31/2019 Ai Group Project
12/27
26)How much of the following do you consume?Per Day Per Week
i. Milk
ii. Fat Free
iii. Full Cream
iv. 2% Fat
v. Yoghurt
vi. Fat Free
vii. Low Fatviii. Fruit
ix. Fresh
x. Dehydrated
xi. Canned
xii. Juice
xiii. Vegetables
-
7/31/2019 Ai Group Project
13/27
xiv. Cooked
xv. Raw
xvi. Bread
xvii. White
xviii. Brown
xix. Seed or Whole Grain
Talking with the people
On talking to the people in gyms and people visiting hospitals we learnt that people dont have
the time to visit a nutritionist as often as they would like to. They supported the idea of having a
fast and easy way to get a healthy diet.
While dealing with the general public we did not face those many problems. People were
generally supportive and enthusiastic. This was mostly because it dealt with the health and well
being of the people and when it comes to ones well being people are usually very supportive.
2. Internet researchWith the help of the world wide web we were able to acquire knowledge about the
different types of diets for different conditions, like people who are underweight or
-
7/31/2019 Ai Group Project
14/27
overweight. A lot of the information was derived from this source. Most of the diets were
found on the internet.
There was a lot of information available on the net. We had a problem choosing which
was the best out of the lot and which was the most genuine.
3. Library visitsThe library visits were not very helpful as it is difficult to find information for such topics
in a business school.
We faced problems in acquiring knowledge from library sources as there were limited
options on the subject.
4. Experts Opinion
Dealing with the experts was the toughest part of knowledge acquisition. We felt a bit of
hostility and general lack of support from them. This was because they didnt want to
help create something that is being made with the scope to replace them. Despite this we
were able to find an open minded dietician who was open to the idea of a system
providing people diets and helping them keep healthy. Dr. Pandian, Medical Registrar of
ADK hospital, Maldives, was kind enough to provide his assistance. We were able to
formulate an ideal diet with his help.
He also helped us in giving us an insight of the mentality of the people who visit a
dietician and the different aspects involved in being a dietician. He gave us a list of
frequently asked questions by the patience which was very helpful in creating our
knowledge base.
For Example:
-
7/31/2019 Ai Group Project
15/27
Which meal should be your largest?
What foods can help you grow?
What is the best way to lose weight?
What food is essential in a persons deit
As Dr. Pandian is set up in Maldives we had problems setting up proper interviews and
communicating with him on regular bases. We were able to work around this by
conducting video conferencing and keeping in touch via email.
-
7/31/2019 Ai Group Project
16/27
Evaluation of Prototype
Expert opinion
As our expert wasnt available we were not able to give him a working prototype of our
system. To our best we explained to him how it would work and what it would do.
According to Dr. Pandian when it comes to medicine and AI, a computer could never
fully replace a human doctor as it would lack the basic sense and would lack the ability to
make assumption based on factors that might go unnoticed if a computer system is
diagnosing. A doctor has to make some assumptions based on the how a patient reacts.
Sometimes patients tend to hide information from doctors.
On the other hand he supported the idea of a system that might give a very simple
diagnosis or in our case a simple diet.
With respect to our system he had made a few suggestions.
a) The system should not demine anyone or be insulting in anyways as it deals witha sensitive topic.
b) System should take into account the users medical history, i.e. if he or she isallergic to any food or has diabetes or hyper tension
c) It should be able to hold a large knowledge based) What are the best foods to eat before and after a workout?e)
Performance/Achievement
The system runs smoothly and is able to produce diets for the chosen condition. Still there is a lot
of scope for improvement. There were some problems at first. Verbot was not able to comply.
-
7/31/2019 Ai Group Project
17/27
Loading the data base takes longer than expected because of the size of the knowledge base.
Other than that there are some minor unrecognisable twitches.
Once the system loads it is able to run smoothly. All the calculations are swift and it is quick to
respond to the user.
Future Development
There is tremendous scope for improvement in the system. Due to time constrains we couldnt
make our knowledge base as strong and complete as we would have wanted to. More conditions
could have been added, for example making specific meals for allergies. Responding to more
queries the user might have. Nutrition advice is a very vast subject and it would take a lot of time
and effort for someone to create a complete dietician system.
-
7/31/2019 Ai Group Project
18/27
Conclusion
Automated Dietician could be a big success if more time is given for development.
People could be made more aware of what they eat and what effect it has on their body
and health. With fast food and junk food being the most popular type of food today, a
system such as ours is direly needed to keep in check the health of the people. Most
people are under the misconception that if you are not overweight you are healthy. Being
health is very different from being thin. A good diet with the right amount of nutrients is
needed to keep the body healthy.
If given the time and resources the Automated Dietician would be able to
a. Help anyone with any medical condition to make a diet planb. Eliminate the need of going to a dieticianc. Provide scheduled check-up routines
-
7/31/2019 Ai Group Project
19/27
Workload Matrix
Tasks Abijith PalAhmed
Imthinan
Faroog
Arun DasMohamed
Shifan
Vidur
Sharma
Identification + +
ProblemSpecification
+ +
Analysis ofProblem Domain +
Literature Survey + +
KnowledgeAcquisition + +
Evaluation of
Prototype + +
Conclusion + +
Program Code + +
Installation Manual +
User Manual +
Workload Matrix + +
-
7/31/2019 Ai Group Project
20/27
Installation manual
1. Install Verbot2. Copy and paste the whole folder name automated dietician to C:\ drive.
3. Open Verbot player, go to file in the main menu and go to load knowledge base. SelectC:\automated dietician\AI.vkb
4. If installed correctly automated dietican will say:-Hello! Welcome to automated Dietician.I am Christina, what is your name?
-
7/31/2019 Ai Group Project
21/27
Flow chart
-
7/31/2019 Ai Group Project
22/27
Program code
data2.csvmood.vrpsynonym.vsn
RuleName:_startupInputText:_startupOutputText:Hello!WelcometoautomatedDietician.IamChristina,whatisyourname?
RuleName:mynameis[name]InputText:mynameis[name]InputText:[name]InputText:i'm[name]InputText:iam[name]OutputText:Hello[name],Pleaseenteryourheightandweight(incmandkg)tocalculateyourBMI
RuleName:WhatismynameInputText:(Whatis)mynameInputText:doyouremembermeInputText:rememberme
InputText:doyouknowmeOutputText:yournameis[name:friend]RuleName:heightandweightInputText:#height#weightOutputText:YourBMIis#bmiandyouare#def.Doyouwanttoseemyrecommendeddiets?
RuleName:(yes)InputText:(yes)OutputText:Ihavesomanydiets.Whattypeofdietsdoyouwanttosee,dietsforoverweightornormalweightorunderweight?
RuleName:underweightInputText:underweightOutputText:ForUnderweightIrecommendyoutotakeForBreakfast1/2cupinstantoatmeal1miniwholewheatbagel:1Tbsppeanutbutter
1mediumbanana1cuplow-fatmilkForLunch3/4cupchickensalad:*2sliceswholewheatbread1TbspDijonmustardsalad:1/2cupfreshcucumberslices1/2cuptomatowedges1Tbspsunflowerseeds1tspItaliandressing,lowcalorie1/2cupfruitcocktail,juicepackForDinner1cupspaghetti:
3/4cupvegetarianspaghettisauce*3TbspParmesancheesespinachsalad:1cupfreshspinachleaves1/4cupfreshcarrots,grated1/4cupfreshmushrooms,sliced1Tbspvinaigrettedressing1/2cupcorn,cookedfromfrozen1/2cupcannedpears,juicepackRuleName:normalweightInputText:normalweight
-
7/31/2019 Ai Group Project
23/27
OutputText:FornormalweightIwillrecommendyoucontinuewiththesamedietyouhavebeentaking.RuleName:overweightInputText:overweightOutputText:ForOverweightIwillrecommendyoutotakeForBreakfast1mediumbananacupofskimmilk
ForLunch2slicestomatoglassofbuttermilk2chapathisForDinnercupGreenvegetablesaladSproutswithlimejuice1cupVegetablesoup
RuleName:(no)InputText:(no)OutputText:Doyouhaveanyquestionsthatyouwanttoaskme?RuleName:*InputText:*OutputText:iamsorry[name].Ireallyneeda"yes"or"no"answer.
RuleName:(yes)
InputText:(yes)OutputText:Ihavesomanydiets.Whattypeofdietsdoyouwanttosee,dietsforoverweightornormalweightorunderweight?
RuleName:underweightInputText:underweightOutputText:ForUnderweightIrecommendyoutotakeForBreakfast1/2cupinstantoatmeal1miniwholewheatbagel:1Tbsppeanutbutter1mediumbanana1cuplow-fatmilkForLunch3/4cupchickensalad:*2sliceswholewheatbread1TbspDijonmustardsalad:1/2cupfreshcucumberslices1/2cuptomatowedges1Tbspsunflowerseeds1tspItaliandressing,lowcalorie1/2cupfruitcocktail,juicepackForDinner1cupspaghetti:3/4cupvegetarianspaghettisauce*3TbspParmesancheesespinachsalad:1cupfreshspinachleaves1/4cupfreshcarrots,grated1/4cupfreshmushrooms,sliced1Tbspvinaigrettedressing1/2cupcorn,cookedfromfrozen1/2cupcannedpears,juicepackRuleName:normalweightInputText:normalweightOutputText:FornormalweightIwillrecommendyoucontinuewiththesamedietyouhavebeentaking.RuleName:overweightInputText:overweightOutputText:ForOverweightIwillrecommendyoutotakeForBreakfast1mediumbanana
-
7/31/2019 Ai Group Project
24/27
cupofskimmilkForLunch2slicestomatoglassofbuttermilk2chapathisForDinner
cupGreenvegetablesaladSproutswithlimejuice1cupVegetablesoup
RuleName:(no)InputText:(no)OutputText:Doyouhaveanyquestionsthatyouwanttoaskme?
RuleName:*InputText:*OutputText:Pleaseenteryourcorrectheightandweight(incmandkg)tocalculateyourBMI(Forexample:12356)
RuleName:heightandweightInputText:#height#weightOutputText:YourBMIis#bmiandyouare#def.Doyouwanttoseemyrecommendeddiets?
RuleName:(yes)InputText:(yes)OutputText:Ihavesomanydiets.Whattypeofdietsdoyouwanttosee,dietsforoverweightornormalweightorunderweight?
RuleName:underweightInputText:underweightOutputText:ForUnderweightIrecommendyoutotakeForBreakfast1/2cupinstantoatmeal1miniwholewheatbagel:1Tbsppeanutbutter1mediumbanana1cuplow-fatmilkForLunch3/4cupchickensalad:*2sliceswholewheatbread1TbspDijonmustardsalad:1/2cupfreshcucumberslices1/2cuptomatowedges1Tbspsunflowerseeds1tspItaliandressing,lowcalorie1/2cupfruitcocktail,juicepackForDinner1cupspaghetti:3/4cupvegetarianspaghettisauce*3TbspParmesancheesespinachsalad:1cupfreshspinachleaves1/4cupfreshcarrots,grated1/4cupfreshmushrooms,sliced1Tbspvinaigrettedressing1/2cupcorn,cookedfromfrozen1/2cupcannedpears,juicepackRuleName:normalweightInputText:normalweightOutputText:FornormalweightIwillrecommendyoucontinuewiththesamedietyouhavebeentaking.RuleName:overweightInputText:overweightOutputText:ForOverweightIwillrecommendyoutotakeForBreakfast1mediumbananacupofskimmilkForLunch
-
7/31/2019 Ai Group Project
25/27
2slicestomatoglassofbuttermilk2chapathisForDinnercupGreenvegetablesaladSproutswithlimejuice1cupVegetablesoup
RuleName:(no)InputText:(no)OutputText:Doyouhaveanyquestionsthatyouwanttoaskme?RuleName:*InputText:*OutputText:iamsorry[name].Ireallyneeda"yes"or"no"answer.
RuleName:(yes)InputText:(yes)OutputText:Ihavesomanydiets.Whattypeofdietsdoyouwanttosee,dietsforoverweightornormalweightorunderweight?
RuleName:underweightInputText:underweightOutputText:ForUnderweightIrecommendyoutotakeForBreakfast1/2cupinstantoatmeal1miniwholewheatbagel:
1Tbsppeanutbutter1mediumbanana1cuplow-fatmilkForLunch3/4cupchickensalad:*2sliceswholewheatbread1TbspDijonmustardsalad:1/2cupfreshcucumberslices1/2cuptomatowedges1Tbspsunflowerseeds1tspItaliandressing,lowcalorie1/2cupfruitcocktail,juicepackForDinner1cupspaghetti:3/4cupvegetarianspaghettisauce*3TbspParmesancheesespinachsalad:1cupfreshspinachleaves1/4cupfreshcarrots,grated1/4cupfreshmushrooms,sliced1Tbspvinaigrettedressing1/2cupcorn,cookedfromfrozen1/2cupcannedpears,juicepackRuleName:normalweightInputText:normalweightOutputText:FornormalweightIwillrecommendyoucontinuewiththesamedietyouhavebeentaking.RuleName:overweightInputText:overweightOutputText:ForOverweightIwillrecommendyoutotakeForBreakfast1mediumbananacupofskimmilkForLunch2slicestomatoglassofbuttermilk2chapathisForDinnercupGreenvegetablesalad
-
7/31/2019 Ai Group Project
26/27
Sproutswithlimejuice1cupVegetablesoup
RuleName:(no)InputText:(no)OutputText:Doyouhaveanyquestionsthatyouwanttoaskme?
RuleName:whatisyournameInputText:whatisyourname
OutputText:I'amChirstinaRuleName:seeyoulaterInputText:seeyoulaterInputText:laterInputText:goodbyeOutputText:okay.goodbyeRuleName:GoodbyeInputText:(Goodbye)InputText:(iam)goingtogoInputText:(iam)goingtogonowInputText:(iam)outofhereInputText:BecauseIhavetogonowInputText:Iamgoingnowseeyoulater.InputText:Ihavetogonow
InputText:ImustbegoingnowInputText:IwillbebacklaterInputText:IwillcatchyoulaterOutputText:LaterOutputText:Ok,byeOutputText:SeeyounesttimeOutputText:Thankyouforusingme.HaveanicedayRuleName:*(default)InputText:*OutputText:Askmeaneasyquestion?likehowtolossfatOutputText:I'llhavetothinkaboutthat.OutputText:Ididn'tquiteunderstantthat.Trysayingitanotherway.OutputText:Sorry[name].Idon'tknowwhatyouaretalkingabout?OutputText:That'sanewoneOutputText:Whatelsedoyouwanttoknow?OutputText:Whywouldyousaythat?OutputText:wow:-Oyoumustbesmart.Yousureconfusedmethere.OutputText:Askmeaneasyquestion?likedietsfordiabetesRuleName:diabetesInputText:*diabetesInputText:*diabeticsInputText:*lossweightdiabetesInputText:*lossweightdieabiticsOutputText:Congratulations:-Oontakingsomeverypositivefirststepstowardahealthierlifestyle!Includingexerciseinyourdailyroutinewilldefinitelyimproveyourhealth,andisalsoagreatsteptowardweightloss.Asyoucontinuetoexerciseeveryday,youwilllikelyseeyourenergylevelsincreaseandyou'llprobablystarttofeelbetter.Becauseofyourfamilyhistory,youhaveanincreasedriskofdevelopingdiabetes.Beingoverweightcancontributetothedevelopmentofinsulinresistanceanddiabetes,soyoudefinitelyneedtoaimforahealthyweight.Losingweightwillhelpyourcellsfunctionmorenormallyandwillhelptheinsulininyourbodytodoitsjobmoreeffectively.Everypersonisverydifferent,andthismeansthateachperson'sdietaryneedsareveryunique.Herearesomegeneraltipsonimprovingyourdiettohelpyouachieveahealthfulweight: eatmorefruitsandvegetableseveryday choosefoodsthatarelowinsaturatedfatandcholesterol,andmoderateintotalfat,saltandsugar makeatleasthalfofyourgrainswhole eatawidevarietyoffoods,andincludefoodsfromeveryfoodgroupDecreasingtheamountofcaloriesyouconsumeeverydaywillcertainlyhelpyouloseweight,butit'sbesttogetindividualizedadviceonjusthowmanycaloriesyouneedeveryday.Forthisreason,Irecommendthatyoutalkwithyourhealthcareprovideraboutareferraltoaregistereddietitian.Throughindividualizedcounseling,aregistereddietitiancan
-
7/31/2019 Ai Group Project
27/27
helpyouloseweighthealthfully,helpyousteerclearoffaddietsandcreateaweightlossplanthatfitsyourlifestyleandhelpsyoureachyourgoals.RuleName:fatlossInputText:*fatlossInputText:*lossfatOutputText:Nothingtoonewhere.Makesurefolksarecuttingbackonrefinedcarbsandboostingupleanproteinsandfats.Somefairlynewresearchshowsfishoil,oromega-3's,mayboostfatloss.Mealtimingisimportant,alongwithqualityof
nutrients.;-)Ihavemoretipsdoyouwantmoretips?
RuleName:(yes)InputText:(yes)OutputText:1.Intervalsarekey--meaningshortduration,sprinttypeactivitiesthatskyrocketyourheartrateandkeepitelevated.Haveyouseenthephysiquesofprofessionalsprinters?Enoughsaid.2.Incorporatetheentirebodyduringweightworkouts.It'sthebestwaytokeepyourheartrateelevated,whilealsostimulatingagreatdealofmusclemass.Soforgettricepskickbacks,lateralraises,andwristcurls...youneed"big"movements,likesquats,cleans,deadlifts,chins,bench,etc.3.Thisisnottooadvanced,butuseful.Self-monitor.Youcan'ttrackwhatyou'redoingifyou'renotmonitoringwhatyou'reputtinginyourmouthandhowyou'retraining.
RuleName:[blankone]and[blanktwo]aredifferentthingsInputText:[blankone]and[blanktwo]aredifferentthings
OutputText:Howis[blanktwo]different?OutputText:Iknewthatinfo;-pRuleName:_blankInputText:_blankOutputText:pardonme?OutputText:iamsorry?