CN109833031B - An automatic sleep staging method using multiple physiological signals based on LSTM - Google Patents
An automatic sleep staging method using multiple physiological signals based on LSTM Download PDFInfo
- Publication number
- CN109833031B CN109833031B CN201910185683.5A CN201910185683A CN109833031B CN 109833031 B CN109833031 B CN 109833031B CN 201910185683 A CN201910185683 A CN 201910185683A CN 109833031 B CN109833031 B CN 109833031B
- Authority
- CN
- China
- Prior art keywords
- signal
- data
- lstm
- layer
- sleep
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
Description
技术领域technical field
本发明属于生物医学信号处理技术领域,涉及心电、呼吸和加速度等信号处理,特别涉及一种基于长短时间记忆模型LSTM利用多生理信号的自动睡眠分期方法。The invention belongs to the technical field of biomedical signal processing, relates to signal processing such as electrocardiogram, respiration and acceleration, in particular to an automatic sleep staging method using multiple physiological signals based on a long-short-term memory model LSTM.
背景技术Background technique
睡眠是人体最为重要的生命活动之一,对睡眠规律和睡眠结构的研究有助于帮助人们提高睡眠质量。从20世纪60年代起,睡眠医学经过几十年的发展已经形成了一套标准体系,现在最为常用的是2007年美国睡眠医学学会(American Academy of SleepMedicine,AASM)制定的睡眠分期标准:以多导睡眠图(Polysomngraphy,PSG)为基础,根据《AASM睡眠及其相关事件判读手册》将夜间睡眠活动分为五个不同的时期,即清醒期(W)、睡眠Ⅰ期(N1)、睡眠Ⅱ期(N2)、睡眠Ⅲ期(N3)、快速眼动期(Rapid Eye Movement,REM)。其中,PSG需同时记录脑电、眼电、肌电、心电(Electrocardiogram,ECG)等多导生理信号,然后再由经验丰富的专业医师每30s一帧进行判读,得出临床分类结果。在非临床应用中,也会有不同的划分方法,区分觉醒和睡眠的二分类(W,Sleep),区分清醒、非快速眼动(Non-rapidEye Movement,NREM)和快速眼动的三分类(W,NREM,REM),区分清醒、浅睡(Light Sleep,LS)、深睡(Slow Wave Sleep,SWS)和快速眼动的四分类(W,N1/N2,N3,REM)。考虑到各个睡眠分期之间的关联和过度关系,四分类方法可能比其他的分类标准更具有实用意义。Sleep is one of the most important life activities of the human body. Research on sleep patterns and sleep structure can help people improve sleep quality. Since the 1960s, sleep medicine has formed a set of standards after decades of development. Now the most commonly used is the sleep staging standard formulated by the American Academy of Sleep Medicine (AASM) in 2007: Based on polysomnography (PSG), according to the "AASM Sleep and Related Events Interpretation Manual", nocturnal sleep activities are divided into five different periods, namely wakefulness (W), sleep stage I (N1), sleep stage II stage (N2), sleep stage III (N3), rapid eye movement (Rapid Eye Movement, REM). Among them, PSG needs to record multi-channel physiological signals such as EEG, OMG, EMG, and ECG (Electrocardiogram, ECG) at the same time, and then it is interpreted by an experienced professional physician every 30s to obtain clinical classification results. In non-clinical applications, there will also be different classification methods, distinguishing the two categories of wakefulness and sleep (W, Sleep), and distinguishing the three categories of wakefulness, non-rapid eye movement (NREM) and rapid eye movement ( W, NREM, REM), four classifications (W, N1/N2, N3, REM) to distinguish wakefulness, light sleep (LS), deep sleep (Slow Wave Sleep, SWS) and rapid eye movement. Considering the associations and transitions between sleep stages, the four-category approach may be more practical than other classification criteria.
但是,以PSG技术为基础的睡眠分期方法在实际应用中存在很多问题,一般在严格的睡眠实验室中进行,但过多的信号测量会影响睡眠的舒适度,使得测量结果偏离真实情况,同时昂贵的费用也限制了这种方法的普及。因此,探索一种自动睡眠分期方法具有重大意义。目前,自动睡眠分期方法的研究主要是信号的特征提取和模式识别,依据所使用的生理信号,可以分为三个方面:第一,以脑电为基础的睡眠分期研究。这方面的研究现在已经比较成熟,目前,仅利用单导脑电信号对健康人睡眠分期进行五分类可实现90%以上的准确率;同时结合脑电、肌电、眼电对健康人睡眠分期的五分类可以实现92%的准确率,对睡眠障碍患者可以达到86%的准确率。第二,以心肺耦合相关信号为基础的睡眠分期研究。这一方面主要利用的是ECG和呼吸信号,黄文汉等人利用心电和呼吸信号对睡眠呼吸障碍患者进行三分类最高实现了71.9%的准确率。第三,以睡眠过程中加速度信号为基础的睡眠分期方法研究,这一方面主要是进行清醒和睡眠的分类,与PSG系统监测结果的一致性最高可达91%。However, the sleep staging method based on PSG technology has many problems in practical application. It is generally carried out in a strict sleep laboratory, but too much signal measurement will affect the comfort of sleep and make the measurement results deviate from the real situation. The high cost also limits the popularity of this method. Therefore, it is of great significance to explore an automatic sleep staging method. At present, the research on automatic sleep staging methods mainly focuses on signal feature extraction and pattern recognition. According to the physiological signals used, it can be divided into three aspects: First, sleep staging research based on EEG. The research in this area is now relatively mature. At present, only using single-lead EEG signals to classify the sleep staging of healthy people can achieve an accuracy rate of more than 90%; The five classifications can achieve an accuracy of 92% and an accuracy of 86% for patients with sleep disorders. Second, sleep staging studies based on cardiopulmonary coupling-related signals. In this aspect, ECG and respiratory signals are mainly used. Huang Wenhan et al. used ECG and respiratory signals to classify patients with sleep-disordered breathing and achieved the highest accuracy rate of 71.9%. Thirdly, the study of sleep staging method based on acceleration signals during sleep, mainly for the classification of wakefulness and sleep, is consistent with the monitoring results of the PSG system up to 91%.
然而,上述研究均存在一定的现实问题。基于脑电信号的分期方法虽然准确率高,但是脑电是较为微弱的生理信号,容易受到各种各样的干扰,因而对电极和采集过程要求严格,成本比较高。基于加速度信号的睡眠分期方法目前多数只能够用于区分清醒和睡眠,分类结果粗劣,实际参考意义不大。因而基于心肺耦合方面的睡眠分期方法研究最具实用意义。ECG是比较容易获得的生理信号,且幅值较大,受干扰因素少,具有巨大的实际应用价值。目前有部分仅利用ECG信号进行的睡眠分期研究,从ECG信号中提取心律变异性信号(Heart Rate Variability,HRV),根据HRV信号在不同睡眠阶段的差异从而进行睡眠分期。哈卡莱大学电气电子工程学院的团队比较了四种不同的分类方法对健康人的三分类结果,其中,最高的方法实现了87.11%的准确率,但是目前利用HRV进行睡眠分期的效果不甚理想,因此这方面的睡眠分期方法研究还具有巨大的探索意义。However, the above studies all have certain practical problems. Although the staging method based on EEG signals has a high accuracy rate, EEG is a relatively weak physiological signal and is prone to various interferences, so it has strict requirements on electrodes and acquisition process, and the cost is relatively high. At present, most of the sleep staging methods based on acceleration signals can only be used to distinguish between wakefulness and sleep, and the classification results are poor and have little practical reference significance. Therefore, the research on sleep staging method based on cardiopulmonary coupling has the most practical significance. ECG is a relatively easy-to-obtain physiological signal, with large amplitude and few interference factors, which has great practical application value. At present, there are some sleep staging studies that only use ECG signals. Heart rate variability (HRV) signals are extracted from ECG signals, and sleep staging is performed according to the differences of HRV signals in different sleep stages. The team from the School of Electrical and Electronic Engineering at Hakkari University compared the three-class results of four different classification methods for healthy people. Among them, the highest method achieved an accuracy rate of 87.11%, but the effect of using HRV for sleep staging is currently not very good. Ideal, so the research on sleep staging methods in this area also has great exploratory significance.
人类的睡眠会持续一定的时间,该时间段内的生理信号变化是一个时间序列,而基于时间序列的长短时间记忆模型(Long Short Time Memory,LSTM)对这类模式识别问题具有良好的处理能力。LSTM模型在传统循环神经网络的基础上增加了遗忘门,使得神经网络有选择性的遗忘之前学习到的参数,从而避免长期依赖问题。Yulita等人将LSTM用于睡眠分期研究,利用脑电、眼电、肌电三种信号,对睡眠障碍患者进行五分类实现了86%的准确率,Radha等人利用LSTM模型对健康人进行睡眠分期研究也得到了不错的结果。Human sleep lasts for a certain period of time, and the physiological signal changes during this period are a time series, and the Long Short Time Memory (LSTM) based on time series has a good ability to deal with such pattern recognition problems. . The LSTM model adds a forgetting gate on the basis of the traditional recurrent neural network, so that the neural network can selectively forget the parameters learned before, thereby avoiding the problem of long-term dependence. Yulita et al. used LSTM for sleep staging research, using three signals of EEG, OMG, and EMG to classify patients with sleep disorders and achieved an accuracy of 86%. Radha et al. Staging studies have also yielded good results.
综上所述,目前关于自动睡眠分期的研究方法都存在各自的局限性,还没有一种简洁、可靠、高效的方法。基于LSTM的神经网络方法对于时间序列数据具有良好的分类能力,但是还没有很好的被用于睡眠分期研究领域中。To sum up, the current research methods on automatic sleep staging all have their own limitations, and there is no simple, reliable and efficient method. The LSTM-based neural network method has good classification ability for time series data, but it has not been well used in the field of sleep staging.
发明内容SUMMARY OF THE INVENTION
为了克服现有自动睡眠分期技术的缺点,本发明的目的在于提供一种基于LSTM利用多生理信号的自动睡眠分期方法,是一种通用、易于实现、经济的睡眠分期方法,利用信号采集设备采集ECG信号,呼吸信号和加速度信号,然后对其进行特征提取,利用LSTM网络进行睡眠分期,分别实现二分类、三分类、四分类、五分类共四个不同的睡眠分期任务,从而满足后续不同场合的应用需求。In order to overcome the shortcomings of the existing automatic sleep staging technology, the purpose of the present invention is to provide an automatic sleep staging method based on LSTM using multiple physiological signals, which is a universal, easy-to-implement and economical sleep staging method. ECG signal, respiration signal and acceleration signal, and then perform feature extraction on them, and use LSTM network to perform sleep staging to realize four different sleep staging tasks, namely two-class, three-class, four-class and five-class respectively, so as to meet the needs of different subsequent occasions. application requirements.
为了达到上述目的,本发明采用的技术方案为:In order to achieve the above object, the technical scheme adopted in the present invention is:
一种基于LSTM利用多生理信号的自动睡眠分期方法,包括以下步骤:An automatic sleep staging method using multiple physiological signals based on LSTM, including the following steps:
步骤一:信号采集Step 1: Signal Acquisition
利用心电测量仪器,呼吸信号测量仪器以及三轴加速度传感器测量得到被测者的一导ECG信号,一导呼吸信号和三导加速度信号。The first-lead ECG signal, the first-lead breathing signal and the three-lead acceleration signal of the subject are measured by using an electrocardiogram measuring instrument, a respiratory signal measuring instrument and a three-axis acceleration sensor.
步骤二:信号处理;Step 2: Signal processing;
对采集得到的一导ECG信号,一导呼吸信号和三导加速度信号进行信号处理,三导为空间x、y、z三个互相垂直的方向;对一导ECG信号的处理得到最终的HRV信号和呼吸波幅度信号Rfm;呼吸信号的处理得到最终的RRV信号;加速度信号的处理得到综合加速度信号acc(n);Perform signal processing on the collected one-lead ECG signal, first-lead breathing signal and three-lead acceleration signal, and the three-lead are three mutually perpendicular directions of space x, y, and z; processing the first-lead ECG signal to obtain the final HRV signal and the respiratory wave amplitude signal R fm ; the processing of the respiratory signal obtains the final RRV signal; the processing of the acceleration signal obtains the integrated acceleration signal acc(n);
步骤三:特征提取;Step 3: Feature extraction;
对于原始信号处理后得到的四种信号:HRV、呼吸波幅度信号Rfm、RRV、综合加速度信号acc(n),首先进行分段处理,以5分钟为窗长、30秒为步长将一整晚的睡眠数据分成相同长度的若干数据段,然后对每段数据进行特征提取,对每一个特征进行归一化处理,归一化的方法是信号获取对象一整晚的特征减去其特征序列的均值,然后除以特征序列的方差。For the four kinds of signals obtained after the original signal processing: HRV, respiratory wave amplitude signal R fm , RRV, and integrated acceleration signal acc(n), firstly perform segmental processing, with 5 minutes as the window length and 30 seconds as the step The sleep data of the whole night is divided into several data segments of the same length, and then feature extraction is performed on each segment of data, and each feature is normalized. The mean of the series, then divided by the variance of the feature series.
步骤四:模型构建。Step 4: Model construction.
构建的模型采用两层LSTM,每一层都有四个不同的分类器,分别用以实现二分类、三分类、四分类和五分类的分期任务。The constructed model adopts two layers of LSTM, and each layer has four different classifiers, which are used to realize the staging tasks of two-class, three-class, four-class and five-class respectively.
第一层LSTM网络的输入序列是步骤三提取的特征序列,输入的特征数据经过第一层LSTM层,里面有四个并行的分类器,每个分类器的网络结构相近,包括5层:输入层、批规范化层、Bi-LSTM层、遗忘层、全连接层。The input sequence of the first layer of LSTM network is the feature sequence extracted in step 3. The input feature data passes through the first layer of LSTM layer, and there are four parallel classifiers in it. The network structure of each classifier is similar, including 5 layers: input layer, batch normalization layer, Bi-LSTM layer, forgetting layer, fully connected layer.
经过第一个LSTM层之后,每个分类器会输出不同维度的数据,代表着每一类分期的概率,将这些概率结合起来,可以形成一组新的特征。将这组新的特征,与步骤二提取的特征并联起来,作为第二层Bi-LSTM网络的输入,第二层LSTM中同样并行存在四个分类器,每个分类器的结构与前一层一样,各分类器经过训练之后得到最终用于预测的分类模型。After the first LSTM layer, each classifier will output data of different dimensions, representing the probability of each class stage, and combining these probabilities can form a new set of features. This new set of features is connected in parallel with the features extracted in step 2 as the input of the second layer Bi-LSTM network. There are also four classifiers in parallel in the second layer LSTM, and the structure of each classifier is the same as that of the previous layer. In the same way, each classifier is trained to obtain the final classification model for prediction.
步骤五:预测睡眠分期Step 5: Predict sleep stages
将步骤四中得到的四个分类器用于预测睡眠期,对需要预测的数据进行信号处理和特征提取,然后将提取到的特征按照模型训练时的顺序送入分类器,即可输出睡眠分期的结果。The four classifiers obtained in step 4 are used to predict the sleep period, signal processing and feature extraction are performed on the data to be predicted, and then the extracted features are sent to the classifier in the order of model training, and the sleep stage can be output. result.
本发明的优点是:为了克服现有自动睡眠分期技术的缺点,本发明提出了一种通用、易于实现、经济的睡眠分期方法。首先,本发明应用的生理信号仅有ECG、呼吸信号、加速度信号,这三种生理信号都是易于获得且操作简洁的,克服了利用脑电信号昂贵、复杂等缺点。其次,本发明使用了LSTM模型,可以很好的利用睡眠过程中生理信号作为时间序列前后的相关性,提高睡眠分期的精度。当然,本发明具有很广泛的适用场景,可以方便应用于监护病房、睡眠科室和家庭睡眠监测等领域,还可以方便移植于便携式设备中,促进移动医疗的发展。The advantages of the invention are: in order to overcome the shortcomings of the existing automatic sleep staging technology, the invention proposes a general, easy-to-implement and economical sleep staging method. First, the only physiological signals used in the present invention are ECG, respiration signal, and acceleration signal. These three physiological signals are easy to obtain and simple to operate, which overcomes the disadvantages of using EEG signals, such as being expensive and complicated. Secondly, the present invention uses the LSTM model, which can make good use of physiological signals during sleep as the correlation before and after the time series, and improve the accuracy of sleep staging. Of course, the present invention has a wide range of applicable scenarios, and can be easily applied to fields such as intensive care wards, sleep departments, and home sleep monitoring, and can also be easily transplanted into portable devices to promote the development of mobile medicine.
附图说明Description of drawings
图1是本方法的整体框图。Figure 1 is an overall block diagram of the method.
图2是LSTM模型构建的整体框图。Figure 2 is the overall block diagram of LSTM model construction.
图3是各分类器的网络结构。Figure 3 shows the network structure of each classifier.
具体实施例specific embodiment
为了更加清楚说明本发明的操作过程,下面结合附图及实例对本发明做详细描述。In order to illustrate the operation process of the present invention more clearly, the present invention will be described in detail below with reference to the accompanying drawings and examples.
参照图1,一种基于LSTM利用多生理信号的自动睡眠分期方法,包括以下步骤:Referring to Figure 1, an automatic sleep staging method based on LSTM using multiple physiological signals, including the following steps:
步骤一:信号采集:Step 1: Signal acquisition:
使用心电测量仪器采集ECG信号,选取第Ⅱ导联的心电信号,采样率为100Hz,使用呼吸信号测量仪器测量胸腹呼吸信号作为呼吸信号,采样率为100Hz,使用三轴加速度传感器测量患者前额叶的头动信息作为加速度信号,采样率为100Hz。Use the ECG measuring instrument to collect the ECG signal, select the ECG signal of lead II, the sampling rate is 100Hz, use the respiratory signal measuring instrument to measure the thoracic and abdominal breathing signal as the breathing signal, the sampling rate is 100Hz, and use the triaxial acceleration sensor to measure the patient The head movement information of the prefrontal lobe is used as the acceleration signal, and the sampling rate is 100Hz.
步骤二:信号处理。Step 2: Signal processing.
对采集得到的一导ECG信号,一导呼吸信号和三导加速度信号进行信号的处理,三导为空间x、y、z三个互相垂直的方向,信号处理步骤可以分三个方面进行:The collected one-lead ECG signal, one-lead breathing signal and three-lead acceleration signal are processed. The three-lead are three mutually perpendicular directions of space x, y, and z. The signal processing steps can be divided into three aspects:
①对ECG信号的处理。①Processing of ECG signal.
首先,对原始ECG信号进行滤波;First, filter the original ECG signal;
其次,从ECG信号中提取HRV信号,根据最大斜率法识别各个R波的峰值点位置,再通过相邻R波峰值位置之间的差值得到相邻两个波峰之间的时间间隔,但是此时得到的时间间隔序列是不均匀的,再利用三次样条插值法对此序列进行等间隔插值,变为目标采样频率下的时间序列,最后对序列取倒数即可得到最终的HRV信号;最后根据实际需求,将HRV信号降采样输出;Secondly, extract the HRV signal from the ECG signal, identify the peak point position of each R wave according to the maximum slope method, and then obtain the time interval between two adjacent peaks by the difference between the adjacent R wave peak positions, but this The time interval sequence obtained is uneven, and then the cubic spline interpolation method is used to interpolate the sequence at equal intervals to become the time series at the target sampling frequency, and finally the final HRV signal can be obtained by taking the reciprocal of the sequence; According to actual needs, downsample the HRV signal and output it;
然后,在HRV的基础上提取呼吸波幅度信号Rfm,利用频率调制的方法,将HRV通过一个截止频率为0.15Hz的三阶巴特沃斯高通滤波器和一个截止频率为0.5Hz的三阶巴特沃斯低通滤波器,即可得到呼吸波幅度信号,记作Rfm。Then, the respiratory wave amplitude signal R fm is extracted on the basis of HRV, and the HRV is passed through a third-order Butterworth high-pass filter with a cut-off frequency of 0.15Hz and a third-order Butterworth with a cut-off frequency of 0.5Hz using the frequency modulation method. Voss low-pass filter to obtain the respiratory wave amplitude signal, denoted as R fm .
②呼吸信号的处理。②Respiratory signal processing.
对原始呼吸信号进行滤波,分别用一个截止频率为1Hz的低通和一个截止频率为0.01Hz的高通的3阶巴特沃斯滤波器滤出呼吸信号的0.01~1Hz有效成分,然后从有效的呼吸信号中提取RRV信号,根据最大斜率法识别各个呼吸波峰值点位置,再通过相邻波峰位置之间的差值得到相邻两个波峰之间的时间间隔,再利用三次样条插值法对此序列进行等间隔插值,变为目标采样频率下的时间序列,最后对序列取倒数即可得到最终的RRV信号,最后根据实际需求,将RRV降采样输出。Filter the original breathing signal, use a low-pass with a cutoff frequency of 1Hz and a high-pass 3rd-order Butterworth filter with a cutoff frequency of 0.01Hz to filter out the 0.01-1Hz effective components of the respiratory signal, and then extract the effective components from the respiratory signal. Extract the RRV signal from the signal, identify the position of the peak point of each respiratory wave according to the maximum slope method, and then obtain the time interval between two adjacent peaks by the difference between the adjacent peak positions, and then use the cubic spline interpolation method for this. The sequence is interpolated at equal intervals to become a time sequence at the target sampling frequency. Finally, the final RRV signal can be obtained by taking the inverse of the sequence. Finally, the RRV is down-sampled and output according to the actual demand.
③加速度信号的处理。③ Processing of acceleration signal.
对三轴加速度信号,根据公式(1)求其平方和的算术平方根,得到信号acctemp(n);对信号acctemp(n)进行10点平滑滤波,即可得到最终的综合加速度信号,记作acc(n).For the three-axis acceleration signal, calculate the arithmetic square root of the sum of its squares according to formula (1) to obtain the signal acc temp (n); perform 10-point smoothing filtering on the signal acc temp (n) to obtain the final comprehensive acceleration signal, record Let acc(n).
其中,M=3,表示三个通道的加速度信号。Among them, M=3, representing the acceleration signals of the three channels.
步骤三:特征提取;Step 3: Feature extraction;
对于原始信号处理后得到的四种信号:HRV、呼吸波幅度信号Rfm、RRV、综合加速度信号acc(n),首先进行分段处理,以5分钟为窗长、30秒为步长将一整晚的睡眠数据分成相同长度的若干数据段,然后对每段数据进行特征提取,对每一个特征进行归一化处理,归一化的方法是信号获取对象一整晚的特征减去其特征序列的均值,然后除以特征序列的方差。For the four kinds of signals obtained after the original signal processing: HRV, respiratory wave amplitude signal R fm , RRV, and integrated acceleration signal acc(n), firstly perform segmental processing, with 5 minutes as the window length and 30 seconds as the step The sleep data of the whole night is divided into several data segments of the same length, and then feature extraction is performed on each segment of data, and each feature is normalized. The mean of the series, then divided by the variance of the feature series.
呼吸波幅度信号Rfm,可提取的特征包括:整段数据的中值除以序列范围;四分之一分位数和四分之三分位数区间序列的中值除以序列范围;整段数据的均值除以方差;呼吸波波峰-波峰时间间隔序列的中值;呼吸波波峰-波谷时间间隔序列的中值;呼吸波波谷-波峰时间间隔序列的中值;呼吸波波峰-波峰时间间隔序列的中值除以序列范围;呼吸波波谷-波峰时间间隔序列的中值除以序列范围;呼吸波波谷-波峰时间间隔序列的中值除以序列范围。Respiratory wave amplitude signal R fm , the extractable features include: the median value of the entire data segment divided by the sequence range; the median value of the quartile and quartile interval sequences divided by the sequence range; integer The mean of the segment data divided by the variance; the median value of the respiratory wave peak-peak time interval series; the median value of the respiratory wave peak-trough time interval series; the median value of the respiratory wave trough-peak time interval series; the respiratory wave peak-peak time interval The median value of the interval series is divided by the sequence range; the median value of the respiratory trough-peak time interval series is divided by the sequence range; the median value of the respiratory wave trough-peak time interval series is divided by the sequence range.
对于HRV和RRV,可提取的特征包括:整段数据的均值;整段数据的方差;整段数据的均值除以方差;整段数据低频段(0.01Hz-0.04Hz)的功率谱之和;整段数据中频段(0.04Hz-0.15Hz)的功率谱之和;整段数据高频段(0.15Hz-0.4Hz)的功率谱之和;整段数据总功率谱之和;整段数据高频段(0.15Hz-0.4Hz)的功率谱之和与中频段(0.04Hz-0.15Hz)的功率谱之和的比值。For HRV and RRV, the features that can be extracted include: the mean of the entire data; the variance of the entire data; the mean divided by the variance of the entire data; the sum of the power spectrum of the low frequency band (0.01Hz-0.04Hz) of the entire data; The sum of the power spectrum of the middle frequency band (0.04Hz-0.15Hz) of the entire data; the sum of the power spectrum of the high frequency (0.15Hz-0.4Hz) of the entire data; the sum of the total power spectrum of the entire data; the high frequency of the entire data The ratio of the sum of the power spectrum of (0.15Hz-0.4Hz) to the sum of the power spectrum of the mid-band (0.04Hz-0.15Hz).
对综合加速度信号acc(n),可提取的特征包括:整段数据的均值;整段数据的方差;整段数据的均值除以方差;整段数据的中值除以序列范围;四分之一分位数和四分之三分位数区间序列的中值除以序列范围。For the integrated acceleration signal acc(n), the features that can be extracted include: the mean of the entire data; the variance of the entire data; the mean of the entire data divided by the variance; the median of the entire data divided by the sequence range; quarter The median of the series of 1 quantile and quartile intervals divided by the series range.
以上共列举了30个特征,在此基础上,仍然以5分钟为窗长、30秒为步长选取数据段,将提取的特征序列进行降序排列,排列后特征数据段的十分之七和十分之三位置处的值分别作为该段的一个特征,最终,得到了总计90个特征参数,由于个体之间存在差异,因此在模型构建之前需要对每一个特征进行归一化处理,归一化的方法是每个人的一整晚的特征减去其特征序列的均值,然后除以特征序列的方差。A total of 30 features are listed above. On this basis, the data segment is still selected with a window length of 5 minutes and a step size of 30 seconds, and the extracted feature sequences are arranged in descending order. The value at three-tenths of the position is used as a feature of the segment, and finally, a total of 90 feature parameters are obtained. Due to differences between individuals, each feature needs to be normalized before the model is constructed. The normalization method is to subtract the mean of the feature sequence from each person's features over the night, and then divide by the variance of the feature sequence.
步骤四:模型构建。Step 4: Model construction.
本发明构建的模型采用双层LSTM,每一层都有四个不同的分类器,用以实现二分类、三分类、四分类和五分类的分期任务,参照图2。The model constructed by the present invention adopts two-layer LSTM, and each layer has four different classifiers to realize the staging tasks of two-class, three-class, four-class and five-class, referring to FIG. 2 .
第一层LSTM网络的输入序列是步骤二提取的90个特征序列。输入的特征数据经过第一层LSTM层,里面有四个并行的分类器,每个分类器的网络结构相近,参照图3,包括5个网络层:输入层、批规范化层、Bi-LSTM层、遗忘层、全连接层。The input sequence of the first layer LSTM network is the 90 feature sequences extracted in step 2. The input feature data passes through the first layer of LSTM layer, which contains four parallel classifiers. The network structure of each classifier is similar. Referring to Figure 3, it includes five network layers: input layer, batch normalization layer, Bi-LSTM layer , forgetting layer, and fully connected layer.
经过第一个LSTM层之后,每个分类器会输出不同维度的数据,代表着每一类分期的概率,将这些概率结合起来,形成14列新的特征。将这14列新的特征,与步骤二提取的特征并联起来,作为第二层LSTM网络的输入,第二层LSTM中同样并行存在四个分类器,每个分类器的结构与前一层一样,各分类器经过大量样本训练之后得到最终用于预测的分类模型;After the first LSTM layer, each classifier will output data of different dimensions, representing the probability of each class stage, and these probabilities are combined to form 14 new columns of features. Connect these 14 new features in parallel with the features extracted in step 2 as the input of the second layer of LSTM network. There are also four classifiers in parallel in the second layer of LSTM, and the structure of each classifier is the same as the previous layer. , after each classifier is trained with a large number of samples, the final classification model for prediction is obtained;
步骤五:预测睡眠分期Step 5: Predict sleep stages
将步骤四中得到的四个分类器用于预测睡眠分期,使用相应的仪器测量其余被测者的ECG信号,呼吸信号和加速度信号,对数据进行信号处理和特征提取,然后将提取到的特征按照模型训练时的顺序送入分类器,即可输出睡眠分期的结果。The four classifiers obtained in step 4 are used to predict sleep stages, and corresponding instruments are used to measure the ECG signal, respiratory signal and acceleration signal of the remaining subjects, perform signal processing and feature extraction on the data, and then extract the extracted features according to The order in which the model is trained is fed into the classifier, and the result of sleep staging can be output.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910185683.5A CN109833031B (en) | 2019-03-12 | 2019-03-12 | An automatic sleep staging method using multiple physiological signals based on LSTM |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910185683.5A CN109833031B (en) | 2019-03-12 | 2019-03-12 | An automatic sleep staging method using multiple physiological signals based on LSTM |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109833031A CN109833031A (en) | 2019-06-04 |
| CN109833031B true CN109833031B (en) | 2020-08-14 |
Family
ID=66885629
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910185683.5A Active CN109833031B (en) | 2019-03-12 | 2019-03-12 | An automatic sleep staging method using multiple physiological signals based on LSTM |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109833031B (en) |
Families Citing this family (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110432870A (en) * | 2019-08-13 | 2019-11-12 | 重庆邮电大学 | A kind of sleep signal based on 1D CNN-LSTM method by stages automatically |
| CN111134666B (en) * | 2020-01-09 | 2021-05-11 | 中国科学院软件研究所 | Emotion recognition method and electronic device based on multi-channel EEG data |
| CN111436904B (en) * | 2020-03-17 | 2022-11-15 | 深圳赛安特技术服务有限公司 | Intelligent sleep staging method and device and computer readable storage medium |
| CN111493828B (en) * | 2020-04-23 | 2021-11-16 | 四川大学 | Sequence-to-sequence sleep disorder detection method based on full convolution network |
| CN113842111A (en) * | 2020-06-28 | 2021-12-28 | 珠海格力电器股份有限公司 | Sleep staging method and device, computing equipment and storage medium |
| CN112232161B (en) * | 2020-09-30 | 2023-04-07 | 华中科技大学 | Complex motion continuous estimation method based on electromyography mapping model switching |
| CN115702778A (en) * | 2021-08-17 | 2023-02-17 | 上海长征医院 | Sleep stage staging method and device, electronic equipment and computer readable storage medium |
| CN113925459B (en) * | 2021-09-27 | 2023-05-30 | 西安交通大学 | Sleep stage method based on electroencephalogram feature fusion |
| CN115067881A (en) * | 2022-06-13 | 2022-09-20 | 西安臻泰智能科技有限公司 | Electroencephalogram sleep staging device |
| CN115775630A (en) * | 2023-02-10 | 2023-03-10 | 北京海思瑞格科技有限公司 | Postoperative lung complication probability prediction method based on sleep stage data before operation |
| CN116942094A (en) * | 2023-07-21 | 2023-10-27 | 中国科学院空天信息创新研究院 | Feature mapping-based sleep stage method, device, equipment, medium and product |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105956558A (en) * | 2016-04-26 | 2016-09-21 | 陶大鹏 | Human movement identification method based on three-axis acceleration sensor |
| CN107595243A (en) * | 2017-07-28 | 2018-01-19 | 深圳和而泰智能控制股份有限公司 | A kind of illness appraisal procedure and terminal device |
| US9949714B2 (en) * | 2015-07-29 | 2018-04-24 | Htc Corporation | Method, electronic apparatus, and computer readable medium of constructing classifier for disease detection |
| CN108542386A (en) * | 2018-04-23 | 2018-09-18 | 长沙学院 | A kind of sleep state detection method and system based on single channel EEG signal |
| CN109044396A (en) * | 2018-06-25 | 2018-12-21 | 广东工业大学 | A kind of intelligent recognition of heart sound method based on two-way length Memory Neural Networks in short-term |
| KR20190004430A (en) * | 2017-07-04 | 2019-01-14 | 주식회사 알고리고 | Apparatus and method for posture analysis of time series using artificial inteligence |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10783900B2 (en) * | 2014-10-03 | 2020-09-22 | Google Llc | Convolutional, long short-term memory, fully connected deep neural networks |
| US11373672B2 (en) * | 2016-06-14 | 2022-06-28 | The Trustees Of Columbia University In The City Of New York | Systems and methods for speech separation and neural decoding of attentional selection in multi-speaker environments |
| US11042796B2 (en) * | 2016-11-03 | 2021-06-22 | Salesforce.Com, Inc. | Training a joint many-task neural network model using successive regularization |
-
2019
- 2019-03-12 CN CN201910185683.5A patent/CN109833031B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9949714B2 (en) * | 2015-07-29 | 2018-04-24 | Htc Corporation | Method, electronic apparatus, and computer readable medium of constructing classifier for disease detection |
| CN105956558A (en) * | 2016-04-26 | 2016-09-21 | 陶大鹏 | Human movement identification method based on three-axis acceleration sensor |
| KR20190004430A (en) * | 2017-07-04 | 2019-01-14 | 주식회사 알고리고 | Apparatus and method for posture analysis of time series using artificial inteligence |
| CN107595243A (en) * | 2017-07-28 | 2018-01-19 | 深圳和而泰智能控制股份有限公司 | A kind of illness appraisal procedure and terminal device |
| CN108542386A (en) * | 2018-04-23 | 2018-09-18 | 长沙学院 | A kind of sleep state detection method and system based on single channel EEG signal |
| CN109044396A (en) * | 2018-06-25 | 2018-12-21 | 广东工业大学 | A kind of intelligent recognition of heart sound method based on two-way length Memory Neural Networks in short-term |
Non-Patent Citations (6)
| Title |
|---|
| 《基于CNN-LSTM网络的睡眠分期研究》;张秀丽,夏斌;《微型机与应用》;20170913;第36卷;全文 * |
| 《基于周期分割的睡眠自动分期研究》;李同庆,邹俊忠,张见,王蓓,魏作臣;《计算机工程与应用》;20180629;全文 * |
| 《基于心电与呼吸信号的睡眠分期算法研究》;黄文汉,张伟,胡立刚,周陈旺,向丹阳;《智能计算机与应用》;20180228;第8卷;全文 * |
| 《心电信号及各组分的频率分布和有效带宽研究》;何伟,陈良迟,徐晓红,谢正祥;《生物医学工程学杂志》;19961225;全文 * |
| Instantaneous Heart Rate as a Robust Feature for Sleep Apnea;Rahul K. Pathinarupothi,Vinaykumar R., Ekanath Rangan;《2017 IEEE EMBS International Conference on Biomedical & Health Information》;20170413;全文 * |
| Sleep Stage Classification Based on Multi-level Feature Learning and Recurrent Neural Networks via Wearable Device;Zhang X , Kou W , Chang I C , et al.;《Computers in Biology and Medicine》;20181201;全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109833031A (en) | 2019-06-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109833031B (en) | An automatic sleep staging method using multiple physiological signals based on LSTM | |
| CN105496363B (en) | The method classified based on detection sleep cerebral electricity signal to sleep stage | |
| CN106413541B (en) | System and method for diagnosing sleep | |
| CN113925459A (en) | Sleep staging method based on electroencephalogram feature fusion | |
| CN111407262A (en) | Sleep staging method based on B L STM and device for sleep staging based on B L STM | |
| Benchekroun et al. | Comparison of Stress Detection through ECG and PPG signals using a Random Forest-based Algorithm | |
| Dehkordi et al. | Sleep stage classification in children using photoplethysmogram pulse rate variability | |
| CN106343992B (en) | Heart rate variability analysis method, device and use | |
| Kuo et al. | Automatic stage scoring of single-channel sleep EEG based on multiscale permutation entropy | |
| Zhou et al. | Comparison of OPPO watch sleep analyzer and polysomnography for obstructive sleep apnea screening | |
| Lin et al. | Longitudinal wrist PPG analysis for reliable hypertension risk screening using deep learning | |
| CN117297564A (en) | A wearable pulse diagnosis bracelet system based on ECG photoelectric pressure pulse signal | |
| CN106108844B (en) | A kind of method and apparatus of determining sleep stage | |
| KR20220097307A (en) | Apparatus for sleep monitoring in non-aware manner using uwb radar, and method and apparatus for lifestyle health management using the same | |
| Lucy et al. | Video based non-contact monitoring of respiratory rate and chest indrawing in children with pneumonia | |
| CN114366104A (en) | Depression state evaluation method based on forehead minority lead electroencephalogram monitoring | |
| Vivekanand et al. | Tiny ML-based non-invasive approach of cardiac monitoring | |
| CN106377250B (en) | Annotation device for EEG data types in sleep state | |
| CN120360497A (en) | Sleep monitoring classification method based on multi-scale network structure and self-adaptive attention | |
| Zhang et al. | Cuff-less and calibration-free blood pressure estimation using convolutional autoencoder with unsupervised feature extraction | |
| TWI288875B (en) | Multiple long term auto-processing system and method thereof | |
| CN119097280A (en) | Method and related device for assessing disturbance of consciousness based on auditory evoked electroencephalogram | |
| CN118606639A (en) | A sleep characteristic wave detection system based on deep learning | |
| CN118171192A (en) | Deep learning-based ECG signal sleep stage division model training method | |
| Cavieres et al. | Analysis of cerebral blood flow entropy while listening to music with emotional content |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20231227 Address after: Room 705, 7th Floor, Building A3, Nanshan Zhiyuan, No. 1001 Xueyuan Avenue, Xili Street, Nanshan District, Shenzhen City, Guangdong Province, 518055 Patentee after: Shenzhen Ruixinyu Technology Co.,Ltd. Address before: Beilin District Xianning West Road 710049, Shaanxi city of Xi'an province No. 28 Patentee before: XI'AN JIAOTONG University |

