Next Article in Journal
Sensor Drift Compensation Based on the Improved LSTM and SVM Multi-Class Ensemble Learning Models
Next Article in Special Issue
Towards Real-Time Prediction of Freezing of Gait in Patients With Parkinson’s Disease: Addressing the Class Imbalance Problem
Previous Article in Journal
Cooperative Localization Approach for Multi-Robot Systems Based on State Estimation Error Compensation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Detection of Sleep Biosignals Using an Intelligent Mattress Based on Piezoelectric Ceramic Sensors †

1
School of Computer Science and Information Engineering, Hefei University of Technology, Hefei 230601, China
2
Anhui Province Key Laboratory of Industry Safety and Emergency Technology, Hefei 230601, China
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in Chen, W.; Zhou, Q.; Cheng, X.; Peng, M.; Xu, L. A Novel User Sleep Information Monitoring System Based on Non-Contact Mattress. In Proceedings of the International Conference on Telecommunications and Communication Engineering, Beijing, China, 28–30 November 2018.
Sensors 2019, 19(18), 3843; https://doi.org/10.3390/s19183843
Submission received: 4 August 2019 / Revised: 26 August 2019 / Accepted: 4 September 2019 / Published: 5 September 2019
(This article belongs to the Special Issue Wearable System-Based Sensors for Ambient Assisted Living)

Abstract

:
Physiological information such as respiratory rate and heart rate in the sleep state can be used to evaluate the health condition of the sleeper. Traditional sleep monitoring systems need body contact and are intrusive, which limits their applicability. Thus, a comfortable sleep biosignals detection system with both high accuracy and low cost is important for health care. In this paper, we design a sleep biosignals detection system based on low-cost piezoelectric ceramic sensors. 18 piezoelectric ceramic sensors are deployed under the mattress to capture the pressure data. The appropriate sensor that captures respiration and heartbeat sensitively is selected by the proposed channel-selection algorithm. Then, we propose a dynamic smoothing algorithm to extract respiratory rate and heart rate using the selected data. The dynamic smoothing can separate heartbeat signals from respiratory signals with low complexity by dynamically choosing the smooth window, and it is suitable for real-time implementation in low-cost embedded systems. For comparison, wavelet analysis and ensemble empirical mode decomposition (EEMD) are performed in a personal computer (PC). Experimental results show that data collected by piezoelectric ceramic sensors can be used for respiratory-rate and heart-rate detection with high accuracy. In addition, the dynamic smoothing can achieve high accuracy close to wavelet analysis and EEMD, while it has much lower complexity.

1. Introduction

Sleep information can be used to assess the health status of a person to a certain extent. Abnormal changes in sleep information are usually the forerunners of diseases. For instance, apnea and heart-rate variability appears in cardiovascular disease such as heart attack [1]. Thus, detecting the physiological information of people in the sleep state can help them manage their daily health and find the abnormal information [2,3], which helps to prevent tragedies from occurring.
Traditional sleep monitoring systems such as polysomnography (PSG) [4] are often used to detect the information of patients in hospitals or other institutions. They use sensors to collect data in various parts of the body such as the head, chest and abdomen of the patient. These intrusive measurement methods make the patient uncomfortable, which may probably affect the physiological indicators of the patient and get inaccurate information. In addition, when the patient moves or turns over, the sensors may fall off. Moreover, such sleep monitors are costly and complicated to operate, which limits their applicability in people’s lives.
In recent years, smart wearable devices such as wristbands and watches that can detect various physiological information of the human body have appeared [5,6,7]. However, such devices usually have low precision and need to direct contact with the skin. Since the bed is the basic requirement of sleep, using an intelligent bed or mattress to detect sleep biosignals has been the object of many research studies [8,9,10]. Unfortunately, most of these sensors used in intelligent beds or mattresses are costly or easy to damage. To meet the requirement of sleep biosignals detection for ordinary families, especially poor families, a low-cost and high-accuracy sleep biosignals detection system is required.
This paper proposes a low-cost intelligent mattress system to monitor sleep biosignals. Several piezoelectric ceramic sensors are placed under a normal latex mattress to sense respiration, heartbeat and body movements during sleep. The piezoelectric ceramic sensor has many advantages for physiological information detection. First, it can capture the pressure changes caused by small vibrations and convert them into electrical signals. Thus, through piezoelectric ceramic sensors, signals caused by breathing and heartbeat can be obtained. Second, it has much lower cost that other sensors such as piezoelectric film sensors and optical fiber sensors.
In this paper, data from a specific sensor is known as a data channel. Since sensors are deployed in different positions, parts of data channels cannot capture respiratory signals and heartbeat signals clearly because the corresponding sensors are far from the chest. On the other hand, to reduce the complexity, only one data channel is used for biosignals detection at a certain moment. Obviously, the selection of the data channel affects the detection accuracy. Experimental results show that the sensors close to the chest can capture respiratory signals and heartbeat signals more sensitively, and the corresponding data usually have larger variance. Thus, we propose a channel-selection algorithm by comparing the variance of data from different channels. Then, the physiological information is obtained through the data from the selected channel.
Wavelet analysis and EEMD are commonly used algorithms for time-frequency analysis. However, the complexity of wavelet transform and EEMD is high, and a powerful central processing unit (CPU) or additional chips are required to perform them in an embedded system. In this paper, we propose a dynamic smoothing algorithm to detect respiratory rate and heart rate with low complexity. By smoothing the original data with a dynamical smooth window, the waveform related to respiration can be obtained. Then, the heartbeat signals can be separated from other signals by another smoothing process. The experimental results show that piezoelectric ceramic sensors can capture respiratory signals and heartbeat signals sensitively, and the dynamic smoothing algorithm achieves a high accuracy close to wavelet analysis and EEMD.
The main contributions of this paper are summarized as follows.
  • A sleep biosignals detection system based on piezoelectric ceramic sensors is built. By deploying 18 piezoelectric ceramic sensors arranged in two rows under the mattress, pressure data all over the mattress can be captured with low cost and high robustness.
  • To select the most appropriate data channel which captures respiratory signals and heartbeat signals sensitively, we propose a channel-selection algorithm based on the comparison of the variance.
  • For the purpose of implementing the sleep biosignals detection in a low-cost embedded system, the dynamic smoothing algorithm is proposed. In addition, time complexity and space complexity of the proposed algorithm are analyzed.
In the rest of this paper, we first review the related work in Section 2. Afterward, we introduce the framework of the sleep biosignals detection system in Section 3. In Section 4, sleep biosignals detection using wavelet analysis, EEMD, and dynamic smoothing is detailed. Then, experimental results are shown and analyzed in Section 5. Finally, we draw conclusions in Section 6.

2. Related Work

Electrical power can be generated from vibrations associated with movements of the human body through various sensors [11], hence respiration and heartbeat can be captured according to these slight vibrations. In recent years, there have been some works concentrating on detecting respiratory rate and heart rate using thin film piezoelectric sensors [12,13] and optical fiber sensors [14,15,16,17,18]. Based on the data measured by sensors, several methods are used to obtain respiratory rate and heart rate [7] using Ballistocardiography (BCG) [19], electrocardiogram (ECG) [20,21], photoplethysmogram (PPG) [22], and Seismocardiography (SCG) [19,23].
Thin film piezoelectric sensors can capture the slight vibration of the human body. Bu et al. [12] used a flexible piezoelectric thin film sensor to collect signals for respiration and heartbeat detection during sleep, and they employed empirical mode decomposition (EMD) which is proposed by Huang et al. [24] to extract signals corresponding to respiration and heartbeat from the measured data. Fujita et al. [13] developed a sensor made on a flexible thin film using polyvinylidene fluoride (PVDF) and poly dimethyl siloxane (PDMS) to monitor the heartbeat and respiration.
Optical fiber sensors can also sense the movements of the human body by measuring time of flight. Lau et al. [14] described a microbend fiber-optic sensor system to monitor respiratory signals in the magnetic resonance imaging (MRI) environment. Fajkus et al. [15] proposed a multichannel fiber-optic sensor system for basic vital sign monitoring. In [15], the Fourier series analysis was used to calculate respiratory rate and heart rate. Based on the optical coupling intensity ratio between an input and a set of aligned output optical fibers, Kam et al. [16] presented an aplastic optical fiber sensor for respiratory monitoring. Otis et al. used a new generation of mattress-based fiber-optic sensor for heart rate monitoring [17]. In [17], the peak searching algorithm, EMD, clustering and cepstrum methods [25] were compared for heart-rate detection. Aitkulov et al. [18] proposed a sensor based on the integration of a smartphone with a plastic optical fiber by using the flashlight as the source and the camera as a photodetector, and they applied the Fast Fourier Transformation (FFT) to detect heart rate.
Besides thin film piezoelectric sensors and optical fiber sensors, some other sensors have been used for sleep biosignals detection. Jia et al. [9] deployed a commercial off-the-shelf analog geophone under the mattress to monitor the user’s heartbeats during sleep, and sample auto-correlation function (ACF) was used to extract the periodicity of the captured signals and obtain the heart rate. Perez-Macias et al. [10] presented an automatic snore detection method using an electromechanical film transducer (Emfit) signal. Nayaka et al. [26] involved the use of a smart bed system to detect physiological information of the human body. The system inserts a pressure sensitive sensor between the wheel and the bed to obtain various physiological information of the human body. Lee et al. [22] designed a non-contact physiological detection pillow, in which the PPG sensor module and the capacitor coupled-ECG (CC-ECG) sensor module were embedded.
In contrast to the above research, we use piezoelectric ceramic sensors [27] which have higher stability and lower price to capture respiratory signals and heartbeat signals. In addition, although algorithms such as EMD have high accuracy, their complexity is too high to be performed in a low-cost embedded system. In this paper, we propose a dynamic smoothing method to detect respiratory rate and heart rate with low complexity, and the performance of piezoelectric ceramic sensors is confirmed by using the collected data to obtain respiratory rate and heart rate through wavelet analysis, EMD and dynamic smoothing.

3. The Framework of the Sleep Biosignals Detection System

To get the sleep biosignals with low cost, we build an intelligent mattress system based on piezoelectric ceramic sensors. In this system, respiratory rate, heart rate, and the number of turning over are considered, and the detection of sleep biosignals can be performed in a real-time manner. The whole system consists of signal collection, channel selection for appropriate signals, and sleep biosignals detection, as shown in Figure 1.

3.1. Signal Collection by Piezoelectric Ceramic Sensors

In this paper, purchased piezoelectric ceramic sensors are used for signal collection because of their low cost and high robustness. As shown in Figure 2, the piezoelectric ceramic sensor consists of a piezoelectric ceramic sheet and a metal sheet. The diameter of the piezoelectric ceramic sensor is 15 mm, and the thickness is 0.15 mm.
The internal dielectric of the piezoelectric ceramic sensor has positive piezoelectric effect and electrostrictive effect. And the deformation of the sensor will cause the change of the electric field.
T = c S e E g E 2 D = ϵ E + e S + g E S
where T is mechanical stress, and D is electrical induction. c, e, and g are elastic, piezoelectric, and electrostrictive constants, respectively. S is the mechanical strain, E is the electric field intensity, and ϵ is the permittivity.
When the piezoelectric ceramic sensor suffers a slight deformation, electric charges will be generated on the surface of the sensor. By measuring the voltage, the changes in pressure on the sensor can be captured.
Since the user may lie at different positions on the mattress, to collect data from almost the whole mattress, 18 piezoelectric ceramic sensors are deployed uniformly under the mattress, as shown in Figure 3.
When a person is sleeping on the mattress, the piezoelectric ceramic sensors under the mattress will suffer a slight deformation because of movements, respiration, and heartbeat. According to (1), the amplitude of the signals collected by the piezoelectric ceramic sensor is proportional to the vibration amplitude of the user’s body.
The original signals generated by piezoelectric ceramic sensors are usually slightly changed because the deformation caused by respiration and heartbeat is not obvious. To capture respiratory signals and heartbeat signals, amplifiers which can be implemented by discrete devices or in semiconductor chips are required. In this paper, we use 10x amplification to amplify the 0–300 mV signals generated by piezoelectric ceramic sensors to 0–3 V.
In addition, the analog voltage on the surface of the sensor should be converted into digital signals by analog-to-digital conversion (ADC). The sampling frequency of ADC in our system is 100 Hz.

3.2. Channel Selection for Appropriate Signals

Sensors are distributed in different positions, hence data collected by sensors are various. Figure 4 shows an illustration of data collected by different sensors. In the figure, there are 100 samples per second since the sampling frequency of ADC is 100 Hz.
The detection algorithms will use data series with a specific length to obtain biosignals. Thus, the continuously data collected by sensors should be divided into lots of data series at first. And the duration of each data series is defined as the time period. For example, the time period in Figure 4 is 20 s.
As shown in Figure 4, if the fluctuation of data is too small, it is difficult to extract respiratory rate and heart rate. To detect respiratory rate and heart rate more accurately, an appropriate channel (i.e., the sensor which can capture respiratory signals most sensitively) should be selected [28]. Moreover, since the user may turn over during sleep, the appropriate channel probably changes. Thus, the channel-selection process should be implemented periodically.
Obviously, the sensors near the chest are easier to capture changes caused by respiration and heartbeat, and they will obtain data with large variance.
In this paper, the variance of data from the i-th channel in the t-th time period is defined as
S t , i = n = 1 N x t , i ( n ) μ 2 N
where X = { x t , i ( n ) } is the data series obtained from the i-th channel in the t-th time period, N is the length of the data series, and μ is the mean value of X.
The variance of data is used for channel selection. The channel with the maximum variance is selected as the appropriate channel in this time period.
I t = arg max i S t , i , i = 1 , 2 , , 18
where I t is the selected channel in the t-th time period.

3.3. Sleep Biosignals Detection

In addition to respiration and heartbeat, the piezoelectric signals are affected by many other factors such as circuit noise and human’s actions. The circuit noise is mainly the alternating current (AC) noise with the frequency of 50 Hz or 60 Hz. Therefore, the Twin-T notch filter [29] is used. An effective attenuation at the given frequency can be obtained through the appropriate Twin-T design. After preprocessing and denoising, the respiratory rate and heart rate can be extracted using the data from the appropriate channel.
In the built intelligent mattress, all processes are performed in the embedded system, and the micro controller unit (MCU) is STM32L151 with 32 KB Flash and 32 MHz CPU. Thus, the complexity of the detection algorithm should be considered. In this paper, a dynamic smoothing algorithm is proposed to extract respiratory rate and heart rate with low complexity. Meanwhile, wavelet analysis and EEMD are performed on a PC to obtain respiratory rate and heart rate and evaluate the validity of data collected by piezoelectric ceramic sensors.

4. Sleep Biosignals Detection Using Wavelet Analysis, EEMD, and Dynamic Smoothing

Once the user is on the mattress, the sleep biosignals detection system will select the appropriate channel to detect physiological information. To obtain the sleep time and save power, a preprocess of leaving bed detection is introduced.

4.1. Leaving Bed Detection

In this paper, 18 sensors are used to collect signals caused by the user’s respiration and heartbeat. If there is no body on the mattress, all sensors have almost no deformation, and all collected data maintain a stable value or just have slight changes. On contrary, when a person is on the mattress, parts of sensors will produce data with great changes due to human movements, breathing, and heartbeat. According to this phenomenon, the variance of data can distinguish whether there is someone on the mattress.
In the t-th time period, the total variance of all channels is
C S t = i = 1 18 S t , i
where S t , i is the variance of the data from the i-th channel in the t-th time period.
If C S t is larger than the threshold, it indicates that there is someone on the mattress. Otherwise, there is nobody on the mattress, and the following processes are not required.

4.2. Turning Over Detection

The frequency of turning over is important for evaluating the quality of sleep. To detect turning over, sensors are divided into several regions. Sensors in the region close to the chest will obtain stronger signals than others. If the user turns over, the region with the strongest signals will change.
Assume the k-th region consists of 6 channels (i.e., channel k 1 to channel k 6 ), namely R k = { k 1 , k 2 , , k 6 } . Then, the total variance of this region can be calculated as
E k , t = i R k S t , i
In the t-th time period, suppose the k-th region has the maximum total variance. In the next time period, if the region with the maximum total variance is changed, turning over is detected.

4.3. Respiratory-Rate and Heart-Rate Detection

In this section, the respiratory-rate and heart-rate detection is introduced in detail. Typical signals from an appropriate channel are shown in Figure 4b. It can be seen that respiratory signals and heartbeat signals are mixed with circuit noise and signals caused by human movements. In order to extract respiratory rate and heart rate from the mixed signals, three different methods, i.e., wavelet analysis, EEMD, and dynamic smoothing, are used.

4.3.1. Wavelet Analysis

Wavelet transform is a signal analysis method developed based on Fourier transform. In the Fourier transform, original signals are transformed from the time domain to the frequency domain. The collected data from the sensors are non-stationary time series, and the Fourier transform cannot show the features both in time domain and frequency domain comprehensively. Instead, the wavelet transform can decompose non-stationary signals into different components, and it can highlight the local characteristics of signals in both time and frequency domains. Therefore, the wavelet transform is a commonly used method to detect respiratory rate and heart rate.
W f ( a , τ ) = f ( x ) , ψ ( a , τ ) = 1 a f ( x ) * ψ ( x τ a ) d t , a > 0
where ψ ( a , τ ) is the wavelet function, a is the scaling factor, and τ is the translation factor. By adjusting the scaling factor a and the translation factor τ , wavelets with different frequency widths can be obtained.
In this paper, Daubechies wavelets ( d b N ) [30], Coiflets wavelets ( c o i f N ) [31] and Symlets wavelets ( s y m N ) [32] are used, because they are similar to the heartbeat signals.
Because the original wavelet transform is too complicated, fast discrete wavelet transform methods such as Mallat [33] are proposed. The Mallat algorithm adopts the hierarchical decomposition method. First, the one-dimensional original signal is decomposed into a 1 and d 1 , where a 1 and d 1 are the low-frequency and high-frequency components, respectively. Then the a 1 part is further decomposed into a 2 and d 2 , so that detailed information can be obtained. The frequency of the i-th layer signal after the wavelet decomposition in this manner is [ f L , f H ] . And
f L = F s 2 i + 1
f H = F s 2 i
where F s is the sampling frequency of the original signal.
Among the collected signals, the respiratory signals are the most obvious. Thus, the respiratory rate can be obtained through a good reconstruction of various wavelet transforms. In the sleep state, the respiratory rate is 0.2 Hz– 0.5 Hz (i.e., 12–30 times per minute). The sampling frequency of the original signals is 100 Hz, and the signals are decomposed into 10 scales ( a 1 a 10 ). According to (7) and (8), the frequency range of a 7 is 0.39 Hz– 0.78 Hz, and that of a 8 is 0.19 Hz– 0.39 Hz. Then, a 7 and a 8 which cover the frequency range of the respiratory waveforms are selected for wavelet decomposition and reconstruction.
Similar to respiratory signals, heartbeat signals also fluctuate regularly but the intensity is much weaker than that of respiratory signals, and heartbeat signals are often hidden in the fluctuation of respiratory signals. As shown in Figure 5, a complete heartbeat cycle contains three waveforms, namely the P wave in the early stage, the maximum QRS wave in the middle-term fluctuation, and the T wave in the ending. The physiological structures of different human bodies are different, and the waveforms at different stages are slightly different.
The heartbeat frequency of the human body is 0.8 Hz–3 Hz (i.e., 48–180 times per minute). According to (7) and (8), the a 4 a 6 layer wavelets are selected for wavelet reconstruction to obtain heart rate. The time-frequency analysis of the signals by wavelet transform can represent the frequency change of signals in time, and the selection of the basis wavelet will affect the decomposition result. This paper uses multiple types of basis wavelets to process the original signals. Considering that the QRS wave has the largest fluctuation in the ECG waves, we select d b N , c o i f N and s y m N [30,31,32] which are approximate to the QRS wave as wavelets. Through the reconstruction experiments of various wavelets, d b 5 , d b 6 , s y m 6 , and c o i f 4 are selected. These wavelets are used for the final reconstruction, and heart rate will be extracted from the reconstructed signals.

4.3.2. EEMD

The EMD algorithm [24] can decompose the non-stationary time series to several intrinsic mode functions (IMFs) and a residual value R with each IMF representing a frequency component.
The basis function of EMD is decomposed based on the real signals, while the basis function of Fourier transform is a sine-cosine function, and that of wavelet transform is the scaling and translation of the mother wavelet. Therefore, EMD decomposition depends on the data themselves and has self-adaptability, and it is an effective method for processing nonlinear and non-stationary time series.
The steps of EMD are as follows:
Step 1: The maximum and minimum values of the data series in the i-th time period x i ( n ) are obtained. Then, the upper envelope U i ( n ) and the lower envelope L i ( n ) are obtained by the cubic spline interpolation method [34] which is widely used in image processing. In addition, the average values of U i ( n ) and L i ( n ) can be calculated.
m i ( n ) = U i ( n ) + L i ( n ) 2
Step 2: Calculate the difference between the original series x i ( n ) and the average values m i ( n ) .
h i ( n ) = x i ( n ) m i ( n )
Then, go to Step 3 if the condition of IMF is satisfied, otherwise, regard h i ( n ) as new data series and repeat Step 1 and Step 2.
Step 3: Calculate the residual value
r i ( n ) = x i ( n ) h i ( n )
Step 4: Regard r i ( n ) as new original data series and repeat the above operations.
At last, a total of m IMFs are obtained. The decomposition ends when the following criterion is satisfied:
n = 1 N | h i , m 1 ( n ) h i , m ( n ) | 2 h i , m 1 ( n ) 2 0.2
where m is the number of IMFs and N is the length of data in this time period.
After EMD, x i ( n ) can be denoted as
x i ( n ) = k = 1 m I M F ( k ) + R ,
where R is the residual value.
EMD has good data decomposition characteristics, but it also has defects such as mode mixing. Mode mixing means that there are very different characteristic time scales in an IMF component, or adjacent characteristic time scales are included in different IMFs. To solve the problem of mode mixing in EMD, the ensemble EMD (EEMD) algorithm [35] was proposed. EEMD adds white Gaussian noise signals with different amplitudes to the original signals. The added white noise can compensate for the missing time scales, and then the signals have continuity at different time scales.

4.3.3. Dynamic Smoothing

Since wavelet and EEMD have high complexity, we propose a simple dynamic smoothing method to obtain respiratory rate and heart rate. The basic idea of the dynamic smoothing is to smooth the data series with a dynamic window, and the length of the window depends on the recent respiratory rate or heart rate.
To get the signals corresponding to respiration, we smooth the data series with a smooth window of 2W+1, where W = [ F s / ( 4 r ) ] . F s is the sampling frequency of the signals (i.e., 100 Hz), and r is the latest respiratory rate (in Hz). In the sleep state, respiratory rate is usually below 0.5 Hz (i.e., 30 times per minute). Thus, W 50 , and the initial value of r is set to 0.5 Hz.
Assume that the data series in the i-th time period are X = { x i ( n ) , n = 1 , 2 , , N } , where N is the length of the data series. Then, the smoothed data series are
x i ( n ) = m = n W n + W x i ( m ) 2 W + 1 W < n N W m = 1 2 n 1 x i ( m ) 2 n 1 1 n W m = 2 n N N x i ( m ) 2 N 2 n + 1 N W < n N
According to { x i ( n ) } , respiratory rate can be obtained by searching for the peaks and count the number of peaks.
Then, the data series with respiratory signals removed are approximated to the difference between the original data series and the smoothed data series.
y i ( n ) = x i ( n ) α x i ( n )
where α is an amplification coefficient. The purpose of this coefficient is to eliminate the effect of the smoothing process. After smoothing, the average amplitude of x i ( n ) is less than that of x i ( n ) . And α is estimated by comparing x i ( n ) and x i ( n ) around the peaks. Assume x i ( n ) is a peak value when n = k , then
α = n = k L k + L x i ( n ) n = k L k + L x i ( n )
where L is a value far less than W.
Similarly, the data series should be smoothed with a smooth window of 2 w + 1 to obtain heart rate, where w = [ F s / ( 4 h ) ] and h is the latest heart rate (in Hz). In the sleep state, heart rate is usually less than 2 Hz (120 times per minute). The initial value of h is set to 2 Hz.
The smoothed data series for heart-rate detection are
y i ( n ) = m = n w n + w y i ( m ) 2 W + 1 w < n N w m = 1 2 n 1 y i ( m ) 2 n 1 1 n w m = 2 n N N y i ( m ) 2 N 2 n + 1 N w < n N
At last, heart rate can be obtained by searching for the peaks in { y i ( n ) } .

5. Experiments and Analysis

To confirm the validity of data collected by piezoelectric ceramic sensors and evaluate the sleep biosignals detection algorithms, experiments are performed in the laboratory under the same conditions as the bedroom. Piezoelectric ceramic sensors are arranged in two rows under the latex mattress, and the experimenters lie on the mattress.
Wavelet analysis, EEMD, and dynamic smoothing are used to obtain respiratory rate and heart rate using the data from the appropriate channel. While process the signals, three different lengths of time period are considered (i.e., 10 s, 30 s, and 60 s). As wavelet analysis and EEMD are too complex to be implemented in the STM32L151 embedded system, wavelet analysis and EEMD are run in a PC, while the dynamic smoothing algorithm is performed in the embedded system in a real-time manner.
When three algorithms are implemented to detect respiratory rate and heart rate, the heart rate is monitored synchronously using the contact medical ECG detector PC-80B, and the finger oximeter is used to synchronously measure the respiratory rate as a comparison. In the experiments, a total of 10 sets of results are obtained. By comparing the value obtained by detection algorithms and the true value measured by the finger oximeter or PC-80B, the accuracy can be obtained. In this paper, the accuracy is defined as
A c c u r a c y = V a l u e m e a s u r e d V a l u e t r u e V a l u e t r u e
where V a l u e t r u e is the value from the finger oximeter or PC-80B.

5.1. Respiratory Rate Tests

In the experiments with the time period of 60 s, the results of respiratory rate are shown in Table 1. The wavelet analysis has the highest accuracy and can exactly obtain respiratory rate in most cases. Meanwhile, EEMD and dynamic smoothing also achieve high accuracy. In the experiments with the time period of 30 s and 10 s, the results are shown in Table 2 and Table 3, respectively. With the time period of 30 s and 10 s, the accuracy decreases in all algorithms. In general, wavelet analysis and dynamic smoothing achieve better accuracy.
It is noted that the respiratory rate is updated every 10 s in all tests. The difference is that respiratory rate is calculated using the data in the nearest time period (i.e., 60 s, 30 s, and 10 s). Therefore, a shorter time period means that the changes in respiratory rate will be updated more quickly.

5.2. Heart-Rate Tests

Since heartbeat signals are very weak and superimposed on respiratory signals, heart-rate detection is much more difficult than respiratory rate detection. To evaluate the performance of heart-rate detection comprehensively, the signals obtained by different algorithms are shown at first, then the overall detection accuracy of each algorithm with different time periods will be shown.
The heartbeat signals obtained by different algorithms and PC-80B are shown in Figure 6. Wavelet analysis can extract heartbeat signals very well, and the outline of ECG waves can be seen since d b N , s y m N , and c o i f N wavelets which are approximate to the QRS wave are used in wavelet analysis. The signals obtained by EEMD can find most of peaks correctly, but the ECG waveforms are missing since the signals are reconstructed by IMFs which mainly reflect the frequency. In the signals extracted by dynamic smoothing, most of peaks are found correctly too. Since the signals are obtained through smoothing, the ECG waveforms are also missing. Fortunately, in terms of heart-rate detection, all these algorithms are very accurate.
The accuracy of heart-rate detection with the time period of 60 s, 30 s, and 10 s is shown in Table 4, Table 5 and Table 6, respectively. In a word, the wavelet analysis has the highest accuracy, meanwhile, EEMD and dynamic smoothing also achieve high accuracy. The accuracy decreases with the decrease of the time period in all algorithms, and the accuracy of dynamic smoothing declines most slowly.

5.3. The Complexity Analysis

To evaluate the complexity of algorithms comprehensively, we take both time complexity and space complexity into account.

5.3.1. Time Complexity

Time complexity of the Mallat wavelet transform was analyzed in [33]. It needs N ( 3 m + 4 + 3 / 2 l o g 2 N ) multiplications and ( N + 3 N l o g 2 N ) additions, where m is the wavelet length and N is the length or the data series. In this paper, 4 basis wavelets (i.e., d b 5 , d b 6 , s y m 6 and c o i f 4 ) are used, and the time complexity is approximate to 4 times of the Mallat wavelet transform. Therefore, wavelet analysis in this paper needs ( 52 + 6 l o g 2 N ) N multiplications and 4 ( 1 + 3 l o g 2 N ) N additions.
In EEMD, the calculation of the upper and lower envelopes requires searching peaks and implementing interpolation. Comparing each point with its neighbors is required for such peak searching, and it needs 2 N comparisons. Meanwhile, the interpolation for each point requires one addition and one multiplication, thus, N additions and N multiplications are required. Then, formula (9) needs a total of N additions and N multiplications. Therefore, Step 1 needs 4N comparisons, 3N additions and 3N multiplications. Step 2 and Step 3 need N additions, respectively. It is noted that these steps should be run several times. Assume that Step 1 and Step 2 should be sun X times for each IMF. In addition, the number of IMFs are Y. Finally, a total of ( 4 N ) X Y comparisons, ( ( 3 N + N ) X + N ) Y additions, and ( 3 N ) X Y multiplications are required. In the experiments, X is set to 100, and the average value of Y is 9.
In dynamic smoothing, the smooth process (14) for each point needs 2 W additions and one multiplication, thus, a total of 2 W N additions and N multiplications are required. N additions and N multiplications are required in (15), and (16) needs 4 L additions and one multiplication. Similar to (14), (17) needs 2 w N additions and N multiplications. Therefore, a total of 3 N + 1 multiplications and 2 W N + 2 w N + N + 4 L additions are required. W and w are updated according to the latest respiratory rate and heart rate. And the average respiratory rate and heart rate are 0.3 Hz (i.e., 18 times per minute) and 1.25 Hz (i.e., 75 times per minute), respectively. Thus, the average values of W and w are 83 and 20, respectively. In addition, L is set to 10 in the experiments.
Furthermore, to calculate respiratory rate and heart rate, searching for the peaks is required in all algorithms. Thus, an additional 4 N comparisons are required in each algorithm.
When the time period is 10 s, the length of the data series is 1000 (i.e., N = 1000). In this case, the quantitative comparisons of time complexity for three algorithms are show as Table 7. Since comparisons and multiplications require much more time than additions, the proposed dynamic smoothing algorithm has lower time complexity than wavelet analysis and EEMD.

5.3.2. Space Complexity

Since STM32L151 has only 32 KB Flash, space complexity is more critical than time complexity. In the wavelet analysis, coefficient of a 1 a 10 for 4 wavelets should be stored, thus, 40 groups of data series are required. Moreover, the original data take a group of data series, and additional 2 groups of data series are required to store the reconstruction results. The original data series consist of N short integers, and each processed data series consist of N floats. Each integer and each float needs 2 bytes and 4 bytes of storage space, respectively. Therefore, it needs a total of 42 N × 4 + 2 N bytes space.
In EEMD, U i ( n ) , L i ( n ) , m i ( n ) , h i ( n ) and r i ( n ) are used in each round, and each of them consists of N data in float format. Considering that parts of data series can be covered after they have been used, at least 2 data series are required to be kept in the memory at the same time. For instance, U i ( n ) , L i ( n ) must exist at the same time to obtain m i ( n ) according to (9). More importantly, each IMF should be stored. Therefore, it needs a total of ( 2 + Y ) N × 4 + 2 N bytes of storage space, where Y is the number of IMFs. In the experiments, the average value of Y is 9.
In dynamic smoothing, x i ( n ) , x i ( n ) must be stored when calculating x i ( n ) because they will be used in (15), but in the computation of y i ( n ) , they can be covered. Therefore, only 2 data series should be stored at the same time, i.e., a total of 2 N × 4 bytes of space are required. It is noted that the storage space of several variances such as W and w which just take several bytes are ignored in the analysis of space complexity.
When the time period is 10 s, the quantitative comparisons of space complexity for three algorithms are show as Table 8. Obviously, the memory requirements in wavelet analysis and EEMD are larger than the memory space of STM32L151.
In a word, wavelet analysis and EEMD cannot be implemented in the STM32L151 embedded system due to high space complexity, and the EEMD has far higher time complexity than dynamic smoothing.
All these experiments show that the data collected by piezoelectric ceramic sensors can be used for respiratory-rate and heart-rate detection. With an appropriate channel and a relative long time period, the results detected by wavelet analysis, EEMD, and dynamic smoothing are all with high accuracy. The wavelet analysis can obtain a very high accuracy in respiratory rate and heart rate; however, it has high complexity and cannot be implemented in the low-cost embedded system (e.g., STM32L151). On the other hand, the dynamic smoothing algorithm can also obtain a relative high accuracy which can meet the requirement of daily use. Since the dynamic smoothing method has much lower complexity than wavelet analysis and EEMD, it is suitable for detecting respiratory rate and heart rate in the embedded system in a real-time manner when the hardware cost is considered.

6. Conclusions

We built an intelligent mattress system based on piezoelectric ceramic sensors to detect sleep biosignals. To capture the signals caused by respiration and heartbeat more accurately, a channel-selection method was used. According to the physiological function characteristics of human body and the characteristics of piezoelectric ceramic sensors, wavelet analysis and EEMD can be used to obtain various life characteristics parameters such as respiratory rate and heart rate. To further decrease the complexity of the detection algorithm, a dynamic smoothing method was proposed. Experimental results show that piezoelectric ceramic sensors can capture signals caused by respiration and heartbeat. Moreover, respiratory rate and heart rate can be obtained accurately by wavelet analysis, EEMD, and dynamic smoothing. With the complexity considered, the proposed dynamic smoothing is more suitable for the low-cost embedded system.
Ethics Statement: All subjects gave their informed consent for inclusion before they participated in the study. The study was conducted in accordance with the Declaration of Helsinki.

Author Contributions

Investigation, M.P.; Validation, M.P.; Writing—original draft, M.P.; Writing—review and editing, Z.D., L.W. and X.C.

Funding

This research was funded by the National Natural Science Foundation of China No.61601164 and the Fundamental Research Funds for the Central Universities of China under grant No.PA2019GDQT0012.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Viswabhargav, C.; Tripathy, R.; Acharya, U.R. Automated detection of sleep apnea using sparse residual entropy features with various dictionaries extracted from heart rate and EDR signals. Comput. Biol. Med. 2019, 108, 20–30. [Google Scholar] [CrossRef]
  2. Yacchirema, D.C.; Sarabia-Jácome, D.; Palau, C.E.; Esteve, M. A smart system for sleep monitoring by integrating IoT with big data analytics. IEEE Access 2018, 6, 35988–36001. [Google Scholar] [CrossRef]
  3. Matar, G.; Lina, J.M.; Carrier, J.; Kaddoum, G. Unobtrusive sleep monitoring using cardiac, breathing and movements activities: An exhaustive review. IEEE Access 2018, 6, 45129–45152. [Google Scholar] [CrossRef]
  4. Penzel, T.; Kantelhardt, J.W.; Bartsch, R.P.; Riedl, M.; Kraemer, J.F.; Wessel, N.; Garcia, C.; Glos, M.; Fietze, I.; Schöbel, C. Modulations of heart rate, ECG, and cardio-respiratory coupling observed in polysomnography. Front. Physiol. 2016, 7, 460. [Google Scholar] [CrossRef]
  5. Kuo, C.E.; Liu, Y.C.; Chang, D.W.; Young, C.P.; Shaw, F.Z.; Liang, S.F. Development and evaluation of a wearable device for sleep quality assessment. IEEE Trans. Biomed. Eng. 2017, 64, 1547–1557. [Google Scholar] [CrossRef]
  6. Tomasini, M.; Benatti, S.; Milosevic, B.; Farella, E.; Benini, L. Power line interference removal for high-quality continuous biosignal monitoring with low-power wearable devices. IEEE Sens. J. 2016, 16, 3887–3895. [Google Scholar] [CrossRef]
  7. Majumder, S.; Mondal, T.; Deen, M. Wearable sensors for remote health monitoring. Sensors 2017, 17, 130. [Google Scholar] [CrossRef]
  8. Cai, H.; Krebs, H.J.; Tao, Y.; Hansen, J.; Pan, R.; Cai, Y.; Toft, E.; Dinesen, B. A Qualitative Study on Implementation of the Intelligent Bed: Findings from a Rehabilitation Ward at a Large Chinese Tertiary Hospital. Wirel. Pers. Commun. 2016, 90, 399–420. [Google Scholar] [CrossRef]
  9. Jia, Z.; Alaziz, M.; Chi, X.; Howard, R.E.; Zhang, Y.; Zhang, P.; Trappe, W.; Sivasubramaniam, A.; An, N. HB-Phone: A Bed-Mounted Geophone-Based Heartbeat Monitoring System. In Proceedings of the ACM/IEEE International Conference on Information Processing in Sensor Networks (IPSN), Vienna, Austria, 11–14 April 2016; pp. 1–12. [Google Scholar]
  10. Perez-Macias, J.M.; Tenhunen, M.; Varri, A.; Himanen, S.; Viik, J. Detection of Snores Using Source Separation on an Emfit Signal. IEEE J. Biomed. Health Inform. 2018, 22, 1157–1167. [Google Scholar] [CrossRef]
  11. Dagdeviren, C.; Joe, P.; Tuzman, O.L.; Park, K.I.; Lee, K.J.; Shi, Y.; Huang, Y.; Rogers, J.A. Recent progress in flexible and stretchable piezoelectric devices for mechanical energy harvesting, sensing and actuation. Extrem. Mech. Lett. 2016, 9, 269–281. [Google Scholar] [CrossRef] [Green Version]
  12. Bu, N.; Ueno, N.; Fukuda, O. Monitoring of Respiration and Heartbeat during Sleep using a Flexible Piezoelectric Film Sensor and Empirical Mode Decomposition. In Proceedings of the 29th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Lyon, France, 22–26 August 2007; pp. 1362–1366. [Google Scholar]
  13. Fujita, T.; Shiono, S.; Kanda, K.; Maenaka, K.; Hamada, H.; Higuchi, K. Flexible Sensor for Human Monitoring System by Using P(VDF/TrFE) Thin Film. In Proceedings of the International Conference on Emerging Trends in Engineering and Technology, Himeji, Japan, 5–7 November 2012; pp. 75–79. [Google Scholar]
  14. Lau, D.; Chen, Z.; Teo, J.T.; Ng, S.H.; Rumpel, H.; Lian, Y.; Yang, H.; Kei, P.L. Intensity-Modulated Microbend Fiber Optic Sensor for Respiratory Monitoring and Gating During MRI. IEEE Trans. Biomed. Eng. 2013, 60, 2655–2662. [Google Scholar] [CrossRef]
  15. Fajkus, M.; Nedoma, J.; Martinek, R.; Vasinek, V.; Nazeran, H.; Siska, P. A non-invasive multichannel hybrid fiber-optic sensor system for vital sign monitoring. Sensors 2017, 17, 111. [Google Scholar] [CrossRef]
  16. Kam, W.; Mohammed, W.S.; Leen, G.; O’Keeffe, M.; O’Sullivan, K.; O’Keeffe, S.; Lewis, E. Compact and Low-Cost Optical Fiber Respiratory Monitoring Sensor Based on Intensity Interrogation. J. Light. Technol. 2017, 35, 4567–4573. [Google Scholar] [CrossRef] [Green Version]
  17. Otis, S.; Mezghani, N.; Abdulrazak, B. Comparative Study of Heart Rate Extraction Methods for a Novel Intelligent Mattress. In Proceedings of the International Symposium on Signal, Image, Video and Communications (ISIVC), Rabat, Morocco, 27–30 November 2018; pp. 93–98. [Google Scholar]
  18. Aitkulov, A.; Tosi, D. Optical Fiber Sensor Based on Plastic Optical Fiber and Smartphone for Measurement of the Breathing Rate. IEEE Sens. J. 2019, 19, 3282–3287. [Google Scholar] [CrossRef]
  19. Inan, O.T.; Migeotte, P.; Park, K.; Etemadi, M.; Tavakolian, K.; Casanella, R.; Zanetti, J.; Tank, J.; Funtova, I.; Prisk, G.K.; et al. Ballistocardiography and Seismocardiography: A Review of Recent Advances. IEEE J. Biomed. Health Inform. 2015, 19, 1414–1427. [Google Scholar] [CrossRef]
  20. Zhang, Q.; Zhou, D.; Zeng, X. A Novel Framework for Motion-Tolerant Instantaneous Heart Rate Estimation by Phase-Domain Multiview Dynamic Time Warping. IEEE Trans. Biomed. Eng. 2017, 64, 2562–2574. [Google Scholar]
  21. Luengo, D.; Meltzer, D.; Trigano, T. An Efficient Method to Learn Overcomplete Multi-Scale Dictionaries of ECG Signals. Appl. Sci. 2018, 8, 2569. [Google Scholar] [CrossRef]
  22. Lee, J.S.; Chung, G.S.; Beak, H.J.; Lim, Y.G.; Lee, J.S.; Jeong, D.U.; Park, K.S. A new approach of unconstrained sleep monitoring and pulse arrival time extraction using PPG pillow and CC-ECG electrode system. In Proceedings of the International Conference on Information Technology and Applications in Biomedicine, Larnaca, Cyprus, 4–7 November 2009; pp. 1–3. [Google Scholar]
  23. Taebi, A.; Mansy, H.A. Grouping similar seismocardiographic signals using respiratory information. In Proceedings of the IEEE Signal Processing in Medicine and Biology Symposium (SPMB), Philadelphia, PA, USA, 2 December 2017; pp. 1–6. [Google Scholar] [CrossRef]
  24. Huang, N.E.; Shen, Z.; Long, S.R.; Wu, M.C.; Shih, H.H.; Zheng, Q.; Yen, N.C.; Tung, C.C.; Liu, H.H. The Empirical Mode Decomposition and the Hilbert Spectrum for Nonlinear and Non-Stationary Time Series Analysis. Math. Phys. Eng. Sci. 1998, 454, 903–995. [Google Scholar] [CrossRef]
  25. Zhu, Y.; Fook, V.F.S.; Jianzhong, E.H.; Maniyeri, J.; Guan, C.; Zhang, H.; Jiliang, E.P.; Biswas, J. Heart rate estimation from FBG sensors using cepstrum analysis and sensor fusion. In Proceedings of the International Conference of the IEEE Engineering in Medicine and Biology Society, Chicago, IL, USA, 26–30 August 2014; pp. 5365–5368. [Google Scholar] [CrossRef]
  26. Nukaya, S.; Sugie, M.; Kurihara, Y.; Hiroyasu, T.; Watanabe, K.; Tanaka, H. A noninvasive heartbeat, respiration, and body movement monitoring system for neonates. Artif. Life Robot. 2014, 19, 414–419. [Google Scholar] [CrossRef]
  27. Alshurafa, N.; Kalantarian, H.; Pourhomayoun, M.; Liu, J.J.; Sarin, S.; Shahbazi, B.; Sarrafzadeh, M. Recognition of nutrition intake using time-frequency decomposition in a wearable necklace using a piezoelectric sensor. IEEE Sens. J. 2015, 15, 3909–3916. [Google Scholar] [CrossRef]
  28. Chen, W.; Zhou, Q.; Cheng, X.; Peng, M.; Xu, L. A Novel User Sleep Information Monitoring System Based on Non-contact Mattress. In Proceedings of the International Conference on Telecommunications and Communication Engineering, Beijing, China, 28–30 November 2018; pp. 81–86. [Google Scholar] [CrossRef]
  29. Pei, J.; Huang, D.; Jiang, Q. Optimal design on twin-T notch filter in electromagnetic exploration equipments. In Proceedings of the International Conference on Electric Information and Control Engineering, Wuhan, China, 15–17 April 2011; pp. 1510–1515. [Google Scholar]
  30. Mohamed, M.A.; Deriche, M.A. An Approach for ECG Feature Extraction using Daubechies 4 (DB4) Wavelet. Int. J. Comput. Appl. 2014, 96, 36–41. [Google Scholar] [CrossRef]
  31. Wei, D.; Bovik, A.C.; Evans, B.L. Generalized coiflets: A new family of orthonormal wavelets. In Proceedings of the Conference Record of the Thirty-First Asilomar Conference on Signals, Systems and Computers, Pacific Grove, CA, USA, 2–5 November 1997; pp. 1259–1263. [Google Scholar] [CrossRef]
  32. Vijayakumari, B.; Devi, J.G.; Mathi, M.I. Analysis of noise removal in ECG signal using symlet wavelet. In Proceedings of the International Conference on Computing Technologies and Intelligent Data Engineering, Kovilpatti, India, 7–9 January 2016; pp. 1–6. [Google Scholar] [CrossRef]
  33. Qiu, Z.; Lee, C.M.; Xu, Z.; Sui, L. A multi-resolution filtered-x LMS algorithm based on discrete wavelet transform for active noise control. Mech. Syst. Signal Process. 2016, 66, 458–469. [Google Scholar] [CrossRef]
  34. Lin, T.C.; Truong, T.; Chen, S.H.; Wang, L.J.; Cheng, T.C. Simplified 2-D Cubic Spline Interpolation Scheme Using Direct Computation Algorithm. IEEE Trans. Image Process. 2010, 19, 2913–2923. [Google Scholar] [CrossRef]
  35. Wu, Z.; Huang, N.E. Ensemble empirical mode decomposition: A noise-assisted data analysis method. Adv. Adapt. Data Anal. 2009, 1, 1–41. [Google Scholar] [CrossRef]
Figure 1. The framework of the sleep biosignals detection system.
Figure 1. The framework of the sleep biosignals detection system.
Sensors 19 03843 g001
Figure 2. The piezoelectric ceramic sensor.
Figure 2. The piezoelectric ceramic sensor.
Sensors 19 03843 g002
Figure 3. Piezoelectric ceramic sensors under the mattress and the embedded system.
Figure 3. Piezoelectric ceramic sensors under the mattress and the embedded system.
Sensors 19 03843 g003
Figure 4. Illustration of data collected by different sensors. (a) Data from a sensor with weak signals; (b) Data from a sensor with strong signals.
Figure 4. Illustration of data collected by different sensors. (a) Data from a sensor with weak signals; (b) Data from a sensor with strong signals.
Sensors 19 03843 g004
Figure 5. Illustration of standard ECG waves.
Figure 5. Illustration of standard ECG waves.
Sensors 19 03843 g005
Figure 6. An illustration of original signals and heartbeat signals obtained by different methods. (a) Original signals captured by the piezoelectric ceramic sensor, (b) Heartbeat signals obtained by Wavelet analysis, (c) Heartbeat signals obtained by EEMD, (d) Heartbeat signals obtained by Dynamic smoothing, (e) Heartbeat signals obtained by PC-80B.
Figure 6. An illustration of original signals and heartbeat signals obtained by different methods. (a) Original signals captured by the piezoelectric ceramic sensor, (b) Heartbeat signals obtained by Wavelet analysis, (c) Heartbeat signals obtained by EEMD, (d) Heartbeat signals obtained by Dynamic smoothing, (e) Heartbeat signals obtained by PC-80B.
Sensors 19 03843 g006
Table 1. The results of the respiratory rate test with the time period of 60 s.
Table 1. The results of the respiratory rate test with the time period of 60 s.
Sets of ExperimentTrue Respiratory RateWaveletEEMDSmoothing
ResultsAccuracyResultsAccuracyResultsAccuracy
11818100%1794.44%18100%
21818100%1794.44%18100%
3191894.74%1894.74%1894.74%
4191894.74%1894.74%1894.74%
51919100%1894.74%1894.74%
61919100%1894.74%1894.74%
72020100%20100%2195.00%
82020100%20100%2195.00%
92424100%2291.67%2395.83%
102424100%2291.67%2395.83%
Average 98.95% 95.12% 96.06%
Table 2. The results of the respiratory rate test with the time period of 30 s.
Table 2. The results of the respiratory rate test with the time period of 30 s.
Sets of ExperimentTrue Respiratory RateWaveletEEMDSmoothing
ResultsAccuracyResultsAccuracyResultsAccuracy
1181794.44%1794.44%1794.44%
2182088.89%18100%1994.44%
3191894.74%1894.74%1894.74%
41919100%1894.74%19100%
5191894.74%1789.47%1894.74%
6192094.74%1894.74%19100%
7201995.00%20100%1995.00%
82020100%20100%2195.00%
92424100%1458.33%24100%
102424100%2291.67%2291.67%
Average 96.25% 91.81% 96.00%
Table 3. The results of the respiratory rate test with the time period of 10 s.
Table 3. The results of the respiratory rate test with the time period of 10 s.
Sets of ExperimentTrue Respiratory RateWaveletEEMDSmoothing
ResultsAccuracyResultsAccuracyResultsAccuracy
1182561.11%844.44%1994.44%
21818100%1794.44%1994.44%
31919100%2094.74%1894.74%
4191789.47%2378.95%19100%
5192094.74%1894.74%2189.47%
6191894.74%1789.47%19100%
7202195.00%20100%2290.00%
8201995.00%2290.00%2385.00%
9242395.83%2187.50%2691.67%
102424100%2187.50%2595.83%
Average 92.59% 86.18% 93.56%
Table 4. The results of the heart-rate test with the time period of 60 s.
Table 4. The results of the heart-rate test with the time period of 60 s.
Sets of ExperimentTrue Heart RateWaveletEEMDSmoothing
ResultsAccuracyResultsAccuracyResultsAccuracy
17070100%7198.57%6897.14%
27070100%7198.57%6897.14%
3757093.33%7093.33%6890.67%
4757093.33%7093.33%6890.67%
5707198.57%70100%6998.57%
6707198.57%70100%6998.57%
77373100%7197.26%7197.26%
87373100%7197.26%7197.26%
9737298.63%6791.78%6791.78%
10737298.63%6791.78%6791.78%
Average 98.11% 96.19% 95.08%
Table 5. The results of the heart-rate test with the time period of 30 s.
Table 5. The results of the heart-rate test with the time period of 30 s.
Sets of ExperimentTrue Heart RateWaveletEEMDSmoothing
ResultsAccuracyResultsAccuracyResultsAccuracy
1706795.71%6795.71%6694.29%
2707297.14%7395.71%7987.14%
3757093.33%6992.00%6789.33%
4757093.33%7194.67%6992.00%
5706897.14%6795.71%6795.71%
6707395.71%7592.86%7297.14%
7737298.63%6791.78%7197.26%
8737695.89%73100%7298.63%
97373100%7095.89%6994.52%
10737893.15%6487.67%6589.04%
Average 96.01% 94.20% 93.51%
Table 6. The results of the heart-rate test with the time period of 10 s.
Table 6. The results of the heart-rate test with the time period of 10 s.
Sets of ExperimentTrue Heart RateWaveletEEMDSmoothing
ResultsAccuracyResultsAccuracyResultsAccuracy
1708085.71%7888.57%7592.86%
2707395.71%7494.29%7592.86%
3756890.67%6890.67%7797.33%
4758389.33%8389.33%6688.00%
5707198.57%6897.14%6897.14%
6707888.57%7987.14%7395.71%
77373100%6994.52%6994.52%
8737197.26%6893.15%73100%
97373100%7095.89%7498.63%
10738583.56%6284.93%5676.71%
Average 92.94% 91.56% 93.38%
Table 7. Quantitative comparisons of time complexity with N=1000.
Table 7. Quantitative comparisons of time complexity with N=1000.
AlgorithmsMultiplicationsAdditionsComparisonsTotal Number
Wavelet analysis111,795123,5894000239,384
EEMD2,700,0003,609,0003,604,0009,913,000
Dynamic Smoothing3001207,0404000214,041
Table 8. Quantitative comparisons of space complexity with N = 1000.
Table 8. Quantitative comparisons of space complexity with N = 1000.
AlgorithmsMemory Requirements (Byte)
Wavelet analysis170,000
EEMD46,000
Dynamic Smoothing8000

Share and Cite

MDPI and ACS Style

Peng, M.; Ding, Z.; Wang, L.; Cheng, X. Detection of Sleep Biosignals Using an Intelligent Mattress Based on Piezoelectric Ceramic Sensors. Sensors 2019, 19, 3843. https://doi.org/10.3390/s19183843

AMA Style

Peng M, Ding Z, Wang L, Cheng X. Detection of Sleep Biosignals Using an Intelligent Mattress Based on Piezoelectric Ceramic Sensors. Sensors. 2019; 19(18):3843. https://doi.org/10.3390/s19183843

Chicago/Turabian Style

Peng, Min, Zhizhong Ding, Lusheng Wang, and Xusheng Cheng. 2019. "Detection of Sleep Biosignals Using an Intelligent Mattress Based on Piezoelectric Ceramic Sensors" Sensors 19, no. 18: 3843. https://doi.org/10.3390/s19183843

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