Abstract
Life expectancy in the UK has increased since the 19th century. As of 2019, there are just under 12 million people in the UK aged 65 or over, with close to a quarter living by themselves. Thus, many families and carers are looking for new ways to improve the health and care of older people. Passive sensors such as infra‐red motion and plug sensors have had success as a noninvasive way to help the older people. These provide a series of categorical sensor events throughout the day. Modeling this categorical dataset can help to understand and predict behavior. This article proposes a method to model the probability a sensor will trigger throughout the day for a household whilst accounting for the prior data and other sensors within the home. We present our results on a dataset from Howz, a company helping people to passively identify changes in their behavior over time.
Keywords: autoregressive, binary series, home sensing
1. INTRODUCTION
Life expectancy in the UK has increased since the 19th century. 1 As of 2019, there are just under 12 million people in the UK aged 65 or over, 2 with close to a quarter living by themselves. Those living on their own are more prone to trips to the emergency room and are more likely to suffer from mental illnesses. 3 An ageing population such as this results in extra pressures for the NHS and health care services. By 2030, it is likely that one in five people will be aged 65 or over. 4 It is clear there is a growing need for new ways to help the ageing population and reduce strain on the NHS and health care services.
1.1. Motivation
Howz is a product which introduces a number of nonintrusive sensors within the homes of older people and care facilities. The data received from these sensors are used to understand a household's behavior, which can be used to improve the health and well‐being of the household. For example, if a customer starts getting up during the night more frequently it could indicate a water infection. Once Howz has detected this, they make the user, family member or carer aware, so that action can be taken, reducing severity and preventing hospitalization.
In this article, we focus on estimating the probability a sensor will trigger in a 15‐minute interval given the other household sensors. We look at this information on a 24‐hour scale, as previous analysis 5 indicates a household is likely to follow similar routines throughout the day. For example, in the process of getting up we could expect the bedroom door, bathroom door and kettle sensor. Therefore, if the bedroom and bathroom sensors are triggered, we would expect an increase in the estimated probability of the kettle sensor.
1.1.1. Howz anonymized dataset
Figure 1 is an example of data for a household with four sensors: lounge, toaster, kettle, and front door. Howz typically provide three sensors as a starter package for a new customer, with the option to install additional sensors. It is the customer who chooses how many sensors are used with some households having up to 10 sensors. Each data point has a sensor type and whether the sensor was triggered within the 15‐minute interval.
FIGURE 1.

Color‐coded sensor events for a household: Lounge, toaster, kettle, and front door
We are interested in presenting the data on a 24‐hour scale to explore how the household changes over the day. Figure 2 shows an example of this empirical probability in February for the kettle and toaster sensors. From the empirical estimate, we can see that the probability varies throughout the day with the highest between 6 and 9 am and the kettle having low level activity in the afternoon until 8 pm with very little activity for the toaster after 9 am.
FIGURE 2.

Empirical probability of the kettle sensor triggering at each time interval (red line) vs toaster sensor (blue)
1.2. Statistical motivation and structure
For discrete time series data, the main body of research concerns time series analysis of count data. 6 See Handbook of discrete‐valued time series 7 for a general book on methods for discretized data. However, for our application it is necessary to look at the data within the day, rather than the daily count, and how that changes day to day. For example, using kitchen sensors at different times within the day could be a sign of forgetting to eat until the user becomes very hungry. Households tend to follow small routines throughout the day, that is, getting up and getting ready for the day and getting ready for bed. Hence, particular sensors are likely to be seen in sequence with each other. There has been recent research into classifying such routines with the use of wearable technology and other sensors with notable research papers gathered in Lotfi et al. 8 In contrast, our focus is on incorporating potential routines into the model, not identifying them, so we look to alternative methods. Giving device specific feedback to the user, especially if the family or carers have specific concerns is very important. Therefore, we view the data as multiple binary time series. We acknowledge there are many ways of viewing the data, however, this best fits Howz's goal and provides more specific information to relay to customers. Typical generalized linear models for binary data often use the Bernoulli distribution with the logit link function. Examples in the literature include; a Bernoulli autoregressive moving average model 9 and analyzing eye tracking data with multilevel logistic regression. 10 However, to accurately estimate the probability, the method must be able to follow the steep spikes and dips seen in the data (Figure 2), which suggests classic linear modeling will not suffice. As indicated above, the current literature, contains time series models with autoregressive components. An alternative approach is to use Hawkes Processes. Hawkes processes place emphasis on using the recent data to inform the current probability on data that is more prone to steep spikes. Engelhard et al 11 use Hawkes processes for predicting smoking events and Jewell et al 12 for identifying spikes in calcium imaging data.
We propose a new model specification for modeling a sensor that takes inspiration from Hawkes processes within a generalized linear framework. It will dynamically vary the probabilities that a sensor will be triggered throughout the day, based on the prior data from the sensor itself and the sensors around it to incorporate the effect of routines in the data. In Section 2, we present the method, and in Section 3, we apply it to Howz data. In Section 4, we compare this method to a logistic regression model, and in Section 5, we summarize the results and discuss potential avenues for further research.
2. MODEL
The following method considers each sensor separately and models the behavior as a binary time series conditional on the data up until the previous time point. Recall the data is sampled every 15 minutes, where is number of data samples we have. Similar to the set up in Fokianos and Moysiadis, 13 and Milani et al, 14 let be a binary time series, the population random variable we are seeking inference upon. Then let be the observed binary outcome for the sensor of interest at time :
Note that, if the sensor is triggered multiple times in the 15 minutes this information is not included.
Let be the information we have until time ,
where for from the modeled sensor. We let denote the number of other sensors and be the other sensors at time and prior expectations . The conditional distribution for each is modeled as,
Using a generalized linear model framework, we estimate the conditional mean, , which is the probability that at time given the information up until time . In order to assess whether there has been a change in behavior, the previous information for a households routine is very important.
Motivated by our application, we now consider the form of the linear predictor, . For the Bernoulli distribution, a natural choice for a canonical link function is the logit function.
This maps the linear predictor using the link function from to for the estimated probability . Due to the placement of sensors throughout the house, they will often be triggered in a certain order, that is, to get from the bedroom to the bathroom, a member of the household must go through the hallway. We would also expect certain sensors to have some dependence on when it was last seen. For example, the hallway could be triggered before entering the bathroom and exiting, or if the kettle is used we may not expect to see the kettle again for a few hours. Therefore, should contain an autoregressive term , a dependence on other sensors and a seasonal factor . We include a seasonal factor due to sensors often being seen at similar times days previously. For example; putting on the kettle and having a morning coffee before leaving for work.
Moysiadis and Fokianos 15 let where . However, due to the steep changes in probability, see Figure 2, we need to place more restrictions on . Instead we take inspiration from Jewell et al 12 who include a rate parameter, , that decays exponentially. In the context of the sensor dataset, we would want a spike to occur for , and based on the previous time point. For this application, this could be in a negative or positive direction depending on the sensor, that is, if a kettle sensor is triggered we may not expect the next one for a few hours, however a lounge sensor might be triggered a lot if the household spends most of the day there. Take such that
where is the spike in the estimate. The equation will decay exponentially at a rate governed by where to incorporate positive and negative rates of decay. We express the other sensors similarly,
For the seasonal term, , we would like to acknowledge that routines can vary in their timing. Thus we have allowed 15 minutes either side of the time the previous day (45‐minute window),
The term signifies the same time the day previously, due to having 96 points a day as the data are sampled every 15 minutes. With this formulation of we have,
Now we have defined , we can simplify for ease of parameter estimation. We are able to simplify the link function in the following proposition.
Proposition 1
We can simplify to
Similarly,
For the seasonal term, considering ,
Therefore, and can be expressed as,
For a detailed proof, see Appendix A .
We estimate the parameters using the maximum likelihood.
Proposition 2
Let
be the parameters we wish to estimate. Then we can formulate the log‐likelihood as,
For the full derivation, see Appendix B .
Due to the form of , analytical expressions for are not attainable. Thus to estimate , we use a common numerical optimization method called Broyden‐Fletcher‐Goldfarb‐Shanno (BFGS), see Fletcher. 16 This optimization method and versions of it are widely used in many research areas to find a local minimum of a differentiable function. 17 , 18 , 19 We provide the derivatives for the log‐likelihood, , which given in Appendix C for reference. Due to the logarithms within the gradient function, the iterative optimization algorithms are prone to exploding gradients. This often occurs in neural networks. 20 One way reduce the occurrence of this problem is by using an adaptive step size. We use six different step sizes at each iteration, to reduce the occurrence of this problem for the results in Section 3.
Now we know how to fit the model, we need to perform model selection to decide which and how many terms to include within . In the model set up, we have two parameters for each sensor plus the constant term. However, some sensors (even the regression on the sensor of interest) may not be important for modeling the probability. In the interest of parsimony we use a stepwise regression selection process to select which sensors to include.
We use a greedy forward selection process, adding a sensor to the model if it improves the model for a certain criterion, a common method of fitting regression models. 21 We use BIC as it is more conservative criteria than AIC. This is preferable for our application as we want to reduce the computation time as we are fitting the model to each sensor and across customers. We now provide results on different sensors provided by Howz.
3. HOWZ DATA EXAMPLE
Due to the categorical nature of the data, it is difficult to identify the accuracy of each estimated probability in comparison to 0‐1 sensor triggering. Especially when there is often a low chance of a sensor triggering. Therefore, to assess the validity of the model, we construct point‐wise quantile intervals over a month of data. The data provided by Howz comprises of two months, January and February. We take data from January to estimate the parameters, , using the method described in Section 2. Then, we run the model on February, estimating the one‐step ahead probabilities, using the model parameter estimates from January.
We choose 6 different step sizes, to give a wide range for the adaptive BFGS. For the stopping criterion we set for the th step in the BFGS and set a maximum number of iterations to be performed as 500.
We take the data from February and simulate an online process, calculating the one‐step ahead estimated probability, using the data gathered up until each future time .
| (1) |
| (2) |
| (3) |
The first 96 estimates, the first day, are discarded as burn in. Now for each 15‐minute period in 24 hours, we have around 27 estimated probabilities. While we are aware of the routines present in the data, it would be unrealistic to assume these groups of probabilities were identically distributed, that is, a member of the household follows the same routine at the exact same time each day. Therefore, we use the Poisson binomial distribution to get the quantiles for our estimates. The Poisson binomial distribution is the sum of independent Bernoulli trials which are not enforced to be identically distributed. 22 This provides an interval closer to reality as we cannot assume the different probabilities are identically distributed but they are likely to be similar across days.
Let the estimated probabilities be for and be the time period in the day, that is, . Then the distribution can be expressed as,
The mean and variance are
The package poibin in R 23 provide estimates of the quantiles of this distribution (2.5% and 97.5%). To compare to the observed data, we take the binary time series and for each time period, , sum the occurrences of the sensor of interest over February. If the model is appropriate we would expect the empirical sum to lie within the predicted quantile interval from the model.
We show one example from 2 different households; one with 10 sensors and one with 4 sensors. For more examples, see Appendix D.
The following two households are chosen from a range of households provided by Howz as they show different features. We seek to demonstrate that the method works where households have a small or large number of additional sensors and selected households that show sensors that have some “spikes” rather than a flat average behavior over the day (like household 3 in the Appendix). These are typical examples of households within the wider dataset provided to us.
3.1. Household 1
We present a household monitored by Howz, including 10 sensors: bedroom, lounge, bathroom, hallway, kitchen, fridge door, kettle, front door, back door, and toaster. We model the bedroom sensor, using the model selection process in Section 2. The model selection indicates that the hallway and front door sensors are informative for modeling the bedroom sensor, along with the bedroom sensor itself and the daily seasonal component. The parameter estimates are given in Table 1.
TABLE 1.
Parameter estimates from fitting the model in Section 2 to household 1, bedroom sensor
|
|
|
|
|
|
|
|
|
|
|||||||||
| 3.009 | 1.578 | 0.040 | 0.683 | 0.547 | 0.403 | 0.926 | 0.322 | 0.824 |
Figure 3 depicts the 95 quantile band alongside the number of true events over the 27 days which shows that the method adapts well to the change in the number of events over the day. The quantile band follows the clear peaks at the beginning of the households day and the end, between 9 am and 12 pm and after 8 pm, respectively. It is also able to follow the lower level activity throughout the afternoon. We have 96 points and 1 falls outside the quantile interval indicating that the false positive rate is controlled.
FIGURE 3.

Number of events seen over 27 days (line) with the predicted 95 quantile interval (shaded band) for the bedroom sensor
Table 1 shows that the bedroom sensor has a large positive spike coefficient, meaning that if we see the bedroom sensor in the previous time period we are more likely to see it in the next time period. Conversely, if we see the Front door sensor, we are less likely to see the bedroom sensor triggering in the next 15 minutes.
The computational time for this method is split into three parts: model selection, parameter estimation, and probability estimates. In practice, the model selection and parameter estimation will be run offline. The model selection for the bedroom sensor in this example took 424 seconds (machine with 2.8 GHz processor and 16 GB RAM) without parallelization. The estimation of the parameters after model selection took around 21 seconds with 40 iterations of the adaptive BFGS (where each iteration checked 6 step sizes). Finally it took around 2 seconds to estimate the probabilities for all of February. In practice, these probabilities will be calculated sequentially taking very little computational time.
3.2. Household 2
Consider a different household with four sensors: bedroom, hallway, kettle, and microwave. To test how well this method works with varying amounts of data, this household has fewer sensors so will have vastly fewer covariates (the sensors being triggered). We wish to estimate the quantile interval over a day for the bedroom sensor in February. The model selection returns that kettle is informative with the autoregressive term and the daily seasonal term. The method estimates the parameters as in Table 2.
TABLE 2.
Parameter estimates from fitting the model in Section 2 to household 2, bedroom sensor
|
|
|
|
|
|
|
|
|||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 3.325 | 0.770 | 0.170 | 2.124 | 0.310 | 0.637 | 0.817 |
Using these parameters, we estimate the quantile interval displayed in Figure 4 and see again it follows the peaks seen in the total number of events. We can see this household tends to get up between 6 and 9 am, with the user more likely to be active in the bedroom closer to 9 am. The quantile band is able to follow this noisy upwards trend in the morning and steep decline around 9 am, as well as the large spike around 10 pm for the end of the households day. Again the method is shown to control the false positive rate well with 3 outside the band.
FIGURE 4.

Number of events seen over 27 days (line) with the predicted 95 quantile interval (shaded band) for the bedroom sensor, household 2
It is interesting to note that the constant term, , is negative for all of the examples. This is due to balancing the rate and spike parameters, ensuring that the baseline probability of a sensor being triggered is small if none of the sensors chosen from the model selection have triggered. We also see from Table 2 that the kettle sensor has a negative spike parameter. This tells us, if we see the kettle in the previous 15 minutes we are unlikely to see the bedroom sensor. However for the fridge door and seasonal component, if we see it in the previous 15 minutes we are likely to see it in the next 15 minutes.
Household 2 has a smaller number of sensors, hence the computational time for this example is reduced. It took around 72 seconds for the model selection, 6 seconds for the parameter estimation with 25 iterations and 1 second to calculate the estimated probabilities for February.
4. COMPARISON TO LOGISTIC REGRESSION
Next we compare to the logistic regression to further test the validity of the model. We define the linear predictor, , using the same notation,
The package statsmodel 24 in python provides the estimated one‐step ahead estimated probabilities. These probabilities can be used to form similar quantile intervals as the examples in Section 3.
4.1. Howz data examples
Using these probabilities, we present how many points fall outside the quantile interval for the Howz data examples in Section 3 and Appendix D. Table 3 shows the Bernoulli autoregressive method has considerably fewer points outside the 95 quantile interval for all households. See Appendix D for the other household examples.
TABLE 3.
Comparison between logistic model and the Bernoulli autoregressive model with columns (left to right): Household number, type of sensor being predicted, how many points lie outside of the quantile interval for the logistic regression model and the Bernoulli autoregressive model
| Logistic regression model | Bernoulli autoregressive model | ||
|---|---|---|---|
| Household | Sensor | Outside QI | Outside QI |
| 1 | Bedroom | 9 | 1 |
| 1 | Fridge door | 8 | 2 |
| 2 | Bedroom | 7 | 3 |
| 2 | Kettle | 4 | 0 |
| 2 | Hallway | 12 | 5 |
| 2 | Microwave | 6 | 0 |
| 3 | Kettle | 4 | 0 |
For a more direct visual comparison we present the quantile interval figure for the bedroom sensor from household 2 using the logistic model, in Figure 5. Here it is clear to see the benefits of the Bernoulli autoregressive model, Figure 4, over the logistic model. When there are sharp spikes and dips (in the morning and evening), the logistic regression model struggles to follow the behavior. It also struggles with fast changes in behavior, for example, between 5 and 10 am, the logistic method slowly trends upwards. In comparison, in Figure 4, we can see the method is following the behavior much better. Further, it can be seen that it is able to follow the sharp spikes in behavior well.
FIGURE 5.

Number of events seen over 27 days (line) with the predicted 95 quantile interval (shaded band) for the bedroom sensor, household 2, using logistic regression model
4.2. Simulating from the Bernoulli autoregressive model
Turning now to consider performance in the simulation setting, we can simulate a new sensor to compare our method to the logistic regression. To set up the simulation, we imagine a new sensor () within household 2. Sensor is dependent on the bedroom sensor, the sensor itself and the seasonal component. To simulate from the Bernoulli autoregressive model, we specify the parameters in Table 4.
TABLE 4.
Parameters to simulate sensors
| Model |
|
|
|
|
|
|
|
|||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Bernoulli autoregressive | 3.3 | 0.3 | 0.5 | 0.5 | 0.9 | 0.4 | 0.8 | |||||||
| Logistic | 2.8 | 0.8 | ‐ | 1.2 | ‐ | 1.4 | ‐ |
In context, the positive spike parameters mean we are more likely (to varying degrees) to see sensor triggered if we have seen the bedroom and the sensor itself recently, as well as seeing the sensor at a similar time the day before. Using the bedroom sensor observations from household 2, we can simulate January and February for sensor using our method. We estimate the parameters chosen above on the January data for both models. Similar to Section 3, we then use these model estimates to get the predicted probability estimates for February. We repeat this experiment 500 times to gather the mean number of points outside the quantile intervals.
Figure 6A,B shows one realization from each model, we can see that our method is better able to follow the large spike between 5 am and 1 pm. There are 6 points outside the quantile interval for our method vs 12 in the logistic model. Overall from the simulations, the Bernoulli model has a mean of 2.26 outside the quantile interval whereas the logistic model has a mean of 10.32. This shows that the Bernoulli model is better able to predict the simulated data in this example.
FIGURE 6.

Number of events seen over 27 days (line) with the predicted 95 quantile interval (shaded band) for sensor . (A) Bernoulli autoregressive model and (B) logistic regression model
4.3. Simulating from the logistic model
Using the same set up as Section 4.2, we instead simulate from the logistic regression model using alternative parameters in Table 4 for a new sensor Y. Again we repeat the experiment 500 times.
From the simulations, the Bernoulli model has a mean of 2.97 outside the quantile interval whereas the logistic model has a mean of 2.99. This confirms our method is able to predict the behavior as well as the logistic regression. For an example of what sensor could look like, Figure 7A,B shows that both methods are able to follow the spike just before 10 am and both follow the true number events seen well throughout the day. There are 3 points outside the quantile interval for our method vs 5 in the logistic regression. Overall it is clear to see that our method performs well for our application, when simulating from our model and when using data simulated from the logistic regression model.
FIGURE 7.

Number of events seen over 27 days (line) with the predicted 95 quantile interval (shaded band) for sensor . (A) Bernoulli autoregressive model and (B) logistic regression model
5. CONCLUSION AND FUTURE RESEARCH
In this article, we have presented a method which is able to predict the one step ahead probability of a sensor being triggered given other household sensors. Using model selection, it is able to choose which sensors are of importance to the estimation and provide a good estimate on the Howz data as seen in Section 3. After the initial model selection and parameter estimation, it is computationally efficient enough to predict online or at the end of every day.
Using quantile intervals we have demonstrated the validity of the method in predicting the probability of sensor activation. The number of events seen outside the quantile band are controlled well, with the results able to follow the spikes and dips throughout the 24‐hour period. When comparing to the logistic regression, we see that the method is able to follow the spikes within the data better with fewer outside the quantile intervals. The model adapts well to households with a range of different sensors, as well as households with between 2 and 10 sensors. When simulating data from our model, it is obvious that the Bernoulli autoregression model outperforms the logistic regression. We have also demonstrated the Bernoulli autoregression model is also able to perform as well as the logistic regression when simulating data from a logistic regression model.
The next step would be to adapt this to identify when changes in behavior occur on a 15‐minute/daily basis. Currently, the data presented is assumed to be regular for the household, that is, no significant changes to households routines and behaviors. However, this method can currently provide information and alerts on a monthly scale, when a household is outside the quantile intervals, indicating a potential change. In this article, we have focused on predicting each sensor separately, our approach could also be extended to look at the multivariate fit of the sensors to further consider the interactions between the sensors.
ACKNOWLEDGEMENTS
Jess Gillam is grateful for the support of the Engineering and Physical Sciences Research Council (Grant Number EP/L015692/1) and Howz for financially supporting their PhD. Rebecca Killick is grateful for the support of the Engineering and Physical Sciences Research Council (Grant Numbers EP/T021020/1 and EP/T014105/1).
APPENDIX A. SIMPLIFYING THE LINK FUNCTION
Assuming and to initialize we can simplify to;
Similarly, assuming and ,
| (A1) |
If we set , and consider ,
Therefore, and can be expressed as,
APPENDIX B. DERIVATION OF LOG‐LIKELIHOOD
Given the parameter set, , with from a Bernoulli distribution, we can express the Likelihood as,
We now consider the log‐likelihood in the estimation of , to find
APPENDIX C. GRADIENT OF THE LOG‐LIKELIHOOD
We define the gradient of the log‐likelihood as
Assuming , , and for . We can find the partial derivatives of the log‐likelihood as
For other sensors :
For the seasonal component with :
APPENDIX D. HOWZ DATA EXAMPLES
D.1. Household 1
Taking a different sensor from this household, fridge door, the model selection process identifies the hallway, kettle, and lounge sensors as informative but not the fridge door sensor itself. The estimated parameters are given in Table D1 and the prediction interval in Figure D1.
FIGURE D1.

Number of events seen over 27 days (line) with the predicted 95 quantile interval (shaded band) for the fridge door sensor
TABLE D1.
Parameter estimates from fitting the model in Section 2 to household 1, fridge door sensor
|
|
|
|
|
|
|
|
|
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 3.634 | 0.848 | 0.446 | 1.027 | 0.084 | 0.680 | 0.209 | 0.392 | 0.809 |
Again the method follows the change in number of events well with two events outside the interval. For this sensor, we see the household uses the fridge in the morning, around lunch time and then in the evening with low level usage throughout the day.
D.2. Household 2
Household 2 has four sensors: bedroom, hallway, kettle, and microwave. In Section 3.2, we present the bedroom sensor. We now give the other sensors in household 2, starting with the kettle sensor, which after performing the model selection chooses the hallway and bedroom but not the kettle sensor itself. The estimates of the parameters are given in Table D2. The estimation for the 95 quantile interval for February is given in Figure D2A which shows the household has three clear time periods throughout the day the kettle is used: morning, lunch, and afternoon. The method follows the peaks well even with the reduced amount of data due to the kettle being used infrequently.
FIGURE D2.

Number of events seen over 27 days (line) with the predicted 95 quantile interval (shaded band) for each sensor. Please note that these were modeled individually. (A) Bedroom sensor, (B) kettle sensor, (C) hallway sensor, and (D) microwave sensor
TABLE D2.
Parameter estimates from fitting the model in Section 2 to household 2, kettle sensor
|
|
|
|
|
|
|
|
|||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 4.093 | 0.807 | 0.191 | 0.765 | 0.044 | 0.530 | 0.871 |
Next we give the hallway sensor. The model selections choose the kettle, bedroom, autoregressive term, and seasonal component. The estimates of the parameters are given in Table D3. The estimation for the 95 quantile interval for February is given in Figure D2B which shows the household has behavior throughout the day. The method follows the peaks well, however, struggles a little to capture the midday spike.
TABLE D3.
Parameter estimates from fitting the model in Section 2 to household 2, hallway sensor
|
|
|
|
|
|
|
|
|
|
|||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 3.135 | 1.306 | 0.207 | 0.653 | 0.933 | 0.623 | 0.365 | 0.447 | 0.798 |
Finally, we give the microwave sensor, the model selection chooses the kettle, hallway, and seasonal term (see Table D4 for the parameter estimates). The estimation for the 95 quantile interval for February is given in Figure D2C which shows the household has three clear microwave usage times throughout the day: morning, lunch, and evening. Similar to the kettle sensor, the method follows the peaks well with the reduced amount of data (Table D4).
TABLE D4.
Parameter estimates from fitting the model in Section 2 to household 2, microwave sensor
|
|
|
|
|
|
|
|
|||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 4.263 | 1.057 | 0.705 | 0.889 | 0.244 | 0.836 | 0.801 |
The spike parameters, and , give a good indication of the interactions between the sensors. For example in Table D1, we see the kettle spike parameter is negative, so we are unlikely to see the bedroom sensor if we have just seen the kettle. However, in Table D2, we can see that if we see have seen the bedroom sensor recently we are likely to see the kettle. The kettle and hallway sensors behave differently, looking at the spike parameters in Tables D2 and D3, we can see that seeing the kettle recently means we are likely to see the hallway and vice‐versa. The model selection for the microwave chose the kettle and hallway sensor, with both having positive spike parameters, suggesting seeing the kettle and/or hallway will mean we are more likely to see the microwave. However, neither of those chose the microwave sensor during model selection. While these differing relationships will be unique to the household, it is interesting to see the effect of users interactions with the sensors placed throughout the house.
D.3. Household 3
We present a household which has two sensors: front door and kettle. This household has little information, so is a good test for how the method works on the opposite end of the spectrum from household 1.
We present the results from the kettle sensor. The model selection process selected the kettle itself and the seasonal component. The parameter estimates are given in Table D5.
TABLE D5.
Parameter estimates from fitting the model in Section 2 to household 3, kettle sensor
|
|
|
|
|
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| 2.990 | 0.159 | 0.795 | 0.322 | 0.882 |
Figure D3 shows that even when the sensor is infrequently used and there is little information from the rest of the house, the method is still able to follow the number of true events seen well. Specifically, even with small peaks, the quantile band shifts upwards.
FIGURE D3.

Number of events seen over 27 days (line) with the predicted 95 quantile interval (shaded band) for the kettle sensor
Gillam J, Killick R, Heal J, Norwood B. Modeling and forecasting of at home activity in older adults using passive sensor technology. Statistics in Medicine. 2022;41(23):4629–4646. doi: 10.1002/sim.9529
Funding information Engineering and Physical Sciences Research Council, Grant/Award Numbers: EP/L015692/1; EP/T014105/1; EP/T021020/1
DATA AVAILABILITY STATEMENT
The data that support the findings of this study are available from Howz. Restrictions apply to the availability of these data, which were used under license for this study. Data are available from the industrial authors with the permission of Howz.
REFERENCES
- 1. ONS 2018 . Changing trends in mortality: a cross‐UK comparison, 1981 to 2016; 2018. https://www.ons.gov.uk/peoplepopulationandcommunity/birthsdeathsandmarriages/lifeexpectancies/articles/changingtrendsinmortality/acrossukcomparison1981to2016. Accessed October 13, 2020.
- 2. Age UK 2019 . Later life in the United Kingdom; 2019. https://www.ageuk.org.uk/globalassets/age‐uk/documents/reports‐and‐publications/later_life_uk_factsheet.pdf. Accessed June 25, 2019.
- 3. Dreyer K, Steventon A, Fisher R, Deeny SR. The association between living alone and health care utilisation in older adults: a retrospective cohort study of electronic health records from a London general practice. BMC Geriatr. 2018;18(1):269. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4. ONS 2017 . National population projections: 2016‐based projections, methodology; 2017. https://www.ons.gov.uk/peoplepopulationandcommunity/populationandmigration/populationprojections/compendium/nationalpopulationprojections/2016basedprojections. Accessed December 13, 2020.
- 5. Taylor SAC, Rebecca K, Burr J, Rogerson L. Assessing daily patterns using home activity sensors and within period changepoint detection. J R Stat Soc Ser C Appl Stat. 2021;70(3):579‐595 [Google Scholar]
- 6. Davis RA, Fokianos K, Holan SH, et al. Count time series: a methodological review. J Am Stat Assoc. 2021;116(535):1533‐1547. doi: 10.1080/01621459.2021.1904957 [DOI] [Google Scholar]
- 7. Davis Richard A, Holan Scott H, Lund R, Ravishanker N. Handbook of Discrete‐Valued Time Series. New York: CRC Press; 2016. [Google Scholar]
- 8. Ahmad L, Amir P, Resende FD. Special issue on human behaviour monitoring, interpretation and understanding; 2020.
- 9. Angelo Milani E, Hartmann M, Andrade MG, Ribeiro Diniz CA. A Bernoulli autoregressive moving average model applied to rainfall occurrence. Commun Stat Simul Comput. 2019;48(9):2743‐2756. [Google Scholar]
- 10. Barr DJ. Analyzing “visual world” eyetracking data using multilevel logistic regression. J Memory Lang. 2008;59(4):457‐474. [Google Scholar]
- 11. Engelhard M, Xu H, Carin L, Oliver Jason A, Hallyburton M, McClernon FJ. Predicting smoking events with a time‐varying semi‐parametric Hawkes process model. Proc Mach Learn Res. 2018;85:312. [PMC free article] [PubMed] [Google Scholar]
- 12. Jewell Sean W, Hocking TD, Fearnhead P, Witten Daniela M. Fast nonconvex deconvolution of calcium imaging data. Biostatistics. 2020;21(4):709‐726. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13. Fokianos K, Moysiadis T. Binary time series models driven by a latent process. Econometr Stat. 2017;2:117‐130. [Google Scholar]
- 14. Milani E, Hartmann M, Andrade M, Diniz C. A Bernoulli autoregressive moving average model applied to rainfall occurrence. Commun Stat Simul Comput. 2018;48:1‐17. [Google Scholar]
- 15. Moysiadis T, Fokianos K. On binary and categorical time series models with feedback. J Multivar Anal. 2014;131:209‐228. [Google Scholar]
- 16. Fletcher R. Practical Methods of Optimization. Hoboken: John Wiley & Sons; 1987. [Google Scholar]
- 17. Ge F, Ju Y, Qi Z, Lin Y. Parameter estimation of a Gaussian mixture model for wind power forecast error by Riemann L‐BFGS optimization. IEEE Access. 2018;6:38892‐38899. [Google Scholar]
- 18. Zhang H, Li R, Cai Z, et al. Advanced orthogonal moth flame optimization with Broyden–Fletcher–Goldfarb–Shanno algorithm: framework and real‐world problems. Expert Syst Appl. 2020;159:113617. [Google Scholar]
- 19. Wan Y, Wang Z, Wang P, Zhang C, Duan S, Li N. A comparative study of inversion optimization algorithms for underground metal target detection. IEEE Access. 2020;8:126401‐126413. [Google Scholar]
- 20. Razvan P, Tomas M, Yoshua B. On the difficulty of training recurrent neural networks. Proceedings of the 30th International Conference on Machine Learning Research; Vol. 28, 2013:1310‐1318; PMLR, Atlanta, Georgia, USA. [Google Scholar]
- 21. Draper Norman R, Smith H. Applied Regression Analysis. Hoboken: John Wiley & Sons; 1998. [Google Scholar]
- 22. Wang YH. On the number of successes in independent trials. Stat Sin. 1993;3:295‐312. [Google Scholar]
- 23. Hong Y. On computing the distribution function for the Poisson binomial distribution. Comput Stat Data Anal. 2013;59:41‐51. [Google Scholar]
- 24. Skipper S, Josef P. Statsmodels: econometric and statistical modeling with python. Proceedings of the 9th Python in Science Conference; 2010; Austin, Texas, USA.
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
The data that support the findings of this study are available from Howz. Restrictions apply to the availability of these data, which were used under license for this study. Data are available from the industrial authors with the permission of Howz.
