Design of Smart Watch For Eating Tracking Control Report
Design of Smart Watch For Eating Tracking Control Report
Fall - 2019
Team Members
Project Advisor:
There are no devices that tracks and quantifies food consumption. Inspired by the idea of fit-
bit smart watches, we will be designing a smart watch prototype that will be to count and track
eating bites. It will be relying on IMU sensors, a controller and vibration motors/
accelerometers to count the bites. Moreover, this project will be something towards proper
health of the person wearing the watch since it would keep record of the food consumption and
give statistics to see if a healthy routine is followed or not.
1
Acknowledgement
First of all, we would like to express our appreciation to our advisor Dr. Nassim Khaled
for his continued support in our project and his sincere encouragement. Also, we express our
sincere thanks to our professors in the faculty of Engineering for their expertise and guidance.
We would like to extend our thanks and appreciation to Dr. Faramarz Djavanroodi, chair of the
Mechanical Engineering Department at PMU, for his continuous encouragement and to believe
in us and our abilities to carry out such a project that clearly tests us and challenges us to hone
and use our gained knowledge through the year. Lastly, we thank our parents for the unceasing
encouragement, support, and attention as because of their moral support we are able to stand
tall at such a position.
2
List of Acronyms
x x-axis
𝒚 y-axis
z z-axis
t Time
T Period
θ Angle
3
List of Figures
4
List of Tables
5
Table of Contents
Chapter # 1: Introduction .................................................................................................................................... 7
1.1 Project Definition ................................................................................................................................ 7
1.2 Project Objectives ............................................................................................................................... 7
1.3 Project Specifications.......................................................................................................................... 7
1.4 Project Applications............................................................................................................................ 9
Chapter # 2: Literature Review ........................................................................................................................ 10
2.1 Project Background .......................................................................................................................... 10
2.2 Previous Work ................................................................................................................................... 10
2.3 Comparative Work ........................................................................................................................... 11
Chapter # 3: System Design ............................................................................................................................... 13
3.1 Design Constraints and Design Methodology ................................................................................. 13
3.2 Engineering Design Standards ......................................................................................................... 15
3.3 Theory and Theoretical Calculations .............................................................................................. 15
3.4 Product Subsystems and selection of Components ......................................................................... 18
3.5 Manufacturing and Assembling (Implementation) ........................................................................ 19
Chapter 4: System Testing and Analysis .......................................................................................................... 23
4.1 Experimental Setup, Sensors and data acquisition system ............................................................ 23
4.2 Results, Analysis and Discussion ........................................................................................................... 24
Chapter 5: Project Management ....................................................................................................................... 26
5.1 Project Plan ...................................................................................................................................... 26
5.2 Contribution of Team Members ..................................................................................................... 28
5.3 Project Execution Monitoring ......................................................................................................... 30
5.4 Challenges and Decision Making .................................................................................................... 31
5.5 Project Bill of Materials & Budget ................................................................................................. 32
Chapter 6: Project Analysis ............................................................................................................................... 33
6.1 Life-Long LearningS ....................................................................................................................... 33
6.2 Impact of Engineering Solutions ..................................................................................................... 34
6.3 Contemporary Issues Addressed .................................................................................................... 35
Chapter 7: Conclusion & Future Recommendations ...................................................................................... 36
7.1 Conclusion ......................................................................................................................................... 36
7.2 Future Recommendations................................................................................................................ 36
8. References .................................................................................................................................................. 37
Appendix A: Progress Reports………………………………………………………………………………….38
Appendix B: Engineering Standards…………………………………………………………………………...44
Appendix C: Cad Drawing and Bill of Material……………………………………………………………….45
Appendix D: Prototype Pictures………………………………………………………………………………...46
Appendix E: Operational Manual………………………………………………………………………………47
Appendix F: Gantt Chart………………………………………………………………………………………..48
6
Chapter # 1: Introduction
Our project may seem like something that is aimed to do one thing which is to
track eating but instead there are a couple of other relevant objectives that we plan to
achieve which as well are:
(ii) To measure the rate of which the person eats food or take bites.
(iii) To keep a record of eating habits that will be translated into a health tracking and
metabolism.
7
Bluetooth using connection between MCU atmega328p and Bluetooth module HC-05
via UART.
Figure # 1: S-Watch
8
1.4 Project Applications
Based on the idea and the vision behind our project, it can be said to have its application
in a person’s lifestyle where he/she would use it as something to facilitate himself or
herself by living on the standards to maintain health. So, very dominantly, it will be
used as a means to stay healthy, have a good diet with proper break in between each
bite and to keep track of the food consumption to monitor metabolism.
9
Chapter # 2: Literature Review
First of all, let us look into the mHealth study by The University of North
Carolina where they were donated Apple Watch Series-4 by Apple Inc. to finding the
reasons for eating disorder. The Center of Excellence for Eating Disorders, part of the
UNC School of Medicine’s School of Psychiatry, handed out 1,000 donated Apple
Watches in a connected health project to study genetic factors behind binge-eating
disorder (BED) and bulimia nervosa (BN). Participants used the mHealth wearable to
track eating and health habits over a 30-day span, then submit saliva and bacteria
samples to digital diagnostics company uBiome for genetic analysis [2].
Secondly, fitness trackers and smartwatches are released to the consumer
market every year. These devices are equipped with different sensors, algorithms, and
accompanying mobile apps. With recent advances in mobile sensor technology,
10
privately collected physical activity data can be used as an addition to existing methods
for health data collection in research. Furthermore, data collected from these devices
have possible applications in patient diagnostics and treatment. With an increasing
number of diverse brands, there is a need for an overview of device sensor support, as
well as device applicability in research projects [3].
These previously done work has provided a sense of direction in order for our
project to take a significant shape and progress. Because, the ideas seem relevant and
advance as well in some scenarios to consider. However, it surely has provided a huge
insight to the development of our project.
For our team and the project, we are responsible to hold up our reputation as
mechanical engineers in our institute and successfully pass out by achieving of the most
important milestone of the whole degree plan, the senior year project. And, for that we
have to ensure that the project we are pursuing as a team can be compared with the
projects or some research work done in the past.
11
In a study, the researchers tracked the hand movements of 50 participants who
labeled what they were doing with their hands at regular intervals for nearly 1,000 hours
to create a database of common hand movements. Then, they were able to devise an
algorithm that can discern with 95.2% accuracy the sometimes extremely subtle
differences between 25 common hand movements, including washing your hands,
washing utensils, scrolling on your phone, using a remote, and typing.
To capture such fine distinctions between movements, the researchers put the
accelerometers into a high-speed mode that provided them with more granular
information, which included orientation of the hand, movement patterns, and even some
bio-acoustic information, which consists of micro-vibrations that propagate up the
wearer’s arm. Chris Harrison, the head of the Future Interfaces Group at Carnegie
Mellon University and a co-author on the paper, says that this is almost like holding a
stethoscope to your hand. A convolutional neural network, which is a type of machine
learning algorithm, was able to find patterns using all this information and associate it
with certain hand movements.
Since such works done in the past came out to be successful or under
development stages, we as a group feel pretty confident to achieve something of that
scale from the standard materials available in the market. Also, as a couple of these
studies show that eat tracking is very crucial to monitor health, with our project advisor,
Dr. Khaled, we think it can be achievable by following his guidance and help in every
stage of progression.
12
Chapter # 3: System Design
3.1.2 : Sustainability:
As far as sustainability of our project is concerned, it has a very high chance of having a long-
term future because in the current era we live in, many people rely on devices and gadgets
which can help them save the trouble of performing tasks such as calorie intake, food eating
habits, bite tracking, bite intervals and many more. So, it is safe to claim that this project could
turn out to be a very durable one with the ease of providing health monitoring.
13
and ease to the people in order to monitor their health by keeping track of how much they eat
and in what manner they eat, because taking big bites and having no rest between each bite can
affect the metabolism drastically.
3.1.5 : Economic:
Economically, if we look into the financial aspect of this project, it does serve to be in a fairly
reasonable sum of money. Since, the accelerometer we purchased from the market was not
very expensive and has a good built quality and the strap to be worn on the wrist is readily
available in the market. Due to such attributes of our project, it can be very healthy on the
economic scale.
3.1.6 : Safety:
Nowadays, almost every gadget, equipment or devices has to meet safety parameters and
should avoid accidents like Samsung’s cellphones which were a cause of poor battery and
related parameters that caused it to explode. Similarly, keeping such incidents in mind, it has
been made sure to keep safety parameters as our number one priority and inspect the vital parts
for any concerns that could lead to unintended mishaps or incidents. Additionally, since the
accelerometer module we are using does not even contain Lithium-Ion batteries (which are
very efficient but dangerous) it is safe to say that our project is well within the safety code of
operation and use.
3.1.7 : Ethics:
Every project is born with an idea from another project or it could even be a future
recommendation and continuation of a project which has more to offer and deliver. On this
information, ethically, this project was selected after conducting a brief research on how to
produce something that could affect the human lifestyle in terms of their diet and health
monitoring since most smart-watches already have tons of features and applications. Therefore,
no app or watch has such a feature in which the number of bites is counted and bite intervals
can be tracked because it can be directly related to the human metabolism according to which
it can be determined what kind of a lifestyle an individual is up to.
14
3.2 Engineering Design Standards
Since our project contains components that are readily available in the market, as far as the
engineering standards are concerned, they are dependent on the manufacturers producing such
components. However, below is the list of components with their grade/ standards enlisted.
15
// specific I2C addresses may be passed as a parameter here
// AD0 low = 0x68 (default for InvenSense evaluation board)
// AD0 high = 0x69
MPU6050 accelgyro;
//MPU6050 accelgyro(0x69); // <-- use for AD0 high
int count =0;
int16_t ax, ay, az;
int16_t gx, gy, gz;
#define OUTPUT_READABLE_ACCELGYRO
#define LED_PIN 13
bool blinkState = false;
void setup() {
// join I2C bus (I2Cdev library doesn't do this automatically)
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
Wire.begin();
#elif I2CDEV_IMPLEMENTATION == I2CDEV_BUILTIN_FASTWIRE
Fastwire::setup(400, true);
#endif
// initialize device
Serial.println("Initializing I2C devices...");
accelgyro.initialize();
// verify connection
Serial.println("Testing device connections...");
Serial.println(accelgyro.testConnection() ? "MPU6050 connection successful" : "MPU6050
connection failed");
16
// configure Arduino LED pin for output
pinMode(VibrationMotor, OUTPUT);
}
void loop() {
// read raw accel/gyro measurements from device
#ifdef OUTPUT_READABLE_ACCELGYRO
// display tab-separated accel/gyro x/y/z values
Serial.print("a/g:\t");
Serial.print(gx); Serial.print("\t");
Serial.print(gy); Serial.print("\t");
Serial.print(gz); Serial.println("\t");
#endif
if((ax > 1000) && (ay < 0) && (az >1000) ){ // main logic
Serial.print("eat");
count = count ++;
}
//When user eats more or equal to 40 than vibrate the watch.
if(count => 40){
17
3.4 Product Subsystems and selection of Components
3.4.1 GyroSensor:
Selected same sensor with SMD packing to put into our circuit design and PCB
design, using same operating circuit in our main circuit design
18
3.4.2 Bluetooth (HC-05):
HC-05 is a bluetooth module works on SPP protocol ideal for
this application it has UART interface to receive and transfer data, We are receive data
from MCU to send eat counts to Application. And receiving Alerts from Android
application based on our requirements.
19
Figure # 5 Final Circuit
20
Figure # 6 Two Layer Final PCB
21
3.5.4 3D design of Watch:
22
Chapter 4: System Testing and Analysis
4.1 Experimental Setup, Sensors and data acquisition system
23
4.1.2 : Gyro MPU6050
In order to process al the physical data and record it, the gyro sensor plays a key role in
transferring and recording vibrations in all three axes of movements. Since, the data
from the gyro can be sensed directly and transferred to the application via the Bluetooth
sensor.
Testing Parameters
Data obtained from the Bluetooth sensors were displayed in the following manner which also
takes into consideration all the axes.
Accelerations at these axes are making most close relation for eating gesture.
+z -y and minor at +x these axes play vital role in defining this eating poster.
24
Gyro+MCU:
25
Chapter 5: Project Management
Project Background
Ch. 2: Literature
2 Previous Work 7/9/2019 11/9/2019 4 Days
Review
Comparative Study
Design Constraints
& Methodology
Engineering Design
Standards
Theory &
Theoretical
Ch. 3: System
3 Calculations 12/9/2019 17/9/2019 5 Days
Design
Product Subsystems
& Component
Selection
Manufacturing &
Assembly
26
Experimental Setup,
Sensors & Data
Ch. 4: System
4 Testing & 18/9/2019 22/9/2019 4 Days
Analysis Results, Analysis &
Discussion
Contribution of
Team Members
Project Execution
Ch. 5: Project Monitoring
5 1/10/2019 6/10/2019 6 Days
Management
Challenges &
Decision Making
Project Bill of
Materials & Budget
Impact of
Engineering
Ch. 6: Project Solution
6 10/10/2019 14/10/2019 4 Days
Analysis
Contemporary
Issues Addressed
Ch. 7: Conclusion
7 Conclusion & 25/10/2019 29/10/2019 4 Days
Future
Recommendation Recommendation
Table 4 identifies the team members responsible for their respected tasks.
27
S. No. Task Assigned Members
Conclusion and
7 Abdullah Al-Ghamdi
Recommendation
Project
Abdullah Al-Zabadin 33%
Background
Ch. 2: Literature
2 Previous Work Turki Balhareth 33%
Review
Comparative
Obaid Alsubaie 34%
Study
Design
Ch. 3: System
3 Constraints & Turki Balhareth 20%
Design
Methodology
28
Engineering
Abdullah Al-Ghamdi 20%
Design Standards
Theory &
Theoretical Turki Balhareth 20%
Calculations
Product
Subsystems &
Abdullah Al-Zabadin 20%
Component
Selection
Manufacturing &
Turki Balhareth 20%
Assembly
Experimental
Setup, Sensors & Abdullah Al-Ghamdi 40%
Ch. 4: System Data
4 Testing &
Analysis Results, Analysis
Abdullah Al-Zabadin 60%
& Discussion
Contribution of
Team Members
Project Execution
Monitoring
Ch. 5: Project Turki Balhareth,
5 100%
Management Obaid Alsubaie
Challenges &
Decision Making
Project Bill of
Materials &
Budget
Impact of
Engineering
Ch. 6: Project Solution
6 Abdullah Al-Zabadin 100%
Analysis
Contemporary
Issues Addressed
Ch. 7: Conclusion
7 Conclusion & Abdullah Al-Ghamdi 100%
Future
Recommendation Recommendation
29
Turki Balhareth 50%
8 Design of Prototype
Ibrahim Al-Jarah 50%
30
5.4 Challenges and Decision Making
While working in developing our project to its final stages, we incurred some problems which
effected the progress of our project and acted as a hurdle to overcome. However, after
successions of different suggestions and review, they were eventually rectified. The problems
we faced were some of the following:
31
5.5 Project Bill of Materials & Budget
The table below illustrates the parts we purchased and the amount given to the third party for
manufacturing some of the intricate parts for us. It includes the total amount spent in our project
in Saudi Riyals (SAR).
Table 7 shows the amount of money paid for each part in Saudi Riyals (SAR).
32
Chapter 6: Project Analysis
As mechanical engineers, the most basic platform to begin our designing starts from designing
on computer-based software especially SolidWorks. Over the semesters we have earned the
necessary skills to successfully design any prototype and simulate the conditions we would be
planning to work in. Moreover, we also made use of MS excel to record data and illustrate
them in a comprehensive graph which speaks better than words. Additionally, coding programs
such as MATLAB and Arduino really gave us a new knowledge and skills to work into.
In order to conduct and perform experimental tests, we have managed to successfully made use
of hardware equipment such as a gyro sensor and related application which records and
displays the result in a waveform. These hardware devices were essential towards the
successful accomplishment of the objectives we were working in.
We had about three months of total time to complete the project, we really needed to manage
our time in an efficient manner in order to be ahead of time for unpredicted difficulties and
obstacles we might face. Thankfully, all group members were in close contact and everyone
was on the same page when making decisions, which really helped with cutting time and
utilizing it effectively.
33
6.1.4 : Project Management:
In achieving something of this big task as our project, we needed a proper plan and time
management so every task can be accomplished in a timely fashion. It also shows us the
properly managed teamwork among us all as a group because without proper communication,
understanding, dedication and commitment with responsibility it was not possible to achieve
the amount of goals set for us and our group.
6.2.1 : Society:
The project we selected was already biased towards the betterment and facilitation of the
society we are living in because if we notice, nowadays not many people pay attention to the
meals they eat and the way they eat which directly effects their metabolism. So, our project/
prototype will act as that device which enables the people to be aware of their eating habits so
they can lead a healthy lifestyle.
6.2.2 : Economy:
In terms of economical aspect, there is not a lot of to be spend in a project of this scale and
level because most of the components and parts are readily available in the market and to utilize
them properly, just a good information and knowledge is required in control systems and
computer trickery as it all works based on coding and how well put together the whole unit is.
6.2.3 : Environment:
Environmentally looking towards our prototype, there is no threat towards the environment as
the prototype does not produce any harmful by-products upon usage except of consuming a
very little amount of electric power via batteries which are actually charged. Moreover, the
whole material the unit is made of is degradable in a safe manner which has little to no effect
on the environmental scale.
34
6.3 Contemporary Issues Addressed
Looking toward the past and then gazing towards the near future, we are almost confident
enough to declare ourselves in which we have contributed towards the major society to utilize
the natural environmental source to obtain something as precious as water for our basic
necessities and especially thirst. However, not everything can be achieved in a perfect manner
and there is always that one spot which can be troublesome and to address some in our opinion,
we think that the project may need some optimization as it can sometimes note normal hand
gestures for a mistake of eating. It can also be a problem if a smoker is wearing the watch as
those gestures may also account into the eating habit. Therefore, overall our watch performs
perfectly in the way we desire to completely be based on our objectives.
35
Chapter 7: Conclusion & Future Recommendations
7.1 Conclusion
In conclusion, our watch has been a very unique idea to execute since there are already
watches in the market which do perform some of the functions related to health monitoring.
But our proposed idea and objective focuses precisely on the fact of metabolism of an
individual based on the way they eat or their eating habit which takes in account the bites and
intervals between each bite of during a meal. And, we can successfully claim that our project
has worked out nicely and serves the objectives very well.
36
8. References
1. Vu, Tri & Lin, Feng & Alshurafa, Nabil & Xu, Wenyao. (2017). Wearable Food Intake
Monitoring Technologies: A Comprehensive Review. Computers. 6. 4.
10.3390/computers6010004. Retrieved on 30/09/2019 from:
https://www.researchgate.net/publication/312875925_Wearable_Food_Intake_Monito
ring_Technologies_A_Comprehensive_Review
2. Wicklund, E. (15th October, 2015). Apple Donates Smartwatches for mHealth Study on
Eating Disorders, mHealth Intelligence. Retrieved on
https://mhealthintelligence.com/news/apple-donates-smartwatches-for-mhealth-study-
on-eating-disorders
3. Henriksen, André & Mikalsen, Martin & Woldaregay, Ashenafi & Muzny, Miroslav &
Hartvigsen, Gunnar & Hopstock, Laila & Grimsgaard, Sameline. (2018). Using Fitness
Trackers and Smartwatches to Measure Physical Activity in Research: Analysis of
Consumer Wrist-Worn Wearables. Journal of Medical Internet Research. 20. e110.
10.2196/jmir.9157. Retrieved on 30/09/2019 from:
https://www.researchgate.net/publication/323954704_Using_Fitness_Trackers_and_S
martwatches_to_Measure_Physical_Activity_in_Research_Analysis_of_Consumer_
Wrist-Worn_Wearables/citation/download
4. Sen, Sougata & Subbaraju, Vigneshwaran & Misra, Archan & Balan, Rajesh & Lee,
Youngki. (2015). The case for smartwatch-based diet monitoring. 585-590.
10.1109/PERCOMW.2015.7134103. Retrieved on 30/09/2019 from:
https://www.researchgate.net/publication/308814282_The_case_for_smartwatch-
based_diet_monitoring/citation/download
5. Schwab, K. (5th August, 2019). Your smartwatches may soon know way, way more
about what you’re doing, Fast Company. Retrieved on 30/09/2019 from:
https://www.fastcompany.com/90345625/smartwatches-may-soon-know-way-way-
more-about-what-youre-doing
37
Appendix A: Progress Reports
38
39
40
41
42
43
Appendix B: Engineering Standards
44
Appendix C: CAD Drawings and Bill of Materials
45
Appendix D: Prototype Picture
46
Appendix E: Operation Manual
47
Appendix F: Gantt Chart
Chart Title
6/24/197/14/19 8/3/19 8/23/199/12/1910/2/1910/22/1911/11/1912/1/1912/21/19
Concept
planning
buying
Testing
data analysis
48