Algorithms Review » History » Version 8
Mariana Calado, 04/01/2023 13:28
1 | 1 | Mariana Calado | h1. Algorithms Review |
---|---|---|---|
2 | 1 | Mariana Calado | |
3 | 4 | Mariana Calado | h2. Step counter and status detector |
4 | 1 | Mariana Calado | |
5 | 4 | Mariana Calado | From [1]: |
6 | 1 | Mariana Calado | Accelerometer data: |
7 | 1 | Mariana Calado | Acceleration along x - axis |
8 | 1 | Mariana Calado | Acceleration along y - axis |
9 | 1 | Mariana Calado | Acceleration along z – axis |
10 | 1 | Mariana Calado | |
11 | 1 | Mariana Calado | The magnitude of 3-D acceleration data: |
12 | 1 | Mariana Calado | Sqr(acc_x^2 + acc_y^2 + acc_z^2) |
13 | 1 | Mariana Calado | |
14 | 1 | Mariana Calado | Get the difference in this magnitude from the previous value. |
15 | 1 | Mariana Calado | |
16 | 1 | Mariana Calado | If the value is greater than a particular threshold value, then increment the steps count. |
17 | 1 | Mariana Calado | -Threshold for walking = 17.5 |
18 | 1 | Mariana Calado | -Threshold for running = 30 |
19 | 1 | Mariana Calado | |
20 | 7 | Mariana Calado | p=. !{width:300px}walk-1.png! |
21 | 6 | Mariana Calado | |
22 | 1 | Mariana Calado | h2. Energy Expenditure |
23 | 1 | Mariana Calado | |
24 | 2 | Mariana Calado | "Energy expenditure refers to the amount of energy an individual uses to maintain essential body functions (respiration, circulation, digestion) and as a result of physical activity. Total daily energy expenditure is determined by resting or basal metabolic rate (BMR), food-induced thermogenesis, and energy expended as a result of physical activity[2]." |
25 | 1 | Mariana Calado | |
26 | 1 | Mariana Calado | There are several formulas to calculate a person's energy expenditure, each with a differing level of accuracy and measurement requirements. Our project will focus on the portion of energy expended during physical activity, whether regarding walking, running or even cycling. |
27 | 1 | Mariana Calado | |
28 | 8 | Mariana Calado | In an ideal scenario, either the volume of O2 exhaled or the thermal output of the individual is measured during the physical activity, achieving a highly accurate value of estimated energy expenditure[3]. For our application and for the massively available health monitoring products in the market, this isn't viable, resorting to other metrics such as heart rate, acceleration, body temperature etc. |
29 | 8 | Mariana Calado | Given our use of the VitalJacket technology, we will be relying on the individual's self-inputted biometric data, such as weight, height, age, sex and the data acquired by the heart rate sensor and the accelerometer available with the VitalJacket. |
30 | 1 | Mariana Calado | |
31 | 2 | Mariana Calado | To improve the energy expenditure calculation, and considering heart rate is generally a better metric than acceleration[3], several decisions need to be made, such as: |
32 | 1 | Mariana Calado | |
33 | 8 | Mariana Calado | 1. Given that the difference in heart rate of someone in a resting rate, when compared to low effort, is so insignificant, should we, for values below a certain HR threshold, solely use the accelerometer or use a REE (resting energy expenditure) value as a placeholder? |
34 | 1 | Mariana Calado | 2. Due to the lag between our change in acceleration and the correspondent change in heart rate, should we calculate EE using just the acceleration for these sudden differences in speed? |
35 | 8 | Mariana Calado | 3. If we deem it necessary to offer a TDEE (Total Daily Energy Expenditure) feature in our app, should we consider EPOC[4] (Post-exercise oxygen consumption)? |
36 | 1 | Mariana Calado | |
37 | 8 | Mariana Calado | |
38 | 8 | Mariana Calado | mariana: |
39 | 1 | Mariana Calado | Kcals/min= 0.001064×Magnitude + 0.087512(Body Mass) - 5.500229 [5] |
40 | 8 | Mariana Calado | |
41 | 8 | Mariana Calado | the Harris-Benedict equation is a commonly used method to estimate energy expenditure based on body mass and gender. However, if you have accelerometer data, you can use this data to more accurately estimate energy expenditure. |
42 | 8 | Mariana Calado | |
43 | 8 | Mariana Calado | Accelerometers are devices that measure acceleration, or the rate of change of velocity over time. By measuring the acceleration of a person's body, it is possible to estimate their energy expenditure by calculating the mechanical work done by their muscles. |
44 | 8 | Mariana Calado | |
45 | 8 | Mariana Calado | There are several methods for using accelerometer data to estimate energy expenditure, and the specific formula used will depend on the type of accelerometer and the equations developed for that specific device. Here are a few examples: |
46 | 8 | Mariana Calado | |
47 | 8 | Mariana Calado | The Freedson equation is a commonly used method that uses a combination of accelerometer data and heart rate data to estimate energy expenditure: |
48 | 8 | Mariana Calado | Energy expenditure (kcal/min) = 0.175 x acceleration (g) + 0.029 x heart rate (bpm) - 1.75 |
49 | 8 | Mariana Calado | |
50 | 8 | Mariana Calado | The Troiano equation is another method that uses accelerometer data to estimate energy expenditure, based on the assumption that a person's activity level can be classified into one of four categories (sedentary, low, moderate, or vigorous): |
51 | 8 | Mariana Calado | Energy expenditure (kcal/day) = (0.1 x acceleration (g) + 2.0) x body mass (kg) x duration (hours/day) |
52 | 8 | Mariana Calado | |
53 | 8 | Mariana Calado | For example, if a person has an acceleration of 1.5 g and a body mass of 75 kg, and they engage in moderate-intensity activity for 2 hours per day, their energy expenditure would be: |
54 | 8 | Mariana Calado | |
55 | 8 | Mariana Calado | Energy expenditure (kcal/day) = (0.1 x 1.5 + 2.0) x 75 x 2 |
56 | 8 | Mariana Calado | = (0.15 + 2.0) x 75 x 2 |
57 | 8 | Mariana Calado | = 2.15 x 75 x 2 |
58 | 8 | Mariana Calado | = 323.5 kcal/day |
59 | 8 | Mariana Calado | |
60 | 8 | Mariana Calado | Again, these are just a few examples of the types of formulas that can be used to estimate energy expenditure from accelerometer data. It is important to note that these methods can have significant error margins, and the accuracy of the estimates will depend on the specific device and the assumptions used in the calculations. It is always a good idea to consult with a healthcare professional or a registered dietitian for personalized nutrition and exercise recommendations. |
61 | 3 | Mariana Calado | |
62 | 5 | Mariana Calado | h2. Distance |
63 | 5 | Mariana Calado | |
64 | 1 | Mariana Calado | References : |
65 | 1 | Mariana Calado | 1 - programmerworld. (2019) How to create walking step counter App using Accelerometer sensor |
66 | 1 | Mariana Calado | and Shared Preference in Android? Available at: [[https://programmerworld.co/android/how-to-create-walking-step-counter-app-using-accelerometer-sensor-and-shared-preference-in-android/]] |
67 | 1 | Mariana Calado | 2 - Heaney, J. (2013). Energy: Expenditure, Intake, Lack of. In: Gellman, M.D., Turner, J.R. (eds) Encyclopedia of Behavioral Medicine. Springer, New York, NY. https://doi.org/10.1007/978-1-4419-1005-9_454 |
68 | 1 | Mariana Calado | 3 - Maughan, Ronald J. (2013). The Encyclopaedia of Sports Medicine (An IOC Medical Commission Publication) || How to Assess the Energy Costs of Exercise and Sport. , 10.1002/9781118692318(), 59–71. doi:10.1002/9781118692318.ch4 |
69 | 1 | Mariana Calado | 4 - https://www.runnersworld.com/training/a22024491/what-is-epoc/ |
70 | 1 | Mariana Calado | 5 - ActiGraph (2018), What is the difference among the Energy Expenditure Algorithms? Available |
71 | 1 | Mariana Calado | at: https://actigraphcorp.my.site.com/support/s/article/What-is-the-difference-among-theEnergy-Expenditure-Algorithms (Accessed: 7 November 2022). |