scieee AI-readable full text Open interactive document viewer

Indoor Positioning for Monitoring Older Adults at Home: Wi-Fi and BLE Technologies in Real Scenarios

Montoliu Colás, Raul; Sansano-Sansano, Emilio; Gascó, Arturo; Belmonte-Fernández, Óscar; Caballer Miedes, Antonio

Abstract

This paper presents our experience on a real case of applying an indoor localization system formonitoringolderadultsintheirownhomes. Sincethesystemisdesignedtobeusedbyrealusers, therearemanysituationsthatcannotbecontrolledbysystemdevelopersandcanbeasourceoferrors. This paper presents some of the problems that arise when real non-expert users use localization systems and discusses some strategies to deal with such situations. Two technologies were tested to provide indoor localization: Wi-Fi and Bluetooth Low Energy. The results shown in the paper suggest that the Bluetooth Low Energy based one is preferable in the proposed task.

Full text

electronics Article Indoor Positioning for Monitoring Older Adults at Home: Wi-Fi and BLE Technologies in Real Scenarios Raul Montoliu 1,2,* , Emilio Sansano 1,3, Arturo Gascó 1and Oscar Belmonte 1,4 and Antonio Caballer 1,5 1Institute of New Imaging Technologies, Jaume I University, 12071 Castellón, Spain; [email protected] (E.S.); [email protected] (A.G.); [email protected] (O.B.); [email protected] (A.C.) 2Department of Computer Science and Engineering, Jaume I University, 12071 Castellón, Spain 3Department Engineering of Industrial Systems and Design, Jaume I University, 12071 Castellón, Spain 4Department of Computer Languages and Systems, Jaume I University, 12071 Castellón, Spain 5Department of Developmental Educational and Social Psychology and Methodology, Jaume I University, 12071 Castellón, Spain *Correspondence: [email protected] Received: 21 March 2020; Accepted: 27 April 2020; Published: 28 April 2020   Abstract: This paper presents our experience on a real case of applying an indoor localization system for monitoring older adults in their own homes. Since the system is designed to be used by real users, there are many situations that cannot be controlled by system developers and can be a source of errors. This paper presents some of the problems that arise when real non-expert users use localization systems and discusses some strategies to deal with such situations. Two technologies were tested to provide indoor localization: Wi-Fi and Bluetooth Low Energy. The results shown in the paper suggest that the Bluetooth Low Energy based one is preferable in the proposed task. Keywords: indoor localization; Wi-Fi; bluetooth low energy; machine learning; older adults healthcare 1. Introduction In the last years, many Indoor Positioning Systems (IPSs) have been presented, most of them relying on Wi-Fi fingerprinting-based technologies [ 1 , 2 ]. In most cases, the experiments have been performed in a very controlled scenario and by expert users, for instance, the developers of the IPS. In these scenarios, the proposed algorithms usually perform quite well [ 3 , 4 ]. Unfortunately, in real-world applications, the conditions are largely variable and there are many possible sources of errors that can drastically reduce the expected accuracy of the IPS [ 5 ]. One of the most challenging scenarios is when real users, instead of expert ones, test the developed IPS. This paper presents our experience in the development of an IPS to be used for monitoring people at their own houses. In particular, this indoor localization method is part of a bigger project called Senior Monitoring, where the main aim is to monitor older adults to study behavioral patterns as a tool for early detection of some degenerative diseases such as Alzheimer’s disease [ 6 – 9 ]. The older adults wear a smartwatch to collect samples using the sensors included in the device. This monitoring system may be useful to monitor the behavior of older persons who live alone while at home and it may be used to evaluate the gait speed or motor changes for predicting mild cognitive impairment. Additionally, the system may be useful for healthcare professionals, formal and informal caregivers, and families, especially in an aging society in which the number of older persons and people living alone is increasing. The first part of the experiments presented in this paper was conducted in real scenarios where the conditions were not controlled by the researchers. Seventeen volunteers, mostly older adults, tested Electronics 2020,9, 728; doi:10.3390/electronics9050728 www.mdpi.com/journal/electronics Electronics 2020,9, 728 2 of 20 the system in their own homes for two months on average. In this case, a Wi-Fi fingerprinting-based IPS was used. Since one of the objective of the project is to develop a system able to be deployed by the users, they created the radio map of their own homes and, therefore, there is no way of knowing if the training process was correctly performed. The performance of the system depends on the ability of the users to perform this task correctly. The present work contributes to a better understanding of the difficulties and problems that arise when implementing an indoor positioning system in real scenarios with real users. After the experience obtained by using the Wi-Fi fingerprinting-based IPS, a Bluetooth Low Energy (BLE)-based IPS was tested too. A set of experiments was performed to test if the BLE-based method can deal with the difficulties arisen when using the Wi-Fi based one. In this case, four volunteers tested the system in their own homes for one month on average. The results obtained suggest that the BLE-based system is preferable in the scenarios tested. In summary, the main contributions of this paper are as follows: • We present a set of experiments where real users tested a Wi-Fi fingerprinting-based indoor positioning system deployed in their own homes, instead of in controlled scenarios. • We present a comprehensible study of all possible sources of error arising during the experiments. • We present a set of experiments where a BLE-based IPS was used to assess its performance in real scenarios and to study if this technology can deal with some of the problems arising when the Wi-Fi-based IPS was used A preliminary version of this paper was presented, as a work-in-progress conference paper, in [ 10 ]. In that paper, we briefly presented the proposed Wi-Fi fingerprinting-based indoor positioning system. In this paper, a new section to present the RSSI-based indoor positioning problem statement is included and the explanation of the Wi-Fi-based IPS system is extended. We also present several additional experiments that help to better understand the problems that arose. Finally, we present a new BLE-based IPS, a set of preliminary experiments using this system instead of the Wi-Fi one, and a discussion about the results obtained when comparing both technologies. The rest of the paper is organized as follows. A summary of some of the most relevant papers in this field is presented in Section 2. Section 3presents the RSSI-based indoor positioning problem statement. Section 4deals with the Senior Monitoring project. The tested Wi-Fi fingerprinting approach is presented in Section 5, together with a set of experiments and a discussion on the problems that arose when using this system. Similarly, the tested Bluetooth approach is presented in Section 6, as well as a set of experiments and a discussion comparing both technologies. Finally, the most important conclusions from this work are detailed in Section 7. 2. Related Work In general terms, experiments for Wi-Fi-based IPS are performed in a very controlled scenarios. Khalajmehrabadi et al. [1] a reviewed some methods and tested some of the most relevant ones in a controlled scenario, a floor of 176 m × 12 m in a university building. The ground truth was accurate but required a lot of time to acquire. The scenarios usually proposed to test the IPS are quite different from users’ homes. Regarding BLE-based methods, in [ 11 ], experiments were conducted in an office scenario of 60 m × 40 m. The locations of BLE beacons were accurately measured by using a commercial laser rangefinder and using the floor plan of the building. Similarly, in [ 12 , 13 ], the authors tested the system in an office scenario of 50 m × 15 m and 52 m × 34 m, respectively. In [ 12 ], the Active Bat system [ 14 ] was used to provide ground truth position. Again, the scenario and set up proposed in those papers are quite far from real user’s homes. The above scenarios are very different from the ones proposed in our work, since, in our case, it is not possible to know the exact position of the beacons in the scenario. The unique instruction given to users is to put the beacon in some place inside the correct room. In addition, developers do not have the floor plan of the users’ homes and do not have access to deploy the beacons for privacy Electronics 2020,9, 728 3 of 20 reasons. This is one of the main features of our work, to test the IPS in a real scenario by real users. One critical aspect of fingerprint method is the training phase. Experts users perform this task very well, because they know all the “tricks” to do the task. However, the real user does not know which is the correct way to do it even if they receive some training. The problem is that they do not know these “tricks” since they have not participated in the development of the system and they so not have the background knowledge to understand how the system works. In our opinion, the experiments presented in this paper have a very relevant aspect in terms of novelty. Any research group that wants to test its IPS in real conditions can obtain a valuable benefit from our work, broadly speaking, to avoid falling into the same trap twice. In our previous works [ 3 , 4 ], we tested a similar Wi-Fi fingerprinting-based approach in five different urban flats. The users were the developers of the system, i.e., they are expert users. Experimental results show that the system was robust and reliable enough for locating a user at room level in his/her home. In particular, the accuracy reported was 92.00% in the best scenario and 71.07% in the worst. The results obtained in that preliminary experiment encouraged us to continue working on this research line. In this study, we tested a sophisticated IPS but using real users instead of expert ones. We greatly improved the IPS from the one reported in [ 3 , 4 ] in terms of accuracy, battery life of the device, and usability of the application, among other features. However, the change from controlled scenarios to real ones produces some sources of errors that this paper analyzes and discusses. Another relevant part of this paper is the use of wearable devices in a healthcare scenario. In our case, this work is related to a bigger project where the aim is to monitor the behaviors of older adults at home. The objective is to obtain in which room is the user while preserving his/her privacy and in a comfortable and easy way. Data should be acquired without disturbing users. The use of wearable and other devices in healthcare-related problems is a hot topic nowadays [ 15 ] as well as the use of technology to assists older adults [ 16 – 20 ]. For instance, Randazzo et al. [ 21 ] used a wearable smart device to monitor multiple vital parameters. One important difference of our system with respect the one presented in [ 21 ] is that the wearable used in our experiments is a common smartwatch instead of a probably uncomfortable device. This is very important, since users are required to wear the device whenever possible. Saponara et al. [ 22 ] presented a similar idea for remote monitoring of chronic diseases. However, the device used has the same problem. Shyamkumar et al. [ 23 ] performed cardiovascular monitoring by using a wireless textile-based wearable. This is a very interesting approach since the device was inserted into a T-shirt allowing continuous monitoring. The problem is that the user will need several of these devices to allow many days of monitoring. The healthcare of older adults is a hot topic today. For instance, Schwenk et al. [ 24 ] developed a system for assessment of gait, balance, and physical activity for discrimination of frailty status. They used commercially available technology for gait assessment and balance assessment. Both systems used five small inertial sensors attached to the shanks, thighs, and lower back. Although the results provided for this work are very interesting, the use of the sensors can be quite uncomfortable to users. The use of a smartwatch can be more appropriate in many scenarios because users know this device since they have used a similar device during their lives. In summary, the main difference of the proposed work compared to the previous ones is that we focus on testing the IPS in real scenarios. The developers do not know the size of the scenario, the floor plan, how many beacons will be detected, and so on. In addition, when using the Wi-Fi fingerprinting-based method, users themselves are responsible for acquiring the radio map to preserve their privacy. The use of a smartphone instead of a more uncomfortable device is also important if the users are older adults. It is preferable since older adults usually use watches in their lives and smartwatches are worn in a very similar way as traditional watches. Unlike other works, our system has been developed to allow continuous monitoring. This is crucial for future studies using the data generated by the proposed IPS. A problem that will be fixed in the future is the battery life of current smartwatches, since new devices are expected to reduce battery consumption and have batteries with a longer lifespan. Electronics 2020,9, 728 4 of 20 3. RSSI-Based Indoor Positioning Problem Statement RSSI (Received Signal Strength Indicator) indoor positioning systems are based on measuring the intensities of the received radio signals of the emitting devices (beacons) that are available at a particular scenario. There are two dominant methodologies: Fingerprinting based, where the measured intensities are compared with a previously built RSSI dataset [ 25 ], and Proximity based, where the localization of the closest beacon is the one assigned. 3.1. Fingerprinting-Based A fingerprint is an RSSI feature vector composed of received signal values from different emitting devices or beacons, associated to a precise position. In the last years, this technique has become increasingly important for indoor localization [ 1 , 26 , 27 ], since Wi-Fi is generally available in indoor environments where GPS signals cannot penetrate, and wireless access points (WAPs) can be used as emitting devices [ 28 ]. In addition, it has lower power consumption, lower cost, and does not require additional equipment. As an alternative to Wi-Fi-based method, Bluetooth-based beacons are gaining popularity in the last years [11–13]. The RSSI fingerprinting localization approach requires two phases of operation: a training phase, also known as offline or survey phase, and a positioning phase, sometimes referred to as online, operational or test phase. In the training phase, multi-dimensional vectors of RSSI values (the fingerprints) are collected and associated with known locations. These measurements are used to build the training dataset (also known as radio map) that covers the area of interest. Later, during the positioning (or test/online) phase, an RSSI vector collected by a device is compared with the stored data to generate an estimation of its position. Figure 1shows the schemes of the online phase of two IPS where the difference between them is the technology used for the beacons. The left image shows an IPS using Wi-Fi based beacons and the right one an IPS using BLE-based ones. One of the main differences between the two systems is that, in the case of the Wi-Fi-based one, just one of the beacons is inside the studied scenario (the one used to provide internet connection to the user), being the rest outside, for instance in the neighbors’ homes. However, in the case of the BLE-based system, all the beacons are located inside of the user’s home. Figure 1. Schemes of the online phase of: a Wi-Fi fingerprinting IPS ( left ); and a BLE-based IPS ( right ). (Icons made by Freepik from www.flaticon.com.) Let us assume that there are q different beacons in the environment where the IPS is going to be deployed. The set of all beacons is Ω=ω1, . . . , ωq. Electronics 2020,9, 728 5 of 20 A radio map is composed of a set of collected fingerprints and the associated positions where the measurements were taken. It is used to create models of the environment that can be used to estimate the position of a new fingerprint. Let Dtr be a radio map (tr stands for training). Then, Dtr ={Ftr,Ltr}(1) where Ftr is the set of collected fingerprints and Ltr is the set of associated locations. On the one hand, Ftr is composed of nfingerprints, stored as nvectors of RSSI measurements: Ftr =λtr 1, . . . , λtr n(2) Each fingerprint consists of qRSSI values: λtr i=nρtr 1,i, . . . , ρtr q,io,∀i∈[1, . . . , n](3) The set Ftr can be viewed as a dataset where the rows are the fingerprints and the columns are the different beacons perceived in the scenario. On the other hand, Ltr is composed of n locations, stored as vectors, representing the position associated with its correspondent fingerprint: Ltr =τtr 1, . . . , τtr n(4) where each associated position can be given as a vector of values representing its coordinates, although, on multi-floor and multi-building environments, labels can be used to represent buildings, floors, offices, etc. Let lbe the number of dimensions of a position vector. Then, τtr i=nνtr 1,i, . . . , νtr l,io,∀i∈[1, . . . , n](5) Therefore, each ρtr r,i ( r∈[ 1, . . . , q] ) is the RSSI obtained from beacon ωr at location τtr i , i.e., ρtr r,i=RSSI(ωr,τtr i). Once the radio map has been created, the positioning step can be performed, where the user device will capture a fingerprint λts j that will be compared with the stored radio map Dtr to generate an estimation of its position τts j . Assuming that the user captured m fingerprints, the test dataset can be defined as: Dts ={Fts,Lts}(6) where Fts =λts 1, . . . , λts m(7) Lts =τts 1, . . . , τts m(8) To be able to compare a test observation with the training fingerprints, the number of RSSI values of its respective fingerprints has to be the same, and the position in the RSSI vector must represent the same beacon in both datasets. Therefore, each one of the m observations of the test dataset should be composed of a fingerprint with qRSSI values, λts j=nρts 1,j, . . . , ρts q,jo,j∈[1, . . . , m](9) and a location vector with the same spatial dimensions as the training location vectors, τts j=nνts 1,j, . . . , νts l,jo,∀j∈[1, . . . , m](10) In this case, ρts r,jis the RSSI obtained from beacon wrat location τts j, i.e., ρts r,j=RSSI(ωr,τts j). Electronics 2020,9, 728 6 of 20 In this paper, the dimension of the location vector is l= 1, since only the label of the room is used. In this case, the localization problem can be solved, for example, using a pattern recognition classifier, where the features and the labels of the training set are the training fingerprints λtr i and the locations τtr i (room identifiers) where they were captured, respectively. Therefore, the problem to solve in the positioning phase is to estimate the location (room) of the user τts j given the test fingerprint λts j captured at an unknown position. 3.2. Proximity-Based A fingerprinting-based IPS, as explained above, does not need to know the position of the beacons in the environment. This is the usual case of Wi-Fi fingerprinting methods. However, in some scenarios, the position of the beacons can be known. When the position of the beacons is known or, at least, it is known in which room of the scenario each beacon has been deployed, a proximity-based algorithm can be used. This algorithm is based on, given a test fingerprint λts j , assigning the localization τts j of the closest beacon ωr, i.e., the one perceived with the highest RSSI value, which can be expressed as follows: τts j=τts r|ρts r,j=max nρts 1,j, . . . , ρts q,jo,∀r∈[1, . . . , q](11) The main advantage of this method is that it is not necessary to capture the radio map. 4. An Overview of the Senior Monitoring Project The experiments described in this paper were conducted as part of a greater research project, named Senior Monitoring. The main goal of this project is to provide assistance for monitoring the bevaior of elderly people and to detect short-term issues (falls) as well as long-term issues, such as cognitive and physical decline. As part of this research, an Indoor Positioning System was developed to assist monitored people in their homes. The proposed system consists of a smartwatch, which is worn by the user who is being monitored, and a smartphone, which is paired to the smartwatch and is used to configure and control its behavior, as well as to communicate with a central cloud server (see Figure 2). The data gathered by the smartwatch are sent to the server through the paired smartphone, where they are stored and analyzed to provide assistance and decision support services by performing analysis tasks such as indoor positioning, activity recognition, or anomaly detection. Figure 2. Senior monitoring IPS overview. The smartwatch sends sensor data to the smartphone. An application installed on the smartphone is the interface through witch the user or the caregiver configures the smartwatch. The smartphone sends the data to a cloud server. The server performs data analysis and can communicate with the user through notifications. (Icons made by Freepik from www.flaticon.com.) Electronics 2020,9, 728 7 of 20 4.1. Hardware The proposed IPS requires the use of two devices: a smartwatch attached to the user’s wrist and a smartphone that communicates with the former and sends data to a remote server. The detailed characteristics of the specific hardware used for the experiments are described bellow: •Smartwatch : All participants wore a Sony Smart Watch 3 model running Android Wear as its operating system. This device incorporates a 1.800 screen with a resolution of 320 ×320 pixels. It supports remote connectivity through Wi-Fi, NFC, and Bluetooth. As for other sensors, it includes GPS, accelerometer, compass, gyroscope, and ambient light sensors. The application developed to support the experiments can be set up to continuously scan for any nearby beacon (WAP and/or BLE) signals, as well as to record readings from some other sensors. As the data are being gathered, they are sent to the paired smartphone through a Bluetooth connection. In the case the devices are not in range, the smartwatch buffers the data to be sent when a network connection becomes available. While in normal operation, the application works as a service and does not interfere with the conventional use of the smartwatch. Some operational settings can be modified through the application installed in the paired smartphone. •Smartphone : The data collected by the smartwatch sensors are sent to a smartphone that works as a proxy between the watch and a remote server. The application developed for this project has been designed to work on many devices, and has been tested on several different models, with the goal that users might be able to use their own smartphones. Besides sending data to a central server, the smartphone is used to configure some sensor options on the smartwatch, such as scan intervals, number of consecutive scans, sensor activation, etc., as well as to show some statistics to the user. Furthermore, the system can provide some feedback, or even require some actions from users, through a notification system that is built into the application. All participants in the study were provided with a smartwatch device to use in the experiments. Participants were given assistance and instructions on how to pair the device with their own smartphones; how to install the application; and how to configure, use, and interact with the monitoring system. 4.2. Software The application deployed on both the smartwatch and the smartphone has been developed to work on Android devices. The smartphone software sends the sensory data received from the smartwatch to a cloud server using the MQTT protocol. This data are stored for posterior analysis using Elasticsearch as a NoSQL database. Data from other sources, such as login data, communication through notifications, or settings modifications, are sent to a REST cloud server and stored in the same database. Figure 3shows a screenshot of the smartphone application showing some information relevant only to research purposes, such as the number of access point detected or a confidence metric for the activity the user is performing, along with general information that is useful for end users, such as a measure of the overall activity of the user in the last hour, or the daily number of steps. The smartphone’s application is the interface through which the elderly user can perform tasks such as checking the smartwatch status, viewing his/her level of physical activity, observing the readings and status of active sensors or responding to notifications delivered by his/her caregivers, health professionals, or automatic health-care services provided by the analysis system. Electronics 2020,9, 728 8 of 20 Figure 3. The application main screen shows detailed information about the smartwatch status, the levels of physical activity of the user in the previous hour, and other useful information from other active sensors such as Wi-Fi access points detected or a daily step counter. 4.3. Sensors The software has been designed to mainly make use of the Wi-Fi, Bluetooth Low Energy, and significant motion sensors. 4.3.1. Wi-Fi This sensor constitutes the base of the Wi-Fi-based positioning system. The smartwatch performs a given number of consecutive Wi-Fi scans every minute. The default number of scans is 5, but this setting can be modified through the smartphone app. When a Wi-Fi scan is performed, the Wi-Fi module updates some data in the cache while keeping some intact. Some WAPs may be present in the scan results even though they have not been detected in the most recent scan. The details of the cache updating algorithm are unknown, but outdated data may persist during some scans. Moreover, in highly crowded WAP environments, channel interference is very likely. This means that some WAP signals, especially those whose RSSI is low, may appear and disappear stochastically. Because of the aforementioned conditions, signals collected from incorrect locations at incorrect times are likely to be acquired, introducing errors in data analysis. To minimize the impact of this behavior and lessen stochasticity, the application completes a default number of five consecutive scans, each one taking approximately 1 s to complete. 4.3.2. Bluetooth Low Energy BLE protocol has been designed as an energy efficient alternative to classical Bluetooth technology, to allow wireless communications between devices while keeping power consumption low. The smartwatch application continuously scans for advertising devices and stores the received strength signal indication value for each device. The frequency on which advertising signals are received depends on the particular setting for each beacon, since the advertising interval can be manually adjusted. BLE technology uses 40 channels, from 2.4 to 2.4835 GHz. The majority of these channels, Channels 0–36, are used for connection data, while the last three channels (37–39) are used as advertising channels to set up connections and send broadcast data. To minimize the effect of any radio interference, BLE Electronics 2020,9, 728 9 of 20 uses a frequency-hopping scheme in which the radio hops between channels on each connection event, where the value of the hop is different for every new established connection. Advertising data are constantly being transmitted from a peripheral device in order to be seen by other devices. The advertising device sends a packet on at least one of the three advertising channels, with a repetition period called the advertising interval. To reduce the chance of multiple consecutive collisions, a random delay of up to 10 ms is added to each advertising interval. The scanner device listens to the channel for a duration called the scan window, which is periodically repeated every scan interval. With respect to the BLE scanning process, one of its shortcomings is that its design is focused on very short range communication. It is possible for a BLE device to reliably transmit data 30 m or more on a line-of-sight, but typical operating range is probably closer to 5 m. However, if beacons are properly deployed, this aspect can be an advantage from an IPS point of view, since it may facilitate the discrimination between near and distant emitters. 4.3.3. Significant Motion An indicator of the user’s physical activity can be determined with the use of sensors such as accelerometer and gyroscope. Both sensors are capable of measuring human motion and estimating body position, allowing to determine the physical activity the user is performing, such as walk, run, sit, etc., either using classical machine learning techniques [ 29 ] or deep learning architectures [ 30 ]. The main drawback of the use of these sensors in a smartwatch is its energy cost. Their continuous monitoring keeps the system from going into low power/sleep mode and drastically reduces the battery duration to less than a whole day, which is a minimum requirement for monitoring applications. An alternative is the use of the Significant Motion Sensor (SMS). It has been previously used to improve the localization accuracy [31]. SMS is a virtual sensor that detects user movement using the physical accelerometer, but only triggers when it detects a meaningful motion, that is, a movement that might lead to a change in the user’s location. Thus, although the limited scope of this sensor does not allow determining the activity the user is performing, it provides a way to detect a possible change in his/her location. Inversely, if it has not been triggered during an interval of time, it may be assumed that the user has not changed his/her location during that period. 4.4. User Feedback To introduce a mechanism to obtain a higher degree of certainty about the quality of the training and, therefore, to know if the Wi-Fi fingerprinting-based indoor localization algorithm is performing well, a notification system has been developed to collect validation samples. When the system detects stationary moments by using the SMS, the users are asked about where they were during that particular interval of time. The answer is then used to label the samples captured during this period. These labeled samples can be used to validate the accuracy of the system and therefore can be used to improve the positioning system. However, since people using the application are real users, many non-desirable situations can happen. The user may not be sure of his/her localization during that interval of time, but still answer the question, introducing a possible source of error. These situations can produce poorly labeled samples that can reduce the accuracy of the classifier. 5. Wifi-Based Positioning 5.1. Method For training, participants must use the Senior Monitoring application to create the radio map of their home. Participants must select the room and the type of training session in the smartphone app to be performed. Then, the smartphone application communicates with the smartwatch app and it starts to capture fingerprinting samples. One hundred consecutive samples are taken at each training session. Electronics 2020,9, 728 16 of 20 and office. The user also receives a smartwatch with the application for capturing RSSI data from the beacons. The application has been configured to match each beacon with the corresponding room. The two fingerprint methods tested work as in the case of the Wi-Fi system (see Figure 2). The only difference is that, in the BLE case, the notification system has not been used. 6.2. Experiments and Results The objective of this set of experiments was to assess the performance of the BLE-based IPS in order to test if it can be used in the real scenarios proposed in this paper. In addition, we wanted to study if the BLE-based method can deal with some of the problems that arose when the Wi-FI based method was used (see Section 5). To test the BLE-based proposed system, four volunteers tested the proposed methodologies. Three of the four users who took part in this experiment also participated in the experiments explained in Section 5, obtaining for two of them, a very low level of accuracy (less than 50%). To obtain ground truth, volunteers annotated the room where they were, but only when they were 100% sure about it. Table 2shows the number of hours that the user labeled to be in each room during the experiments. Table 2. Number of hours that each user stay in each room. Room User 1 User 2 User 3 User 4 Leaving room 14.47 15.55 3.07 17.18 Kitchen 21.25 13.97 1.95 13.81 Bedroom 51.74 32.45 5.92 17.41 Bathroom 0.5 9.65 1.80 17.05 Office 0.5 6.39 1.44 21.67 Figure 8shows the results obtained for each user using the proximity based algorithm. Results for User 1 are excellent. The other users have some rooms where the system provides very accurate results, but there are some rooms with low accuracy. There are some cases, such as the one illustrated in Figure 9, where the user is physically closer to a beacon located in a different room from the one he/she is in. Therefore, the system might make a wrong estimation about the location of the user. To deal with such situations, a fingerprinting method can be used. Figure 10 shows the results obtained for each user using the fingerprinting method. A one-nearest neighbor classifier was trained using the 1% of the data stratified by class to take into account the unbalanced number of samples for each room. The results obtained are excellent in terms of accuracy. For all users and rooms, the accuracy is almost 100%. However, this method has the problem that it requires a manually labeled training set. As discussed sbove, this can cause problems when the training has to be done by real users. Figure 11 shows the results obtained for each user using the auto-training algorithm. The 100 closest samples to each beacon were used to train a one-nearest neighbor classifier. It can be shown how the accuracy has been strongly improved for the rooms where the proximity based algorithm provided low results. Although the accuracy level is not so high compared to using manual training, the results are quite good for all users and almost all rooms. The rooms with lowest accuracy are the ones with fewer samples. It is very important to note that the auto-training method is able to obtain high accurate results without having to perform any manual training by the users. The system itself is able to train a reliable model, avoiding an important source of error. Note that some of the users having problems in the experiments reported in Section 5when a Wi-Fi-based IPS was used now have excellent results in terms of accuracy. Electronics 2020,9, 728 17 of 20 Figure 8. Results of the proximity method. Accuracy is the percentage of times the system is able to correctly estimate the room with respect the ground truth. Figure 9. A possible scenario where the proximity method can fail. Figure 10. Results of the fingerprint method when using manual training. Accuracy is the percentage of times the system is able to correctly estimate the room with respect the ground truth. Electronics 2020,9, 728 18 of 20 Figure 11. Results of the fingerprint method when using automatic training. Accuracy is the percentage of times the system is able to correctly estimate the room with respect the ground truth. 6.3. Discussion The results shown in this section provide a clear conclusion about the preferability of the BLE-based localization system against the WiFi-based one. The BLE-based system is able to obtain accurate results with a minimal intervention of the user. Users only have to put the beacon in the correct room without the needing to perform a training process. The system itself is able to perform the training process with good results in terms of accuracy. Most of the possible sources of error commented in Section 5.3.5 are therefore removed. 7. Conclusions This paper presents our experience on a real case of applying an indoor localization system for monitoring older adults in their own homes. Since the system is used by real users, there are many situations that cannot be controlled by system developers and which can be a source of errors. Two technologies were tested to provide indoor localization: Wi-Fi and BLE. From the results obtained with the Wi-Fi based system, it seems that a good scenario should have many WAPs, a large number of training sessions, and the training samples should be well separated. Under these conditions, good accuracy results can be obtained. However, even in those cases, there are exceptions. This paper discusses the possible causes of such low accuracy results. Three different strategies were tested using a BLE-based method. The proximity-based strategy is the one requiring less user intervention but it can fail in some situations. A classical fingerprinting approach was also tested. It clearly outperforms the proximity-based method but it has the same problems discovered when experimenting with the Wi-Fi-based one, i.e., the users need to create their own radio map. Finally, a fingerprinting method with auto training was successfully tested. The main advantage is that the radio map is automatically created without user intervention. In addition, the accuracy obtained is good enough to fulfill the objectives of this work, outperforming the one obtained when using the Wi-Fi-based system. Future work will be focused on testing the BLE-based system with a bigger set of real users and in more different scenarios. We also want to study how moving the location of the beacons can affect the accuracy of the IPS. Besides, it is also interesting to focus on developing techniques to automatically detect when a beacon has been moved. After detecting a change in the position of some beacon, the automatic training method (see Section 6) can be run again to update the fingerprinting database. Author Contributions: All authors contributed equally in this work. All authors have read and agreed to the published version of the manuscript. Funding: This work was partially funded by the Spanish Ministry of Science, Innovation and Universities through the Retos investigación programme (RTI2018-095168-B-C53) and by Jaume I University Pla de promoció de la investigació programme (UJI-B2017-45). Electronics 2020,9, 728 19 of 20 Acknowledgments: The authors would like to thank the volunteers for participating in the experiments presented in this paper. Conflicts of Interest: The authors declare no conflict of interest. Abbreviations The following abbreviations are used in this manuscript: BLE Bluetooth Low Energy IPS Indoor Positioning System RSSI Received Strength Signal Intensity SMS Significant Motion Sensor WAP Wireless Access Point References 1. Khalajmehrabadi, A.; Gatsis, N.; Akopian, D. Modern WLAN Fingerprinting Indoor Positioning Methods and Deployment Challenges. IEEE Commun. Surv. Tutor. 2017,19, 1974–2002. [CrossRef] 2. Xia, S.; Liu, Y.; Yuan, G.; hu, Z.; Wang, Z. Indoor Fingerprint Positioning Based on Wi-Fi: An Overview. ISPRS Int. J. Geo-Inf. 2017,6, 135. [CrossRef] 3. Belmonte-Fernández, O.; Puertas-Cabedo, A.; Torres-Sospedra, J.; Montoliu, R.; Trilles, S. An Indoor Positioning System Based on Wearables for Ambient-Assisted Living. Sensors 2017,17, 36. [CrossRef] [PubMed] 4. Torres-Sospedra, J.; Belmonte, O.; Montoliu, R.; Trilles, S.; Calia, A. How Feasible Is WiFi Fingerprint-Based Indoor Positioning for In-Home Monitoring? In Proceedings of the 12th International Conference on Intelligent Environments (IE’16), London, UK, 14–16 September 2016. 5. Pérez-Navarro, A.; Torres-Sospedra, J.; Montoliu, R.; Conesa, J.; Berkvens, R.; Caso, G.; Costa, C.; Dorigatti, N.; Hernández, N.; Knauth, S.; et al. Challenges of Fingerprinting in Indoor Positioning and Navigation. In Geographical and Fingerprinting Data to Create Systems for Indoor Positioning and Indoor/Outdoor Navigation; Conesa, J.; Pérez-Navarro, A., Torres-Sospedra, J., Montoliu, R., Eds.; Intelligent Data-Centric Systems; Academic Press: Cambridge, MA, USA, 2019; pp. 1–20. 6. Lyons, B.; Austin, D.; Seelye, A.; Austin, J.; Yeargers, J.; Riley, T.; Sharma, N.; Mattek, N.; Wild, K.; Dodge, H.; Kaye, J. Pervasive Computing Technologies to Continuously Assess Alzheimer’s Disease Progression and Intervention Efficacy. Front. Aging Neurosci. 2015,7, 102. [CrossRef] [PubMed] 7. Barsocchi, P.; Cimino, M.G.C.; Ferro, E.; Lazzeri, A.; Palumbo, F.; Vaglini, G. Monitoring elderly behavior via indoor position-based stigmergy. Pervasive Mob. Comput. 2015,23, 26–42. [CrossRef] 8. Dawadi, P.; Cook, D.; Schmitter-Edgecombe, M. Automated Cognitive Health Assessment From Smart Home-Based Behavior Data. IEEE J. Biomed. Health Inform. 2015,20, 1188–1194. [CrossRef] 9. Alberdi, A.; Weakley, A.; Goenaga, A.; Schmitter-Edgecombe, M.; Cook, D. Automatic assessment of functional health decline in older adults based on smart home data. J. Biomed. Inform. 2018,81, 119–130. [CrossRef] 10. Montoliu, R.; Sansano, E.; Gascó, A.; Belmonte-Fernández, O.; Caballer, A. Senior Monitoring: A Real Case of Applying a WiFiFingerprinting-based Indoor Positioning Method forPeople Monitoring. In Proceedings of the 2019 International Conference on Indoor Positioning and Indoor Navigation (IPIN’19), Zurich, Switzerland, 30 September–3 October 2019. 11. Zhuang, Y.; Yang, J.; Li, Y.; Qi, L.; El-Sheimy, N. Smartphone-based indoor localization with Bluetooth Low Energy beacons. Sensors 2016,16, 596, [CrossRef] 12. Faragher, R.; Harle, R. Location fingerprinting with Bluetooth Low Energy beacons. IEEE J. Sel. Areas Commun. 2015,33, 2418–2428, [CrossRef] 13. Kriz, P.; Maly, F.; Kozel, T. Improving Indoor Localization Using Bluetooth Low Energy Beacons. Mob. Inf. Syst. 2016,2016, 2083094, [CrossRef] 14. Addlesee, M.; Curwen, R.; Hodges, S.; Newman, J.; Steggles, P.; Ward, A.; Hopper, A. Implementing a sentient computing system. Computer 2001,34, 50–56. [CrossRef] 15. Marques, G.; Pitarma, R.; M. Garcia, N.; Pombo, N. Internet of Things Architectures, Technologies, Applications, Challenges, and Future Directions for Enhanced Living Environments and Healthcare Systems: A Review. Electronics 2019,8, 1081, [CrossRef] Electronics 2020,9, 728 20 of 20 16. Mostaghel, R. Innovation and technology for the elderly: Systematic literature review. J. Bus. Res. 2016 ,69, 4896–4900, [CrossRef] 17. Malasinghe, L.; Ramzan, N.; Dahal, K. Remote patient monitoring: A comprehensive study. J. Ambient. Intell. Humaniz. Comput. 2019,10, 57–76, [CrossRef] 18. Ramezani, R.; Zhang, W.; Xie, Z.; Shen, J.; Elashoff, D.; Roberts, P.; Stanton, A.; Eslami, M.; Wenger, N.; Sarrafzadeh, M.; et al. A Combination of Indoor Localization and Wearable Sensor–Based Physical Activity Recognition to Assess Older Patients Undergoing Subacute Rehabilitation: Baseline Study Results. JMIR Mhealth Uhealth 2019,7, e14090, [CrossRef] 19. Sukreep, S.; Nukoolkit, C.M.P. Indoor Position Detection Using Smartwatch and Beacons. Sens. Mater. 2020 , 32, 455–473, [CrossRef] 20. Tegou, T.; Kalamaras, I.; Tsipouras, M.; Giannakeas, N.; Votis, K.; Tzovaras, D. A Low-Cost Indoor Activity Monitoring System for Detecting Frailty in Older Adults. Sensors 2019,19, 452, [CrossRef] 21. Randazzo, V.; Ferretti.; Pasero, E. A Wearable Smart Device to Monitor Multiple Vital Parameters—VITAL ECG. Electronics 2020,9, 300, [CrossRef] 22. Saponara, S.; Donati, M.; Fanucci, L.; Celli, A. An Embedded Sensing and Communication Platform, and a Healthcare Model for Remote Monitoring of Chronic Diseases. Electronics 2016,5, 47, [CrossRef] 23. Shyamkumar, P.; Rai, P.; Oh, S.; Ramasamy, M.; Harbaugh, R.E.; Varadan, V. Wearable Wireless Cardiovascular Monitoring Using Textile-Based Nanosensor and Nanomaterial Systems. Electronics 2014 ,3, 504–520, [CrossRef] 24. Schwenk, M.; Mohler, J.; Wendel, C.; D’Huyvetter, K.; Fain, M.; Taylor-Piliae, R.; Najafi, B. Wearable sensor-based in-home assessment of gait, balance, and physical activity for discrimination of frailty status: Baseline results of the Arizona frailty cohort study. Gerontology 2015,61, 258–267, [CrossRef] [PubMed] 25. Lee, J.y.; Yoon, C.h.; Park, H.; So, J. Analysis of Location Estimation Algorithms for Wifi Fingerprint-based Indoor Localization. In Proceedings of the 2nd International Conference on Software Technology (SoftTech’13), Yeosoo, Korea, 26–27 April 2013; pp. 89–92. 26. He, S.; Chan, S.H.G. Wi-Fi fingerprint-based indoor positioning: Recent advances and comparisons. IEEE Commun. Surv. Tutor. 2016,18, 466–490. [CrossRef] 27. Liu, H.; Darabi, H.; Banerjee, P.; Liu, J. Survey of wireless indoor positioning techniques and systems. IEEE Trans. Syst. Man Cybern. Part C Appl. Rev. 2007,37, 1067–1080. [CrossRef] 28. Li, B.; Salter, J.; Dempster, A.; Rizos, C. Indoor positioning techniques based on wireless LAN. In Proceedings of the 1st IEEE International Conference on Wireless Broadband and Ultra Wide-band Communications (AusWireless’06), Sydney, Australia, 13–16 March 2006; pp. 13–16. 29. Lara, O.; Labrador, M. A survey on human activity recognition using wearable sensors. IEEE Commun. Surv. Tutor. 2013,15, 1192–1209. [CrossRef] 30. Sansano, E.; Montoliu, R.; belmonte Fernéndez, O. A study of Deep Neural Networks for Human Activity Recognition. Comput. Intell. 2020,37, 1–27. [CrossRef] 31. Sansano, E.; belmonte Fernéndez, O.; Montoliu, R.; Gascó, A.; Caballer, A.; Bayarri, P. Improving positioning accuracy in Ambient Assisted Living environments. A multi-sensor approach. In Proceedings of The 15th International Conference on Intelligent Environments (IE’19), Rabat, Morocco, 24–27 June 2019. 32. Rodgers, J.; Nicewander, W. Thirteen ways to look at the correlation coefficient. Am. Stat. 1988 ,42, 59–66. [CrossRef] 33. van der Maaten, L.; Hinton, G. Visualizing High-Dimensional Data Using t-SNE. J. Mach. Learn. Res. 2008 ,9, 2579–2605. 34. Rousseeuw, P.J. Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. J. Comput. Appl. Math. 1987,20, 53–65. [CrossRef] 35. Jang, B.; Kim, H. Indoor positioning technologies without offline fingerprinting map: A survey. IEEE Commun. Surv. Tutor. 2019,21, 508–525, [CrossRef] c 2020 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/).