scieee AI-readable full text Open interactive document viewer

A Behaviour Monitoring System (BMS) for Ambient Assisted Living

Eisa, Samih; Moreira, Adriano

Abstract

Unusual changes in the regular daily mobility routine of an elderly person at home can be an indicator or early symptom of developing health problems. Sensor technology can be utilised to complement the traditional healthcare systems to gain a more detailed view of the daily mobility of a person at home when performing everyday tasks. We hypothesise that data collected from low-cost sensors such as presence and occupancy sensors can be analysed to provide insights on the daily mobility habits of the elderly living alone at home and to detect routine changes. We validate this hypothesis by designing a system that automatically learns the daily room-to-room transitions and permanence habits in each room at each time of the day and generates alarm notifications when deviations are detected. We present an algorithm to process the sensors' data streams and compute sensor-driven features that describe the daily mobility routine of the elderly as part of the developed Behaviour Monitoring System (BMS). We are able to achieve low detection delay with confirmation time that is high enough to convey the detection of a set of common abnormal situations. We illustrate and evaluate BMS with synthetic data, generated by a developed data generator that was designed to mimic different user's mobility profiles at home, and also with a real-life dataset collected from prior research work. Results indicate BMS detects several mobility changes that can be symptoms of common health problems. The proposed system is a useful approach for learning the mobility habits at the home environment, with the potential to detect behaviour changes that occur due to health problems, and therefore, motivating progress toward behaviour monitoring and elder's care.

Full text

sensors Article A Behaviour Monitoring System (BMS) for Ambient Assisted Living Samih Eisa * and Adriano Moreira ID Algoritmi Research Centre, University of Minho, 4800-058 Guimarães, Portugal; [email protected] *Correspondence: [email protected]; Tel.: +351-96-304-8604 Received: 18 July 2017; Accepted: 10 August 2017; Published: 24 August 2017 Abstract: Unusual changes in the regular daily mobility routine of an elderly person at home can be an indicator or early symptom of developing health problems. Sensor technology can be utilised to complement the traditional healthcare systems to gain a more detailed view of the daily mobility of a person at home when performing everyday tasks. We hypothesise that data collected from low-cost sensors such as presence and occupancy sensors can be analysed to provide insights on the daily mobility habits of the elderly living alone at home and to detect routine changes. We validate this hypothesis by designing a system that automatically learns the daily room-to-room transitions and permanence habits in each room at each time of the day and generates alarm notifications when deviations are detected. We present an algorithm to process the sensors’ data streams and compute sensor-driven features that describe the daily mobility routine of the elderly as part of the developed Behaviour Monitoring System (BMS). We are able to achieve low detection delay with confirmation time that is high enough to convey the detection of a set of common abnormal situations. We illustrate and evaluate BMS with synthetic data, generated by a developed data generator that was designed to mimic different user’s mobility profiles at home, and also with a real-life dataset collected from prior research work. Results indicate BMS detects several mobility changes that can be symptoms of common health problems. The proposed system is a useful approach for learning the mobility habits at the home environment, with the potential to detect behaviour changes that occur due to health problems, and therefore, motivating progress toward behaviour monitoring and elder’s care. Keywords: in-house monitoring of older adults; Ambient Assisted Living; learning mobility routine at home; detecting abnormal behaviour 1. Introduction The problem of detecting unusual changes in the daily behaviour of an elderly person who lives independently at home has been widely investigated in the literature [ 1 ]. Solutions typically are sensor-based systems that require the use of wearable and non-wearable sensors to track the daily behaviour and provide responses when deviations are detected. These solutions usually require the intervention of the resident user, for instance, by pushing a button on a pendant or on a wrist watch, or by monitoring the resident using camera-based sensors installed at different locations in the house. However, prior research studies [2] show that wearable and camera-based sensors are not very appreciated by the elderly people due to inconvenience, are computationally complex, and raise privacy issues. The elderly might not feel comfortable wearing sensors all the time and may forget to wear them on some occasions, or may feel they are losing their privacy when being monitored by cameras at home. This reduces the usefulness of these sensors for continuous behavioural monitoring. Even though some recent research studies propose including the sensors in people’s clothes [ 3 ] or utilising the capabilities of smart watches [ 4 ] for behaviour monitoring, these works are still limited Sensors 2017,17, 1946; doi:10.3390/s17091946 www.mdpi.com/journal/sensors Sensors 2017,17, 1946 2 of 24 and not affordable for everyone, besides the limitations of the sensors’ battery energy. Moreover, most of the existing systems entail an explicit annotation or labelling process to be made offline in order to manually configure the typical behaviour of the monitored persons before using the system, which increases the required installation time of these systems and prevents them from being adaptive to small shifts in behaviour that do not necessarily represent unusual behaviour (e.g., seasonal changes). In this research work, we are interested in detecting unusual changes in the regular mobility behaviour of independently living older adults by monitoring their daily navigations between rooms at home. In this paper, we describe how we approach this goal by designing a system that automatically learns the daily room-to-room transitions and permanence habits in each room at each time of the day and generates alarm notifications when deviations are detected. We hypothesise that the relationship between changes in behaviour can be observed using data collected from smart home sensors. Hence, our system uses passive infrared (PIR) motion sensors as primary input to track the mobility of the monitored person and also is designed to be agnostic of the user’s daily mobility profile. No explicit annotation or laborious labelling is required to manually configure the mobility profile of the monitored person or to train the underlying behavioural model. However, our approach is used mainly for monitoring the behaviour of a single user living alone at home, it does not take into account the presence of external people at home when leaning the behavioural model of the monitored person. 2. Monitoring Human Behaviour Monitoring human behaviour is not a trivial task. In fact, there is no single approach that claims to cover all aspects of human behaviour monitoring. However, with the recent advent of sensing and communication technologies, many innovative approaches have emerged and quite promising results have been achieved. In this section, a brief description on the topic of human behaviour monitoring is given, with more focus on technologies used for behaviour monitoring for Ambient Assisted Living (AAL) in smart home environments. 2.1. Monitoring Activities of Daily Living (ADLs) Most of the existing Ambient Assisted Living (AAL) systems for elders’ care exploit the activity that is being performed by the elderly at home as a means for inferring or assessing the functional health status of the elderly. An elderly person remains in good health as long as he or she can carry on his/her daily activities as usual with no significant deviations from the normal daily routine. The Activities of Daily Living (ADLs) in the home environment can be categorised into two main categories: basic ADLs (e.g., personal hygiene, bathing, eating, dressing, and functional mobility) and instrumented ADLs (e.g., cooking and housework) [ 1 , 5 ]. Monitoring ADLs of the older adults allows healthcare providers to continuously monitor the functional status of the elderly, increases their ability to live independently, and allows for early detection of diseases such as Alzheimer’s [ 6 , 7 ], dementia [ 8 – 10 ] and urinary tract infection [ 11 ]. ADLs also can be used to learn daily behaviour patterns such as sleeping habits [12] or movement patterns [13]. 2.1.1. Sensing Technologies In general, there are two main categories of sensors used for monitoring human behaviour: wearable and non-wearable sensors [ 5 ]. The two kinds of sensors have been used extensively in various systems. Wearable sensors used for activity recognition and ADLs classification vary depending on the nature of the required application. They are usually attached to the human body or clothes or can be part of or make use of devices that people usually carry with them, such as wristwatches or cell phones. However, accelerometers are the most commonly used wearable sensors with a variety of applications and usage scenarios. Accelerometers are used to identify the location of a person and differentiate motions (e.g., running, walking, walking upstairs, cycling, etc.) [ 14 ] or to detect falls using acceleration data from wristwatches [ 15 ] or to classify posture of a person by monitoring the tilt of certain parts of the body using the acceleration due to gravity [ 1 ]. Moreover, accelerometers are Sensors 2017,17, 1946 3 of 24 combined with gyroscopes to obtained orientation information [ 16 ] and also with tilt switches in a wrist-worn unit sensor [ 17 ] to capture the user’s behaviour rhythms in day-to-day activities as a way to improve long-term activity recognition. Smartphones are also considered wearable sensors. They are equipped with multiple sensors that provide a wealth of information for different applications (e.g., global positioning system (GPS), cameras, microphones, light, temperature, magnetic compasses, gyroscopes, and accelerometers). In [ 18 ], a framework that exploits the rich contextual information from smartphones (e.g., location, time, apps, call logs, and internal state) is presented. The framework uses the data collected from smartphone sensors to predict our next destination and which app we will be using in the next ten minutes. In [ 19 ], cell phone accelerometers are used for recognising activities such as walking, running, and jogging. In addition, other kinds of wearable sensors also have been used for ADLs monitoring such as magnetic sensors [ 20 ] for monitoring activities and use of portable devices, RFID sensors for detecting interactions with objects in smart homes and recognizing activities like cooking, washing dishes [ 21 ], teeth brushing and watching TV [ 22 ], and inertial sensors [ 23 ] for providing assessment of patient progress after an injury or stroke in ecological rehabilitation environments. Besides the use of wearable sensors to monitor clinical measurements or vital signs such as pulse rate, body humidity and temperature, respiration rate, and blood pressure [ 3 , 24 ]. However, the power consumption requirement and the convenience of constantly wearing wearable sensors are the major challenges that face the use of these sensors for long-term human behaviour monitoring. Non-wearable sensors also are being used for ADLs monitoring [ 25 – 27 ]. Infrared (IR) sensors are the most commonly used non-wearable sensors. They are used for detecting presence, motion or locating people at home. In [ 10 ], passive infrared (PIR) sensors were used for managing dementia and depression diseases. The collected data from PIR sensors were used for the early detection of changes in activity level which was used to reduce the advancements of these diseases and lead to early interventions. Additionally, other non-wearable sensors are also being used for ADLs monitoring such as ultrasonic sensors [ 28 ], pressure sensors [ 29 ], vibration sensors [ 30 ], video-based sensors, low-resolution thermal sensors [ 31 ], wattmeter sensors [ 32 ], water flow sensors [ 33 ], magnetic door switches [ 34 ], and audio or sound sensors [ 35 ]. Table 1presents a comparison of some properties of a set of sensors that were explored for ADLs detection. Table 1. Sensing technologies—Properties comparison. Property PIR Camera Smartphone Smartwatch Location detection Low High High High Presence detection Medium High High High Tracking Single user Multi-users Multi-users Multi-users Resolution Single bit (on/off) High High High Cost Low High High High Privacy concern Low High High High Battery life High NA Medium Low Require data processing Medium High High High Localization accuracy Low (room-level) High High High 2.1.2. Activity Classification Many data mining and machine learning algorithms are used for ADLs classification: support vector machines (SVM) [ 36 , 37 ], random forest [ 38 ], decision trees [ 20 ], fuzzy logic [ 39 ], Bayesian methods [ 40 ], and neural networks [ 37 ]. However, most of these classical machine learning algorithms assume that the input data for the classification step is independent and identically distributed (IID). This assumption does not hold in the case of human behaviour modelling and recognition, what a person is doing at the moment is not independent of what he was doing just before. Hence, more advanced models are required to handle the case when IID does not hold. In [ 5 ], two main categories that consider the dependency assumption are defined: generative approaches (e.g., hidden Sensors 2017,17, 1946 4 of 24 Markov model (HMM) [ 41 ]) and discriminative approaches (e.g., conditional random field (CRF) [ 15 ]). Many algorithms from these two categories have been used widely and successfully in many behaviour modelling and ADLs classification applications. However, a previous intensive supervised training stage is required to estimate their models, which in turns may lead to human bias when labelling and annotating the activities. Statistical (heuristic) approaches are also being used for human behaviour monitoring [ 25 , 42 ]. A system that examines the activity rhythms at home using a statistical predictive algorithm is presented in [ 25 ] to evaluate the behaviour of a resident individual while performing the daily activity routine. In some other cases, simple statistics (heuristics) measures are used as features for a second-level activity classification algorithm, as implemented in [ 43 ], where heuristic measures like means and variances were used as features for neural network models to detect and classify motion activities. 2.2. Monitoring Location Context The location of a person is essential for measuring the activity and assessing the overall behaviour of the person. The term location includes both indoor and outdoor locations. 2.2.1. Indoor Location The indoor location of a person at home gives useful information to build behavioural models for his everyday life. The movements of people inside the home correlate to their daily physical activities and performance of the activities of daily living. For example, frequent visits to the bathroom at night during sleeping time can be an indicator for significant sleep disorder or nocturia disease and may be a sign of developing urinary tract infections disease [ 44 ]. These kinds of unusual sleep disorders can be detected by a localisation system that continuously monitors the location of a person at home. In [ 11 ], an integrated sensor network of PIR motion sensors, bed and chair sensors, was used in apartments of volunteer residents at an ageing in place retirement community. The sensors were used for detecting pulse, respiration rate and bed restlessness which, in turn, were used for detecting urinary tract infections. PIR motion sensors also were used in [ 45 ] to determine the location of an older adult in a smart home environment and to infer the activities of daily living (ADLs) such as sleeping, preparing meals, going out, toileting, and brushing. In [ 46 ], an ultra-wide-band (UWB) location system (UBISENSE) was used for monitoring the elderly people suffering from dementia, and in [ 47 ], an ultrasonic indoor location tracking system also was used for enabling location-aware pervasive service to monitor the older adults at home. 2.2.2. Outdoor Location The outdoor mobility of the elderly is also important for evaluating their quality of life when going outside. Elderly people who have physical mobility limitations tend to have a lower quality of life and involvement in social communities [ 48 ]. In [ 49 ], a disorientation detection method that detects outliers in a person GPS mobility trajectories is presented. A survey for mining GPS data for mobility patterns is presented in [ 50 ]. In this paper, we mainly focus on behaviour monitoring at home environment and, therefore, we will not dive further into behaviour monitoring using outdoor location. We do, however, consider in our system the modelling of the time periods when the persons leave their homes. 2.3. Detection of Abnormal Behaviour Abnormal behaviour refers to finding unexpected behaviours that do not conform to usual behavioural routines [ 51 ]. This topic has been investigated widely and applied in many domains and application scenarios. The detection of abnormal human behaviour depends on the way the human behaviour is defined. Activity recognition is the main approach for abnormal human behaviour detection [ 52 ]. The deviations in the activities of daily living (ADLs) are considered the most common Sensors 2017,17, 1946 5 of 24 way of defining abnormalities in the human behaviour. By monitoring the performed daily activities of a person for a certain time, one can learn and build a model of normal behaviour and then detect deviations. In other work [ 42 ], an abnormal human behaviour was defined as an increase or decrease in the daily physical activity, defined as any body movement produced by skeletal muscles that result in energy expenditure. Deviation or change in the physical activity level, according to historical data, was used as an early symptom of health problems. In general, the abnormalities in the human behaviour are mainly related to the detection of falls [ 53 , 54 ], inactive periods [ 55 , 56 ], abnormal living patterns [57], long-term behaviour changes [24], or abnormal events such as sleeping disorder [58]. 3. Behaviour Monitoring System (BMS) The general architecture of the BMS is graphically represented in Figure 1. A set of sensors is placed at different locations to collect information about a person’s daily mobility routine at the home environment. The collected data from the sensors is forwarded (1) to a home gateway installed inside the house that continuously processes and interprets the data locally, learns the normal routine of the person (Learning Module and Model) and then provides alarm notifications (6) when unusual deviations from the normal routine are detected (Detection Module). Sensors 2017, 17, 1946 5 of 24 of a person for a certain time, one can learn and build a model of normal behaviour and then detect deviations. In other work [42], an abnormal human behaviour was defined as an increase or decrease in the daily physical activity, defined as any body movement produced by skeletal muscles that result in energy expenditure. Deviation or change in the physical activity level, according to historical data, was used as an early symptom of health problems. In general, the abnormalities in the human behaviour are mainly related to the detection of falls [53,54], inactive periods [55,56], abnormal living patterns [57], long-term behaviour changes [24], or abnormal events such as sleeping disorder [58]. 3. Behaviour Monitoring System (BMS) The general architecture of the BMS is graphically represented in Figure 1. A set of sensors is placed at different locations to collect information about a person’s daily mobility routine at the home environment. The collected data from the sensors is forwarded (1) to a home gateway installed inside the house that continuously processes and interprets the data locally, learns the normal routine of the person (Learning Module and Model) and then provides alarm notifications (6) when unusual deviations from the normal routine are detected (Detection Module). Figure 1. BMS system architecture. 3.1. Learning Module The deployed PIR sensors in the home environment transmit signals when motion is detected. These sensor observations are logged in the home gateway and stored in a queue buffer for processing. An observation o is defined in the form o = <ts, sensor_id>, where ts denotes a timestamp indicating the time of detection, and sensor id denotes the identification of the sensor that detected the motion. Each sensor is assumed to be installed in a particular room in the house, and each room must have at least one sensor covering its serving area. The operation of the system relies on the detection of the monitored person within the range of these sensors with room-level localisation accuracy. We hypothesise that a long-term sequence of these observations encodes the mobility routine of the monitored person, and therefore it can be used to build a model that represents the mobility behaviour of that person during normal days. The role of the learning module in our system is to continuously process and interpret the incoming sensor observations and use them to build a realistic model that summarises the mobility behaviour of the monitored person at each location in the house during the hours of the day. The learning module uses a time-based sliding window to process the observations from the queue buffer sequentially. The size of the learning window is pre-configured (e.g., a month) to indicate the sufficient context history to tune the model. The learning window is shifted every week (the shift of one week is related to the structure of the model, as described in Section 3.2.) to update the model on a weekly basis. Every time the model is updated, the oldest Figure 1. BMS system architecture. 3.1. Learning Module The deployed PIR sensors in the home environment transmit signals when motion is detected. These sensor observations are logged in the home gateway and stored in a queue buffer for processing. An observation o is defined in the form o = <ts, sensor_id>, where ts denotes a timestamp indicating the time of detection, and sensor id denotes the identification of the sensor that detected the motion. Each sensor is assumed to be installed in a particular room in the house, and each room must have at least one sensor covering its serving area. The operation of the system relies on the detection of the monitored person within the range of these sensors with room-level localisation accuracy. We hypothesise that a long-term sequence of these observations encodes the mobility routine of the monitored person, and therefore it can be used to build a model that represents the mobility behaviour of that person during normal days. The role of the learning module in our system is to continuously process and interpret the incoming sensor observations and use them to build a realistic model that summarises the mobility behaviour of the monitored person at each location in the house during the hours of the day. The learning module uses a time-based sliding window to process the observations from the queue buffer sequentially. The size of the learning window is pre-configured (e.g., a month) to indicate the sufficient context history to tune the model. The learning window is shifted every week (the shift of one week is related to the structure of the model, as described in Section 3.2.) to update the Sensors 2017,17, 1946 6 of 24 model on a weekly basis. Every time the model is updated, the oldest observations are removed from consideration, while the most recent observations are added. This feature allows the learning process to be performed in an online manner, considering the most recent observations, and also allows the model to adapt to slight shifts in behaviour that are not genuine anomalies (e.g., seasonal changes). 3.2. The Model To model the daily mobility behaviour, we define the concept of Stay to indicate the amount of time a person has spent in a particular room and time. A Stay is obtained from any pair of consecutive sensors observations (o i−1 , o i ). It is defined as the time elapsed between o i−1 and o i at the room associated to o i−1 . The Stay concept is fundamental for the learning module to estimate the dimensions of the underlying behavioural model. As shown in Figure 1, the model is represented by a data structure that separates the mobility behaviour of the monitored person in each day of the week to capture the weekly behaviour. Furthermore, each day is subdivided into equal intervals (e.g., 1-h interval) to capture the daily behaviour. This flexible structure differentiates our work from others where the same behaviour is assumed for all the weekdays. In each interval, the mobility profile of the monitored person is represented by a state transition model, as shown in Figure 2. The states represent the rooms or places in the home while the connections between states represent the possible transitions or movements. This representation is used to model the spatial transition dependencies between the rooms with respect to the layout of the user’s house. As illustrated in Figure 2, there are no transitions between rooms that are not directly linked (e.g., one cannot go directly from the bedroom to the kitchen without going through the living room). By observing the daily movements from sensor observations and then applying the right learning method we can build a reliable model for the daily mobility behaviour of the monitored person and use that model to detect abnormalities. The model can be formulated as Model d (t, ∆ t) to denote the model of day d in the time interval from t to t + ∆ t, d = {Sunday . . . , Saturday}. For example, if ∆ t = 1 h then there will be 24 time intervals and models in each day: ModelSunday (0–1], ModelSunday (1–2], . . . , ModelSaturday (23–24]. Sensors 2017, 17, 1946 6 of 24 observations are removed from consideration, while the most recent observations are added. This feature allows the learning process to be performed in an online manner, considering the most recent observations, and also allows the model to adapt to slight shifts in behaviour that are not genuine anomalies (e.g., seasonal changes). 3.2. The Model To model the daily mobility behaviour, we define the concept of Stay to indicate the amount of time a person has spent in a particular room and time. A Stay is obtained from any pair of consecutive sensors observations (oi-1, oi). It is defined as the time elapsed between oi-1 and oi at the room associated to oi-1. The Stay concept is fundamental for the learning module to estimate the dimensions of the underlying behavioural model. As shown in Figure 1, the model is represented by a data structure that separates the mobility behaviour of the monitored person in each day of the week to capture the weekly behaviour. Furthermore, each day is subdivided into equal intervals (e.g., 1-hour interval) to capture the daily behaviour. This flexible structure differentiates our work from others where the same behaviour is assumed for all the weekdays. In each interval, the mobility profile of the monitored person is represented by a state transition model, as shown in Figure 2. The states represent the rooms or places in the home while the connections between states represent the possible transitions or movements. This representation is used to model the spatial transition dependencies between the rooms with respect to the layout of the user’s house. As illustrated in Figure 2, there are no transitions between rooms that are not directly linked (e.g., one cannot go directly from the bedroom to the kitchen without going through the living room). By observing the daily movements from sensor observations and then applying the right learning method we can build a reliable model for the daily mobility behaviour of the monitored person and use that model to detect abnormalities. The model can be formulated as Modeld (t, ∆t) to denote the model of day d in the time interval from t to t + ∆t, d = {Sunday…, Saturday}. For example, if ∆t = 1 h then there will be 24 time intervals and models in each day: ModelSunday (0–1], ModelSunday (1–2], …, ModelSaturday (23–24]. Figure 2. Room-to-room State Transition Model. A model for a given time interval is defined by a set of dimensions, each dimension has its own unique meaning and contribution in describing the person’s behaviour. The following subsections describe these dimensions. It is worth mentioning that our model considers the person to be staying at the location reported by an observation until a new observation indicates the presence at a different location. This assumption is related to the typical operation of the PIR sensors, since they are usually triggered when they detect movement, and then enter a sleeping mode for some time to preserve the energy of their batteries. Outside Bedroo m Bathroom Kitchen Store Living room Figure 2. Room-to-room State Transition Model. A model for a given time interval is defined by a set of dimensions, each dimension has its own unique meaning and contribution in describing the person’s behaviour. The following subsections describe these dimensions. It is worth mentioning that our model considers the person to be staying at the location reported by an observation until a new observation indicates the presence at a different location. This assumption is related to the typical operation of the PIR sensors, since they are usually Sensors 2017,17, 1946 7 of 24 triggered when they detect movement, and then enter a sleeping mode for some time to preserve the energy of their batteries. 3.2.1. Transition Matrix This is the fundamental dimension of the behavioural model. It is a direct and personalised representation of the daily stay and room-to-room transition behaviour of the monitored person. It shows how likely is to find the monitored person in each room during the different hours of each day of the week, considering the differences in every person’s habits. Each possible transition in the state model (Figure 2) has an associated probability P i,j representing the estimated probability of that transition. All transition probabilities between rooms for a given time interval, including self-transitions, are represented in a 2D matrix. The role of the learning module here is to compute the entries of this transition matrix by processing the entire observations in the learning window, computing the stay durations between any pair of consecutive observations, calculating the total stay time at each room within each time interval, and finally computing the transition probabilities. These steps are implemented as follows. In the examples below, and without loss of generality, we consider ∆t=1h. Step 1: Compute a stay duration A pair of consecutive observations in the queue buffer (o 1 = <ts 1 , sensor_id>, o 2 = <ts 2 , sensor_id>) represents a stay(s) in the model. The duration of this stay is calculated as the time elapsed between these two observations (ts 2− ts 1 ). It may happen that a single stay overlaps with multiple intervals in the model. In this case, we distribute the period among them according to their contributions in the total stay period. For example, a stay duration of 1 h and 30 min that starts at ts 1 = 04:00 and ends at ts 2 = 05:30 is distributed among two intervals. In this case, 1 h will be assigned to the interval (4–5], and the remaining 30 min to the interval (5–6]. Step 2: Compute total stay time The total stay time TSi(t, ∆t) at a room within a given time interval is given by: TSi(t, ∆t)= nsi ∑ k=1 si k(t, ∆t)(1) where s ki (t, ∆ t) denotes the kth stay at room i, and ns i denotes the number of stays at room i within the time interval from t to t + ∆t. Step 3: Compute self-transition, or stay probability The self-transition probability P i,i (t, ∆ t) at a room i in a given time interval represents the probability of finding the person at that room (i) within that time interval (from t to t + ∆ t) and is given by: Pi,i(t, ∆t)=TSi(t, ∆t) ∑r j=1TSj(t, ∆t)=TSi(t, ∆t) ∆t(2) where r denotes the number of rooms in the house, including a virtual room for outside of the house. Step 4: Compute transition probability The transition probability P i,j (t, ∆ t) within a given time interval (from t to t + ∆ t) represents the probability of observing a person’s movement from room ito room jwithin that interval. Given that: r ∑ j=1 Pi,j(t, ∆t)=1 Sensors 2017,17, 1946 8 of 24 Pi,j (t, ∆t)is given by: Pi,j(t, ∆t)=h1−Pi,i(t, ∆t)i×Mi,j(t, ∆t) ∑r k=1 k6=iMi,k(t, ∆t)(3) with j 6= i and M i,j (t, ∆ t) denotes the number of transitions from room i to room j in the time interval from t to t + ∆t. The following is an example of a complete transition matrix for the six-rooms house in Figure 1. The entries of the matrix indicate the calculated room-to-room transition probabilities for a given time interval:            Bedroom Bathroom Livingroom Kitchen Store Outside Bedroom 0.1 0.3 0.4 0.2 0 0 Bathroom 0.3 0.7 0 0 0 0 Livingroom 0.2 0 0.3 0.2 0 0.3 Kitchen 0 0 0.3 0.5 0.2 0 Store 0 0 0 0.9 0.1 0 Outside 0 0 0.8 0 0 0.2            The estimated values of the matrix indicate how probable this person tends to stay or navigate between the rooms of the house. The matrix is not symmetric so that M i,j 6= M j,i and 0 probability indicates no transition was detected. 3.2.2. Global Activity (AG) This is an accumulative dimension to count the total number of observations received within an interval, no matter the rooms in which the sensors were triggered, normalised to the length of the time interval. It models the level of activity within the house, as more activities (movements) translate into more sensors being triggered. The following Equation (4) is used to compute this dimension: AG(t, ∆t)=1 ∆t×#(O(t, ∆t)) (4) where #(O(t, ∆ t)) denotes the cardinality of the received sensors’ observations within the time interval from t to t + ∆t. 3.2.3. Inter-Room Activity (AE) The Inter-room Activity dimension represents the total number of times a sensor was triggered to indicate a transition within an interval, excluding self-transitions. It represents how often a person moves between rooms within a given time interval. This is different from the Global Activity because it captures the transitions among different rooms, while the Global Activity dimension captures the activities that might be within a single room. The following Equation (5) is used to compute this dimension: AE(t, ∆t)=1 ∆t×#(M(t, ∆t)) − r ∑ i=1 #Mi,i(t, ∆t)(5) where # (M (t, ∆ t)) denotes the cardinality of all the transitions within the time interval from t to t + ∆ t and # (Mi,i (t, ∆t)) denotes the cardinality of the self-transitions in room i. Sensors 2017,17, 1946 9 of 24 3.2.4. Intra-Room Activity (AA) The Intra-room Activity dimension represents the total number of self-transitions in a room within an interval, computed as the total number of received observations in a room within an interval. This dimension shows how active the person was in each room. The Intra-room Activity is given by: AAi(t, ∆t)=1 ∆t×#Oi(t, ∆t)(6) where # (O i (t, ∆ t)) denotes the cardinality of the received Observations at room i within the time interval from t to t+ ∆t. 3.2.5. Intra-Room Continuous Stay (CS) This dimension is used to estimate the longest continuous stay at each room in each day of the week. A continuous stay is defined by a sequence of consecutive stays, or a single long stay, that occurs in the same room with no interrupting stay in a different room. The dimension is given by: CSi= u ∑ k=1 d(si k)(7) where d(s ki ) denotes the duration of the k th stay at room i and u denote the number of consecutive stays in room i. In the model, each day has a list of continuous stay for each room. 3.3. Detection Module The detection module is a separate process that runs continuously in real time, and asynchronously from the learning module to produce outputs at regular intervals (e.g., every one minute). This module consists of two main components: the estimator and the automaton. The estimator computes the location likelihood for the detected location of the monitored person and provides a classified binary abnormality state. The structure of the detection module is illustrated in Figure 3. Sensors 2017, 17, 1946 9 of 24 3.2.5. Intra-Room Continuous Stay (CS) This dimension is used to estimate the longest continuous stay at each room in each day of the week. A continuous stay is defined by a sequence of consecutive stays, or a single long stay, that occurs in the same room with no interrupting stay in a different room. The dimension is given by: CSi=d(sk i) u k=1 (7) where d(ski) denotes the duration of the kth stay at room i and u denote the number of consecutive stays in room i. In the model, each day has a list of continuous stay for each room. 3.3. Detection Module The detection module is a separate process that runs continuously in real time, and asynchronously from the learning module to produce outputs at regular intervals (e.g., every one minute). This module consists of two main components: the estimator and the automaton. The estimator computes the location likelihood for the detected location of the monitored person and provides a classified binary abnormality state. The structure of the detection module is illustrated in Figure 3. Figure 3. Detection Module—internal structure. 3.3.1. Estimator In every running cycle of the detection module, the estimator takes the most recent received observation in the queue buffer ok and compares the current stay at the room reported in that observation to what is expected based on the behavioural model created from past observations. This comparison is based on estimating how probable it is to observe the person in that room during this interval and day of the week. For example, consider that, on a Monday at 4:25 a.m., the latest observation ok reported the person as being in the bedroom. Given the behavioural model for the current time interval, the probability of finding the person in that room is 0.97 (Equation (2)) and therefore, the observed behaviour was expected with high probability. We call this probability the Location Likelihood ln. A simplistic way for detecting abnormal behaviour is obtained by just comparing the estimated Location Likelihood ln with a fixed threshold. All estimates higher than the threshold indicate no significant change in the mobility routine, while any drop below the threshold indicates a presence at an abnormal location given the current time and weekday. However, through experimentation, we found that this simple approach is affected by spurious observations and leads to poor performance. Moreover, the fixed threshold approach is also affected by the fact that, in some cases, the most probable location has a probability much lower than 1. Therefore, a more elaborated method is required to improve the reliability of the detection. To deal with this, we added a normalisation step in the probability calculator. The estimated Location Likelihood ln is normalised by the probability of Probability Calculator Smoothin g Classifier Automaton Estimator Ok: latest Observation Location Likelihood Smoothed Location Likelihood Abnormality state Model ln gnhnZn Figure 3. Detection Module—internal structure. 3.3.1. Estimator In every running cycle of the detection module, the estimator takes the most recent received observation in the queue buffer o k and compares the current stay at the room reported in that observation to what is expected based on the behavioural model created from past observations. This comparison is based on estimating how probable it is to observe the person in that room during this interval and day of the week. For example, consider that, on a Monday at 4:25 a.m., the latest observation o k reported the person as being in the bedroom. Given the behavioural model for the current time interval, the probability of finding the person in that room is 0.97 (Equation (2)) and therefore, the observed behaviour was expected with high probability. We call this probability the Location Likelihood ln. Sensors 2017,17, 1946 16 of 24 Sensors 2017, 17, 1946 16 of 24 (a) (b) Figure 9. Anomaly Detection Delay (ADD. (a) Estimator results; (b) Automaton results. The ADD results after applying the rule-based classifier into the detection module show a similar trend, however, there was no significant effect of the threshold value on the obtained results. The ADD results after applying the rule-based classifier were reduced to 8, 10, 12 min for the Profile A, Profile B, and the Aruba datasets, respectively. The results were better because this classifier incorporates other dimensions of the model beside the consideration of the “potential abnormal” state from the automaton, as shown in Figure 6. This allows the detection module to detect the abnormal behaviour much faster, considering the other dimensions to confirm the detection. A summary of the obtained results is presented in Table 8. Table 8. Results Summary. Dataset ADD (min) ACT (Hour) FP (Weekly) hn zn Outn [55] [56] hn zn Outn hn zn Outn [55] [56] Profile A 4 14 8 - - 7 7 7 9.8 2.6 1.8 - - Profile B 6 16 10 - - 7 7 7 9.5 1.5 0.7 - - Aruba 8 18 12 23 200 5 5 5 57 31 11.2 20.67 1.23 5.3. Anomaly Confirmation Time (ACT). The ACT aims to evaluate the ability of the developed system in terms of the time taken to confirm the detection of an abnormal behaviour. Figure 10 illustrates the ACT results on the datasets, showing the results of the estimator and the automaton, respectively. The figure shows the ACT results of detecting the “LessSleeping” abnormal behaviour in all the datasets. The results of the two user profiles of the synthetic dataset were similar and with no variations as the threshold changes, while the results on the Aruba dataset were lower and also showing steady behaviour as the threshold value changes. The ACT results after applying the rulebased classifier as well did not change significantly as the threshold value changes. The results on the two user profiles of the synthetic data show similar results (more than 7 h) while the results on the Aruba dataset show lower confirmation time (5 h on average). However, the obtained ACT results, in general, showed enough time to confirm the detection of the abnormal behaviour. A summary of the obtained results is presented in Table 8. Figure 9. Anomaly Detection Delay (ADD. (a) Estimator results; (b) Automaton results. The ADD results after applying the rule-based classifier into the detection module show a similar trend, however, there was no significant effect of the threshold value on the obtained results. The ADD results after applying the rule-based classifier were reduced to 8, 10, 12 min for the Profile A, Profile B, and the Aruba datasets, respectively. The results were better because this classifier incorporates other dimensions of the model beside the consideration of the “potential abnormal” state from the automaton, as shown in Figure 6. This allows the detection module to detect the abnormal behaviour much faster, considering the other dimensions to confirm the detection. A summary of the obtained results is presented in Table 8. Table 8. Results Summary. Dataset ADD (min) ACT (Hour) FP (Weekly) hnzn Out n[55] [ 56 ] hnzn Out nhnzn Out n[55] [56] Profile A 4 14 8 - - 7 7 7 9.8 2.6 1.8 - - Profile B 6 16 10 - - 7 7 7 9.5 1.5 0.7 - - Aruba 8 18 12 23 200 5 5 5 57 31 11.2 20.67 1.23 5.3. Anomaly Confirmation Time (ACT). The ACT aims to evaluate the ability of the developed system in terms of the time taken to confirm the detection of an abnormal behaviour. Figure 10 illustrates the ACT results on the datasets, showing the results of the estimator and the automaton, respectively. The figure shows the ACT results of detecting the “LessSleeping” abnormal behaviour in all the datasets. The results of the two user profiles of the synthetic dataset were similar and with no variations as the threshold changes, while the results on the Aruba dataset were lower and also showing steady behaviour as the threshold value changes. The ACT results after applying the rule-based classifier as well did not change significantly as the threshold value changes. The results on the two user profiles of the synthetic data show similar results (more than 7 h) while the results on the Aruba dataset show lower confirmation time (5 h on average). However, the obtained ACT results, in general, showed enough time to confirm the detection of the abnormal behaviour. A summary of the obtained results is presented in Table 8. Sensors 2017,17, 1946 17 of 24 Sensors 2017, 17, 1946 17 of 24 (a) (b) Figure 10. Anomaly Confirmation Time (ACT). (a) Estimator results; (b) Automaton results. 5.4. Average Number of False Positive Alerts (FP) Figure 11 illustrates the results of the average weekly false positive alerts detected by the system. The results on the synthetic data show similar behaviour for the two user profiles, as the threshold changes, a low number of false alerts were generated (automaton results), on the other hand, the results on the Aruba dataset show high rates of false alerts. We believe that this high rate of false alerts is due the fact that the Aruba dataset includes days where the monitored person received multiple visits from her relatives during the experiment period. This may affect the accuracy of the learned behavioural model of the monitored person and lead to an increase in the number of false detections. (a) (b) Figure 11. Average of Weekly False Positive alerts. (a) Estimator results; (b) Automaton results. The results after applying the rule-based classifier show also a low rate of false alerts on the synthetic data and a significant reduction on the false alerts results on the Aruba dataset. The rulebased classifier incorporates some of the other dimensions of the behavioural model to provide the final detection results. This enriches the ability of the detection module to differentiate the abnormal behaviours from the normal routine. Figure 10. Anomaly Confirmation Time (ACT). (a) Estimator results; (b) Automaton results. 5.4. Average Number of False Positive Alerts (FP) Figure 11 illustrates the results of the average weekly false positive alerts detected by the system. The results on the synthetic data show similar behaviour for the two user profiles, as the threshold changes, a low number of false alerts were generated (automaton results), on the other hand, the results on the Aruba dataset show high rates of false alerts. We believe that this high rate of false alerts is due the fact that the Aruba dataset includes days where the monitored person received multiple visits from her relatives during the experiment period. This may affect the accuracy of the learned behavioural model of the monitored person and lead to an increase in the number of false detections. Sensors 2017, 17, 1946 17 of 24 (a) (b) Figure 10. Anomaly Confirmation Time (ACT). (a) Estimator results; (b) Automaton results. 5.4. Average Number of False Positive Alerts (FP) Figure 11 illustrates the results of the average weekly false positive alerts detected by the system. The results on the synthetic data show similar behaviour for the two user profiles, as the threshold changes, a low number of false alerts were generated (automaton results), on the other hand, the results on the Aruba dataset show high rates of false alerts. We believe that this high rate of false alerts is due the fact that the Aruba dataset includes days where the monitored person received multiple visits from her relatives during the experiment period. This may affect the accuracy of the learned behavioural model of the monitored person and lead to an increase in the number of false detections. (a) (b) Figure 11. Average of Weekly False Positive alerts. (a) Estimator results; (b) Automaton results. The results after applying the rule-based classifier show also a low rate of false alerts on the synthetic data and a significant reduction on the false alerts results on the Aruba dataset. The rulebased classifier incorporates some of the other dimensions of the behavioural model to provide the final detection results. This enriches the ability of the detection module to differentiate the abnormal behaviours from the normal routine. Figure 11. Average of Weekly False Positive alerts. (a) Estimator results; (b) Automaton results. The results after applying the rule-based classifier show also a low rate of false alerts on the synthetic data and a significant reduction on the false alerts results on the Aruba dataset. The rule-based classifier incorporates some of the other dimensions of the behavioural model to provide the final Sensors 2017,17, 1946 18 of 24 detection results. This enriches the ability of the detection module to differentiate the abnormal behaviours from the normal routine. Table 8presents a summary of the obtained results compared to two approaches from the state of the art [ 55 , 56 ]. These two approaches share some similar objectives with us. The use of simple unobtrusive sensors (PIR) for learning the human behaviour and detecting abnormal behaviour (inactivity periods in this case), the performance evaluation metrics used to assess their systems as well as the dataset used for validation (the Aruba). However, the main distinct difference from our work is that the performance of the developed models in these works depends on prior assumptions about the data distribution of the inactivity periods. In our model, we do not have any prior assumption on the data distributions of the normal movement behaviour of the monitored person, and therefore, our model reduces the modelling settings and provides a more seamless behaviour learning approach. In the table we present the results of the estimator (h n ), automaton (Z n ), and the rule-based classifier (Out n ), respectively, with respect to the defined performance metrics. The presented results in the table were obtained using 0.25 threshold on the datasets of the “LessSleeping” abnormal behaviour. As shown, our approach outperformed the other approaches and achieved the minimum ADD results (8 min on the synthetic data and 12 min on the Aruba dataset), while the other approaches achieved higher ADD results (23 and 200 min). This gives our approach the capability to detect the occurrence of the abnormal behaviour much faster and allows the recipients of the alarms to react quickly to the abnormal event. The number of weekly false alerts generated by our approach on the synthetic data was low (results of Profile B), while on the Aruba dataset our approach generated higher number of false alerts compared to other approaches. This is relatively due to the multiple visits of the relatives that the monitored resident received during the data collection phase of the Aruba dataset. These visits caused the learned model to be a bit fuzzy, not reflecting exactly the daily routine of the monitored resident. We intend, as future work, to include a more reliable method to eliminate these visits as a pre-processing step before learning the daily behaviour of the monitored person. 5.5. Model Adaptation The behaviour model is updated on a weekly basis to incorporate the latest observed behaviour of the monitored person into the model. This allows the model to be adaptive to any behavioural changes that are not necessarily abnormal behaviours. To demonstrate this ability, we performed an experiment in which we merged the two user profiles (profile A and profile B) into a single user profile that simulates a person having a steady behaviour for some time (represented as profile A) and then changes his behaviour and follows different daily profile that extremely varies from the previous one (represented as profile B). To look at the changes during the experiment, we selected the first segment of the day (i.e., hours (0–8]) and focused on the person’s behaviour in the bedroom only. Firstly, the person followed the daily routine of user profile A, which means spending most of the time sleeping in the bedroom during this segment of the day, and then the person changed his/her behaviour and followed the daily routine of the user profile B, which means no sleeping during this segment of the day, and therefore not being detected in the bedroom during this time segment (i.e., hours (0–8]). Figure 12 shows the obtained results of this experiment. Sensors 2017, 17, 1946 18 of 24 Table 8 presents a summary of the obtained results compared to two approaches from the state of the art [55,56]. These two approaches share some similar objectives with us. The use of simple unobtrusive sensors (PIR) for learning the human behaviour and detecting abnormal behaviour (inactivity periods in this case), the performance evaluation metrics used to assess their systems as well as the dataset used for validation (the Aruba). However, the main distinct difference from our work is that the performance of the developed models in these works depends on prior assumptions about the data distribution of the inactivity periods. In our model, we do not have any prior assumption on the data distributions of the normal movement behaviour of the monitored person, and therefore, our model reduces the modelling settings and provides a more seamless behaviour learning approach. In the table we present the results of the estimator (hn), automaton (Zn), and the rule-based classifier (Outn), respectively, with respect to the defined performance metrics. The presented results in the table were obtained using 0.25 threshold on the datasets of the “LessSleeping” abnormal behaviour. As shown, our approach outperformed the other approaches and achieved the minimum ADD results (8 min on the synthetic data and 12 min on the Aruba dataset), while the other approaches achieved higher ADD results (23 and 200 min). This gives our approach the capability to detect the occurrence of the abnormal behaviour much faster and allows the recipients of the alarms to react quickly to the abnormal event. The number of weekly false alerts generated by our approach on the synthetic data was low (results of Profile B), while on the Aruba dataset our approach generated higher number of false alerts compared to other approaches. This is relatively due to the multiple visits of the relatives that the monitored resident received during the data collection phase of the Aruba dataset. These visits caused the learned model to be a bit fuzzy, not reflecting exactly the daily routine of the monitored resident. We intend, as future work, to include a more reliable method to eliminate these visits as a pre-processing step before learning the daily behaviour of the monitored person. 5.5. Model Adaptation The behaviour model is updated on a weekly basis to incorporate the latest observed behaviour of the monitored person into the model. This allows the model to be adaptive to any behavioural changes that are not necessarily abnormal behaviours. To demonstrate this ability, we performed an experiment in which we merged the two user profiles (profile A and profile B) into a single user profile that simulates a person having a steady behaviour for some time (represented as profile A) and then changes his behaviour and follows different daily profile that extremely varies from the previous one (represented as profile B). To look at the changes during the experiment, we selected the first segment of the day (i.e., hours (0–8]) and focused on the person’s behaviour in the bedroom only. Firstly, the person followed the daily routine of user profile A, which means spending most of the time sleeping in the bedroom during this segment of the day, and then the person changed his/her behaviour and followed the daily routine of the user profile B, which means no sleeping during this segment of the day, and therefore not being detected in the bedroom during this time segment (i.e., hours (0–8]). Figure 12 shows the obtained results of this experiment. Figure 12. Model Adaptation. As shown in Figure 12, the learning module was able to estimate the behaviour of the monitored person during the first period of the experiment (profile A), giving high stay probability estimates Figure 12. Model Adaptation. Sensors 2017,17, 1946 19 of 24 As shown in Figure 12, the learning module was able to estimate the behaviour of the monitored person during the first period of the experiment (profile A), giving high stay probability estimates for staying in the bedroom in this segment of the day. Then the behaviour of the person has changed gradually to new user behaviour (profile B). This happened in clear distinguished four steps that represent the length of the learning window (4-weeks window). As the learning window gets shifted weekly, the model is updated and adapted gradually to the new daily routine of the monitored person. This ability shows how the learning module can adapt its internal behaviour model automatically and perform online and continuous learning of the user’s behaviour. 5.6. Classification of Abnormal Behaviour The classification results of the abnormal behaviours are presented in Table 9. The values in the table illustrate the classification results on the pre-defined abnormal behaviours, as described in Table 7, to show how correctly the detection module was able to identify these abnormal behaviours using the rule-based classifier. The results were obtained using 0.25 threshold in the detection module. Table 9. Classification of abnormal behaviour results. Dataset OverSleeping LessSleeping NotBackHome Dead Profile A 96.26% 97.71% 93.80% 70.69% Profile B 69.72% 65.37% 74.72% 23.24% Aruba 81.97% 91.94% 34.71% 83.12% As shown in Table 9, the applied rule-based classifier was able to correctly classify the defined abnormal behaviours with high classification accuracy in most of the cases for the two datasets, except for the “Dead” behaviour on the user Profile B of the synthetic data and the “NotBackHome” behaviour on the Aruba dataset. These abnormal behaviours were a bit tricky and difficult to differentiate. The user Profile B of the synthetic data was designed particularly for a “Nightly” person who usually sleeps during the day and goes outside in midnights. The classification results of the “Dead” behaviour for this profile was mostly misclassified as “LessSleeping”. The presence of the monitored person at any rooms, other than bedroom, during the day would be misclassified and considered as “LessSleeping” behaviour. On the Aruba dataset, the “NotBackHome” behaviour was mostly misclassified as “normal” behaviour. It was difficult for the rule-based classifier to differentiate the time when the monitored person goes outside. These results introduce the need for additional features to be included in the detection module to correctly classify the abnormal behaviours. The classification experiments on the synthetic datasets were repeated three times for each abnormal behaviour and here we present the average of obtained results. 6. Challenges and Issues In this section, we present some of the challenges and issues related to the development of behaviour monitoring systems for Ambient Assisted Living (AAL). These challenges are inspired by prior research studies [5,60,61] and learned while reviewing the related work materials. 6.1. Elderly Acceptance Providing a monitoring service for the elderly poses many challenges. Elderlies, especially unhealthy elderlies, have some limitations in performing tasks. Any service intended for them should pay more attention to the ease of use requirement, avoiding any kinds of complexity or interference that may overwhelm the elderly and reduce their autonomy and independence (ethical issues). This is translated into the selection of sensor modalities used for measuring and monitoring the behaviour, complexity of the system’s settings and assumptions, and service’s transparency and visibility. Social studies [ 62 – 64 ] give insights on the real requirements of the elderly and caregivers Sensors 2017,17, 1946 20 of 24 and also provide solid foundations to support the development of monitoring services for the elderly and help to reduce the lack of confidence in the services. 6.2. Data Collection and Representation The characterization and representation of a behaviour are fundamental for the behaviour monitoring systems. The clear definition of the required behaviour leads to meaningful features extraction and model’s definition and helps to handle behaviours variances. The main challenge here is related to the lack of descriptive knowledge and standards to define the human behaviour in terms of features, heterogeneous sensor data formats, and modelling approaches. Each of the existing systems for behaviour monitoring has their own individual definitions of the behaviour, their own design goals, and modelling approaches, which make the evaluation and comparison of these systems more difficult. Moreover, performing real-world experiments to validate these systems is really difficult. Many studies have been validated using synthetic data [ 24 ], or real data collected for short periods of time in very controlled settings. In addition, anomalous behaviour, in general, are rarely happen and we may need a long time of monitoring to detect cases of abnormal behaviour to validate the developed systems. 6.3. Privacy The privacy issue is a major concern for human behaviour monitoring. The type of sensors used for measuring the behaviour is crucial for the user acceptance of the monitoring service. The trade-off between the privacy and the quality of monitoring is always existing, however, the advancement in sensing technologies may provide compromises. For instance, monitoring systems based on camera sensors are not much appreciated, but currently, we have seen considerable advancement in this trend (e.g., the use of low-resolution cameras or images), which may help to address the privacy concerns. Moreover, the right to access the collected data from the monitoring system is also important, to decide the authorised recipients of the monitoring data as well as the allowed data granularity for the recipients. 6.4. Cost The costs of the sensing technologies used for measuring the human behaviour, their installation, calibration, maintenance, and updates costs have to hit the lowest prices to ensure the wide adoption and deployment of the behaviour monitoring systems among a larger sector of people. 6.5. Service Quality The quality of the human behaviour monitoring service is represented in terms of its accuracy, robustness, adaptability, and scalability. The accuracy of detecting and differentiating the behaviour, despite the complexity of monitored behaviours and the different ways of performing the same behaviour, is still a challenge for many behaviour monitoring systems. Moreover, the adaptability of changing behaviour over time as well as the robustness of the monitoring service with respect to context changes (e.g., handling visitors, caregiver visits and pets’ existence at home while monitoring the elderly). The scalability of the monitoring service to cover a larger sector of people is also criteria to evaluate the quality of the service. 7. Conclusions We have presented a system to automatically learn and build an individual model of the daily mobility behaviour of an older adult living alone at home. The system uses location observations collected from low-cost, non-intrusive PIR motion sensors to track the mobility of the monitored person and detect unusual mobility habits. No prior assumptions have to be made about the typical daily behaviour of the monitored person before applying the system. The system can adapt its internal Sensors 2017,17, 1946 21 of 24 behaviour model to slight shifts in behaviour such as seasonal changes and also to different people having different daily behaviours, such as someone usually sleeping all morning or staying outside the home during the nights. The system provides abnormal alarm notifications in quasi-real-time, in contrast to most of the existing behavioural models and also reduces the rate of wrong detection and false alert notifications. As future work, we intend to apply a method to detect visit days to ignore them during the learning of the model, the days when the monitored person receives visits from relatives or friends. A recent work on this topic can be found in [ 65 ]. In addition, the consideration of false location detection by the PIR sensors (false detection due to, for instance, heated air or other obstacles) also needs more investigation. A method to exclude the wrong location detection will increase the correctness of the learned model. Acknowledgments: The authors would like to thank the reviewers for their reviews, comments, and valuable suggestions. This work has been supported by COMPETE: POCI-01-0145-FEDER-007043 and FCT—Fundação para a Ciência e Tecnologia within the Project Scope: UID/CEC/00319/2013. Author Contributions: Both of the Authors have made substantial contributions to the design of the work, implementation, and the interpretation of the obtained results and they assume full responsibility for the content of the paper. Conflicts of Interest: The authors declare no conflicts of interest. References 1. Lowe, S.A.; ÓLaighin, G. Monitoring human health behaviour in one’s living environment: A technological review. Med. Eng. Phys. 2014,36, 147–168. [CrossRef] [PubMed] 2. Steele, R.; Lo, A.; Secombe, C.; Wong, Y.K. Elderly persons’ perception and acceptance of using wireless sensor networks to assist healthcare. Int. J. Med. Inform. 2009,78, 788–801. [CrossRef] [PubMed] 3. Chen, M.; Ma, Y.; Song, J.; Lai, C.F.; Hu, B. Smart Clothing: Connecting Human with Clouds and Big Data for Sustainable Health Monitoring. Mob. Netw. Appl. 2016,21, 825–845. [CrossRef] 4. Reeder, B.; David, A. Health at Hand: A Systematic Review of Smart Watch Uses for Health and Wellness. J. Biomed. Inform. 2016,63, 269–276. [CrossRef] [PubMed] 5. Debes, C.; Merentitis, A.; Sukhanov, S.; Niessen, M.; Frangiadakis, N.; Bauer, A. Monitoring Activities of Daily Living in Smart Homes. IEEE Signal Process. Mag. 2016,33, 81–94. [CrossRef] 6. Reisberg, B.; Finkel, S.; Overall, J.; Schmidt-Gollas, N.; Kanowski, S.; Lehfeld, H.; Hulla, F.; Sclan, S.G.; Wilms, H.-U.; Heininger, K.; et al. The Alzheimers Disease Activities of Daily Living International Scale (ADL-IS). Int. Psychogeriatr. 2001,13, 163–181. [CrossRef] [PubMed] 7. Aztiria, A.; Farhadi, G.; Aghajan, H. User behavior shift detection in ambient assisted living environments. JMIR mHealth uHealth 2013,1, e6. [CrossRef] [PubMed] 8. Bucks, R.S.; Ashworth, D.L.; Wilcock, G.K.; Siegfried, K. Assessment of Activities of Daily Living in Dementia: Development of the BristolActivities of Daily Living Scale. Age Ageing 1996,26, 113–120. [CrossRef] 9. Iavarone, A.; Milan, G.; Vargas, G.; Lamenza, F.; de Falco, C.; Gallotta, G.; Postiglione, A. Role of functional performance in diagnosis of dementia in elderly people with low educational level living in Southern Italy. Aging Clin. Exp. Res. 2007,19, 104–109. [CrossRef] [PubMed] 10. Galambos, C.; Skubic, M.; Wang, S.; Rantz, M. Management of dementia and depression utilizing in-home passive sensor data. Gerontechnology 2013,11, 457–468. [CrossRef] [PubMed] 11. Rantz, M.J.; Skubic, M.; Koopman, R.J.; Phillips, L.; Alexander, G.L.; Miller, S.J.; Guevara, R.D. Using sensor networks to detect urinary tract infections in older adults. In Proceedings of the 2011 IEEE 13th International Conference on e-Health Networking, Applications and Services (Healthcom), Columbia, MO USA, 13–15 June 2011; pp. 142–149. 12. Eldib, M.; Deboeverie, F.; Philips, W.; Aghajan, H. Sleep analysis for elderly care using a low-resolution visual sensor network. In Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics); Springer International Publishing: Cham, Switzerland, 2015; Volume 9277, pp. 26–38. Sensors 2017,17, 1946 22 of 24 13. Zhang, T.; Fu, W.; Ye, J.; Fischer, M. Learning movement patterns of the occupant in smart home environments: An unsupervised learning approach. J. Ambient Intell. Humaniz. Comput. 2017,8, 133–146. [CrossRef] 14. Khan, A.M.; Lee, Y.K.; Lee, S.Y. Accelerometer’s position free human activity recognition using a hierarchical recognition model. In Proceedings of the 12th IEEE International Conference on e-Health Networking Applications and Services (Healthcom), Lyon, France, 1–3 July 2010; pp. 296–301. 15. Garcia-Ceja, E.; Brena, R.; Carrasco-Jimenez, J.; Garrido, L. Long-Term Activity Recognition from Wristwatch Accelerometer Data. Sensors 2014,14, 22500–22524. [CrossRef] [PubMed] 16. Li, Q.; Stankovic, J.A.; Hanson, M.A.; Barth, A.T.; Lach, J.; Zhou, G. Accurate, fast fall detection using gyroscopes and accelerometer-derived posture information. In Proceedings of the 2009 6th International Workshop on Wearable and Implantable Body Sensor Networks, Berkeley, CA, USA, 3–5 June 2009; pp. 138–143. 17. Van Laerhoven, K.; Kilian, D.; Schiele, B. Using rhythm awareness in long-term activity recognition. In Proceedings of the 12th IEEE International Symposium on Wearable Computers, Pittsburgh, PA, USA, 28 September–1 October 2008; pp. 63–66. 18. Do, T.M.T.; Gatica-Perez, D. Where and what: Using smartphones to predict next locations and applications in daily life. Pervasive Mob. Comput. 2014,12, 79–91. [CrossRef] 19. Kwapisz, J.; Weiss, G.; Moore, S. Activity recognition using cell phone accelerometers. ACM SigKDD Explor. Newsl. 2011,12, 74–82. [CrossRef] 20. Maekawa, T.; Kishino, Y.; Sakurai, Y.; Suyama, T. Activity recognition with hand-worn magnetic sensors. Pers. Ubiquit. Comput. 2013,17, 1085–1094. [CrossRef] 21. Philipose, M.; Fishkin, K.P.; Perkowitz, M.; Patterson, D.J.; Fox, D.; Kautz, H.; Hähnel, D. Inferring activities from interactions with objects. IEEE Pervasive Comput. 2004,3, 50–57. [CrossRef] 22. Buettner, M.; Prasad, R.; Philipose, M.; Wetherall, D. Recognizing Daily Activities with RFID-Based Sensors. In Proceeding of the 11th International Conference on Ubiquitous Computing, Orlando, FL, USA, 30 September–3 October 2009; 2009; pp. 51–60. 23. Sprint, G.; Weeks, D.; Borisov, V.; Cook, D. Wearable sensors in ecological rehabilitation environments. In Proceedings of the 2014 ACM International Joint Conference on Pervasive and Ubiquitous Computing Adjunct Publication (UbiComp 2014 Adjunct), Seattle, WA, USA, 13–17 September 2014; pp. 163–166. 24. Forkan, A.R.M.; Khalil, I.; Tari, Z.; Foufou, S.; Bouras, A. A context-aware approach for long-term behavioural change detection and abnormality prediction in ambient assisted living. Pattern Recognit. 2014 ,48, 628–641. [CrossRef] 25. Virone, G.; Alwan, M.; Dalal, S.; Kell, S.W.; Turner, B.; Stankovic, J.A.; Felder, R. Behavioral patterns of older-adults in assisted living. IEEE Trans. Inf. Technol. Biomed. 2008,12, 387–398. [CrossRef] [PubMed] 26. Tyrer, H.W.; Aud, M.A.; Alexander, G.; Skubic, M.; Rantz, M. Early detection of health changes in older adults. In Proceedings of the 29th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Lyon, France, 23–26 August 2007; pp. 4045–4048. 27. Tapia, E.M.; Intille, S.S.; Larson, K. Activity Recognition in the Home Using Simple and Ubiquitous Sensors. In Proceedings of the International Conference on Pervasive Computing, Linz/Vienna, Austria, 21–23 April 2004; pp. 158–175. 28. Pham, V.T.; Qiu, Q.; Wai, A.A.P.; Biswas, J. Application of ultrasonic sensors in a smart environment. Pervasive Mob. Comput. 2007,3, 180–207. [CrossRef] 29. Lim, J.; Jang, H.; Jang, J.; Park, S.-J. Daily activity recognition system for the elderly using pressure sensors. In Proceedings of the 30th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Vancouver, BC, Canada, 21–24 August 2008; pp. 5188–5191. 30. Hu, L.; Chen, Y.; Wang, S.; Jia, L. A Nonintrusive and single-point infrastructure-mediated sensing approach for water-use activity recognition. In Proceedings of the 2013 IEEE 10th International Conference on High Performance Computing and Communications & 2013 IEEE International Conference on Embedded and Ubiquitous Computing, Zhangjiajie, China, 13–15 November 2013; pp. 2120–2126. 31. Hevesi, P.; Wille, S.; Pirkl, G.; Wehn, N.; Lukowicz, P. Monitoring household activities and user location with a cheap, unobtrusive thermal sensor array. In Proceedings of the 2014 ACM International Joint Conference on Pervasive and Ubiquitous Computing, Seattle, WA, USA, 13–17 September 2014; pp. 141–145. Sensors 2017,17, 1946 23 of 24 32. Hunt, T.D.; Rajendran, D.; Nikora, M.; Bennett, S.; Fendall, A. A Minimally Intrusive Monitoring System That Utilizes Electricity Consumption as a Proxy for Wellbeing. Available online: http://www.citrenz.ac.nz/ jacit/JACIT1802/2014Hunt_Monitoring.pdf (accessed on 11 August 2017). 33. Tsukiyama, T. In-home health monitoring system for solitary elderly. Procedia Comput. Sci. 2015 ,63, 229–235. [CrossRef] 34. Aipperspach, R.; Cohen, E.; Canny, J. Modeling human behavior from simple sensors in the home. In Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics); Springer International Publishing: Cham, Switzerland, 2006; Volume 3968, pp. 337–348. 35. Popescu, M.; Member, S.; Li, Y.; Skubic, M.; Rantz, M. An acoustic fall detector system that uses sound height information to reduce the false alarm rate. Conf. Proc. IEEE Eng. Med. Biol. Soc. 2008 ,2008, 4628–4631. [PubMed] 36. Fleury, A.; Vacher, M.; Noury, N.; Member, S. SVM-based multimodal classification of activities of daily living in health smart homes: Sensors, algorithms, first experimental results. IEEE Trans. Inf. Technol. Biomed. 2010,14, 274–283. [CrossRef] [PubMed] 37. Ordóñez, F.J.; de Toledo, P.; Sanchis, A. Activity recognition using hybrid generative/discriminative models on home environments using binary sensors. Sensors 2013,13, 5460–5477. [PubMed] 38. Kaluža, B.; Gams, M. Analysis of Daily-Living Dynamics. J. Ambient Intell. Smart Environ. 2012,4, 403–413. 39. Medjahed, H.; Istrate, D.; Boudy, J.; Dorizzi, B. Human activities of daily living recognition using fuzzy logic for elderly home monitoring. In Proceedings of the 2009 IEEE 17th International Conference on Fuzzy Systems (FUZZ-IEEE), Jeju Island, Korea, 20–24 August 2009; Volume 33, pp. 2001–2006. 40. Ordóñez, F.J.; de Toledo, P.; Sanchis, A. Sensor-based Bayesian detection of anomalous living patterns in a home setting. Pers. Ubiquitous Comput. 2015,19, 259–270. [CrossRef] 41. Cheng, B.C.; Tsai, Y.A.; Liao, G.T.; Byeon, E.S. HMM machine learning and inference for Activities of Daily Living recognition. J. Supercomput. 2010,54, 29–42. [CrossRef] 42. Candás, J.L.C.; Peláez, V.; López, G.; Fernández, M.Á.; Álvarez, E.; Díaz, G. An automatic data mining method to detect abnormal human behaviour using physical activity measurements. Pervasive Mob. Comput. 2014,15, 228–241. [CrossRef] 43. Zhu, C.; Sheng, W. Motion- and location-based online human daily activity recognition. Pervasive Mob. Comput. 2011,7, 256–269. [CrossRef] 44. Umlauf, M.G.; Chasens, E.R.; Greevy, R.A.; Arnold, J.; Burgio, K.L.; Pillion, D.J. Obstructive sleep apnea, nocturia and polyuria in older adults. Sleep 2004,27, 139–144. [CrossRef] [PubMed] 45. Hoa, X.; Le, B.; di Mascolo, M.; Gouin, A.; Noury, N.; Member, S.; Platform, A. Health Smart Home for elders–A tool for automatic recognition of activities of daily living. In Proceedings of the 30th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), Vancouver, BC, Canada, 20–25 August 2008; pp. 3316–3319. 46. Hanser, F.; Gruenerbl, A.; Rodegast, C.; Lukowicz, P. Design and real life deployment of a pervasive monitoring system for dementia patients. In Proceedings of the 2nd International Conference on Pervasive Computing Technologies for Healthcare (PervasiveHealth 2008), Tampere, Finland, 30 January–1 February 2008; pp. 279–280. 47. Helal, S.; Winkler, B.; Lee, C.; Kaddoura, Y.; Ran, L.; Giraldo, C.; Kuchibhotla, S.; Mann, W. Enabling location-aware pervasive computing applications for the elderly. In Proceedings of the First Ieee International Conference on Pervasive Computing and Communications, Fort Worth, TX, USA, 23–26 March 2003; pp. 531–536. 48. Shoval, N.; Auslander, G.; Cohen-Shalom, K.; Isaacson, M.; Landau, R.; Heinik, J. What can we learn about the mobility of the elderly in the GPS era? J. Transp. Geogr. 2010,18, 603–612. [CrossRef] 49. Lin, Q.; Zhang, D.; Connelly, K.; Ni, H.; Yu, Z.; Zhou, X. Disorientation detection by mining GPS trajectories for cognitively-impaired elders. Pervasive Mob. Comput. 2014,19, 71–85. [CrossRef] 50. Lin, M.; Hsu, W.-J. Mining GPS data for mobility patterns: A survey. Pervasive Mob. Comput. 2014 ,12, 1–16. [CrossRef] 51. Chandola, V. Anomaly Detection: A Survey. ACM Comput. Surv. 2009,41, 15. [CrossRef] Sensors 2017,17, 1946 24 of 24 52. Avci, A.; Bosch, S.; Marin-Perianu, M.; Marin-Perianu, R.; Havinga, P. Activity Recognition Using Inertial Sensing for Healthcare, Wellbeing and Sports Applications: A Survey. In Proceedings of the ARCS 2010: 23rd International Conference on Architecture of Computing Systems, Hannover, Germany, 22–25 February 2010; pp. 1–10. 53. Mubashir, M.; Shao, L.; Seed, L. A survey on fall detection: Principles and approaches. Neurocomputing 2013 , 100, 144–152. [CrossRef] 54. Tao, S.; Kudo, M.; Nonaka, H. Privacy-preserved behavior analysis and fall detection by an infrared ceiling sensor network. Sensors 2012,12, 16920–16936. [CrossRef] [PubMed] 55. Moshtaghi, M.; Zukerman, I.; Russell, R.A. Statistical models for unobtrusively detecting abnormal periods of inactivity in older adults. User Model. User Adapt. Interact. 2015,25, 231–265. [CrossRef] 56. Cuddihy, P.; Weisenberg, J.; Graichen, C.; Ganesh, M. Algorithm to automatically detect abnormally long periods of inactivity in a home. In Proceedings of the 1st ACM SIGMOBILE International Workshop on Systems and Networking Support for Healthcare and Assisted Living Environments, San Juan, Puerto Rico, 11 June 2007; pp. 89–94. 57. Shin, J.H.; Lee, B.; Park, K.S.; Member, S. Detection of abnormal living patterns for elderly living alone using support vector data description. IEEE Trans. Inf. Technol. Biomed. 2011,15, 438–448. [CrossRef] [PubMed] 58. Eldib, M.; Deboeverie, F.; Philips, W.; Aghajan, H. Behavior analysis for elderly care using a network of low-resolution visual sensors. J. Electron. Imag. 2016,25, 041003. [CrossRef] 59. Cook, D.J. Learning Setting-Generalized Activity Models for Smart Spaces. IEEE Intell. Syst. 2012 ,27, 32–38. [CrossRef] [PubMed] 60. Ni, Q.; Hernando, A.G.; de la Cruz, I. The Elderly’s Independent Living in Smart Homes: A Characterization of Activities and Sensing Infrastructure Survey to Facilitate Services Development. Sensors 2015 ,15, 11314. [CrossRef] [PubMed] 61. Khusainov, R.; Azzi, D.; Achumba, I.E.; Bersch, S.D. Real-time human ambulation, activity, physiological monitoring: Taxonomy of issues, techniques, applications, challenges and limitations. Sensors 2013 ,13, 12852–12902. [CrossRef] [PubMed] 62. Larizza, M.; Zukerman, I.; Bohnert, F.; Russell, R.A.; Busija, L.; Albrecht, D.W.; Rees, G. Studies to determine user requirements regarding in-home monitoring systems. In Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics); Springer International Publishing: Cham, Switzerland, 2012; Volume 7379, pp. 139–150. 63. Rialle, V.; Ollivet, C.; Guigui, C.; Hervé, C. What Do family caregivers of Alzheimer’s disease patients desire in smart home technologies? Contrasted results of a wide survey. Methods Inf. Med. 2008 ,47, 63–69. [PubMed] 64. Yared, R.; Abdulrazak, B. Ambient Technology to Assist Elderly People in Indoor Risks. Computers 2016 , 5, 22. [CrossRef] 65. Aicha, A.N.; Englebienne, G.; Kröse, B. Unsupervised visit detection in smart homes. Pervasive Mob. Comput. 2016,34, 157–167. [CrossRef] © 2017 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).