Next Article in Journal
Development and Measurements of a Mid-Infrared Multi-Gas Sensor System for CO, CO2 and CH4 Detection
Next Article in Special Issue
Soft Smart Garments for Lower Limb Joint Position Analysis
Previous Article in Journal
Smart Bandwidth Assignation in an Underlay Cellular Network for Internet of Vehicles
Previous Article in Special Issue
Automatic Classification of Tremor Severity in Parkinson’s Disease Using a Wearable Device
Open AccessArticle

Analyzing Sensor-Based Time Series Data to Track Changes in Physical Activity during Inpatient Rehabilitation

1
Department of Computer Science, Gonzaga University, Spokane, WA 99202, USA
2
School of Electrical Engineering and Computer Science, Washington State University, Pullman, WA 99163, USA
3
St. Luke’s Rehabilitation Institute, Spokane, WA 99202, USA
4
School of Biological Sciences, Washington State University, Pullman, WA 99163, USA
5
Department of Mathematics and Computer Science, Whitworth University, Spokane, WA 99251, USA
*
Author to whom correspondence should be addressed.
Sensors 2017, 17(10), 2219; https://doi.org/10.3390/s17102219
Received: 15 August 2017 / Revised: 21 September 2017 / Accepted: 22 September 2017 / Published: 27 September 2017
(This article belongs to the Special Issue Wearable and Ambient Sensors for Healthcare and Wellness Applications)

Abstract

Time series data collected from sensors can be analyzed to monitor changes in physical activity as an individual makes a substantial lifestyle change, such as recovering from an injury or illness. In an inpatient rehabilitation setting, approaches to detect and explain changes in longitudinal physical activity data collected from wearable sensors can provide value as a monitoring, research, and motivating tool. We adapt and expand our Physical Activity Change Detection (PACD) approach to analyze changes in patient activity in such a setting. We use Fitbit Charge Heart Rate devices with two separate populations to continuously record data to evaluate PACD, nine participants in a hospitalized inpatient rehabilitation group and eight in a healthy control group. We apply PACD to minute-by-minute Fitbit data to quantify changes within and between the groups. The inpatient rehabilitation group exhibited greater variability in change throughout inpatient rehabilitation for both step count and heart rate, with the greatest change occurring at the end of the inpatient hospital stay, which exceeded day-to-day changes of the control group. Our additions to PACD support effective change analysis of wearable sensor data collected in an inpatient rehabilitation setting and provide insight to patients, clinicians, and researchers.
Keywords: physical activity monitoring; wearable sensors; change detection; Fitbit; inpatient rehabilitation; pervasive computing physical activity monitoring; wearable sensors; change detection; Fitbit; inpatient rehabilitation; pervasive computing

1. Introduction

In recent years, wrist-worn devices, such as pedometers and fitness trackers, have increased in popularity as people aim to be more physically active and aware of their overall health. One of the most popular consumer-grade physical activity monitors is the Fitbit. Fitbits are quite popular because of their ease of use and relatively low cost. Wrist-worn devices, such as the Fitbit, are able to provide rich information on user activity such as physical activity, heart rate, and sleep quality. Physical activity is estimated by fitness trackers and pedometers, such as the Fitbit, by measuring the steps taken by the wearer [1]. In addition to personal fitness, objective measures of physical activity are useful for healthcare purposes. For example, wrist-worn devices have been the subject of research in studies with aims ranging from assessing the daily walking structures of post-stroke adults [2] to qualitatively evaluating the physical activity of children in rehabilitation [3].
In inpatient rehabilitation, clinical observations by therapists are typically used to characterize patient progress and make treatment decisions. It can be beneficial for physical therapists to obtain objective physical activity information for patients during their stay in inpatient rehabilitation. There are several benefits of sensor-based physical activity measurements, including overcoming the inaccuracy of self-report by patients. Patients often do not remember their activities or have a biased interpretation of how well they are doing, consequently leading to either an over or under estimation of daily activity. In comparison to human observation alone, wrist-worn devices are able to objectively perform continuous tracking of physical activity, thus reducing the subjectivity introduced by human observation. Finally, wrist-worn devices, such as the Fitbit, can gather fine-grained physical activity data about patients that physical therapists cannot otherwise observe.
Several studies and review articles in this growing area of research include a call for both further studies on the efficacy of these devices [4], their uses in a clinical setting [3,5,6], and convenient and efficient ways to analyze the data generated by their use [7]. In this study, we investigate physical activity and changes in physical activity of individuals undergoing inpatient rehabilitation using wrist-worn fitness trackers. More specifically, we detect and analyze changes in fine-grained, continuous physical activity and heart rate data collected from Fitbits worn by individuals in two groups: REHAB and CONTROL. The REHAB group consisted of patients undergoing inpatient rehabilitation at a large inpatient rehabilitation facility. To provide a comparison for the physical activity changes exhibited by rehabilitation patients over the course of recovery, we also collected continuous physical activity data from a healthy population, the CONTROL group. To detect and analyze changes in both populations we use the Physical Activity Change Detection (PACD) framework from our earlier work [8,9,10]. PACD is a framework that windows sensor-based time series data into time periods, detects changes between time periods, computes the significance of the detected changes, and examines the source of the changes. In this paper, we expand PACD to analyze the longitudinal physical activity data collected from both groups to gain insights into the detected changes over time in both an inpatient setting and a free-living setting. As part of our analysis, we introduce unsupervised change detection and analysis methods to investigate change within the groups, change between the groups, and change within the individual. The results of our analysis provide insight into the recovery process for inpatient therapy populations, as well as a framework for detecting change that can be applied to domains outside of inpatient rehabilitation.

2. Related Work

Previous research has investigated sensor-based physical activity monitoring for inpatient rehabilitation [5,6,11]. The Stroke Inpatient Rehabilitation Reinforcement of ACTivity (SIRRACT) trial was the first international, multi-facility trial to deploy wearable sensors for patients undergoing stroke rehabilitation [5]. Data were collected from tri-axial accelerometers worn on each ankle from 135 participants in 11 different countries. Therapists fit the sensors on participants in the morning and removed the sensors in the evening. From the acceleration signals, walking bouts were identified. Metrics related to walking bouts were computed, including: speed, duration, number of walking bouts, average walking speed, total time walking, total distance, and total steps taken. The participants were split into two groups: one only receiving feedback regarding their walking speed and one receiving, in addition to walking speed information, feedback in the form of activity graphs. The results indicated no significant differences between the two feedback groups in daily time spent walking (15.1 ± 13.1 min for walking speed feedback only compared to 16.6 ± 14.3 min for activity graph feedback). Additionally, 30% of participants decreased their total daily walking time over the course of inpatient rehabilitation and the majority of walking bouts only lasted between 10 and 30 s [5]. More recent studies investigating walking bout feedback during inpatient rehabilitation are published by Hornby and colleagues [6] and Mansfield and colleagues [11].
In regards to change detection approaches, a handful of studies have investigated change that can be detected in human behavior patterns. These approaches have quantified change statistically [12,13,14], graphically [13,15,16], and algorithmically [15,17,18,19]. Recently, Merilahti et al. [12] extracted actigraphy-based features from data collected for at least one year. The authors individually correlated each feature with a component of the Resident Assessment Instrument [20] to gain insights into the relationship of longitudinal changes in functioning and actigraphy. While this approach provides information about the relationship between clinical assessment scores and wearable sensor data, this study does not directly quantify sensor-based change. Another activity-based change detection approach was proposed by Wang et al. [15]. In this study, passive infrared motion sensor data were analyzed to estimate physical activity in the home and also to estimate time away from home. The data were converted into co-occurrence matrices for the computation of image-based texture features and visualization with activity density maps. Wang and colleagues’ case studies suggest the proposed texture method can detect lifestyle changes, such as knee replacement surgery and recovery. More recently, Tan et al. [16] applied the texture method of Wang and colleagues to sensor data collected from Fitbit Flex sensors. The goal of this study was to detect and track changes in daily activity patterns for elderly participants. Furthermore, smart-home data has been analyzed to track mobility and time away from home with regards to physical and cognitive health [15,21].
In one of our earlier works, we demonstrated that passively-collected, longitudinal smart-home data can be analyzed to predict performance on cognitive health-assessment tests [17,22] and detect major health events [9,10]. We previously proposed the Physical Activity Change Detection (PACD) framework for investigating changes in physical activity data collected from Fitbit devices [8]. With PACD, we analyzed 12 days of Fitbit Flex data collected from 11 individuals in free living situations. For each individual, the data were segmented into two windows of six days. We performed a single comparison between the two windows around a candidate change point. In this paper, we expand PACD to perform multiple comparisons on window sizes that are daily windows in order to handle data collection periods that are not uniform in length across participants, and to investigate changes within and between groups of participants.

3. Methods

Physical activity (PA) is often defined as any bodily movement by skeletal muscles that results in caloric energy expenditure [23]. PA is divided into bouts of physical movement and periods of physical rest. Furthermore, PA bouts are described and quantified by four components:
  • Frequency: the number of bouts of physical activity within a time period, such as a day.
  • Duration: the length of time an individual participates in a single bout.
  • Intensity: the physiological effort associated with a particular type of physical activity bout.
  • Activity type: the kind of exercise performed during the bout.
To add exercise throughout the day, a person can increase their number of bouts (frequency), increase the length of bouts (duration), increase the intensity of bouts (intensity), and vary the type of physical activity performed during the bouts (activity type). These four dimensions of physical activity correspond to four distinct types of changes that represent progress toward many different health goals, such as increasing physical activity or improving consistency in one’s daily routine. In this paper, we study the problem of detecting and analyzing change in PA patterns using these four dimensions. More specifically, we utilize algorithmic approaches to determine if a significant change exists between two windows of time series step data sampled from a PA sensor device, such as a Fitbit. The following sections describe the participants from which PA data were collected, the wrist-worn physical activity device employed, pre-processing applied to the data for cleaning purposes, the PACD method for change detection and analysis, and features extracted from the continuous PA data.

3.1. Participants

To gain insights into physical activity levels during inpatient rehabilitation, we compared two subject groups, a REHAB (inpatient rehabilitation patients) group and a CONTROL (healthy adults) group. Participants in the REHAB group were recruited from the inpatient population of a large medical rehabilitation facility. A regional hospital institutional review board approved the study and all participants gave written informed consent before they participated in the study. In the United States, patients in inpatient rehabilitation facilities are required to obtain a minimum of 3 h of therapy a day. This can be any combination of physical, occupational, or speech therapy with the therapy regimen tailored to the impairments/needs of the patient. The ratio of different types of therapy can change from day to day depending on improvement throughout the stay. For the REHAB group, patients were recruited by therapist recommendations based on the following criteria: mobile-capable, older than 18 years of age, English speaking, recently admitted, and appearing cognitively capable for the study, as measured by a Mini-Cog exam (score > 0 for participation) [24]. Fifteen participants (Male = 8, Female = 7) between 44 and 80 years of age (61.33 ± 12.66 years of age) participated in the study during the duration of their inpatient rehabilitation stay. To assess participants’ physical activity two weeks prior to their hospitalization, an International Physical Activity Questionnaire for the Elderly (IPAQ-E) [25] was administered on the second day of participation.
Table 1 shows individual participant characteristics, including each participant’s admission and discharge Functional Independence Measure (FIM) motor score. The FIM assessment is administered by clinicians to determine independence in activities of daily living (ADLs) [26]. The FIM is a well-validated assessment that measures a patient’s functional abilities on a 0–7 rating scale for 18 items. The 18 items are designed to represent six motor and cognitive domains: self-care, sphincter control, transfers, locomotion, communication, and social cognition. We include the sum of the scores for the motor function items of the FIM. Fitbit data collection began as soon as a participant was recruited to the study, which was 1.93 ± 0.70 days after admission. For all participants, except 011, data collection ended on the same day as discharge. Not counting partial days at the beginning and end of data collection, the number of full days they participated in the study ranged from four to 25 days (9.73 ± 5.79 days). Figure 1 is a visualization of how each REHAB participant’s data collection period is framed in their total length of stay.
The CONTROL group consisted of nine healthy participants (Male = 4, Female = 5) between ages 18 and 25 (21.22 ± 2.22 years of age) recruited from the general population in a university town. These participants were selected based on the following criteria: ability to receive text messages, willingness to wear Fitbits continuously for a two-week period, 18+ years of age, and in healthy condition. Participants in the CONTROL group were administered an IPAQ short form questionnaire to assess their physical activity prior to the study.

3.2. Instrumentation

Participants in both groups wore Fitbit Charge Heart Rate (HR) monitors on their wrists. The FitBit Charge HR activity tracker uses a wrist-mounted three-axis accelerometer to detect intensity of movement. A wrist-worn activity tracker was chosen over a waist-mounted tracker to be able to measure heart rate and sleep characteristics, and to reduce the risk of loss of the tracker as patients transfer from supine lying to sitting to standing, and vice versa, many times during the inpatient rehabilitation day. The devices were placed on the wrist associated with the non-dominant arm and we asked participants to wear the Fitbits at all times. The activity tracker was worn day and night in order to quantify step count and heart rate per 24 h period.
For the REHAB group, we set up two Charge Heart Rate (HR) Fitbits for each patient, with one being attached and the other acting as a fully-charged alternate. The participants wore the devices at all times during inpatient treatment. We administered daily check-ins to make sure the device was being worn and if it had been taken off for any reason. We also checked the skin integrity of patients and the Fitbits for adequate battery charge. Every four days, Fitbits were swapped for syncing data to the Fitbit servers, disinfecting, and charging.
For the CONTROL group, we provided participants with a single Fitbit Charge HR. Participants were provided with instructions for how to properly wear and sync the device. We sent daily text messages to remind participants to wear and sync the devices. Text instruction were also given when low battery status alerts were sent to the investigators from Fitbit to charge the Fitbit that night during sleep, and then resume wear the following day. Fitbits were returned after the two weeks of data collection.
Since we employed the Fitbit Charge HR in a rehabilitation setting, research investigating the accuracy of Fitbit step counts and heart rate for adults with physical impairments are highly relevant. A wrist-worn FitBit has been shown to not differ significantly in quantifying step count per minute and over a 24-h period when compared to actigraphy during light, moderate, and vigorous intensity physical activity in healthy adults in free-living conditions [27]. In a cardiac rehabilitation population, step counts from a wrist-worn FitBit were shown to correlate with step count estimates from an Actigraph (r = 0.95), although it was reported that the FitBit tended to over-count steps [28]. By contrast, in older adults with impaired ambulation, a wrist-worn FitBit was reported to underestimate step count by 16% compared to direct observation of steps during a self-paced walking test [29]. Finally, in patients with relapsing and progressive multiple sclerosis with a broad range of ambulatory disability, step counts from a wrist-worn FitBit correlated 0.69 with direct observation of steps during a 2-min walk test, while the direct observation-Actigraph correlation was 0.76 [30]. In a recent study, step counts from seven activity monitors, including a Fitbit charge (no heart rate), were collected from 166 rehabilitation patients. When compared with direct observation by therapist, the Fitbit Charge worn on the wrist had the fourth highest intraclass correlation (ICC) (0.399), while a StepWatch worn on the ankle had the highest ICC (0.982) and an Actigraph worn on the hip had the lowest ICC (0.123). Overall, validity for step counts from wrist-worn Fitbits relative to direct observation and the Actigraph is reported to be moderate to excellent, with intensity of motion necessary to count a step being relatively stable within a person. Moderately strong correlations between the heart rate measurement from the FitBit Charge HR and electrocardiogram, as the gold standard, have been obtained in healthy adults during various degrees of physical effort from rest to vigorous activity (r range 0.81–0.83) [31,32]. The FitBit Charge HR has been reported to underestimate heart rate by a small margin (3.4%) compared to electrocardiogram during slow to moderate speed walking (2 km/h and 3.5 km/h) in healthy adults [33]. We were unable to locate literature reporting on accuracy of the FitBit Charge HR for quantifying heart rate in patient populations.

3.3. Data Pre-Processing

We downloaded daily summary and minute-by-minute physical activity (as measured by step count) and heart rate data collected from Fitbit Charge HR devices via the Fitbit application programming interface (API). Pre-processing of the downloaded data includes handling missing data. We handled missing data by restricting the data analysis to complete 24-h days of data collection. To do this, the first and last days of data collection are considered partial days, including the evening on the first day and the morning on the last day. We exclude these partial days from our analysis since they are not full days; however, for some features that make use of previous night or next morning information, we do use relevant data from the partial days. Next, we consider data collection days that do not contain any steps taken during 7:00 A.M.–9:00 P.M. to be missing data. Zero steps during the day is likely due to removing the Fitbit to charge it, then forgetting to put it back on until much later. For the REHAB group, only two days are considered missing and were removed from analysis. For the CONTROL group, only one day is considered missing and was removed from analysis. Finally, there are some minutes within a day that have missing heart rate data, possibly due to improper placement on the wrist or the device being removed to shower or wash hands. If the period of missing of heart rate data is less than, or equal to 30 min, the heart rate data is interpolated between the two heart rate values surrounding the missing data period. If the period of missing heart rate data is greater than 30 min, we assume the device is doffed and we fill the heart rate data with the resting heart rate for the day in question, which is measured by Fitbit and provided for a specific date via the Fitbit API. We fill missing heart rate data with resting heart rate to ensure we underestimate physical activity rather than overestimate.

3.4. Physical Activity Change Detection

Originally, we designed PACD to detect and analyze changes for an individual from his/her PA time series data. In addition to individual-level analysis, in this paper we are interested in detecting and analyzing PA changes exhibited by groups, specifically the REHAB group and the CONTROL group. To do this, we introduce expansions to PACD to support group analysis. Before presenting these additions, we will first provide an overview of PACD and its associated change score algorithms that we have used for individual analysis.
PACD quantifies the magnitude of change in PA patterns between two segments of sensor-based time series activity data that were sampled by a wearable fitness device or a pedometer, such as a Fitbit. PACD is a framework that windows sensor-based time series data into time periods, detects changes between time periods, computes the significance of the detected changes, and examines the source of the changes. Figure 2 illustrates the first three steps of the PACD process. Let X denote a sample of sensor-based time series data that has been divided into days, X = { D 1 , D 2 , } where each day consists of minute-by-minute vectors of PA data x , D = { x 1 , x 2 , x 1440 } . Since there are 1440 min per day, there are 1440 PA data vectors collected per day D . For the current study, x represents a single minute of step and heart rate values. Let W be a window of n days such that W X . PACD compares two windows of data, W i and W j , within time series X . Additionally, W ^ is an aggregate window that corresponds to the average of all days within the window W :
W ^ = 1 n i = 1 n D i , D i W
Once the data has been windowed (and possibly aggregated, depending on the analysis being performed), two windows W i and W j are compared in one of two window modes: baseline or sliding. To denote a comparison between two windows W i and W j , we use the notation W i Δ W j . For a baseline window comparison, the first window ( i = 1 ) of data is considered a reference window that is sampled from the beginning of the time series. This reference window, W 1 , is included in each comparison. Beyond the reference window, the remaining windows ( j = 2 , 3 , ) are compared to the baseline window, W 1 . For a sliding window comparison, both windows used for comparison are advanced through the time series data, one window in front of the other ( i = 1 , 2 , and j = 2 , 3 , ). To detect change between two windows, PACD can make use of any function that accepts two windows as input, W i and W j , and outputs a scalar change score, C S , that represents the change between W i and W j . A higher value of C S indicates a higher amount of detected change between the two windows. Once a change score has been computed, the next step is to perform significance testing of the change score, CS. This step is necessary to interpret the change score’s magnitude. If a change score is significant, as determined by a significance test, the next step in PACD is to determine the nature and the source of change. Typically, this step requires the computation of features that summarize the data and provide a meaningful context for change. For example, the total number of steps taken per day is one such PA feature that is simple and commonly known. The change between daily steps from one window to the next window can be computed and utilized as an explanation of change. There are several methods to capture change across time in individual features. A common approach is to compute the percent change for a feature f from a previous window W i to a current window W j :
f Δ % = f W j f W i f W i × 100
Two sample tests or effect size analyses are two examples of statistical methods that can also be applied to quantify change between two samples; however, the multiple testing problem should be accounted for with a method such as the Bonferroni or Benjamini-Hochberg correction [20]. In our own earlier work, we explored using two sample tests to quantify the change between two windows of Fitbit-collected step and heart rate data [14].

3.5. Change Score Algorithms

In our previous work, we evaluated several change score functions and their applicability to different types of data. For this paper, we utilize three change detection methods: small window adaptation of the Permutation-based Change Detection in Activity Routine algorithm (sw-PCAR), distance-based dissimilarity scorer (DDS), and virtual classifier (VC). Using different change detection methods provides a diverse set of perspectives on the data comparison. For example, DDS and VC compute change scores based on features extracted from each window. On the other hand, sw-PCAR does not utilize window features and computes a change score directly from the time series data. It is beneficial to compute the results of several change score algorithms because if more methods detect a significant change, then there is greater evidence detecting a notable change in PA.

3.5.1. Method 1: sw-PCAR

We originally designed the Permutation-based Change Detection in Activity Routine (PCAR) approach [17] to analyze changes in longitudinal smart-home data without the need for a feature extraction step. We adapted the original implementation of PCAR to handle smaller windows of activity-labeled data, yielding the small-window PCAR (sw-PCAR) algorithm. sw-PCAR is a data-driven approach that computes a change score based on the minute-by-minute PA data, not based on features. For sw-PCAR, we average the days within two windows W i and W j using Equation (1) to yield aggregate windows W i ^ and W j ^ . Next, we compute C S using the symmetric Kullback-Leibler (KL) divergence distance between the minute-by-minute PA vectors in W i ^ and W j ^ . Finally, we compute the significance of the distance value C S by concatenating data from windows W i ^ and W j ^ into one window W . All the time intervals within W are randomly shuffled and then split into two new sub-windows. Lastly, we compute the KL distance for this permuted window pair.
To produce an N -length vector V of KL distances, we repeat this shuffling procedure N times. If N is large enough, the corresponding set of KL distances forms an empirical distribution of the possible permutations of activity data for the two windows. For sw-PCAR, we determine change significance using an approach proposed in our earlier work [8]. For this test, we compare CS to the permutation vector V with boxplot-based outlier detection. For this method, the interquartile range, which corresponds to the 75th percentile–25th percentile, of V is computed. Values outside of the 75th percentile + 1.5 × interquartile range are considered outliers [34]. If C S is determined to be an outlier of V , then we conclude the change score is significant.

3.5.2. Method 2: Distance-based Dissimilarity Scorer

We propose a simple, daily change score algorithm, Distance-based Dissimilarity Scorer (DDS), that computes a change score based on dissimilarity between features. First, a feature extraction step reduces two windows W i and W j into two n × z feature matrices, F i and F j , where n is the window size (in days) and z is the number of features that are extracted (see Section 3.7 for feature descriptions and Table 2 for a description of the z features). Example features extracted include the total steps taken and the number of bouts in different heart rate zones. For DDS, each feature matrix F is then aggregated into a feature vector F ^ by averaging each feature value across days (similar to the computation of W ^ in Equation (1)). A weighted normalized Euclidean distance (WNED) measure is used to produce a change score, C S . This change score quantifies the differences between the corresponding feature vectors F i ^ and F j ^ . The smaller the WNED distance between these two vectors, the more similar the two days of data are. For WNED, each feature is normalized as follows [15]:
F ^ i * = F i ^ ( k ) m a x [ F i ^ ( k ) , F j ^ ( k )   ]
F ^ j * = F j ^ ( k ) m a x [ F i ^ ( k ) , F j ^ ( k )   ]
For k = 1 , , z . Then, the WNED between F i * and F j * , d i j , is defined as follows:
d i j = k = 1 d 1 d [ F ^ i * ( k ) F ^ j * ( k ) ] 2
In the current DDS implementation, each feature is weighted equally. In the future, some features may be weighted more heavily on an individual participant basis. To determine the significance of the change between two windows using the DDS approach, we adopt a significance cut-off value of 0.25 that was used by Wang and colleagues for texture-based dissimilarity [15].

3.5.3. Method 3: Virtual Classifier

The last method is called the virtual classifier (VC) approach. VC makes use of a binary classifier to detect and explain behavior change. This type of virtual classifier for change analysis was first proposed by Hido and colleagues [19]. For this approach, each feature vector in the feature matrix F i , corresponding to window W i , are labeled with a positive class and each feature vector in the feature matrix F j , corresponding to window W j , are labeled with a negative class (see Section 3.7 for feature descriptions). Using k -fold cross-validation ( k = 5 ), VC trains a decision tree to distinguish between the virtual positive and negative classes. The resulting average prediction accuracy is represented as p V C . If a significant change exists between W i and W j , the average classification accuracy p V C of the learner should be higher than the accuracy expected from random noise: p r a n d = 0.5 , the binomial maximum likelihood of two equal-length windows.
For the VC approach, we used the inverse survival function of a binomial distribution to determine a critical value, p c r i t i c a l , at which n Bernoulli trials were expected to exceed p r a n d at α = 0.05 significance. If p V C p c r i t i c a l , a significant change exists between windows W i and W j . After a significant change has been detected, VC provides an explanation of the source of change without reliance on statistical tests. Upon significant change detection, retraining a decision tree and inspecting the tree reveals which features are discriminatory in learning the differences between two windows. This explanation of change is one of the advantages of the VC approach over other change point detection algorithms.
For individual participant analysis, the VC approach is useful for large window sizes because each daily feature vector is treated as if it were a sample. In the REHAB group, participants have as few as four days of full data collected (FDC). Consequently, we only use the VC approach individual analysis for participants with FDC ≥10 days. In the following section, we will discuss how we use the VC approach for group analysis.

3.6. PACD for Group Analysis

For the REHAB group, the number of full days of data collection, FDC, is dependent upon when the participant was recruited to the study and their length of stay (LOS). While LOS is dependent on a patient’s recovery and suitability for discharge based on therapists’ expertise, LOS is also affected by factors unrelated to recovery, such as days allowed by insurance. For these reasons, the number of days available for data analysis is varied across the participants. In order to compare results amongst participants and summarize the changes exhibited by the REHAB group, normalization of FDC is necessary. To do this, we split each participant’s data into a fixed number of bins. We first identified three groups of participants who had a minimum FDC, S :
  • S = 4 (FDC ≥ 4 days): N = 15 (all participants)
  • S = 7 (FDC ≥ 7 days): N = 11 (including 001, 002, 003, 004, 005, 006, 007, 009, 010, 012, 014)
  • S = 10 (FDC ≥ 10 days): N = 5 (including 002, 003, 004, 006, 014)
For each value of S (4, 7, 10), we split each participant’s daily data into S near-equal bins B . For example, participant 001 has FDC = 7. The resulting bins for a split of S = 4 would be like the following:
  • B 1 : D 1 , D 2
  • B 2 : D 3 , D 4
  • B 3 : D 5 , D 6
  • B 4 : D 7
For the days in each bin, B i , we compute an aggregate window, W ^ i , to normalize the FDC time periods across participants. All aggregate windows W ^ i sorted in original, chronological order form a new aggregate time series X ^ . For the sw-PCAR and DDS approaches, PACD is applied to X ^ with a window size of n = 1 bin (one aggregate day). For each bin, all participant’s sw-PCAR and DDS scores are averaged to represent the group change. Adapting the VC approach for group analysis is different from the adaptations of sw-PCAR and DDS. To use VC for group analysis, each bin B i contains N feature vectors, one for each participant measured at B i n i . For example, when S = 4 and we are performing a comparison between B 1 Δ B 2 , there are 30 total feature vectors (15 participants, each with two feature vectors, one extracted at B 1 and one extracted at B 2 ).
Another PACD enhancement for group analysis is the inclusion of reference data. With the CONTROL group dataset, we have estimates of natural PA variability expected for a healthy population. We can leverage this information as normative values to help measure significance of the detected changes. If changes detected in the REHAB group are greater than the changes detected in the CONTROL group, we can conclude the REHAB changes are greater than expected from natural variability. Additionally, for individual features, CONTROL feature values can be used to label a direction of REHAB change as an improvement or regression. If the trend of a feature extracted from the REHAB group approaches the distribution of the same feature extracted from the CONTROL group, we can conclude that an improvement in the REHAB population is observed.

3.7. Feature Extraction

We extract features from the PA data (see Table 2) for two primary purposes: (1) to provide input features for the DDS and VC approaches (sw-PCAR does not utilize features for change detection) and (2) to provide an explanation of changes discovered by change detection algorithms (see Section 3.5). For this study, all features extracted are on a daily basis, D , meaning features that require multiple days are not included in the analysis. For each day D = { x 1 , x 2 , x 1440 } in a window of n days, we extract z features to produce a n × z feature matrix F . We group features in F together based on the period of the day used for computation: (1) daytime (7:00 A.M.–9:00 P.M.) or (2) nighttime (9:01 P.M. on the previous day to 6:59 A.M. on the current day). Nighttime can be further broken into the following two periods: (1) nighttime-morning (12:00 A.M.–6:59 A.M.), or (2) nighttime-evening (9:01 P.M.–11:59 P.M.). The cutoff values for daytime and nighttime correspond to the natural rhythms of an inpatient setting and were selected in collaboration with therapists. Daily features include PA summaries based on frequency, duration, intensity, and variability of PA bouts, as measured by step counts and heart rate.
For step count-based measures, we compute bouts of daily PA based on step count by using a threshold, ε. We consider sequences of time series data with steps greater than ε to be a bout of PA. If ground truth activity labels, such as walking, commuting, and biking are available from the device user and/or an activity recognition algorithm [22], PA type can be inferred and ε can be updated dynamically based on which activity the device user is performing. For this study, we assume such labeled information is not available and set ε = 5   steps . By setting this value to 5 we are assuming physical activity is characterized by at least five steps per minute.
For heart rate-based measures, we take a similar approach; however, we define our PA measures to align with standards for therapeutic aerobic benefit. For each participant, we compute their maximal heart rate ( H R m a x ) using age-estimated formulas from the literature. For patients not taking beta-adrenergic blockade (BB) medications, H R m a x is calculated as: H R m a x B B = 212 0.7 × a g e [35]. For patients taking beta-adrenergic blockade medications, H R m a x is calculated as H R m a x B B = 164 0.7 × a g e [36]. Using H R m a x , PA bout intensity is considered to be in the target HR (THR) zone sufficient to obtain cardiovascular benefit when the 1-min HR value was 55% to 80% of H R m a x . The HR response is considered to be excessive if the HR bin value exceeded 80% of H R m a x . Duration of HR within the THR zone is quantified as number of consecutive minutes of HR within the zone and duration of excessive HR (EHR) is quantified as number of consecutive minutes of HR above the THR zone. Lastly, the frequency of HR bouts in the THR of at least 10 min duration are summed per day and the frequency of HR bouts in excess of the THR, regardless of duration, are summed per day.

4. Results

To investigate if PACD can detect and quantify physical activity changes during inpatient rehabilitation, two datasets are analyzed, REHAB and CONTROL. The REHAB dataset comprises 15 participants undergoing inpatient rehabilitation and the CONTROL group comprises nine healthy volunteers. To summarize the REHAB group, most participants were recovering from a stroke (eight participants) and rated themselves as moderately (three participants) to highly active (eight participants) pre-hospital as determined by the IPAQ-E. The participants’ length of stay at the inpatient rehabilitation hospital was 12.73 ± 5.74 days. Prior to serving as input to PACD, REHAB and CONTROL data are subject to pre-processing (see Section 3.3). In addition to the pre-processing described in Section 3.3, add-one smoothing is applied to avoid division by zero during sw-PCAR KL divergence computations. For PACD computations, the following algorithm parameter values are used: window mode = baseline; number of sw-PCAR permutations = 1000; VC cross-validation folds k = 5 . We tested the normalized window size S with values of S = { 4 , 7 , 10   days } .
To summarize group changes, Table 3 includes CONTROL and REHAB averages for each value of S and for each change score algorithm. Figure 3a–i show the change score curves for each value of S and for each change score algorithm, as well as the change significance threshold (red dashed line) and average CONTROL group score (green line). To provide context for the change scores and to perform change analysis, figures showing individual feature change are included. For the one significant VC result ( S = 4 , C S = 0.633 ), the top-level rules of the associated decision tree are shown in Figure 4. Plots of select features for each value of S are shown in Figure 5a–l. The selected features include daytime steps, maximum number of steps taken in a bout during daytime, sedentary percent, and number of daytime bouts in the THR zone. We selected these features for change analysis because of their clinical relevancy, trend, and ease of interpretation. To further support change analysis, we include individual REHAB participant S = 4 values for the features of daytime steps (see Table 4) and number of daytime THR bouts (see Table 5). We hypothesize that using each of the change detection methods (sw-PCAR, DDS, and VC), PACD will detect PA changes (bout frequency, duration, intensity, and variability) for both groups, REHAB and CONTROL. However, we anticipate that the significance of the change will be much higher for the REHAB group, with greater change exhibited towards the end of the FDC period.
To perform individual analyes of the REHAB group, we investigate two participants, participant 008, who had the shortest FDC (four days), and participant 014, who had the longest FDC (25 days). We also include change score plots for sw-PCAR and DDS for these two participants. Figure 6a,b show results for participant 008 and Figure 7a,b show results for participant 014. Furthermore, for participant 014 we include daily feature plots for daytime steps (see Figure 7c) and maximum number of steps taken in a bout during daytime (see Figure 7d). Parameters used for individual PACD analysis are the same as for group analysis, except the windows are not aggregated and the window size is one day ( n = 1 ).

5. Discussion

This paper presents our investigation of PACD for unsupervised change analysis of sensor-based PA and heart rate time series data. Three change detection algorithms are applied to two original datasets: (1) the CONTROL dataset, comprised of nine healthy participants’ Fitbit data and (2) the REHAB dataset, comprised of 15 inpatient rehabilitation participants’ Fitbit data.

5.1. CONTROL Group

The CONTROL group provides a reference of comparison for the REHAB group. Since the data were collected from healthy younger adults in their natural, free-living situations, we do not expect there to be any significant changes or trends. Using PACD, we have objective evidence to support this hypothesis (see Table 3). For the VC approach, the accuracy is as good as random guess ( p r a n d = 0.5 ) and for all values of S there is not a baseline comparison that exceeds the significance threshold ( p c r i t i c a l = 0.667 ). For the DDS approach, the change scores are 0.457, 0.434, and 0.449 for values of S = 4 , 7 , 10 respectively, which is higher than the significance threshold of 0.25 (see Section 3.5.2). This suggests the DDS approach could benefit from a data-driven significance threshold approach. sw-PCAR results for S = 4 , 7 are consistent (CS ≈ 0.4); however, there is a large spike for S = 10 ( C S = 0.715 ). Since days within a bin are averaged to form an aggregate day, the variability for S = 4 , 7 is washing out. For S = 10 there are bins with only one day, so no aggregation is being performed. In summary, the CONTROL change scores for each of the three algorithms represent the natural day-to-day and bin-to-bin change we can expect from healthy younger adults.

5.2. REHAB Group

There are many observations that can be made from the REHAB PACD results. First, there are commonalities in the results for all values of S and for all three algorithms. Each comparison’s results are highly variable, as evident by the error bars in Figure 3a–i. Next, the last bin has the highest change score of all the bins. This indicates the greatest amount of change from the beginning of therapy occurs at the end of therapy, which is the desired outcome of therapy. Investigating individual features suggest that this holds true for several features as well, including all values of S for daytime steps (the highest number of steps taken during the last bin) and sedentary percent (the percent of day sedentary is lowest during the last bin). Secondly, on the change score curves, there appears to be at least one trough in between B 1 and B S . More specifically, for S = 4 , the DDS and VC curves exhibit a B 1 Δ B 3 score that is lower than B 1 Δ B 2 and B 1 Δ B 4 . For S = 7 , there are dips around B 1 Δ B 4 (sw-PCAR, DDS) and B 1 Δ B 5 (VC), while there are dips around B 1 Δ B 6 (sw-PCAR, VC), B 1 Δ B 7 (sw-PCAR, DDS), and B 1 Δ B 8 (VC). The source of these dips is evident in several features, suggesting patients experience a decrease in PA duration (daytime steps decreases, sedentary percent increases), frequency (THR and EHR number of bouts decreases), and intensity (bout steps max decreases, maximum observed HR decreases). In general, the dips occur near, or shortly after, mid-stay of inpatient rehabilitation. A similar trend was observed by the SIRRACT study, which used gait parameters derived from wearable sensors to provide feedback on daily steps, bouts, and walking speed. In the SIRRACT study, 30% of participants decreased their total daily walking time over the course of inpatient rehabilitation [5]. In the current study, we were silent on whether therapists/patients pay attention to the step data. Consequently, our findings represent more ecological circumstances in which we were observing behavior but not necessarily trying to influence behavior with the wearables.
Comparing the REHAB change scores to the average CONTROL change scores (Table 3 and green line in Figure 3a–i), there does not appear to be a consistent relationship that holds for all values of S and algorithms. Upon inspection of Table 3, the average change for REHAB is sometimes lower than the average change for CONTROL, as demonstrated by DDS ( S = 4 , 7 ) and sw-PCAR ( S = 4 , 10 ); however, for all S values of VC, REHAB averages are higher than CONTROL averages. Looking at Figure 3a–i, B 1 Δ B S exceeds the CONTROL average, suggesting change during the final bin is more than the typical daily variation, with the exception of DDS ( S = 4 ). While the CONTROL group in this study provides some reference information, the high change score values for DDS and sw-PCAR emphasize the importance of age-matching the CONTROL group in future work.
Additional REHAB observations can be made by looking at how each algorithm captures change. sw-PCAR does not leverage any features and, instead, computes change scores directly from the distribution of the data. As the patients’ progress through therapy, the sw-PCAR change scores demonstrate increased variability. The group SD is as low as σ = 0.134 for S = 4 and as high as σ = 0.419 for S = 10 . All comparisons to the baseline bin generate scores higher than the significance threshold and only bins in the latter half of therapy surpass the CONTROL sw-PCAR average. More representative sw-PCAR significance thresholds could be computed by replacing the value 1.5 in the box plot-based outlier detection method with a parameter, C, which is fit based on the dataset, or by exploring other methods to test membership of an observation (i.e., C S ) to a sample distribution (i.e., V ). If the sample is normal, statistical tests such as Grubb’s test for outliers [37] can be applied. However, the assumption of normality does not hold for all samples of human behavior data. In future work, we plan to investigate data-driven approaches to tuning the parameter C and to investigate data mining techniques relevant to outlier detection.
Like sw-PCAR, all DDS change scores all greater than 0.25. The threshold value of 0.25 was selected based on its prevalence in a previous smarthome study [15] and is perhaps too low for the REHAB group used in the current study. A more appropriate threshold to compare with is the CONTROL average, for which DDS does exceed twice for S = 4 , 7 .
Lastly, for the VC approach, there is only one significant result which is B 1 Δ B 4 for S = 4 . The associated decision tree for this comparison (see Figure 4) finds the features of standard deviation of bouts minutes, moderately/highly active percent, number of THR bouts, and maximum observed heart rate to be the most discriminative (in that order). The tree characterizes the baseline bin, B 1 , as having lower variability in minutes per bout, lower active percent, lower number of exercise bouts, and lower heart rate. B 1 Δ B 7 for S = 7 comes quite close ( C S = 0.667 , s i g = 0.682 ), while B 1 Δ B 10 for S = 10 is quite high, it is not significant because the threshold becomes quite high with a small sample size of N = 5 ( C S = 0.7 , s i g = 0.800 ). The CONTROL average VC accuracies are quite close to what would be expected for random data and therefore do not provide insight into a potential relationship between the REHAB and CONTROL group. This result is likely due to the small sample size of the CONTROL group.

5.3. REHAB Case Studies

Participant 008 had the shortest length of stay (FDC = 4) of the REHAB group and, thus, dictated the value of our minimum split, S = 4 . Participant 008 was undergoing inpatient rehabilitation to recover from a stroke; participant 008’s DDS scores follow the same trend as for the group with a dip at B 1 Δ B 3 , though participant 008’s scores are more pronounced than the group average. On the other hand, participant 008’s sw-PCAR B 1 Δ B 3 and B 1 Δ B 4 scores show a decrease in change from B 1 Δ B 2 , which is opposite of the group. Though sw-PCAR does not utilize features to compute its change score, we can investigate the features to provide a context for the detected change. At B 1 , participant 008 took 5954 steps during the daytime, which is the highest step count of participant 008’s data collection period. At B 2 , her daytime steps fell to 3177 (−46.64%). At B 3 , her daytime steps fell to 3520 (−40.88%) and lastly, at B 4 , her daytime steps fell to 4389 (−26.28%). In the case of daytime steps, the greatest change occurs at B 1 Δ B 2 , which is a negative change. The remaining comparisons, though still negative, are actually less change from B 1 , but still an improvement.
Participant 014 had the longest length of stay (FDC = 23) of the REHAB group. Participant 014 was undergoing inpatient rehabilitation to recover from a stroke. sw-PCAR and DDS scores for participant 014 both exhibit lower scores at the beginning of data collection and higher scores toward the end. During the last four days of her stay, an impressive change in her daytime steps was noted ( D 1 to D 19 μ = 1935.42, D 20 to D 23 μ = 3898.75). The day before discharge, she achieved a walking bout of 666 steps, the highest out of her data collection period. Interestingly, between days D 13 to D 16 , participant 014 shows high change relative to previous days and the subsequent four days. From D 13 onwards, participant 014 exhibits significant change up to her discharge date. Upon investigating the feature changes around this time, on D 13 participant 014 walks a high of 495 steps in a single bout (compared to 173 steps on D 12 ) and on D 15 participant 014 achieves her only bout in the THR zone during the entire length of data collection. While we can describe participant 014’s change in terms of PA features, we do not have context to explain why she exerted more effort during some periods over others. Aligning PACD results with notes from therapists or family members describing the participant’s mental, emotional, and physical state is an insightful direction for future work.

6. Conclusions

In this paper, we analyze longitudinal physical activity data collected from inpatient rehabilitation participants (REHAB group) and healthy control subjects (CONTROL group) to gain insights into changes over time. To detect changes over time, we utilize the Physical Activity Change Detection (PACD) change analysis approach. We expanded PACD to detect changes on a daily basis and to summarize changes across participants with varying lengths of data collection. Our approach is also effective for comparing physical activity across demographic groups. The results indicate that our methods are able to effectively capture significant changes in the physical activity and heart rate data for both the REHAB and CONTROL groups. Specifically, we conclude that the greatest amount of change occurs at the end of inpatient rehabilitation, the amount of change over time does not necessarily increase linearly, and when compared to the CONTROL group, the REHAB group exhibits greater change. This suggests that the REHAB group is improving their physical activity and not just experiencing normal variations in walking that are present in the CONTROL group. Lastly, the aspects of physical activity showing the greatest change for the REHAB group include daily steps, number of minutes in a bout, variability of the number of minutes in a bout, maximum number of steps in a bout, and maximum heart rate.
Among the limitations of this work was the absence of age-matching among the CONTROL group and the REHAB group. With an age-matched control group, the normative change score values would be more clinically relevant for comparison with the changes exhibited by the REHAB group. Another limitation includes the small sample size of our REHAB group (N = 15). Consequently, future work includes increasing the REHAB sample size, collecting an additional dataset of age-matched controls who continuously wear fitness devices with heart rate sensors, and collecting ground truth physical activity data for comparison. Another direction for future work involves designing a data-driven change significance test for DDS, adding parameter tuning for the current sw-PCAR test, and performing additional research regarding the accuracy of each change score algorithm. We also plan to investigate providing real-time PACD data as intentional feedback to allow therapists to tailor therapeutic activity to achieve activity goals. In summary, the data analysis approach and results we presented are valuable for the pervasive computing community because we provide evidence that passively-collected data from commercially-available, wearable devices can be analyzed using PACD to gain highly useful insights for inpatient rehabilitation.

Acknowledgments

This research was funded in part by the National Institutes of Health (NIH) grant number R25AG0146114. We wish to thank our therapist collaborators at St. Luke’s Rehabilitation Institute for providing analysis and interpretation insights.

Author Contributions

G.S., D.C., and D.W. conceived and designed the experiments; D.W., A.L.F., J.D., and G.S. performed the experiments; G.S. and J.D. analyzed the data; D.C. and D.W. contributed reagents/materials/analysis tools; and G.S., D.C., D.W., J.D., and A.L.F. wrote the paper.

Conflicts of Interest

The authors declare no conflict of interest.

Ethical Statements

All subjects gave their informed consent for inclusion before they participated in the study. The study was conducted in accordance with the Declaration of Helsinki, and the protocol was approved by the Providence Health Care Institutional Review Board (#2035).

References

  1. Dobkin, B.H. Wearable Motion Sensors to Continuously Measure Real-World Physical Activities. Curr. Opin. Neurol. 2013, 26, 602–608. [Google Scholar] [CrossRef] [PubMed]
  2. Fulk, G.D.; Combs, S.A.; Danks, K.A.; Nirider, C.D.; Raja, B.; Reisman, D.S. Accuracy of 2 Activity Monitors in Detecting Steps in People With Stroke and Traumatic Brain Injury. Phys. Ther. 2014, 94, 222–229. [Google Scholar] [CrossRef] [PubMed]
  3. Hooke, M.C.; Gilchrist, L.; Tanner, L.; Hart, N.; Withycombe, J.S. Use of a Fitness Tracker to Promote Physical Activity in Children With Acute Lymphoblastic Leukemia. Pediatr. Blood Cancer 2016, 63, 684–689. [Google Scholar] [CrossRef] [PubMed]
  4. Mammen, G.; Gardiner, S.; Senthinathan, A.; McClemont, L.; Stone, M.; Faulkner, G. Is this Bit Fit? Measuring the Quality of the Fitbit Step-Counter. Health Fit. J. Can. 2012, 5, 30–39. [Google Scholar]
  5. Dorsch, A.K.; Thomas, S.; Xu, X.; Kaiser, W.; Dobkin, B.H. SIRRACT: An International Randomized Clinical Trial of Activity Feedback During Inpatient Stroke Rehabilitation Enabled by Wireless Sensing. Neurorehabil. Neural Repair 2014, 29, 407–415. [Google Scholar] [CrossRef] [PubMed]
  6. Hornby, T.G.; Holleran, C.L.; Leddy, A.L.; Hennessy, P.; Leech, K.A.; Connolly, M.; Moore, J.L.; Straube, D.; Lovell, L.; Roth, E. Feasibility of Focused Stepping Practice During Inpatient Rehabilitation Poststroke and Potential Contributions to Mobility Outcomes. Neurorehabil. Neural Repair 2015, 29, 923–932. [Google Scholar] [CrossRef] [PubMed]
  7. Guo, F.; Li, Y.; Kankanhalli, M.S.; Brown, M.S. An Evaluation of Wearable Activity Monitoring Devices. In Proceedings of the 1st ACM International Workshop on Personal Data Meets Distributed Multimedia (PDM ’13), Barcelona, Spain, 21–25 October 2013; ACM: New York, NY, USA, 2013; pp. 31–34. [Google Scholar]
  8. Sprint, G.; Cook, D.J.; Schmitter-Edgecombe, M. Unsupervised Detection and Analysis of Changes in Everyday Physical Activity Data. J. Biomed. Inform. 2016, 63, 54–65. [Google Scholar] [CrossRef] [PubMed]
  9. Sprint, G.; Cook, D.J.; Fritz, R.; Schmitter-Edgecombe, M. Using Smart Homes to Detect and Analyze Health Events. Computer 2016, 49, 29–37. [Google Scholar] [CrossRef]
  10. Sprint, G.; Cook, D.; Fritz, R.; Schmitter-Edgecombe, M. Detecting Health and Behavior Change by Analyzing Smart Home Sensor Data. In Proceedings of the 2016 IEEE International Conference on Smart Computing (SMARTCOMP), St. Louis, MO, USA, 18–20 May 2016; pp. 1–3. [Google Scholar]
  11. Mansfield, A.; Wong, J.S.; Bryce, J.; Brunton, K.; Inness, E.L.; Knorr, S.; Jones, S.; Taati, B.; McIlroy, W.E. Use of Accelerometer-Based Feedback of Walking Activity for Appraising Progress With Walking-Related Goals in Inpatient Stroke Rehabilitation: A Randomized Controlled Trial. Neurorehabil. Neural Repair 2015, 29, 847–857. [Google Scholar] [CrossRef] [PubMed]
  12. Merilahti, J.; Viramo, P.; Korhonen, I. Wearable Monitoring of Physical Functioning and Disability Changes, Circadian Rhythms and Sleep Patterns in Nursing Home Residents. IEEE J. Biomed. Health Inform. 2015. [Google Scholar] [CrossRef] [PubMed]
  13. Paavilainen, P.; Korhonen, I.; Lötjönen, J.; Cluitmans, L.; Jylhä, M.; Särelä, A.; Partinen, M. Circadian Activity Rhythm in Demented and Non-Demented Nursing-Home Residents Measured By Telemetric Actigraphy. J. Sleep Res. 2005, 14, 61–68. [Google Scholar] [CrossRef] [PubMed]
  14. Dahmen, J.; Fleur, A.L.; Sprint, G.; Cook, D.; Weeks, D.L. Using Wrist-Worn Sensors to Measure and Compare Physical Activity Changes for Patients Undergoing Rehabilitation. In Proceedings of the 2017 IEEE International Conference on Pervasive Computing and Communications Workshops (PerCom Workshops), Kailua-Kona, HI, USA, 13–17 March 2017; pp. 667–672. [Google Scholar]
  15. Wang, S.; Skubic, M.; Zhu, Y. Activity Density Map Visualization and Dissimilarity Comparison for Eldercare Monitoring. IEEE Trans. Inf. Technol. Biomed. 2012, 16, 607–614. [Google Scholar] [CrossRef] [PubMed]
  16. Tan, T.-H.; Gochoo, M.; Chen, K.-H.; Jean, F.-R.; Chen, Y.-F.; Shih, F.-J.; Ho, C.F. Indoor Activity Monitoring System for Elderly Using RFID and Fitbit Flex Wristband. In Proceedings of the IEEE-EMBS International Conference on Biomedical and Health Informatics (BHI), Valencia, Spain, 1–4 June 2014; pp. 41–44. [Google Scholar]
  17. Dawadi, P.N.; Cook, D.J.; Schmitter-Edgecombe, M. Modeling Patterns of Activities Using Activity Curves. Pervasive Mob. Comput. 2015. [Google Scholar] [CrossRef] [PubMed]
  18. Liu, S.; Yamada, M.; Collier, N.; Sugiyama, M. Change-Point Detection in Time-Series Data by Relative Density-Ratio Estimation. Neural Netw. 2013, 43, 72–83. [Google Scholar] [CrossRef] [PubMed]
  19. Hido, S.; Ide, T.; Kashima, H.; Kubo, H.; Matsuzawa, H. Unsupervised Change Analysis Using Supervised Learning. In Advances in Knowledge Discovery and Data Mining; Springer: Berlin/Heidelberg, Germany, 2008; pp. 148–159. ISBN 978-3-540-68124-3. [Google Scholar]
  20. Resident Assessment Instrument RAI—Status and Outcome Scales. Available online: http://www.interrai.org/ (accessed on 4 August 2017).
  21. Robben, S.; Pol, M.; Kröse, B. Longitudinal Ambient Sensor Monitoring for Functional Health Assessments: A Case Study. In Proceedings of the 2014 ACM International Joint Conference on Pervasive and Ubiquitous Computing: Adjunct Publication, Seattle, WA, USA, 13–17 September 2014; pp. 1209–1216. [Google Scholar]
  22. Chen, L.; Hoey, J.; Nugent, C.D.; Cook, D.J.; Yu, Z. Sensor-Based Activity Recognition. IEEE Trans. Syst. Man Cybern. 2012, 42, 790–808. [Google Scholar] [CrossRef]
  23. Caspersen, C.J.; Powell, K.E.; Christenson, G.M. Physical Activity, Exercise, and Physical Fitness: Definitions and Distinctions for Health-Related Research. Public Health Rep. 1985, 100, 126–131. [Google Scholar] [PubMed]
  24. Borson, S.; Scanlan, J.; Brush, M.; Vitaliano, P.; Dokmak, A. The Mini-Cog: A Cognitive Vital Signs Measure for Dementia Screening in Multi-Lingual Elderly. Int. J. Geriatr. Psychiatry 2000, 15, 1021–1027. [Google Scholar] [CrossRef]
  25. Hurtig-Wennlöf, A.; Hagströmer, M.; Olsson, L.A. The International Physical Activity Questionnaire Modified for the Elderly: Aspects of validity and feasibility. Public Health Nutr. 2010, 13, 1847–1854. [Google Scholar] [CrossRef] [PubMed]
  26. Hamilton, B.B.; Granger, C.V.; Sherwin, F.S.; Zielezny, M.; Tashman, J.S. A Uniform National Data System for Medical Rehabilitation. In Rehabilitation Outcomes: Analysis and Measurement; Paul H. Brookes Publishing Company: Baltimore, MD, USA, 1987; pp. 137–150. [Google Scholar]
  27. Dominick, G.M.; Winfree, K.N.; Pohlig, R.T.; Papas, M.A. Physical Activity Assessment between Consumer- and Research-Grade Accelerometers: A Comparative Study in Free-Living Conditions. JMIR MHealth UHealth 2016, 4. [Google Scholar] [CrossRef] [PubMed]
  28. Alharbi, M.; Bauman, A.; Neubeck, L.; Gallagher, R. Validation of Fitbit-Flex as a Measure of Free-Living Physical Activity in a Community-Based Phase III Cardiac Rehabilitation Population. Eur. J. Prev. Cardiol. 2016, 23, 1476–1485. [Google Scholar] [CrossRef] [PubMed]
  29. Floegel, T.A.; Florez-Pregonero, A.; Hekler, E.B.; Buman, M.P. Validation of Consumer-Based Hip and Wrist Activity Monitors in Older Adults with Varied Ambulatory Abilities. J. Gerontol. A Biol. Sci. Med. Sci. 2017, 72, 229–236. [Google Scholar] [CrossRef] [PubMed]
  30. Block, V.J.; Lizée, A.; Crabtree-Hartman, E.; Bevan, C.J.; Graves, J.S.; Bove, R.; Green, A.J.; Nourbakhsh, B.; Tremblay, M.; Gourraud, P.-A.; et al. Continuous Daily Assessment of Multiple Sclerosis Disability Using Remote Step Count Monitoring. J. Neurol. 2017, 264, 316–326. [Google Scholar] [CrossRef] [PubMed]
  31. Jo, E.; Lewis, K.; Directo, D.; Kim, M.J.; Dolezal, B.A. Validation of Biofeedback Wearables for Photoplethysmographic Heart Rate Tracking. J. Sports Sci. Med. 2016, 15, 540–547. [Google Scholar] [PubMed]
  32. Wallen, M.P.; Gomersall, S.R.; Keating, S.E.; Wisløff, U.; Coombes, J.S. Accuracy of Heart Rate Watches: Implications for Weight Management. PLoS ONE 2016, 11. [Google Scholar] [CrossRef] [PubMed]
  33. Leth, S.; Hansen, J.; Nielsen, O.W.; Dinesen, B. Evaluation of Commercial Self-Monitoring Devices for Clinical Purposes: Results from the Future Patient Trial, Phase I. Sensors 2017, 17, 211. [Google Scholar] [CrossRef] [PubMed]
  34. Tukey, J.W. Exploratory Data Analysis; Addison-Wesley: Boston, MA, USA, 1977. [Google Scholar]
  35. Tanaka, H.; Monahan, K.D.; Seals, D.R. Age-Predicted Maximal Heart Rate Revisited. J. Am. Coll. Cardiol. 2001, 37, 153–156. [Google Scholar] [CrossRef]
  36. Brawner, C.A.; Ehrman, J.K.; Schairer, J.R.; Cao, J.J.; Keteyian, S.J. Predicting Maximum Heart Rate Among Patients with Coronary Heart Disease Receiving Beta-Adrenergic Blockade Therapy. Am. Heart J. 2004, 148, 910–914. [Google Scholar] [CrossRef] [PubMed]
  37. Grubbs, F.E. Procedures for Detecting Outlying Observations in Samples. Technometrics 1969, 11. [Google Scholar] [CrossRef]
Figure 1. Framing of when data collection occurred during each REHAB participant’s inpatient rehabilitation stay.
Figure 1. Framing of when data collection occurred during each REHAB participant’s inpatient rehabilitation stay.
Sensors 17 02219 g001
Figure 2. Overview of the Physical Activity Change Detection (PACD) framework.
Figure 2. Overview of the Physical Activity Change Detection (PACD) framework.
Sensors 17 02219 g002
Figure 3. Change score results with standard deviation shown as error bars. (ac) sw-PCAR; (df) DDS; and (gi) VC; (a,d,g) S = 4 ; (b,e,h) S = 7 ; (c,f,i) S = 10 .
Figure 3. Change score results with standard deviation shown as error bars. (ac) sw-PCAR; (df) DDS; and (gi) VC; (a,d,g) S = 4 ; (b,e,h) S = 7 ; (c,f,i) S = 10 .
Sensors 17 02219 g003
Figure 4. S = 4 B 1 Δ B 4 VC top-level decision tree rules for change analysis. SD = standard deviation.
Figure 4. S = 4 B 1 Δ B 4 VC top-level decision tree rules for change analysis. SD = standard deviation.
Sensors 17 02219 g004
Figure 5. Average bin values for selected features with standard deviation shown as error bars. (ac) daytime steps; (df) maximum number of steps taken in a bout during daytime; (gi) sedentary percent; and (jl) number of daytime bouts in the THR zone. (a,d,g,j) S = 4 ; (b,e,h,k) S = 7 ; (c,f,i,l) S = 10 .
Figure 5. Average bin values for selected features with standard deviation shown as error bars. (ac) daytime steps; (df) maximum number of steps taken in a bout during daytime; (gi) sedentary percent; and (jl) number of daytime bouts in the THR zone. (a,d,g,j) S = 4 ; (b,e,h,k) S = 7 ; (c,f,i,l) S = 10 .
Sensors 17 02219 g005
Figure 6. Daily change results for participant 008. (a) sw-PCAR; (b) DDS.
Figure 6. Daily change results for participant 008. (a) sw-PCAR; (b) DDS.
Sensors 17 02219 g006
Figure 7. Daily change results for participant 014. (a) sw-PCAR; (b) DDS; (c) daily daytime steps; and (d) daily maximum number of steps taken in a bout during daytime.
Figure 7. Daily change results for participant 014. (a) sw-PCAR; (b) DDS; (c) daily daytime steps; and (d) daily maximum number of steps taken in a bout during daytime.
Sensors 17 02219 g007
Table 1. REHAB group participant demographics.
Table 1. REHAB group participant demographics.
IDSexAgeRICPre-Hospital IPAQ CategoryFDCDBCFIMA MotorFIMD MotorBeta-Blockers?
001M75Orthopedic DisorderHigh725683No
002F46StrokeHigh1025485No
003F74Pulmonary DisorderLow1623579No
004M48Cardiac DisorderLow1825984No
005M55DebilityHigh735069Yes
006M59Medically Complex ConditionModerate1125184Yes
007M68StrokeHigh915584No
008F50StrokeModerate435686No
009F80Lower Extremity FractureHigh814459No
010F60StrokeHigh733763No
011F74StrokeHigh524970No
012M61StrokeLow916083Yes
013M78Cardiac DisorderLow525386Yes
014F48StrokeHigh2523775No
015M44StrokeModerate515681No
Mean 61.33 9.731.9350.1378.07
SD 12.66 5.790.708.198.80
A = admission, D = discharge, DBC = days before data collection began, F = female, FDC = full days of data collection, FIM = Functional Independence Measure, M = male, SD = standard deviation.
Table 2. Features extracted from step and heart rate time series data.
Table 2. Features extracted from step and heart rate time series data.
Time SeriesFeatureDescription
StepsTotal stepsTotal steps per period: (1) daytime, (2) nighttime
Number of boutsCount of detected step-based PA bouts during daytime
Max steps per boutHighest number of steps taken in a bout during daytime
Minutes per boutMean and SD of duration of bouts during daytime
PA intensity percentagePercentage of 24-h day that is (1) sedentary (<5 steps/min), (2) low (5 ≤ steps/min < 40), (3) moderate (40 ≤ steps/min < 100), (4) high (≥100 steps/min), (5) active (≥5 steps/min) intensity levels during daytime
Daily activity ratioNumber of daytime active minutes divided number of nighttime active minutes
Heart rateMaximum heart rateMaximum heart rate during daytime
Zone number of boutsCount of detected bouts in (1) THR zone and (2) EHR zone during daytime
Zone minutes per boutMean, SD, total, and maximum of duration of bouts in (1) THR zone and (2) EHR zone during daytime
EHR = excessive heart rate, PA = physical activity, SD = standard deviation, THR = target heart rate.
Table 3. Summary of change scores (CS) for each group (CONTROL and REHAB).
Table 3. Summary of change scores (CS) for each group (CONTROL and REHAB).
CONTROLREHAB
S = 4 S = 7 S = 10 S = 4 S = 7 S = 10
sw-PCARMean0.3910.4030.7150.2780.4040.600
SD0.1570.1660.3820.1340.2300.419
DDSMean0.4570.4340.4490.3980.4230.456
SD0.0720.0490.0400.0290.0400.077
VCMean0.4330.4670.5060.5110.4780.556
SD0.0760.1400.1740.1070.1500.101
Significance threshold0.6670.6670.6670.6330.6820.800
SD = standard deviation.
Table 4. Daytime steps for individual REHAB participants ( S = 4 ).
Table 4. Daytime steps for individual REHAB participants ( S = 4 ).
Participant B 1 B 2 B 1 Δ B 2 B 3 B 1 Δ B 3 B 4 B 1 Δ B 4
0012184.003728.5070.722230.502.133382.0054.85
0022008.671404.33−30.092351.0017.043232.0060.90
0033081.253647.0018.364063.7531.894187.2535.89
0042615.401999.80−23.544188.5060.154325.7565.40
005227.00652.50187.44942.00314.981936.00752.86
006500.332144.00328.511493.67198.532532.00406.06
0074466.332768.50−38.013056.00−31.584919.0010.14
0085954.003177.00−46.643520.00−40.884389.00−26.28
009594.501178.5098.23531.00−10.68681.0014.55
0101625.501862.0014.551811.5011.441507.00−7.29
011866.00501.00−42.151680.0094.00708.00−18.24
0121218.671959.0060.751637.0034.331859.0052.54
0132487.003246.0030.521375.00−44.711608.00−35.34
0142103.171854.17−11.841728.33−17.823650.8073.59
0154006.501647.00−58.893491.00−12.873074.00−23.27
Mean2262.552117.9537.202273.2840.402799.3994.42
SD1602.301010.65104.401134.5698.011369.43210.71
SD = standard deviation.
Table 5. Number of THR zone bouts for individual REHAB participants ( S = 4 ).
Table 5. Number of THR zone bouts for individual REHAB participants ( S = 4 ).
Participant B 1 B 2 B 1 Δ B 2 B 3 B 1 Δ B 3 B 4 B 1 Δ B 4
0015.505.500.006.5018.187.0027.27
0020.000.33N/A3.00N/A6.00N/A
0038.2516.75103.0313.7566.6714.5075.76
0040.802.60225.004.25431.256.00650.00
0056.5011.5076.927.007.699.0038.46
0069.3311.0017.869.00−3.5714.5055.36
0072.000.00−100.000.50−75.001.00−50.00
0081.000.00−100.001.000.000.00−100.00
0095.506.009.096.5018.185.00−9.09
0100.000.00N/A0.00N/A0.00N/A
01115.0017.0013.3310.00−33.3314.00−6.67
0128.009.5018.758.000.0010.0025.00
01313.007.00−46.1515.0015.3816.0023.08
0140.000.00N/A0.17N/A0.00N/A
0150.000.00N/A0.00N/A0.00N/A
Mean4.995.8119.805.6440.506.8766.29
SD4.986.1492.684.95134.205.94199.74
SD = standard deviation.
Back to TopTop