Next Article in Journal
Cascade and Fusion: A Deep Learning Approach for Camouflaged Object Sensing
Next Article in Special Issue
An Accessible Smart Home Based on Integrated Multimodal Interaction
Previous Article in Journal
Wearable Detection of Trunk Flexions: Capacitive Elastomeric Sensors Compared to Inertial Sensors
Previous Article in Special Issue
Review of Technology-Supported Multimodal Solutions for People with Dementia
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Development of an Anomaly Alert System Triggered by Unusual Behaviors at Home

by
Roxana Rodriguez-Goncalves
,
Angel Garcia-Crespo
*,
Carlos Matheus-Chacin
and
Adrian Ruiz-Arroyo
Innovation Promotion and Technological Development Institute, University Carlos III of Madrid, 28911 Leganes, Spain
*
Author to whom correspondence should be addressed.
Submission received: 31 May 2021 / Revised: 23 July 2021 / Accepted: 11 August 2021 / Published: 12 August 2021
(This article belongs to the Special Issue Simplified Sensing for Ambient Assisted Living in Smart Homes)

Abstract

:
In many countries, the number of elderly people has grown due to the increase in the life expectancy of the population, many of whom currently live alone and are prone to having accidents that they cannot report, especially if they are immobilized. For this reason, we have developed a non-intrusive IoT device, which, through multiple integrated sensors, collects information on habitual user behavior patterns and uses it to generate unusual behavior rules. These rules are used by our SecurHome system to send alert messages to the dependent person’s family members or caregivers if their behavior changes abruptly over the course of their daily life. This document describes in detail the design and development of the SecurHome system.

1. Introduction

Currently, in many countries, the number of elderly people is growing due to the increase in the life expectancy of the population. Figure 1 shows the latest World Bank update on life expectancy in some countries and at the level global (as of 9 April 2020). For example, in Spain, life expectancy at birth was 81.18 in 2008, while by 2018, it had increased to 83.33 (a difference of 2.15 over 10 years) [1].
This life expectancy is higher for women than men and is one of the reasons (in addition to divorce and personal preferences for living alone) that, in developed countries, the number of one-person homes for the elderly is constantly growing. In Spain, according to the data issued in July 2019 by the National Statistics Institute (INE), a total of 4,829,600 people were living alone (10.2% of the population), of whom 41.6% were people over 65 (with 72.3% of them being women) [2]. INE projections indicate that in 15 years, the number of people living alone will increase by 18.3% [3]. This is also the case at the European level, with an increasing number of older people in the EU living alone (especially older women). In 2020, it was indicated that 40.2% of women over 65 live alone, while 21.8% of men over 65 live alone [4].
Many studies have shown that living alone can have negative consequences on elderly people’s quality of life. Analysis of some cross-sectional studies has indicated that living alone is a risk factor for frailty in older people [5]. In addition, some studies indicate that living alone is a risk factor for depression. The intensity and the way in which depression affects older people will depend on many factors, such as the individual’s cultural background [6] and their social network [7,8].
In addition to this, according to some studies, 30% of people over 65 can suffer one fall per year and one in three of the elderly who suffer falls develop fear of falling again, which increases the chances that this will happen [9]. Older adults who live alone are more likely to suffer a fall due to having to carry out a greater number of activities at home and outdoors, compared to older people who do not live alone [10]. This is a very serious problem if, because of this, the person cannot get up, since they will likely go unnoticed by others. Another important factor to consider is that older people in one-person homes can suffer accidents or sudden consequences due to health problems that lead to the inability to move or even death, all without their relatives or neighbors being aware. A study on this topic was carried out in 1996 [11], and, currently, this continues to occur in some countries [12].
However, despite being aware of these risks, many older adults have voluntarily chosen to live alone to continue an independent lifestyle in their own home (especially in developed countries), while it is true that other older people simply have no other choice (either due to the lack of close relatives or for other reasons).
In relation to this, the Internet of Things (IoT) is a feasible solution for providing continuous and objective monitoring of the dependent person. There is currently no single definition for the Internet of Things (IoT), but it can be defined generally as a confluence of diverse technologies that provide Internet-based services and applications using electronic devices connected to physical items in order to collect data through sensors and control processes [13]. IoT technology is being used more frequently in healthcare, especially in the area of analysis of physiological parameters, observing investigations of human activity recognition, monitoring, anomaly detection, fall detection, sending alerts, etc. [14].
The present study describes the development of an IoT system called the SecurHome system, which allows older people to be assisted, while respecting their independence and privacy. One of the elements that integrates this system is the device for the home; this device is capable of detecting a data set using a wireless sensor network (WSN). It then sends this information directly to our server via the Internet (using the https protocol), to be stored in our database and subsequently processed to detect the pattern of user behavior and the pattern of environmental behavior in the user’s home. This allows a set of unusual rules of conduct to be created that the expert system will use to detect possible anomalies and alert family members and/or the nearest healthcare center by e-mail. Part of the set of rules to be used was designed by us, while there is another set of rules that, although they have a base structure designed by us, the expert who will create them will be the user (indirectly) through their activity over several days. Remembering that rule-based systems aim to encode the knowledge of an expert human, and enabling this through a set of assertions and a set of rules (IF-THEN), the system understands how it should act for a set of data obtained by the user [15].
Studies that have been conducted so far on the development of IoT assistive devices or systems focused on healthcare for the elderly have focused, variously, on wearable devices, biometric sensors, smartphones, applications, smart homes, environmental uses, indoor positioning, microphones, wearable cameras, and cameras [16]. In addition to hardware, regarding data analysis, studies may focus on low-level sensory data analysis (activity recognition and/or activity discovery); higher-level activity data analysis (anomaly detection and/or prompting system); or adaptation, trending, and concept drift [17]. For anomaly detection, different algorithms have also been used for data analysis [17]. In this paper, we have only highlighted some of the areas of research related to healthcare for the elderly, including only those that focus on their daily lives.

1.1. Fall Detection

The studies that focus on this area can also be subdivided, with some of them focusing on the development of wearable systems or devices [18,19,20], while others use edge devices (most commonly mobile phones) for information processing [21,22,23]. These products are usually highly effective in detecting falls. The problem with this type of device is that they can cause discomfort to the user, and some users may even consider them intrusive; in addition, they require the elderly person to remember to use them daily, which can be difficult if they suffer from some type of dementia. There are also studies focusing on the use of mobile phones and applications to collect data provided by the device’s accelerometer and gyroscope [24,25]. Other devices developed require the elderly person to press a button or take some specific action to trigger an emergency alarm, which is not feasible if the person is unconscious or is immobilized.
Other studies focus on non-wearable systems, most commonly by detecting falls through image or video processing [26,27]; many of them use deep learning methods [28,29,30,31], while others apply simple histogram and correlation methods, using networks of wireless video sensors to compare different frames to detect and confirm if the person has fallen [32]. However, elderly people may feel that their privacy is invaded, especially if this involves the installation of one or more cameras in their home.
The SecurHome system is not intended to detect falls as such. A fall, however, may be reflected in a change in the person’s habitual behavior, which will allow the system to send an alert to a family member, caregiver, or health center indicated for the care of the user. This has not been verified in this study, but we believe that it should be in future tests of this system, namely considering the possible addition of a new module to non-intrusively perform this task. Our system focuses on the two points described below.

1.2. Behavioral Monitoring

Among the literature found in this area, we observed studies focused on monitoring daily routines, behavioral pattern detection, and anomaly detection, using motion sensor networks [33,34]. Using binary sensors that only measure one type of information (motion) can be a limitation for the study of anomalies in the user’s behavior and in the home environment. For this reason, our home device includes binary sensors that detect different types of events (motion, light intensity, infrared to detect use of a remote control, fire, gas, and shock) and includes sensors that collect information periodically (temperature, humidity, pressure, butane and smoke levels). In addition to these studies, many other studies are focused on WSN systems, in which ambient sensors are placed on one or more objects and in rooms around the house, in order to record the interaction that the older person has with these objects throughout the day (pressure-based bed and/or chair sensors, contact-based door sensors, proximity-based toilet sensors, motion sensors, etc.) [35,36,37,38,39,40,41,42,43,44]; however, this option generally requires a significant installation of sensors in different points around the house, which can cause insecurities in the elderly, making them feel uncomfortable or invaded in their own home. For this reason, the device for the home that we have developed incorporates a wireless sensor network in a single device, which is intended to be placed in the room most used by the user. There are also studies that include body sensors and/or biosensors in their systems, which can enrich the data obtained about the elderly person, helping to prevent possible diseases and anomalies as a result of the person’s state of health [37,45,46,47,48]. However, for a monitoring system in the daily life of an elderly person, these biosensors must be additional to the proposed system or device, since they are usually devices that the user must wear, which implies that if the user does not wear it, it will not be able to collect information, and elderly people may forget to wear it or simply may not want to wear it.
There are also commercial devices that aim to take care of the elderly through home monitoring, such as GrandCare [49], which is a complete device, although it is not fully centralized, since the sensors must be placed on different objects in the home of the elderly person, which some people may consider intrusive. On the other hand, there is also AbiBird [50], which is much less intrusive but only uses motion sensors.
The device for the home that we have developed not only uses ambient sensors that measure periodically, but also sensors that are triggered by events. In addition, the data analysis includes not only the user’s activity, but also the user’s inactivity, information that, in line with the authors of previous works, we consider of great importance [44]. Regarding the sensors, these are non-intrusive (no video or audio recording) and involve low-power consumption. They are all concentrated in a single device, so a complicated installation throughout the user’s home is not required. This will all be explained in detail later. Using the device that we propose does not guarantee immediate detection of some types of emergencies, such as possible falls, illnesses, etc. However, these events may cause anomalies that could be detected, and being a completely safe device with respect to the user’s privacy and independence, it may find greater acceptance among these users, thereby increasing their health safety at home. To fulfill its purpose, our device should be placed in the room most used by the elderly person—the living room is most recommended. The installation is very simple as it simply needs to be connected to the power outlet and the Wi-Fi configured.

1.3. Reminders

Some studies investigate the best way to provide reminders or advice that will benefit the older person—for example, advising them to drink water if the temperature increases [51], to take their medication [52], etc. Other studies carry out this notification process by using information stored in a database (medications and/or medical appointments) [53,54].
Our device provides reminders about the medicine that the elderly person should take and the medical appointments scheduled for the day. This information can be read on the screen or heard through the device’s speaker so that the information reaches the person regardless of whether he or she has any visual or hearing difficulties.
This article is based solely on the design and development of the system. The next research step that we will carry out will, therefore, focus on the validation and improvements to be made to the SecurHome system hardware and software. To the best of our knowledge, this project is the first development of a system using a single device with a wireless sensor network of low-cost, non-intrusive sensors to obtain a variety of information regarding the most used room in the elderly person’s home.
In 2010, the European Commission advised European Union (EU) research and innovation projects to adopt the TRL scale: “The EU should apply the TRL scale R&D definition. (…) The Commission should also systematically apply this definition in order to include technological research, product development and demonstration activities within its RDI portfolio” [55]. Currently, our project is at TRL 6 stage—technology demonstrated in relevant environment (no real) [56,57]. Testing in a relevant environment was done in the home of one of the researchers due to restrictions relating to the ongoing COVID-19 pandemic. Therefore, we wished to involve as few external people as possible (mainly elderly people). The tests to be performed in the next stages of the study will be conducted in real environments (elderly people’s homes).

2. Materials and Methods

2.1. Materials

To describe in detail the materials used for the development of this system, it is necessary to have an overview of its structure. The developed IoT-based system is made up of a user assistance device that will be placed in the homes of users (elderly people who live alone); a web interface where caregivers and users can register and configure medication routines and medical appointments; and, finally, a server that handles and processes the information stored in the database. These three system components communicate with each other via the Internet. Figure 2 shows the general structure of the IoT SecurHome system.

2.2. Assistive Device for the Home

This is a device developed to be placed in the home of the elderly person. It will have direct contact with the user and is responsible for collecting environmental and behavioral data from the user’s home, all through incorporated sensors. It also allows interaction with the user by means of a touch screen, since the device has a graphical interface that allows multiple tasks to be performed, such as providing reminders about medication and medical appointment routines previously scheduled on the web (this information is stored in the database and the device for the home queries it daily). In addition, the user can send alert messages to their caregiver manually by simply pressing a button on the screen. It is made up of a control device (Raspberry Pi 3 B+) that is responsible for controlling all the instruments (sensors, speaker, buttons, and any other elements to be included in future updates) that are required to be installed in the device for the home. The control device handles two types of environmental sensors: those that collect information periodically, such as temperature and light intensity; and those that are triggered when they detect an event, such as motion, gas, or fire. In addition, it is responsible for managing possible interactions that the user will have with the device—for example, notifications about medical appointments and medications; the weather application; or Wi-Fi settings. It is also responsible for processing the values of the periodic measurements made by the sensors to be subsequently sent to the database, just as it directly sends the measurements of sensors that are triggered by events. Lastly, but in relation to the previous point, this allows Internet communication with the server for the storage and processing of data.
The hardware of the developed device is based on the use of a Raspberry Pi 3 B +, because it is a small, low-consumption device that allows us to efficiently control all the elements that we want to use. We installed the Debian-based open source Raspbian operating system (OS) [58]. In our project, the Raspberry Pi connects to the internet via Wi-Fi (2.4 GHz/5 GHz IEEE).
The device for the home also features a 7-inch touch screen, eight different sensors that will perform the desired measurements (these will be described in detail in the Methods section), a button to turn the device on and off, and a speaker to achieve better accessibility to the information supplied to the user. In addition to this, some other components such as resistors, an analog-digital converter, and a voltage converter from 5v to 3v are necessary, since the maximum input voltage allowed by the Raspberry Pi is 3.3V DC and some of the selected sensors have maximum output values of 5V or analog outputs.
The ports used in the Raspberry Pi were a USB port for the speaker and general GPIO ports for four of the eight sensors, while another of the sensors uses the Raspberry Pi’s I2C protocol and the last three require conversions since their output is analog and/or over 3.3 V. Figure 3 shows the device for the home without its casing, with the Raspberry Pi and the connected sensors all visible.

2.3. Web Interface

Users and their caregivers must be registered through a web interface; in addition, medication routines and scheduled medical appointments must be specified. This information is automatically sent via the Internet to be stored in the database.

2.4. Data Storage and Processing

This module is responsible for the storing and processing of all user data, has the necessary services to extract and store the information from the database, and also performs the task of creating rules for the operation of the expert system, taking into account the information detected by users throughout the day (this process is explained in more detail in Section 2.5). In addition, it stores the new rules or updates the modified rules in the database and is responsible for comparing the new information obtained by the home assistance device with the existing rules to detect if it is necessary to send an alert to the relative or caregiver. Similarly, this alert information is sent to the home assistance device so that it displays a message on the screen.
The expert system will have three general stages. The first is the calibration time, which lasts two weeks. Then, the data analysis and comparison with the existing rules are performed, in order to make modifications to the rules if changes are found in the pattern it had previously detected (in ranges of two weeks, over a month). After this, the study period is extended and the history of alerts generated is analyzed, to check if any alert is repeated with the same pattern; in the event of this happening, the rule that triggers the alert is modified.

2.5. Methods

For the creation of the SecurHome system, it was necessary to divide the research, design, and development work into the three essential aspects of the system:
  • Data collection by means of sensors;
  • User interaction and scheduled notifications about medicines and medical appointments;
  • Creation/management of rules and sending alerts to family members or caregivers;
  • Control test in the laboratory, to check the operation of the system.

2.6. Data Collection

First, it was necessary to carry out an investigation on the sensors to be included for the detection of anomalies in the home environment, in order to cover the greatest number of home emergencies at a low monetary cost, ruling out all those that could be considered intrusive by the elderly person. We have considered low-cost sensors that are not intrusive and that can provide information about possible accidents or behavioral anomalies in the home (movements at unusual hours, gas leaks or possible fire, use of heating at bedtime, among others). The analysis was carried out in two ways: first by considering the possible events that may occur in the home and looking at the sensors that could help us to detect them; then, we looked for other low-cost sensors that had not been considered, and we analyzed their possible usefulness for anomaly detection. Previous studies have detailed the environmental sensors commonly used for the care of the elderly [40]. We have included those that can provide relevant information while all being centralized in a single device in the home.
The sensors that we currently use are described in Table 1 (the possibility of including more sensors in future updates of the device is not ruled out, but currently, the device has one sensor of each type).
As shown in the table, there are two types of sensors used in the system: those that perform periodic measurements (every minute) and those that are triggered when an anomaly is detected. This information is collected and sent directly to a server that stores it in the database. The shock sensor, similarly to the other sensors included, is integrated into the device; with this sensor, we will be able to know if the device has received a shock (either an accidental shock, because it has been dropped, or any other cause).
Most sensors are connected to the Raspberry’s generic input GPIO pins, except for the temperature and atmospheric pressure sensor, which uses the Raspberry’s I2C protocol (connected to the SCL and SDA pins), and analog sensors, which are connected to the analog–digital converter. This stage of the project was developed in Python 2.7.

2.7. User Interaction and Notifications

In the first interaction with the user, it will be necessary to configure Internet access; a drop-down menu will appear, where the Wi-Fi network of the home can be selected. Then, a keyboard will appear, which the user must use to enter the password. At the end of this process, by default, the device will display a screen with the weather in the user’s area. These features can be seen in Figure 4.
If the user does not want the device to make audible notifications (through the speaker), it is possible to turn off the speaker by clicking on the sound icon seen in Figure 4b. As mentioned above, the device offers two types of notifications, indicating to the elderly person when they should take their medication (name of the medication and amount to take) and also indicating when they have a medical appointment. The latter reminder is given twice, the day before the appointment (24 h before) and three hours before; this one specifies the type of medical appointment, and the time and location. All this information must be previously stored in our database and will have to be entered by the user themselves or by a caregiver, family member, or doctor (depending on the user’s level of dependency) through a web interface, which is currently under development. Figure 5 shows the two types of notifications that are provided by the device for the home.
It should be remembered that this information is also supplied through the speaker, so if the user is not in the same room as the device or if they are otherwise visually impaired, they can still receive the notification without any difficulty. The speaker connects to the Raspberry via a USB port. This stage of the project, similar to the previous one, was developed in Python 2.7.

2.8. Rules and Sending Alerts

The creation of rules for the expert system is done with the information being collected from the users in a period that we call “calibration”; after this, they enter a period of readjustments and finally the stable period. The system has two types of rules: permanent rules (if there is the presence of gas in the home, send an alert message) and modifiable rules, which will vary during the daily life of the older person until they achieve the pattern that most closely resembles that daily life. The modifiable rules have a structure that is already formed (defined with default values) that covers the behavior of a full day; these will be modified, and these changes will depend not only on the data obtained but also on the hours in which they were obtained.
The rules defined by default were chosen after an initial data collection in the home of one of the researchers, which was of two weeks’ duration. With this, we only plan to obtain a set of structured rules; the values set to these rules are not of great importance, since they will be modified in the future by the habitual behavior of the elderly person. Figure 6 shows the behavior of the data collected by two of the sensors installed in the device (movement and interaction with the TV remote control).
This is an example of a couple of measurements collected, with the behavior presented in Figure 6. We set up four rules for movement (two structures, presence of movement in an hour range, and non-presence of movement in an hour range) and two for interaction with the TV remote control (single structure, interaction with the TV remote control in an hour range):
  • Send an alert message if there is movement during unusual hours (00:00–8:00);
  • Send an alert message if there is no movement during usual hours (9:00–12:00);
  • Send an alert message if there is no movement during usual hours (16:00–18:00);
  • Send an alert message if there is movement during unusual hours (23:00–00:00);
  • Send an alert message if there is interaction with a remote control during unusual hours (00:00–8:00);
  • Send an alert message if there is interaction with a remote control during unusual hours (22:00–00:00).
In the calibration period, the device must monitor the elderly person for two weeks without sending any type of alert message to the relatives or caregiver. This will generate the first 14 samples (one sample per day over two weeks), which will be processed to generate the first behavior pattern before starting to send alerts. Throughout the first day of calibration, information will be collected that will be used to create the monitoring rules for the first time. Every time a calibration day ends, the newly generated rules will be compared with the previous ones, expanding or decreasing the hour ranges of the previously created rules or creating new hour ranges for each combination of previously structured measurements. The readjustment period has the same operating principle as the calibration period, in which the set of rules will continue to be changed considering the measurements collected throughout the day. In this way, the first two weeks of samples will be considered, and the process will continue for an additional two weeks; however, the system can already send alert messages if it deems it appropriate throughout the day.
Finally, in the stable period, it is still possible to make rule changes; however, any change must be studied in depth before being made. When a behavior change occurs, a message will be sent and that behavior will be recorded in case it is repeated in subsequent days; this is done in order to maintain the training of the set of rules. If a certain type of alert is constantly repeated in the same pattern (day of the week or time of the day), the behavior is evaluated, and a modification of the rule is made. Table 2 shows in detail the structure of the designed rules.
These are not rules of habitual behavior, but rather of unusual behavior; however, they are created using data obtained from the habitual life of the elderly person. It is also necessary to highlight that there are two types of messages that can be sent to the person or entity responsible for the elderly person: these are alerts and messages about a possible emergency.
In addition to the rules described above, a set of meta-rules have also been designed that have priority when sending alert messages. These meta-rules check the behavior of two measures; if both are fulfilled in the same period, a single notification is sent to the caregiver or family member of the dependent. Table 3 shows some of the defined meta-rules. Similar to the rules described above, these meta-rules can be modified depending on the usual behavior of the elderly person.

2.9. Control Test

Control tests of each of the stages of the system have been carried out with a test user, checking the complete flow of the SecurHome system. The configuration of the sensors, the constant connection to the server via the Internet, and the correct periodic storage of the values detected in our database for a test user were checked, after which the medicine notification process was also checked, as was the notification of medical appointments. To do this, it was necessary to previously configure a medication routine and some medical appointments to our test user, so that the information was in the database. Finally, in the control tests, we also checked the system’s operation by detecting unusual behavior considering the rules defined by default, and we verified the process of sending alerts to the indicated caregiver. In this test, we considered that the default rules are the definitive rules. One of the researchers was monitored by the device in her home environment over a period of 2 weeks without intentionally altering the environmental conditions of the room; subsequently, on a single day of study, the researcher altered the environmental conditions of the room, to test the behavior of the system in extreme cases not presented in the previous two weeks. Finally, we evaluated the response of the system by obtaining the different behavioral signals in both periods studied.

3. Results

This section details the results obtained in the control test carried out throughout the study period. The purpose of this control test is to verify the operation of the device and the system in detecting unusual behavior and sending alert messages, considering the rules of unusual user behavior. It should be remembered that these predefined rules in the system are totally modifiable, with the purpose of adapting them to the daily life of the dependent person. However, for this system test (performed in a controlled environment), the predetermined rules and meta-rules were used as the definitive rules.

3.1. Measurement of Movement and Interaction with the TV Control

We analyzed the behavior of the data collected on the motion detected in the control user’s home during the two weeks of study without intentional alterations in the room environment, considering the rules that were defined by default as the definitive rules for this control test (the same set of rules as described in the Rules and Sending Alerts section):
  • Send an alert message if there is movement during unusual hours (00:00–8:00);
  • Send an alert message if there is no movement during usual hours (9:00–12:00);
  • Send an alert message if there is no movement during usual hours (16:00–18:00);
  • Send an alert message if there is movement during unusual hours (23:00–00:00).
Regarding the interaction with the TV remote control, the same set of rules described in the Rules and Sending Alerts section were considered (also modifiable according to the user):
  • Send an alert message if there is interaction with a remote control during unusual hours (00:00–8:00);
  • Send an alert message if there is interaction with a remote control during unusual hours (22:00–00:00).
Figure 7 shows the motion detection (dark blue) and interaction with the TV remote control (light blue) over two weeks (starting on Wednesday), for 24 h each day. In addition, Figure 7 shows the alert messages that were sent by the SecurHome system (orange).
In the two weeks under study, the system sent ten alert messages when witnessing motion in the 00:00–08:00 time range; in addition, it sent one alert message when not witnessing motion in the 09:00–12:00 time range, it sent four alert messages when not witnessing motion in the 16:00–18:00 time range, and it sent seven alert messages when witnessing motion after 23:00. The system also sent two notifications as the test user interacted with the TV remote control at 22:00 on two days during the period under study. The two no-motion alerts on the second Saturday of the study occurred because the person under study left home in the evening of the previous day and did not return until Saturday afternoon. These alerts are useful for reporting that the elderly person has not returned home or has alternatively passed out in their own home. On the first Thursday, there were several motion alerts messages in the early morning; this occurred because the user had stayed awake in the living room with her laptop, and on the first Monday, the user could not sleep in her bed and lay down on the sofa in the living room for a change of environment. It is important for these last two behaviors to be reported, especially if the user is an elderly person living alone.
Regarding rule modifications, in this pilot test, the system did not make modifications, but in this result, we observe behaviors that should be evaluated by the system for possible modifications of the rules. For example, on the two test Sundays, alerts were sent for an absence of movement, as the person under study was out of his home all afternoon. If this behavior is repeated for another two weeks, the system should modify the rule for Sundays. The system should also modify the range of hours for TV viewing, since these two weeks were not as active as the calibration week, and possibly evaluate the range of movement at night, as it can increase the range until 00:00 (considering the number of alerts sent for movement after 23:00). The time it takes for the system to send a second message of the same alert or notification can be configured, currently, and by default, it is 30 min.

3.2. Measurements of Temperature

The temperature analysis was carried out throughout the two weeks under study; there was no intentional alteration in the environment of the room where the device for the home was located. The rules that were considered for sending alerts for sudden changes in temperature are described below.
  • Send an alert message if the temperature exceeds 38 °C;
  • Send an alert message if the temperature is less than 15 °C;
  • Send an alert message if the temperature rises more than 2 °C between two consecutive measurements;
  • Send an alert message if the temperature at bedtime (23:00–7:00) is higher than or equal to the highest temperature during the day (9:00–16:00);
  • Send an alert message if the temperature rises by 1 °C between two consecutive measurements, and there is also fire in the room.
Figure 8 shows the behavior of the temperature during the two weeks studied. It also shows the alert messages sent considering the rules described above; these messages are represented in binary form, since they are sent by the triggering of an event. The SecurHome system sent three alert messages; two of these were on the same day (early morning of the first Thursday) and the third was on the second Tuesday of study. All three alert messages were sent due to the detection, at the user’s usual bedtime, of temperatures higher than the maximum temperature detected during the past afternoon. On the afternoon of the first Wednesday, a maximum temperature of 21.8 °C was detected; then, on the first Thursday, the system detected temperatures between 21.8 °C and 22.0 °C several times between 2:01 and 3:33, so it sent two alert messages. In addition, on the afternoon of the second Tuesday studied, a maximum temperature of 23.8 °C was detected; then, the device detected temperatures between 23.8 °C and 23.9 °C between 23:17 and 23:32 on the same Tuesday and sent an alert message.
On the first Thursday, as observed in the motion result, the user stayed awake in the living room in the early morning, so she left the heating on during that time. On the second Tuesday, the user went to sleep and left the heating on while sleeping. The latter case can be dangerous, so the alert is extremely useful.

3.3. Sending Alert Messages with Intentional Alteration of the Environment

For the following experiment, three types of alteration were made to the environment of the room where the device for the home was placed. The temperature was intentionally and abruptly altered, and the device was placed in the presence of fire and gas on several occasions to observe the behavior of the system. Figure 9 shows the behavior of the temperature throughout the day of the experiment and the alert messages sent by the system considering only the changes in temperature. The alterations in the environment began to take place around 12:00 on the day of the experiment. Sudden temperature increases occurred in the following time ranges: between 13:51 and 14:00; between 19:29 and 19:36; and between 21:54 and 21:59. The caregiver received alert messages for this unusual behavior at 14:00, 19:36, and 21:59, respectively. The system currently sends the alert messages almost immediately; this will probably be modified in future work, to balance the server workload and the response time for sending alert messages.
In addition to these results, Table 4 describes the data obtained for the presence of fire and the presence of gas and shows the alert messages sent for fire and gas events, respectively. Regarding the fire alert messages, these are not sent only for the presence of this event, since, when the system perceives fire, it performs an analysis of the temperature to check if it has increased. If the temperature rises and fire is present in the room, a fire alert message is sent. Sending alert messages only for the presence of fire in the room has not been considered, due to the possible false positives obtained by this sensor.
Regarding the alert messages sent for the presence of gas, the system does not consider any other measure; if the device senses gas, the system sends an alert message to the user’s caregiver. The time ranges in Table 4 have been divided into 30-min ranges, since, in theory, alert messages for the same type of event are not sent twice in a row until 30 min have elapsed. Additionally, the ranges of hours during which there was no presence of fire or gas have been eliminated from the table.
On this day of additional experiments, there were no false positives from the fire sensor; the false values may have occurred due to natural room lighting or other factors, which will have to be studied and solved in future work. However, as shown in Table 4, only one alert message was sent for the presence of fire; this occurred because the presence of fire (21:56) coincided with the temperature increase that occurred between 21:54 and 21:59. The system sent an alert message for the presence of fire at 21:57. No other fire alert messages were sent because there was no presence of fire in the other two temperature increase ranges. Between 13:30 and 14:00, fire was present at 13:40 and 13:39; however, the temperature increase occurred between 13:51 and 14:00. Regarding the range of hours between 19:00 and 20:00, there was no presence of fire.
Moreover, as expected, only one alert message was sent per 30-minute range (even when the device detected gas in the room consecutively or more than once in those hour ranges). Table 4 shows that in the range between 14:00 and 14:30, there were no alert messages, even when gas was present; this occurred because the gas event was detected at 14:29. In the previous range, however, an alert message for the presence of gas had already been sent, at 13:56, so 30 min had not yet passed for another alert message to be sent. The same occurred in the 21:00 to 21:30 time range.

4. Conclusions and Future Work

An anomaly-monitoring, detection, and alert system based on the installation of the Internet of Things (IoT) has been successfully implemented. This system is based on the use of a Raspberry Pi and, through the developed software, is capable of detecting information through various sensors, storing the information detected through secure communication with the server, and then processing the stored information to generate and/or update rules that allow possible unusual behaviors throughout the day to be detected, as well as sending alert messages when these behaviors are detected.
This is an unobtrusive, easy-to-install, and low-cost system that involves the greatest number of measurements to date to be considered for the detection of a dependent person’s behavioral patterns, involving not only periodic measurements by environmental sensors, but also event-driven measurements. This project has been a first step in the development and installation of low-cost, non-intrusive IoT systems in the homes of older people, to detect anomalies in their daily behaviors, in addition to providing notifications that will allow them to have better control of their health.
This project will continue to perform control tests with the data collected over a longer period, until a robust prototype is obtained in a relatively controlled environment. The next step in the project will be to validate the device with real data. This validation must be carried out with two analyses: a first analysis to validate the operation of the system (creation and modification of the rules adjusted to the person’s daily life, and generation of the different notifications), for which it will be necessary to carry out the installation of the system in at least one single-person dwelling (preferably in which a person over 65 lives); and a second analysis on the acceptance of the system by the target audience. For this, a qualitative study must be carried out through surveys or other means; it would also be interesting to evaluate the usability of the developed device and assess proposals for improvements.
For future work, it will be necessary to consider some potential problems. The presence of visitors in the home could alter the user’s behavior pattern, and the system could even send alert messages for unusual behavior, presenting data that are not representative for the purpose of this project. The presence of visitors should be detected, either manually, where the user or their caregiver indicates that there are visitors in the home, or in some other way—this is an opportunity for future work.
For future upgrades, a mobile application (Android and iOS) is also being considered as an additional component of the SecurHome system. This will be useful in two areas: notifications (medication and medical appointments) can be received directly on the elderly person’s phone; and in the area of accident and anomaly detection, information provided by the phone’s internal sensors (gyroscope and accelerometer) can be included, which has been extensively studied in previous work for fall detection, since the device is not capable of detecting falls that a person may suffer.
In addition to this, a module will be developed to stop the alert messages considering the rules generated for the user in case the person is absent for a long time—for example, on vacation. However, some alerts will continue to be active—for example, the presence of gas and fire—but the environmental behavior in such a period will not modify the user’s behavior rules.
This study is also limited by the nature of the data and the method used for data analysis. The data used may present noise due to the amount of information and possible non-relevant data, which are difficult to handle with the currently used methodology of rules. The use of other data analysis algorithms for anomaly detection is proposed for future work.
The current study was limited in the amount of data used, due to the time in which this first control test was performed. In addition, during the period under study, there were some false-positive results generated by the fire sensor; these occurred as one-off events on six of the 15 days studied, and on the last day, there were no false positives. Thus, we must also consider solving the malfunctioning of some sensors, which can affect the system’s detection of the behavior patterns. This should be done automatically, filtering the information that is collected by detecting data that do not reflect the real behavior of the user or the home environment. After these problems have been solved, the system will continue to be tested in a controlled environment until a robust device is obtained for subsequent evaluation in real environments.
In addition, as this was a pilot test carried out in the home of one of the researchers, we could not observe all the real limitations and problems that the device may present in a real environment (the one-person home of an elderly person). However, this is a first step for this project, as updates are constantly being made and further testing of the SecurHome device and system will be necessary.

Author Contributions

Conceptualization, R.R.-G. and A.G.-C.; methodology, R.R.-G. and A.G.-C.; software, R.R.-G. and C.M.-C.; validation, R.R.-G., C.M.-C. and A.R.-A.; formal analysis, R.R.-G. and A.G.-C.; writing—original draft preparation, R.R.-G. and A.G.-C.; writing—review and editing, C.M.-C. and A.R.-A.; project administration, A.G.-C.; funding acquisition, A.G.-C. All authors have read and agreed to the published version of the manuscript.

Funding

SecurHome is a multidisciplinary research project on ageing in the framework of the International Centre on Ageing (CENIE). It is a project evaluated by the Spanish State Agency for Research and co-financed by the European Regional Development Fund in the framework of the Interreg V-A Spain–Portugal Cooperation Programme (POCTEP) 2014–2020.

Institutional Review Board Statement

Ethical review and approval were waived for this study, due to the tests were carried out by the research team.

Informed Consent Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. The World Bank. Life Expectancy at Birth, Total (Years). Available online: https://data.worldbank.org/indicator/SP.DYN.LE00.IN (accessed on 8 October 2020).
  2. Instituto Nacional de Estadística. Número de Hogares Unipersonales Según Sexo, Edad y Estado Civil. Available online: https://www.ine.es/jaxi/Tabla.htm?path=/t20/p274/serie/prov/p01/l0/&file=01016.px&L=0 (accessed on 8 October 2020).
  3. Instituto Nacional de Estadística. Proyección de Hogares 2020–2035. Available online: https://www.ine.es/prensa/ph_2020_2035.pdf (accessed on 8 October 2020).
  4. Eurostat. Ageing Europe. Available online: https://ec.europa.eu/eurostat/documents/3217494/11478057/KS-02-20-655-EN-N.pdf/9b09606c-d4e8-4c33-63d2-3b20d5c19c91?t=1604055531000 (accessed on 16 July 2021).
  5. Kojima, G.; Taniguchi, Y.; Kitamura, A.; Fujiwara, Y. Is living alone a risk factor of frailty? A systematic review and meta-analysis. Ageing Res. Rev. 2020, 59, 101048. [Google Scholar] [CrossRef]
  6. Oh, D.H.; Park, J.H.; Lee, H.Y.; Kim, S.A.; Choi, B.Y.; Nam, J.H. Association between living arrangements and depressive symptoms among older women and men in South Korea. Soc. Psychiatry Psychiatr. Epidemiol. 2015, 50, 133–141. [Google Scholar] [CrossRef]
  7. Djundeva, M.; Dykstra, P.A.; Fokkema, T. Is Living Alone “Aging Alone”? Solitary Living, Network Types, and Well-Being. J. Gerontol. Ser. B 2018, 74, 1406–1415. [Google Scholar] [CrossRef] [Green Version]
  8. Stahl, S.T.; Beach, S.R.; Musa, D.; Schulz, R. Living alone and depression: The modifying role of the perceived neighborhood environment. Aging Ment. Health 2017, 21, 1065–1071. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  9. Decullier, E.; Couris, C.M.; Beauchet, O.; Zamora, A.; Annweiler, C.; Dargent-Molina, P.; Schott, A.-M. Falls’ and fallers’ profiles. J. Nutr. Health Aging 2010, 14, 602–608. [Google Scholar] [CrossRef] [PubMed]
  10. Almeida, L.; Meucci, R.; Dumith, S. Prevalence of falls in elderly people: A population based study. Rev. Assoc. Med. Bras. 2019, 65, 1397–1403. [Google Scholar] [CrossRef] [PubMed]
  11. Gurley, R.J.; Lum, N.; Sande, M.; Lo, B.; Katz, M.H. Persons found in their homes helpless or dead. N. Engl. J. Med. 1996, 334, 1710–1716. [Google Scholar] [CrossRef]
  12. Pimouguet, C.; Rizzuto, D.; Schön, P.; Shakersain, B.; Angleman, S.; Lagergren, M.; Fratiglioni, L.; Xu, W. Impact of living alone on institutionalization and mortality: A population-based longitudinal study. Eur. J. Public Health 2015, 26, 182–187. [Google Scholar] [CrossRef] [Green Version]
  13. Ibarra-Esquer, J.E.; González-Navarro, F.F.; Flores-Rios, B.L.; Burtseva, L.; Astorga-Vargas, M.A. Tracking the Evolution of the Internet of Things Concept Across Different Application Domains. Sensors 2017, 17, 1379. [Google Scholar] [CrossRef]
  14. Greco, L.; Percannella, G.; Ritrovato, P.; Tortorella, F.; Vento, M. Trends in IoT based solutions for health care: Moving AI to the edge. Pattern Recognit. Lett. 2020, 135, 346–353. [Google Scholar] [CrossRef]
  15. Grosan, C.; Abraham, A. Rule-Based Expert Systems. In Intelligent Systems. Intelligent Systems Reference Library; Springer: Berlin/Heidelberg, Germany, 2011; Volume 17, pp. 149–185. [Google Scholar] [CrossRef]
  16. Stavropoulos, T.G.; Papastergiou, A.; Mpaltadoros, L.; Nikolopoulos, S.; Kompatsiaris, I. IoT Wearable Sensors and Devices in Elderly Care: A Literature Review. Sensors 2020, 20, 2826. [Google Scholar] [CrossRef]
  17. Bakar, U.A.B.U.A.; Ghayvat, H.; Hasanm, S.F.; Mukhopadhyay, S.C. Activity and Anomaly Detection in Smart Home: A Survey BT—Next Generation Sensors and Systems; Mukhopadhyay, S.C., Ed.; Springer International Publishing: Cham, Switzerland, 2016; pp. 191–220. ISBN 978-3-319-21671-3. [Google Scholar]
  18. Kraft, D.; Srinivasan, K.; Bieber, G. Deep Learning Based Fall Detection Algorithms for Embedded Systems, Smartwatches, and IoT Devices Using Accelerometers. Technologies 2020, 8, 72. [Google Scholar] [CrossRef]
  19. Jansi, R.; Amutha, R. Detection of fall for the elderly in an indoor environment using a tri-axial accelerometer and Kinect depth data. Multidimens. Syst. Signal Process. 2020, 31, 1207–1225. [Google Scholar] [CrossRef]
  20. Gutiérrez-Madroñal, L.; Blunda, L.L.; Wagner, M.F.; Medina-Bulo, I. Test Event Generation for a Fall-Detection IoT System. IEEE Internet Things J. 2019, 6, 6642–6651. [Google Scholar] [CrossRef]
  21. Ajerla, D.; Mahfuz, S.; Zulkernine, F. A Real-Time Patient Monitoring Framework for Fall Detection. Wirel. Commun. Mob. Comput. 2019, 2019, 9507938. [Google Scholar] [CrossRef]
  22. Qian, X.; Chen, H.; Jiang, H.; Green, J.; Cheng, H.; Huang, M. Wearable Computing With Distributed Deep Learning Hierarchy: A Study of Fall Detection. IEEE Sens. J. 2020, 20, 9408–9416. [Google Scholar] [CrossRef] [Green Version]
  23. Mauldin, T.R.; Canby, M.E.; Metsis, V.; Ngu, A.H.H.; Rivera, C.C. SmartFall: A Smartwatch-Based Fall Detection System Using Deep Learning. Sensors 2018, 18, 3363. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  24. Mrozek, D.; Koczur, A.; Małysiak-Mrozek, B. Fall detection in older adults with mobile IoT devices and machine learning in the cloud and on the edge. Inf. Sci. 2020, 537, 132–147. [Google Scholar] [CrossRef]
  25. Tran, H.A.; Ngo, Q.T.; Tong, V. A new fall detection system on Android smartphone: Application to a SDN-based IoT system. In Proceedings of the 2017 9th International Conference on Knowledge and Systems Engineering (KSE), Hue, Vietnam, 19–21 October 2017; pp. 1–6. [Google Scholar] [CrossRef]
  26. Choi, S.; Youm, S. A study on a fall detection monitoring system for falling elderly using open source hardware. Multimed. Tools Appl. 2019, 78, 28423–28434. [Google Scholar] [CrossRef]
  27. Kong, X.; Meng, Z.; Meng, L.; Tomiyama, H. A Privacy Protected Fall Detection IoT System for Elderly Persons Using Depth Camera. In Proceedings of the 2018 International Conference on Advanced Mechatronic Systems (ICAMechS), Zhengzhou, China, 30 August–2 September 2018; pp. 31–35. [Google Scholar] [CrossRef]
  28. Núñez-Marcos, A.; Azkune, G.; Arganda-Carreras, I. Vision-Based Fall Detection with Convolutional Neural Networks. Wirel. Commun. Mob. Comput. 2017, 2017, 9474806. [Google Scholar] [CrossRef] [Green Version]
  29. Lotfi, A.; Albawendi, S.; Powell, H.; Appiah, K.; Langensiepen, C. Supporting Independent Living for Older Adults; Employing a Visual Based Fall Detection Through Analysing the Motion and Shape of the Human Body. IEEE Access 2018, 6, 70272–70282. [Google Scholar] [CrossRef]
  30. Shen, L.; Zhang, Q.; Cao, G.; Xu, H. Fall Detection System Based on Deep Learning and Image Processing in Cloud Environment. In CISIS 2018: Complex, Intelligent, and Software Intensive Systems; Barolli, L., Javaid, N., Ikeda, M., Takizawa, M., Eds.; Springer International Publishing: Cham, Switzerland, 2018; pp. 590–598. [Google Scholar] [CrossRef]
  31. Cai, W.-Y.; Guo, J.-H.; Zhang, M.-Y.; Ruan, Z.-X.; Zheng, X.-C.; Lv, S.-S. GBDT-Based Fall Detection with Comprehensive Data from Posture Sensor and Human Skeleton Extraction. J. Healthc. Eng. 2020, 2020, 8887340. [Google Scholar] [CrossRef] [PubMed]
  32. Veeraputhiran, A.; Sankararajan, R. Feature based fall detection system for elders using compressed sensing in WVSN. Wirel. Netw. 2019, 25, 287–301. [Google Scholar] [CrossRef]
  33. Susnea, I.; Dumitriu, L.; Talmaciu, M.; Pecheanu, E.; Munteanu, D. Unobtrusive Monitoring the Daily Activity Routine of Elderly People Living Alone, with Low-Cost Binary Sensors. Sensors 2019, 19, 2264. [Google Scholar] [CrossRef] [Green Version]
  34. Eisa, S.; Moreira, A. A Behaviour Monitoring System (BMS) for Ambient Assisted Living. Sensors 2017, 17, 1946. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  35. Bleda, A.L.; Fernández-Luque, F.J.; Rosa, A.; Zapata, J.; Maestre, R. Smart Sensory Furniture Based on WSN for Ambient Assisted Living. IEEE Sens. J. 2017, 17, 5626–5636. [Google Scholar] [CrossRef]
  36. Ghayvat, H.; Awais, M.; Pandya, S.; Ren, H.; Akbarzadeh, S.; Chandra Mukhopadhyay, S.; Chen, C.; Gope, P.; Chouhan, A.; Chen, W. Smart Aging System: Uncovering the Hidden Wellness Parameter for Well-Being Monitoring and Anomaly Detection. Sensors 2019, 19, 766. [Google Scholar] [CrossRef] [Green Version]
  37. Popescu, M. Early illness detection in elderly using sensor networks: A review of the TigerPlace experience. In Proceedings of the 2015 E-Health and Bioengineering Conference (EHB), Iasi, Romania, 19–21 November 2015; pp. 1–6. [Google Scholar] [CrossRef]
  38. Skubic, M.; Guevara, R.D.; Rantz, M. Automated Health Alerts Using In-Home Sensor Data for Embedded Health Assessment. IEEE J. Transl. Eng. Health Med. 2015, 3, 1–11. [Google Scholar] [CrossRef]
  39. Hu, R.; Michel, B.; Russo, D.; Mora, N.; Matrella, G.; Ciampolini, P.; Cocchi, F.; Montanari, E.; Nunziata, S.; Brunschwiler, T. An Unsupervised Behavioral Modeling and Alerting System Based on Passive Sensing for Elderly Care. Future Internet 2021, 13, 6. [Google Scholar] [CrossRef]
  40. Uddin, M.Z.; Khaksar, W.; Torresen, J. Ambient Sensors for Elderly Care and Independent Living: A Survey. Sensors 2018, 18, 2027. [Google Scholar] [CrossRef] [Green Version]
  41. Dahmen, J.; Thomas, B.L.; Cook, D.J.; Wang, X. Activity Learning as a Foundation for Security Monitoring in Smart Homes. Sensors 2017, 17, 737. [Google Scholar] [CrossRef]
  42. Sprint, G.; Cook, D.J.; Fritz, R.S.; Schmitter-Edgecombe, M. Using Smart Homes to Detect and Analyze Health Events. Computer 2016, 49, 29–37. [Google Scholar] [CrossRef]
  43. Dahmen, J.; Cook, D.J. Indirectly Supervised Anomaly Detection of Clinically Meaningful Health Events from Smart Home Data. ACM Trans. Intell. Syst. Technol. 2021, 12, 1–18. [Google Scholar] [CrossRef]
  44. Masciadri, A.; Scarantino, C.; Comai, S.; Salice, F. Understanding Home Inactivity for Human Behavior Anomaly Detection. In Proceedings of the 5th EAI International Conference on Smart Objects and Technologies for Social Good (GoodTechs ‘19), Valencia, Spain, 25–27 September 2019; pp. 90–95. [Google Scholar] [CrossRef]
  45. Wu, F.; Wu, T.; Yuce, M.R. An Internet-of-Things (IoT) Network System for Connected Safety and Health Monitoring Applications. Sensors 2019, 19, 21. [Google Scholar] [CrossRef] [Green Version]
  46. Gope, P.; Hwang, T. BSN-Care: A Secure IoT-Based Modern Healthcare System Using Body Sensor Network. IEEE Sens. J. 2016, 16, 1368–1376. [Google Scholar] [CrossRef]
  47. Hassanalieragh, M.; Page, A.; Soyata, T.; Sharma, G.; Aktas, M.; Mateos, G.; Kantarci, B.; Andreescu, S. Health Monitoring and Management Using Internet-of-Things (IoT) Sensing with Cloud-Based Processing: Opportunities and Challenges. In Proceedings of the 2015 IEEE International Conference on Services Computing, New York, NY, USA, 27 June–2 July 2015; pp. 285–292. [Google Scholar] [CrossRef] [Green Version]
  48. Uddin, M.A.; Stranieri, A.; Gondal, I.; Balasubramanian, V. Continuous Patient Monitoring with a Patient Centric Agent: A Block Architecture. IEEE Access 2018, 6, 32700–32726. [Google Scholar] [CrossRef]
  49. GrandCare Systems. GrandCare. Available online: https://www.grandcare.com/ (accessed on 22 July 2021).
  50. AbiBird. Available online: https://abibird.es/ (accessed on 22 July 2021).
  51. Shao, S.; Shuo, N.; Kubota, N. A Fuzzy Spiking Neural Network for Behavior Estimation by Multiple Environmental Sensors. In Proceedings of the 2018 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Miyazaki, Japan, 7–10 October 2018; pp. 1518–1523. [Google Scholar] [CrossRef]
  52. Rodríguez, M.D.; Beltrán, J.; Valenzuela-Beltrán, M.; Cruz-Sandoval, D.; Favela, J. Assisting older adults with medication reminders through an audio-based activity recognition system. Pers. Ubiquitous Comput. 2021, 25, 337–351. [Google Scholar] [CrossRef]
  53. Santana-Mancilla, P.C.; Anido-Rifón, L.E. The Technology Acceptance of a TV Platform for the Elderly Living Alone or in Public Nursing Homes. Int. J. Environ. Res. Public Health 2017, 14, 617. [Google Scholar] [CrossRef]
  54. Zanjal, S.V.; Talmale, G.R. Medicine Reminder and Monitoring System for Secure Health Using IOT. Procedia Comput. Sci. 2016, 78, 471–476. [Google Scholar] [CrossRef] [Green Version]
  55. Héder, M. From NASA to EU: The evolution of the TRL scale in Public Sector Innovation. Innov. J. Public Sect. Innov. J. 2017, 22, 1–23. [Google Scholar]
  56. Ibáñez de Aldecoa Quintana, J.M. Niveles de madurez de la tecnología Technology Readiness Levels. TRLS. Una introducción. Econ. Ind. 2014, 393, 165–171. [Google Scholar]
  57. European Commission. Technology Readiness Levels (TRL). Horizon 2020—Work Programme 2014–2015. Available online: https://ec.europa.eu/research/participants/data/ref/h2020/wp/2014_2015/annexes/h2020-wp1415-annex-g-trl_en.pdf (accessed on 20 July 2021).
  58. The Raspberry Pi Foundation. Operating System Images. Available online: https://www.raspberrypi.org/software/operating-systems/ (accessed on 5 February 2021).
Figure 1. Statistics of the last 10 years on life expectancy at birth in the world and in some specific countries.
Figure 1. Statistics of the last 10 years on life expectancy at birth in the world and in some specific countries.
Sensors 21 05454 g001
Figure 2. Structure of the IoT SecurHome system.
Figure 2. Structure of the IoT SecurHome system.
Sensors 21 05454 g002
Figure 3. Connections of the elements that make up the home assistance device.
Figure 3. Connections of the elements that make up the home assistance device.
Sensors 21 05454 g003
Figure 4. (a) Screen to configure the Wi-Fi network of the house; (b) Screen to check the current weather.
Figure 4. (a) Screen to configure the Wi-Fi network of the house; (b) Screen to check the current weather.
Sensors 21 05454 g004
Figure 5. (a) Notification about taking medicine; (b) Medical appointment notification.
Figure 5. (a) Notification about taking medicine; (b) Medical appointment notification.
Sensors 21 05454 g005
Figure 6. Movement behavior and interaction with the TV remote control to structure the default rules of the system. The axes show the time over the course of a day and the days of the week from the first Sunday (U1) to the second Saturday (S2) of calibration.
Figure 6. Movement behavior and interaction with the TV remote control to structure the default rules of the system. The axes show the time over the course of a day and the days of the week from the first Sunday (U1) to the second Saturday (S2) of calibration.
Sensors 21 05454 g006
Figure 7. Movement behavior and interaction with the TV remote control in the control test. The axes show the time over one day, and the days of the week in the period studied from the first Wednesday (W1) to the second Tuesday (T2).
Figure 7. Movement behavior and interaction with the TV remote control in the control test. The axes show the time over one day, and the days of the week in the period studied from the first Wednesday (W1) to the second Tuesday (T2).
Sensors 21 05454 g007
Figure 8. Temperature behavior in the two weeks studied in the control test.
Figure 8. Temperature behavior in the two weeks studied in the control test.
Sensors 21 05454 g008
Figure 9. Temperature behavior and sending of alert messages in the intentional environmental alteration experiment.
Figure 9. Temperature behavior and sending of alert messages in the intentional environmental alteration experiment.
Sensors 21 05454 g009
Table 1. Sensors used in the device and their characteristics.
Table 1. Sensors used in the device and their characteristics.
SensorCharacteristics
Temperature and humidity sensorDetects ambient temperature and humidity periodically
Barometric pressure and temperature sensorDetects ambient temperature and atmospheric pressure periodically
Photo sensorPeriodically detects lighting level
Gas sensor (CH4, butane, propane)Detects gas levels (CH4, butane, and propane) periodically and provides the binary state of gas presence in the coverage area (event)
Motion sensor (infrared)Provides the binary state of motion presence in the coverage area (event)
Fire sensorProvides the binary state of fire presence in the coverage area (event)
Infrared receiver sensor for TV remote controlProvides the binary state of infrared light emission from a remote control (event)
Shock sensorProvides the binary state of presence of movement or direct hit to the device (event)
Table 2. Rules of unusual behavior to alert the family member or caregiver of the dependent person.
Table 2. Rules of unusual behavior to alert the family member or caregiver of the dependent person.
RuleTypeCharacteristics
Temperature < minimum valueModifiableBy default, the minimum value is 15 °C, but this rule is modifiable depending on the normal behavior of the user. It is always checked that the temperature does not decrease from the set minimum value. If this happens, an alert message is sent.
Temperature > maximum valueModifiableBy default, the maximum value is 38 °C, but this rule is modifiable depending on the normal behavior of the user. It is checked all the time that the temperature does not exceed the maximum value set. If this happens, an alert message is sent.
Gas presencePermanentThe presence of gas is checked all the time; in case it occurs, an alert message is sent.
Presence of firePermanentThe presence of fire is checked all the time: in case it occurs, an alert message is sent.
Presence of movement in an unusual time rangeModifiableIf movement is detected in an unusual time range, an alert message is sent.
No presence of movement in the usual time rangeModifiableIf no motion is detected in a time range in which it should usually occur, an alert message is sent.
Temperature increases (modifiable value) in one minuteModifiableBy default, the value is 2 °C. Compare the current temperature measurement with the temperature detected in the previous measurement; if it increases by 2 °C (modifiable), it sends an alert message.
Nighttime temperature is higher than daytime temperatureModifiableThe system stores the highest temperature in a daily time range (9:00–16:00). If the current time is equal to or greater than the time at night when there is usually no user movement present, and the current temperature is higher than the stored temperature, an alert message is sent for heating on at bedtime.
Interaction with the TV remote control in an unusual time rangeModifiableIf the use of a TV remote control is detected within an unusual time range, an alert message is sent.
Light intensity < minimum value, in unusual time rangeModifiableBy default, the minimum value is 20% brightness for a nighttime range (18:00–21:00), but this rule is modifiable depending on the normal behavior of the user. It is checked within the time range under study that the light intensity does not decrease from the set minimum value. If this occurs, an alert message is sent.
Light intensity > maximum value, in unusual time rangeModifiableBy default, the maximum value is 1% brightness for a nighttime range (23:00–5:00), but this rule can be modified depending on the normal behavior of the user. It is checked within the time range under study that the light intensity does not exceed the maximum value set. If this occurs, an alert message is sent.
Table 3. Meta-rules of unusual behavior to alert of possible emergency.
Table 3. Meta-rules of unusual behavior to alert of possible emergency.
RuleTypeCharacteristics
Presence of movement and presence of interaction with the TV controlModifiableIf movement and interaction with the TV control is detected within the same unusual time range, an alert message is sent indicating that the person is watching TV at an unusual time.
Presence of movement and low light levelModifiableIf motion is detected in a low-light environment within an unusual time range of movement, an alert message is sent.
Presence of fire and significant temperature increasePermanentIf a fire is present and the temperature increases by a specified number of degrees within a time interval, an emergency message is sent.
Table 4. Alert messages with intentional alteration of the environment.
Table 4. Alert messages with intentional alteration of the environment.
Presence of FirePresence of Gas
Range of HoursNumber of Triggered EventsAlert Message SentNumber of Triggered EventsAlert Message Sent
11:30–12:001-0-
12:00–12:300-31
12:30–13:009-0-
13:00–13:306-41
13:30–14:002-41
14:00–14:301-2-
14:30–15:001-21
15:30–16:000-21
17:00–17:300-31
18:30–19:000-21
20:30–21:000-21
21:00–21:300-2-
21:30–22:003121
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Rodriguez-Goncalves, R.; Garcia-Crespo, A.; Matheus-Chacin, C.; Ruiz-Arroyo, A. Development of an Anomaly Alert System Triggered by Unusual Behaviors at Home. Sensors 2021, 21, 5454. https://0-doi-org.brum.beds.ac.uk/10.3390/s21165454

AMA Style

Rodriguez-Goncalves R, Garcia-Crespo A, Matheus-Chacin C, Ruiz-Arroyo A. Development of an Anomaly Alert System Triggered by Unusual Behaviors at Home. Sensors. 2021; 21(16):5454. https://0-doi-org.brum.beds.ac.uk/10.3390/s21165454

Chicago/Turabian Style

Rodriguez-Goncalves, Roxana, Angel Garcia-Crespo, Carlos Matheus-Chacin, and Adrian Ruiz-Arroyo. 2021. "Development of an Anomaly Alert System Triggered by Unusual Behaviors at Home" Sensors 21, no. 16: 5454. https://0-doi-org.brum.beds.ac.uk/10.3390/s21165454

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