[go: up one dir, main page]

CN108201435A - Sleep stage determines method, relevant device and computer-readable medium - Google Patents

Sleep stage determines method, relevant device and computer-readable medium Download PDF

Info

Publication number
CN108201435A
CN108201435A CN201711282863.2A CN201711282863A CN108201435A CN 108201435 A CN108201435 A CN 108201435A CN 201711282863 A CN201711282863 A CN 201711282863A CN 108201435 A CN108201435 A CN 108201435A
Authority
CN
China
Prior art keywords
feature data
time period
data
sleep
target
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.)
Pending
Application number
CN201711282863.2A
Other languages
Chinese (zh)
Inventor
张启
王鑫宇
刘子威
刘洪涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Het Data Resources and Cloud Technology Co Ltd
Original Assignee
Shenzhen Het Data Resources and Cloud Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Het Data Resources and Cloud Technology Co Ltd filed Critical Shenzhen Het Data Resources and Cloud Technology Co Ltd
Priority to CN201711282863.2A priority Critical patent/CN108201435A/en
Publication of CN108201435A publication Critical patent/CN108201435A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4812Detecting sleep stages or cycles
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6887Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient mounted on external non-worn devices, e.g. non-medical devices
    • A61B5/6898Portable consumer electronic devices, e.g. music players, telephones, tablet computers
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7203Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7225Details of analogue processing, e.g. isolation amplifier, gain or sensitivity adjustment, filtering, baseline or drift compensation
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • A61B5/7242Details of waveform analysis using integration

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Animal Behavior & Ethology (AREA)
  • Public Health (AREA)
  • Pathology (AREA)
  • Physics & Mathematics (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Veterinary Medicine (AREA)
  • General Health & Medical Sciences (AREA)
  • Biophysics (AREA)
  • Signal Processing (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physiology (AREA)
  • Psychiatry (AREA)
  • Cardiology (AREA)
  • Multimedia (AREA)
  • Power Engineering (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The embodiment of the invention discloses a kind of sleep stages to determine method, sleep stage equipment and computer-readable medium, and wherein method includes obtaining the electrocardiosignal of target user;Extract the corresponding fisrt feature data of the electrocardiosignal;The fisrt feature data and second feature data are subjected to data fusion, obtain target signature data, the second feature data are corresponding with the relevant characteristic of sleep stage for the target user;Classified using disaggregated model to the target signature data, obtain the result of sleep stage.In the embodiment of the present invention, the electrocardiosignal of target user is obtained, the fisrt feature data extracted from the electrocardiosignal and second feature data are subjected to data fusion, obtain target signature data;Classified using disaggregated model to the target signature data, obtain the result of sleep stage;Sleep stage can be accurately determined, realizes that simply accuracy rate is higher.

Description

睡眠分期确定方法、相关设备及计算机可读介质Sleep stage determination method, related equipment and computer readable medium

技术领域technical field

本发明涉及电子技术领域,尤其涉及一种睡眠分期确定方法、相关设备及计算机可读介质。The present invention relates to the field of electronic technology, in particular to a method for determining sleep stages, related equipment and a computer-readable medium.

背景技术Background technique

睡眠是人体必不可少的生理活动,是一种既重要又复杂的生理现象,在生命中大约占有三分之一的时间。睡眠是机体进行自我修复和完善的过程,对维持身心健康具有重要的调节作用。睡眠分期是根据人体在睡眠期间生理信号的不同变化将睡眠过程分为不同的阶段。人的睡眠,一夜中大约有4~6个睡眠周期出现,互相连接,周而复始,并且各个睡眠阶段都有各自特定的生理和行为特点。根据脑电图的不同特征,主要将睡眠分为非快速眼动期(Non-rapid eye movement,NREM)和快速眼动期(Rapid eye movement,REM),其中NREM期又分为两个时期,浅睡期和深睡期。浅睡期的特点是呼吸较浅,人体肌肉保持松弛状态,没有明显的眼球运动。深睡期的特点是,呼吸较深,均匀且有规律,没有明显的眼球运动。REM期的特点是呼吸稍快且不规则,眼球快速转动,这时的血压、体温、心率也有所升高。Sleep is an essential physiological activity of the human body. It is an important and complex physiological phenomenon, which occupies about one-third of the time in life. Sleep is the process of the body's self-repair and improvement, and plays an important regulatory role in maintaining physical and mental health. Sleep staging is to divide the sleep process into different stages according to the different changes of the human body's physiological signals during sleep. In human sleep, there are about 4 to 6 sleep cycles in one night, which are interconnected and repeated, and each sleep stage has its own specific physiological and behavioral characteristics. According to the different characteristics of the EEG, sleep is mainly divided into non-rapid eye movement (Non-rapid eye movement, NREM) and rapid eye movement (Rapid eye movement, REM), and the NREM period is divided into two periods, light sleep and deep sleep. Light sleep is characterized by shallow breathing, body muscles remain relaxed, and no significant eye movements. Deep sleep is characterized by deep, even and regular breathing without noticeable eye movements. The REM period is characterized by slightly faster and irregular breathing, rapid eye movement, and elevated blood pressure, body temperature, and heart rate.

睡眠分期是整个睡眠当中非常重要的一环,因为睡眠分期通常和睡眠结构、睡眠质量以及睡眠病症相关,所以睡眠分期可以说是整个夜间医学领域的基础。一个准确的睡眠分期结果可以有助于我们了解用户的健康和压力情况,同时结果的反馈也可以有助于专业人士制定干预手段进行睡眠的改善。Sleep staging is a very important part of the whole sleep, because sleep staging is usually related to sleep structure, sleep quality and sleep disorders, so sleep staging can be said to be the basis of the entire field of night medicine. An accurate sleep staging result can help us understand the user's health and stress, and the feedback of the result can also help professionals formulate intervention measures to improve sleep.

当前采用的技术通常是基于脑电数据完成睡眠分期的确定,而脑电数据又比较难于获取,因此如何使用除脑电数据以外的数据和技术进行准确地睡眠分期确定成为一个亟待解决的事情。The currently used technology is usually based on EEG data to complete the determination of sleep staging, and EEG data is difficult to obtain. Therefore, how to use data and technologies other than EEG data to accurately determine sleep staging has become an urgent matter to be solved.

发明内容Contents of the invention

本发明实施例提供一种睡眠分期确定方法,可准确地确定睡眠分期,实现简单,准确率较高。An embodiment of the present invention provides a method for determining sleep stages, which can accurately determine sleep stages, is simple to implement, and has high accuracy.

第一方面,本发明实施例提供了一种睡眠分期确定方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for determining sleep stages, the method comprising:

获取目标用户的心电信号;Obtain the ECG signal of the target user;

提取所述心电信号对应的第一特征数据;extracting the first feature data corresponding to the ECG signal;

将所述第一特征数据和第二特征数据进行数据融合,得到目标特征数据,所述第二特征数据为所述目标用户对应的与睡眠分期相关的特征数据;performing data fusion on the first feature data and second feature data to obtain target feature data, where the second feature data is feature data related to sleep stages corresponding to the target user;

使用分类模型对所述目标特征数据进行分类,得到睡眠分期的结果。The target characteristic data is classified by using a classification model to obtain the result of sleep staging.

第二方面,本发明实施例提供了一种睡眠分期设备,该睡眠分期设备包括用于执行上述第一方面的方法的模块。In a second aspect, an embodiment of the present invention provides a sleep staging device, and the sleep staging device includes a module for performing the method in the first aspect above.

第三方面,本发明实施例提供了另一种睡眠分期设备,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储支持睡眠分期设备执行上述方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第一方面的方法。In the third aspect, the embodiment of the present invention provides another sleep staging device, including a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory are connected to each other, wherein the memory uses A computer program is stored to support the sleep staging device to execute the above method, the computer program includes program instructions, and the processor is configured to invoke the program instructions to execute the above method in the first aspect.

第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第一方面的方法。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, the computer storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the processing The device executes the method of the first aspect above.

第五方面,本发明实施例提供了一种基于机器学习的睡眠分期系统,该系统包括上述第二方面的睡眠分期设备。In a fifth aspect, an embodiment of the present invention provides a machine learning-based sleep staging system, which includes the sleep staging device of the second aspect above.

本发明实施例中,获取目标用户的心电信号,将从该心电信号中提取的第一特征数据和第二特征数据进行数据融合,得到目标特征数据;使用分类模型对该目标特征数据进行分类,得到睡眠分期的结果;可以准确地确定睡眠分期,实现简单,准确率较高。In the embodiment of the present invention, the ECG signal of the target user is obtained, and the first feature data and the second feature data extracted from the ECG signal are fused together to obtain the target feature data; the target feature data is processed using a classification model Classify to get the result of sleep staging; the sleep staging can be accurately determined, which is simple to implement and has a high accuracy rate.

附图说明Description of drawings

为了更清楚地说明本发明实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present invention. Ordinary technicians can also obtain other drawings based on these drawings on the premise of not paying creative work.

图1是本发明实施例提供的一种睡眠分期确定方法的示意流程图;FIG. 1 is a schematic flowchart of a method for determining sleep stages provided by an embodiment of the present invention;

图2是本发明实施例提供的一种提取心电信号对应的特征数据的方法示意流程图;Fig. 2 is a schematic flowchart of a method for extracting feature data corresponding to ECG signals provided by an embodiment of the present invention;

图3是本发明实施例提供的一种数据融合方法的示意流程图;Fig. 3 is a schematic flowchart of a data fusion method provided by an embodiment of the present invention;

图4是本发明实施例提供的一种对目标特征数据进行处理的示意流程图;Fig. 4 is a schematic flowchart of processing target characteristic data provided by an embodiment of the present invention;

图5是本发明实施例提供的一种利用目标特征数据确定睡眠分期的示意流程图;Fig. 5 is a schematic flowchart of determining sleep stages by using target characteristic data provided by an embodiment of the present invention;

图6是本发明实施例提供的一种睡眠分期设备的示意性框图;Fig. 6 is a schematic block diagram of a sleep staging device provided by an embodiment of the present invention;

图7是本发明另一实施例提供的一种睡眠分期设备示意性框图。Fig. 7 is a schematic block diagram of a sleep staging device provided by another embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the terms "comprising" and "comprises" indicate the presence of described features, integers, steps, operations, elements and/or components, but do not exclude one or Presence or addition of multiple other features, integers, steps, operations, elements, components and/or collections thereof.

还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the description of the present invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the present invention. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.

还应当进一步理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that the term "and/or" used in the description of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations .

如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context . Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event] ]” or “in response to detection of [described condition or event]”.

参见图1,是本发明实施例提供一种睡眠分期确定方法的示意流程图,如图1所示,该方法可包括:Referring to FIG. 1 , it is a schematic flowchart of a method for determining sleep stages provided by an embodiment of the present invention. As shown in FIG. 1 , the method may include:

101、获取目标用户的心电信号;101. Obtain the ECG signal of the target user;

睡眠分期设备获取目标用户的心电信号。上述睡眠分期设备可以检测上述目标用户的心电信号,得到上述心电信号;也可以从心电信号检测装置获取上述目标用户的心电信号。举例来说,睡眠分期设备可以是电脑、手机、平板电脑、服务器等,可以从心电信号检测装置获取用户的心电信号。心电信号检测装置是可以检测用户的心电信号的装置,例如可检测用户心电信号的床垫、睡眠带子等。上述心电信号检测装置可以将采集到心电信号发送给上述睡眠分期设备。又举例来说,睡眠分期设备可以是智能手环、智能手表等,可以检测用户的心电信号。上述获取目标用户的心电信号可以是检测上述用户的心电信号获得上述目标用户的心冲击图(Ballisto Cardio Gram,BCG)和/或体表心电图(ElectroCardio Gram,ECG);也可以是从心电信号检测装置获取上述用户的EGG和/或BGG。The sleep staging device acquires the ECG signal of the target user. The sleep staging device may detect the electrocardiographic signal of the target user to obtain the electrocardiographic signal; it may also obtain the electrocardiographic signal of the target user from the electrocardiographic signal detection device. For example, the sleep staging device can be a computer, a mobile phone, a tablet computer, a server, etc., and can obtain the user's ECG signal from the ECG signal detection device. The ECG signal detection device is a device that can detect the user's ECG signal, such as a mattress, a sleep belt, etc. that can detect the user's ECG signal. The above-mentioned electrocardiographic signal detecting device may send the collected electrocardiographic signal to the above-mentioned sleep staging device. For another example, the sleep staging device can be a smart bracelet, a smart watch, etc., which can detect the user's ECG signal. The acquisition of the target user's ECG signal may be obtained by detecting the target user's ECG signal to obtain the target user's ballistocardiogram (Ballisto Cardio Gram, BCG) and/or body surface electrocardiogram (ElectroCardio Gram, ECG); The electrical signal detection device acquires the EGG and/or BGG of the above-mentioned user.

在采集、放大及传输心电信号的过程中,由于受人体、检测仪器、电磁环境等的影响,不可避免地会有干扰耦合到心电信号。在实际中,主要有工频干扰和基线漂移对心电信号造成的影响。本发明实施例中,上述睡眠分期设备或心电信号检测装置可以使用自适应数字陷波器、平均滤波器等去除上述心电信号中的工频干扰,然后使用中值滤波法、小波变换等方法将基线漂移去除。本发明实施例中,上述睡眠分期设备或心电信号检测装置还可以采用其他方式对上述心电信号进行处理,进而有效地抑制各种干扰,以便得到准确的心电信号。本发明实施例提供了一个对获取到的心电信号进行预处理的具体举例:In the process of collecting, amplifying and transmitting ECG signals, due to the influence of the human body, detection instruments, electromagnetic environment, etc., it is inevitable that there will be interference coupled to the ECG signals. In practice, there are mainly the impacts of power frequency interference and baseline drift on ECG signals. In the embodiment of the present invention, the above-mentioned sleep staging device or the ECG signal detection device can use an adaptive digital notch filter, an averaging filter, etc. to remove the power frequency interference in the above-mentioned ECG signal, and then use median filtering, wavelet transform, etc. method to remove baseline drift. In the embodiment of the present invention, the sleep staging device or the electrocardiographic signal detection device may also process the electrocardiographic signal in other ways, so as to effectively suppress various interferences, so as to obtain accurate electrocardiographic signals. The embodiment of the present invention provides a specific example of preprocessing the acquired ECG signal:

1)获取心电信号;1) Obtain the ECG signal;

2)去除上述心电信号中的工频干扰;2) remove the power frequency interference in the above-mentioned ECG signal;

3)使用中值滤波法去除基线漂移;3) Use the median filter method to remove baseline drift;

4)剔除异搏;4) Elimination of abnormalities;

心电信号由P波、QRS波群和T波组成。QRS波的波峰为R波峰。本发明实施例中,睡眠分期设备可以先屏蔽掉小于某一电压的所有采样点,以便于将P波和T波中的伪峰值提前去除,之后再寻找峰值,以此保证得到的峰值处于QRS波中,该峰值即为R波峰值。上述剔除异搏是指检查R波峰中的异常点,并进行去除。The ECG signal consists of P waves, QRS complexes and T waves. The crest of the QRS wave is the R crest. In the embodiment of the present invention, the sleep staging device can first shield all sampling points less than a certain voltage, so as to remove the false peaks in the P wave and T wave in advance, and then search for the peak value, so as to ensure that the obtained peak value is in the QRS In the wave, this peak is the peak of the R wave. The aforementioned elimination of abnormal beats refers to checking and removing abnormal points in the R wave peak.

通过预处理操作可以对心电信号造成干扰的信号进行消除或抑制,以保证心电信号的准确性。The signal that interferes with the ECG signal can be eliminated or suppressed through the preprocessing operation, so as to ensure the accuracy of the ECG signal.

102、提取上述心电信号对应的第一特征数据;102. Extracting the first feature data corresponding to the electrocardiographic signal;

在一种可选的实现方式中,上述提取上述心电信号对应的第一特征数据包括:In an optional implementation manner, the above-mentioned extraction of the first characteristic data corresponding to the above-mentioned ECG signal includes:

确定上述心电信号中至少一个RR间期;Determining at least one RR interval in the above-mentioned ECG signal;

对上述至少一个RR间期进行时域分析和频域分析,得到上述第一特征数据。Time-domain analysis and frequency-domain analysis are performed on the at least one RR interval to obtain the first feature data.

上述确定上述心电信号中至少一个RR间期可以是确定上述心电信号中相邻两个QRS波峰之间的间距。本发明实施例中,可以用后一个QRS波峰的采样时间减去前一个QRS波峰的采样时间得到一个RR间期的值。假定心电信号包含10个波峰,则可以确定9个RR间期。The aforementioned determination of at least one RR interval in the aforementioned electrocardiographic signal may be determining the distance between two adjacent QRS peaks in the aforementioned electrocardiographic signal. In the embodiment of the present invention, a value of the RR interval can be obtained by subtracting the sampling time of the previous QRS peak from the sampling time of the latter QRS peak. Assuming that the ECG signal contains 10 peaks, 9 RR intervals can be determined.

心率变异性(Heart Rate Variability,HRV)是指逐次窦性心跳间期之间的微小涨落。通常使用的HRV时域指标有5项:NNVGR、SDNN、RMSSD、SDSD和pNN50。上述5个指标的定义分别为:Heart Rate Variability (HRV) refers to the small fluctuations between successive sinus heartbeats. There are five commonly used HRV time-domain indicators: NNVGR, SDNN, RMSSD, SDSD and pNN50. The definitions of the above five indicators are as follows:

NNVGR:全部正常窦性心博间期(NN间期)的平均值,单位为ms;NNVGR: the average value of all normal sinus rhythm intervals (NN intervals), in ms;

SDNN:标准差,即24h全部正常RR间期的标准差,单位为ms;SDNN: standard deviation, that is, the standard deviation of all normal RR intervals in 24h, in ms;

RMSSD:全程相邻NN间期之差的均方根值,单位为ms;RMSSD: the root mean square value of the difference between adjacent NN intervals in the whole process, in ms;

SDNNID:24h内每5min的RR间期标准差,单位为ms;SDNNID: the standard deviation of the RR interval every 5 minutes within 24 hours, in ms;

PNN50:在全部NN间期的记录中,相邻的NN间期之差大于50ms的个数与总的NN间期的个数的比,以百分比表示。PNN50: In the records of all NN intervals, the ratio of the number of adjacent NN intervals whose difference is greater than 50ms to the total number of NN intervals, expressed as a percentage.

其中,NNVGR用于评估心率总体变化水平;SDNN用于评估心率总体变化的大小,即交感及迷走神经张力大小;SDNNID用于描述5min内心率变异的大小。RMSSD及PNN50反映心率快变化成分的大小,即副交感神经张力的敏感指标。HRV时域检测指标还可以包含每分钟连续正常RR间期标准差除以该段时间的平均正常RR间期得到的参数、在全部正常窦性博间期相邻NN间期之差大于50ms的个数、平均心率以及心率标准差。平均心率描述5min内心率平均值,心率标准差描述5min内心率波动大小。HRV时域检测指标还可以包含其他参数,本发明实施例不作限定。Among them, NNVGR is used to evaluate the overall change level of heart rate; SDNN is used to evaluate the size of the overall change of heart rate, that is, the size of sympathetic and vagal tone; SDNNID is used to describe the size of heart rate variation within 5 minutes. RMSSD and PNN50 reflect the magnitude of rapid changes in heart rate, which are sensitive indicators of parasympathetic tension. The HRV time-domain detection index can also include the parameters obtained by dividing the standard deviation of the continuous normal RR interval per minute by the average normal RR interval of this period, and the number of adjacent NN intervals with a difference greater than 50 ms in all normal sinus intervals , average heart rate, and heart rate standard deviation. The average heart rate describes the average heart rate in 5 minutes, and the standard deviation of heart rate describes the fluctuation of heart rate in 5 minutes. The HRV time-domain detection index may also include other parameters, which are not limited in this embodiment of the present invention.

研究发现,正常人基础状态下心率谱曲线在0-0.4Hz之间,0.003-0.04Hz为极低频段(VLF),0.04-0.15Hz为低频段(LF),0.15-0.4Hz高频段(HF),0-0.40Hz为总功率谱(TP)。HRV频域指标可以包含VLF、LF、HF、TP、LF/HF等。Studies have found that the heart rate spectrum curve of normal people is between 0-0.4Hz in the basic state, 0.003-0.04Hz is very low frequency (VLF), 0.04-0.15Hz is low frequency (LF), and 0.15-0.4Hz is high frequency (HF). ), 0-0.40Hz is the total power spectrum (TP). HRV frequency domain indicators can include VLF, LF, HF, TP, LF/HF, etc.

上述对上述至少一个RR间期进行时域分析和频域分析,得到上述第一特征数据可以是对上述至少一个RR间期进行时域分析和频域分析,得到上述频域指标和上述时域指标中的一部分或全部。可以理解,上述第一特征数据为根据上述RR间期或上述心跳信号得到的HRV时域指标和HRV频域指标。The time-domain analysis and frequency-domain analysis of the above-mentioned at least one RR interval to obtain the above-mentioned first characteristic data may be to perform time-domain analysis and frequency-domain analysis on the above-mentioned at least one RR interval to obtain the above-mentioned frequency domain index and the above-mentioned time domain Some or all of the indicators. It can be understood that the above-mentioned first feature data is the HRV time-domain index and HRV frequency-domain index obtained according to the above-mentioned RR interval or the above-mentioned heartbeat signal.

本发明实施例提供了一种提取心电信号对应的特征数据的具体举例,如图2所示,该方法可包括:The embodiment of the present invention provides a specific example of extracting the characteristic data corresponding to the ECG signal, as shown in Figure 2, the method may include:

201、睡眠分期设备获取心电信号;201. The sleep staging device acquires ECG signals;

202、确定上述心电信号的至少一个RR间期;202. Determine at least one RR interval of the electrocardiographic signal;

203、根据上述至少一个RR间期和上述心电信号计算HRV时域指标和HRV频域指标;203. Calculate the HRV time domain index and the HRV frequency domain index according to the above at least one RR interval and the above electrocardiographic signal;

上述睡眠分期设备可以对上述至少一个RR间期进行时域分析,得到上述HRV时域指标;可以对上述心电信号进行频域分析,得到上述HRV频域指标。The above-mentioned sleep staging device can perform time-domain analysis on the above-mentioned at least one RR interval to obtain the above-mentioned HRV time-domain index; it can perform frequency-domain analysis on the above-mentioned ECG signal to obtain the above-mentioned HRV frequency-domain index.

204、合并上述HRV时域指标和上述HRV频域指标,得到上述心电信号对应的第一特征数据。204. Combine the above-mentioned HRV time-domain index and the above-mentioned HRV frequency-domain index to obtain the first characteristic data corresponding to the above-mentioned ECG signal.

本发明实施例中,可以快速、准确地从心电信号提取出第一特征数据。In the embodiment of the present invention, the first feature data can be quickly and accurately extracted from the ECG signal.

103、将上述第一特征数据和第二特征数据进行数据融合,得到目标特征数据,上述第二特征数据为上述目标用户对应的与睡眠分期相关的特征数据;103. Perform data fusion of the above-mentioned first feature data and second feature data to obtain target feature data, where the above-mentioned second feature data is feature data related to sleep stages corresponding to the above-mentioned target user;

上述第二特征数据可以是从呼吸信号和/或肌电信号提取出的特征数据;也可以是性别、年龄、体动数据等与睡眠分期相关的特征数据。上述睡眠分期设备可以获得上述呼吸信号和/或肌电信号,并提取出上述第二特征数据。The above-mentioned second feature data may be feature data extracted from respiratory signals and/or electromyographic signals; it may also be feature data related to sleep stages such as gender, age, and body movement data. The above-mentioned sleep staging device can obtain the above-mentioned respiratory signal and/or myoelectric signal, and extract the above-mentioned second feature data.

本发明实施例提供了一种将第一特征数据和第二特征数据进行数据融合的具体举例,如图3所示,该方法可包括:The embodiment of the present invention provides a specific example of data fusion of the first characteristic data and the second characteristic data. As shown in FIG. 3, the method may include:

301、获取第一特征数据和第二特征数据;301. Acquire first characteristic data and second characteristic data;

上述第一特征数据为根据心电信号确定的HRV时域指标和HRV频域指标。上述第二特征数据为与睡眠分期相关的数据,可以是从呼吸信号和/或肌电信号提取出的特征数据;也可以是性别、年龄、体动数据等与睡眠分期相关的特征数据。The above-mentioned first feature data is the HRV time-domain index and the HRV frequency-domain index determined according to the ECG signal. The above-mentioned second feature data is data related to sleep stages, which may be feature data extracted from respiratory signals and/or myoelectric signals; it may also be feature data related to sleep stages such as gender, age, and body movement data.

上述第一特征数据包含的N个特征数据和上述第二特征数据包含的N个特征数据均对应第一时间段到第N时间段,上述N为大于或者等于1的整数。上述第一特征数据包含的N个特征数据可以是从第一时间段到第N时间段对应的N段心电信号提取出的特征数据。上述第二特征数据包含的N个特征数据可以包含从第一时间段到第N时间段对应的N段肌电信号和/或呼吸信号提取出的特征数据。举例来说,睡眠分期设备将一个心电信号按照时间顺序分为N个时长相等的部分,即第一时间段到第N时间段,每个时间段对应一段心电信号;该睡眠分期设备提取每个时间段对应的心电信号,可以得到N个特征数据。The N feature data included in the first feature data and the N feature data included in the second feature data correspond to the first time period to the Nth time period, and the above N is an integer greater than or equal to 1. The N pieces of feature data included in the first feature data may be feature data extracted from N segments of ECG signals corresponding to the first time period to the Nth time period. The N pieces of feature data included in the second feature data may include feature data extracted from N segments of electromyographic signals and/or respiratory signals corresponding to the first time period to the Nth time period. For example, a sleep staging device divides an ECG signal into N parts of equal duration in chronological order, that is, the first time period to the Nth time period, and each time period corresponds to an ECG signal; the sleep staging device extracts The ECG signal corresponding to each time period can obtain N characteristic data.

302、将上述第一特征数据和上述第二特征数据中对应相同时间段的特征数据进行融合,得到目标特征数据。302. Fuse the first characteristic data and the characteristic data corresponding to the same time period in the second characteristic data to obtain target characteristic data.

在一种可选的实现方式中,所述第一特征数据和所述第二特征数据分别包含N个特征数据,所述第一特征数据包含的N个特征数据对应第一时间段到第N时间段,所述第二特征数据包含的N个特征数据对应所述第一时间段到所述第N时间段;每个特征数据对应一个时间段,所述N为大于或者等于1的整数;In an optional implementation manner, the first characteristic data and the second characteristic data respectively include N characteristic data, and the N characteristic data included in the first characteristic data correspond to the first time period to the Nth For a time period, the N characteristic data included in the second characteristic data correspond to the first time period to the Nth time period; each characteristic data corresponds to a time period, and the N is an integer greater than or equal to 1;

所述将所述第一特征数据和第二特征数据进行数据融合,得到目标特征数据包括:The performing data fusion of the first feature data and the second feature data to obtain the target feature data includes:

将所述第一特征数据和所述第二特征数据中对应相同时间段的特征数据进行融合,得到所述目标特征数据,所述目标特征数据中的N个特征数据对应所述第一时间段到所述第N时间段。Fusing the feature data corresponding to the same time period in the first feature data and the second feature data to obtain the target feature data, and N feature data in the target feature data correspond to the first time period to the Nth time period.

举例来说,第一特征数据包含的N个特征数据为第一时间段到第N时间段的心电信号对应的特征数据,每个特征数据均包含一个时间段对应的第一频域指标、第二频域指标、第一时域指标、第二时域指标;第二特征数据包含的N个特征数据为第一时间段到第N时间段的特征数据,每个特征数据均包含一个时间段对应的第三频域指标、第四时域指标、性别、年龄、体动;依次合并该第一特征数据和该第二特征数据中对应时间段相同的特征数据,得到N个字段,每个字段为第一时间段到第N时间段中一个时间段的心电信号对应的第一频域指标、第二频域指标、第一时域指标、第二时域指标、第三频域指标、第四时域指标、性别、年龄、体动。For example, the N pieces of feature data included in the first feature data are feature data corresponding to ECG signals from the first time period to the Nth time period, and each feature data includes a first frequency domain index corresponding to a time period, The second frequency domain index, the first time domain index, and the second time domain index; the N feature data contained in the second feature data are feature data from the first time period to the Nth time period, and each feature data contains a time segment corresponding to the third frequency domain index, the fourth time domain index, gender, age, and body movement; sequentially merge the first feature data and the second feature data in the same feature data corresponding to the time period to obtain N fields, each The first field is the first frequency domain index, the second frequency domain index, the first time domain index, the second time domain index, and the third frequency domain corresponding to the electrocardiographic signal in one time period from the first time period to the Nth time period Indicators, indicators in the fourth time domain, gender, age, and physical activity.

本发明实施例中,可以快速地将第一特征数据和第二特征数据中对应相同时间段的特征数据合并为一个字段。In the embodiment of the present invention, feature data corresponding to the same time period in the first feature data and the second feature data can be quickly combined into one field.

本发明实施例提供了一种对目标特征数据进行处理的具体举例,如图4所示,该方法可包括:The embodiment of the present invention provides a specific example of processing target characteristic data. As shown in FIG. 4, the method may include:

401、睡眠分期设备获取目标特征数据;401. The sleep staging device acquires target feature data;

402、去除上述目标特征数据包含的N个特征数据中各特征数据的异常值和重复值;402. Remove abnormal values and duplicate values of each feature data in the N feature data included in the target feature data;

403、填补上述N个特征数据中各特征数据的缺失值;403. Fill in missing values of each feature data in the above N feature data;

填补缺失值的方法可以使用线性回归的方法。The method of filling missing values can use the method of linear regression.

404、对上述N个特征数据中各特征数据进行归一化处理;404. Perform normalization processing on each feature data in the above N feature data;

数据归一化的方法主要是使得所有的特征数据在经过处理后可以落在一个确定的区间,这样做的好处是不会因为数据波动过大影响模型的学习效果。The method of data normalization is mainly to make all the characteristic data fall in a certain interval after processing. The advantage of this is that the learning effect of the model will not be affected by excessive data fluctuations.

405、对上述N个特征数据中各特征数据进行特征编码。405. Perform feature encoding on each feature data in the aforementioned N feature data.

例如年龄,体重的特征编码指的是将年龄和体重区分为不同区间,通过对几个区间进行编码来实现数据的简化,从而使得模型更加容易学习到其中的规律。For example, the feature encoding of age and weight refers to distinguishing age and weight into different intervals, and simplifying the data by encoding several intervals, making it easier for the model to learn the rules.

处理过后的目标特征数据将整合在一起并传入分类模型进行计算和分析。The processed target feature data will be integrated and passed into the classification model for calculation and analysis.

本发明实施例通过处理目标特征数据,可以保证目标特征数据的准确性,并提高睡眠分期的效率。The embodiment of the present invention can ensure the accuracy of the target feature data and improve the efficiency of sleep staging by processing the target feature data.

104、使用分类模型对上述目标特征数据进行分类,得到睡眠分期的结果。104. Use a classification model to classify the above-mentioned target feature data to obtain a result of sleep staging.

上述分类模型包含M个不同的分类器。上述睡眠分期设备可以采用机器学习中的梯度增强决策树里的极限梯度增强技术来对上述目标特征数据进行分类。该技术的优点有:运行速度快,兼顾可解释性和结果优化,可以自动的学习数据的特点,从而可以对睡眠分期进行有效的预测。本发明实施例中,还可以采用其他机器学习算法或者深度学习算法对上述目标特征数据进行分类,进而确定各时间段对应的睡眠分期的结果。The above classification model contains M different classifiers. The above-mentioned sleep staging device can use the extreme gradient enhancement technology in the gradient enhancement decision tree in machine learning to classify the above-mentioned target feature data. The advantages of this technology are: fast operation speed, both interpretability and result optimization, and can automatically learn the characteristics of the data, so that sleep stages can be effectively predicted. In the embodiment of the present invention, other machine learning algorithms or deep learning algorithms may also be used to classify the above target feature data, and then determine the sleep staging results corresponding to each time period.

在一种可选的实现方式中,上述分类模型包含M个不同的分类器,上述M为大于1的整数;上述使用分类模型对上述目标特征数据进行分类,得到睡眠分期的结果包括:In an optional implementation, the above-mentioned classification model includes M different classifiers, and the above-mentioned M is an integer greater than 1; the above-mentioned classification model is used to classify the above-mentioned target feature data, and the sleep staging results obtained include:

将上述目标特征数据中的第F个特征数据输入到上述M个不同分类器,上述M个不同的分类器均对上述第F个特征数据进行分类,得到M个分类结果;上述F为小于或者等于上述N的整数,上述M个分类结果为上述M个不同的分类器确定的第F时间段的睡眠分期的结果,每个分类器得到一个分类结果;Input the F-th feature data in the above-mentioned target feature data to the above-mentioned M different classifiers, and the above-mentioned M different classifiers all classify the above-mentioned F-th feature data to obtain M classification results; the above-mentioned F is less than or An integer equal to the above-mentioned N, the above-mentioned M classification results are the results of the sleep staging of the Fth time period determined by the above-mentioned M different classifiers, and each classifier obtains a classification result;

确定上述M个分类结果中个数最多的分类结果为上述第F时间段的睡眠分期的结果。It is determined that the classification result with the largest number among the above M classification results is the result of the sleep stage in the Fth time period.

举例来说,睡眠分期设备中的分类模型包含M个分类器,每个分类器均输入第F时间段对应的特征数据,每个分类器根据其当前已有的特征数据以及该第F时间段对应的特征数据确定该第F时间段对应的睡眠分期的结果,得到M个分类结果。假定睡眠分期设备中的分类模型包含50个分类器,对第F时间段对应的特征数据进行分类,得到50个分类结果,其中,2个分类结果为第一睡眠分期,3个分类结果为第二睡眠分期,45个分类结果为第三睡眠分期;则该第F时间段的睡眠分期的结果为第三睡眠分期。For example, the classification model in the sleep staging device includes M classifiers, and each classifier inputs the characteristic data corresponding to the Fth time period, and each classifier is based on its currently existing characteristic data and the Fth time period The corresponding feature data determines the result of the sleep stage corresponding to the Fth time period, and obtains M classification results. Assume that the classification model in the sleep staging device contains 50 classifiers, classify the feature data corresponding to the Fth time period, and get 50 classification results, of which, 2 classification results are the first sleep stage, and 3 classification results are the first sleep stage. Two sleep stages, 45 classification results are the third sleep stage; then the result of the sleep stage in the F time period is the third sleep stage.

本发明实施例中,获取目标用户的心电信号,将从该心电信号中提取的第一特征数据和第二特征数据进行数据融合,得到目标特征数据;使用分类模型对该目标特征数据进行分类,得到睡眠分期的结果;可以准确地确定睡眠分期,实现简单,准确率较高。In the embodiment of the present invention, the ECG signal of the target user is obtained, and the first feature data and the second feature data extracted from the ECG signal are fused together to obtain the target feature data; the target feature data is processed using a classification model Classify to get the result of sleep staging; the sleep staging can be accurately determined, which is simple to implement and has a high accuracy rate.

本发明实施例提供了一种利用目标特征数据确定睡眠分期的具体举例,如图5所示,该方法可包括:The embodiment of the present invention provides a specific example of using target feature data to determine sleep stages, as shown in Figure 5, the method may include:

501、将目标特征数据输入到M个不同的分类器;501. Input target feature data into M different classifiers;

上述目标特征数据可以包含N个特征数据,每个特征数据对应一个时间段。通过一个特征数据可以确定该特征数据对应的时间段的睡眠分期的结果。可以理解,一个分类器通过上述目标特征数据可以确定N个时间段的睡眠分期的结果。The above target characteristic data may include N characteristic data, and each characteristic data corresponds to a time period. A result of sleep staging in a time period corresponding to the characteristic data can be determined through a characteristic data. It can be understood that a classifier can determine the sleep staging results of N time periods through the above target feature data.

502、上述M个不同的分类器中每个分类器对上述目标特征数据包含的N个特征数据进行分析,确定上述N个特征数据对应的N个时间段的睡眠分期的结果;502. Each of the above M different classifiers analyzes the N feature data included in the above target feature data, and determines the sleep staging results of the N time periods corresponding to the above N feature data;

503、依据上述M个不同的分类器中每个分类器确定的N个睡眠分期的结果确定上述目标特征数据对应的睡眠分期的结果。503. Determine the result of the sleep stage corresponding to the target feature data according to the results of the N sleep stages determined by each of the above M different classifiers.

假定睡眠分期设备中的分类模型包含50个分类器,对第F时间段对应的特征数据进行分类,得到50个分类结果,其中,2个分类结果为第一睡眠分期,3个分类结果为第二睡眠分期,45个分类结果为第三睡眠分期;则该第F时间段的睡眠分期的结果为第三睡眠分期。Assume that the classification model in the sleep staging device contains 50 classifiers, classify the feature data corresponding to the Fth time period, and get 50 classification results, of which, 2 classification results are the first sleep stage, and 3 classification results are the first sleep stage. Two sleep stages, 45 classification results are the third sleep stage; then the result of the sleep stage in the F time period is the third sleep stage.

本发明实施例通过机器学习算法对目标特征数据进行分类,进而得到睡眠分期的结果,分类更加准确、分类速度快,并且支持在线学习和大规模部署。The embodiment of the present invention classifies the target feature data through a machine learning algorithm, and then obtains the result of sleep staging, the classification is more accurate, the classification speed is fast, and online learning and large-scale deployment are supported.

在一种可选的实现方式中,上述获取目标用户的心电信号之前,上述方法还包括:In an optional implementation manner, before acquiring the ECG signal of the target user, the above method further includes:

接收时间设置指令;Receive time setting instructions;

上述获取目标用户的心电信号包括:The aforementioned acquisition of the ECG signal of the target user includes:

获取上述时间设置指令所指定的时间段的上述目标用户的心电信号。Obtain the electrocardiographic signal of the above-mentioned target user in the time period specified by the above-mentioned time setting instruction.

上述接收时间设置指令可以是通过上述睡眠分期设备的输入接口接收上述时间设置指令。上述时间设置指令可以包含起始时间和结束时间的信息。假定睡眠分期设备接收到的时间设置指令对应的起始时间为22:00,结束时间为07:00;则该睡眠分期设备获取目标用户在22:00到第二天07:00的心跳信号。假定睡眠分期设备接收到的时间设置指令对应的起始时间为22:00,结束时间为22:05;则该睡眠分期设备获取目标用户在22:00到22:05的心跳信号。The receiving the time setting instruction may be receiving the time setting instruction through the input interface of the sleep staging device. The above time setting instruction may include the information of the start time and the end time. Assume that the start time corresponding to the time setting instruction received by the sleep staging device is 22:00, and the end time is 07:00; then the sleep staging device acquires the heartbeat signal of the target user from 22:00 to 07:00 the next day. Assume that the start time corresponding to the time setting instruction received by the sleep staging device is 22:00 and the end time is 22:05; then the sleep staging device acquires the target user's heartbeat signal from 22:00 to 22:05.

本发明实施例中,睡眠分期设备根据接收到的时间设置指令获取该时间设置指令所指定时间段的心跳信号,可以满足不同用户的需求,适用不同的场景。In the embodiment of the present invention, the sleep staging device obtains the heartbeat signal of the time period specified by the time setting instruction according to the received time setting instruction, which can meet the needs of different users and apply to different scenarios.

在一种可选的实现方式中,所述将所述第一特征数据和第二特征数据进行数据融合之前,所述方法还包括:In an optional implementation manner, before the data fusion of the first feature data and the second feature data, the method further includes:

从睡眠分期设备预置的用户信息中获取所述第二特征数据;Acquiring the second feature data from user information preset by the sleep staging device;

或者,从服务器获取所述第二特征数据。Or, acquire the second feature data from a server.

所述睡眠分期设备预置的用户信息可以包含用户的姓名、年龄、病史、健康状况、体重等各种信息。所述睡眠分期设备预置的用户信息包含所述第二特征数据。所述睡眠分期设备在根据获取的心电信号确定睡眠分期时,可以从所述睡眠分期设备预置的用户信息中提取出所述目标用户对应的与睡眠分期相关的特征数据,即所述第二特征数据。The user information preset by the sleep staging device may include various information such as the user's name, age, medical history, health status, and weight. The user information preset by the sleep staging device includes the second feature data. When the sleep staging device determines the sleep stage according to the acquired ECG signal, it can extract the feature data related to the sleep stage corresponding to the target user from the user information preset by the sleep staging device, that is, the first Two feature data.

在实际应用中,用户在使用未存储有所述第二特征数据的睡眠分期设备确定睡眠分期时,需要输入所述第二特征数据,操作复杂,花费时间较长。也就是说,用户每次使用一个新的睡眠分期设备确定睡眠分期时,都需要输入一次所述第二特征数据。本发明实施例中,用户可以将所述第二特征数据存储到服务器上,每次使用一个新的睡眠分期设备确定睡眠分期时,可以登录目标账户获取所述目标用户的第二特征数据。进一步地,所述服务器还可以存储所述目标用户的历史睡眠分期结果,可以随时供用户查看。In practical applications, when a user uses a sleep staging device that does not store the second characteristic data to determine the sleep stage, the user needs to input the second characteristic data, and the operation is complicated and takes a long time. That is to say, each time the user uses a new sleep staging device to determine the sleep stage, he needs to input the second feature data once. In the embodiment of the present invention, the user can store the second characteristic data on the server, and each time a new sleep staging device is used to determine the sleep stage, the user can log in to the target account to obtain the second characteristic data of the target user. Furthermore, the server can also store the historical sleep staging results of the target user, which can be viewed by the user at any time.

本发明实施例中,目标用户对应的第二特征数据可以存储在服务器中,睡眠分期设备可以快速地获取所述第二特征数据。In the embodiment of the present invention, the second characteristic data corresponding to the target user may be stored in the server, and the sleep staging device may quickly obtain the second characteristic data.

在一种可选的实现方式中,上述使用分类模型对上述目标特征数据进行分类,得到睡眠分期的结果之后,上述方法还包括:In an optional implementation manner, the above-mentioned target feature data is classified using the classification model, and after the sleep staging result is obtained, the above-mentioned method further includes:

显示并存储上述睡眠分期的结果。Display and store the results of the sleep staging described above.

上述睡眠分期设备可以实时显示上述睡眠分期的结果;也可以将存储上述睡眠分期的结果,在接收到针对上述睡眠分期结果的查询指令后,显示上述睡眠分期的结果。具体的,可以图像化显示上述睡眠分期的结果。The sleep staging device may display the sleep staging results in real time; it may also store the sleep staging results, and display the sleep staging results after receiving a query instruction for the sleep staging results. Specifically, the results of the above sleep stages may be displayed graphically.

本发明实施例中,可以实时显示睡眠分期的结果,也可以在需要的时候进行查看,操作简单。In the embodiment of the present invention, the result of sleep staging can be displayed in real time, and can also be viewed when needed, and the operation is simple.

本发明实施例还提供一种睡眠分期设备,该睡眠分期设备用于执行前述任一项上述的方法的模块。具体地,参见图6,是本发明实施例提供的一种睡眠分期设备的示意框图。本实施例的睡眠分期设备包括:An embodiment of the present invention also provides a sleep staging device, the sleep staging device is used to execute the modules of any one of the foregoing methods. Specifically, refer to FIG. 6 , which is a schematic block diagram of a sleep staging device provided by an embodiment of the present invention. The sleep staging device of the present embodiment includes:

信号处理模块601,用于获取目标用户的心电信号;A signal processing module 601, configured to acquire the ECG signal of the target user;

特征提取模块602,用于提取上述心电信号对应的第一特征数据;A feature extraction module 602, configured to extract the first feature data corresponding to the ECG signal;

数据融合模块603,用于将上述第一特征数据和第二特征数据进行数据融合,得到目标特征数据,上述第二特征数据为上述目标用户对应的与睡眠分期相关的特征数据;The data fusion module 603 is configured to perform data fusion of the above-mentioned first feature data and second feature data to obtain target feature data, and the above-mentioned second feature data is feature data related to sleep stages corresponding to the above-mentioned target user;

预测模块604,用于使用分类模型对上述目标特征数据进行分类,得到睡眠分期的结果。The prediction module 604 is configured to use a classification model to classify the above-mentioned target feature data to obtain a result of sleep staging.

具体实现方法与图1中的方法相同,这里不作详述。The specific implementation method is the same as the method in FIG. 1 , and will not be described in detail here.

在一种可选的实现方式中,上述特征提取模块602,具体用于确定上述心电信号中至少一个RR间期;对上述至少一个RR间期进行时域分析和频域分析,得到上述第一特征数据。In an optional implementation manner, the above-mentioned feature extraction module 602 is specifically configured to determine at least one RR interval in the above-mentioned ECG signal; perform time-domain analysis and frequency-domain analysis on the above-mentioned at least one RR interval to obtain the above-mentioned first A characteristic data.

本发明实施例中,可以快速、准确地从心电信号提取出第一特征数据。In the embodiment of the present invention, the first feature data can be quickly and accurately extracted from the ECG signal.

在一种可选的实现方式中,上述第一特征数据包含的N个特征数据和上述第二特征数据包含的N个特征数据均对应第一时间段到第N时间段,上述N为大于或者等于1的整数;In an optional implementation, the N feature data included in the first feature data and the N feature data included in the second feature data correspond to the first time period to the Nth time period, and the above N is greater than or an integer equal to 1;

上述信号处理模块601,还用于获取上述第二特征数据;The above-mentioned signal processing module 601 is further configured to obtain the above-mentioned second feature data;

上述数据融合模块603,具体用于将上述第一特征数据和上述第二特征数据中对应相同时间段的特征数据进行融合,得到上述目标特征数据,上述目标特征数据中的N个特征数据对应上述第一时间段到上述第N时间段。The above-mentioned data fusion module 603 is specifically used to fuse the above-mentioned first feature data and the above-mentioned second feature data corresponding to the feature data of the same time period to obtain the above-mentioned target feature data, and the N feature data in the above-mentioned target feature data correspond to the above-mentioned The first time period to the above-mentioned Nth time period.

本发明实施例中,可以快速地将第一特征数据和第二特征数据中对应相同时间段的特征数据合并为一个字段。In the embodiment of the present invention, feature data corresponding to the same time period in the first feature data and the second feature data can be quickly combined into one field.

在一种可选的实现方式中,上述分类模型包含M个不同的分类器,上述M为大于1的整数;In an optional implementation, the classification model includes M different classifiers, where M is an integer greater than 1;

上述预测模块604,具体用于将上述目标特征数据中的第F个特征数据输入到上述M个不同的分类器,上述M个不同的分类器对上述第F个特征数据进行分类,得到M个分类结果;上述F为小于或者等于上述N的整数,上述M个分类结果为上述M个不同的分类器确定的第F时间段的睡眠分期的结果,每个分类器得到一个分类结果;确定上述M个分类结果中个数最多的分类结果为上述第F时间段的睡眠分期的结果。The prediction module 604 is specifically used to input the F-th feature data in the above-mentioned target feature data to the above-mentioned M different classifiers, and the above-mentioned M different classifiers classify the above-mentioned F-th feature data to obtain M Classification results; the above-mentioned F is an integer less than or equal to the above-mentioned N, and the above-mentioned M classification results are the results of the sleep staging of the Fth time period determined by the above-mentioned M different classifiers, and each classifier obtains a classification result; determine the above-mentioned The classification result with the largest number among the M classification results is the result of sleep staging in the Fth time period.

本发明实施例中,可以准确地确定睡眠分期,实现简单,准确率较高。In the embodiment of the present invention, the sleep stage can be accurately determined, which is simple to implement and has a high accuracy rate.

在一种可选的实现方式中,上述睡眠分期设备还包括:In an optional implementation manner, the above-mentioned sleep staging device also includes:

接收模块605,用于接收时间设置指令;A receiving module 605, configured to receive a time setting instruction;

上述信号处理模块601,具体用于获取上述目标用户在上述时间设置指令所指定的时间段的心电信号。The above-mentioned signal processing module 601 is specifically configured to obtain the electrocardiographic signal of the above-mentioned target user in the time period specified by the above-mentioned time setting instruction.

本发明实施例中,睡眠分期设备根据接收到的时间设置指令获取该时间设置指令所指定时间段的心跳信号,可以满足不同用户的需求,适用不同的场景。In the embodiment of the present invention, the sleep staging device obtains the heartbeat signal of the time period specified by the time setting instruction according to the received time setting instruction, which can meet the needs of different users and apply to different scenarios.

本发明实施例提供了一种基于机器学习的睡眠分期系统,该系统包含上述实施例中的睡眠分期设备。An embodiment of the present invention provides a sleep staging system based on machine learning, and the system includes the sleep staging device in the above embodiments.

举例来说,该基于机器学习的睡眠分期系统包含服务器和心电信号检测装置;该服务器为睡眠分期设备,从心电信号检测装置获取用户的心电信号,并进行睡眠分期;该心电信号检测装置为检测用户的心电信号的装置,例如可检测用户心电信号的床垫、睡眠带子等,该心电信号检测装置可以将采集到心电信号发送给上述睡眠分期设备。又举例来说,该基于机器学习的睡眠分期系统包含手机和心电信号检测装置;手机为睡眠分期设备,从该心电信号检测装置获取用户的心电信号,并进行睡眠分期;该心电信号检测装置可以是智能手环、智能手表等,用来检测用户的心电信号,并发送给该手机。For example, the sleep staging system based on machine learning includes a server and an ECG signal detection device; the server is a sleep staging device, which obtains the user's ECG signal from the ECG signal detection device and performs sleep staging; the ECG signal The detection device is a device that detects the user's ECG signal, such as a mattress, a sleep belt, etc. that can detect the user's ECG signal. The ECG signal detection device can send the collected ECG signal to the sleep staging device. For another example, the sleep staging system based on machine learning includes a mobile phone and an electrocardiographic signal detection device; the mobile phone is a sleep staging device, and the user's electrocardiogram is obtained from the electrocardiographic signal detection device for sleep staging; The signal detection device can be a smart bracelet, a smart watch, etc., which are used to detect the user's ECG signal and send it to the mobile phone.

参见图7,是本发明另一实施例提供的一种睡眠分期设备示意框图。如图所示的本实施例中的睡眠分期设备可以包括:一个或多个处理器701;一个或多个输入设备702,一个或多个输出设备703和存储器704。上述处理器701、输入设备702、输出设备703和存储器704通过总线705连接。存储器702用于存储计算机程序,上述计算机程序包括程序指令,处理器701用于执行存储器702存储的程序指令。其中,处理器701被配置用于调用上述程序指令执行:获取目标用户的心电信号;提取上述心电信号对应的第一特征数据;将上述第一特征数据和第二特征数据进行数据融合,得到目标特征数据,上述第二特征数据为上述目标用户对应的与睡眠分期相关的特征数据;使用分类模型对上述目标特征数据进行分类,得到睡眠分期的结果。Referring to FIG. 7 , it is a schematic block diagram of a sleep staging device provided by another embodiment of the present invention. The sleep staging device in this embodiment as shown in the figure may include: one or more processors 701 ; one or more input devices 702 , one or more output devices 703 and a memory 704 . The aforementioned processor 701 , input device 702 , output device 703 and memory 704 are connected through a bus 705 . The memory 702 is used to store computer programs, and the above computer programs include program instructions, and the processor 701 is used to execute the program instructions stored in the memory 702 . Wherein, the processor 701 is configured to invoke the above-mentioned program instructions to perform: acquiring the ECG signal of the target user; extracting the first feature data corresponding to the above-mentioned ECG signal; performing data fusion of the above-mentioned first feature data and the second feature data, Obtain target feature data, the second feature data is feature data related to sleep stages corresponding to the target user; use a classification model to classify the target feature data, and obtain a sleep stage result.

应当理解,在本发明实施例中,所称处理器701可以是中央处理模块(CentralProcessing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present invention, the so-called processor 701 may be a central processing module (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), dedicated Integrated Circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.

输入设备702可以包括触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备703可以包括显示器(LCD等)、扬声器等。The input device 702 may include a touch panel, a fingerprint sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, etc., and the output device 703 may include a display (LCD, etc.), a speaker, and the like.

该存储器704可以包括只读存储器和随机存取存储器,并向处理器701提供指令和数据。存储器704的一部分还可以包括非易失性随机存取存储器。例如,存储器704还可以存储设备类型的信息。The memory 704 may include read-only memory and random-access memory, and provides instructions and data to the processor 701 . A portion of memory 704 may also include non-volatile random access memory. For example, memory 704 may also store device type information.

具体实现中,本发明实施例中所描述的处理器701、输入设备702、输出设备703可执行本发明前述实施例中所描述的实现方式,也可执行本发明实施例所描述的睡眠分期设备的实现方式,在此不再赘述。In specific implementation, the processor 701, input device 702, and output device 703 described in the embodiment of the present invention can execute the implementation described in the foregoing embodiments of the present invention, and can also execute the sleep staging device described in the embodiment of the present invention The implementation method will not be repeated here.

在本发明的另一实施例中提供一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序包括程序指令,上述程序指令被处理器执行时实现:获取目标用户的心电信号;提取上述心电信号对应的第一特征数据;将上述第一特征数据和第二特征数据进行数据融合,得到目标特征数据,上述第二特征数据为上述目标用户对应的与睡眠分期相关的特征数据;使用分类模型对上述目标特征数据进行分类,得到睡眠分期的结果。In another embodiment of the present invention, a computer-readable storage medium is provided. The above-mentioned computer-readable storage medium stores a computer program, and the above-mentioned computer program includes program instructions. ECG signal; extract the first feature data corresponding to the above-mentioned ECG signal; perform data fusion of the above-mentioned first feature data and second feature data to obtain target feature data, and the above-mentioned second feature data is the sleep stage corresponding to the above-mentioned target user Relevant feature data; using a classification model to classify the above target feature data to obtain sleep staging results.

上述计算机可读存储介质可以是前述任一实施例上述的睡眠分期设备的内部存储模块,例如睡眠分期设备的硬盘或内存。上述计算机可读存储介质也可以是上述睡眠分期设备的外部存储设备,例如上述睡眠分期设备上配备的插接式硬盘,智能存储卡(SmartMedia Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,上述计算机可读存储介质还可以既包括上述睡眠分期设备的内部存储模块也包括外部存储设备。上述计算机可读存储介质用于存储上述计算机程序以及上述睡眠分期设备所需的其他程序和数据。上述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The above-mentioned computer-readable storage medium may be an internal storage module of the sleep staging device in any of the foregoing embodiments, such as a hard disk or a memory of the sleep staging device. The above-mentioned computer-readable storage medium may also be an external storage device of the above-mentioned sleep staging device, such as a plug-in hard disk equipped on the above-mentioned sleep staging device, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card , Flash Card (Flash Card) and so on. Further, the above-mentioned computer-readable storage medium may also include both an internal storage module of the above-mentioned sleep staging device and an external storage device. The above-mentioned computer-readable storage medium is used to store the above-mentioned computer program and other programs and data required by the above-mentioned sleep staging device. The computer-readable storage medium described above can also be used to temporarily store data that has been output or will be output.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the modules and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、睡眠分期设备和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system, sleep staging device and module can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、睡眠分期设备和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或模块的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, it should be understood that the disclosed system, sleep staging device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices or modules, and may also be electrical, mechanical or other forms of connection.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本发明实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solutions of the embodiments of the present invention.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以是两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.

所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of software products, and the computer software products are stored in a storage medium In, several instructions are included to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of various equivalents within the technical scope disclosed in the present invention. Modifications or replacements shall all fall within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (13)

1.一种睡眠分期确定方法,其特征在于,包括:1. A method for determining sleep stages, comprising: 获取目标用户的心电信号;Obtain the ECG signal of the target user; 提取所述心电信号对应的第一特征数据;extracting the first feature data corresponding to the ECG signal; 将所述第一特征数据和第二特征数据进行数据融合,得到目标特征数据,所述第二特征数据为所述目标用户对应的与睡眠分期相关的特征数据;performing data fusion on the first feature data and second feature data to obtain target feature data, where the second feature data is feature data related to sleep stages corresponding to the target user; 使用分类模型对所述目标特征数据进行分类,得到睡眠分期的结果。The target characteristic data is classified by using a classification model to obtain the result of sleep staging. 2.根据权利要求1所述的方法,其特征在于,所述提取所述心电信号对应的第一特征数据包括:2. The method according to claim 1, wherein said extracting the first characteristic data corresponding to said ECG signal comprises: 确定所述心电信号中至少一个RR间期;determining at least one RR interval in the electrocardiographic signal; 对所述至少一个RR间期进行时域分析和频域分析,得到所述第一特征数据。Perform time-domain analysis and frequency-domain analysis on the at least one RR interval to obtain the first characteristic data. 3.根据权利要求2所述的方法,其特征在于,所述第一特征数据和所述第二特征数据分别包含N个特征数据,所述第一特征数据包含的N个特征数据对应第一时间段到第N时间段,所述第二特征数据包含的N个特征数据对应所述第一时间段到所述第N时间段;每个特征数据对应一个时间段,所述N为大于或者等于1的整数;3. The method according to claim 2, wherein the first feature data and the second feature data respectively include N feature data, and the N feature data included in the first feature data correspond to the first time period to the Nth time period, the N feature data contained in the second feature data correspond to the first time period to the Nth time period; each feature data corresponds to a time period, and the N is greater than or an integer equal to 1; 所述将所述第一特征数据和第二特征数据进行数据融合,得到目标特征数据包括:The performing data fusion of the first feature data and the second feature data to obtain the target feature data includes: 将所述第一特征数据和所述第二特征数据中对应相同时间段的特征数据进行融合,得到所述目标特征数据,所述目标特征数据中的N个特征数据对应所述第一时间段到所述第N时间段。Fusing the feature data corresponding to the same time period in the first feature data and the second feature data to obtain the target feature data, and N feature data in the target feature data correspond to the first time period to the Nth time period. 4.根据权利要求3所述的方法,其特征在于,所述分类模型包含M个不同的分类器,所述M为大于1的整数;所述使用分类模型对所述目标特征数据进行分类,得到睡眠分期的结果包括:4. The method according to claim 3, wherein the classification model includes M different classifiers, and the M is an integer greater than 1; the use classification model classifies the target feature data, Results obtained for sleep staging include: 将所述目标特征数据中的第F个特征数据输入到所述M个不同的分类器,所述M个不同的分类器均对所述第F个特征数据进行分类,得到M个分类结果;所述F为小于或者等于所述N的整数,所述M个分类结果为所述M个不同的分类器确定的第F时间段的睡眠分期的结果,每个分类器得到一个分类结果;Inputting the F-th feature data in the target feature data to the M different classifiers, and the M different classifiers all classify the F-th feature data to obtain M classification results; The F is an integer less than or equal to the N, and the M classification results are the results of the sleep staging of the Fth time period determined by the M different classifiers, and each classifier obtains a classification result; 确定所述M个分类结果中个数最多的分类结果为所述第F时间段的睡眠分期的结果。Determining that the classification result with the largest number among the M classification results is the result of the sleep staging in the Fth time period. 5.根据权利要求1至4任意一项所述的方法,其特征在于,所述获取目标用户的心电信号之前,所述方法还包括:5. The method according to any one of claims 1 to 4, characterized in that, before acquiring the ECG signal of the target user, the method further comprises: 接收时间设置指令;Receive time setting instructions; 所述获取目标用户的心电信号包括:The acquisition of the ECG signal of the target user includes: 获取所述目标用户在所述时间设置指令所指定的时间段的心电信号。Acquiring the ECG signal of the target user in the time period specified by the time setting instruction. 6.根据权利要求5所述的方法,其特征在于,所述将所述第一特征数据和第二特征数据进行数据融合之前,所述方法还包括:6. The method according to claim 5, wherein, before performing data fusion on the first feature data and the second feature data, the method further comprises: 从睡眠分期设备预置的用户信息中获取所述第二特征数据;Acquiring the second feature data from user information preset by the sleep staging device; 或者,从服务器获取所述第二特征数据。Or, acquire the second feature data from a server. 7.根据权利要求5所述的方法,其特征在于,所述使用分类模型对所述目标特征数据进行分类,得到睡眠分期的结果之后,所述方法还包括:7. The method according to claim 5, wherein said use classification model is used to classify said target characteristic data, and after obtaining the result of sleep staging, said method further comprises: 显示并存储所述睡眠分期的结果。The results of the sleep staging are displayed and stored. 8.一种睡眠分期设备,其特征在于,包括:8. A sleep staging device, characterized in that, comprising: 信号处理模块,用于获取目标用户的心电信号;The signal processing module is used to obtain the ECG signal of the target user; 特征提取模块,用于提取所述心电信号对应的第一特征数据;A feature extraction module, configured to extract first feature data corresponding to the ECG signal; 数据融合模块,用于将所述第一特征数据和第二特征数据进行数据融合,得到目标特征数据,所述第二特征数据为所述目标用户对应的与睡眠分期相关的特征数据;A data fusion module, configured to perform data fusion of the first feature data and the second feature data to obtain target feature data, where the second feature data is feature data related to sleep stages corresponding to the target user; 预测模块,用于使用分类模型对所述目标特征数据进行分类,得到睡眠分期的结果。The prediction module is configured to use a classification model to classify the target feature data to obtain a sleep staging result. 9.根据权利要求8所述的睡眠分期设备,其特征在于,所述第一特征数据和所述第二特征数据分别包含N个特征数据,所述第一特征数据包含的N个特征数据对应第一时间段到第N时间段,所述第二特征数据包含的N个特征数据对应所述第一时间段到所述第N时间段;每个特征数据对应一个时间段,所述N为大于或者等于1的整数;9. The sleep staging device according to claim 8, wherein the first characteristic data and the second characteristic data respectively comprise N characteristic data, and the N characteristic data contained in the first characteristic data correspond to From the first time period to the Nth time period, the N characteristic data contained in the second characteristic data correspond to the first time period to the Nth time period; each characteristic data corresponds to a time period, and the N is an integer greater than or equal to 1; 所述数据融合模块,具体用于将所述第一特征数据和所述第二特征数据中对应相同时间段的特征数据进行融合,得到所述目标特征数据,所述目标特征数据中的N个特征数据对应所述第一时间段到所述第N时间段。The data fusion module is specifically used to fuse the feature data corresponding to the same time period in the first feature data and the second feature data to obtain the target feature data, and N pieces of the target feature data The feature data corresponds to the first time period to the Nth time period. 10.根据权利要求9所述的睡眠分期设备,其特征在于,所述分类模型包含M个不同的分类器,所述M为大于1的整数;10. The sleep staging device according to claim 9, wherein the classification model comprises M different classifiers, and the M is an integer greater than 1; 所述预测模块,具体用于将所述目标特征数据中的第F个特征数据输入到所述M个不同的分类器,所述M个不同的分类器对所述第F个特征数据进行分类,得到M个分类结果;所述F为小于或者等于所述N的整数,所述M个分类结果为所述M个不同的分类器确定的第F时间段的睡眠分期的结果,每个分类器得到一个分类结果;确定所述M个分类结果中个数最多的分类结果为所述第F时间段的睡眠分期的结果。The prediction module is specifically configured to input the F-th feature data in the target feature data to the M different classifiers, and the M different classifiers classify the F-th feature data , to obtain M classification results; the F is an integer less than or equal to the N, the M classification results are the results of the sleep stages of the Fth time period determined by the M different classifiers, each classification The device obtains a classification result; it is determined that the classification result with the largest number among the M classification results is the result of the sleep stage of the Fth time period. 11.一种睡眠分期设备,其特征在于,包括用于执行如权利要求1-7任一权利要求所述的方法的模块。11. A sleep staging device, characterized by comprising a module for executing the method according to any one of claims 1-7. 12.一种睡眠分期设备,其特征在于,包括处理器、输入设备、输出设备和存储器,所述处理器、输入设备、输出设备和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1-7任一项所述的方法。12. A sleep staging device, characterized in that it comprises a processor, an input device, an output device and a memory, and the processor, the input device, an output device and a memory are connected to each other, wherein the memory is used to store a computer program, The computer program includes program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1-7. 13.一种计算机可读存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1-7任一项所述的方法。13. A computer-readable storage medium, wherein the computer storage medium stores a computer program, the computer program includes program instructions, and when executed by a processor, the program instructions cause the processor to execute The method described in any one of claims 1-7.
CN201711282863.2A 2017-12-06 2017-12-06 Sleep stage determines method, relevant device and computer-readable medium Pending CN108201435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711282863.2A CN108201435A (en) 2017-12-06 2017-12-06 Sleep stage determines method, relevant device and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711282863.2A CN108201435A (en) 2017-12-06 2017-12-06 Sleep stage determines method, relevant device and computer-readable medium

Publications (1)

Publication Number Publication Date
CN108201435A true CN108201435A (en) 2018-06-26

Family

ID=62604185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711282863.2A Pending CN108201435A (en) 2017-12-06 2017-12-06 Sleep stage determines method, relevant device and computer-readable medium

Country Status (1)

Country Link
CN (1) CN108201435A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109316166A (en) * 2018-10-10 2019-02-12 大连理工大学 A human sleep stage estimation method based on deep learning network
CN109498001A (en) * 2018-12-25 2019-03-22 深圳和而泰数据资源与云技术有限公司 Sleep quality appraisal procedure and device
CN109567749A (en) * 2018-11-09 2019-04-05 速眠创新科技(深圳)有限公司 Dormant data processing method, device, computer equipment and storage medium
CN109770892A (en) * 2019-02-01 2019-05-21 中国科学院电子学研究所 A sleep staging method based on ECG signals
CN110008874A (en) * 2019-03-25 2019-07-12 联想(北京)有限公司 Data processing method and its device, computer system and readable medium
CN110706816A (en) * 2018-07-09 2020-01-17 厦门晨智数字科技有限公司 Method and equipment for regulating sleep environment based on artificial intelligence
CN111063438A (en) * 2019-12-17 2020-04-24 深圳先进技术研究院 Sleep quality evaluation system and method based on infrared image sequence
CN111067506A (en) * 2019-12-19 2020-04-28 佛山科学技术学院 A VR game physiological information collection device and method
CN111460850A (en) * 2019-01-02 2020-07-28 中国移动通信有限公司研究院 Data processing method and device, electronic equipment and storage medium
CN111685731A (en) * 2020-05-19 2020-09-22 珠海格力电器股份有限公司 Sleep data processing method, device, equipment and storage medium
CN113679339A (en) * 2020-05-19 2021-11-23 安徽华米健康科技有限公司 Sleep monitoring method, device, system and storage medium
CN114376521A (en) * 2021-12-27 2022-04-22 天翼云科技有限公司 A sleep state recognition model training, sleep staging method and device
CN115120192A (en) * 2022-04-20 2022-09-30 广东小天才科技有限公司 Energy determination method and device, electronic equipment and computer-readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006824A (en) * 2008-04-16 2011-04-06 皇家飞利浦电子股份有限公司 Method and system for sleep/wake state estimation
CN103000172A (en) * 2011-09-09 2013-03-27 中兴通讯股份有限公司 Signal classification method and device
CN104545883A (en) * 2014-11-18 2015-04-29 南京丰生永康软件科技有限责任公司 Electrocardiosignal-based sleep quality detection equipment and service thereof
CN104615789A (en) * 2015-03-06 2015-05-13 苏州大学 Data classifying method and device
CN104720748A (en) * 2013-12-24 2015-06-24 中国移动通信集团公司 Sleep stage determining method and sleep stage determining system
CN106175678A (en) * 2016-07-13 2016-12-07 翟思民 A kind of radio electrocardiographicmonitoring monitoring method towards sleep analysis, system and monitoring clothing
CN106225155A (en) * 2016-07-26 2016-12-14 珠海格力电器股份有限公司 Sleep state determination device and method, air conditioner control device and method and air conditioner
CN106333652A (en) * 2016-10-18 2017-01-18 首都医科大学 A sleep state analysis method
CN107007278A (en) * 2017-04-25 2017-08-04 中国科学院苏州生物医学工程技术研究所 Sleep mode automatically based on multi-parameter Fusion Features method by stages
CN107212890A (en) * 2017-05-27 2017-09-29 中南大学 A kind of motion identification and fatigue detection method and system based on gait information

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006824A (en) * 2008-04-16 2011-04-06 皇家飞利浦电子股份有限公司 Method and system for sleep/wake state estimation
CN103000172A (en) * 2011-09-09 2013-03-27 中兴通讯股份有限公司 Signal classification method and device
CN104720748A (en) * 2013-12-24 2015-06-24 中国移动通信集团公司 Sleep stage determining method and sleep stage determining system
CN104545883A (en) * 2014-11-18 2015-04-29 南京丰生永康软件科技有限责任公司 Electrocardiosignal-based sleep quality detection equipment and service thereof
CN104615789A (en) * 2015-03-06 2015-05-13 苏州大学 Data classifying method and device
CN106175678A (en) * 2016-07-13 2016-12-07 翟思民 A kind of radio electrocardiographicmonitoring monitoring method towards sleep analysis, system and monitoring clothing
CN106225155A (en) * 2016-07-26 2016-12-14 珠海格力电器股份有限公司 Sleep state determination device and method, air conditioner control device and method and air conditioner
CN106333652A (en) * 2016-10-18 2017-01-18 首都医科大学 A sleep state analysis method
CN107007278A (en) * 2017-04-25 2017-08-04 中国科学院苏州生物医学工程技术研究所 Sleep mode automatically based on multi-parameter Fusion Features method by stages
CN107212890A (en) * 2017-05-27 2017-09-29 中南大学 A kind of motion identification and fatigue detection method and system based on gait information

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110706816A (en) * 2018-07-09 2020-01-17 厦门晨智数字科技有限公司 Method and equipment for regulating sleep environment based on artificial intelligence
CN110706816B (en) * 2018-07-09 2024-05-10 厦门晨智数字科技有限公司 Method and equipment for sleep environment regulation and control based on artificial intelligence
CN109316166A (en) * 2018-10-10 2019-02-12 大连理工大学 A human sleep stage estimation method based on deep learning network
CN109567749A (en) * 2018-11-09 2019-04-05 速眠创新科技(深圳)有限公司 Dormant data processing method, device, computer equipment and storage medium
CN109498001A (en) * 2018-12-25 2019-03-22 深圳和而泰数据资源与云技术有限公司 Sleep quality appraisal procedure and device
CN111460850A (en) * 2019-01-02 2020-07-28 中国移动通信有限公司研究院 Data processing method and device, electronic equipment and storage medium
CN111460850B (en) * 2019-01-02 2023-05-12 中国移动通信有限公司研究院 Data processing method and device, electronic equipment and storage medium
CN109770892A (en) * 2019-02-01 2019-05-21 中国科学院电子学研究所 A sleep staging method based on ECG signals
CN110008874A (en) * 2019-03-25 2019-07-12 联想(北京)有限公司 Data processing method and its device, computer system and readable medium
CN111063438A (en) * 2019-12-17 2020-04-24 深圳先进技术研究院 Sleep quality evaluation system and method based on infrared image sequence
CN111067506A (en) * 2019-12-19 2020-04-28 佛山科学技术学院 A VR game physiological information collection device and method
CN111685731A (en) * 2020-05-19 2020-09-22 珠海格力电器股份有限公司 Sleep data processing method, device, equipment and storage medium
CN113679339A (en) * 2020-05-19 2021-11-23 安徽华米健康科技有限公司 Sleep monitoring method, device, system and storage medium
CN111685731B (en) * 2020-05-19 2022-04-15 珠海格力电器股份有限公司 Sleep data processing method, device, equipment and storage medium
CN114376521A (en) * 2021-12-27 2022-04-22 天翼云科技有限公司 A sleep state recognition model training, sleep staging method and device
CN115120192A (en) * 2022-04-20 2022-09-30 广东小天才科技有限公司 Energy determination method and device, electronic equipment and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN108201435A (en) Sleep stage determines method, relevant device and computer-readable medium
JP5961235B2 (en) Sleep / wake state evaluation method and system
US20180279891A1 (en) Passive arrhythmias detection based on photoplethysmogram (ppg) inter-beat intervals and morphology
CN104720746B (en) A kind of sleep stage determines method and system
CN108478209A (en) Ecg information dynamic monitor method and dynamic monitor system
CN109674474B (en) Sleep apnea recognition method, device and computer readable medium
US20220175324A1 (en) Computer-based prediction of fetal and maternal outcomes
WO2021208656A1 (en) Sleep risk prediction method and apparatus, and terminal device
CN105380618A (en) biological information analyzing system and biological information processing system
US8805484B2 (en) System, apparatus and method for diagnosing seizures
JP6468637B2 (en) Sleepiness estimation apparatus and sleepiness estimation program
Hassan et al. A multi-sensor based automatic sleep apnea detection system for adults using neural network inference on FPGA
WO2025066208A1 (en) Hrv-data preprocessing method and apparatus, and electronic device
CN114886403A (en) Malignant arrhythmia identification and prediction system based on pulse main wave interval
CN121194746A (en) Rapid eye movement sleep disorder detection to facilitate selective screening for parkinson's disease
US20240156389A1 (en) Health monitoring system and method
Ho et al. A telesurveillance system with automatic electrocardiogram interpretation based on support vector machine and rule-based processing
Dey et al. Wearable PPG sensor based alertness scoring system
CN110313922A (en) A kind of pressure regulating method, pressure regulating system and terminal
TWI487503B (en) Automatic sleep-stage scoring apparatus
EP3831287B1 (en) Method, device and non-transitory machine readable information storage medium for capacitive touch panel based biosignal measurement
CN116098578A (en) Sleep monitoring method and sleep monitoring system
Li et al. Constructing an effective model for mental stress detection with small–scale analysis
CN112656371A (en) Human body sleep sign detection method and system based on heart rate respiration signals
CN106333674A (en) Sleep cycle detection method and system in sleep state analysis

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180626