SHRAM - Smart Heart Rate and Activity Measurement
Full text
Faculdade de Engenharia da Universidade do Porto SHRAM-Smart Heart Rate and Activity Measurement Maria Ana Pereira de Castro Ferreira Magalhães Supervisor at FEUP: Miguel Velhote Correia, PhD Supervisor at FhP-AICOS: Joana Silva, MSc Integrated Master in Bioengineering July, 2016
ii © Maria Ana Pereira de Castro Ferreira Magalhães, 2016
iii Faculdade de Engenharia da Universidade do Porto SHRAM-Smart Heart Rate and Activity Measurement Maria Ana Pereira de Castro Ferreira Magalhães Dissertation submitted to Faculdade de Engenharia da Universidade do Porto to obtain the degree of Master in Bioengineering July, 2016
iv
v Nowadays people are more concerned and conscious about the impact that lifestyle might have on their own health and well-being. Further, a huge interest for smartphones and wearables has been verified over the past few years. Their versatility and portability make them a consideration for people who want to decrease visits to the doctors and remotely monitoring themselves, in a comfortable and practical way. The heart rate changes according to the type of activities being performed, levels of stress and anxiety, nutrition and internal factors such as the respiration mechanism. However, some of them can be abnormal and indicative of cardiac or neurologic diseases and disturbances. Living in a society where everybody is busy and lives in a rush and under stress, heart rate irregularities may occur without noticing, with negative consequences on health. They can be present at all times or occur randomly during the day, so they might not be detected in standard exams such as ECG (Electrocardiography). This work aims to study if it is viable to use a wearable device system for continuous heart rate monitoring in a daily basis, in combination with activity monitoring, to improve current activity related features and detect abnormalities that other way might go unnoticed. For this, a heart rate validity measurement test was performed, with 8 volunteers between 22-30 years old, in which the Fitbit Surge smartwatch was tested against the Zephyr Bioharness 3 chest strap within different activities. Furthermore, the application of heart rate variability analysis techniques and the study of how their patterns are related with the activities being performed was also a focus theme. For this public datasets (PAMAP and PAMAP2) and also the datasets acquired during the validity test mentioned above were used. Besides this, a study of how the heart rate data and its features can be used to improve activity monitoring analysis, especially the energy expenditure estimation, was accomplished, using a dataset from a previous work. This dataset includes data from 13 subjects, with an average age of 33±9 years, wearing a heart rate chest strap monitor and performing a stress test in which the energy expenditure was measured through indirect calorimetry and also through an activity based model, which in turn used accelerometer data provided by the smartphone’s accelerometer that was located in the subject’s belt. The energy expenditure values provided by the model that combines both activity and heart rate data, the activity based model and heart rate model were evaluated against the results provided by the indirect calorimetry. Finally, a system that monitors both activity and heart rate was built as a proof of concept, in which the activity monitoring is performed by an already developed system that captures the smartphone accelerometer data, classifying the activity through Machine Learning techniques and computing its main features, and the heart rate is monitored through a smartwatch wearable device. The results obtained suggest that smartwatches, although at the moment they are not the ideal monitoring device for an exigent heart rate monitoring that is requested by Abstract
vi cardiac patients, are suitable to behave as activity and heart rate trackers and guide common users to follow an healthy lifestyle, taking into account the validity test results (reliability=75.39%, accuracy=93.80%, mean error=4.21 BPM, mean absolute error=7.22 BPM). Further, the study allowed to better perceive the heart rate variability patterns and how they depend on the type of activity performed, and that the energy expenditure is more accurate and reliable when both activity and heart rate data are combined, where the best result achieved a NRMSE of 19.9%. Hence, current generation of smartwatches, although it presents some limitations, represents a valuable tool that can revolutionize the way the healthcare is currently provided, by enabling continuous monitoring of the user’s health status and helping following a healthy lifestyle. Keywords: Heart Rate Monitoring; Activity Monitoring; Heart Rate Variability; Energy Expenditure; Smartwatch
vii Atualmente, as pessoas estão mais conscientes acerca do impacto que o estilo de vida pode ter na sua saúde e bem-estar. Por outro lado, tem-se verificado uma enorme adesão a smartphones e wearables, que permitem aos seus utilizadores, de forma confortável e prática, monitorizar-se de forma remota e, assim, diminuir as consultas médicas. A frequência cardíaca varia dependendo do tipo de atividades realizadas, níveis de stress, nutrição e também factores internos como a respiração. Contudo, algumas destas variações podem ser anormais ou indicativas de doenças cardíacas, neurológicas ou outros distúrbios. Numa sociedade cada vez mais ocupada e dominada pelo stress, podem ocorrer irregularidades na frequência cardíaca sem qualquer percepção, frequentemente ou aleatoriamente ao longo do dia, e com consequências negativas na saúde, podendo não ser detectadas em exames standard como o ECG. Este projecto tem como objectivo determinar se é viável usar um sistema wearable para monitorizar diariamente e continuamente a frequência cardíaca, em combinação com monitorização de atividade, no sentido de melhorar as atuais características de atividade e detectar anormalidades que, de outra forma, não seriam detectadas. Para isso, um teste de validação da medição de frequência cardíaca foi executado, com 8 participantes entre os 22 e 30 anos de idade, no qual o smartwatch Fitbit Surge foi testado em relação a uma fita cardíaca Zehpyr Bioharness 3, durante diferentes atividades. A análise da variabilidade da frequência cardíaca e a forma como os seus padrões se relacionam com o tipo de atividade executada foi também um tema de foco. Neste sentido foram utilizados datasets públicos (PAMAP and PAMAP2) e também os datasets recolhidos durante o teste de validação referido anteriormente. Para além disso, foi estudada a forma como a frequência cardíaca e as suas características podem melhorar a análise de monitorização de atividade, especialmente no que diz respeito à estimação do dispêndio de energia, no qual foi utilizado um dataset de um trabalho anterior. Este dataset inclui dados de 13 indivíduos, com idade média de 33±9 anos, que realizaram um teste de esforço, no qual foi registada a frequência cardíaca e o dispêndio de energia foi medido por calorimetria indirecta e também usando um modelo baseado na atividade, que usou os dados do acelerómetro do smartphone que os sujeitos usavam no cinto. Os valores de estimação de energia fornecidos pelo modelo que combina ambos os dados de frequência cardíaca e atividade, pelo modelo baseado na atividade e pelo modelo baseado na frequência cardíaca foram comparados com os valores fornecidos por calorimetria indireta. Finalmente, foi desenvolvido um sistema que monitoriza a frequência cardíaca e atividade, como prova de conceito. A monitorização de atividade é executada por um sistema the recebe os dados do acelerómetro de um smartphone, classificando a actividade e calculando as suas principais características, e a frequência cardíaca é monitorizada por meio de um smartwatch. Os resultados obtidos sugerem que os smartwatches, apesar de neste momento não Resumo
viii serem precisos o suficiente para monitorizar exigentemente doentes cardíacos, são a ferramenta ideal para monitorizar indivíduos comuns e ajudá-los a seguir uma vida saudável, tendo em conta os resultados do teste de validação (reliability=75.39%, accuracy=93.80%, mean error=4.21 BPM, mean absolute error=7.22 BPM). Permitiu também compreender melhor os padrões de variabilidade de frequência cardíaca e como estes dependem do tipo de atividade executada, e que a estimação do dispêndio de energia é, de facto, mais confiável quando os dados de atividade e frequência cardíaca são combinados, tendo-se obtido como melhor resultado um NRMSE de 19,9%. Em suma, apesar de os atuais smartwatches apresentarem algumas limitações, representam uma ferramenta valiosa que pode revolucionar a forma como os cuidados médicos são prestados, ao permitir uma monitorização contínua e ajudar os utilizadores a seguir um estilo de vida saudável. Keywords: Monitorização da Frequência Cardíaca; Monitorização de Atividade; Variabilidade da Frequência Cardíaca; Dispêndio de Energia; Smartwatch
ix I would like to thank to: Professor Miguel Velhote Correia, my supervisor at FEUP, for all the dedication, support, guidance and commitment during this project. Joana Silva, my supervisor at Fraunhofer AICOS, for all the patience, suggestions, knowledge exchange, discussions and motivation during all this journey. All the participants that have volunteered and kindly contributed to the validity test and dataset collection, because without them, all the project would be compromised. CIAFEL, for kindly providing the dataset for the energy expenditure estimation study. David Ribeiro, Fraunhofer AICOS researcher, who promptly helped me solving problems with Fitbit library. All my friends, for all the great moments and for standing unconditionally by my side during the last years. A special acknowledgement to Ana, my company at Fraunhofer and who has always supported me, José, for all the patience and laughs proportionated, and my childhood friends, Catarina, Catarina Silva, Francisca, Joana Filipa, Joana Mafalda and Maria João, for always being there for me. Finally, my family, my mother, father, Marta e Francisco, for all the patience, incentive and unconditional support, especially during the tough times. Maria Magalhães Acknowledgements
xvi Table 1: Time-Domain HRV parameters thresholds for stress state detection (5 minutes recording) (Yang et al., 2008). .................................................................... 22 Table 2: METS Estimation per activity type. ......................................................... 39 Table 3: Zephyr Bioharness Accuracy (Zephyr, 2012). .............................................. 44 Table 4: Subjects' characterization. ................................................................... 44 Table 5: Testing Laboratory Protocol and durations. ............................................... 45 Table 6: Evaluation of the statistical difference between Fitbit Surge and Zephyr Bioharness 3, using data from all the participants in test and retest. ................................... 51 Table 7: Accuracy and Reliability results for each subject, for test and retest. .............. 51 Table 8: Test-retest reliability of the accuracy and reliability assessments. .................. 52 Table 9: Cardiac Responses reported by (Tamaki et al., 1987) (N=18). ......................... 66 Table 10: Cardiac Responses obtained in public dataset PAMAP-outdoor activities. ......... 66 Table 11: Cardiac Responses obtained in public dataset PAMAP-indoor activities. ........... 66 Table 12: Cardiac Responses in public dataset PAMAP2. ........................................... 66 Table 13: Cardiac Responses obtained in Fitbit Surge validity test against Zephyr Bioharness. ............................................................................................ 67 Table 14: T-Test results between Fitbit Surge and Zephyr Bioharness 3 cardiac responses, in test and retest. ...................................................................................... 67 Table 15: Heart rate values ranges assumed as healthy for each activity type. ............... 68 Table 16: Results obtained in the energy expenditure estimation study........................ 69 Table A1: Reliability results per activity and subject. ............................................. 90 Table A2: Accuracy Results per activity and subject. .............................................. 90 Table A3: Mean and Mean Absolute error observed. ................................................ 91 Table B1: Description of the activities performed on public datasets PAMAP and PAMAP2.. 92 List of Tables
xvii
xviii ANS Autonomous Nervous System BPM Beats per Minute CRF Cardiorespiratory Fitness Level ECG Electrocardiography EE Energy Expenditure FEUP Faculdade de Engenharia da Universidade do Porto FhP-AICOS Fraunhofer Portugal Research Center for Assistive Information and Communication Solutions HF High Frequencies HRaS Heart Rate above Sleep HRDF Heart Rate Deflection Point HRmax Maximum Heart Rate HRreserve Heart Rate reserve HRV Heart Rate Variability IMU Inertial Measurement Unit IBI Inter-beat Interval IR Infra-Red LF Low Frequencies METS Metabolic Equivalents PNS Parasympathetic Nervous System PPG Photoplethysmography RMSSD Root Mean Square of the Successive Differences SDANN Standard Deviation of Sequential Five-Minute Inter-beat Interval Means SDNN Standard deviation of Inter-beat intervals SNS Sympathetic Nervous System VLF Very Low Frequencies VO2 Volume of O2 VO2max Maximum Volume of O2 Abbreviations
xix
1 Chapter 1 Introduction 1.1. Motivation Nowadays people are more concerned and conscious about the impact that lifestyle has on their own health and well-being, taking into account the relation between lifestyle, stress and diseases. Additionally, coronary artery diseases, depression and emotional exhaustion are diseases and problems that are related to the lifestyle an individual chooses to take. At the same time, it has been observed a huge adhesion to smartphones and wearables over the past few years. Their versatility and portability make them a considerable option for people who want to decrease visits to the doctors and remotely monitoring themselves. With the aging of the population, which is even more busy and with stressful lives, and the increasing of chronic diseases and psychological disturbances, the continuous heart rate and activity monitoring became fundamental to increase the quality of life of people, maintaining their independence. This is possible due to the great contribute given by the wearable technology that has been developed in the past few years, comfortable and practical for daily use. Clinical assessment might be performed from the heart rate signal and activity monitoring. It provides data for a detailed analysis of the activities and possible abnormalities identification, as for example risk factors related to serious pathologies, by analysing changes in the monitored variable caused by body reaction to specific stressful events. 1.2. Problem Statement and Objectives Heart Rate monitoring, besides being important for athletes and exercisers, to control and improve exercising, is also relevant for a daily basis use. The heart is the reflex of an individual’s health status, and through its continuous monitoring, changes can be detected. These changes are derived from the type of activities done, levels of stress and anxiety, nutrition and internal factors such as the respiration mechanism. However, some of them can be abnormal and indicative of cardiac or neurological diseases and disturbances. Living in a society where everybody is busy and lives in a rush and under stress, heart rate irregularities might occur without noticing, with negative consequences on health. They can be present at all times or occur randomly during the day, so they might not be detected in standard exams such as ECG. The Holter monitor might be an alternative, but it can represent a serious discomfort, though.
2 Since current wearable devices include heart rate sensors, perform activity monitoring and it has been observed an increasing of their use and popularity over the past few years, both heart rate and activity data might be both used to improve current monitoring algorithms. This will allow the combination between heart rate data and the physical activity monitoring in order to assess the user personal physical behaviour during the day, allowing the detection of some anomalies, whether cardiac or psychological, avoid potential harmful events and understand the personal context of the user. Hence, the main goal is to study if wearable devices are suitable for heart rate monitoring in a daily basis, and develop a proof of concept system that performs a combined heart rate and activity monitoring analysis that generates alerts for abnormal heart rates. This way, it will be possible to combine heart rate and activity data, in order to detect some possible abnormal events and to realize the user quotidian context. 1.3. Project This work aims to study if it is viable to use wearable devices for continuous heart rate monitoring and analysis, in combination with activity monitoring, and improve activity related features with the heart rate variability. Further, a great focus was made in the study of the inter-combination between energy expenditure, speed and workload, activity features and heart rate. A system was built as proof of concept, which monitors both activity and heart rate. The activity monitoring is performed by an already developed system that captures the smartphone accelerometer data and classifies the activity through Machine Learning techniques (sitting, staying, lying, walking, running, cycling, tilting) and computes its features. In turn, the heart rate is monitored through a smartwatch wearable device. The project includes two main areas of research. The possibility of using a wearable device, mainly a smartwatch, for heart rate monitoring, comparing its performance with currently used devices, in this case a chest strap, was evaluated. For this, a heart rate validity measurement test was performed, with 8 participants within a range of 22-30 years old. The Fitbit Surge smartwatch was tested against the Zephyr Bioharness 3 chest strap within different activities, which were manually annotated and recorded by a developed system that includes an accelerometer and a recorder application that saves its data, in a supervised laboratory environment. Furthermore, the application of heart rate variability techniques and how their patterns are related with the activities being performed was focused, in which public dataset (PAMAP and PAMAP2) and also the dataset acquired during the validity test previously mentioned were used. Besides this, another topic included the study of how the heart rate data and its features can be used to improve activity monitoring analysis, especially the energy expenditure estimation. For this, a dataset from a previous work, which includes data from 13 subjects, with an average age of 33±9 years, wearing a heart rate chest strap monitor and performing a stress test was used. In this test, the energy expenditure was measured through indirect calorimetry and also through an activity based model, which used accelerometer data provided by the smartphone’s accelerometer that was located in the subject’s belt. A model that combines both activity and heart rate and another model that uses only the heart rate data were applied on this dataset. Hence, the results obtained by the heart rate and activity model, the activity based model and heart rate model were evaluated against the results provided by the indirect calorimetry. This project mainly contributed to better understand the real potential of current wearable devices to improve people lives, by enabling comfortable continuous activity and heart rate monitoring, which is determinant to take a healthy lifestyle and avoid long-term health problems, either due to abnormal heart rate values, inactivity or stress. It allowed to realize that smartwatches, although they are not the ideal monitoring device for an exigent heart rate monitoring that is requested by cardiac patients yet, are suitable to behave as activity and heart rate trackers and guide the users to follow an healthy lifestyle. Further, it
3 allowed to better perceive the relationship between heart rate and activity, namely the heart rate variability patterns, and that the energy expenditure is more accurate and reliable when both activity and heart rate data are combined. In short, this study demonstrated that current generation of smartwatches, although they present some limitations, they represent a valuable tool that can revolutionize the way healthcare is currently provided, by enabling continuous monitoring the health status of the user and giving feedbacks. This study was performed using PyCharm and MatLab® R2013a, for the data processing and evaluation. The Android Studio was used to develop the proof of concept system. 1.4. Overview of Dissertation This dissertation includes four chapters, besides this Introduction. Chapter 2 includes an explanation of the main concepts related with the heart rate, its variability, main applications and measurement methods. Further, activity monitoring concepts and Machine Learning Technology are also described in detail. Besides, it includes a state of the art review related with measurement and monitoring systems, mainly heart rate measurement devices and heart rate and activity monitoring systems. In Chapter 3, the research methodology approach is described in detail, whose results are presented and discussed in Chapter 4. Finally, Chapter 5 summarizes the major achievements and conclusions related with the dissertation, with some improvements and future work suggestions.
4
5 2.1. Heart Rate Cardiac cycle starts spontaneously from the sinoatrial node of the heart, located at the right atria, due to depolarizing pacemaker cells. From these cells, the electrical signal spreads through the atria, causing both of them to contract, and then the atrioventricular node is activated, followed by the ventricles, leading to their contraction due to the impulse’s spread over the heart muscle. After the heart pumps the blood into the arteries, the ventricles repolarize and the heart fills with blood, relaxing. The period of relaxation is called diastole and the period of contraction is designated as systole (Hall, 2010). Heart rate is, thus, known as the speed of the heartbeat and it is described as the number of contractions of the heart per unit of time, generally in beats per minute (BPM). The depolarization rate of the pacemaker cells is controlled by the autonomous nervous system (ANS), through its two separate branches, the sympathetic nervous system (SNS) and parasympathetic nervous system (PNS), which have opposite effects on the heart. The SNS stimulates the heart, increasing the heart rate, whereas the PNS inhibits the heart functions, leading to lower heart rates. This way, a balance between the SNS and PNS is required in order to the cardiovascular system to adapt to several different body requirements and maintain equilibrium. Figure 1 (Marieb & Hoehn, 2007) reflects the autonomic innervation of the heart. The baroreflex system is an important regulation system based on baroreceptors, which are specialized neurons that continuously sense arterial pressure, located in the heart, arteries and vessels. This homeostatic mechanism allows the blood pressure to be nearly constant, through a degenerative feedback loop, in which a high blood pressure causes the heart rate to decreases, so the pressure can decline. In turn, a lower blood pressure decreases the baroreflex system’s activation, which causes the heart rate to increase and, this way, restores blood pressure. The cyclic changes in arterial blood pressure due to the baroreflex control system are designated Mayer waves (Myers et al., 2001). The heart rate is also affected by the respiration mechanism. During the inspiration the heart rate increases and it decreases during expiration, due to direct SNS and PNS stimulation. Moreover, during respiration cycle the intra-thoracic pressure changes, which results in blood pressure changes and, consequently, baroreflex system activation. This continuous balance between cardiovascular system and autonomous nervous system results in varying heart rate. Chapter 2 Literature Review
6 Figure 1: Autonomic innervation of the heart (Marieb & Hoehn, 2007). The heart rate has a huge impact on the cardiac output, which represents the volume of blood that is pumped by the heart, in one minute (L/min) (Vincent, 2008). The cardiac output is an important indicator of how efficient the heart can meet the body needs. The stroke volume refers to the quantity of blood pumped out of the left ventricle with every heartbeat. The product between the stroke volume and heart rate equals the cardiac output. Thus, cardiac output is influenced by the heart rate, because the higher is the frequency the heart contracts with, the higher the cardiac output. However, if the heart rate increases too much, the amount of blood that fills the heart during the diastole will be lower and, consequently, less is the amount of blood that the heart pumps for the all body with every beat. In turn, the efficiency of the heart decreases. The heart rate is mainly affected by the autonomic nervous system, hormones, fitness level condition and also by the age. The normal heart rate value is strongly dependent on the person’s age, gender, size, heart conditions, physical capacity and also the activity in cause, whether the person is sitting, walking or doing other challenging or stressful activity. Even emotions have a huge impact on heart rate value. The heart rate can vary according to the body’s physical requirements, in order to maintain equilibrium between the needs, oxygen and nutrients delivery and carbon dioxide excretion. The basal heart rate (resting heart rate) is typically defined as the heart rate value when the person is awake, under neutral temperature environment and not subjected to any exertion, stimulation or stress. A heart rate between 60 and 100 beats per minute is considered normal for a resting adult (Association, 2015). It must be highlighted that people in excellent physical condition such as athletes have lower resting heart rate values. A resting heart rate slower than 60 beats per minute is said to be bradycardiac and a rate faster than 100 beats per minute is said to be tachycardiac. When the heart contracts following an inconsistent pattern, it is said that the individual suffers from an arrhythmia, although he might not present any symptom. The maximum heart rate (HRmax), which corresponds to the highest heart rate a person can achieve without severe sequelae, normally decreases with age. This value is often
13 Sloan, 2000). Figure 6: Heart Rate Variability (Sjövall, 2015). Figure 7: Tachogram examples (Task Force of the European Society of Cardiology the North American Society of Pacing Electrophysiology, 1996). There is a variety of factors that affect HRV, including hormonal reactions, metabolic processes, physical activity, cognitive processes and stress or emotional reactions, alcohol and drugs consumption, nutrition and illness. A decrease in the HRV occurs with increasing age, due to the decline in efferent vagal cardiac tone. The inter-beat variation in heart rate has been demonstrated to be a function of conditioning status in young subjects. A simple autonomic provocation consists in an active change of posture from supine to standing. This results in a shift of blood away from the chest to venous system below the diaphragm, usually referred to as venous pooling. Almost invariably in all healthy volunteers, an increase in heart rate is the result. The cardiovascular adjustments in exercise represent a combination and integration of neural factors such as activation of sympathetic nervous system, reflexes in the contracting muscles and baroreflex, and chemical factors. When exercise stops the heart rate suffers an abrupt decrease and parasympathetic activity is enhanced. Moreover, the heart rate variability is dependent on the level of heart rate itself. The inter-beat interval has a nonlinear inverse relation with the heart rate value. The higher the heart rate the shorter the inter-beat interval and shorter intervals usually present less variation (Nieminen et al., 2007). 2.4.1. Inter-beat Interval Extraction and Pre-processing The heart rate variability time series can be derived through the heart rate data provided by a smartwatch, taking into account the time when the heart rate value was measured and the time relationship between heart rate and inter-beat interval. Pre-processing of inter-beat interval time series data is frequently required before heart rate variability analysis, in order to reduce analysis errors. Some of the inter-beat interval
14 pre-processing methods are ectopic beat and interval correction and inter-beat interval resampling (Ramshur, 2010). An abnormal inter-beat interval can occur due to a false or missed beat. These are considered ectopic beats and can be detected using several techniques, such as assuming that any interval that change more than a defined percentage (normally 20%) from the previous one. These ectopic beats can be replaced by the mean or median value of the some defined neighbours inter-beat intervals centred on the ectopic interval (Ramshur, 2010). Another option is to use cubic spline interpolation to replace these ectopic beats or simply removed them (Clifford, 2002; Medeiros, 2010; Ramshur, 2010). The time series constructed from all the available heart rate values measured by the smartwatch are, clearly, not exactly equivalent to the time series extracted by an ECG signal, but they are also not equidistantly sampled, which has to be taken into account before frequency-domain analysis so additional harmonics are not introduced into the power spectrum. A common approach is to use interpolation methods for converting the non-equidistantly sampled inter-beat interval function to equidistantly sampled, such as the cubic spline or linear interpolation (Ramshur, 2010). All the HRV parameters are calculated on inter-beat intervals, caused by normal heart contractions paced by sinus depolarization. HRV can be described by both time and frequency domain analysis measures. These are calculated from recordings with durations about 5 minutes for short-term recordings and 24 hour for long-term recordings (Task Force of the European Society of Cardiology the North American Society of Pacing Electrophysiology, 1996). 2.4.2. Time Domain Analysis Time Domain heart rate variability analysis parameters can be classified as statistical or geometric, depending if the analysis is performed through statistical or geometric patterns. Statistical HRV indices are calculated on a beat-to-beat basis and are based on Euclidean root-mean square (rms) metrics. Time domain analysis includes the mean inter-beat intervals duration and statistical measures of the variance(Gorman & Sloan, 2000; Medicore, n.d.; Schubert et al., 2009; Task Force of the European Society of Cardiology the North American Society of Pacing Electrophysiology, 1996). 𝐼 represents the mean of inter-beat intervals, where N represents the total number of the inter-beat intervals and 𝐼𝑖 the interval itself: 𝐼=1𝑁∑𝐼𝑖 𝑁 𝑖=1 (𝑚𝑠) (2.5) SDNN is the standard deviation of the inter-beat interval, calculated as the square root of their variance. It reflects all the cyclic components of the variability of the intervals. SDNN values should be compared taking into account the length recording. Low SDNN values indicate low heart rate variability. Hence, this measure is calculated as follows: 𝑆𝐷𝑁𝑁=√1 𝑁−1∑(𝐼𝑖−𝐼)2 𝑁 𝑖=1 (𝑚𝑠) (2.6) SDNN index is designated as the mean of all the 5-minute of inter-beat intervals standard deviations during a 24 hours period (Task Force of the European Society of Cardiology the North American Society of Pacing Electrophysiology, 1996), whereas the SDANN is the standard deviation itself. N5 is the total number of 5 minute sections of inter-beat intervals during a 24 hours period, 𝐼5𝑖 is the mean of inter-beat intervals in a 5 minute section and 𝐼5 is the mean of all the means of inter-beat intervals in all the 5 minute section. The SDNN index and SDANN are calculated as follows:
15 𝑆𝐷𝑁𝑁𝑖𝑛𝑑=1 𝑁5∑𝑆𝐷𝑁𝑁𝑖 𝑁5 𝐼=1 (𝑚𝑠) (2.7) 𝑆𝐷𝐴𝑁𝑁=√1 𝑁5−1∑(𝐼5𝑖 −𝐼5 )2 𝑁5 𝑖=1 (𝑚𝑠) (2.8) RMSSD (root mean square of successive differences) estimates high-frequency variations in heart in short-term recordings and, thus, the regulation of the heart by parasympathetic nervous system and reflexion of vagal tone: 𝑅𝑀𝑆𝑆𝐷=√1 𝑁−1∑(𝐼𝑖+1−𝐼𝑖)2 𝑁−1 𝑖=1 (𝑚𝑠) (2.9) Another popular measure is pNN50, which represents the percentage of differences between adjacent inter-beat intervals that differ more than 50 milliseconds. NN50 represents the number of differences between adjacent inter-beat intervals that differ more than 50 ms. The pNN50 parameter is calculated as follows: 𝑝𝑁𝑁50=𝑁𝑁50 𝑁×100 (%) (2.10) pNN50 is a quantification of the relative frequency of high beat-to-beat interval changes, and it is strongly correlated with other ANS activity measures such as spectrum power and RMSSD. This measure can be also applied by changing the time varying between intervals to lower values and, then, increasing the variability resolution, as is the case of the pNN20. Further, the coefficient of variation gives a global measure of the heart rate variability in time-domain, and it is defined as the ratio between the standard deviation of inter-beat intervals and the average inter-beat interval duration: 𝐶𝑉=𝑆𝐷𝑁𝑁 𝐼×100 (%) (2.11) The inter-beat interval time series can also provide a geometric pattern of variability, such as the sample density distribution of inter-beat intervals durations or the sample density distribution of differences between adjacent inter-beat intervals. Geometric heart rate variability measures are calculated from the geometric pattern characteristic of the inter-beat interval time series, being the histogram the most common pattern used. Taking into account the histogram, two measures might be calculated such as the HRV triangular index (HRVti) and the triangular interpolation of the inter-beat intervals histogram (TINN). Geometric methods are advantageous because of their relative insensitivity to the analytical quality of the series of inter-beat intervals. However, a reasonable number of interbeat intervals to construct the geometric pattern is needed. HRV triangular index (HRVti) is calculated dividing the area integral of the density distribution of the IBI series by the maximum value present in the density distribution, i.e., the total number of inter-beat intervals divided by the maximal height of the IBI series histogram (the most frequent Inter-beat interval) (Medeiros, 2010; Ramshur, 2010): 𝐻𝑅𝑉𝑡𝑖= 𝑁𝐼𝐵𝐼 𝑀𝑎𝑥𝑖𝑚𝑢𝑚 𝑜𝑓 𝑡ℎ𝑒 𝑑𝑒𝑛𝑠𝑖𝑡𝑦 𝑑𝑖𝑠𝑡𝑟𝑖𝑏𝑢𝑡𝑖𝑜𝑛 (2.12)
16 Triangular Interpolation of the histogram of the inter-beat intervals (TINN) is calculated by approximating the inter-beat intervals distribution to an isosceles triangle and measuring the width of the unequal side (the base). It is the baseline width of the distribution measured as a base of a triangle approximating the inter-beat intervals interval distribution, where the triangle is found through the minimum square difference (Medeiros, 2010; Ramshur, 2010). 2.4.3. Frequency Domain Frequency domain analysis measures and describes power spectral density, i.e., finds out the power of different frequency bands in the signal. This requires a spectral analysis, representing the HRV data into frequency over time, as a combination of sine and cosine waves, which requires a Fourier transform approach(Gorman & Sloan, 2000; Medicore, n.d.; Ramshur, 2010; Schubert et al., 2009; Tarvainen, 2014; Task Force of the European Society of Cardiology the North American Society of Pacing Electrophysiology, 1996). Spectral analysis is thought to provide an understanding on the effects of sympathetic and parasympathetic nervous system on the heart rate variability. Three main components are usually analysed through the spectrum: very low frequencies, which are known to represent fluctuations that occur slowly and are possible due to circadian rhythms, peripheral vasomotor and thermoregulatory influences; low frequencies, which are dependent on sympathetic tone due to the baroreceptor activity; high frequencies, which are indicative of vagal activity. The HF power is considered a reliable marker of vagal control of the heart rate, whether the LF is indicative of sympathetic activity although it also is influenced by the parasympathetic nervous system. Therefore, a change in LF power cannot be assumed as an indicator of alterations in sympathetic cardiac control. The LF/HF ratio has been considered as an index of the sympathovagal modulation of the sinoatrial node. Therefore, LF/HF ratio indicates overall balance between SNS and PNS. High values indicate sympathetic activity dominance or reduced parasympathetic activity. Total power reflects overall variance of the signal, and thus, the autonomic activity where SNS activity is a primary contributor. As aforementioned, the most popular bands used to divide the signal are frequencies lower than 0.04 Hz, known as very low frequencies (VLF), frequencies between 0.04 Hz and 0.15 HZ, designated as low frequencies (LF) and frequencies between 0.15 Hz and 0.40 Hz, denoted as high frequencies (HF)(Medicore, n.d.; Schubert et al., 2009; Task Force of the European Society of Cardiology the North American Society of Pacing Electrophysiology, 1996). This frequency analysis can be verified in Figure 8 (Task Force of the European Society of Cardiology the North American Society of Pacing Electrophysiology, 1996). Frequency domain variables represent essentially the fluctuations in the balance of the autonomous nervous system, and their interpretations consider the balance between the SNS and the PNS. Very low frequencies reflect the activity of slow mechanisms of sympathetic function. Low frequencies reflect modulations of both the SNS and PNS. Generally is indicative of sympathetic activity. People with exaggerated sympathetic activity as occurs in disturbed patients, present stronger LF fluctuations that in healthy subjects. PNS influence is represented by low frequencies during deep breathing or very low respiration rate. LF values can be high when a subject is in relaxation. High frequencies reflect parasympathetic activity and also the respiratory phenomenon (heart rate higher during inhalation and lower during exhalation).
17 Figure 8: Frequency spectrum analysis (Task Force of the European Society of Cardiology the North American Society of Pacing Electrophysiology, 1996). 2.4.4. Time-Frequency Analysis The spectral analysis assumes that the data series is stationary. However, statistical properties in both time- and frequency-domain of heart rate variability are known to vary over time (Dekker et al., 2000; Medicore, n.d.; Ramshur, 2010). The HRV analysis in the frequency domain yields information about how the IBI signal power is distributed in the frequency domain but it does not provide an insight into the temporal evolution of the spectrum. Statistics measured in a specific period of time interval of HRV probably differ from those measured in the next time interval and from those measured in the entire time provided by the sum of the two periods. The power spectral density does not reveal the frequency components in time and the instantaneous power does not show the time components in frequency, i.e., the information about how the frequency changes over time is lost. In this analysis both time and frequency information can be combined to provide a deeper insight. Similarly to the frequency-domain analysis, time-frequency HRV analysis also quantifies VLF, LF, and HF related measures. The most common methods of time-frequency analysis used are the windowed Fourier transform, also called short-time Fourier transform, wavelet transforms, windowed periodograms and Wigner-Ville distribution. The short-time Fourier transform STFT is a classical time-frequency transform to analyse time-related spectral characteristics. The usefulness of STFT is based on the data stationarity in the observed window and the selection of window length in STFT includes a trade-off between time and frequency resolutions. In this method, a complex window w(t) , centered around the time origin t = 0 , is shifted in equal steps along the time axis, and the Fourier transform of the data segment of the signal within the time-window is computed (Chan et al., 2001). In short, the waveform is divided into a number of short segments, assumed as stationary, and the Fourier Transform is computed on a window of data that slides along the time axis. 𝐶𝑜𝑛𝑡𝑖𝑛𝑢𝑜𝑢𝑠 𝑆𝑇𝐹𝑇 𝑠(𝑡)=𝑆𝑇𝐹𝑇(𝑡,𝑓)=∫ 𝑠(𝜏)𝑤(𝜏−𝑡)𝑒−2𝜋𝑗𝑓𝜏 +∝ −∝ 𝑑𝜏 (2.13) 𝐷𝑖𝑠𝑐𝑟𝑒𝑡𝑒 𝑆𝑇𝐹𝑇 𝑠(𝑛)=𝑆𝑇𝐹𝑇(𝑚,𝑓)=∑𝑠(𝑛−𝑚)𝑤(𝑛) 𝑁−1 𝑛=0 𝑒−2𝜋𝑗𝑓𝑛 (2.14) The short-time Fourier window can give a localized measure of the spectral density, although the choice of the window size might be determinant due to the trade-off between the time resolution and frequency resolution, since they are constant along the entire timefrequency plane. A wide time-window yields a poor time-resolution and a good frequency-
18 resolution, whereas a narrow time-window yields a good time resolution and a poor frequencyresolution. In the computation of the short-time Fourier transform, both the time and the frequency-resolution of the time-frequency plane are dependent on the chosen time-window since, as referred before, the time and frequency-resolutions are fixed throughout the entire time-frequency plane. A signal consisting of abrupt changes of short duration superimposed on slow components with long periods, can be analysed with a short time-window, which is optimal to discriminate the transient events, or it can be analysed with a long time-window, which in turn is great to discriminate the slow frequency components. However, with the short-time Fourier transform it cannot be analysed with both simultaneously (Steenis, 2002). In contrast, the Wavelet Transform can be applied on non-stationary signals and uses a short window at high frequencies and a long window at low frequencies, overcoming the resolution problem. The Wavelet Transform decomposes the signal into a series of base functions denominated wavelets, which are expansions or contractions of a prototype wavelet that might be understood as band-pass filter. Therefore, the signal is expressed as a combination of wavelets and the signal decomposition provides wavelets coefficients. The signal can be reconstructed through the linear reconstruction of the wavelets functions, taking into account the coefficients. There are several types of Wavelet Transforms, which should be chosen according to the features of the signal to be processed. When the signal to be analysed is continuous the Continuous Wavelet Transform should be used, whereas the Discrete Wavelet Transform should be used when the signal is discrete (Chan et al., 2001). 𝑊𝑇(𝜏,𝑎)=1 √𝑎∫𝑠(𝑡)1 √𝑎Ψ∗[𝑡−𝜏 𝑎]𝑑𝑡 (2.15) τ represents the time delay whereas 𝑎 represents the scale factor. As a smaller scale parameter is selected, the more contracted in time is the associated wavelet function, which means it can catch fast changing characteristics in the signal, giving better time resolution for high frequency components. The wavelet coefficients WT(τ,a) describe the correlation between the signal s(t) and the wavelet at various translations and scales. For a larger scale parameter, the wavelet is wide enough to cover slow-varying components, which by the frequency resolution is good for low frequency components. In the case of the Discrete Wavelet Transform, the scaling and translations are done in a less smooth or more discrete manner. The dilation function is often represented as a tree of low and high pass filters (Chan et al., 2001).ψ* is the complex conjugate of the mother wavelet. The windowed power spectrum is an extension of the basic power spectrum density, where the data is divided into consecutive segments or windows, which might be overlapped or not. The power spectrum density is then computed for each segment, using a nonparametric estimation. Plotting PSD values onto a two-dimensional plane with frequency and time as the vertical and horizontal axes, respectively, produces a spectrogram. The windowed periodogram can use other techniques to compute the PSD, as Burg periodogram and the windowed Lomb- Scargle periodogram (Ramshur, 2010). In the case of the windowed Burg periodogram, which corresponds to an autoregressive method, the entire data series is first resampled and then divided into segments of equal lengths. Finally, the PSD is computed for each segment using the Burg periodogram, which estimates the power spectral density by fitting an autoregressive model to the signal by minimizing the forward and backward prediction errors. Autoregressive spectral estimation methods differ from non-parametric methods since they do not estimate directly the power spectrum density but they attempt to model the data. In turn, the windowed Lomb-Scargle periodogram is computed similarly, although this method does not require the resampling step, using non-uniformly sampled data. The data is also divided into segments of equal lengths of time and the Lomb-Scargle Periodogram for each segment is computed, which estimates the frequency spectrum by performing a least squares fit of sinusoids to the data (Ramshur, 2010).
19 𝑃𝐿𝑆(𝑓)=1 2𝜎2(⌊∑ (𝑠(𝑡𝑛)− 𝑠)cos (2𝜋𝑓(𝑡𝑛−𝜏) 𝑁 𝑛=1 )⌋2 ∑𝑐𝑜𝑠2(2𝜋𝑓(𝑡𝑛−𝜏)) 𝑁 𝑛=1 +⌊∑ (𝑠(𝑡𝑛)−𝑠)sin(2𝜋𝑓(𝑡𝑛−𝜏)) 𝑁 𝑛=1 ⌋2 ∑𝑠𝑖𝑛2(2𝜋𝑓(𝑡𝑛−𝜏)) 𝑁 𝑛=1 ) (2.16) In 2.16, 𝑠 represents the mean and 𝜎2 represents the variance of the time series, whereas the 𝜏 is a time frequency time delay that makes the periodogram insensitive to time shift. Figure 9: Example of a power spectrum density versus time (Ramshur, 2010). The Wigner-Ville Distribution is capable of interpreting the time-varying characteristic of the signal without the compromise between time and frequency resolution. This methodology was the pioneer in the performance of time-frequency analysis. The spectrum of the Wigner-Ville transform is calculated through the following formula, where s(t) represents the stochastic process to consider, s*(t) presents the complex conjugate, t is time, f is the frequency and τ the time delay (Chan et al., 2001; Ramshur, 2010; Steenis, 2002). 𝑊𝑉𝐷(𝑡,𝑓)=∫𝑠(𝑡+𝜏2)𝑠∗(𝑡−𝜏2)𝑒−𝑗2𝜋𝑓𝜏𝑑𝜏 (2.17) This distribution preserves the time and frequency translations. To calculate the spectrum in a specific time t, a multiplication between a signal portion immediately before and a signal portion immediately after is done, where both portions must be equal (Steenis, 2002). The Wigner-Ville distribution is interpreted as a power spectral density function that represents the power of the signal x (t ) for each point (t, f ) of the time-frequency plane. 2.4.5. Non-Linear Analysis Non-linear methods make use of chaos theory to describe non-linear properties of heart rate fluctuations, providing a more sensitive way to characterize the cardiovascular system behaviour (Clifford, 2002; Tarvainen, 2014). One of the most used non-linear features is the Poincaré Plot. This method is a graphical representation of the correlation between consecutive inter-beat intervals and it is created by plotting all the inter-beat intervals in two dimensional system, where two adjacent intervals represent one point in the plot. The first interval represents the x-coordinate and the second interval represents the y-coordinate (Ramshur, 2010; Tarvainen, 2014). The shape of the plot is the essential feature and it commonly parameterized by fitting an ellipse to the plot. The standard deviation of the points perpendicular to the line described as SD1 (line of identity y=- x) describes short-term variability, whereas the standard deviation of the points perpendicular to the line described as SD2 (line of identity y=x) describes long-term variability. The area of the ellipse represents the total variability (Medeiros, 2010; Ramshur, 2010; Tarvainen, 2014).
20 Figure 10: Poincaré Plot example (Tarvainen, 2014). 2.5. Heart Rate Applications Heart rate data has a huge clinical value since it reflects the overall health status and physical condition of an individual. The continuous monitoring of heart rate allows performing a lifestyle assessment, through the analysis of heart rate variability. Its analysis enables detecting daily periods of stress and recovery, what caused the periods of stress and, consequently, it is possible to infer about the heart and autonomous nervous system health status. Along with the data provided by activity measurement, it can be evaluated if a specific heart rate value is abnormal or not, depending on the activity level being performed. Both activity and heart rate data can be analysed in order improve the user quality of life and help him to understand his current well-being, how daily habits and routines affect him, detect abnormalities such as heart rate increase due to psychological problems or exaggerated fears, excessive heart effort when doing normal daily activities such as climbing stairs, which denounces a weak physical status. It allows the identification of stress factors, and early warnings signs of conflict, overload, and burnout before more serious problems occur. It is important to underline that it is assumed that any physical activity has certain duration and during it cardiac activity is increased. It might be useful that the monitor user is provided with a diary to record some events during the day, such as challenging tasks, alcohol consumption or few hours of sleep. The accelerometer data improves the ability of the analysis to recognize whether an increased activation level in the body is caused by mental stress or physical activity. This improves the accuracy especially with unfit people, with whom even slight activation can increase the heart rate significantly, and also with very fit people, who typically do not show much of a heart rate reaction to light exercise. Continuous heart rate monitoring allows continuous supervising at any environment, without hospitalization or clinical appointments. Further, heart rate data can be used to assess physical capability (fitness level), assuming that the heart rate increasing is proportional to the physical effort and activity speed. This is especially important for athletes and sports practitioners, but has also interest for inactive, elderly people and cardiac rehabilitation patients. It has also interest for the detection of arrhythmias, as occurs in the case of high heart rate variability but low physical activity during the day. The heart rate monitoring is very important to avoid excessive training components such as the frequency of exercise sessions, its durations and intensity, so the performance is not deteriorated and overtraining syndrome is not developed (Achten & Jeukendrup, 2003). The intensity of each exercise session is usually defined as the amount of energy expended per minute to perform a certain task, which currently available methods are not suitable for non-
21 laboratory occasions. Therefore, the heart rate is used to evaluate the intensity of exercise and, consequently, to determine the effect of a training session, using the heart rate reserve. The heart rate shows an almost linear relationship with the volume of oxygen at submaximal intensities, so it can be used to estimate the exercise intensity, although this relationship is individual and should be determined for each person (Achten & Jeukendrup, 2003; Altini, 2015). Heart efficiency might also be evaluated. By definition, increasing the heart rate increases the cardiac output, because there is major number of stroke volumes of blood being released into the system. This occurs as long as the heart is given enough diastole time to fill the heart with the same volume. However, if the heart rate becomes excessively high, the heart may not have enough time to properly fill with blood between beats, which leads to a decreased cardiac output. This is not desirable for athletes in high physical effort because it means that the fatigue will overcome very soon. The heart is a muscle as any other and thus, it can be trained in order to increase its efficiency, which makes the heart rate useful to evaluate the progress of physical activity status. Moreover, heart rate data is already used to estimate energy expenditure, along with the acceleration data. The incorporation of the heart rate data in activity-specific regression equation showed consistent improvements in energy expenditure estimation (Albinali et al., 2010; Altini et al., 2012; Ceesay et al., 1988; Ltd., 2012). Acceleration reflects a relation between motion and energy expenditure, whereas heart rate shows a strong correlation between energy expenditure and oxygen consumption. However, heart rate during an activity is specific to a person since it depends on the individual’s cardiorespiratory fitness level. Therefore, the heart rate should be normalized according to each individual’s fitness level, using normalization parameters at individual level (individual calibration). It is very important to realize that the heart rate is affected not only by the activities such as walking or running, but also by work or social interactions. Thus, the heart rate normalization for energy expenditure estimation must be recognized and interpreted according to the situation in which the activities are performed. Some studies have suggested algorithms for individual calibration of heart rate, motivated by the substantial inter-individual differences between heart rate and energy expenditure due to cardiorespiratory fitness level (Altini et al., 2013, 2015). Estimating energy expenditure from heart rate is relatively cheap and easy to perform. When the heart rate is used to estimate the volume of oxygen or energy expenditure, a linear relationship between the heart rate and oxygen volume consumption is assumed. Although this is true for a large range of intensities, during very low and very high intensities the relationship becomes non-linear. At rest, slight movements can increase the heart rate, while energy expenditure remains almost the same. In addition, the estimation of energy expenditure from the heart rate is sport-specific. It has been well documented that the type of physical activity and posture can influence the relationship between heart rate and energy expenditure and can therefore affect the energy estimation (Achten & Jeukendrup, 2003; Altini, 2015). During intermittent exercise, the relationship between the heart rate and energy expenditure might not be as accurate. This occurs because the heart rate responds relatively slowly to changes in work effort. A sudden increase in work effort will not immediately result in heart rate increase that would be observed at that exercise intensity after body’s adaptation. Similarly, when the work effort is decreased, the heart rate will remain elevated for some time and only gradually return to the heart rate value observed during steady-state conditions at this lower work intensity (Achten & Jeukendrup, 2003). The heart rate and its variability has been greatly used for stress state detection. Stress consists in a psychological response to a certain physical, emotional and physical event that a person faces and it is known as ‘fight-or-flight’ or acute stress. Physiologically, it consists in the secretion of hormones such as adrenaline and cortisol into the body’s blood stream (Alexandratos, 2014). These hormones intensify the individual's concentration, increase alertness and provide extra energy. Despite the fact that stress alert the person to eventual dangerous events, long periods of stress can be very harmful for the health as and it can lead
22 to various conditions like cardiovascular disease, obesity or depression and anxiety disorders (Alexandratos, 2014). Despite the complexity of measuring the stress level directly, it is quite possible to annotate stressful events and relate them to physiological signal changes that can be easily measured, such as the heart rate or electrodermal activity (Alexandratos, 2014; Liu & Ulrich, 2014). Thus, it is important to measure physiological signals accurately anytime and anywhere. There is a balance between the two branches of the autonomous nervous system under normal situations, placing the body in a state of homeostasis. However, under a state of mental stress, this balance is altered and several physical changes might occur in the human body. These include increased heart rate, faster breathing and increased sweating due to the higher activity of sympathetic branch. Therefore, HRV can be used to detect the change in system balance as measures of mental activity and mental stress. During stress conditions, it is expected that SDNN, RMSSD, pNN50, Total Power, HFnorm decrease and that LFnorm and LF/HF increase (Alexandratos, 2014; Dennis et al., 2014; Yang et al., 2008). Figure 11: Tachograms under non-stress situation and under stress (Yang et al., 2008). As referred, several studies have reported reduced heart rate variability in patients with anxiety disorders and chronic or post-traumatic stress, due to the autonomic nervous system alterations. This represents a higher risk of developing a cardiovascular disease (Liu & Ulrich, 2014; Yang et al., 2008). Therefore, a real-time personal stress monitor can be a powerful tool by providing meaningful information about the user stress level at anytime and anywhere. A real-time system that monitors the user's heart, suitable for stress state detection, arrhythmia detection and heart rhythm classification was developed (Pierleoni et al., 2014). This system includes a Zephyr HxM-BT device and a smartphone, where the data packages are transmitted at a frequency of 1 Hz to the smartphone. The stress state detection, due to emotional stress occurrence, is based on the heart rate variability analysis, through the computation of time-domain parameters over an appropriate data acquisition window, including the SDNN, RMSSD, pNN50 and average heart rate. The window used has a standard duration of 5 minutes. According to (Andreoli et al., 2010), the stress state was reached every time at least three of the four values exceeded the correspondent established thresholds (Yang et al., 2008). This analysis is possible since the heart rate monitor acquires continuously the cardiac activity, which means that all of the heart beats are included in the algorithm. Table 1: Time-Domain HRV parameters thresholds for stress state detection (5 minutes recording) (Yang et al., 2008). HRV feature Threshold Mean HR higher than 85 BPM pNN50 lower than 7% SDNN lower than 55 msec RMSSD lower than 45 msec
29 intensity, duration, and frequency of daily activities using a physiological parameter that represents the exercise intensity and cardiovascular adaptation to it. The heart rate reflects relative stress placed on the cardiopulmonary system during physical activity. However, it can also be elevated by emotions, stress and mental activity. Hence, the simultaneous use of the heart rate value and motion sensors data provides a more accurate prediction of energy expenditure, compared with the use of heart rate or motion sensors independently. As it can be observed in Figure 16, the heart rate is as higher as the physical effort required by the physical activity performed, which is confirmed by the energy expenditure per minute in each activity type. In general, the energy expenditure is as higher as the heart rate value in each activity, due to the also higher oxygen intake demanding required by high physical effort. The heart rate is highly correlated with energy expenditure during moderate and vigorous activities such as walking, running and biking. But during lying or sedentary activities, this relationship is weaker. Figure 16: Relationship between heart rate and different physical activities (Altini, 2015). 2.8. Measurement and Monitoring Systems 2.8.1. Heart Rate Monitors Heart rate monitors are monitoring devices that allow measuring heart rate in real time or recording the heart rate for later analysis. They have a huge clinical applicability, since they enable to infer about the clinical state of the person. Furthermore, they also have an immeasurable impact on sports field, because they provide immediate feedback on how hard the person is working out so that adjustments can be made to get the greatest benefit from exercising. Since the heart rate is a useful indicator of physiological adaptation and intensity of effort, its monitoring is very important for cardiovascular fitness assessment and training programs. Nowadays there are plenty of devices that measure the heart rate, from typical ECG to current wearables such as smart vest or smartwatches. These devices differ essentially by the heart rate measurement mechanism: the ECG, Holter monitors and chest straps rely on biopotential mechanism, smartwatches and bracelets rely on photoplethysmography or bioimpedance mechanisms, oximeters rely on photoplethysmography mechanisms and blood pressure monitors rely on pressure method. The electrocardiograph (ECG) and Holter monitoring devices have been demonstrated to be accurate, but not feasible for use in field settings due to cost, size and complexity of operation (Jain & Tiwari, 2014). The ECG is the current gold standard approach for heart rate measuring, but requires a hospital visit, sticky gels and uncomfortable electrodes attached to
30 the skin. In turn, portable heart rate monitors emerged as portable ECG like Holter, wireless chest straps that send data to a monitor worn on the wrist, ECG electrodes built-in in vests, pulse monitors worn on the wrist such as watches or bracelets, and even worn on the ear as earbuds. The Holter monitor uses biopotential electrodes incorporated in gel patches that are placed on the chest. Nowadays, smart vests, smartwatches and bracelets, besides the heart monitoring, also include activity tracking, so both data can be combined to do a more reliable clinical/fitness analysis. However, studies have demonstrated that wrist-based heart rate monitoring is not as reliable as the ECG or even the chest straps (Parak & Korhonen, 2014a; Richmond, 2015). The chest straps that connect to sports-watch models allow the continuous tracking of heart rate by sending the information to a monitor worn on the wrist. It is advisable to moisture the electrodes placed on the chest strap in order to conduct the signal. Chest-strap heart rate monitors can be a burden to participants because of the constriction required across the chest to maintain good skin contact. Electrode-based heart monitors are difficult to wear, as placement, skin treatment, and irritation can be significant issues and detriments to long-term wear. Current sports watches and fitness trackers provide target zones in order to the user control physical effort and can also include other activity features such as calorie counters, speed and distance monitors, lap counters, recovery heart rate and time spent in the target zone. Gym equipment such as treadmills, elliptical machines, stationary bikes and stair climbers are also equipped with pulse monitors based on biopotential sensors, however they are not so accurate. Everyone, from at risk heart people, injury-rehabilitation patients, athletes, sports amateurs and healthy life style people can benefit from continuous heart rate monitoring. Heart patients can prevent potential life-threatening heart attacks by using heart rate monitors to protect themselves. Heart rate sensors included by the majority of smartwatches work via photoplethysmography, where each signal’s pulse peak can be interpreted as an R wave with good accuracy. However, they present some limitations such as the need the recharge the battery, limiting the potential monitoring time. Furthermore, individual skin’s characteristics such as the pigmentation, existence of tattoos, temperature, variations in skin pressure or even hairiness, allied to fluctuations in oxygen levels or movement artefacts can all affect readings that are performed via PPG (Carpenter & Frontera, 2016). Current smartwatches, although they represent a great tool for heart rate monitoring, they do not enable arrhythmia detection yet, since they do not incorporate ECG features such as P wave and P-R interval, which are important features to detect arrhythmias (Carpenter & Frontera, 2016). Further, they do not provide, for third parties applications, the all beat-a-beat heart rate signal, but the heart rate at a specific time, which does not provide a constant rhythm analysis The market for consumer wearable devices is popular and continues to grow. Besides this, these gadgets presents a great potential utility to be used by cardiovascular patients (Hickey & Freedson, 2016). Wearable devices may provide opportunities to overcome limitations of self-reported activity and also provide a driver for sedentary behaviour change. These devices can be used to track physical activity behaviour as an outcome after different treatments and also to be used as encouragement to be more active and prevent cardiovascular diseases. However, it must be determined which features of the devices are the most effective in changing the lifestyle behaviour. These wearables present a huge potential to improve the healthcare system and treatment providers. For instance, it was reported the use of Fitbit Charge HR to determine the onset time of a patient’s arrhythmia and guide his emergency department management (Rudner et al., 2016). Although they cannot identify arrhythmias yet but only the pulse rate, they can detect heart rate abnormalities, which in turn can guide the clinician in designing further evaluation strategies using more sophisticated instrumentation. Hence, they are devices with a great potential, which in the future will be highly accurate to behave as a medical helping tool and the current limitations will be outdated and, taking into account the technology development speed, very probably with the possibility to perform non-
31 invasive detection of cardiac arrhythmias (Carpenter & Frontera, 2016). The heart rate devices differ on the heart rate measurement method used, included activity and heart rate variability features and also on the easiness and using comfort. In a previous work, the Dissertation Preparation Monography, these devices were already analysed in detail, taking into account their main attributes and capabilities. Hence, the main products that are available in the market can be consulted in that work. 2.8.2. Heart Rate and Activity Monitoring Systems Accelerometers and heart rate monitors have been combined to improve the accuracy and precision with which Energy Expenditure can be predicted, measure of physical fitness by combining the heart rate values with body movement. Nowadays, the energy expenditure estimation is a very valued feature by the consumers when they attempt to buy a wearable device for activity monitoring. However, the models included in these devices might not be as reliable as desirable. The validity of total energy expenditure estimates of several wearable devices, against the gold standard metabolic chamber method and doubly labelled water (DLW) methods, was assessed through an accuracy test, with 19 healthy volunteers (Murakami et al., 2016). The total energy expenditure was measured using 12 different wearable devices, which differ in the energy estimation method, depending if they include heart rate sensor or not, and also the wearing method. The results showed that the measurements from the devices, for a standardized day, were higher than the metabolic chamber but blower than the values provided by the DLW. In short, the wearable devices tested were able to rank daily total energy expenditure between individuals, but absolute values differed widely among devices and varied significantly from the gold standard measures. Furthermore, they all underestimated total energy expenditure and the large variance observed among the values measured by the devices may be associated with posture detection and also periods of not wearing the devices. With this study it was concluded that majority of wearable devices do not produce a valid measure of total energy expenditure. Nevertheless, heart rate and activity monitoring features are currently combined in several systems that are available on the market. These sensor fusion systems present advantages when compared to activity monitoring systems. For instance, low motion might indicate rest or it might indicate physical activity using a part of the body far from the accelerometer. In turn, moderate motion might indicate physical activity or it might indicate riding in a moving vehicle on a rough road. By adding another variable, such as heart rate, these different contexts can be disambiguated, since subjects at rest will typically have lower heart rates than those performing low-motion physical activity. By taking advantage of the science of data fusion, multi-sensor systems typically achieve higher accuracies than single sensor systems while typically keeping overall costs moderate. Further, the heart rate logging might be used for different purposes, mainly for clinical or fitness purposes, although they are related. Heart rate data from biopotential sensors, characteristics of the ECG, existent in smart vests and Holter monitor, are currently used for clinical purposes, especially for arrhythmia’s detection and cardiac rehabilitation. Firstbeat 1 , a Finnish company, has developed a strong tool for heart rate analysis that enables the creation of a user’s physiology model, in order to improve well-being (Wellness Service) or training effect (Sports Service), depending on the purpose. In both cases, Firstbeat Bodyguard 2 2 records the data. In the Sports Service, the tool is suitable for athletes and coaches, providing tools for optimizing training load and recovery. It detects VO2max from a freely performed workout, based on the heart rate response and external workload, with high accuracy, in this case walking at a considerable speed. This parameter represents the maximum 1 http://www.firstbeat.com/ 2 http://shop.firstbeat.com/all-products/bodyguard.html#.V2qWWLgrLIU
32 volume of oxygen the body can consume in one minute, and it is an important measure of fitness condition. Firstbeat’s VO2max algorithm uses real life running, walking or cycling data, analysing the relationship between the heart rate and the speed. It can be used to evaluate fitness improvement over time and compare results with age-gender reference. The exercise impact on the body is also estimated, based on user profile, duration and intensity of the workout. Anaerobic threshold is the highest workload at which the body is able to achieve a steady-state condition, so the lactic acid accumulation and removal are in equilibrium. This threshold is estimated through the relation between heart rate and speed and heart rate variability as well, using sophisticated data modelling methods. Energy expenditure is calculated through heart rate data, respiration rate and VO2, which, in turn, is derived from heart rate. Daily performance, recovery time are also calculated to optimize training. In the Wellness Service, the tool is used for lifestyle assessment and thus, measures daily periods of stress and recovery, creating a detailed report. This allows avoiding exaggerated stress and its negative consequences on health, by detecting its causes, and promotes the user to find a balance between stressful and relaxing activities. It analyses periods of stress and recovery, hours of sleep, hours of physical activity and energy expenditure. These assessments are done for a 3 days period, with previous personal information from a pre-questionnaire. Currently, daily basis heart rate devices such as smartwatches and bracelets enable continuous heart rate measurement and, thus, heart rate logging. They usually include an app where the user is allowed to see the heart rate logging throughout the day and the time in each heart rate zone, along with other activity measures like distance, speed, steps walked, oxygen consumption, calories burnt and even sleep patterns. These data is analysed for well-being and fitness purposes. Firstbeat tool has been adopted by smartwatches and bracelets brands (Sony, Suunto, Garmin and Samsung) so the users can improve their fitness experience, well-being and find a balance between stress and recovery. However, the main focus is on fitness improvement. Within the PAMAP 3 project, a Mobile and unobtrusive platform that enables the accurate monitoring of physical activities in daily life, which is posteriorly integrated into a healthcare system that supports out-of-hospital services, was developed (Reiss et al., 2012). The main purpose of this mobile platform is the monitoring of the user’s daily activities by collecting and processing sensory data, and also giving instant feedback to the user. The main goals of an aerobic activity monitoring system consist in analysing what activity the user performed, for how long and with what intensity. For that, the system presents three IMUs, placed on the hand, chest and shoe, and a chest strap heart rate monitor, which can be quite uncomfortable for a daily use. This data enables the detection of daily activities such as sitting/standing, lying, cycling, run, walking or Nordic walking and “other” activities, that cover all the other transition actions between the ones with interest. The physical effort associated to each activity is primarily established, categorizing each one as light, moderate or vigorous. Therefore, the total time spent doing activities with a certain intensity is the time spent doing the activities labelled with that same intensity. Due to the available heart rate information, the mobile application allows defining a specific heart rate value, which if it is exceeded, an alarm is initiated. Besides this, it provides a summary of how much time the user spent in different heart rate zones, taking into account the normalization of the heart rate according to the rest and maximum values, i.e., an activity summary with the detailed activities performed and the associated physical effort. These summaries can be observed in Figure 17. 3 http://www.pamap.org/index.html
33 Figure 17: Example of the heart rate summary provided by the application (Reiss et al., 2012). Heart rate and activity monitoring has leaded to technology evolution. Recently, Bosch Sensortec 4 launched two sensor hubs to collect vital signals based on heart rate and motion evaluation for fitness and well-being applications. These allow integrating data from different sensors and process them, which promotes battery consumption and improves performance. A third party company, the Firstbeat Company, provides the analytic software on-chip. The two chips, BHV250 and BHV160, integrate 3 and 6-axis inertial MEMS sensors, accelerometer, and the BHV160 also includes a gyroscope. The devices are Android-Wear compatible and they were specifically designed for sensor based always-on applications in wearable devices such as smartwatches, fitness wristbands, earphones, smart shoes and textiles. Hence, they are an ideal all-in-one-solution for sensor based applications such as fitness level and training effect analysis, sleep quality and body stress, tracking of physical activity and calorie consumption based on Firstbeat’s powerful vital analytics algorithms, and also sensor features like activity and gesture recognition. The system can be used to measure relevant body parameters in ehealth and telemedicine monitoring projects, where healthcare providers can monitor the progress of their patients through an e-health portal. The ECG Necklace 5 device is a smart biomedical sensor that measures the ECG signal and also activity parameters from the human body, through two leads and a small device. This can analyse the signals in real time and transmit them to a user interface wirelessly. This technology is specifically designed for healthcare and research applications, measure relevant body parameters in e-health and telemedicine monitoring projects. The data provided by the system can be translated by algorithms into meaningful information for use in an app on a smartphone. The Kyma µ–cor 6 is a system for monitoring of patients with chronic cardiac illnesses. Attached to the patients’ torso, it measures fluid trends in the thoracic region, performs heart and breathing rate measurement and also activity and body posture analysis. Rejiva 7 is a wireless ECG based telemedicine and biofeedback patch that captures overall health, manages stress, tracks sleep and energy level. It measures ECG, Heart Rate and its variability, respiratory rate, sleep position, breathing Index, and energy Level to analyse the state of the Autonomic Nervous System. SecuraFone 8 is a device that combines remote monitoring of vital signs with GPS tracking and emergency response to deliver an individualized mobile health solution. It includes system-on-a-chip semiconductors, accelerometers, cloud-based computing and an app with a dashboard, where the user can understand the vital signs acquired by the SecuraPatch, which 4 https://www.bosch-sensortec.com/bst/products/all_products/bhv160 5 http://www.maastrichtinstruments.nl/portfolio/ecg-necklace-body-area-network/ 6 http://www.kyma-med.com/tech/solutions.html 7 https://rijuven.com/ 8 http://www.securafone.com/home/
34 is a wireless adhesive sensor that includes heart rate, respiration rate, body posture and temperature sensors. The SecuraFone Health can be configured to allow the caregiving team to access both real-time and historical data and to work with a 24/7 monitoring company that provides near-immediate emergency response to health and other events. Released in the end of 2015 by Reassure Analytics, CareMind 9 is a new smartphone app that allows tracking the vitals of an elderly, making use of Fitbit Surge smartwatch. It takes advantage of Fitbit’s ability to share information with paired devices over Bluetooth connections to transmit activity levels, sleep and heart-rate patterns. This app can convey this information in something like real time, allowing it to send out alerts during some health crises and provide other notifications, making it ideal for cardiac patients and elderly. It allows to know the user heart rate, the time they woke up, last time they moved and also the number of steps token. It alerts when the heart rate is too low or too high, when the user has not moved for a long period of time, when abnormal sleep patterns are detected or there is a high risk of falling. The frequency with which the users sync the Fitbit will determine how often their data will refresh in the CareMind app. If the users have an Apple smartphone, it will periodically sync when the Fitbit and iPhone are near each other, but may require the user to occasionally open the Fitbit app. If they are using an Android smartphone, the Fitbit and their Android smartphone will automatically sync every 15 mins throughout the day as long as the devices are near each other. Olive 10 is a bracelet, still in project phase, that uses a number of indicators to see if the user is under stress and how much, such as the heart rate, skin endurance, muscle tension and trends in skin temperature. It also analyses daily physical activities to see if they contribute to the stress, such as sleep or even exposure to light. When the bracelet detects higher than normal stress levels, it notifies the wearer through haptic feedback or LED lights on the wrist. Imec’s health patch system 11 consists on an imec’s breakthrough health patch with a dedicated software. It includes an innovative approach to measuring accurate energy expenditure, computing the person’s individual cardiorespiratory fitness level to continuously calibrate the activity monitoring. It deduces the wearer’s cardiorespiratory fitness level from the heart rates at rest and during walking. The system stores the heart rate at rest and while walking (including walking speed). The normalization factor is recalculated every day, using the median values of the last week of heart rate data. That way, changes in cardiorespiratory fitness will be automatically reflected in changes in the normalized heart rate. This will at all times ensure an accurate monitoring of the energy expenditure. 9 http://www.caremindapp.com/ 10 https://www.indiegogo.com/projects/olive-a-wearable-to-manage-stress#/ 11 http://www2.imec.be/be_en/research/wearable-health-monitoring.html
35 3.1. System Architecture Monitoring means to be aware of the state of a specific system, observing a situation or condition for any changes which may occur over time. Cardiac monitoring usually refers to continuous electrocardiography with assessment of the patient’s condition relative to their cardiac rhythm. This projects aims to develop a system, as proof of concept, which allows both activity and heart rate monitoring, in a daily basis, in order to study the inter-combination between energy expenditure, speed or workload, activity and heart rate and generate alerts for abnormal heart rates. There are already plenty of devices developed for heart rate monitoring purposes, using as heart rate monitor ECG patches or chest straps, which are very uncomfortable and difficult to use in the quotidian. Therefore, the heart rate monitor should be comfortable and highly accurate, preferentially positioned at the wrist as a bracelet, in order to be comfortable enough to be used during all day. The activity data will be provided by the MoverLib (Teixeira et al., 2011), which is a Fraunhofer component that allows falls and activity monitoring that receives data from a smartphone’s built-in accelerometer, and classifies the type of activity being performed and its main characteristics, such as energy expended, distance, number of steps performed and speed. On the other hand, the smartwatch provides the heart rate data, acquired continuously from the wrist. The combination of both data is important for physical activity applications as an additional information of the human physical behaviour during the day. It could also be used to trigger alarms in case of abnormal heart rate values that have a negative impact on the person's health. It is also important to perceive some heart rate patterns that are influenced by physical activity. Taking into account the heart rate applications and its potential to improve activity monitoring, several system requirements were defined. The system should analyse the heart rate variability along the day and relate it to the activities and physical effort performed, studying the correlation between the energy expenditure, speed, physical effort and even stress with heart rate patterns and the autonomic nervous system balance. It should also evaluate the physical effort and the type of activity being performed, detecting if the heart rate is not normal for the physical effort required, detect abnormal situations and generate alerts for emergency situations. Besides this, it can also perform a daily summary with the time Chapter 3 Research Methodology
36 spent in each cardiac zone, and the main activity and heart rate characteristics along the day. Figure 18: System Use Case Diagram. 3.1.1. Hardware The system requires a heart rate monitor that is comfortable and accurate at the same time, preferentially positioned at the wrist. Moreover, it is desired that the monitor is capable of continuously reading the heart rate, in order to acquire all the important information. Further, the device should enable easy access to the all acquired data and the development of third parties applications. Taking into account the smartwatches and bracelets that are available on the market and according to preliminary tests performed in the previous work related with the Preparation of Dissertation Monography, which evaluated the precision and reliability of the smartwatches Fitbit Surge 12 , Samsung Gear S, Moto 360 and LG Watch R 13 , the main choice fell within the Fitbit Surge as heart rate monitor. Further, other features were taken into account in this choice, as the possibility to access the heart rate and other activity features data, and mainly the almost constant reading frequency. In turn, the other tested smartwatches provided a very low and non-constant reading frequency, which is not suitable for continuous heart rate monitoring because a lot of valuable heart rate information is lost. The Fitbit Surge is a smartwatch that measures the heart rate through the photoplethysmography principle. Its LED emits light that reflects onto the skin to detect blood volume changes due to the cardiac cycle. Is also tracks the number of steps taken, distance performed, calories burned, floors climbed, active minutes, hours slept and the time spent in each heart rate zone. The heart rate zone is defined using the estimated maximum heart rate (220-age): the Peak zone corresponds to heart rate values greater than 85% of HRmax; the Cardio zone corresponds to values between 70% and 84% of HRmax; the Fat Burn zone includes heart rate values between 50 and 69% of HRmax and finally; the Out of Range zone includes heart rate values below 50% of HRmax. The watch includes several sensors such as 3-axis accelerometer, which measures motion patterns and determines the steps taken, distance travelled, calories burned, active minutes and quality of sleep, an altimeter, which measures floors climbed, GPS, Bluetooth 4.0, an optical heart rate sensor, 3-axis gyroscope and 3-axis magnetometer. Fitbit Surge holds detailed minute-by-minute information for the most recent 7 days, and 30 days of daily summaries. The heart rate data can be stored at one-second intervals resolution during exercise tracking and at five-second intervals at all other times. The Fitbit has an application programming interface that allows developers to interact with Fitbit data in their own applications, products or services. This data can be personal or 12 https://www.fitbit.com/surge 13 http://www.lg.com/us/smart-watches/lg-W110-lg-watch-r
37 from other users. Any developer can build an application to access a Fitbit user’s data on their behalf, if the application is registered and authorized by the users to access the data. This is useful, for instance, to help a doctor tracking the patient’s health and behaviour throughout the day, by accessing his heart rate and other activity features. The Fitbit Web API uses the OAuth 2.0 protocol for user authorization, which enables applications to obtain limited access to user accounts on an HTTP service. The implicit code grant method is preferable over the authorization code grant flow since the token has a higher lifetime, which does not require a constant authorization by the user. The developed application redirects the user to Fitbit's authorization page. Upon user consent, Fitbit redirects the user back to the application's redirect URL with an access token as a URL fragment. In turn, the application stores the access token, which will be used to make requests to the Fitbit API. This token has a limited validation time of one year, therefore, each time the token is expired the application must refresh the access token. The smartwatch saves the heart rate data with a variable frequency, from every 1 to 20 seconds, depending on the activity and effort required from the watch system. Therefore, the acquirement frequency cannot be defined, which becomes the data coordination such a challenge. To access the data acquired by the smartwatch, a specific library was built, with different classes to get specific structured JSON data objects from the server. It enables the access to data saved at one second level resolution, called intraday time series, daily summaries, which include a summary and list of a user's activities and activity log entries for a given day, or even the user’s profile data, including personal information such as birthdate, gender or height, among other features. The tracker syncs with Fitbit Server every 15 minutes if network connection is available and new data has been pushed. The tracker syncs with the Fitbit app every time the app is opened, or periodically throughout the day if the all-day sync option is turned on. The Fitbit Surge measures energy expenditure taking into account the basal metabolic rate, which is the rate at which an individual burns calories at rest in order to maintain body’s functions such as breathing, heartbeat, brain activity or digestion. This is estimated based on the individual’s gender, age, height and also weight. Further, the estimation of calories burnt takes also into account the activity recorder by the tracker, heart rate and other activities that might be logged into the system manually. The Fitbit Surge owns the PurePulse technology, developed by Fitbit, which uses heart rate data, when available, to more accurately estimating energy expenditure. Several studies have been performed to assess the Fitbit reliability, either in activity or heart rate monitoring (Alharbi et al., 2016; Jo & Dolezal, 2016; Paul et al., 2015). Cardiovascular researchers from the University of Sydney have found that Fitbit is a valid and reliable way of monitoring physical activity for cardiac patients (Alharbi et al., 2016). They discovered that Fitbit accurately identified whether patients met physical activity guideline recommendations, such as number of steps per day, offering valuable data for clinicians and researchers working in cardiac rehabilitation programs to monitor, evaluate and encourage their patient’s physical activity levels. It is important to assess physical activity in cardiac rehabilitation participants because they are more likely to have lower levels of activity. These individuals are often of older age and have conditions that cause symptoms such as chest discomfort, dizziness, shortness of breath and leg or arm discomfort. Therefore, Fitbit devices might be perfect to use in this population to help tracking theirs physical activity and to motivate sustained changes in moderate-intensity exercise. Moreover, physical activity features such as daily step counts and moderate vigorous minutes, measured though Fitbit-Flex 14 , which does not include heart rate monitor but includes 14 https://www.fitbit.com/flex
38 the same method to count steps and active minutes as the Fitbit Surge, were compared against Actigraph 15 accelerometer (Alharbi et al., 2016). The results showed that Fitbit device was significantly correlated with Actigraph in measuring step counts and active minutes of light activity, moderate activity and moderate to vigorous physical activity. However it seemed to progressively overestimating the step count as the number of steps increased, which might be due the manufacturer definition of the intensity cut-off points or the placement of Fitbit on the wrist rather than the waist. Fitbit was also correlated with Actigraph for measuring all active minutes except during vigorous activity. Another work concluded that Fitbit was a valid, reliable and inexpensive alternative device for activity monitoring, suitable to predict attainment of physical activity guideline recommendations and monitoring physical activity in cardiac patients (Paul et al., 2015). Although some overestimation in step counter and active minutes might occurred, it was capable of continuously monitoring free-living conditions and providing valuable physical activity data for clinicians, individuals and researchers to track physical activity levels. Furthermore, the validity of the Fitbit Charge HR, which include the optical heart rate monitor, was evaluated (Militara et al., 2015). In this work, the possibility of the smart gadget Fitbit Charge HR being suitable for self-management and daily feedback in type 2 diabetes patients was studied. For that, researchers compared the heart rate monitoring values and the calories burnt, distance and speed against RunKeeper 16 , which is a mobile application that uses the phone’s built in accelerometer and GPS to track data. They concluded that the device presented an acceptable accuracy for the investigation. In a different study, the Fitbit Surge and Fitbit Charge HR were evaluated against a Zephyr Bioharness chest strap (Jo & Dolezal, 2016), as performed in Chapter3. However, the obtained results were not positive. They concluded that the PurePulse technology exhibited an aggregate mean bias of 8.9 BPM and a mean absolute differential of 13.9 BPM when compared against Zephyr. Further, during higher exercise intensities, the mean bias was -16.8 and the mean absolute difference increased to 19.2 BPM. Currently, there are several apps for daily monitoring that use Fitbit tracker to assess physical activity and also heart rate, as is the case of CareMind, as referred in Chapter 2.8.2. However, it has to be taken into account that Fitbit trackers are designed to provide meaningful data to users and help them reach their health and fitness goals, and are not intended to be scientific or medical devices. Besides the heart rate monitor, the system requires a smartphone with built-in sensor such as accelerometer, in order to acquire activity data that will be analysed and used to classify the activity being performed. Since the Fitbit does not allow to access the data in real-time, the possibility of using an Android Wear smartwatch was tested. However, none of the tested devices, which included Moto 360 and LG watch R, showed an acceptable behaviour. Further, it is not possible to establish a suitable and constant reading rate to perform a continuous monitoring with these devices. 3.1.2. Software The activity monitoring will be performed by a developed library denominated Mover Lib. This library, developed by Fraunhofer AICOS, is useful for applications that are inserted in a lifestyle category, enabling activity level tracking and also helping the user to become more active. The Mover Lib reads data from the smartphone’s accelerometer, classifying ambulatory activities and postures of the user in real-time. It also computes the number of steps and speed 15 http://actigraphcorp.com/ 16 https://runkeeper.com/
45 3.2.2. Evaluation The heart rate measurement performance was estimated by the device’s accuracy and reliability. Reliability, was considered as the % of samples in which the absolute error is smaller than 10 BPM, whereas the accuracy consisted in the complement of the relative error (i.e., 100% - mean absolute percentage error). The reliability provides a measure of the amount of time the system is working within an acceptable confidence interval. The 10 BPM error threshold was chosen to represent a level that is adequate for consumer sports device for typical recreational use, providing the error committed by the system at any time (Delgado- Gonzalo et al., 2015b). The concordance analysis was performed with the application of a 5 seconds moving average window, as referenced in (Delgado-Gonzalo et al., 2015b; Parak & Korhonen, 2014b). For that, the Fitbit Surge signal was linearly interpolated to overcome the non-constant reading frequency. According to (Bland & Altman, 1999), methods that are designed to measure the same parameter must have good correlation, which is not synonymous of agreement. The correlation coefficient does not assess agreement but association, which is very different. Perfect agreement occurs when both measurements lie perfectly along the line of equality. In turn, poor agreement can produce quite high correlation. Agreement between two different methods of clinical measurement can be quantified using the differences between measurements using the two methods on the same subjects. The 95% limits of agreement are estimated by mean difference ±1.96 standard deviation of the differences, and they provide an interval within which 95% of differences between measurements by the two methods are expected to lie (Bland & Altman, 1999). In the case of a reliable measure, 95% of the value points should lie between these limits. The relative reliability between test and retest was evaluated with Intra-Class Coefficient (ICC) model (3, k), as defined in (Shrout & Fleiss, 1979), which takes both systematic and random errors in the data into account and uses the mean scores of repeated tests as evaluation score. Hence, and as referenced in (Bruton et al., 2000), ICC scores equal or larger than 0.75 correspond to an excellent relative reliability, an ICC score between 0.4 and 0.75 is known to correspond to a good relative reliability and finally, an ICC score lower than 0.4 is considered as poor relative reliability The visual assessment of reliability was carried out using Bland-Altman plots: the plot of the average of two measurements by the difference among two measurements provides a qualitative estimate of absolute reliability. Mean differences should be close to zero to demonstrate agreement. Table 5: Testing Laboratory Protocol and durations. Protocol Task Duration (min) Starting time Sitting at rest 1 00:00 Standing still 1 01:00 Walking 3.5 km/h 0% inclination 2 02:00 Walking 3.5 km/h 10% inclination 2 04:00 Walking 5 km/h 10% inclination 2 06:00 Running 8 km/h 0% inclination 2 08:00 Running 8 km/h 10% inclination 2 10:00 Sitting at rest 1 12:00 Ascending Stairs 0,5 13:00 Descending Stairs 0,5 13:30 Total Duration 14
46 3.3. Datasets In order to study the relationship between the heart rate variability patterns and the activity being performed, speed and energy expenditure, public datasets and some acquired datasets were used, with different purposes and methods. The public datasets used, which included both activity and heart rate data, were PAMAP and PAMAP2. The PAMAP dataset was recorded with an early system prototype developed in the PAMAP (Physical Activity Monitoring for Aging People) project, in August 2010, where wired 3D-IMUs and a heart rate monitor were used as sensors (“PAMAP.ORG,” n.d.). Eight volunteers, with an average age of 27.9±1.9 and from which 7 are men and 1 is woman, were subjected to a predefined data collection protocol of about one hour each, which makes approximately 8 hours of data that was collected. In turn, the PAMAP2 dataset was recorded in autumn 2011. It includes data from 9 volunteers subjects, with an average age of 27.2±2.7 and from which 8 are men and 1 is woman, wearing 3 IMUs 31 and a heart rate monitor 32 , and performing 18 different activities. Over 10 hours of data were collected altogether, from which nearly 8 hours were labelled as one of different 18 activities. Both datasets have been made publicly available for research purposes, and can be downloaded 33 . These datasets include outdoor activities, such as walking, running, cycling, playing soccer and rope jumping, and also indoor activities such as lying, sitting, standing, vacuum cleaning, ironing and ascending/descending five flights of stairs. It also includes transient activities that consist in going from one location to the next activity’s location, waiting for the preparation of some equipment. The detailed description of each activity performed is presented in Table B1. In order to study the possibility to use the smartwatch heart rate signal to infer about stress states, three subjects, aged between 22 and 25 years old, wore the Fitbit smartwatch and a smartphone, to record the heart rate and the activity data, respectively, during several days, in order to record some possible stressful daily situations. The heart rate data was posteriorly accessed through the developed API protocol library, which enables the access to the heart rate data that the Fitbit syncs to its server. To record de activity data, it was used an application that records the accelerometer data that was already developed at Fraunhofer, in order to create an annotated dataset. This data was posteriorly analysed by a proper library that classified the activities. The smartphone was always placed on the pocket and the recording was performed with an execution with 5 seconds delay before starting, to enable the users to place the phone in the pocket and stabilize it. Both data was synchronized through the timestamp. Daily basis activities were performed and stressful situations were manually annotated. These last include work, car traffic or public presentations. In order to study the combination between heart rate and energy expenditure, it was also used a dataset acquired during a previous validation procedure (Carneiro et al., 2015). In this test, three models were compared with indirect calorimetry outputs of energy expenditure during an incremental speed treadmill protocol. During the test, it was measured the maximum volume of oxygen consumption, accelerometer and heart rate data. The method used as ground truth was the indirect calorimetry, with the oximeter Jaeger Oxycon Pro Metabolic Cart TM 34 , which measures the concentration of expiration gases in intervals of 5 seconds. The performed protocol consisted in a maximal incremental treadmill protocol starting with a 2 minutes warmup phase at 4 km/h, followed by speed increase to 6 km/h for 1 minute and subsequent increases of 1 km/h, each level lasting for 1 minute. The tests were carried out using one 31 http://trivisio.com/index.php/products/motiontracking/colibriwireless 32 http://bm-innovations.com/index.php/shop_products.html 33 http://www.pamap.org/index.html 34 http://www.carefusion.com/our-products/respiratory-care/metabolic-carts/oxyconmobile-device
47 smartphone attached to the left side of the belt and another to the right side of the belt of each subject. Further, during the tests the subjects also wore an oronasal mask 7450 Series V2 Mask 35 with flow sensor for gas collection and analysis. The heart rate data was acquired through the chest strap Polar Wearlink 36 , which was sent through Bluetooth and synchronized with the oximeter data. Each subject performed the test on the treadmill until volitional exhaustion was reached. The real number of steps was manually annotated using a tap counter application for smartphones and the total distance was obtained from the treadmill. Moreover, in order to differentiate between walk and run activities, the time when the subject started to run was manually annotated. The group was composed of 13 subjects, 12 females and 1 male, with an average age of 33.2±9.1 years, average height of 161.2±4.8 cm and an average weight of 56.2±3.1kg. The total number of samples were initially 26, two per subject, but one subject was rejected due to an interruption during the acquisition, resulting in 24 valid samples. 3.4. Heart Rate and Activity Analysis 3.4.1. Heart Rate Variability and activity patterns The collected datasets, with heart rate and annotated activity data, were analysed using the standard heart rate variability measures, referenced in Chapter 2.4. This approach allowed to obtain more insights about the relationship between activity and heart rate and to detect potential heart rate variability patterns to discriminate activities. The time-frequency domain analysis was performed using the MatLab® R2013a and the developed HRVAS tool box (Ramshur, 2010). The heart rate data was pre-processed, excluding ectopic beats, followed by a cubic spline interpolation at 2Hz, to assume equidistant sampling and calculate the spectrum directly from the inter-beat interval tachogram. The timefrequency transforms were applied using time windows from 30 to 60 seconds, depending on the activity performed, so the heart rate variability changes could be properly detected, and an overlap of 15 seconds. The time-frequency transforms applied included the Wavelet Transform and Lomb-Scargle Periodogram, as explained in Chapter 2.4.4. Regarding the time-domain heart rate variability analysis, this one was performed using Pycharm. The calculated time-domain parameters included the RMSSD, SDNN, mean heart rate, mean inter-beat interval duration, as explained in Chapter 2.4.2, and mean variation speed between consecutive intervals. This last feature was calculated because the heart rate data provided by the smartwatch was not acquired at a constant frequency. Hence, in order to normalize the variation between consecutive intervals, the heart rate signal was resampled at a 1/3 Hz frequency, using cubic spline interpolation. Further, a sliding window of 100 samples, which corresponds to the standard 5 minutes short-term analysis, was applied to the signal, in order to capture the time domain heart rate variability behaviour over time. For the stress state detection test, the same time-domain heart rate variability methodology was applied, so the algorithm proposed in (Yang et al., 2008) could be tested. 35 http://www.rudolphkc.com/product_detail.php?id=181 36 http://support.polar.com/us- en/support/Polar_WearLink___Transmitter_with_Bluetooth__Compatibility
48 3.4.2. Relationship between heart rate and energy expenditure In order to confirm that the heart rate data is useful to estimate energy expenditure and that when combined with activity data, the estimation is improved, some already developed models were tested against the current model that is employed in the activity monitoring system. The similarity between the results obtained by the algorithms and the reference values was determined by calculating the normalized root mean square error (NRMSE) value between the datasets. The NRMSE can be obtained by dividing the root mean square error (RMSE) by the mean of the observed data. 𝑅𝑀𝑆𝐸=√∑(𝑋𝑜𝑏𝑠,𝑖−𝑋𝑐𝑎𝑙𝑐,𝑖)2 𝑛𝑖=1 𝑛 (3.2) 𝑁𝑅𝑀𝑆𝐸=𝑅𝑀𝑆𝐸 𝑋𝑜𝑏𝑠 (3.3) Since the dataset used to perform this study included already the computed energy expenditure estimation for each 5 seconds windows, instead of the raw accelerometer data, the algorithm chosen to combine the activity and heart rate data should allow including both data contribution by establishing a weight factor for each one. This way, the model already used for the energy expenditure estimation using smartphone’s accelerometer could be combined with another model that uses the heart rate data. Hence, in this procedure an energy expenditure estimation model through heart rate was combined with the activity based energy expenditure estimation model, which was suggested by (Ryu et al., 2008), following the branch model algorithm proposed by (Søren Brage et al., 2004) and adapted by camntech (Camntech, 2013; Crouter et al., 2008). In the case of using both activity and heart rate data, there is a heart rate value below which the linear relationship between heart rate and energy expenditure no longer holds. This is referred as the Flex Point and it has been used to distinguish between resting energy expenditure and energy expended during physical activity, and it was initially defined as the average of the highest heart rate value during rest and the lowest heart rate value during incremental exercise, performed during a treadmill test (Camntech, 2013). If the heart rate value is above this Flex Point, the energy expenditure is predicted using a regression line. A suggested multi-linear regression equation that was derived and expressed in terms of both activity counts and heart rate values is presented in Figure 23 (Søren Brage et al., 2004). P1, P2, P3 and P4 are weighting factors, X refers to the accelerometer counts, which is used to discriminate between activity and rest. Y and Z behave as heart rate thresholds in the presence and absence of activity, respectively. Y is used to discriminate between walking and running activities and Z is used to discriminate between the existence of movement or not during inactive states. During running the heart rate is a very reliable measure of energy expenditure whereas activity, measured by vertical acceleration, is less reliable since during running the latter does not increase linearly with speed. Further, when running at high speeds, the accelerometer usually reaches a maximum range value which leads to signal saturation. This is reflected by the high value of the weighting factor relative to the heart rate-energy expenditure relationship. In turn, the heart rate is a poor measure during resting activities whereas movement registration is more reliable, and this is reflected by a relatively low value of weighting factor relative to the heart rate-energy expenditure relationship. In boxes 2 and 3 movement and heart rate are equally weighted. The weight factors and the other parameters values were derived by walking and running on a treadmill in studies described in (S Brage et al., 2005; Crouter et al., 2008),
49 conducted with the Actiheart 37 , and are currently included in the Actiheart energy expenditure analysis because they are believed to be reasonably valid for free living conditions (P1 value= 0.9, P2 value=0.5, P3 value=0.5, P4 value=0.1). Further, transition HRaS, which is the average heart rate above sleeping between the highest walking and slowest jogging, was used to decide if equation 1 or 2 should be applied, was defined as 80 BPM (Crouter et al., 2008). The Y parameter was calculated by adding the transition HRaS to the sleeping heart rate. Since the data provided did not include the heart rate measurement at rest but the age and the maximum oxygen volume, this one was estimated with a prediction equation, suggested by (Uth et al., 2004), using theoretical maximum heart rate value and the maximum oxygen volume consumption. 𝑉𝑂2𝑚𝑎𝑥≅15,3×𝐻𝑅𝑚𝑎𝑥 𝐻𝑅𝑟𝑒𝑠𝑡 (3.4) This model was adapted, using the activity based model introduced by (Ryu et al., 2008) as the relationship between the activity and energy expenditure, and the model introduced by (Charlot et al., 2014) as the relationship between the heart rate and energy expenditure. Since the data used only includes walking and running activities, only the boxes 1 and 2, from the scheme, were used. Other energy expenditure estimation models that use heart rate data were tested, as was the case of the case of the model proposed by (Keytel et al., 2005), with and without VO2max, and the one proposed by Actiheart (Crouter et al., 2008). However, these algorithms showed a poor performance. Figure 23: Branched equation model, suggested by (Søren Brage et al., 2004) and adapted by camntech (Camntech, 2013). The model equation that was chosen to include in the combining method, and proposed by (Charlot et al., 2014), includes the heart rate value, height, weight, gender, resting heart rate and theoretical maximum heart rate, assuming that the heart rate at rest is an acceptable index of fitness level. According to the results obtained in (Charlot et al., 2014), the basic equation (3.5) proved to be accurate and to have a good correlation with indirect calorimetry. Besides this basic equation, Charlot et al. proposed also other equations that include parameters determined in laboratory environment, such as maximum oxygen volume, real maximum heart rate, running speed and speed at VO2max (3.6). Although in the study performed by (Charlot et al., 2014) the equations that include running speed showed the best 37 https://www.camntech.com/products/actiheart/actiheart-overview
50 performance, one of these equation does not include the heart rate value and the other had a worst performance when applied to the data, when compared to the basic model and the one which includes VO2max data. 𝐸𝐸(𝐾𝑐𝑎𝑙 ℎ)=171,62+6,87×𝐻𝑅(𝑏𝑝𝑚)+3,99×𝐻𝑒𝑖𝑔ℎ𝑡(𝑐𝑚)+2,30×𝑊𝑒𝑖𝑔ℎ𝑡(𝑘𝑔) −1,39×𝐺𝑒𝑛𝑑𝑒𝑟(1=𝑀,2=𝐹)−4,26×𝐻𝑅𝑟𝑒𝑠𝑡(𝑏𝑝𝑚)−4,87×𝑇 −𝐻𝑅𝑚𝑎𝑥(𝑏𝑝𝑚) (3.5) 𝐸𝐸(𝐾𝑐𝑎𝑙 ℎ)=738,90+6,89× 𝐻𝑅(𝑏𝑝𝑚)+5,48×𝑊𝑒𝑖𝑔ℎ𝑡(𝑘𝑔)−2,81 ×𝐻𝑅𝑟𝑒𝑠𝑡(𝑏𝑝𝑚)−9,50×𝑅−𝐻𝑅𝑚𝑎𝑥(𝑏𝑝𝑚)+32,31×𝑆−𝑉𝑂2𝑚𝑎𝑥 (3.6) Moreover, the same combined HR-activity based algorithm, but using the activity classification as method to decide which weight factors to attribute to each heart rate or accelerometer model, instead of using the heart rate above sleep (HRaS) value as threshold, was also tested.
51 4.1. Smartwatch Heart Rate Validity Reliability Test Since the heart rate data acquired does not follow a normal distribution, the Wilcoxon Signed Ranked Test, which is a non-parametric test for paired data, was applied on data, from all the participants, from both test and retest. Further, it was also evaluated the Pearson correlation. This analysis is depicted in Table 6. Table 6: Evaluation of the statistical difference between Fitbit Surge and Zephyr Bioharness 3, using data from all the participants in test and retest. Statistical Measure Corr (r2) Wilcoxon test p-value Value Test 0.95 p<0.05 Retest 0.96 p<0.05 The accuracy and reliability results, for each subject and also for test and retest, are presented in Table 7. The results regarding the test-retest reliability are presented in Table 8. The p-values computed in paired t-test, its 95% confidence interval boundaries and ICC scores to evaluate relative reliability are presented. Table 7: Accuracy and Reliability results for each subject, for test and retest. Subject Accuracy (%) Reliability (%) test retest test retest 1 90.66 95.45 54.98 71.73 2 94.38 95.90 85.20 93.85 3 97.34 95.04 97.26 84.30 4 89.40 89.82 36.80 47.98 5 96.62 92.38 92.10 55.49 6 96.22 95.03 95.64 89.17 7 96.98 94.23 92.04 72.34 8 91.62 91.73 52.64 84.64 Average 94.15 93.45 75.83 74.94 Chapter 4 Results and Discussion
52 Table 8: Test-retest reliability of the accuracy and reliability assessments. Assessments Mean ± SD Test Mean ± SD Retest Mean ± SD Diff p- Value 95% CI of Diff ICC Lower Upper Accuracy 94.15± 3.16 93.70±2.15 0.46±2.83 p>0.05 -1.91 2.82 0.65 Reliability 75.83±23.79 74.94±16.32 0.90±22.16 p>0.05 -17.63 19.42 0.61 Figure 24: Bland-Altman plot comparing the chest strap-obtained RR intervals to the Fitbit-obtained RR intervals, for all the subjects’ protocol data. The confidence interval µ±1.96𝜎 is represented by the dashed lines. Left: test (N=7058). Right: retest (N=6885). Figure 25: Bland-Altman plot comparing the chest strap-obtained RR intervals to the Fitbit-obtained RR intervals, for all the subjects’ sitting data. The confidence interval µ±1.96𝜎 is represented by the dashed lines. Left: test (N=920). Right: retest (N=870).
53 Figure 26: Bland-Altman plot comparing the chest strap-obtained RR intervals to the Fitbit-obtained RR intervals, for all the subjects’ standing data. The confidence interval µ±1.96𝜎 is represented by the dashed lines. Left: test (N=478). Right: retest (N=420). Figure 27: Bland-Altman plot comparing the chest strap-obtained RR intervals to the Fitbit-obtained RR intervals, for all the subjects’ walking data. The confidence interval µ±1.96𝜎 is represented by the dashed lines. Left: test (N=2880). Right: retest (N=2824). Figure 28: Bland-Altman plot comparing the chest strap-obtained RR intervals to the Fitbit-obtained RR intervals, for all the subjects’ running data. The confidence interval µ±1.96𝜎 is represented by the dashed lines. Left: test (N=1880). Right: retest (N=1920).
54 Figure 29: Bland-Altman plot comparing the chest strap-obtained RR intervals to the Fitbit-obtained RR intervals, for all the subjects’ ascending and descending stairs data. The confidence interval µ±1.96𝜎 is represented by the dashed lines. Left: test (N=858). Right: retest (N=852). Figure 30: Some results obtained: Comparison between the chest strap and smartwatch heart rate signals. Above: Good performance. Middle: Good performance. Bottom: Failure.
61 The Figure 34 depicts the time-domain heart rate variability features along the time. Once again, the windows’ width applied is higher than the activities duration, whereby the beginning of each activity is not highlighted as occur in the time-frequency analysis. In turn, the global variability of the signal is analysed. Similarly to the previous signal, the higher variability occurs when different activities with high intensity are performed in an alternated way, separated by transition phases or low intensity activities. In the beginning the heart rate suffers high variability during the transition from lying to sitting position, with some higher intensity level transition phases that occurs between them and previously to the lying activity. Further, the heart rate variability decreases from this point, and but it keeps within high levels of variability since the activities performed are characterized by low intensity levels and, therefore, the heart rate value can vary greatly. Regarding this observation, the RMSSD and SDNN present a different behaviour, since the SDNN analyses the variation of each interval comparing to the mean interval duration of each window, but the RMSSD compares the variability relative to the previous interval duration. Hence, during these low intensity activities, the SDNN reports a lower heart rate variability, comparing to rest of the signal because the mean interval duration of the window is very similar to the heart rate values observed, but the RMSSD reports a high heart rate variability when it is analysed the variability comparatively to consecutive intervals. This situation keeps from the sitting position until the ascending stairs activity is performed twice, separated by a low intensity transition phase and descending stairs. After this, one moderate intensity activity is performed, followed by two more intense activities (walking fast and cycling). Hence, this transition from walking to walking fast causes a higher heart rate variability, which is decreased soon after because the cycling activity presents an intensity similar to the walking fast activity. Finally, the heart rate variability increases again due to execution of an activity with high intensity levels. This is depicted by the RMSSD and SDNN behaviour throughout the time. The speed variation between consecutive inter-beat intervals also corroborates this analysis, since it suffers some variability at the beginning, followed by a period in which it keeps almost unchanged, and then a period of great variability. The signals presented in Figure 35 and Figure 37 correspond to heart rate signal of two of the volunteers that participated in the Fitbit Surge validity test. At the beginning, during the transition from sitting to standing position, the heart rate suffers a considerable variability, due to the body’s adaptation to the pressure change. This is highlighted in the spectrum with the intense presence of low frequencies. Once again, the transition from one activity to another can be distinguished by the presence of low frequencies in the spectrums. Further, during low and moderate intensity activities the spectrum denote the presence of higher frequencies, due to higher variability suffered by the heart rate signal. During these activities, the heart rate variability is higher, which is reflected by the spectrums content, considerably bigger than the remaining signal. Regarding the time-domain heart rate variability analysis, throughout the time, represented in Figure 36 and Figure 38, it can be observed that as the intensity of the activity performed increases, the heart rate variability decreases, denoted by both RMSSD and SDNN, which corroborates the HRV theory present in literature, that refers that the higher the heart rate the shorter the inter-beat interval and shorter intervals usually present less variation (Nieminen et al., 2007). Further, also the speed variation between consecutive inter-beat intervals suffers some variability, although it keeps positive since from the beginning until the end of the running activity. This parameter achieves higher values when the transition from one activity to another occurs. When the body starts to adapt to the exercise requirements, the speed decreases, until a new high intensity level activity begins. Thus, comparing the heart rate variability analysis and patterns that were observed in the samples taken from the PAMAP and PAMAP2 and the ones taken from the Fitbit Surge validity test, it was observed that similar conclusions and patterns were found, despites the signal sampling frequency difference of each device.
62 It can be concluded that low frequencies are influenced by both sympathetic and parasympathetic branches, although they are mainly associated with sympathetic activity. LF/HF ratio increases with the increase of the heart rate, during stress, exercise or mental tasks and emotions, when the sympathetic activity predominates. Moreover, the heart rate variability tends to decrease as the exercise intensity increases. Figure 35: Time-Frequency Analysis of a heart rate signal acquired during Fitbit validity test. Above: Inter-beat interval signal. Middle: Wavelet Time-frequency Transform. Bottom: Periodogram. Time (s) Freq (Hz) 0200 400 600 800 0.500 0.250 0.125 0.063 0.031 0.016 0.008 Time (s) Freq (Hz) 100 200 300 400 500 600 700 800 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4
63 Figure 36: Time-domain Heart Rate variability over time regarding one Fitbit Surge validity test sample, represented in Figure 35 (HR-Heart Rate; RMSSD- Root Mean Square of the Successive Differences; SDNN- Standard Deviation of inter-beat intervals; Variation speed-Mean Variation speed between consecutive intervals; mri-mean inter-beat intervals duration; mhr-mean heart rate). A normal increase in heart rate during exercise and the ability to slow it in the immediate post-exercise phase are dependent on the autonomic nervous system and the ability of the cardiac conduction tissue to normally propagate the electrical impulse. The shortening of the inter-beat intervals in dynamic activities would account for a reduced beat-to-beat variability in the low frequencies band. Thus, the time-frequency analysis is a great tool to differentiate the activity type being performed in time, although it cannot be used as activity classification or differentiation approach. It can distinguish rest activities, characterized by low heart rate values and high heart rate variability, continuous intense exercising, characterized by high heart rate values and no considerable variation during its performance, and interval exercising, characterized by great heart rate variability. Further, the analysis performed is dependent on the trade-off that is performed between the window’s width that is applied and the activity duration. This will be determinant on the results of the heart rate variability analysis, namely if will allow distinguish the transition from one activity to another, or if it will give an overall measure of the global heart rate variability throughout the time. Nevertheless, and although the heart rate variability performed with a heart rate signal provided by a chest strap or a smartwatch might not be equivalent to one that is performed with the signal provided by an ECG, since some information is lost due to the resampling frequency, similar conclusions can be taken from the analysis that is executed. Hence, the signal provided by this kind of wearables is still important to analyse some heart rate variability patterns, according to the activity type performed, which gives useful information about how the nervous system and consequent heart rate modulation behaves with the performance of different intensity levels activity.
64 Figure 37: Time-Frequency Analysis of a heart rate signal acquired during Fitbit validity test. Above: Inter-beat interval signal. Middle: Wavelet Time-frequency Transform. Bottom: Periodogram.
65 Figure 38: Time-domain Heart Rate Variability analysis over time regarding one Fitbit Surge validity test sample, represented in Figure 37(HR-Heart Rate; RMSSD- Root Mean Square of the Successive Differences; SDNN-Standard Deviation of inter-beat intervals; Variation speed-Mean Variation speed between consecutive intervals; mri-mean inter-beat intervals duration; mhr-mean heart rate). In order to avoid excessive physical effort and cross a specific heart rate value that could be harmful to the health, taking into account the activity being performed, the monitoring of the heart rate could be very useful. Therefore, for each type of activity should be determined the heart rate values range considered normal or healthy. These heart rate, though, should be applicable to every individual with any fitness level condition and age. Therefore, the heart rate values ranges should be normalized, against the maximum heart rate value that the individual can reach and also the minimum heart rate value, normally considered as the heart rate at rest, using the formula: %𝐻𝑅𝑟𝑒𝑠𝑒𝑟𝑣𝑒= (𝐻𝑅−𝐻𝑅𝑟𝑒𝑠𝑡) (𝐻𝑅𝑚𝑎𝑥−𝐻𝑅𝑟𝑒𝑠𝑡)×100 (4.1) To estimate the HRmax, an age-predicted estimate equation can be utilized, suggested by Fox (220–age) (Simon, 2004), although its validity might be questionable because it was developed through clinical observations and not through rigorous research methodology. Taking into account the relationship between the activity demanding and the instantaneous heart rate (an increase in workload should be reflected in a proportional increase in the heart rate value), abnormal heart rate values might be determined, comparing the values with the activity being performed. Therefore, for each type of activity that can be distinguished should be assigned a range of values that can be interpreted as normal or healthy, according to the physical effort that it requires. Researchers have studied the cardiac response for different types of activity (Tamaki et al., 1987). In this work, eighteen healthy volunteers with an average age of 31 years old, performed different daily activities, including sitting quietly for 10 minutes, where the heart rate at rest where measured, standing still for two minutes, walking briskly in a firm surface for ten minutes and ascending 10 to 16 flights of stairs. Moreover, there are public datasets PAMAP and PAMAP2, which include the heart rate data of subjects performing a huge number of physical activities, including the heart rate at rest and maximum heart rate of each individual. It should be noted that when descending stairs, it should be taken into account if the ascending activity was performed right before. In negative case, the heart rate values that characterize the activity will be lower than in the positive case.
66 Observing the Table 13, and although there are little differences between the Fitbit and zephyr values, the obtained heart rate ranges are within the ranges reported in (Tamaki et al., 1987) and also in PAMAP and PAMAP2. However, the values obtained for ascending and descending stairs are higher than the ones reported in PAMAP and PAMAP2, due to the intense running activity that was performed before. Table 9: Cardiac Responses reported by (Tamaki et al., 1987) (N=18). Activity %HRreserve SD Standing 9.65% 13.17% Walking 21.93% 17.54% Ascending Stairs 73.68% 18.43% Table 10: Cardiac Responses obtained in public dataset PAMAP-outdoor activities. Activity %HRreserve SD Walking slow 17.37% 6.89% Walking 28.71% 10.57% Walking fast 39.02% 11.95% Walking after running 54.79% 13.27% Playing Soccer 80.12% 17.10% Running 64.42% 17.57% Cycling 40.85% 7.59% Rope jumping 79.27% 17.66% Table 11: Cardiac Responses obtained in public dataset PAMAP-indoor activities. Activity %HRreserve SD Laying 4.92% 4.20% Sitting 8.57% 4.38% Standing 15.79% 4.83% Ascending Stairs 44.21% 17.63% Descending Stairs 41.85% 17.67% Table 12: Cardiac Responses in public dataset PAMAP2. Activity %HRreserve SD Laying 7.11% 7.12% Sitting 10.37% 6.26% Standing 17.50% 7.37% Walking 36.88% 6.17% Walking fast 45.33% 7.79% Ascending Stairs 49.68% 16.35% Descending Stairs 49.33% 18.50% Running 70.89% 18.65% Cycling 45.75% 7.51%
67 Figure 39: Cardiac responses for the Fitbit Surge validity test workload. Table 13: Cardiac Responses obtained in Fitbit Surge validity test against Zephyr Bioharness. Baseline (BPM) 65.50±9.25 HR max (BPM) 194.38±2.13 Test Retest Sitting (%HRreserve) Fitbit 3.44±2.54 5.63±8.85 Zephyr 4.26±4.19 5.66+9.09 Standing (%HRreserve) Fitbit 7.98±4.09 9.66±11.86 Zephyr 10.32±7.40 11.91±11.94 Walking 3.5 km/h 0% (%HRreserve) Fitbit 18.64±8.10 23.23±13.67 Zephyr 23.46±11.01 22.53±9.69 Walking 3.5 km/h 10% (%HRreserve)) Fitbit 34.99±14.44 34.65±12.88 Zephyr 34.13±10.99 35.03+12.56 Walking 5 km/h 10% (%HRreserve) Fitbit 36.04±8.14 43.52±11.51 Zephyr 45.61±13.04 49.93+13.82 Running 8km/h 0% (%HRmax) Fitbit 59.50±12.99 62.01±13.61 Zephyr 63.79±12.71 67.16+14.22 Running 8km/h 10% (%HRreserve) Fitbit 74.16±10.67 71.31±11.80 Zephyr 78.28±10.47 77.69±11.99 Ascending/Descending Stairs (%HRreserve) Fitbit 56.20±9.24 55.26±11.80 Zephyr 59.49±10.47 55.61±12.54 Table 14: T-Test results between Fitbit Surge and Zephyr Bioharness 3 cardiac responses, in test and retest. Corr (r2) Mean ± SD Diff 95% CI of Diff p-value Lower Upper Test 0.986 -4.21±3.34 -7.71 -0.70 p<0.05 Retest 0.993 -3.00±3.30 -6.48 0.49 p>0.05
68 The Table 14 presents the results obtained when t-test was applied to the cardiac responses provided by Fitbit surge and Zephyr Bioharness 3, in both test and retest. Although the in test, some significant difference were found between the values provided by the Fitbit Surge and the Zephyr Bioharness, in the retest this does not occur. The p-value of the paired t-test higher than 0.05 and the presence of zero value inside of the 95% CI indicate that there are no significant differences between the scores by the Fitbit Surge and the Zephyr Bioharness in the retest. Further, a linear relationship between the workload and the heart rate value, either by the chest strap or the smartwatch, was also verified, as denoted in Figure 39. Taking account the values reported in the study performed by (Tamaki et al., 1987), the values reported in PAMAP and PAMAP2 and the values obtained in the Fitbit validity Test and retest, the following heart rate value range for each activity can be established and assumed as normal and healthy values. Table 15: Heart rate values ranges assumed as healthy for each activity type. Activity Heart Rate range (%HRreserve) Laying 0-10% Sitting 5-15% Standing 10-25% Walking 15-45% Running/Cycling 35-100% Stairs 15-80% These heart rate values ranges should be taken into account during heart rate and activity monitoring, either during rest or dynamic activities, so the user does not achieve heart rate values that might be harmful to the health or perform exaggerated physical effort comparing to the activity’s intensity. Figure 40 Relationship between heart rate and accelerometer's signal magnitude. The signal used is a sample from one of the volunteers that participated in the Fitbit Surge validity test. Further, it can be confirmed that the heart rate response to physical effort is not instantaneous, but it responds relatively slowly to changes in physical effort. It is verified that a sudden increase in work effort will not immediately result in heart rate increase and when
69 the work effort is decreased, the heart rate remains elevated for some time and only gradually return to the rest values, as can be observed in Figure 40. Moreover, it could be concluded that there is an almost linear relationship between the accelerometer’s magnitude, which is representative of the activity’s intensity level, and the heart rate. The higher the accelerometer’s magnitude the higher the heart rate value. However, the accelerometer can also achieve a saturation state for very high speed levels (Carneiro et al., 2015), point from which this relation is no longer valid. It was observed that when the floor inclination changed from 0% to 10%, running at 8km/h, the accelerometer’s magnitude slightly decreased, which might be due to the impact attenuation caused by the high inclination, since the vertical ground reaction force, and consequently the power absorption, is lower during sloped running (Gottschall & Kram, 2005). 4.2.2. Inter-combination between Heart Rate and Energy Expenditure, Speed and Activity Table 16: Results obtained in the energy expenditure estimation study. Energy Expenditure model NRMSE Corr (r2) Wilcoxon test pvalue Activity based (Ryu et al., 2008) 35.1% 0.88 p<0.05 Heart Rate- Basic Equation (Charlot et al., 2014) 23.5% 0.90 p<0.05 Heart Rate – S-VO2/R-HRmax (Charlot et al., 2014) 24.6% 0.90 p<0.05 Combined HR- Activity Using HRaS 22.6% 0.90 p<0.05 Using Activity Classification 19.9% 0.92 p>0.05 Combining the heart rate and activity data to estimate energy expenditure, there is an improvement of the results obtained with only activity based model. Using the activity based model, with the equations proposed by (Ryu et al., 2008) to estimate energy expenditure, the NRMSE reaches 35.1% with a Pearson correlation coefficient of 0.88. Using the basic heart rate model, proposed by (Charlot et al., 2014), the NRMSE reaches 23.5%, with a Person correlation coefficient of 0,90. In turn, the model that includes the real maximum heart rate value and the speed at which occurs the maximum oxygen volume consumption, but also proposed by the same author, reaches a NRMSE of 24.6% and a Pearson correlation coefficient of 0.90. Generally, although the errors might be acceptable, these models overestimates the energy expenditure, especially during walking, where the NRMSE achieves 43.2%. Otherwise, they underestimate the energy expenditure during very high speed running (above 14 km/h), where the NRMSE achieves 17.2%. Since the data does not follow a normal distribution, the statistical test applied was the Wilcoxon Signed Rank Test, a non-parametric test for paired data. Applying the statistical test for a significance level of 5%, it can be confirmed that there are significant differences between the energy expenditure values obtained from the indirect calorimetry measurements and from the activity based model and both heart rate models. In turn, combining the heart rate and activity based models, where the heart rate model is the one with the better performance (basic model), the NRMSE reaches 22.6%, with a Pearson correlation coefficient of 0.90. Nevertheless, there is a significant improvement in energy expenditure estimation when activity and heart rate data are combined. However, there are still significant differences between the values obtained through indirect calorimetry and through the models that includes both heart rate and activity data. Nevertheless, this result can still be improved, by using
70 individual calibration procedures, as proposed by (Altini et al., 2013, 2015) and (Søren Brage et al., 2004, 2007), instead of using developed equations with group calibration, as occurs in these models. Figure 41: Average energy calculated, for all the participants. The green line represents the energy expenditure given by the oximeter, the orange line represents the through basic heart rate model and the blue line represents the energy calculated through the heart rate model that includes the speed at which occurs the VO2max. Otherwise, when using the activity classification as method to decide which weight factors should be attributed to each heart rate and accelerometer contribution, instead of using the HRaS as threshold, the NRMSE reaches 19.9%, with a Pearson correlation coefficient of 0.92. The results obtained here showed no significant differences comparative to the values provided by the indirect calorimetry. With this model the error is reduced during moderate to intense walking activity. Further, the model applied showed a better performance during running, because it was initially derived to improve running energy estimation, although during its estimation it was also included the walking activity. The NRMSE achieves 32.4% and 16.25% for walking and running activities, respectively. The average energy expenditure measured, for all the participants, through the oximeter, basic heart rate model, activity based model and combined heart rate-accelerometer model, using activity classification to establish the weight factors, are depicted in Figure 42. As observed, the model suggested by (Ryu et al., 2008), based on smartphone’s accelerometer to classify the activity performed and calculate a MET value for each activity, gives acceptable energy expenditure values during walking. However, it overestimates the energy expenditure during running at moderate speed levels. In this model, it is observed a saturation phenomenon in the accelerometer signal for higher speed levels, which affects the performance of the step counter and distance calculator and, consequently, the calculated speed and energy estimation. In turn, when applying the combined heart rate and activity data model, there is great improvement when compared to the activity based model. However, although the energy expenditure estimation has improved for walking activity, this model still underestimate the energy expenditure for very high speed levels. It should be noted that this study presents some limitations that extent to data that were missing due to monitor’s instability or malfunctioning. Hence, some samples were excluded due to the missing heart rate values. However, just the null values were excluded, since they not allow the energy expenditure estimation, and all the other values, including the
77 The heart rate corresponds to the number of times that the heart pumps blood through the blood vessel of the circulatory system in one minute, and it is very important to infer about the health status, being an important variable to keep on track by every person, from athletes, cardiac patients and common individuals. The heart rate variability reflects the physiological phenomenon of variation in the time interval between heartbeats. Its variation may contain indicators of current diseases or warnings about potential cardiac diseases, psychological disturbances or even neurological disturbances. These indicators may be present at all times or may occur randomly during certain intervals of the day. It reflects physiological factors that modulate the normal rhythm of the heart, providing a powerful method of observing the equilibrium between the sympathetic and parasympathetic nervous systems and, consequently, the heart’s ability to adapt to changing circumstances. Although there are plenty of devices that are capable of heart rate monitoring, such as the gold standard ECG, Holter monitors and blood pressure monitors, these devices are not suitable for daily basis use since they might be quite uncomfortable and difficult to use. Nevertheless, the wearable technology market is experiencing a huge growth and it is expected to expand even more during the next years. Current smartwatches and bracelets, which are daily basis accessories, already track the user activity, reporting several measures such as distance, speed, number steps performed, calories burned and also distinguishing between several different types of activities: walking/running, sitting and laying down. These are calculated through data acquired by built-in inertial sensors. These accessories might include an optical heart rate sensor, whose data is very useful for athletes, to control their effort during the workout and optimize the training. Its applicability has been used essentially for exercising purposes. Therefore, one of the main goals of this project was to study if it is viable to a wearable device to continuously monitor the heart rate in a daily basis, and if when combined with activity monitoring, additional valuable data could be generated for analysis. Namely, if it allows inferring about the health status of the user and understanding the quotidian context and the impact that the lifestyle has on health. Further, it was also studied how the heart rate data could bring advantages to the activity monitoring, mainly, how both data and features can be combined in order to improve activity monitoring, especially the impact on heart rate variability patterns observed in different activities and how the heart rate data can enrich the energy expenditure estimation. Chapter 5 Conclusions and Future Work
78 5.1. Achievements The objectives of studying the viability of using a wearable device for continuous heart rate monitoring and how the heart rate data could be combined with activity data to perform a better analysis of the user’s lifestyle and quotidian context were achieved. A heart rate measurement validity test for the smartwatch Fitbit Surge was performed against a Zephyr Bioharness 3 chest strap. This smartwatch was chosen by taking into account a previous test that included other smartwatches such as the Moto360, LG Watch R and Samsung Gear S, and also the high popularity that this gadget has won among the healthy lifestyle and exercisers community 40 . The test performed included a test and retest with eight volunteers with an average age of 25.6±2.1 years old, including five men and three women. In average both heart rate signals provided by the chest strap and the smartwatch were concordant during the most part of the test and retest. However, there were some cases in which the error obtained were not acceptable for heart rate monitoring purposes. The walking and running activities were the ones with lowest reliability and bigger data dispersion, although they were the activities with higher samples. The accuracy achieved was within the values presented in literature but the reliability was quite lower than the expected (reliability=75.39%, accuracy=93.80%, mean error=4.21 BPM, mean absolute error=7.22 BPM). However, since the volunteers that performed the test were in lower number than the usual subjects number in these kind of tests, the data obtained might not be sufficient to achieve a conclusive finding. Further, the individuals that showed poor results in the test, had also poor results in the retest. Hence, regarding the test-retest results, a p-value of the paired t-test higher than 0.05 and the presence of zero value inside of the 95% CI indicates that there are no significant differences between the scores obtained in test and retest procedures. Both accuracy and reliability demonstrated good retest reliability with ICC of 0.65 and 0.61, respectively. The results showed that the Fitbit Surge device had a good accuracy and acceptable reliability, assuming that it is not supposed to the smartwatch acting like a medical device and that it has associated error that can or cannot be acceptable, depending on the purpose for which the device is intended to be used. Since the purpose is not performing heart rate monitoring in cardiac patients, the reliability value obtained can be acceptable for heart rate monitoring of people that intend to follow an active and healthy lifestyle. Moreover, the results show that the device provides results with some repeatability, giving, though, some credibility to use it in a daily basis. In average, the heart rate values were correlated, with differences up to 20 BPM, but with Fitbit showing a slightly lower heart rate value. Further, some problems were observed at sudden transitions of activity intensity, with the Fitbit responding a bit late to the pace change, and with high intensity activities, where in some cases it did not follow the heart rate increase to theirs peak values. Regarding the heart rate variability patterns and the activity type being performed, some conclusions can be taken. When applying time-frequency transforms to the heart rate signal, the obtained spectrums can distinguish the beginning of each activity that causes an abrupt heart rate increase, when the window’s width applied is sufficient and suitable for each activity’s duration. Further, during low intensity and moderate activities, the presence of higher frequencies are highlighted, due to the greater variability presence. However, these patterns can distinguish between low intensity and intense activities, since although the first ones could also cause the abrupt heart rate increase and, therefore, will cause the presence of low frequencies in the spectrum, they also are characterized by some heart rate variability. Hence, also higher frequencies are present during these activities. Further, it was possible to confirm the almost linear relationship between the heart rate value and the activity’s intensity 40 http://www.telegraph.co.uk/technology/news/12033656/Fitbit-is-the-most-popular- wearable-of-2015-as-sector-grows-almost-200pc.html
79 level, which can be also confirmed by the accelerometer’s magnitude. However, the accelerometer can also achieve a saturation state for high speed levels, from which this relationship is no longer valid. Nevertheless, it was also possible to infer about the range of healthy heart rate values that are considered normal to achieve during different activities, depending on its intensity and physical effort required. These are normalized heart rate values, against the maximum heart rate value and the heart rate at rest, so they can be suitable to apply on every individual, regardless the cardiorespiratory fitness level and age of each individual. These ranges are important for an efficient monitoring, giving the user a guide of which is healthy to perform or not, avoiding harmful heart rate values that can lead to serious long-term health problems and damages. Combining the heart rate with activity data, which is provided by motion sensors such as the accelerometer, improves the accuracy of energy expenditure estimation, as is testified by the results obtained in the present study. The normalized root mean square error (NRMSE) decreased from about 35.1% to 23.5% when applying the heart rate model that includes individual parameters such as the heart rate at rest, height, weight, age and gender, instead of the activity based model. When combining both heart rate and activity models to estimate the energy expenditure, which consist in attributing weights factors to each specific model, the NRMSE reached 22.6%, when using the heart rate above sleep as threshold to decide the weights that are attributed to each heart rate and activity based model, and 19.9% when using the activity classification to do establish the weights of each model. Thus, the combined heart rate-activity model that uses activity classification to attribute the weight factors to each data, seemed to be, among the other tested models, the most suitable method to estimate the energy expenditure using the accelerometer of the smartphone, activity classification and heart rate data. Further, with the same data used in the energy estimation study, the linear relationship between speed and heart rate during submaximal intensity, which is referred in the literature (Bodner & Rhodes, 2000; Vachon et al., 1999), was verified. This data was relative to a stress test like protocol, and it was observed that after about the 13 km/h, this linear relationship is no longer present, due to the anaerobic threshold crossing. In short, it can be concluded that the smartwatches are valuable devices that help people achieving a healthier lifestyle, by monitoring their activity. Although some of them do not include optical heart rate sensor, and the majority of those who include are not reliable and suitable for heart rate monitoring, the smartwatch studied in this project showed that it has a good accuracy and a median reliability and performs a continuous heart rate monitoring, although with a variable sampling frequency. Further, it allows the development of third parties applications, which current continuous smartwatches, such as Mio alpha and PulseOn, do not enable. However, they are not suitable for arrhythmia detection, due to the insufficient sampling frequency. Moreover, these kind of devices can be used to improve energy estimation methods, if they are accurate and reliable, and also used as a quotidian tool, to help people having a healthy lifestyle and not executing exaggerated efforts by monitoring their heart rate. The heart rate value is a valuable indicative of the cardiorespiratory fitness level, and its behaviour throughout the time gives an idea of how the physical condition evolves. The heart rate data provided can be used to improve current energy estimation methods used by activity monitoring systems, and also to improve both activity monitoring and activity classification, since there are different activities that are classified with the same label but characterized by different intensities and, therefore, different heart rate values, as is the case of walking and ascending stairs. Although it does not allow a real-time monitoring, due to the data synchronization frequency, this study serves as a proof of concept, with the certain that in the future this kind of technology will be improved and the real time monitoring through third parties application will be possible.
80 5.2. Future Work Further development of this project would be of interest to improve the developed monitoring application that gives a relevant feedback about the user physical history. The main improvements of that could be applied to this project and future work were identified during its development. Due to the positive results obtained in the energy expenditure estimation using both heart rate and accelerometer models, it should be integrated a model to estimate the energy expenditure that combines the heart rate data, provided by the smartwatch, and the accelerometer data, provided by the smartphone. This model could replace the activity based model (Ryu et al., 2008) that is currently being used by the developed system to estimate the energy expended. One of the goals of this project was to combine heart rate and activity data to infer about the user’s stress state detection, however, this goal was not achieved due to several reasons. Firstly, it was found that the stress state detection algorithms are based on the heart rate variability features and establishing some thresholds for each one, but the signal provided by the smartwatch is not suitable to apply these algorithms due to the lower sampling frequency. Further, the acquired data relative to this topic was considered low to achieve a conclusion about the adaptation and use of such device’s heart rate signal to detect stress. Moreover, each stress state should be confirmed by a blood test for measuring the stress hormone serum cortisol. Hence, more investigation about this topic is needed. Further, and since the developed system is a proof of concept and prototype, this can be largely improved. Firstly, the smartwatch that is currently being used with the system does not enable a real-time heart rate monitoring. Therefore, and since this is a very important feature, the smartwatch that is currently being used should be replaced by another that enables the continuous heart rate monitoring in real-time, and that is accurate and reliable enough at the same time. As studied, none of the Android Wear smartwatches with an optical heart rate sensor fulfil these requirements, since a suitable and constant reading frequency cannot be established. Hence, as soon as a smartwatch that completely fulfils these requirements be launched on the market, it should be considered the possibility of replacing the current heart rate monitor. Nevertheless, the data output display and data history should be improved, since it is important to the user that these aspects are as complete as possible and, currently, they are just prototypes. Further, the system performance must be tested and evaluated, in order to validate the algorithms and its behaviour, taking into account the purpose for which it was built.
81 Achten, J., & Jeukendrup, A. E.Achten, J., & Jeukendrup, A. E. (2003). Heart Rate Monitoring. Sports Medicine, 33(7), 517–538. http://doi.org/10.2165/00007256- 200333070-00004 Aguiar, B., Silva, J., Rocha, T., Carneiro, S., & Sousa, I.Aguiar, B., Silva, J., Rocha, T., Carneiro, S., & Sousa, I. (2014). Monitoring physical activity and energy expenditure with smartphones. IEEE-EMBS International Conference on Biomedical and Health Informatics (BHI), 664–667. http://doi.org/10.1109/BHI.2014.6864451 Albinali, F., Intille, S. S., Haskell, W., & Rosenberger, M.Albinali, F., Intille, S. S., Haskell, W., & Rosenberger, M. (2010). Using wearable activity type detection to improve physical activity energy expenditure estimation. Proceedings of the 12th ACM International Conference on Ubiquitous Computing Ubicomp 10, 311. http://doi.org/10.1145/1864349.1864396 Alexandratos, V.Alexandratos, V. (2014). Mobile Real-Time Stress Detection. TU Delft. Retrieved from http://repository.tudelft.nl/islandora/object/uuid:c3e56b27-97ff-459b- 9f85-dc05f8e3c088?collection=research Alharbi, M., Bauman, A., Neubeck, L., & Gallagher, R.Alharbi, M., Bauman, A., Neubeck, L., & Gallagher, R. (2016). Validation of Fitbit-Flex as a measure of free-living physical activity in a community-based phase III cardiac rehabilitation population. European Journal of Preventive Cardiology. http://doi.org/10.1177/2047487316634883 Altini, M., Casale, P., Penders, J., & Amft, O.Altini, M., Casale, P., Penders, J., & Amft, O. (2015). Personalization of Energy Expenditure Estimation in Free Living Using Topic Models. IEEE Journal of Biomedical and Health Informatics, 2194(c), 1–1. http://doi.org/10.1109/JBHI.2015.2418256 Altini, M., Casale, P., Penders, J., Ten Velde, G., Plasqui, G., & Amft, O.Altini, M., Casale, P., Penders, J., Ten Velde, G., Plasqui, G., & Amft, O. (2016). Cardiorespiratory fitness estimation using wearable sensors: laboratory and free-living analysis of context-specific submaximal heart rates. Journal of Applied Physiology (Bethesda, Md. : 1985), 120(9), jap.00519.2015. http://doi.org/10.1152/japplphysiol.00519.2015 Altini, M., Penders, J., & Amft, O.Altini, M., Penders, J., & Amft, O. (2012). Energy expenditure estimation using wearable sensors. Proceedings of the Conference on Wireless Health - WH ’12, 1–8. http://doi.org/10.1145/2448096.2448097 Altini, M., Penders, J., & Amft, O.Altini, M., Penders, J., & Amft, O. (2013). Personalizing Energy Expenditure Estimation Using a Cardiorespiratory Fitness Predicate. Proceedings of the ICTs for Improving Patients Rehabilitation Research Techniques, 65–72. http://doi.org/10.4108/icst.pervasivehealth.2013.252069 Altini, M., Penders, J., Vullers, R., & Amft, O.Altini, M., Penders, J., Vullers, R., & Amft, O. References
82 (2014). Automatic heart rate normalization for accurate energy expenditure estimation. An analysis of activities of daily living and heart rate features. Methods of Information in Medicine, 53(5), 382–8. http://doi.org/10.3414/ME13-02-0031 Altini, M.Altini, M. (2015). Personalization of energy expenditure and cardiorespiratory fitness estimation using wearable sensors in supervised and unsupervised free-living conditions. Universiteit Eindhoven. Andre, D., & Wolf, D. L.Andre, D., & Wolf, D. L. (2007). Recent advances in free-living physical activity monitoring: a review. Journal of Diabetes Science and Technology, 1(5), 760–7. Retrieved from http://www.pubmedcentral.nih.gov/articlerender.fcgi?artid=2769664&tool=pmcentrez& rendertype=abstract Andreoli, A., Gravina, R., Giannantnio, R., Pierleoni, P., & Fortino, G.Andreoli, A., Gravina, R., Giannantnio, R., Pierleoni, P., & Fortino, G. (2010). SPINE-HRV: A BSN-Based Toolkit for Heart Rate Variability Analysis in the Time-Domain. In A. Lay-Ekuakille & S. C. Mukhopadhyay (Eds.), Wearable and Autonomous Biomedical Devices and Systems for Smart Environment (Vol. 75, pp. 369–389). Berlin, Heidelberg: Springer Berlin Heidelberg. http://doi.org/10.1007/978-3-642-15687-8 Association, A. H.Association, A. H. (2015). Target Heart Rates. Retrieved January 13, 2016, from http://www.heart.org/HEARTORG/HealthyLiving/PhysicalActivity/FitnessBasics/Target- Heart-Rates_UCM_434341_Article.jsp#.VsY6t_KLTIU Bangalore, S., Sawhney, S., & Messerli, F. H.Bangalore, S., Sawhney, S., & Messerli, F. H. (2008). Relation of beta-blocker-induced heart rate lowering and cardioprotection in hypertension. Journal of the American College of Cardiology, 52(18), 1482–9. http://doi.org/10.1016/j.jacc.2008.06.048 Bera, T. K.Bera, T. K. (2014). Bioelectrical Impedance Methods for Noninvasive Health Monitoring: A Review. Journal of Medical Engineering, 2014, 1–28. http://doi.org/10.1155/2014/381251 Bidargaddi, N., Sarela, A., & Korhonen, I.Bidargaddi, N., Sarela, A., & Korhonen, I. (2008). Physiological state characterization by clustering heart rate, heart rate variability and movement activity information. Conference Proceedings : ... Annual International Conference of the IEEE Engineering in Medicine and Biology Society. IEEE Engineering in Medicine and Biology Society. Annual Conference, 2008, 1749–52. http://doi.org/10.1109/IEMBS.2008.4649515 Bland, J., & Altman, D.Bland, J., & Altman, D. (1999). Measuring agreement in method comparison studies. Statistical Methods in Medical Research. Retrieved from http://smm.sagepub.com/content/8/2/135.short Bodner, M. E., & Rhodes, E. C.Bodner, M. E., & Rhodes, E. C. (2000). A review of the concept of the heart rate deflection point. Sports Medicine (Auckland, N.Z.), 30(1), 31–46. http://doi.org/10.2165/00007256-200030010-00004 Brage, S., Brage, N., Franks, P. W., Ekelund, U., & Wareham, N. J.Brage, S., Brage, N., Franks, P. W., Ekelund, U., & Wareham, N. J. (2005). Reliability and validity of the combined heart rate and movement sensor Actiheart. European Journal of Clinical Nutrition, 59(4), 561–70. http://doi.org/10.1038/sj.ejcn.1602118 Brage, S., Brage, N., Franks, P. W., Ekelund, U., Wong, M.-Y., Andersen, L. B., … Wareham, N. J.Brage, S., Brage, N., Franks, P. W., Ekelund, U., Wong, M.-Y., Andersen, L. B., … Wareham, N. J. (2004). Branched equation modeling of simultaneous accelerometry and heart rate monitoring improves estimate of directly measured physical activity energy
83 expenditure. Journal of Applied Physiology (Bethesda, Md. : 1985), 96, 343–351. http://doi.org/10.1152/japplphysiol.00703.2003 Brage, S., Ekelund, U., Brage, N., Hennings, M. a, Froberg, K., Franks, P. W., & Wareham, N. J.Brage, S., Ekelund, U., Brage, N., Hennings, M. a, Froberg, K., Franks, P. W., & Wareham, N. J. (2007). Hierarchy of individual calibration levels for heart rate and accelerometry to measure physical activity. Journal of Applied Physiology (Bethesda, Md. : 1985), 103(2), 682–92. http://doi.org/10.1152/japplphysiol.00092.2006 Bruton, A., Conway, J. H., & Holgate, S. T.Bruton, A., Conway, J. H., & Holgate, S. T. (2000). Reliability: What is it, and how is it measured? Physiotherapy, 86(2), 94–99. http://doi.org/10.1016/S0031-9406(05)61211-4 CamntechCamntech. (2013). The Actiheart User Manual. Health (San Francisco). Carneiro, S., Silva, J., Aguiar, B., & Rocha, T.Carneiro, S., Silva, J., Aguiar, B., & Rocha, T. (2015). Accelerometer-Based Methods for Energy Expenditure using the Smartphone. Porto. Retrieved from http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=7145190&url=http://ieeexplore .ieee.org/xpls/abs_all.jsp?arnumber=7145190 Carpenter, A., & Frontera, A.Carpenter, A., & Frontera, A. (2016). Smart-watches: a potential challenger to the implantable loop recorder? Europace, euv427. http://doi.org/10.1093/europace/euv427 Ceesay, S. M., Prentice, A. M., Day, K. C., Murgatroyd, P. R., Goldberg, G. R., Scott, W., & Spurr, G. B.Ceesay, S. M., Prentice, A. M., Day, K. C., Murgatroyd, P. R., Goldberg, G. R., Scott, W., & Spurr, G. B. (1988). The use of heart rate monitoring in the estimation of energy expenditure: a validation study using indirect whole-body calorimetry. British Journal of Nutrition, 61(02), 175–186. http://doi.org/10.1079/BJN19890107 Cerqueira da Silva, J. R.Cerqueira da Silva, J. R. (2013). Smartphone Based Human Activity Prediction. Faculdade de Engenharia da Universidade do Porto. Retrieved from https://repositorio-aberto.up.pt/bitstream/10216/67649/2/43638.pdf Chan, H.-L., Huang, H.-H., & Lin, J.-L.Chan, H.-L., Huang, H.-H., & Lin, J.-L. (2001). Time- Frequency Analysis of Heart Rate Variability During Transient Segments, 29, 983–996. http://doi.org/10.1114/1.1415525 Charlot, K., Cornolo, J., Borne, R., Brugniaux, J. V., Richalet, J.-P., Chapelot, D., & Pichon, A.Charlot, K., Cornolo, J., Borne, R., Brugniaux, J. V., Richalet, J.-P., Chapelot, D., & Pichon, A. (2014). Improvement of energy expenditure prediction from heart rate during running. Physiological Measurement, 35(2), 253–66. http://doi.org/10.1088/0967- 3334/35/2/253 Clifford, G. D.Clifford, G. D. (2002). Signal Processing Methods for Heart Rate Variability, 1– 218. http://doi.org/PhD Thesis Crouter, S. E., Churilla, J. R., & Bassett, D. R.Crouter, S. E., Churilla, J. R., & Bassett, D. R. (2008). Accuracy of the Actiheart for the assessment of energy expenditure in adults. European Journal of Clinical Nutrition, 62(6), 704–11. http://doi.org/10.1038/sj.ejcn.1602766 Dekker, J. M., Crow, R. S., Folsom, A. R., Hannan, P. J., Liao, D., Swenne, C. A., & Schouten, E. G.Dekker, J. M., Crow, R. S., Folsom, A. R., Hannan, P. J., Liao, D., Swenne, C. A., & Schouten, E. G. (2000). Low Heart Rate Variability in a 2-Minute Rhythm Strip Predicts Risk of Coronary Heart Disease and Mortality From Several Causes : The ARIC Study. Circulation, 102(11), 1239–1244. http://doi.org/10.1161/01.CIR.102.11.1239
84 Delgado-Gonzalo, R., Parak, J., Member, I. S., Tarniceriu, A., Renevey, P., Bertschi, M., … Member, I. S.Delgado-Gonzalo, R., Parak, J., Member, I. S., Tarniceriu, A., Renevey, P., Bertschi, M., … Member, I. S. (2015a). “INVESTIGATION OF NEW ELECTRO - OPTICAL TECHNIQUES FOR MONITORING PATIENTS WITH COMPROMISED PERIPHERAL PERFUSION IN ANAESTHESIA. Embc 2015, to be published. Delgado-Gonzalo, R., Parak, J., Member, I. S., Tarniceriu, A., Renevey, P., Bertschi, M., … Member, I. S.Delgado-Gonzalo, R., Parak, J., Member, I. S., Tarniceriu, A., Renevey, P., Bertschi, M., … Member, I. S. (2015b). Evaluation of Accuracy and Reliability of PulseOn Optical Heart Rate Monitoring Device. Embc 2015. http://doi.org/10.1109/EMBC.2015.7318391 Dennis, P. A., Watkins, L. L., Calhoun, P. S., Oddone, A., Sherwood, A., Dennis, M. F., … Beckham, J. C.Dennis, P. A., Watkins, L. L., Calhoun, P. S., Oddone, A., Sherwood, A., Dennis, M. F., … Beckham, J. C. (2014). Posttraumatic stress, heart rate variability, and the mediating role of behavioral health risks. Psychosomatic Medicine, 76(8), 629–37. http://doi.org/10.1097/PSY.0000000000000110 El-Amrawy, F., & Nounou, M. I.El-Amrawy, F., & Nounou, M. I. (2015). Are Currently Available Wearable Devices for Activity Tracking and Heart Rate Monitoring Accurate, Precise, and Medically Beneficial? Healthcare Informatics Research, 21(4), 315–20. http://doi.org/10.4258/hir.2015.21.4.315 Figueira, C. R.Figueira, C. R. (2015). Body Location Independent Activity Monitoring. Universidade Nova de Lisboa. Gorman, J. M., & Sloan, R. P.Gorman, J. M., & Sloan, R. P. (2000). Heart rate variability in depressive and anxiety disorders. American Heart Journal, 140(4 Suppl), 77–83. Retrieved from http://www.ncbi.nlm.nih.gov/pubmed/11011352 Gottschall, J. S., & Kram, R.Gottschall, J. S., & Kram, R. (2005). Ground reaction forces during downhill and uphill running. Journal of Biomechanics, 38(3), 445–452. http://doi.org/10.1016/j.jbiomech.2004.04.023 Haavikko, A.Haavikko, A. (2014). Evaluation of Performance of an Optical Heart Rate Sensor. Hall, J. E.Hall, J. E. (2010). Guyton and Hall Textbook of Medical Physiology. Physiology, 1091. http://doi.org/10.1093/jhered/est132 Hickey, A. M., & Freedson, P. S.Hickey, A. M., & Freedson, P. S. (2016). Utility of Consumer Physical Activity Trackers as an Intervention Tool in Cardiovascular Disease Prevention and Treatment. In Progress in Cardiovascular Diseases (pp. 613–619). Elsevier. http://doi.org/10.1016 Jain, P. K., & Tiwari, A. K.Jain, P. K., & Tiwari, A. K. (2014). Heart monitoring systems--a review. Computers in Biology and Medicine, 54, 1–13. http://doi.org/10.1016/j.compbiomed.2014.08.014 Jo, E., & Dolezal, B. A.Jo, E., & Dolezal, B. A. (2016). Validation of the Fitbit ® Surge TM and Charge HR TM Fitness Trackers. Johnstone, J. a, Ford, P. a, Hughes, G., Watson, T., Mitchell, A. C. S., & Garrett, A. T.Johnstone, J. a, Ford, P. a, Hughes, G., Watson, T., Mitchell, A. C. S., & Garrett, A. T. (2012). Field based reliability and validity of the bioharnessTM multivariable monitoring device. Journal of Sports Science & Medicine, 11(4), 643–652. Retrieved from http://www.pubmedcentral.nih.gov/articlerender.fcgi?artid=3763310&tool=pmcentrez& rendertype=abstract\nhttp://www.ncbi.nlm.nih.gov/pubmed/24150074\nhttp://www.p ubmedcentral.nih.gov/articlerender.fcgi?artid=PMC3763310
85 Keytel, L. R., Goedecke, J. H., Noakes, T. D., Hiiloskorpi, H., Laukkanen, R., van der Merwe, L., & Lambert, E. VKeytel, L. R., Goedecke, J. H., Noakes, T. D., Hiiloskorpi, H., Laukkanen, R., van der Merwe, L., & Lambert, E. V. (2005). Prediction of energy expenditure from heart rate monitoring during submaximal exercise. Journal of Sports Sciences, 23(3), 289–97. http://doi.org/10.1080/02640410470001730089 Khalil, S. F., Mohktar, M. S., & Ibrahim, F.Khalil, S. F., Mohktar, M. S., & Ibrahim, F. (2014). The Theory and Fundamentals of Bioimpedance Analysis in Clinical Status Monitoring and Diagnosis of Diseases. Sensors, 10895–10928. http://doi.org/10.3390/s140610895 Kumar, S.Kumar, S. (2011). Efficient Heart Rate Monitoring. EE Times, (i), 2–7. Retrieved from http://www.eetimes.com/document.asp?doc_id=1278714 Kyriacou, P. A.Kyriacou, P. A. (2001). INVESTIGATION OF NEW ELECTRO - OPTICAL TECHNIQUES FOR MONITORING PATIENTS WITH COMPROMISED PERIPHERAL PERFUSION IN ANAESTHESIA. University of London. Retrieved from https://www.researchgate.net/profile/Panayiotis_Kyriacou/publication/34923038_Inves tigation_of_new_electro_optical_techniques_for_monitoring_patients_with_compromise d_peripheral_perfusion_in_anaesthesia/links/00463536a1eebc4b58000000.pdf Lara, Ó. D., Prez, A. J., Labrador, M. A., & Posada, J. D.Lara, Ó. D., Prez, A. J., Labrador, M. A., & Posada, J. D. (2012). Centinela: A human activity recognition system based on acceleration and vital sign data. Pervasive and Mobile Computing, 8(5), 717–729. http://doi.org/10.1016/j.pmcj.2011.06.004 Lauer, M. S.Lauer, M. S. (2001). Heart Rate Response in Stress Testing: Clinical Implications. ACC CURRENT JOURNAL REVIEW. Retrieved from https://www.uthsc.edu/cardiology/articles/HRresponse in ETT.pdf Liu, D., & Ulrich, M.Liu, D., & Ulrich, M. (2014). Listen to Your Heart: Stress Prediction Using Consumer Heart Rate Sensors. Retrieved from http://cs229.stanford.edu/proj2013/LiuUlrich-ListenToYourHeart- StressPredictionUsingConsumerHeartRateSensors.pdf Ltd., F. T.Ltd., F. T. (2012). An Energy Expenditure Estimation Method Based on Heart Rate Measurement. Retrieved from https://www.firstbeat.com/app/uploads/2015/10/white_paper_energy_expenditure_es timation.pdf Machado, I. P.Machado, I. P. (2013). Human Activity Data Discovery based on Accelerometry. Universidade Nova de Lisboa. Maguire, D., & Frisby, R.Maguire, D., & Frisby, R. (2009). Comparison of Feature Classification Algorithms for Activity Recognition Based on Accelerometer and Heart Rate Data. 9th. IT & T Conference. Retrieved from http://arrow.dit.ie/cgi/viewcontent.cgi?article=1002&context=ittpapnin Marieb, E. N., & Hoehn, K.Marieb, E. N., & Hoehn, K. (2007). Human Anatomy & Physiology. Physiology (Vol. 7). Pearson. http://doi.org/10.1038/nnano.2011.234 Medeiros, J. M.Medeiros, J. M. (2010). Development of a Heart Rate Variability analysis tool. Universidade de Coimbra. Retrieved from http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.460.2891&rep=rep1&type=p df MedicoreMedicore. (n.d.). Medicore-Heart Rate Variability Analysis System. Retrieved from http://medi-core.com/download/HRV_clinical_manual_ver3.0.pdf Militara, A., Frandes, M., & Lungeanu, D.Militara, A., Frandes, M., & Lungeanu, D. (2015).
86 Smart wristbands as inexpensive and reliable non-dedicated solution for self-managing type 2 diabetes. In 2015 E-Health and Bioengineering Conference (EHB) (pp. 1–4). IEEE. http://doi.org/10.1109/EHB.2015.7391558 Murakami, H., Kawakami, R., Nakae, S., Nakata, Y., Ishikawa-Takata, K., Tanaka, S., & Miyachi, M.Murakami, H., Kawakami, R., Nakae, S., Nakata, Y., Ishikawa-Takata, K., Tanaka, S., & Miyachi, M. (2016). Accuracy of Wearable Devices for Estimating Total Energy Expenditure. JAMA Internal Medicine, 176(5), 702–703. http://doi.org/10.1001/jamainternmed.2016.0152 Myers, C. W., Cohen, M. A., Eckberg, D. L., & Taylor, J. A.Myers, C. W., Cohen, M. A., Eckberg, D. L., & Taylor, J. A. (2001). A model for the genesis of arterial pressure Mayer waves from heart rate and sympathetic activity. Autonomic Neuroscience: Basic and Clinical, 91(1-2), 62–75. http://doi.org/10.1016/S1566-0702(01)00289-2 Nieminen, T., Kähönen, M., Kööbi, T., Nikus, K., & Viik, J.Nieminen, T., Kähönen, M., Kööbi, T., Nikus, K., & Viik, J. (2007). Heart rate variability is dependent on the level of heart rate. American Heart Journal, 154(1), 2007. http://doi.org/10.1016/j.ahj.2007.04.050 Olufsen, M. S., Alston, A. V, Tran, H. T., Ottesen, J. T., & Novak, V.Olufsen, M. S., Alston, A. V, Tran, H. T., Ottesen, J. T., & Novak, V. (2008). Modeling heart rate regulation--part I: sit-to-stand versus head-up tilt. Cardiovascular Engineering (Dordrecht, Netherlands), 8(2), 73–87. http://doi.org/10.1007/s10558-007-9050-8 PAMAP.ORG. (n.d.). Retrieved January 21, 2016, from http://www.pamap.org/index.html Parak, J., & Korhonen, I.Parak, J., & Korhonen, I. (2014a). Evaluation of wearable consumer heart rate monitors based on photopletysmography. 2014 36th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, 3670–3673. http://doi.org/10.1109/EMBC.2014.6944419 Parak, J., & Korhonen, I.Parak, J., & Korhonen, I. (2014b). Evaluation of wearable consumer heart rate monitors based on photopletysmography. Conference Proceedings : ... Annual International Conference of the IEEE Engineering in Medicine and Biology Society. IEEE Engineering in Medicine and Biology Society. Annual Conference, 2014, 3670–3. http://doi.org/10.1109/EMBC.2014.6944419 Parati, G., & Di Renzo, M.Parati, G., & Di Renzo, M. (2003). Determinants of heart rate and heart rate variability. Journal of Hypertension, 21, 477–480. Retrieved from file:///C:/Users/Maria Magalh%C3%A3es/Downloads/Determinants_of_heart_rate_and_heart_rate.7.pdf Paul, S. S., Tiedemann, A., Hassett, L. M., Ramsay, E., Kirkham, C., Chagpar, S., & Sherrington, C.Paul, S. S., Tiedemann, A., Hassett, L. M., Ramsay, E., Kirkham, C., Chagpar, S., & Sherrington, C. (2015). Validity of the Fitbit activity tracker for measuring steps in community-dwelling older adults. BMJ Open Sport & Exercise Medicine, 1(1), e000013. http://doi.org/10.1136/bmjsem-2015-000013 Pettitt, R., Pettitt, C., Cabrera, C., & Murray, S.Pettitt, R., Pettitt, C., Cabrera, C., & Murray, S. (2007). A Theoretical Method of Using Heart Rate to Estimate Energy Expenditure During Exercise. International Journal of Sports Science and Coaching, 2(3), 319–327. http://doi.org/10.1260/174795407782233146 Pierleoni, P., Pernini, L., Belli, A., Palma, L., Pierleoni, P., Pernini, L., … Palma, L.Pierleoni, P., Pernini, L., Belli, A., Palma, L., Pierleoni, P., Pernini, L., … Palma, L. (2014). An Android-Based Heart Monitoring System for the Elderly and for Patients with Heart Disease, An Android-Based Heart Monitoring System for the Elderly and for Patients with Heart Disease. International Journal of Telemedicine and Applications, International Journal of Telemedicine and Applications, 2014, 2014, e625156.
93