Next Article in Journal
An Enhanced ELECTRE II Method for Multi-Attribute Ontology Ranking with Z-Numbers and Probabilistic Linguistic Term Set
Previous Article in Journal
Low Power Blockchained E-Vote Platform for University Environment
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Analysis and Correlation between a Non-Invasive Sensor Network System in the Room and the Improvement of Sleep Quality

by
Eduardo Morales-Vizcarra
1,†,
Carolina Del-Valle-Soto
1,*,†,
Paolo Visconti
2 and
Fabiola Cortes-Chavez
1
1
Facultad de Ingeniería, Universidad Panamericana, Álvaro del Portillo 49, Zapopan 45010, Jalisco, Mexico
2
Department of Innovation Engineering, University of Salento, 73100 Lecce, Italy
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Future Internet 2022, 14(10), 270; https://doi.org/10.3390/fi14100270
Submission received: 12 August 2022 / Revised: 16 September 2022 / Accepted: 16 September 2022 / Published: 20 September 2022
(This article belongs to the Section Big Data and Augmented Intelligence)

Abstract

:
Good sleep quality is essential in human life due to its impact on health. Currently, technology has focused on providing specific features for quality sleep monitoring in people. This work represents a contribution to state of the art on non-invasive technologies that can help improve the quality of people’s sleep at a low cost. We reviewed the sleep quality of a group of people by analyzing their good and bad sleeping habits. We take that information to feed a proposed algorithm for a non-invasive sensor network in the person’s room for monitoring factors that help them fall asleep. We analyze vital signs and health conditions in order to be able to relate these parameters to the person’s way of sleeping. We help people get valuable information about their sleep with technology to live a healthy life, and we get about a 15% improvement in sleep quality. Finally, we compare the implementations given by the network with wearables to show the improvement in the behavior of the person’s sleep.

1. Introduction

The Internet of Things (IoT) connects devices and objects in everyday life through the Internet. IoT allows the integration of sensors and devices with objects that remain connected to the Internet through fixed and wireless networks [1]. IoT allows a better quality of life since it can collect and analyze data that, together, can become important information and knowledge. The various sensors allow unified communication that facilitates collaboration between heterogeneous teams [2].
The Internet of things applied in the health area will allow many people, regardless of their social class, to use the services offered through the IoT in many countries. It will serve to constantly monitor our health, taking into account that there are many diseases in which symptoms are silent and that an early diagnosis would allow prevention and possible solutions to diseases that can be fatal [3].
Recent years have seen significant advances in the sensing capabilities of smartphones and their wearable devices, allowing them to collect rich contextual information such as location, device usage, and human activity at any given time [4]. These have become a popular way to get accountability on their daily lives, but could we really trust on these data and results? Some of the features these wearables are detecting our heart rate and movement, which then are interpreted as sleep quality throwing us insights and charts [5]. However, getting a good sleep quality means taking care of diverse factors.
Good quality of life is key in human lives, and to achieve it, the main element is having good health, which is highly related to getting good sleep. Sleep is an essential element of our health in life. In the handbook of psychology, the author Irving B. Weiner says that getting good sleep is as important as eating or drinking water. Our sleep is composed of 2 types of sleep: NREM and REM. NREM is subdivided into 4 different stages which in a complete scheme they form a cycle. These stages are: 1, 2, 3 and 4. Stage 1 is a transitional phase between wakefulness and more night sleep. This stage of sleep is a light one and in this phase the arousal threshold is low. The brain wave signal is characterized by low-amplitude and high frequency waves. Then during stage 2, it lasts between 10 and 15 min which is characterized by falling sleep. Stage 3 and 4 are considered as the deepest stages of sleep and together last between 20 and 40 min. During these stages, people get the deepest sleep and this is where dreams occur [6].
Bad sleep habits can have a direct effect on the brain. The brain is the most important tool we have in our lives, so we have to protect it and keep it healthy. Bad sleep habits have a direct negative impact on our brain, which affects our neural responses. Bad sleep habits cause sleep disorders that deteriorate our mental health. Some of the most common sleep disorders in people are depression, insomnia, narcolepsy, sleep apnea and restless legs. Each of them have a different consequence on our health that affects our life health. Depression is one of the biggest diseases people is experimenting nowadays and it can be prevented by good sleep habits. This caused thanks to the good mental health sleep provides. Insomnia is another disease which is affecting the majority of people in the world. This disease obstructs the ability to sleep during the night [7].
The motivation of this work is to analyze the impact of a sensor network on people’s sleep quality. We previously based ourselves on the analysis of the conditions of a person when he sleeps relaxed, with little lighting, little noise, and in a comfortable way. We also study a person’s sleep behavior under stressful conditions, such as lots of light, noise, poor sleeping positions, body discomfort, and so on. By implementing a simple sensor network, we want to analyze the impact of improving sleep and, therefore, on the person’s quality of life. We carry out statistical analysis to verify the real affectation of people under conditions of stress and relaxation when sleeping. We support this experimentation with a qualitative analysis done by the same people to expand and better understand the results.

1.1. Related Work

Historically, the data provided by patients during an outpatient consultation is based on subjective verbal reports from the patient’s experience, memories, and knowledge, or, at best, from paper records. Nowadays, thanks to wearables and digital tools, we have clinically relevant information collected continuously during the time between hospital visits. Thus, we obtain an improved “snapshot” of what has happened since the last time we have seen the patient, be it days, weeks, or months [8]. In this way, clinical variables are monitored, allowing proactive anticipation and prevention of health problems that we previously could not previously detect. For example, according to a study by the Fitbit brand and the Scripps Research Translational Institute (USA), these devices would have close to 80% reliability in predicting if a person, who has previously reported symptoms, has Covid-19 [9].
Wearable sleep tracking products are establishing themselves as one of the most critical categories of commercial health products [10]. These can be a sensor placed directly on the body or a garment used when carrying out the action to be measured. Adopting this technology has caused an awareness about the importance of good sleep for health and the dangers of not doing so. These technologies are becoming more widely accepted and are used as self-diagnostic tools by many users worldwide [11].
Most smartwatches and fitness trackers have a three-axis accelerometer. It is a device made up of axis-based motion sensors and tracks movement in all directions. Some even come with a gyroscope to measure orientation and rotation. Through actigraphy, the smartwatch translates wrist movements into sleep patterns. Actigraphy monitors one of the parameters, movement.
The data collected by wearables on heart rate or sleep could help predict the evolution of some minor diseases in real-time. Some studies show the impact of the heart rate and the activity of the person while sleeping in order to associate them with minor health conditions and to be able to detect them in advance. In work cited in [12], they calculated users’ average resting heart rate, sleep duration, and deviations to help identify when these measurements were outside a person’s typical range. During each week, abnormal behaviors were identified if the average weekly resting heart rate was above the overall average and the average weekly sleep rate was not below the overall average. Some apps enhance smartwatches’ ability to monitor blood pressure by uploading data to wireless monitors connected via Bluetooth or WiFi. Related works, refs. [13,14,15], show monitors that stand out for their accuracy in measuring blood pressure, using advanced algorithms, and more remarkable ability to eliminate motion interference. In addition, they provide immediate device information and reading history through the app, allowing patients to share their data with healthcare professionals.
(A) 
Sleep study
Not resting adequately implies a danger when driving vehicles, operating heavy machinery, or carrying out any activity that requires attention, concentration, and the ability to react. It is also reflected in the state of mind (bad mood, irritability, etc.), increasing the level of stress and appearing early aging.
The sleep study is the most powerful tool to diagnose disorders that are difficult to identify through regular medical consultations. Sleep apnea, periodic leg movement syndrome, narcolepsy, restless legs syndrome, and insomnia are among the most common disorders [16]. They are non-invasive and have the objective of gathering as much evidence as possible through monitoring brain and physical activity at the time of sleep. For this study, the patient must present himself(herself) in a laboratory equipped with a chamber where he will be connected to different sensors, which will take different measurements throughout the night [17].
Because this type of study gathers data on what happens in a person’s body while they sleep, there are different types of studies depending on the diagnosis to be validated. An interesting exercise is the study of polysomnography [18]. During a polysomnography study, equipment is used. (a) An Electroencephalogram is placed using electrodes on the user’s head, which measures the stages of REM and nonREM sleep from the patient’s brain activity throughout the night. (b) Motion sensors are placed between the eyes and ears to detect muscular movements in the area. This sensor is mainly helpful in detecting the movement of the eyes when reaching REM. (c) An oximeter is placed on the patient’s index finger, measuring blood oxygen saturation and pulse. (d) A pressure sensor located in a nasal cannula is responsible for measuring the rate of respiration and, at the same time, calculating pulmonary saturation. (e) A microphone that detects and records snoring during the night. (f) A camera that a technician supervises to record the user’s movements during the night. During the study, a specialist technician stays alert if a sensor becomes detached from the patient and has to intervene to return it to its place. Once the study is finished, the patient returns to his/her everyday life to wait for his/her results while the technician collects the data to send them to the patient’s specialist doctor.
(B) 
Technologies for sleep monitoring
Hundreds of companies worldwide have become aware of the public health problem that lack of sleep means and how it affects the productivity of corporations. A new generation of apps and devices may be the way to improve sleep [19]. Manufacturers are developing gadgets like mobile phone alarms that wake people up at the most opportune time in their sleep cycles and wristbands that monitor heart rate. The work cited in [20] consists of a sensor that starts working when a person goes to bed and analyzes data related to sleep, such as the time it takes someone asleep before waking up, heart rate, temperature, movement, and snoring. Another exciting initiative of sleep study through technology is polysomnography. This comprehensive recording of the bio-physiological changes during sleep is considered the standard for [21] sleep studies. Dr. Montgomery-Downs studied the Fitbit, a wristband that tracks sleep and exercise by measuring movement. He determined that it overestimated sleep time and quality by mismeasuring wakefulness as [22] sleep. These devices can encourage behavioral changes in healthy people who want better sleep by giving people a more accurate idea of how long [23] is sleeping. The work cited in [24] proposes a model for detecting generalized anxiety through monitoring heart rate, hours of sleep, and physical activity with commercial wearable devices. The data collected from these devices is recorded in a processed and analyzed database. The decision tree classification algorithm generates the behavioral model corresponding to generalized anxiety disorder. The relevant attributes and the behavior model that determines the level of anxiety corresponding to a generalized anxiety disorder are obtained. Furthermore, it has been proved that determining people’s heart rate is a good indicator to track sleep quality. The work cited in [25] analyzes heart-rates based on an algorithm that tracks these signs in individual sleep in free conditions. Their algorithm proved that their method could work on free-conditions or laboratory conditions which helps to keep interpreting the importance of sleep. Another implication people faces when sleeping is sleep apnea which is a consequence of bad breathing during night as [26] states in their research. They designed and implemented a controller for controlling sleep devices that track breathing during sleep. Since detecting breathing disorders during sleep is crucial to get a good quality sleep, it is important to control the pressure of these devices to get a good functionality. Finally, taking care of air quality in people’s environment help improve sleep quality as sleep breathing improves. This is stated in [27] where they used devices to measure indoor environment. With the aid of this device, they monitored five components of indoor air quality so that air pollution is reduced and in consequence sleep quality improve.

1.2. Comparison with Other Work

Table 1 shows a comparison of our work with other related work proposals. Studies related to portable devices allow repeated measurements, evaluation of temporal patterns, and self-experimentation. The authors in the reference cited in [28] discuss and compare recent developments in devices designed to monitor sleep-wake activity, as well as monitors designed for other purposes that could be applied in the field of sleep. They review recent developments in devices that can be used for home sleep assessment, some of which are currently available for direct purchase on the wellness market. We analyze the metrics taken into account for monitoring sleep quality. We quantify the percentage of improvement of the system and the type of devices adapted to the body or not. In addition, we have reported the experimentation time to understand the test’s duration, depending on the analysis proposed in each work. The Table deals with studies based on specialized devices from brands such as ResMed, Apple Beddit, Withings, Emfit, or others that help monitor breathing, snoring, and even temperature. In addition, they usually come with a mobile application where we can check all the trends recorded over time and offer recommendations for better rest and other interesting data. Smart watches and bracelets use sensors to track and measure physical activity, such as heart rate, sleep patterns, or weight management. We present several representative studies that base their analysis on sleep monitoring bracelets or bands and their cause or effect on vital signs. In doing so, the bracelets show the user the data obtained and, when connected to other applications, provide recommendations on improving exercise and eating habits, and encouraging physical activity.

2. Materials and Methods

For our experiment proposal, we decided to analyse 3 independent variables: sleep time, light exposure and sleep position.
  • Sleep Time-Sleep time is essential to get a good quality sleep because our body needs to complete sleep cycles which consist in 90 min each one.
  • Light exposure-To sleep well during the night, we must sleep with a blackout, which means no light should disturb our time of sleep.
  • Sleep position-Sleep position is a vital element to have a good quality sleep because it affects directly how we breath and move, so that we should try to adopt a fatal position to improve our sleep.
We began by collecting sleep quality data from sleep habits and quality from a group of 30 people from Guadalajara to tell whether there’s a relationship between sleep quality and adopting 3 good sleep habits (sleeping complete sleep cycles, avoiding light exposure and adopting a fetal position). The following process of 5 phases is our proposal to get our results.
Through the study, we mention the use of non-invasive devices, which we define as devices that are not in direct contact with the person involved. In the medical sector we may use invasive or non-invasive devices that interact directly or indirectly, respectively, with the patient. Since our work uses different system types to determine how our results are obtained. Furthermore, invasive devices should be used by the patient most of the time to obtain these data. In our study, we use mostly non-invasive devices as these are placed around their bedrooms [41].

2.1. System

Sensors used in home automation are typically small devices capable of detecting and reacting to the different changes that occur around them. With the information collected from these devices, this sensor system offers several clues on adjusting sleep patterns to people’s daily rhythms.
The proposed system with its associated sensors is shown in Figure 1. In this study, the sensor network has the following sensors in the room: accelerometer, gyroscopes for the doors, movement sensors and light sensors. The person has the following sensors in their bed: smartwatch and band sensor. This network presents the circuits in a plastic box with a pleasant visual presentation in order not to be invasive with the design of the house, as well as to avoid electronic circuits having wires exposed to damage or accidents. The collector device is a radio frequency node operating in the 2.4 GHz band with the IEEE 802.15.4 communications protocol. Working as a Sensor Node, this device has a sensor device for physical variables. This device is responsible for sending the information from the sensors to the network and to transmit such information to the concentrator radio node associated with the computer. Data are processed in a convenient way for the user or the developed system for decision-making. This device can also act or function as a repeater node for the data obtained by a sensor node. The communication protocol with the self-organized wireless network is responsible for telematics, telemetry and radiofrequency. The access control to the medium and the physical layer of the radio frequency nodes comply with the IEEE 802.15.4 standard.
Wearables are being used to increase the efficiency and accessibility of healthcare systems worldwide. They are primarily used to monitor, record continuously, and analyze various vital signs and physical activity parameters. Several sensors are part of our proposed system that help fall asleep and make the person feel more secure and comfortable at bedtime.
Gyroscopic, motion and pressure sensors: They record movement throughout the sleep process, from when we go to bed until we get up. Its values indicate the phases of sleep and their time. When sleep is deep, we barely move, but when sleep is light, the body’s movement is much greater, even if we do it unconsciously. Motion sensors are useful for monitoring device movements, such as tilt, vibration, rotation, or sway. During a sensor event, the accelerometer displays acceleration force data for all three coordinate axes, and the gyroscope displays rotational speed data for those same axes. The gyroscope is located at the room’s doors to count the number of times these doors turn, and the subject enters the bathroom or leaves his room at night. This may be an indicator of poor sleep in the person.
Sensors for measuring the environment: It is essential to know if the environment accompanies us during rest. These sensors measure temperature, lighting, environmental sound (noise), and air quality to find out if external parameters disturb the quality of our sleep. When temperature sensors are used in natural ventilation systems, they measure the temperature inside and outside the house. The difference between the two determines the airflow that must be introduced into the building.
The sensor network in the room system consists of a concentrator or coordinator node, the device connected to the computer via a USB connection. It receives and manages all the information received or transmitted from the network. In addition, it consists of six (6) router/sensor nodes. These devices have eight (8) sensors connected to their communication ports, such as temperature, pressure, humidity, infrared presence (movement), light, sound, gyroscope, and air quality, and they are distributed throughout the room. The parameters are sent via radio frequency to the concentrator or coordinator node in the network.
Figure 2 shows an example of verifying the network of the six operating nodes and one of them requesting the neighbor table of the node with MAC address 0001. Figure 3 shows the impact of variations in sound in the environment. The sensor detects these variations and reports them. In this case, the first data collection was carried out with the sound of the typical environment without any external source of sound in the room. Subsequently, in the following samples of the sensor, an increase in the sound level is observed because different sound sources were placed through a speaker in the person’s room.
Table 2 complements the types of sensors in the network. Here we describe the main features and specifications of the sensors to be put into operation in the subjects’ room. These sensors are connected to a router node. These router nodes carry the information to the hub node to process the information centrally.

2.2. Questionnaire Discovery

This phase of the methodology consists on a questionnaire that aims to get actual information about people’s sleep habits and quality. We asked the group 8 questions to start with and gain insights to compare. These questions are developed to provide feedback to the proposed algorithm and focus the sensor alerts on the person’s needs. These are the following questions:
  • Do you enjoy sleeping? Why?: This is dichotomous (Y/N) and open question that helped the experiment get insights into people’s opinion about their sleep.
  • Do you think sleeping is important? Why?: This is dichotomous (Y/N) and open question that helped the experiment get insights into people’s opinion about their sleep.
  • Do you know what sleep cycles are?: This is a dichotomous (Y/N) question that helped the experiment know how familiar is the person with sleep.
  • If you know what sleep cycles are, please explain.: This is an open and dependent question from the last one, which helped the experiment know how deep the person is familiar with sleep.
  • How many hours do you normally sleep?: This is a multi-choice question that helped the experiment know the habits of the person. The choices were: Less than 5 h, 5–7 h, 8–9 h, More than 9 h.
  • Do you regularly sleep with exposure to light?: This is a dichotomous (Y/N) question that helped the experiment know how familiar is the person with sleep.
  • Which position do you normally sleep in?: This is a multi-choice question that helped the experiment know the habits of the person. The choices were: I sleep on my left side, I sleep on my right side, I sleep on my back and I sleep on my stomach.
  • How well do you sleep regularly?: This is a scale question that helped the experiment know the feelings of the person on their sleep. The scale was 1 to 10.

2.3. Daily Report Bad Habits Experiment

This is the second phase of the methodology which aims to get daily results of people quality sleep. They were asked to sleep in 2 different ways contrary to good quality sleep habits for 1 week and will be reporting daily results of their sleep. They slept on their back or on their stomach and slept incomplete sleep cycles. They were ask the following questions to get the data:
  • How many hours did you sleep? (Ex: 1, 1.5, 2, 2.5, 3, 3.5, etc.): This is an open question, which helped the experiment know how the person slept in that day.
  • Were you exposed to light?: This is a dichotomous (Y/N) question that helped the experiment know how the person slept that day
  • Which position did you sleep in?: This is a multi-choice question that helped the experiment know how the person slept that day. The choices were: I slept on my left side, I slept on my right side, I slept on my back and I slept on my stomach.
  • How well did you sleep today?: This is a scale question that helped the experiment know how the person slept that day. The scale is from 1 to 10.

2.4. Daily Report Good Habits Experiment

This is the third phase of the methodology focused on changing the habits of people during 1 week. For this time, they were asked to adopt a fetal position to sleep, sleep complete cycles and sleep with blackout. They reported daily their results via a questionnaire that was provided. These are the following questions:
  • How many hours did you sleep? (Ex: 1, 1.5, 2, 2.5, 3, 3.5, etc.): This is an open question, which helped the experiment know how the person slept in that day.
  • Were you exposed to light?: This is a dichotomous (Y/N) question that helped the experiment know how the person slept that day
  • Which position did you sleep in?: This is a multi-choice question that helped the experiment know how the person slept that day. The choices were: I slept on my left side, I slept on my right side, I slept on my back and I slept on my stomach.
  • How well did you sleep today?: This is a scale question that helped the experiment know how the person slept that day. The scale is from 1 to 10.

2.5. Questionnaire Analysis

This is the fourth phase of the methodology, which consisted on asking the group how was the experience with the experiment. It helped to get insights into the stimulant given to them. We also asked questions regarding the feeling of sleep between weeks. These are the questions we asked:

2.6. Data Analysis

Finally, the fifth and last phase consists on retrieving, grouping and analyzing the data we collected. This questionnaire helped to obtain insights comparing their firsts answers with the final answers.

2.7. Qualitative Approach

Smart sensors give a score to our rest. A system of metrics determines when the REM phase has been entered. This REM phase corresponds to the last 20–30 min of each sleep cycle, which usually occurs 5 or 6 times a night and lasts between 90 and 100 min.
Overall people do not know how important sleep is and in consequence, they do not pay attention to essential details when doing it. In result, their habits seem to affect directly their sleep quality day by day. For the qualitative stage, we have taken values of people’s habits before and after an stimulant. These values gave us a comparative idea of how good habits affect sleep quality. The proposed algorithm runs on the sensors in people’s rooms for two weeks. We have taken measurements and assessments of people without the sensor system (two weeks) and with the sensor system (two weeks).
Table 3 shows the results of the qualitative approach which describes the variables used for the research with 32 samples. These variables are time of sleep, exposure to light and sleep position. The answers for each of the variables were analyzed by comparing whether the participants slept complete cycles or not, whether they had exposure to light or not and whether they slept on a side position, on a back or stomach position. We present the numerical approach of these results to illustrate them. With these results obtained from the 32 samples, we will develop an algorithm to test later on this study.
The results of this study show various figures that help explain how people sleep regularly. First of all, we have figures “before experiment”. These figures indicates people’s actual habits. This helped to obtain base information to move forward into the study. Then we have “during experiment good/bad habits”. We obtained this data from the questions made in a control situation to know how people was responding to the experiment. This experiment was divided in two weeks: the first week people adopted bad habits of sleep while the second week people adopted good habits of sleep. Finally, there are figures called “after experiment n week”. These figures show the data obtained from a final round of questions made to the samples to know how they generally felt during the experiment. This final data helped us to make a comparison between the base information obtained at the beginning, the data during the experiment and the data after all the questions.
Figure 4 shows the amount of hours that people sleep regularly. From the sample size (N = 32), 24 out of 30 persons (80%) confirmed to have from 5 to 7 h of sleep in a regular basis.
Figure 5 shows the amount of people that normally sleep with exposure to light. From the sample size (N = 32), 25 out of 30 persons (83.3%) confirmed to sleep without exposure to light.
Figure 6 shows the position in which people normally sleep. From the sample size (N = 32), 14 out of 30 persons (46.7%) confirmed to sleep whether on their back or their stomach. In the other hand, from the sample size (N = 32), 16 out of 30 persons (53.3%) confirmed to sleep on one of their sides.
After this phase of results, we obtained a second wave of insights where people exposed to an stimulant and adopt bad quality sleep habits.
Figure 7 shows the number of complete sleep cycles that people sleep during the first week of the experiment. From the sample size (N = 32) and 5 days of testing, there were 100 cases where people sleep incomplete sleep cycles.
Figure 8 shows people’s wellness when sleeping in a daily basis with bad sleep habits such as sleeping incomplete cycles. From the sample size (N = 32) and 5 days of testing, 53% of them confirmed to sleep bad.
After this week testing bad sleep habits, we continued with testing during one more week by adopting good sleep habits, such as sleeping complete sleep cycles.
Figure 9 shows the number of complete sleep cycles that people sleep during the first week of the experiment. From the sample size (N = 32) and 5 days of testing, there were 67  cases where people sleep complete sleep cycles.
Figure 10 shows people’s wellness when sleeping in a daily basis with good sleep habits such as sleeping complete cycles. From the sample size (N = 32) and 5 days of testing, 64% of them confirmed to sleep good.
Finally, after two weeks of testing how people was sleeping and obtaining all the insights, we asked them about how was the experiment resulting in a general perspective.
Figure 11 shows the preferences of people by sleeping with or without exposure to light. From the sample size (N = 32), 90.3% confirmed that sleeping without exposure to light was more beneficial to them.
Figure 12 shows the preferences of people sleeping in a certain position. From the sample size (N = 32), 66.7% confirmed that sleeping on one of their sides was more beneficial to them.
Figure 13 shows the preferences of people sleeping certain amount of time, by comparing complete and incomplete sleep cycles. From the sample size (N = 32), 86.7% confirmed that sleeping complete sleep cycles was more beneficial to them.
Figure 14 shows people’s wellness when sleeping in a daily basis from first week of experiment, which was sleeping with bad sleep habits such as sleeping incomplete cycles. From the sample size (N = 32) and 5 days of testing, 50% of them confirmed to sleep bad.
Figure 15 shows people’s wellness when sleeping in a daily basis from first week of experiment, which was sleeping with bad sleep habits such as sleeping incomplete cycles. From the sample size (N = 32) and 5 days of testing, 73.3% of them confirmed to sleep good.

2.8. Proposed Algorithm

Thanks to the validation of the surveys developed in the previous subsection, we have a categorization of the needs of people when they sleep. Some of these needs are light, the number of hours of sleep, external noise, and sleeping position. This gives us a starting point to categorize sensor alerts and turn them into specific recommendations for sleep improvement.
The proposed algorithm is shown in Algorithm 1 is based on monitoring the person while they sleep. The sensors learn the person’s preferred and relaxing positions when sleeping. During the first night, when the person wakes up, we have an amount of data on each sensor acquired while the person slept. Motion, level, temperature, noise, and gyroscope sensors collect information overnight about the amount of personal movement and room conditions. This way, the algorithm can learn the person’s sleep routines and set thresholds for each sensor. The network adapts the light and temperature conditions so that the person’s movement and noise are less. Each sensor initially has a hierarchy variable in the network, which increases that value according to the priority that the sensor must have to improve the room’s conditions. Sensors start with a flag called hierarchy zero. They increase the value of the hierarchy thanks to the person’s needs. On the third day, the sensors adapt their behavior so that the person has the best conditions during their moment of rest. The person monitors her sleep to see how effective the network is concerning the daily report from her smartwatch and/or band. The network seeks to predict sleep behavior in a non-invasive way and similar to the functions that a smartwatch or a band would have. The algorithm seeks to control the room and the person’s movements to give a report of possible improvements. Among these improvements, the algorithm can recommend sleeping at certain times, lowering or raising the temperature, playing relaxing music, or sleeping with pillows to prevent uncomfortable or incorrect positions. The proactive or reactive nature of the nodes depends on their hierarchy to avoid unnecessary expenses in the energy consumption of the network.
Algorithm 1 Pseudocode of the proposed algorithm
Start
Require: coordinator node starts;
Set avg_ind_vector[] = 0;
 
Per each node do:
Set Hierarchy = 0;
Set allowed_value;
Set day = 1;
avg_ind_vector[]++;
day++;
if day > 3
    for i = 0; i < length(avg_ind_vector[]); i++
        avg_met <-- average metric value;
        if avg_met >= allowed_value
            Hierarchy++;
        end if
    end for
end if
    day++;
 
end do
 
while node with higher hierarchy do
    Set alert_msg;
    Set in active mode;
    Set node in reactive mode;
end while
 
for other nodes
    Set in passive mode;
    Set node in proactive mode;
end for
 
end

3. Results

For our experiments, we took into account two weeks where people slept with a smart device and monitored their sleep conditions in their daily life and as they had been doing it since before. Later, another two weeks while people have the sensor network with the proposed algorithm and their smart device for sleep monitoring in their room.
We have separated the sample into men (50%) and women (50%). This is done to see if there is any difference in the network effect between genders. Indeed, in Figure 16, we observe the percentage improvement in sleep quality in the upper graph for men and the lower graph for women. We obtain that the increase in sleep quality for men is around 9%, and for women, it is around 15%. This result is curious, but it may be because women follow the algorithm’s recommendations more closely, guided by the alerts in the sensors. This different result between men and women is interesting because, possibly, women are more strict in following the algorithm’s indications at the end of the day. This leads us to think that the slope of sleep rhythm improvement in women may be caused by the implementation of the device measures. For example, if the person has several stops during the night (detected by the motion sensor), the algorithm routes the recommendations towards lower fluid intake. Another example is based on the fact that if the air quality and temperature sensors show unsuitable conditions for rest, the algorithm’s recommendation may be to close some windows at night. This also happens with the abrupt change of levels in the noise sensor.
We added the Table 4 with the questionnaire that was applied to the users before performing the experiments to detect primary diseases or basic health conditions. We have chosen a sample of 50 healthy people, non-smokers who do not have heart or lung conditions to avoid bias in the experiment. People who have answered “yes” to any of the questions in Table 4 have been discarded from the sample.
Figure 17 and Figure 18 show examples of actual testing in a user’s dream application. Scenario A shows the person’s sleep behavior without the sensor network in the person’s room. Scenario B shows an example of the person’s sleep performance with the sensor network in the person’s room. We can observe the improvement of the person’s sleep quality with the sensor network, even in the number of hours of sleep.
One of the most accessible parameters to measure is the Heart Rate which, during sleep, is directly related to its quality. Since we are measuring the heart rate, it is beneficial to determine if there are any problems related to the heart and if the sensor network helps to maintain calm when sleeping. One of the most common sleep disorders in the cardiac field is sleep apnea. Thanks to smart sensors, it is easier to detect if the person presents some of their most frequent symptoms and if there is a difference when they sleep, monitored by the network of sensors implemented in the bedroom. The same thing happens with breathing. By measuring the snoring volume and the rhythm of inspiration and expiration, it is easier to know if we have any condition in the lungs or bronchi.
For the quantitative research stage, we have taken values of vital sign metrics that are easy to measure at home. These values give us a comparative idea of when the person typically sleeps at home and when the person sleeps under the care of the proposed sensor network.
Table 5 shows the results of the vital signs measured at home. The first column represents the metric we measured. The second column the typical values found for a good quality sleep. The third column shows the average value without a sensor network. Finally the fourth column shows the average value measured with a sensor network. We analyzed each of the values and found that Heart rate (HR), Breathing frequency (BF), Temperature (T) and Deep Sleep (DS) are found between the range of typical values for both with and without using a sensor network. However, we found that values of Oxygen saturation (OS) and REMS sleep (REMS) with the sensor network were out of range from the typical values; they were presented below the range. On the other hand, we found that both values of total sleep time (TST) with or without using the sensor network were below the range. Finally, we found that values from heart rate variability (HRV) and Snoring (S) were higher when using the sensor network rather than without it. This approach shows that when using the sensor network, in most cases the values get out of range from the typical values.
Data presented in Figure 19 is taken from the 50 people in the sample who experience the absence and presence of the algorithm in the sensor network in their room. It is essential to mention that external conditions can influence the experiment, such as the person’s mood that day, mood swings, momentary changes in the family environment, etc. However, these data were taken quantitatively during the two weeks of experimentation with electronic devices suitable for medical use in homes. So, in the first week, people do not sleep with the sensor network in their room (no sensors). In the second week, people sleep with the sensor network in operation and the proposed algorithm activated in the devices (sensors). This Figure corresponds to the metrics described in Table 5. Here the behavior of the data is shown in a comparative way and its distribution. We observe how the algorithm’s operation is consistent with the person’s relaxation, and this impacts their way of sleeping. The foremost vital signs show improvements when people sleep with the sensor network in their room (sensors). Measurements are taken with medical devices used at home to measure temperature, heart rate, breathing frequency, and oxygen saturation. We take a measurement every hour while the subject is asleep. These measurements were made during the week when the subjects do not have the sensor network and during the week when they sleep with the sensor network in their room.
The overall sleep score on a smartwatch is a sum of the individual scores for sleep duration, sleep quality, and recovery, with a maximum total score of 100. Most people score between 72 and 83. The sleep score ranges are as follows: Excellent: 90–100, Good: 80–89, Fair: 60–79, Poor: Less than 60. These scores consider metrics such as time asleep and awake, how much a person sleeps, and the quality and recovery (turns that decrease quality) of sleep. Most smartwatches and fitness trackers have a 3-axis accelerometer and gyroscope to measure orientation and rotation. Through actigraphy, the smartwatch translates wrist movements into sleep patterns. These activity bracelets or smartwatches cannot accurately discriminate the stages of sleep.
Now, we consider stress conditions under parameters of noise, poor ventilation, high lighting, and uncomfortable sleeping positions. Relaxation conditions are evidenced by low lighting, cool ventilation (that the person does not feel too cold or hot), low or no noise, and a comfortable sleeping position. Regarding the qualitative analysis, people sleep one week under stress conditions and another one week under relaxing conditions. Afterward, we asked people their opinions (every day) regarding sleep and the number of hours of rest. Regarding the quantitative analysis, we took a sample of 50 people and measured the rhythm of sleep under stress conditions as mentioned above for one week. We then implemented a simple sensor network in the bedroom that regulates lights and noise and monitors air quality and movements. Figure 20 shows the sleep behavior of each person in the experimental sample. The blue line describes sleep in relaxing conditions, where the person sleeps with low lighting, no noise, rests in a comfortable position, and with good ventilation. Contrary to the previous scenario, the black line shows sleep (for the same sample of people) under stress conditions. It is notable to observe the difference of 22% between the behavior of the person’s sleep during the week of stress conditions compared to the week under the quality of relaxation conditions of the sensor network.
Figure 21 shows that sleep rhythm is a Gaussian distribution because of the box plot patterns that we observe. This Figure shows the box for both sleeping with stress conditions and with relax conditions. For the stress conditions, the box is symmetrical and the median is centered. In the other hand, the box for relax conditions is more asymmetrical and a median low-oriented. As for the first plot, its characteristics are closer to a Gaussian distribution, it is a sign to confirm it.

3.1. Statistic Analysis

The sample size (N = 50) affects the confidence interval and the power of the test. A more extensive sample size results in a narrower confidence interval. The mean summarizes the sample values with a single value representing the center of the data. The mean for the sample of the values under stress conditions is 60.34, and under calm conditions is 78.28. The 17.24 difference in means estimates the difference in population means. Concerning the standard deviation, a person’s sleep rate under stress conditions deviates from the mean by approximately 6.22, and under relaxed conditions, it deviates by approximately 4.40.
To determine whether or not the sensor network positively affected people’s sleep quality, we performed a paired-samples t-test with a significance level of α = 0.05 using the following parameters for a sample of 50 people. The sample mean of the differences is −17.94. The sample standard deviation of the differences is 8.4090. We performed the paired-samples t-test with the following hypotheses:
  • H 0 : μ 1 = μ 2 (the two population means are equal)
  • H 1 : μ 1 μ 2 (the two population means are not equal)
So the t-test statistic is −15.0856, and p is 2.6718 × 10 30 . We reject the null hypothesis since this p-value is less than our significance level α = 0.05. We thus have sufficient evidence to say that the quality of sleep is different before and after having the sensor system installed.

3.2. Data Stability

Figure 22 shows the two-weeks sampling of the sleep rhythm of three persons. We chose these three persons randomly from the total sample of 50 to evidence the data behavior in the sampling period stability. The visual statistical analysis (Figure 23, Figure 24 and Figure 25) shows that the sleep rhythm is close to be identified as Gaussian distribution. We observe how the three figures have key characteristics of a Gaussian distribution. Figure 23 shows a histogram, which follows a Gaussian distribution with the data obtained. Figure 24 shows a box plot, which also shows the characteristics for a Gaussian distribution; it is symmetrical and has a median centered. Finally, Figure 25 shows a Q-Q plot, which shows a normal distribution with few outliers.

3.3. Usability Metrics

This subsection is centered on the measures of usefulness/usability by the user. These parameters are used in user-centered interaction design to evaluate a product through testing with the users themselves.
In designing any application or system, it is essential to reduce uncertainty and relying on quantifiable data obtained in research is advantageous. Therefore some metrics based on the user experience and the appreciation of the tool used to have this information are considered. These parameters are listed in the Table 6.
We have obtained the responses of the people in the experiment and they have answered a survey related to the questions in the Table 6. The results show that 93% think that the monitoring system has Effectiveness. 94% think that the system has Efficiency. 96% are satisfied with the system. Finally, 78% feel that the system has the Learnability feature.

4. Discussion

Sleep disorder is one of the main problems affecting society today. This influences the state of health, labor productivity, and also personal relationships. In this sense, technology is presented as a weapon to combat this problem that brings so many people upside down.
Sleep monitoring devices help to measure how well a person sleeps superficially. Sleep is divided into 2 phases REM (rapid eye movement) and non-REM (NREM). These stages alternate, and sleep lasts between 4 and 6 cycles, lasting approximately 90 to 100 min. Typical smartwatches make it possible to find sleep quality based on deep sleep, light sleep, and REM sleep. In deep sleep, the frequency of brain waves, the rate of breathing, and blood pressure decrease during deep sleep. It is essential to stabilize mood, balance the mind and recover energy: the more deep sleep, the better sleep quality. Brain wave activity, heart rate, and breathing slow in light sleep. Being able to wake up from sleep is a defense mechanism; It is essential for health and survival. Too much light sleep can affect sleep quality and cause fatigue. Human eyes hurry from side to side under the eyelids in REM sleep. It is more difficult to wake up than light sleep but easier than deep sleep. In this phase, the muscles are paralyzed as a safety mechanism to prevent us from doing the things we are doing in the dream, and it also explains why we cannot run or scream during dreams. This phase allows mental well-being, improves creativity, and reduces stress.
We focused on doing extensive research into the importance of having a good quality sleep to have a healthy life. Since people are the main responsibles for determining what is better for their lives, we focused our efforts on doing research by digging into their daily lives. The main objective of this experiment was to analyze the correlation between people’s habits and sleep quality. We took 3 main variables as a reference to check whether people’s actions during sleep are causing any effect on their night rest. We use time of sleep, sleep position and complete sleep cycles for analyzing these data.
As we moved forward in the experimentation phase, we obtained valuable information that helped optimize our algorithm. All the data obtained from these two weeks resulted in much improvement in sleep quality from one week to the next. People surveyed affirmed that they felt better after applying good habits when sleeping. Since we needed evidence from the people in the experiment, we asked them to report their sleep every day, so that they could be aware of how they were sleeping and then to be aware of how they were feeling after. The algorithm improvement from these results had a big impact on how good sleep habits have a positive effect on sleep. Another important insight into people’s habits is the false belief that they were sleeping better when adopting bad habits. Since they already had bad habits from years before, they thought they were sleeping well. However, after some days, they realized that when adopting good sleep habits, people were sleeping even better. They confirmed that they had never slept as good as they slept in the second week. These insights helped to improve our algorithm thanks to reaffirming good habits of sleep.

5. Conclusions

Applications with smart sensors reflect a broad advance in technologies and network architecture based on IoT, which provide specific solutions to problems in the health sector, especially in scenarios focused on home-centered health. This allows the full use of IoT technology in this area, commonly called IoT Health. These apps sound promising for the health sector industry and ICT in general because it allows personalizing the health service and accelerating its evolution.
In this work, we have implemented a wireless sensor network for sleep control in a person’s room. This network is a non-invasive method of monitoring the main conditions in which a person sleeps. We have compared these results with the sleeping habits of various people to provide feedback to the sensor system. We have found an improvement in sleep quality of around 15%, just by monitoring some external room conditions. This can be a good solution that we have compared with several commercial wearables. It is a suitable alternative for people who cannot or do not want to sleep with accessories on their body or in their bed but who must have some vital signs monitored while they sleep. Our work provides a low-cost system implemented in the room with simple management of recommendations messages for the user, and the sensor network algorithm allows network energy optimization.

Author Contributions

E.M.-V. developed the questionnaires and the experimentation with the people surveyed, prepared the scenario and test-bed and analyzed the results. C.D.-V.-S. supervised the research methodology and the approach of this work, tested the algorithm, and she performed the formal analysis, executed the scenario and test-bed and validated the work. P.V. reviewed, interpreted, and drafted the simulation results. F.C.-C. was involved on the formal analysis and the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Not Applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Abbas, Z.; Yoon, W. A survey on energy conserving mechanisms for the internet of things: Wireless networking aspects. Sensors 2015, 15, 24818–24847. [Google Scholar] [CrossRef] [PubMed]
  2. Ayaida, M.; Messai, N.; Valentin, F.; Marcheras, D. TalkRoBots: A Middleware for Robotic Systems in Industry 4.0. Future Internet 2022, 14, 109. [Google Scholar] [CrossRef]
  3. Gupta, D.; Bhatt, S.; Gupta, M.; Tosun, A.S. Future smart connected communities to fight covid-19 outbreak. Internet Things 2021, 13, 100342. [Google Scholar] [CrossRef]
  4. Yang, T.; Xie, D.; Li, Z.; Zhu, H. Recent advances in wearable tactile sensors: Materials, sensing mechanisms, and device performance. Mater. Sci. Eng. R Rep. 2017, 115, 1–37. [Google Scholar] [CrossRef]
  5. Seshadri, D.R.; Li, R.T.; Voos, J.E.; Rowbottom, J.R.; Alfes, C.M.; Zorman, C.A.; Drummond, C.K. Wearable sensors for monitoring the internal and external workload of the athlete. NPJ Digit. Med. 2019, 2, 1–18. [Google Scholar] [CrossRef]
  6. Freedheim, D.K.; Weiner, I.B. Handbook of Psychology; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 2021. [Google Scholar]
  7. Chokroverty, S. Overview of sleep & sleep disorders. Indian J. Med. Res. 2010, 131, 126–140. [Google Scholar]
  8. Dinh-Le, C.; Chuang, R.; Chokshi, S.; Mann, D. Wearable health technology and electronic health record integration: Scoping review and future directions. JMIR MHealth UHealth 2019, 7, e12861. [Google Scholar] [CrossRef]
  9. Quer, G.; Radin, J.M.; Gadaleta, M.; Baca-Motes, K.; Ariniello, L.; Ramos, E.; Kheterpal, V.; Topol, E.J.; Steinhubl, S.R. Wearable sensor data and self-reported symptoms for COVID-19 detection. Nat. Med. 2021, 27, 73–77. [Google Scholar] [CrossRef]
  10. Crawford, K.; Lingel, J.; Karppi, T. Our metrics, ourselves: A hundred years of self-tracking from the weight scale to the wrist wearable device. Eur. J. Cult. Stud. 2015, 18, 479–496. [Google Scholar] [CrossRef]
  11. Byrom, B.; McCarthy, M.; Schueler, P.; Muehlhausen, W. Brain monitoring devices in neuroscience clinical research: The potential of remote monitoring using sensors, wearables, and mobile devices. Clin. Pharmacol. Ther. 2018, 104, 59–71. [Google Scholar] [CrossRef]
  12. Muaremi, A.; Arnrich, B.; Tröster, G. Towards measuring stress with smartphones and wearable devices during workday and sleep. BioNanoScience 2013, 3, 172–183. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  13. Galarnyk, M.; Quer, G.; McLaughlin, K.; Ariniello, L.; Steinhubl, S.R. Usability of a wrist-worn smartwatch in a direct-to-participant randomized pragmatic clinical trial. Digit. Biomark. 2019, 3, 176–184. [Google Scholar] [CrossRef] [PubMed]
  14. De Fazio, R.; Mattei, V.; Al-Naami, B.; De Vittorio, M.; Visconti, P. Methodologies and Wearable Devices to Monitor Biophysical Parameters Related to Sleep Dysfunctions: An Overview. Micromachines 2022, 13, 1335. [Google Scholar] [CrossRef]
  15. Tate, A.R.; Rao, G. Activity trackers, wearables, noninvasive technologies for early detection, and management of cardiometabolic risks. Int. J. Biomed. 2020, 10, 189–197. [Google Scholar] [CrossRef]
  16. Chesson, A.; Hartse, K.; McDowell, W.; Davila, D.; Johnson, S.; Littner, M.; Wise, M.; Rafecas, J. Practice parameters for the evaluation of chronic insomnia. Sleep 2000, 23, 237–242. [Google Scholar] [CrossRef]
  17. Bruyneel, M. Telemedicine in the diagnosis and treatment of sleep apnoea. Eur. Respir. Rev. 2019, 28. [Google Scholar] [CrossRef]
  18. Cook, J.D.; Eftekari, S.C.; Dallmann, E.; Sippy, M.; Plante, D.T. Ability of the Fitbit Alta HR to quantify and classify sleep in patients with suspected central disorders of hypersomnolence: A comparison against polysomnography. J. Sleep Res. 2019, 28, e12789. [Google Scholar] [CrossRef]
  19. Kurt Peker, Y.; Bello, G.; Perez, A.J. On the Security of Bluetooth Low Energy in Two Consumer Wearable Heart Rate Monitors/Sensing Devices. Sensors 2022, 22, 988. [Google Scholar] [CrossRef]
  20. Der Loos, V.; Machiel, H.; Ullrich, N.; Kobayashi, H. Development of sensate and robotic bed technologies for vital signs monitoring and sleep quality improvement. Auton. Robot. 2003, 15, 67–79. [Google Scholar] [CrossRef]
  21. Baglioni, C.; Nanovska, S.; Regen, W.; Spiegelhalder, K.; Feige, B.; Nissen, C.; Reynolds, C.F., III; Riemann, D. Sleep and mental disorders: A meta-analysis of polysomnographic research. Psychol. Bull. 2016, 142, 969. [Google Scholar] [CrossRef]
  22. Montgomery-Downs, H.E.; Crabtree, V.M.; Gozal, D. Actigraphic recordings in quantification of periodic leg movements during sleep in children. Sleep Med. 2005, 6, 325–332. [Google Scholar] [CrossRef] [PubMed]
  23. Cook, J.D.; Prairie, M.L.; Plante, D.T. Utility of the Fitbit Flex to evaluate sleep in major depressive disorder: A comparison against polysomnography and wrist-worn actigraphy. J. Affect. Disord. 2017, 217, 299–305. [Google Scholar] [CrossRef] [PubMed]
  24. Pardamean, B.; Soeparno, H.; Budiarto, A.; Mahesworo, B.; Baurley, J. Quantified self-using consumer wearable device: Predicting physical and mental health. Healthc. Inform. Res. 2020, 26, 83–92. [Google Scholar] [CrossRef]
  25. Perez-Pozuelo, I.; Posa, M.; Spathis, D.; Westgate, K.; Wareham, N.; Mascolo, C.; Brage, S.; Palotti, J. Detecting sleep outside the clinic using wearable heart rate devices. Sci. Rep. 2022, 12, 1–13. [Google Scholar] [CrossRef]
  26. Golcuk, A. Design and implementation of a hybrid FLC+ PID controller for pressure control of sleep devices. Biomed. Signal Process. Control 2022, 76, 103702. [Google Scholar] [CrossRef]
  27. Fritz, H.; Kinney, K.A.; Wu, C.; Schnyer, D.M.; Nagy, Z. Data fusion of mobile and environmental sensing devices to understand the effect of the indoor environment on measured and self-reported sleep quality. Build. Environ. 2022, 214, 108835. [Google Scholar] [CrossRef]
  28. Kelly, J.M.; Strecker, R.E.; Bianchi, M.T. Recent developments in home sleep-monitoring devices. Int. Sch. Res. Not. 2012, 2012, 768794. [Google Scholar] [CrossRef]
  29. Liang, Z.; Ploderer, B.; Liu, W.; Nagata, Y.; Bailey, J.; Kulik, L.; Li, Y. SleepExplorer: A visualization tool to make sense of correlations between personal sleep data and contextual factors. Pers. Ubiquitous Comput. 2016, 20, 985–1000. [Google Scholar] [CrossRef]
  30. Lawson, S.; Jamison-Powell, S.; Garbett, A.; Linehan, C.; Kucharczyk, E.; Verbaan, S.; Rowland, D.A.; Morgan, K. Validating a mobile phone application for the everyday, unobtrusive, objective measurement of sleep. In Proceedings of the SIGCHI Conference on Human Factors in Computing Systems, Paris, France, 27 April–2 May 2013; pp. 2497–2506. [Google Scholar]
  31. Min, J.K.; Doryab, A.; Wiese, J.; Amini, S.; Zimmerman, J.; Hong, J.I. Toss’n’turn: Smartphone as sleep and sleep quality detector. In Proceedings of the SIGCHI Conference on Human Factors in Computing Systems, Toronto, ON, USA, 26 Apil–1 May 2014; pp. 477–486. [Google Scholar]
  32. Kay, M.; Choe, E.K.; Shepherd, J.; Greenstein, B.; Watson, N.; Consolvo, S.; Kientz, J.A. Lullaby: A capture & access system for understanding the sleep environment. In Proceedings of the 2012 ACM Conference on Ubiquitous Computing, Pittsburgh, PA, USA, 5–8 September 2012; pp. 226–234. [Google Scholar]
  33. Hao, T.; Xing, G.; Zhou, G. isleep: Unobtrusive sleep quality monitoring using smartphones. In Proceedings of the 11th ACM Conference on Embedded Networked Sensor Systems, Roma, Italy, 11–15 November 2013; pp. 1–14. [Google Scholar]
  34. Chen, Z.; Lin, M.; Chen, F.; Lane, N.D.; Cardone, G.; Wang, R.; Li, T.; Chen, Y.; Choudhury, T.; Campbell, A.T. Unobtrusive sleep monitoring using smartphones. In Proceedings of the 2013 7th International Conference on Pervasive Computing Technologies for Healthcare and Workshops, Venice, Italy, 5–8 May 2013; pp. 145–152. [Google Scholar]
  35. Liu, X.; Cao, J.; Tang, S.; Wen, J. Wi-sleep: Contactless sleep monitoring via wifi signals. In Proceedings of the 2014 IEEE Real-Time Systems Symposium, Rome, Italy, 2–5 December 2014; pp. 346–355. [Google Scholar]
  36. Lin, F.; Zhuang, Y.; Song, C.; Wang, A.; Li, Y.; Gu, C.; Li, C.; Xu, W. SleepSense: A noncontact and cost-effective sleep monitoring system. IEEE Trans. Biomed. Circuits Syst. 2016, 11, 189–202. [Google Scholar] [CrossRef]
  37. Tal, A.; Shinar, Z.; Shaki, D.; Codish, S.; Goldbart, A. Validation of contact-free sleep monitoring device with comparison to polysomnography. J. Clin. Sleep Med. 2017, 13, 517–522. [Google Scholar] [CrossRef]
  38. Tuominen, J.; Peltola, K.; Saaresranta, T.; Valli, K. Sleep parameter assessment accuracy of a consumer home sleep monitoring ballistocardiograph beddit sleep tracker: A validation study. J. Clin. Sleep Med. 2019, 15, 483–487. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  39. Ren, Y.; Wang, C.; Yang, J.; Chen, Y. Fine-grained sleep monitoring: Hearing your breathing with smartphones. In Proceedings of the 2015 IEEE Conference on Computer Communications (INFOCOM), Hong Kong, China, 26 April–1 May 2015; pp. 1194–1202. [Google Scholar]
  40. Yang, Z.; Pathak, P.H.; Zeng, Y.; Liran, X.; Mohapatra, P. Vital sign and sleep monitoring using millimeter wave. ACM Trans. Sens. Networks (TOSN) 2017, 13, 1–32. [Google Scholar] [CrossRef]
  41. Ana María Concha Villarroel, A.M.; López Gutiérrez, M.C.; Palma Fuentes, J.; Pezoa Reyes, R.; Riveros Farías, C. Guía para la Clasificación de Dispositivos Médicos Según Riesgo; Instituto de Salud Pública: Santiago, Chile, 2018; p. 28. [Google Scholar]
Figure 1. Wireless network with radiofrequency nodes.
Figure 1. Wireless network with radiofrequency nodes.
Futureinternet 14 00270 g001
Figure 2. Routing node network neighbor table.
Figure 2. Routing node network neighbor table.
Futureinternet 14 00270 g002
Figure 3. Example of noise sensor value request with MAC address DD23.
Figure 3. Example of noise sensor value request with MAC address DD23.
Futureinternet 14 00270 g003
Figure 4. Time of Sleep Before Experiment.
Figure 4. Time of Sleep Before Experiment.
Futureinternet 14 00270 g004
Figure 5. Exposure to Light Before Experiment.
Figure 5. Exposure to Light Before Experiment.
Futureinternet 14 00270 g005
Figure 6. Position of Sleep Before Experiment.
Figure 6. Position of Sleep Before Experiment.
Futureinternet 14 00270 g006
Figure 7. Sleep Cycles During Experiment Bad Habits.
Figure 7. Sleep Cycles During Experiment Bad Habits.
Futureinternet 14 00270 g007
Figure 8. Wellness During Experiment Bad Habits.
Figure 8. Wellness During Experiment Bad Habits.
Futureinternet 14 00270 g008
Figure 9. Sleep Cycles During Experiment Good Habits.
Figure 9. Sleep Cycles During Experiment Good Habits.
Futureinternet 14 00270 g009
Figure 10. Wellness During Experiment Good Habits.
Figure 10. Wellness During Experiment Good Habits.
Futureinternet 14 00270 g010
Figure 11. Exposure to Light After Experiment.
Figure 11. Exposure to Light After Experiment.
Futureinternet 14 00270 g011
Figure 12. Position of Sleep After Experiment.
Figure 12. Position of Sleep After Experiment.
Futureinternet 14 00270 g012
Figure 13. Sleep Cycles After Experiment.
Figure 13. Sleep Cycles After Experiment.
Futureinternet 14 00270 g013
Figure 14. Wellness After Experiment First Week.
Figure 14. Wellness After Experiment First Week.
Futureinternet 14 00270 g014
Figure 15. Wellness After Experiment Second Week.
Figure 15. Wellness After Experiment Second Week.
Futureinternet 14 00270 g015
Figure 16. Percentage of sleep improvement with the sensor network for men and for women.
Figure 16. Percentage of sleep improvement with the sensor network for men and for women.
Futureinternet 14 00270 g016
Figure 17. Example of a sleep improvement application with the sensor network for a user. Screenshots of the cell phone corresponds to no sensor network.
Figure 17. Example of a sleep improvement application with the sensor network for a user. Screenshots of the cell phone corresponds to no sensor network.
Futureinternet 14 00270 g017
Figure 18. Example of a sleep improvement application with the sensor network for a user. Screenshots of the cell phone corresponds with sensor network.
Figure 18. Example of a sleep improvement application with the sensor network for a user. Screenshots of the cell phone corresponds with sensor network.
Futureinternet 14 00270 g018
Figure 19. Behavior of vital signs in people with the sensor network and without the sensor network.
Figure 19. Behavior of vital signs in people with the sensor network and without the sensor network.
Futureinternet 14 00270 g019
Figure 20. Behavior of sleep rhythm per person under stress and relaxation conditions through the sensor network.
Figure 20. Behavior of sleep rhythm per person under stress and relaxation conditions through the sensor network.
Futureinternet 14 00270 g020
Figure 21. Box plot of the sleep rhythm per person under stress and relaxation conditions through the sensor network.
Figure 21. Box plot of the sleep rhythm per person under stress and relaxation conditions through the sensor network.
Futureinternet 14 00270 g021
Figure 22. Box plot for three random people in the sample.
Figure 22. Box plot for three random people in the sample.
Futureinternet 14 00270 g022
Figure 23. Distribution values for three random people in the sample.
Figure 23. Distribution values for three random people in the sample.
Futureinternet 14 00270 g023
Figure 24. Histogram for three random people in the sample.
Figure 24. Histogram for three random people in the sample.
Futureinternet 14 00270 g024
Figure 25. Q-Q plot for three random people in the sample.
Figure 25. Q-Q plot for three random people in the sample.
Futureinternet 14 00270 g025
Table 1. Comparison of metrics with related work to sensors and/or wearables for sleep monitoring.
Table 1. Comparison of metrics with related work to sensors and/or wearables for sleep monitoring.
ReferenceMetricsSystem Type% Sleep ImprovementExperimental Validation Period
[29]Minutes asleep, Minutes awake, Number of awakenings, Minutes to fall asleep, Sleep efficiencyInvasive5%2 weeks
[30]Bed time, sleep onset latency, the number of times they woke up during the night, wake after sleep onset, final wake time, the time they got up, and how long they spent in bedNon-invasiveNo reported1 week
[31]Sound amplitude, Acceleration, Light intensity and screen proximity, List of running apps, Battery states, Screen states, Sleep diaryNon-invasive16%1 week
[32]Factors relating to their sleep quality and environmental conditions to look for trends and potential causes of sleep disruptionsNon-invasiveNo reported2 weeks
[33]Power spectrals of moving, snoring and coughingNon-invasiveNo reported1 week
[34]Best effort sleep (BES) model: sleep durationNon-invasiveNo reported1 week
[35]Vision-based sleep monitoring system, BreathingNon-invasiveNo reportedNo reported
[36]sleep status, on-bed movement, bed exit, and breathingNon-invasiveNo reported1 week
[37]Average total sleep time (TST), % wake, % rapid eye movement, and % non-rapid eye movement sleepNon-invasiveNo reported2 weeks
[38]Total sleep time, sleep onset latency, wake after sleep onset, and sleep efficiencyNon-invasiveNo reported1 week
[38]Total sleep time, sleep onset latency, wake after sleep onset, and sleep efficiencyNon-invasiveNo reported1 week
[39]Sleep, such as body movement, cough and snoreNon-invasiveNo reported26 weeks
[40]Breathing rate, heart rateNon-invasiveNo reported2 weeks
This workHeart rate, Breathing frequency, Temperature, Oxygen saturation, Total sleep time, REM sleep, Deep sleep, Heart Rate Variability, SnoringNon-invasive15%4 weeks
Table 2. In-Room System Sensor Specifications.
Table 2. In-Room System Sensor Specifications.
SensorFeatures
MotionDC 4.5–20 V, 50 μ A delay: 5–200 S(adjustable) the range is (0.xx second to tens of second), Operation Temp.: −15–+70 degrees, Detection Range: 3 m to 7 m.
Pressure, temperature and humidityCombines thermometer, barometer and hygrometer. Temperature range from −40 to +85 ° C with an accuracy of ±1 ° C and resolution of 0.01 ° C, and for pressure 300–1100 hPa, accuracy of ±1 Pa, and resolution of 0.18 Pa. Due to its behavior as a hygrometer, the BME280 has a relative humidity measurement range of 0 to 100%, with an accuracy of ±3% Pa and a resolution of 0.008%. Supply voltage range: 1.71 V to 3.6 V. Accuracy tolerance ±3% relative humidity.
NoiseULTRASONIC SENSOR HRXL-MAXSONAR. MAX4466 with adjustable gain. 20–20 KHz electric microphone. 2.4–5 VDC. 3.7 W. Frequency: 42 kHz. Type: Transmitter, Receiver. Maximum detection distance: 765 cm. Consumption: 2.1 mA. Operating temperature: −40 ° C 65 ° C.
LightLDR photoresistor sensor module. Main chip: LM393. Minimum supply voltage: 3.3 V. Maximum supply voltage: 5 V. Output Type: Digital.
Gyroscope7A994. Axis Type: Single. Typical Angular Velocity (°/s): ±300. Typical Operating Supply Voltage (V): 3.3|5. Minimum Operating Temperature ( ° C): −40. Maximum Operating Temperature ( ° C): 105. Linearity: No.
Air qualityZPHS01C Multi-in-One Air quality monitoring Sensor Module. Target Gas:PM2.5, CO2, CH2O, TVOC, Temperature and Humidity. Applications: Gas detector, Air conditioner, Air quality monitoring, Air purifier, HVAC system, Smart home.
Table 3. Qualitative approach indicators.
Table 3. Qualitative approach indicators.
ParameterParticipants 1st WeekParticipants 2nd Week
Complete sleep cycles528
Incomplete sleep cycles274
Without exposure to light2729
With exposure to light53
Side sleeping1722
Back/Stomach position1510
Wellness after sleep1521
Table 4. Core questions on cardiovascular and respiratory conditions.
Table 4. Core questions on cardiovascular and respiratory conditions.
Question
Are you diabetic?
Has any close relative (mother father, grandparents, or siblings) died suddenly before age 40 from a heart problem?
Do you have any heart diseases?
Do you have high blood pressure?
How often do you do physical exercise?
Have you felt dizzy when you exercise or play sports?
Have you ever had chest pain during exercise?
Have your nails or lips turned purple or bluish while exercising?
Have you felt that you cannot breathe after exercising?
Are you a smoker?
Do you have asthma?
Do you have exhaustion (tired) or lack of energy?
Does it present oxygenation above 90%?
Table 5. Vital signs metrics.
Table 5. Vital signs metrics.
MetricTypical ValuesAverage Value without Sensor NetworkAverage Value with Sensor Network
Heart rate (HR)60 to 100 beats per min81.280.72
Breathing frequency (BF)12 to 18 breaths per min15.7216.6
Temperature (T)97.8 ° F to 99.1 ° F (36.5 ° C to 37.3 ° C)36.8737.16
Oxygen saturation (OS)95–100%95.0493.84
Total sleep time (TST)between 7 and 8 h6.966.04
REM sleep (REMS)between 20–25% of total sleep time21.6419.54
Deep sleep (DS)between 10–20% of sleep time15.5212.22
Heart Rate Variability (HRV)Higher HRV indicates a relaxed and less stressed state than a lower HRV14.710.22
Snoring (S)few or none of sleep time5.97.44
Table 6. Basic usability and user experience metrics.
Table 6. Basic usability and user experience metrics.
MetricQuestion
EffectivenessCan users achieve their goal with the application or the system?
EfficiencyIs low mental effort required to launch the application or system?
SatisfactionCan you reach your goal with minimal effort?
LearnabilityCan you use the application or system without instructions in an intuitive way?
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Morales-Vizcarra, E.; Del-Valle-Soto, C.; Visconti, P.; Cortes-Chavez, F. Analysis and Correlation between a Non-Invasive Sensor Network System in the Room and the Improvement of Sleep Quality. Future Internet 2022, 14, 270. https://doi.org/10.3390/fi14100270

AMA Style

Morales-Vizcarra E, Del-Valle-Soto C, Visconti P, Cortes-Chavez F. Analysis and Correlation between a Non-Invasive Sensor Network System in the Room and the Improvement of Sleep Quality. Future Internet. 2022; 14(10):270. https://doi.org/10.3390/fi14100270

Chicago/Turabian Style

Morales-Vizcarra, Eduardo, Carolina Del-Valle-Soto, Paolo Visconti, and Fabiola Cortes-Chavez. 2022. "Analysis and Correlation between a Non-Invasive Sensor Network System in the Room and the Improvement of Sleep Quality" Future Internet 14, no. 10: 270. https://doi.org/10.3390/fi14100270

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