Next Article in Journal
Advanced Deep Learning and Machine Learning Techniques for MRI Brain Tumor Analysis: A Review
Previous Article in Journal
Real-Time Bio-Inspired Polarization Heading Resolution System Based on ZYNQ Heterogeneous Computing
Previous Article in Special Issue
Multi-Junction Solar Module and Supercapacitor Self-Powering Miniaturized Environmental Wireless Sensor Nodes
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Extracting Daily Routines from Raw RSSI Data

by
Raúl Montoliu
1,*,
Emilio Sansano-Sansano
1,
Marina Martínez-García
2,
Sergio Lluva-Plaza
3,
Ana Jiménez-Martín
3,
José M. Villadangos-Carrizo
3 and
Juan Jesús García-Domínguez
3
1
Institute of New Imaging Technologies, Jaume I University, 12071 Castellón de la Plana, Spain
2
Department of Maths, Jaume I University, 12071 Castellón de la Plana, Spain
3
Department of Electronics, Escuela Politecnica Superior, University of Alcala, 28805 Alcalá de Henares, Spain
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(9), 2745; https://doi.org/10.3390/s25092745
Submission received: 10 March 2025 / Revised: 4 April 2025 / Accepted: 24 April 2025 / Published: 26 April 2025
(This article belongs to the Special Issue Indoor Wi-Fi Positioning: Techniques and Systems—2nd Edition)

Abstract

:
Detecting behavioral routines is an important research area with many implications in various practical applications. One such application involves studying the behavior of older adults residing in care homes. This paper proposes a comprehensive methodology for extracting and analyzing the daily routines of older adults in care homes. The methodology utilizes raw data comprising signal strength measurements obtained from smartwatches worn by six volunteers over five months. To establish the basis for estimating daily activities, fingerprint-based localization techniques are employed to track the minute-by-minute location of each volunteer. Subsequently, the activity performed by each volunteer is estimated for each day. Finally, the study estimates the probability of a user undertaking each one of the studied activities on a given weekday.

1. Introduction

Human activity monitoring holds significant importance for older adults, as it enables caregivers and healthcare professionals to ensure their well-being, safety, and independence. By monitoring the activities of older adults, it becomes possible to detect any potential health issues, changes in behavior, or signs of decline. This monitoring can include tracking physical activity, sleep patterns, medication adherence, and daily routines. By analyzing these data, caregivers can identify any deviations or anomalies that may require attention or intervention. For example, monitoring physical activity can help caregivers detect a decrease in mobility, which could indicate the need for additional support or interventions to prevent falls. Moreover, activity monitoring can provide reassurance to family members, knowing that their loved ones are being looked after and that any changes or emergencies will be promptly addressed.
This paper focuses on obtaining the daily routines of older adult volunteers residing in a care home setting. The methodology presented aims to extract valuable insights from input data comprising RSSI (Received Signal Strength Indicator) measurements obtained via smartwatches worn by the volunteers. These measurements correspond to a network of BLE (Bluetooth Low Energy) beacons deployed throughout the care home. The proposed methodology consists of three key steps. Firstly, the localization of each user is estimated minute by minute throughout the day, utilizing an indoor localization fingerprinting-based method. This step provides essential spatial context for analyzing activity patterns. Secondly, a feature vector is created to describe the activities undertaken by each volunteer at different time intervals within a day. This allows for a comprehensive representation of the daily routines. Lastly, the probability of a specific activity being performed by each volunteer is estimated based on the day of the week. This analysis provides insights into the temporal patterns of various activities.
In summary, the most important contributions of this work are as follows:
  • We derive the daily routines of a set of volunteers from RSSI data by applying fingerprinting-based indoor localization and routine extraction techniques.
  • For each user, we obtain the probability of performing a particular activity on a given weekday and compare this prediction with the user’s actual behavior, as observed by their caregivers.
The data utilized for evaluating the proposed approach are sourced from an openly accessible dataset [1], encompassing RSSI signals from a network of BLE beacons deployed in a nursing home. These signals were recorded by a smartwatch worn by six volunteers throughout their daily activities. The dataset spans nearly five months, and the volunteers involved are aged 84 or older. It is crucial to underscore that the data employed are authentic, with no specific directives given to the volunteers regarding their behavior during the data collection period. They simply proceeded with their daily routines. Furthermore, the dataset incorporates supplementary information provided by caregivers regarding the volunteers’ schedules. Despite potential challenges such as missing data on days when caregivers are on holiday or during their free days, the proposed method sufficiently captures the behavioral patterns exhibited by the volunteers over the study period.
The rest of the paper is organized as follows: Section 2 briefly summarizes some of the most relevant papers in the related research field. Section 3 explains all the methods used in this paper to obtain the daily routine. The dataset used is presented in Section 4. Section 5 details the experiments performed and comments on the results obtained. Finally, Section 6 presents the main conclusions arising from this work and offers insight into potential directions for future research.

2. Background and Related Work

Healthcare professionals use the term “activities of daily living” (ADLs) to refer to routine self-care tasks performed at home, outdoors, or in both settings. In elderly care, ADLs are commonly used to assess an individual’s level of functional independence. ADLs are typically represented as a tuple of the following four elements: the activity performed (e.g., cooking, watching TV, sleeping), the start time, the end time, and the location where the activity took place. However, working with all four elements is not always feasible. Identifying the activity performed can be particularly challenging, often requiring manual labeling in ADL datasets. In many studies, including this paper, activities are inferred from the location. For instance, in a dining room, one would expect eating-related activities, while in a gym, physical exercises involving movement are more likely.
Gao, Tan, and Setchi proposed a method for learning ADL daily routines using representations of ADLs as tuples [2]. Their approach employed spatiotemporal neural networks and was evaluated on both a synthetic dataset and the real-world CASAS dataset. The CASAS dataset, published by Washington State University [3], contains long-term sensory data collected from multiple testbeds with real human participants. Widely used in the ambient intelligence field, it is a key resource for ADL-related research. Another notable dataset is ActionSense [4], a multimodal dataset and recording framework focused on wearable sensing in kitchen environments. It provides synchronized data streams and ground truth labels, supporting learning pipelines that analyze human interactions with the physical world during daily kitchen activities.
Previous methods presented in the literature differ in the sensors used to obtain the data and the method applied to estimate the routines. Electricity consumption has been gaining popularity in the last few years. In [5], the authors explored electricity consumption patterns by clustering techniques, as users in the same cluster exhibit similar consumption patterns, represented by their similar daily routines and peak demand periods. Their results demonstrated the substantial heterogeneity in the consumption behavior of the consumers at different times of the day, along with the effect of seasons and non-working days. R. Askari et al. [6] developed a method for detecting meal consumption and physical activity based on blood glucose concentration, measured using continuous glucose monitoring. They used RNN and LSTM neural networks to detect the events that affected blood glucose concentration.
Many papers have used wearable devices, such as mobile phones or smartwatches, as sources of data [7]. Martín et al. [8] presented a system to detect changes in daily routines within a controlled environment, such as a sensorized home, based on an indoor symbolic location system. This system comprised a network of low-cost, easy-to-install Bluetooth Low Energy (BLE) transmitter beacons and a mobile receiver. The user’s symbolic location was estimated using the Received Signal Strength Indicator (RSSI) and the K-Nearest Neighbour (KNN) model, which is merged with the acceleration provided by the receiving mobile device. The location is used to estimate the time spent in each monitored room to infer a time-based routine. Lluva et al. [9] presented a similar approach for monitoring older adults in multi-resident environments, either in residential or nursing homes. The system could calculate room-level location using BLE (Bluetooth Low Energy) technology and/or precise positioning using UWB (Ultra Wide Band) in rooms where specific position-related behaviors needed to be detected.

3. Methods

The proposed method for extracting routines has the following three main steps:
  • Obtain the location of the user each minute of the day;
  • Derive a feature vector for each of the users, providing information about the activities performed on each weekday;
  • Estimate the routines of the user.

3.1. Problem Formulation

In this paper, a routine is defined as the probability of doing a particular activity a i A , with i = [ 1 , , n a ] , n a being the number of different activities, and A being the set of all possible activities, given the weekday w ( w [ M o n d a y , , S u n d a y ] ). For instance, one routine can be P ( a = G o t o g y m | w = M o n d a y ) = 0.8 , i.e., on eighty percent of the Mondays, the user went to the gym.
Let us assume that data have been collected for n u users, and for each user u k ( u k Σ , k = [ 1 , , n u ] and Σ being the set of all users), there are data for n d days. We also define each day belonging to the study as d j ( d j Ω , j = [ 1 , , n d ] and the set of all days belonging to the study as Ω ).

3.2. Indoor Localization

For the indoor localization step, it is assumed that there is a radio map D = { Λ , L } , where Λ = [ λ 1 t r , , λ q t r , , λ n t r t r ] is a set of training fingerprints and L = [ τ 1 t r , , τ q t r , , τ n t r t r ] is the set of their associated locations. Each training fingerprint λ q t r is composed of n b RSSI values λ q t r = [ ρ 1 t r ( q ) , , ρ l t r ( q ) , , ρ n b t r ( q ) ] , with n b being the number of beacons deployed in the scenario. Therefore, ρ l t r ( q ) is the RSSI value obtained for the q-th fingerprint and the l-th beacon.
In this paper, we work at room level, where each element τ q t r of the set L is a room ID. We also assume that the user is wearing a device that is able to obtain RSSI measurements from the beacons deployed in the scenario, and that enables the creation of a testing fingerprint λ t s ( t ) at a particular time moment t. A fingerprint λ m t s can be obtained each minute, for instance, by estimating the mean of all fingerprints obtained for a particular minute m.
Therefore, the indoor localization problem consists of the estimation of the room ID ( τ ^ m t s ) related to the test fingerprint λ m t s obtained at minute m, given the radio map D . Figure 1 shows this process. For this purpose, any supervised classifier can be used. For instance, if a 1-NN classifier is used [10], then the localization of the test fingerprint is the most similar using the Euclidean distance in the feature (fingerprint) space of the ones included in the radio map.
Following the proposed procedure, for each day d j , it is possible to obtain the location of a user u k every minute, using L j u k . Since the location of the user is estimated each minute in a day, the set L j u k has 60 24 = 1440 elements.

3.3. Feature Vector Extraction

This paper aims to investigate the daily routines of older adults residing in a nursing home. In this scenario, routines are quite stable for a long time, and some activities are performed at approximately the same time for all users. For instance, all the users go to breakfast, have lunch, and have dinner at very similar times when the dining room is open. In addition, all of them stay in their rooms after having lunch and until breakfast the next day. Therefore, detecting this kind of activity is not relevant, all users exhibit similar behavior. Taking this into account, we focus on the following n a = 6 activities:
  • A 1 (Room_M): To be in the room in the morning.
  • A 2 (Physically_M): To do an activity that needs some level of physical activity in the morning.
  • A 3 (Passive_M): To do an activity that does not need physical activity in the morning.
  • A 4 (Room_A): To be in the room in the afternoon.
  • A 5 (Physically_A): To do an activity that needs some level of physical activity in the afternoon.
  • A 6 (Passive_A): To do an activity that does not need physical activity in the afternoon.
We define Morning as the period after breakfast and before lunch. We also define Afternoon as the period after lunch and before dinner.
For instance, on the one hand, a Physically_M (Physically_A) activity can include exercising in the gym. On the other hand, a Passive_M (Passive_A) can be to watch the TV in the common TV room, to sit outside for a while on the terrace, garden, or similar.
From the set of all locations estimated every minute for a user u k and on a given day d j , L j u k , the feature vector f j u k can be obtained. Figure 2 shows this process. This vector has two elements. The first one is the weekday, and the second one is a vector of n a binary numbers, indicating if the user stayed in the location (or locations) where the corresponding activity was realized. For instance, if a user stayed in their room in the morning (Room_M), went to the gym after having lunch (Physically_A) and then walked outside (Passive_A), and it is a Monday, the feature vector f j u k obtained for the user u k and for the j-th day of the study will be expressed as follows:
f j u k = { M o n d a y , [ 1 , 0 , 0 , 0 , 1 , 1 ] }
The set F u k is defined as the set with all the feature vectors obtained for the user u k for all days d j Ω of the study.
To determine if a user performed an activity, the following rules are used. Suppose the user stayed more than a defined number of minutes ( n m ) in some of the locations corresponding to a specific activity. In that case, it is assumed that the user performed such an activity. A sliding window of n w minutes is used, with a step of n s minutes.
Figure 3 illustrates this process with an example. It shows a segment of the vector containing the room IDs ( L j u k ) at a specific moment in the morning. In this representation, a value of “1” corresponds to the user’s room (associated with activity A 1 ), “2” represents the gym (linked to activity A 2 ), and “0” indicates that the user’s location could not be determined. A sliding window of size n w = 10 with a step size of n s = 5 is applied to determine whether the user stayed in a specific room. Assuming a threshold of n m = 5 , the first row of the figure shows a case where the user remained in Room 1. The window contains nine occurrences of the value “1”, which exceeds n m , leading to the conclusion that A 1 = 1 . For activity A 2 , which corresponds to staying in the gym (Room 2), the second row of the figure presents a scenario where the number of “2”s within the sliding window is four, which is below n m . Therefore, we cannot confirm that the user performed activity A 2 in this instance. However, the third row demonstrates a situation where the number of “2”s within the window meets or exceeds n m , allowing us to conclude that A 2 = 1 .

3.4. Routine Estimation

Given the sets F u k , the final step is to estimate the probability of performing a particular activity a i on a given weekday w, i.e., P ( a = a i | w = w ) . This can be estimated as follows:
P ( a = a i | w = w ) = j α ( f j u k ( p ) , w ) j β ( d j , w )
where f j u k ( p ) refers to the binary number at the i-th position of the vector f j u k , and α ( f j u k ( i ) , w ) is a function that returns 1 if the p-th position of the vector f j u k is equal to 1 and the day d j is w, and 0 otherwise. The top portion of Equation (2) accounts for the number of times that the weekday is w l and the user performed the i-th activity. β ( d j , w ) is a function returning 1 if the weekday of d j is w, and 0 otherwise. The bottom part of Equation (2) accounts for the number of days in the study being w.
Using the aforementioned equation, a matrix M u k is determined for each user by estimating the probabilities of all activities in A, given all the weekdays. As only working days are considered in this study, and there are n a = 6 activities, matrix M u k has 5 rows and 6 columns.

4. Dataset

In this paper, the latest version (Version 0.4.0) of the dataset previously published in [1] was used; that paper [1] only explained the data from campaigns 1 to 4, but the same protocol was used to obtain campaigns 6 and 7. In particular, the sixth and seventh data campaigns were used in this paper, comprising almost 5 months of data ( n d = 88 ). Unfortunately, the caregivers collaborating with us never worked on weekends. Therefore, there were only data from Monday to Friday. These two campaigns were selected to test our proposal, as they involved the same volunteers and represented the longest possible period available with the consistent participants in this dataset. The data can be accessed by [11]. Table 1 presents information on the n u = 6 volunteers (3 males and 3 females) who participated in this study. In all cases, they were 84 years old or older. They lived in a nursing home, where volunteers F176 and 402E shared a room, while the others each had individual rooms.
The dataset comprised RSSI signals from the BLE beacons installed in the nursing home, measured by a smartwatch worn by the 6 volunteers during their daily routines. A total of 15 BLE beacons were deployed, 1 in each volunteer’s room, 2 in the TV Room, 2 in the dining room, 2 in the gym, 2 on the terrace, and 1 in the therapy room. Figure 4 shows the location of the beacons in the nursing home. The nursing home has 4 floors. The dining room, therapy rooms, and gym are located on the ground floor (0). The TV room and the terrace are located on the first floor. The volunteers’ rooms are distributed on the first, second, and third floors.
The beacons used were model 105 from the company iBKS [12]. Its small size allows it to be deployed in various locations in the environment for monitoring purposes. They can be used with the iBeacon and Eddystone protocols. The manufacturer provides an app to define the configurable parameters. Specifically, they were configured with a transmission period of 200 ms and a transmission power of −4 dBm, all using the iBeacon protocol. Using this configuration, the BLE signal covered all areas within each room, and the battery life was approximately 4 months. The smartwatches worn by the volunteers were the model Smartwatch 3 from Sony, based on the Android Wear 6.0.1 operating system. Their size makes them unobtrusive in the daily activities of the users. The smartwatch firmware was modified to run an app that continuously scanned at the maximum sampling rate allowed by the operating system. They stored the information on a microSD card. The battery life was approximately 10 to 12 h.
No specific directives were given to the volunteers regarding their behavior during the data collection period. They carried on with their daily routines. The same data collection process was followed every day for each volunteer. Every morning, the caregiver placed the smartwatch on the volunteer’s wrist when he/she woke up. The volunteers wore the smartwatch until they returned to their room after dinner, where the caregiver would remove it to charge the battery in the nursing room. Unfortunately, in some cases, the battery may have been discharged before the caregiver was able to remove the smartwatch from the volunteer. On days when the caregiver was not working, no data were obtained.
Activities performed in the gym and the therapy rooms were considered, in this paper, as active ( A 2 and A 5 , see Section 3), as the volunteers participate actively in the performed activities. In contrast, staying in the TV room or going to the terrace were considered passive activities ( A 3 and A 6 , see Section 3), as the volunteers did not perform any physical activity.
The caregivers provided us with an explanation in simple terms about the routine performed by each volunteer. For instance, the following information was provided for user 52EA:
  • He wakes up between 8:00 and 9:30.
  • He has breakfast in the dining room around 9:30. When he finishes breakfast, he goes to his room.
  • He stays in his room (watching TV) until 12:45.
  • He has lunch in the dining room from 12:45 to 13:30. When he finishes lunch, he goes to his room.
  • He stays in his room until 16:20.
  • He goes down to the dining room to have a snack. When he finishes his snack, he goes up to his room.
  • He stays in the room until 19:45.
  • He has dinner in the dining room from 19:45 to 20:30.
  • When he finishes dinner, he goes up to his room.
In some cases, the information provided was not as clear as the one shown for the user 52EA, providing information such as, “Some days, he goes to the gym after having lunch” or “Three days per week, she goes to the therapy room”. Unfortunately, the caregivers did not provide information about the particular days these volunteers performed such activities.

5. Experiments and Results

5.1. Experimental Set Up

According to how the feature vector F u k was defined in Section 3.3 and considering where the beacons were deployed in the dataset used, A 2 : Physically_M and A 5 : Physically_A activities were defined as the one performed in the gym and the therapy room. On the other hand, A 3 : Passive_M and A 6 : Passive_M activities were the ones carried out on the terrace and in the TV room.
The dataset included a radio map produced by the dataset creators by staying several minutes at each location to capture RSSI data. We tested the quality of the radio map by randomly dividing the samples included in the radio map into 70% for training and 30% for validation, obtaining an accuracy of 100% when using a 1NN supervised classifier. Figure 5 shows the confusion matrix obtained in this particular configuration, where 76, 51, 136, 89, 71, and 37 test fingerprints were obtained in the dining room, gym, users’ rooms, TV room, terrace, and therapy room, respectively.
To extract the feature vectors f j u k , we tested several values for the parameters n w , n s , and n m . The best results were obtained for the values n w = 60 , n s = 5 , and n m = 10 , but there were no significant differences when using other values such as n w = 30 , n s = 10 , or n m = 15 . This means that the activity a i is considered complete only if a window of 60 min can be found during which the user stayed at least 10 min in the location of the activity.
To determine whether the routines generated for each user accurately reflect their actual behavior, the ground truth information provided to caregivers in text format was transformed into probabilities through human interpretation. These resulting matrices denoted as G u k are shown in the left part of Table 2 and have the same dimensions as the matrices M u k to be estimated. To compare the corresponding pairs of probability matrices, the Mean Squared Error (MSE) metric was utilized.

5.2. Localization Results

Figure 6 shows the localization results for the six volunteers. On the right of each subfigure, the weekdays are indicated. The x axis represents the hour of the day. Each row of the subfigures represents a day in the life of the volunteer where there are data available. Each of the following colors represents a different location where the user stayed:
  • White: Not possible to estimate the location;
  • Blue: Volunteer’s room;
  • Red: Dining room;
  • Yellow: A place where the volunteer performed a passive activity;
  • Green: A place where the volunteer performed an active activity.
Due to battery limitations, no data were obtained from the late afternoon until the next day. Volunteers always stayed in their rooms during those periods. The results obtained showed that all users returned to the dining room at approximately the same time to have breakfast, lunch, an afternoon snack, and dinner.
According to the results obtained with the proposed approach (see Figure 6a), user 9FE9 tends to perform active activities after having breakfast, although they may perform passive activities on some days. Almost every day, they perform passive activities after having lunch. Some days, they stay in their room for a while. After having dinner, the user tends to participate in active activities. User 9FE9 represents a very active volunteer. In contrast, user 52EA (see Figure 6c) almost always stays in their room. Notably, user 402E (see Figure 6d) had a strong change in routine in the middle of the study period. They used to perform active activities, but there was a point at which the routine shifted to passive ones. This could be due to some health problem of the volunteer or that they decided to pass the time after having lunch on the terrace since, during this period, the weather was good enough to permit this activity, in contrast to the colder days before.
These results demonstrate the effectiveness of our methods in accurately detecting the location of users in a real-world scenario with actual participants. Despite the inherent challenges, such as limited data collection due to battery constraints, the approach successfully identifies key patterns of movement and location transitions throughout the day. This includes detecting periods of activity in shared spaces, such as the dining room, and extended stays in personal rooms. Such precision in localization is very important for applications in real scenarios, where understanding user behavior and routine is essential, particularly in contexts like elderly care, health monitoring, or personalized assistance systems. The ability to work effectively with real people under realistic conditions highlights the practical viability and robustness of the proposed approach.

5.3. Routines Extraction Results

The left part of Table 2 shows how the text files providing explanations about the volunteers’ behavior (as observed by the caregivers) have been transformed into routines, i.e., the matrices G u k . The right part of Table 2 shows the results obtained using the proposed approach, i.e., the matrices M u k . The automatically extracted M u k is expected to be similar to the ground truth information G u k .
The routine estimated for user 02A8 (see Table 3) using the proposed methodology reveals a highly stable pattern in the mornings, consistently showing a strong tendency to stay in the room across all weekdays. In the afternoon, the behavior is also mostly sedentary, with high probabilities of staying in the room, but with slightly more variation. On some days, particularly Monday, Wednesday, and Friday, there is a moderate likelihood of engaging in physical activity, while on Tuesday and Thursday, there is a small chance of performing non-physical (calm) activities. Overall, the routine suggests a low-activity profile, especially in the morning, with limited but slightly more diverse behavior in the afternoon.
The estimated routine for user 9FE9 (see Table 4) shows a high consistency across all weekdays, with high probabilities for A 2 ^ . Additionally, there is some variation in the morning routine, with occasional involvement in non-physical activities. In the afternoon, the user regularly participates in physical and non-physical activities, especially later in the week (Wednesday to Friday), with high probabilities for both A 5 ^ and A 6 ^ . The afternoon routine appears more balanced and active compared to the morning, suggesting a user who maintains a relatively high level of activity throughout the week, especially as the week progresses.
The estimated routine for user 52EA (see Table 5) shows a highly consistent and stable behavior pattern throughout the week. In the morning, the user almost always stays in the room, with very high probabilities for A 1 ^ and negligible likelihood of doing any other activities. In the afternoon, the user also tends to stay in the room, with A 4 ^ consistently having the highest probability across all weekdays. The probabilities for engaging in either physical or calm activities in the afternoon are extremely low or zero, indicating a very sedentary routine both in the morning and afternoon.
User 402E (see Table 6) displays a clear preference for physical activities in the morning, with very high probabilities for A 2 ^ across all weekdays. There is also occasional participation in calm morning activities (e.g., Tuesday and Thursday) but never a preference for staying in the room in the morning. In the afternoon, the routine is more varied but consistently includes physical activity ( A 5 ^ ), often combined with calm activities ( A 6 ^ ). The routine suggests a user with a physically active lifestyle, especially during the early part of the day, and who maintains a high level of engagement in both types of activities in the afternoon.
User 682A (see Table 7) shows a very consistent routine in the morning, where they almost always stay in the room ( A 1 ^ ), with probabilities near or equal to one across all weekdays. There is some variability with minor probabilities for physical and calm activities, but they are never dominant. In the afternoon, the user consistently engages in a calm activity ( A 4 ^ ), again with high probabilities throughout the week. The probabilities for physical activity or staying in the room during the afternoon are very low or zero. Overall, the routine suggests a stable pattern with quiet mornings and structured, calm engagement in the afternoons.
Finally, user F176 (see Table 8) has a routine that is both active and diverse. In the morning, the user predominantly engages in physical activities ( A 2 ^ ), with high probabilities from Monday to Friday. On some days, especially Tuesday and Wednesday, there is also moderate participation in calm activities ( A 3 ^ ), indicating a varied morning pattern. In the afternoon, the user is highly active, with consistent engagement in calm activities ( A 4 ^ ) and physical activities ( A 5 ^ ). Occasionally, other types of activities are also observed (e.g., A 6 ^ on Monday). Overall, F176 follows a rich and balanced routine involving both physical and calm engagement throughout the week.
Figure 7 shows, using bar diagrams, the difference for each user between the estimated probability of a given activity on a weekday and the behavioral information provided by the caregivers. The taller the bar, the higher the discrepancy between the estimated value and the one provided by caregivers. For some users, for instance, user 52EA (see Figure 7c), the probabilities obtained by the proposed approach are very close to the ones derived from the information provided by the caregivers. For some of the other users, for instance, user 682A (see Figure 7e), there is a strong difference in estimating the activity A 6 . This discrepancy can be the result of the following two possible factors: (1) The proposed system was not able to detect this activity since the user performed it at the end of the day when the smartwatch battery was completely drained. (2) The information provided by the caregiver was not entirely accurate, since he/she did not remember the user’s routine well. In this particular case, the localization results shown in Figure 6e suggest that the problem is the first one. Upon analyzing the localization results of user 402E (see Figure 6d), an abrupt change in routine is found, as the user changed from performing active activities after lunch to engaging in passive ones. This change in routine is not reflected in the data provided by the caregivers (see Table 2), which indicate that user 402E always performs active activities after lunch ( A 5 ).
To compare the results obtained for each user with the probabilities obtained from the behavioral descriptions provided by the caregivers, the MSE between the two matrices is estimated and presented in Table 9. Figure 8 shows a boxplot with the values obtained. In general, the proposed method produces a set of probabilities for performing an activity on a given weekday that aligns with the information provided by the caregivers.

5.4. Limitations

The proposed method has several limitations, which are described in the following sections.

5.4.1. Days Without Data

One of the most important limitations of this study is the number of days without data. Unfortunately, there were only data when the caregivers were working, as they were essential to implementing the acquisition protocol. In addition, on some days, the volunteers were not able to perform the required protocol due to different physical or mental health issues. Another possible problem is that when the caregiver is away on a non-working day, resulting in no data being collected for this day and the following one, as no one switched on the smartphone at night to charge the device’s battery. Table 10 shows the number of days and percentage of the total number of days on which data were recorded ( n d = 88 ).

5.4.2. Limitation of Android Wear Operating System

Another problem regarding missing data is that the Android Wear operating system did not allow us to obtain as many RSSI measurements as desired. For instance, if no motion was detected by the smartwatch, no data were obtained. This produced some periods without the possibility of estimating the position of the user.

5.4.3. Smartwatch Battery Life

The smartwatch battery lasted 10–12 h per day. Therefore, on several occasions, the battery life was not enough to obtain data between the afternoon snack and dinner. For this reason, most of the discrepancies detected (see Figure 7) were concentrated in the afternoon period.

5.4.4. Ground Truth Information Provided by Caregivers

Despite the excellent efforts of the caregivers who collaborated in this study—without which this study would not have been possible—they are still human, and they may not remember exactly what the users did every day of the study. Therefore, although we used the information provided by them as the ground truth, in some cases, this might not be entirely accurate. Unfortunately, there is no way to verify this.

6. Conclusions and Future Work

This paper has introduced a methodology for extracting and analyzing the daily routine of a group of volunteers residing in a nursing home from raw Received Signal Strength Indicator (RSSI) data. The volunteers, who were older adults, wore a smartwatch that captured RSSI signals released from a set of Bluetooth Low Energy (BLE) beacons strategically deployed throughout the nursing home. The proposed methodology unfolds through the following three key steps: (a) minute-by-minute localization estimation for each user using an indoor localization fingerprinting-based method, (b) creation of a feature vector elucidating the activities undertaken by each volunteer at various intervals throughout the day, and (c) estimation of the probability of a specific activity being performed by each volunteer based on the day of the week. The calculated probabilities were juxtaposed with those deduced from the caregivers’ insights into the volunteers’ routines. Despite the inherent limitations of this study, the results obtained provide the most pertinent routines of the volunteers.
Subsequent research efforts should concentrate on the following two primary avenues: (1) employing a device with an extended battery life to ensure comprehensive day-long data acquisition, thereby mitigating the caregivers’ involvement in the data acquisition process, and (2) obtaining more detailed information from caregivers to establish a more precise ground truth.

Author Contributions

Writing—Original Draft Preparation, R.M.; Writing—Review and Editing, E.S.-S., M.M.-G., S.L.-P., A.J.-M., J.M.V.-C. and J.J.G.-D.; Conceptualization, R.M. and J.J.G.-D.; Data Curation, S.L.-P., A.J.-M. and J.M.V.-C.; Software, R.M. and S.L.-P.; Methodology and Investigation, all authors. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the Agencia Estatal de Investigación (AEI)/10.13039/501100011033/Fondo Europeo de Desarrollo Regional (FEDER), Unión Europea (UE), under Grants PID2021-1226420B-C44, PID2021-1226420B-C41, and TED2021-130867B-I00.

Institutional Review Board Statement

The study was conducted following the Declaration of Helsinki and approved by the Guadalajara University Hospital’s Institutional Review Board (IRB No. 2018.22.PR, protocol version V.1, dated 21 December 2020). All volunteers signed a written informed consent form.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

Data are accessible by [1].

Acknowledgments

The authors wish to convey their sincere gratitude to the six volunteers whose commitment to this experiment over an extended period, as evidenced in this study, has been indispensable. Additionally, our appreciation extends to the caregivers for their crucial role, without which this study would not have been achievable.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations and Nomenclature

The following abbreviations are used in this manuscript:
Abbreviations
1-NNOne Nearest Neighbor
ADLActivity of Daily Living
BLEBluetooth Low Energy
KNNK Nearest Neighbor
LSTMLong Short-Term Memory
MSEMean Square Error
RNNRecurrent Neural Network
RSSIReceived Signal Strength Indicator
TVTelevision
UWBUltra Wide Band
Nomenclature
Symbols meaning Number of:
n a Number of different activities that a user can perform.
n u Number of users.
n d Number of days.
n t r Number of training fingerprints.
n b Number of beacons deployed in the scenario.
n m Number of minutes that the proposed method must detect that the user stayed in a place
to consider that the user performed the activity related to that place.
n w Number of minutes of the sliding windows used to detect if a user stayed in a place.
n s Number of minutes of the step when displacing the sliding window to detect if a user
stayed in a place.
Symbols for indices:
iIterate across activities.
kIterate across users.
jIterate across days.
qIterate across fingerprints and the corresponding localization.
lIterate across beacons.
mIterate across minutes in a day.
Symbols for sets:
AThe set of all activities.
Σ The set of all users.
Ω The set of all days in the study.
D Radiomap
Λ The set of training fingerprints.
L The set of localisations.
L j u k The set of localisations for the user u k in the day d j .
F u k The set of of features vectors obtained for the user u k along all days in the study (i.e., Ω ).
Symbols for elements of a set:
a i The activity being the i-th element of the set A.
u k The user being the k-th element of the set Σ .
d j The day being the j-th element of the set Ω .
λ q t r The q-th training fingerprint.
τ q t r The localisation of the q-th training fingerprint.
ρ l t r ( q ) RSSI value corresponding to the q-th fingerprint and the l-th beacon.
f j u k Feature vector to describe the activity of the user u k at day d j .
f j u k ( p ) The binary number indicating if the p-th activity was performed at day d J by user u k .
M u k A matrix of 5 rows and n a columns, where each element is the estimated probability for
the user u k to have performed each activity given the weekday.
G u k A matrix of 5 rows and n a columns, where each element is derived from caregivers’ provided
information, probability for the user u k to have performed each activity given the weekday.
Other symbols:
wWeekday, w [ M o n d a y , , S u n d a y ] .
λ m t s Test fingerprint obtained at minute m.
τ ^ m t s Localisation to be estimated at minute m.

References

  1. Lluva-Plaza, S.; Montoliu, R.; Jimenez-Martín, A.; Villadangos-Carrizo, J.M.; Sansano-Sansano, E.; García-Domínguez, J.J. BLE RSSI Database for Analyzing Routines of Community-Dwelling Older Adults. In Proceedings of the 14th International Congress on Ultra Modern Telecommunications and Control Systems and Workshops (ICUMT’22), Valencia, Spain, 11–13 October 2022; pp. 50–55. [Google Scholar] [CrossRef]
  2. Gao, S.; Tan, A.H.; Setchi, R. Learning ADL Daily Routines with Spatiotemporal Neural Networks. IEEE Trans. Knowl. Data Eng. 2021, 33, 143–153. [Google Scholar] [CrossRef]
  3. Cook, D. Learning Setting-Generalized Activity Models for Smart Spaces. IEEE Intell. Syst. 2012, 27, 32–38. [Google Scholar] [CrossRef] [PubMed]
  4. DelPreto, J.; Liu, C.; Luo, Y.; Foshey, M.; Li, Y.; Torralba, A.; Matusik, W.; Rus, D. ActionSense: A Multimodal Dataset and Recording Framework for Human Activities Using Wearable Sensors in a Kitchen Environment. In Advances in Neural Information Processing Systems; Koyejo, S., Mohamed, S., Agarwal, A., Belgrave, D., Cho, K., Oh, A., Eds.; Curran Associates, Inc.: New York, NY, USA, 2022; Volume 35, pp. 13800–13813. [Google Scholar]
  5. Kaur, R.; Gabrijelčič, D. Behavior segmentation of electricity consumption patterns: A cluster analytical approach. Knowl.-Based Syst. 2022, 251, 109236. [Google Scholar] [CrossRef]
  6. Askari, M.R.; Rashid, M.; Sun, X.; Sevil, M.; Shahidehpour, A.; Kawaji, K.; Cinar, A. Meal and Physical Activity Detection from Free-Living Data for Discovering Disturbance Patterns of Glucose Levels in People with Diabetes. BioMedInformatics 2022, 2, 297–317. [Google Scholar] [CrossRef] [PubMed]
  7. Vijayan, V.; Connolly, J.P.; Condell, J.; McKelvey, N.; Gardiner, P. Review of Wearable Devices and Data Collection Considerations for Connected Health. Sensors 2021, 21, 5589. [Google Scholar] [CrossRef] [PubMed]
  8. Martín, A.J.; Gordo, I.M.; Gómez, D.G.; de Villa, S.G.; Plaza, S.L.; Domínguez, J.J.G. BLE-based approach for detecting daily routine changes. In Proceedings of the 2021 IEEE International Symposium on Medical Measurements and Applications (MeMeA), Lausanne, Switzerland, 23–25 June 2021; pp. 1–6. [Google Scholar] [CrossRef]
  9. Lluva-Plaza, S.; García-Domínguez, J.J.; Villadangos-Carrizo, J.M.; Jiménez-Martín, A.; Martínez-Becerra, J. BLE-UWB Indoor Localisation for Behavioural Analysis of Community-Dwelling Older Adults. In Proceedings of the 2024 IEEE International Symposium on Medical Measurements and Applications (MeMeA), Eindhoven, The Netherlands, 26–28 July 2024. [Google Scholar] [CrossRef]
  10. Cover, T.; Hart, P. Nearest Neighbor Pattern Classification. IEEE Trans. Inf. Theory 1967, 13, 21–27. [Google Scholar] [CrossRef]
  11. Plaza, S.L.; Colás, R.M.; Martín, A.J.; Carrizo, J.M.V.; Sansano-Sansano, E.; Domínguez, J.J.G. BLE RSSI Database for Analyzing Routines of Community-Dwelling Older Adults. In Proceedings of the 2022 14th International Congress on Ultra Modern Telecommunications and Control Systems and Workshops (ICUMT), Valencia, Spain, 11–13 October 2022. [Google Scholar] [CrossRef]
  12. Accent Systems iBKS 105. Available online: https://accent-systems.com/product/ibks-105/ (accessed on 23 April 2025).
Figure 1. Method for obtaining the volunteer’s location every minute τ m t s , given the fingerprint obtained for this minute λ m t s .
Figure 1. Method for obtaining the volunteer’s location every minute τ m t s , given the fingerprint obtained for this minute λ m t s .
Sensors 25 02745 g001
Figure 2. From the set of locations obtained every minute for each user, a feature vector is obtained.
Figure 2. From the set of locations obtained every minute for each user, a feature vector is obtained.
Sensors 25 02745 g002
Figure 3. An illustrative example of how to obtain feature vectors f j u k from location ones L j u k . In this example, n w = 10 (blue boxes) and n s = 5 . See text for explanation.
Figure 3. An illustrative example of how to obtain feature vectors f j u k from location ones L j u k . In this example, n w = 10 (blue boxes) and n s = 5 . See text for explanation.
Sensors 25 02745 g003
Figure 4. Locations of beacons deployed in nursing home. Left: ground floor (0), right: first floor.
Figure 4. Locations of beacons deployed in nursing home. Left: ground floor (0), right: first floor.
Sensors 25 02745 g004
Figure 5. Confusion matrix obtained by evaluating accuracy of test samples used to assess performance of the localization system.
Figure 5. Confusion matrix obtained by evaluating accuracy of test samples used to assess performance of the localization system.
Sensors 25 02745 g005
Figure 6. Localization obtained for six volunteers. (a) User 02A8; (b). User 9FE9; (c) User 52EA; (d) User 402E; (e) User 682A; (f) User F176.
Figure 6. Localization obtained for six volunteers. (a) User 02A8; (b). User 9FE9; (c) User 52EA; (d) User 402E; (e) User 682A; (f) User F176.
Sensors 25 02745 g006
Figure 7. Differences between estimated probability of a given activity on a weekday and behavioral information provided by caregivers of different users. (a) User 02A8; (b) User 9FE9; (c) User 52EA; (d) User 402E; (e) User 682A; (f) User F176.
Figure 7. Differences between estimated probability of a given activity on a weekday and behavioral information provided by caregivers of different users. (a) User 02A8; (b) User 9FE9; (c) User 52EA; (d) User 402E; (e) User 682A; (f) User F176.
Sensors 25 02745 g007
Figure 8. Boxplot of MSE between matrices G u k and M u k .
Figure 8. Boxplot of MSE between matrices G u k and M u k .
Sensors 25 02745 g008
Table 1. Volunteers’ information. 1: Walks with a walking frame. 2: Walks without technical assistance. 3: Walks with a cane. 4: Slight dependency. 5: Does not climb stairs. 6: Uses lift. 7: Walks up and down stairs.
Table 1. Volunteers’ information. 1: Walks with a walking frame. 2: Walks without technical assistance. 3: Walks with a cane. 4: Slight dependency. 5: Does not climb stairs. 6: Uses lift. 7: Walks up and down stairs.
IDAgeGenderHeightWeightObservations
52EA85M174831, 4, 5, 6
F17685F165642, 4, 6
402E84F172752, 4, 6
9FE986F159721, 4, 6
682A84M160632, 4, 6
02A889M156653, 4, 7
Table 2. Left, probabilities of performing the different activities ( A i ) according to the information provided by caregivers ( G u k ). Right, estimated probabilities ( A i ^ ) obtained using the proposed methodology ( M u k ).
Table 2. Left, probabilities of performing the different activities ( A i ) according to the information provided by caregivers ( G u k ). Right, estimated probabilities ( A i ^ ) obtained using the proposed methodology ( M u k ).
VolunteerWeekday A 1 A 2 A 3 A 4 A 5 A 6 A 1 ^ A 2 ^ A 3 ^ A 4 ^ A 5 ^ A 6 ^
02A8Monday10010.60.60.9100.090.820.730
Tuesday10010.60.60.8600.140.8600.43
Wednesday10010.60.6100.080.920.580.08
Thursday10010.60.60.9000.800.3
Friday10010.60.60.9100.0910.550.18
9FE9Monday010.2010.20.070.930.140.290.930.93
Tuesday010.2010.20.150.920.620.310.620.85
Wednesday010.2010.20.080.920.460.540.541
Thursday010.2010.200.920.080.310.770.92
Friday010.2010.200.850.230.230.771
52EAMonday1001000.930.1400.7900
Tuesday10010010.1100.890.110
Wednesday10010010.0800.9200
Thursday1001000.8300100
Friday1001000.92000.8300
402EMonday0100110.0710.070.1310.53
Tuesday0100110.080.830.920.250.920.58
Wednesday0100110.140.570.50.210.930.57
Thursday01001100.930.570.360.930.57
Friday0100110.10.90.30.310.7
682AMonday10.5010.06110.330.080.7500
Tuesday110.510.06110.910.180.6400
Wednesday10.5010.06110.090.450.7300
Thursday10.5010.0610.820.270.180.820.090
Friday10.5010.06110.500.600.1
F176Monday0110.510.50.080.830.0810.830.25
Tuesday010.50.510.50.270.910.730.820.360.64
Wednesday0110.510.50.330.920.420.670.330.33
Thursday0110.510.50.330.920.250.920.420.83
Friday0110.510.50.550.820.450.820.730.64
Table 3. Estimated routine for user 02A8 based on dominant activities.
Table 3. Estimated routine for user 02A8 based on dominant activities.
WeekdayMorning ActivityAfternoon Activity
MondayStay in the roomStay in the room, possible physical activity
TuesdayStay in the roomStay in the room, possible calm activity
WednesdayStay in the roomStay in the room, possible physical activity
ThursdayStay in the roomStay in the room, possible calm activity
FridayStay in the roomStay in the room, possible physical activity
Table 4. Estimated routine for user 9FE9 based on dominant activities.
Table 4. Estimated routine for user 9FE9 based on dominant activities.
WeekdayMorning ActivityAfternoon Activity
MondayPhysical activityPhysical and calm activity
TuesdayPhysical activity, some calmCalm and physical activity
WednesdayPhysical activity, some calmCalm and physical activity
ThursdayPhysical activityPhysical and calm activity
FridayPhysical activityCalm and physical activity
Table 5. Estimated routine for user 52EA based on dominant activities.
Table 5. Estimated routine for user 52EA based on dominant activities.
WeekdayMorning ActivityAfternoon Activity
MondayStay in the roomStay in the room
TuesdayStay in the roomStay in the room
WednesdayStay in the roomStay in the room
ThursdayStay in the roomStay in the room
FridayStay in the roomStay in the room
Table 6. Estimated routine for user 402E based on dominant activities.
Table 6. Estimated routine for user 402E based on dominant activities.
WeekdayMorning ActivityAfternoon Activity
MondayPhysical activityPhysical activity, some calm activity
TuesdayPhysical and calm activityPhysical and calm activity
WednesdayPhysical activityPhysical and calm activity
ThursdayPhysical activityPhysical and calm activity
FridayPhysical activityPhysical and calm activity
Table 7. Estimated routine for user 682A based on dominant activities.
Table 7. Estimated routine for user 682A based on dominant activities.
WeekdayMorning ActivityAfternoon Activity
MondayStay in the roomStay in the room
TuesdayStay in the room, Physical activityStay in the room
WednesdayStay in the room, some calm activityStay in the room
ThursdayStay in the roomStay in the room
FridayStay in the roomStay in the room
Table 8. Estimated routine for user F176 based on dominant activities. Act., Phy., and SiR stand for “Activity”, “Physical”, and ”Stay in the room”, respectively.
Table 8. Estimated routine for user F176 based on dominant activities. Act., Phy., and SiR stand for “Activity”, “Physical”, and ”Stay in the room”, respectively.
WeekdayMorning ActivityAfternoon Activity
MondayPhy. act.SiR, Phy. act., some calm act.
TuesdayPhy. and calm act.SiR, calm and some Phy. act.
WednesdayPhy. and some calm act.SiR, some calm and some Phy. act.
ThursdayPhy. act.SiR, calm and some Phy. act.
FridayPhy. and calm act.SiR, calm and Phy. act.
Table 9. MSE between matrices G u k and M u k .
Table 9. MSE between matrices G u k and M u k .
VolunteerMSE
02A80.05
402E0.12
52EA0.01
682A0.18
9FE90.12
F1760.19
Table 10. Number of days with data of each user.
Table 10. Number of days with data of each user.
VolunteerDays%
02A851 58 %
9FE966 66 %
52EA60 60 %
402E65 65 %
682A55 55 %
F17658 58 %
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Montoliu, R.; Sansano-Sansano, E.; Martínez-García, M.; Lluva-Plaza, S.; Jiménez-Martín, A.; Villadangos-Carrizo, J.M.; García-Domínguez, J.J. Extracting Daily Routines from Raw RSSI Data. Sensors 2025, 25, 2745. https://doi.org/10.3390/s25092745

AMA Style

Montoliu R, Sansano-Sansano E, Martínez-García M, Lluva-Plaza S, Jiménez-Martín A, Villadangos-Carrizo JM, García-Domínguez JJ. Extracting Daily Routines from Raw RSSI Data. Sensors. 2025; 25(9):2745. https://doi.org/10.3390/s25092745

Chicago/Turabian Style

Montoliu, Raúl, Emilio Sansano-Sansano, Marina Martínez-García, Sergio Lluva-Plaza, Ana Jiménez-Martín, José M. Villadangos-Carrizo, and Juan Jesús García-Domínguez. 2025. "Extracting Daily Routines from Raw RSSI Data" Sensors 25, no. 9: 2745. https://doi.org/10.3390/s25092745

APA Style

Montoliu, R., Sansano-Sansano, E., Martínez-García, M., Lluva-Plaza, S., Jiménez-Martín, A., Villadangos-Carrizo, J. M., & García-Domínguez, J. J. (2025). Extracting Daily Routines from Raw RSSI Data. Sensors, 25(9), 2745. https://doi.org/10.3390/s25092745

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop