Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
PRELIMINARY REPORT ON
SUBMITTED BY
CERTIFICATE
This is to certify that the project report entitles
Submitted by
is a bonafide student of this institute and the work has been carried out by him/her
under the supervision of Prof. Manoj Mulik and it is approved for the partial ful-
fillment of the requirement of Savitribai Phule Pune University, for the award of
the degree of Bachelor of Engineering (Computer Engineering).
(Dr. S. B. Thakare)
Principal
Anantrao Pawar College of Engineering Research. Pune 09
Place:Pune
Date: / /2018
ABSTRACT
To determine the apps services, a situation-based design approach was adopted. Through
interviews and workshops with obese children, their parents and physicians, several require-
ments with a focus on diet behavior were identified: First, the app should recommend recipes
based on ingredients available at home, prioritize desired ingredients of the patients, and foster
a diverse meal plan based on the consumption history of previously chosen ingredients. Second,
as the users navigate. In addition to encouraging people to do more physical exercises, other
apps aim at helping people to optimize their nutrition intake. Obesity is a global issue and has
a direct impact on the public and private healthcare system. In this section we present various
examples of health applications that have the potential to support health-promoting behavior
in teenagers (for a comprehensive list of prototypes and preliminary studies on IT-supported
obesity intervention. For instance In this work we describe the design and evaluation of a novel
mobile health application that supports obese children and their parents to improve their diet in-
take. First results from quantitative app usage logs, questionnaires and interviews indicate that
the mobile health app provides relevant information to attain a balanced nutrition. A discussion
of the results and an outline of future work conclude this work.
i
ACKNOWLEDGEMENT
I express my gratitude to Prof.Manoj Mulik (HOD Computer Engg. Dept.) and Prof. Dr.
S. B. Thakare (Principal) for their kind help and cooperation. I am highly obliged to the entire
staff of the Computer Engineering Department for their kind cooperation and help.
I also take this opportunity to thank my friends and family, who backed my interest by
giving useful suggestions and all possible help.
ii
List of Figures
iii
List of Tables
iv
Contents
Abstract i
Acknowledgment ii
List of Tables iv
1 INTRODUCTION 1
1.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Problem Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Literature Survey 2
v
3.5 System Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.5.1 Database Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.5.2 Software Requirements (Platform Choice) . . . . . . . . . . . . . . . 14
3.5.3 Hardware Requirements . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.6 Analysis Models: SDLC Model to be applied . . . . . . . . . . . . . . . . . . 15
3.7 System Implementation Plan . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4 System Design 17
4.1 System Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.2 Data Flow Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.3 DFD Level 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.4 Sequence Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.5 Use Case diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.6 Class Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.7 Activity Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.8 E-R Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
5 Other Specification 26
5.1 Advantages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
5.2 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
5.3 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
vi
CHAPTER 1
INTRODUCTION
1.1 Motivation
In India, the numbers of mobile phone users are increasing at an enormous rate. As Android
became popular, there is a radical shift in the mobile phone market. On the other hand, users
have become more health-conscious and dieticians or nutrition experts are gaining prominence.
Nevertheless, people care about their familys health. So to converge all these paths into one, it
seemed that if a user can get information about a food product that the user comes across in a
supermarket, a suggestion that can help to make decision whether to buy the product and use it
or not. This can be done using a mobile phone supported with Android. This paper describes
the process and result of such an application Healthwise which has been named so to signify
main intentions.
Literature Survey
Though there exist numerous commercial offerings of applications targeting dietary improve-
ment and personal health tracking, data regarding the effectiveness of certain approaches are
better documented in academic studies, which will therefore form a foundation upon which
our product ideas are developed. Academic research in this area is very broad and often spans
multiple disciplines with research being published in the fields of pervasive and ubiquitous
computing, human computer interaction, nutrition and dietetics. The literature reviewed for
this project can be divided into 3 groups: the use of gaming to promote healthy eating, dietary
assessment using mobile aids and journaling methods incorporating phone cameras.
Research relating gaming to health has involved using various gaming mechanics to improve
user interaction and engagement in monitoring and improving their health. One method found
to educate people on nutrition is to allow them to challenge each other based on nutrition facts
in a casual social game setting. The advantage of casual social games is the ability to spur on
critical thinking outside of game play and although the game simplistic in nature, it shows the
notion of competition is a key driver that can be utilized to encourage continuous usage.
Building on the notion of casual social gaming, daily healthy water intake is shown to increase
by using a visual representation of the need to drink water in the form of a withering tree. How
healthy your tree is dependent on the amount of water consumed and results show improvement
with the visual aid both with and without other players.
This suggests the power of a visual representation to something normally that cannot be seen
such as the need for water. Although we may know we need to drink water and we may feel
thirsty, a visual cue and an external need (to save the tree from withering) is a stronger motiva-
tional tool that can push us to perform actions.
This concept is fully developed and tested through a virtual-pet based game targeted at a
younger audience. In this application, data entry is performed through images and users will
receive feedback on a -2 to 2 point scale with comments narrated by the pet. It was found that
DIETOS : Personalized Diet Companion
during the trial, children playing the game ate a healthy breakfast 52 percent of the time; kids
who didnt play it ate a healthy breakfast approximately only 20 percent of the time. Further-
more, both positive and negative feedback from the pet invokes a responsive action suggesting
that the motivational ability of the game comes from the emotional connection with the pet and
the ability to see the effects of their actions on the pet. The gaming mechanic from this study
was similar to the initial proposal for Food Fight which also revolves around the concepts of
virtual pets. However, the applications created for academic studies were not designed for pro-
longed use and thus did not consider user retention. For Food Fight, we proposed to incorporate
further gaming elements such as competition in the form of challenges for the virtual pet to
complete against friends.
Mobile Health
Tools Aside from research merging games and health, there are also a large number of studies
on using mobile devices for various uses in health and fitness. The growth of mobile phones in
recent years has allowed new methods for health-related applications to reach out to and assist
users. Saponites and Hyper fit are both studies involving a mobile application applications
serving as a reminder tool, meal planner and calorie tracker. Both of these applications contain
a large number of tools useful to the user and provide a portable and relatively easy method to
enable users to perform personal health tracking and diet management. Although user feedback
is positive, these types of applications are geared towards health conscientious users, as a signif-
icant amount of effort is required for input with no reward other than potential health gains. In
particular, the need to calculate portion sizes to enable calorie counting is a potential source of
high error to the resulting statistics shown by the application and studies have shown that calo-
rie counting/portion estimation improves if users are trained and use developed techniques. The
average user who does not have the initial motivation would unlikely to be willing to perform
these tasks and thus an application like Food Fight which is intended for all audiences must be
easy to use and require minimal effort form the user.
is the ability to segment or separate the image into different parts containing different foods
and this is clearly not possible with some meals such as seafood pasta. For these algorithms
to be used in publically distributed application, there must be contingencies in place when the
computer vision algorithms fail.
An alternative to computer vision is using crowdsourcing to perform the nutritional analysis
on the food images. In this study, a method of dividing the crowdsourcing tasks on Ama-
zon Mechanical Turk is outlined which improves the accuracy of the analysis performed by the
crowd-sourced workers. Thus, given an average user, the crowd-sourced solution would provide
a greater accuracy than if the user were to perform the portion estimation themselves. However,
a major drawback to this method is the inherent time delay between the user taking the photo
and the completion of the crowd-sourced tasks. Again, for users that are already motivated to
achieve their health goals, this would not be a major problem but for an average user without a
strong motivation, this delay would detract from their experience of the application and would
outweigh any efforts to inject interest or create engagement through game mechanics.
Literature Review
3.1 Introduction
A Software requirements specification document describes the intended purpose, requirements
and nature of software to be developed. It also includes the yield and cost of the software.
A Software Requirements Specification (SRS) is describes the nature of a project, software
or application. In simple words, SRS is a manual of a project provided it is prepared before
you kick-start a project/application. A software document is primarily prepared for a project,
software or any kind of application.
To design products that satisfy their target users, a deeper understanding is needed of their
user characteristics and product properties in development related to unexpected problems users
face. These user characteristics encompass cognitive aspect, personality, demographics, and use
behavior. The product properties represent operational transparency, interaction density, prod-
uct importance, frequency of use and so on. This study focuses on how user characteristics and
product properties can influence whether soft usability problems occur, and if so, which types.
The study will lead to an interaction model that provides an overview of the interaction between
DIETOS : Personalized Diet Companion
In total three surveys and one experiment were conducted. The first survey was a question-
naire survey to explore what usability problems users experienced in the Netherlands and South
Korea. This study resulted in the categorization of soft usability problems. The second sur-
vey investigated how user characteristics are related to the occurrence of specific soft usability
problems. Finally, an experiment was conducted to find out how user characteristics are corre-
lated to specific soft usability problems depending on type of product in the USA, South Korea
and the Netherlands. Based on the findings from the studies, an interaction model (PIP model:
Product-Interaction-Persona model).were developed which provides insight into the interaction
between user characteristics, product properties, and soft usability problems. Based on this PIP
model a workshop and an interactive tool were developed. Companies can use the PIP model
to gain insights into probable usability problems of a product they are developing and the char-
acteristics of those who would have problems using the product.
Validation
The PIP model was validated in the companies involved in the project to see how it is used
in the product development process and what should be improved. The validation also included
workshops in which designers in the companies could experience and learn how the findings
and the model and the tool are applicable to their design process.
This protocol is implemented in Java language .We also use HTTP/TCP/IP protocols.
Java has had a profound effect on the Internet. The reason for this is Java expands the
universe of objects that can be about freely on the Internet. There are two types of objects we
transmit over the network, passive and dynamic.
Network programs also present serious problems in the areas of security and portabil-
ity. When we download a normal program we risk viral infection. Java provides a firewall to
overcome these problems. Java concerns about these problems by applets. By using a Java
compatible Web browser we can download Java applets without fear of viral infection.
• Object Oriented: Java purists everything is an object paradigm. The java object model is
simple and easy to extend.
• Multithreaded: Java supports multithreaded programming which allows you to write pro-
grams that do many things simultaneously.
• Distributed: Java is designed for the distributed environment of the Internet because it
handles TCP/IP protocols.
• Reusability
• Performance
• Proper output
This application has been divided into three modules: Requirement module, Nutrition module,
and Exercise module.
Requirement Module
This module contains functions to create user profiles, update user profiles and store them in
phones storage area. When the user installs the application, welcome screen is displayed with
options to create a profile. User can do so by using a form provided and is stored in phones
Database. Once the profile is created, there is an option to update or delete the profile. For ev-
ery action, suitable toast messages are popped up to help the user. The database contains tables
such as Nutrition Requirements for an individual, product information, a daily log to keep log
of users consumption information and exercise chart that contains suggested exercises to burn
calories.
Exercise Module
This module has functions to store the exercises and the calories they burn, and fetch proper
exercise to burn the calories which the user has gained in excess.
• Compliance
• Documentation
• Disaster recovery
• Efficiency
• Effectiveness
• Extensibility
• Fault tolerance
• Interoperability
• Maintainability
• Privacy
• Portability
• Quality
• Reliability
• Reliability
• Resilience
• Response time
• Robustness
• Scalability
• Security
• Stability
• Supportability
• Testability
• Response Time
• Workload
• Scalability
• Platform
• Memory:- 2 GB or above
• It will execute all commands like DML, DDL and DCL as well as we required some
security measurements for sql injection.
Front End
• Android, java
Back-End
• SQLite
• Memory:- 2 GB or above
At the end of the iteration, a working product is displayed to the customer and important stake-
holders.
System Design
• To design and implement a system which can recommend the food and diet for users
according to given input parameters.
DIETOS : Personalized Diet Companion
• Good nutrition is an important part of leading a healthy lifestyle. Combined with physical
activity, your diet can help you to reach and maintain a healthy weight, reduce your risk
of chronic diseases (like heart disease and cancer), and promote your overall health.
• We will be using the K-means algorithm for clustering of the diet plan.
Other Specification
5.1 Advantages
• It is popular nutrition apps and to compare their strategies and technologies for dietary
assessment and user feedback.
5.2 Limitations
We acknowledge that the Google Play Store and the iTunes App Store have different app-
ranking systems and market share. Hence, using the lowest number of reviews for the included
Google Play Store apps as a threshold for including apps from the iTunes App Store may not
reflect the number of downloads from the iTunes App Store. It is difficult to directly compare
app popularity between the two stores, as the number of downloads from the iTunes App Store
is not publically available. As the Google Play Store does not provide the exact number of
installs, it is possible that some apps in the range 500,000-1m could have approached 1 million
installs. The criteria used to select the apps were based on the number of installs and reviews.
Using these variables alone, it was not possible to identify the frequency and duration of use
of these apps. This information would be valuable to measure the real engagement of the users
and determine if they would accept the burden of text searching and barcode scanning for a
prolonged period. It would also be interesting to assess the percentage of users that upgraded to
the premium versions of the apps. Since it is not possible to measure the upgrades, the premium
versions were not considered popular and their extra functionalities were not included in this
review. A similar limitation occurred with the WW app, which requires a subscription [9]. Since
the functionalities of these apps change rapidly, it is recommended that a similar assessment be
conducted in the future
DIETOS : Personalized Diet Companion
5.3 Applications
• Food Recommender.
• MyGymFood Application
The high number of installs indicates that there is a clear interest and opportunity for diet mon-
itoring and recommendation using mobile apps. All the apps collecting dietary intake used the
same nutrition assessment method (ie, food diary record) and technologies for data input (ie,
text search and barcode scanner). Emerging technologies, such as image recognition, natural
language processing, and artificial intelligence, were not identified. None of the apps had a
decision engine capable of providing personalized diet advice.
Future Work
To implement a system in different platform like iphone, web applications as well as various
technologies.
DIETOS : Personalized Diet Companion
Appendix A:
If there is difference with x, it means eTime is max or high that x time, we can say that system
is has categorized into NP Hard system
If there is difference with x, it means eTime is min or lower that x time, we can say that system
is has categorized into NP Complete system According to above case 1, 2 and 3 our system has
classified into NP complete on the basis of below equation.
∞
elapsed[time] = ∑ (e[time]) (6.1)
n=1
∞
f (x) = ∑ (e[time]) (6.2)
n=1
is the constant of existing systems time, it might be constant? Here For the proposed
system, we define p as x time for execution of proposed system with all operations. The system
has executed under the x time, that why the proposed system is NP Complete system. Basically,
our p is considerable polynomial time and whole system complete the execution, behalf of the
x time.
So, we can conclude base on below statement.
and our analysis graphs fulfill the proposed statement as true. The proposed problem is NP
complete problem.
There are two types of problems: Polynomial (P):
The system accepts input, and we get the output in fixed polynomial time, the input large or
small, or simple or complex. Applications of polynomial type are rare. One such example is
hash table. A hash table finds index for a data to be inserted in fixed amount of time because its
uses hash function to find index. So, for finding index 1 or 100 the time is fixed, which is not in
case of sequential search for index.
Our application is not of type P because if does not give result in fixed polynomial time.
Non-Polynomial (NP):
There are two sub-types of NP Problems:
1. NP-Hard:
The system accepts input, but there is no guarantee that we will get the output. Such systems do
not exist because no one will use the system if there is no guarantee the system works for any
inputs. Hence our application is again not of NP-Hard type because we want to build a system
that never fails and guarantees output.
2. NP-Complete:
Our application is NP-Complete. The system accepts input, and we get the output in variable
non-polynomial time. Almost all or maximum systems are of NP-Complete type. Even our
application is of NP complete type because it guarantees output but not in fixed amount of time.
Now our output time varies because of the input. In our system user can get file in variable time
interval depending upon file size. If attribute set is matched with owners attribute set than only
file will be accessible to user. This is done in variable time.
Thus in our application there is guarantee that we get output. Hence our application is NP-
complete.
Appendix B:
[1] A. Grimes, V. Kantroo and R. E. Grinter, ”Let’s play!: Mobile health games for adults,”
in Proceedings of the 12th ACM International Conference on Ubiquitous Computing, 2010, pp.
241-250.
[2] M. C. Chiu, S. P. Chang, Y. C. Chang, H. H. Chu, C. C. H. Chen, F. H. Hsiao and J. C. Ko,
”Playful bottle: A mobile social persuasion system to motivate healthy water intake,” in Pro-
ceedings of the 11th International Conference on Ubiquitous Computing, 2009, pp. 185-194.
[3] J. Pollak, G. Gay, S. Byrne, E. Wagner, D. Retelny and L. Humphreys, ”It’s Time to Eat!
Using Mobile Games to Promote Healthy Eating,” Pervasive Computing, IEEE, vol. 9, pp. 21-
27, 2010.
[4] K. Patrick, W. G. Griswold, F. Raab and S. S. Intille, ”Health and the mobile phone,” Am.
J. Prev. Med., vol. 35, pp. 177, 2008.
[5] B. M. Silva, I. M. Lopes, J. J. P. C. Rodrigues and P. Ray, ”SapoFitness: A mobile health
application for dietary evaluation,” in E-Health Networking Applications and Services (Health-
com), 2011 13th IEEE International Conference On, 2011, pp. 375-380.
[6] P. Jarvinen, T. Jarvinen, L. Lahteenmaki and C. Sodergard, ”HyperFit: Hybrid media in
personal nutrition and exercise management,” in Pervasive Computing Technologies for Health-
care, 2008. PervasiveHealth 2008. Second International Conference On, 2008, pp. 222-226.
[7] C. K. Martin, S. D. Anton, E. York-Crowe, L. K. Heilbronn, C. VanSkiver, L. M. Redman,
F. L. Greenway, E. Ravussin and D. A. Williamson, ”Empirical evaluation of the ability to learn
a calorie counting system and estimate portion size and food intake,” Br. J. Nutr., vol. 98, pp.
439-444, 2007.
[8] F. Kong and J. Tan, ”DietCam: Automatic dietary assessment with mobile camera phones,”
Pervasive and Mobile Computing, 2011.
[9] F. Zhu, M. Bosch, I. Woo, S. Y. Kim, C. J. Boushey, D. S. Ebert and E. J. Delp, ”The use
of mobile devices in aiding dietary assessment and evaluation,” Selected Topics in Signal Pro-
cessing, IEEE Journal Of, vol. 4, pp. 756-766, 2010.
[10] J. Noronha, E. Hysen, H. Zhang and K. Z. Gajos, ”Platemate: Crowdsourcing nutritional
analysis from food photographs,” in Proceedings of the 24th Annual ACM Symposium on User
Interface Software and Technology, Santa Barbara, California, USA, 2011, pp. 1-12.