[go: up one dir, main page]

CN114391808A - A sleep staging method and system based on nonlinear interdependence - Google Patents

A sleep staging method and system based on nonlinear interdependence Download PDF

Info

Publication number
CN114391808A
CN114391808A CN202111589919.5A CN202111589919A CN114391808A CN 114391808 A CN114391808 A CN 114391808A CN 202111589919 A CN202111589919 A CN 202111589919A CN 114391808 A CN114391808 A CN 114391808A
Authority
CN
China
Prior art keywords
nonlinear
sleep
time point
interdependencies
interdependence
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
CN202111589919.5A
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.)
Shandong Normal University
Original Assignee
Shandong Normal University
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 Shandong Normal University filed Critical Shandong Normal University
Priority to CN202111589919.5A priority Critical patent/CN114391808A/en
Publication of CN114391808A publication Critical patent/CN114391808A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/369Electroencephalography [EEG]
    • 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/7264Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
    • A61B5/7267Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems involving training the classification device

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Surgery (AREA)
  • Public Health (AREA)
  • Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Veterinary Medicine (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Biophysics (AREA)
  • Psychiatry (AREA)
  • Psychology (AREA)
  • Evolutionary Computation (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physiology (AREA)
  • Signal Processing (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

The invention provides a sleep staging method and a system based on nonlinear interdependence, which comprises the steps of obtaining two electroencephalogram signals of a tested person within a certain period of time; extracting various nonlinear interdependencies between the two electroencephalogram signals and cross-correlation coefficients between the two electroencephalogram signals, and combining the correlation coefficients into a sleep characteristic; and based on the sleep characteristics, obtaining the sleep stage of the tested person in the period of time by adopting a classifier. Compared with the traditional linear method, more information can be provided, and the sleep staging accuracy is improved.

Description

一种基于非线性相互依赖度的睡眠分期方法及系统A sleep staging method and system based on nonlinear interdependence

技术领域technical field

本发明属于脑电信号处理技术领域,尤其涉及一种基于非线性相互依赖度的睡眠分期方法及系统。The invention belongs to the technical field of EEG signal processing, and in particular relates to a method and system for sleep staging based on nonlinear interdependence.

背景技术Background technique

本部分的陈述仅仅是提供了与本发明相关的背景技术信息,不必然构成在先技术。The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

检测、评估睡眠质量具有重要的临床意义和实际应用价值,而睡眠状态分析是评估睡眠质量的重要依据。在20世纪30年代,德国精神病学家Berger发现人在睡眠和清醒期的脑电(electroencephalogram,EEG)活动呈现了不同的节律。1968年,R&K睡眠分期标准被提出,即将睡眠过程分为清醒期(W)、快速眼动期(rapid eye movement,REM)和非快速眼动期(non-rapid eye movement,NREM),其中,非快速眼动期又分为S1、S2、S3和S4期,因此,睡眠分期问题是一种六分类问题。传统睡眠分期是借助专家的肉眼判断,这一过程及其耗费时间且带有主观判断几率,所以,传统睡眠分析方法对于睡眠分期的准确率不高。Detecting and evaluating sleep quality has important clinical significance and practical application value, and sleep state analysis is an important basis for evaluating sleep quality. In the 1930s, German psychiatrist Berger discovered that the electroencephalogram (EEG) activity of people during sleep and wakefulness showed different rhythms. In 1968, the R&K sleep staging standard was proposed, which divided the sleep process into wakefulness (W), rapid eye movement (REM) and non-rapid eye movement (NREM). The non-REM stage is further divided into S1, S2, S3 and S4 stages, therefore, the problem of sleep staging is a six-category problem. Traditional sleep staging relies on the naked eye of experts, which is a time-consuming process with subjective judgment probability. Therefore, the accuracy of traditional sleep analysis methods for sleep staging is not high.

近年来,基于单通道EEG、多通道EEG、心电、眼电、肌电与呼吸等生理信号提取特征,并使用分类器进行睡眠分期的研究越来越多。其中,基于EEG的睡眠分期效果最好,心电次之,肌电与眼电效果较差。但是,现有的基于EEG的睡眠分期方法依赖于先验假设,且睡眠分期正确率不高、速度较慢。In recent years, there have been more and more studies on sleep staging using classifiers to extract features based on physiological signals such as single-channel EEG, multi-channel EEG, ECG, OMG, EMG, and respiration. Among them, sleep staging based on EEG has the best effect, followed by ECG, and the effect of EMG and OMG is poor. However, the existing EEG-based sleep staging methods rely on a priori assumptions, and the accuracy of sleep staging is not high and the speed is slow.

发明内容SUMMARY OF THE INVENTION

为了解决上述背景技术中存在的技术问题,本发明提供一种基于非线性相互依赖度的睡眠分期方法及系统,提取非线性度量作为特征,应用于睡眠的检测,相比传统的线性方法,可以提供更多的信息,提高了睡眠分期正确率。In order to solve the technical problems existing in the above background technology, the present invention provides a method and system for sleep staging based on nonlinear interdependence, extracting nonlinear metrics as features and applying them to sleep detection. Compared with traditional linear methods, it can Provide more information and improve the accuracy of sleep staging.

为了实现上述目的,本发明采用如下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:

本发明的第一个方面提供一种基于非线性相互依赖度的睡眠分期方法,其包括:A first aspect of the present invention provides a method for sleep staging based on nonlinear interdependence, comprising:

获取被测者某一段时间内的两种脑电信号;Obtain two EEG signals of the subject within a certain period of time;

提取两种脑电信号之间的多种非线性相互依赖度和两种脑电信号之间的互相关系数,并组合为睡眠特征;Extract various nonlinear interdependencies between two EEG signals and the cross-correlation coefficient between two EEG signals, and combine them into sleep features;

基于睡眠特征,采用分类器,得到被测者该段时间内所处睡眠阶段。Based on the sleep characteristics, a classifier is used to obtain the sleep stage of the subject during this period.

进一步的,所述提取两种脑电信号之间的多种非线性相互依赖度和两种脑电信号之间的互相关系数的具体步骤为:Further, the specific steps of extracting multiple nonlinear interdependencies between the two EEG signals and the cross-correlation coefficient between the two EEG signals are:

对每一种脑电信号进行重建,得到重建后的脑电信号;Reconstruct each EEG signal to obtain the reconstructed EEG signal;

计算重建后的脑电信号中每个时间点的独立邻域距离和耦合邻域距离;Calculate the independent neighborhood distance and coupled neighborhood distance for each time point in the reconstructed EEG signal;

基于两种脑电信号中每个时间点的独立邻域距离和耦合邻域距离,计算两种脑电信号之间的多种非线性相互依赖度和两种脑电信号之间的互相关系数。Based on the independent neighborhood distance and the coupled neighborhood distance at each time point in the two EEG signals, various nonlinear interdependencies between the two EEG signals and the cross-correlation coefficient between the two EEG signals are calculated .

进一步的,所述独立邻域距离为一种脑电信号中的某时间点到同一种脑电信号中的该时间点的k邻域时间点的均方欧氏距离。Further, the independent neighborhood distance is the mean squared Euclidean distance from a certain time point in one type of EEG signal to the time point in k-neighborhood time points of this time point in the same type of EEG signal.

进一步的,所述耦合邻域距离为一种脑电信号中的某时间点到另一种脑电信号中的该时间点的k邻域时间点的均方欧氏距离。Further, the coupled neighborhood distance is the mean squared Euclidean distance from a certain time point in one kind of EEG signal to the time point in k neighborhoods of this time point in another kind of EEG signal.

进一步的,所述多种非线性相互依赖度包括第一非线性相互依赖度,所述第一非线性相互依赖度的计算方法为:计算一种脑电信号在每个时间点上的独立邻域距离与耦合邻域距离的比值,并计算所有时间点上的该比值的均值,将该均值作为第一非线性相互依赖度。Further, the multiple nonlinear interdependence degrees include a first nonlinear interdependence degree, and the calculation method of the first nonlinear interdependence degree is: calculating an independent neighbor of an EEG signal at each time point. The ratio of the domain distance to the coupled neighborhood distance is calculated, and the mean value of the ratio at all time points is calculated, and the mean value is used as the first nonlinear interdependence.

进一步的,所述多种非线性相互依赖度包括第二非线性相互依赖度,所述第二非线性相互依赖度的计算方法为:计算一种脑电信号在每个时间点上的独立邻域距离与耦合邻域距离的比值,并计算每个时间点上的比值的对数值,将所有时间点上的对数值的均值作为第二非线性相互依赖度。Further, the multiple nonlinear interdependence degrees include a second nonlinear interdependence degree, and the calculation method of the second nonlinear interdependence degree is: calculating an independent neighbor of an EEG signal at each time point. The ratio of the domain distance to the coupled neighborhood distance is calculated, and the log value of the ratio at each time point is calculated, taking the mean of the log values at all time points as the second nonlinear interdependence.

进一步的,所述多种非线性相互依赖度包括第三非线性相互依赖度,所述第三非线性相互依赖度的计算方法为:计算得到一种脑电信号在每个时间点上的独立邻域距离与耦合邻域距离的差值后,计算该差值与同一时间点上的独立邻域距离的比值,并将所有时间点上的该比值的均值,将该均值作为第三非线性相互依赖度。Further, the multiple nonlinear interdependence degrees include a third nonlinear interdependence degree, and the calculation method of the third nonlinear interdependence degree is: calculating to obtain an independent EEG signal at each time point. After the difference between the neighborhood distance and the coupled neighborhood distance, the ratio of the difference to the independent neighborhood distance at the same time point is calculated, and the average value of the ratio at all time points is taken as the third nonlinear interdependence.

本发明的第二个方面提供一种基于非线性相互依赖度的睡眠分期系统,其包括:A second aspect of the present invention provides a non-linear interdependence-based sleep staging system, comprising:

信号获取模块,其被配置为:获取被测者某一段时间内的两种脑电信号;A signal acquisition module, which is configured to: acquire two kinds of EEG signals of the subject within a certain period of time;

特征提取模块,其被配置为:提取两种脑电信号之间的多种非线性相互依赖度和两种脑电信号之间的互相关系数,并组合为睡眠特征;a feature extraction module, configured to: extract multiple nonlinear interdependencies between two kinds of EEG signals and a cross-correlation coefficient between two kinds of EEG signals, and combine them into sleep features;

分类模块,其被配置为:基于睡眠特征,采用分类器,得到被测者该段时间内所处睡眠阶段。The classification module is configured to: based on the sleep feature, use a classifier to obtain the sleep stage of the subject within the period of time.

本发明的第三个方面提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述所述的一种基于非线性相互依赖度的睡眠分期方法中的步骤。A third aspect of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the above-mentioned method for sleep staging based on non-linear interdependence. step.

本发明的第四个方面提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述所述的一种基于非线性相互依赖度的睡眠分期方法中的步骤。A fourth aspect of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the above-mentioned one when executing the program Steps in a non-linear interdependence-based approach to sleep staging.

与现有技术相比,本发明的有益效果是:Compared with the prior art, the beneficial effects of the present invention are:

本发明提供了一种基于非线性相互依赖度的睡眠分期方法,其将非线性相互依赖应用于睡眠分期,非线性相互依赖不需要提取脑电信号中其他特征与变量,仅需要脑电信号的时间序列,体现较为直接;非线性相互依赖度量是动力学系统之间的耦合强度,睡眠期变化时,脑电信号变化剧烈,体现很强的非线性特征,此时非线性依赖性就显示出了强烈的波动;非线性相互依赖使用的是脑电信号的时间序列数据,便于获取与监控,具有更好的时效性。The present invention provides a method for sleep staging based on nonlinear interdependence, which applies nonlinear interdependence to sleep staging. Non-linear interdependence does not require extraction of other features and variables in EEG signals, and only requires Time series, the expression is relatively direct; the nonlinear interdependence measure is the coupling strength between dynamic systems. When the sleep period changes, the EEG signal changes drastically, reflecting strong nonlinear characteristics. At this time, the nonlinear dependence shows strong fluctuations; nonlinear interdependence uses the time series data of EEG signals, which is easy to obtain and monitor, and has better timeliness.

本发明提供了一种基于非线性相互依赖度的睡眠分期方法,其采用模糊逻辑分类器,该分类器可以从观测数据中识别原型,并构建0阶AnYa型模糊规则;该方法获得的元参数直接来源于数据,不依赖于先验假设;而且可以根据调整计算复杂度在性能跟计算效率之间进行平衡,同时模糊逻辑分类器还支持不同类型的距离度量,因此,可以高效地根据特定问题来调整。The present invention provides a sleep staging method based on nonlinear interdependence, which adopts a fuzzy logic classifier, which can identify prototypes from observation data and construct 0-order AnYa-type fuzzy rules; the meta-parameters obtained by the method It is directly derived from data and does not depend on a priori assumptions; and it can balance performance and computational efficiency according to the adjustment of computational complexity. At the same time, fuzzy logic classifiers also support different types of distance metrics, so they can be efficiently based on specific problems. to adjust.

附图说明Description of drawings

构成本发明的一部分的说明书附图用来提供对本发明的进一步理解,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。The accompanying drawings forming a part of the present invention are used to provide further understanding of the present invention, and the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute an improper limitation of the present invention.

图1是本发明实施例一的一种基于非线性相互依赖度的睡眠分期方法的流程图。FIG. 1 is a flowchart of a sleep staging method based on nonlinear interdependence according to Embodiment 1 of the present invention.

具体实施方式Detailed ways

下面结合附图与实施例对本发明作进一步说明。The present invention will be further described below with reference to the accompanying drawings and embodiments.

应该指出,以下详细说明都是例示性的,旨在对本发明提供进一步的说明。除非另有指明,本文使用的所有技术和科学术语具有与本发明所属技术领域的普通技术人员通常理解的相同含义。It should be noted that the following detailed description is exemplary and intended to provide further explanation of the invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本发明的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,当在本说明书中使用术语“包含”和/或“包括”时,其指明存在特征、步骤、操作、器件、组件和/或它们的组合。It should be noted that the terminology used herein is for the purpose of describing specific embodiments only, and is not intended to limit the exemplary embodiments according to the present invention. As used herein, unless the context clearly dictates otherwise, the singular is intended to include the plural as well, furthermore, it is to be understood that when the terms "comprising" and/or "including" are used in this specification, it indicates that There are features, steps, operations, devices, components and/or combinations thereof.

实施例一Example 1

本实施例提供了一种基于非线性相互依赖度的睡眠分期方法,如图1所示,具体包括如下步骤:This embodiment provides a method for sleep staging based on nonlinear interdependence, as shown in FIG. 1 , which specifically includes the following steps:

步骤1、获取被测者某一段时间内的两种脑电信号:第一脑电信号X′={x′n}和第二脑电信号Y′={y′n},其中,n=1,…,N。Step 1. Obtain two EEG signals of the subject within a certain period of time: the first EEG signal X′={x′ n } and the second EEG signal Y′={y′ n }, where n= 1, …, N.

具体的:(101)获取被测者的两种脑电信号,其中,不同脑电信号采用不同的脑电导联方法获得;假设,存在两种脑电导联方法x和y,采用第一脑电导联方法x得到的第一脑电信号,采用第二脑电导联方法y得到的第二脑电信号;(102)对每种脑电信号进行分段,得到每一段时间内的脑电信号;具体的,根据R&K规则,将每种脑电信号以30秒为一段进行分割,得到每一段时间内的第一脑电信号X′={x′n}和第二脑电信号Y′={y′n},其中,n=1,…,N。Specifically: (101) Acquire two kinds of EEG signals of the subject, wherein different EEG signals are obtained by different EEG lead methods; Suppose, there are two EEG lead methods x and y, and the first EEG lead method is used. (102) Segment each EEG signal to obtain the EEG signal in each period of time; Specifically, according to the R&K rule, each EEG signal is divided into a segment of 30 seconds to obtain the first EEG signal X′={x′ n } and the second EEG signal Y′={ y' n }, where n=1,...,N.

或者,直接采用两种脑电导联方法获取被测者一段时间(30秒)内的两种脑电信号。Or, directly use two EEG lead methods to obtain two EEG signals of the subject within a period of time (30 seconds).

因此,每段脑电信号X′或Y′对应一个睡眠阶段(W、REM、S1、S2、S3或S4)。Therefore, each EEG signal X' or Y' corresponds to a sleep stage (W, REM, S1, S2, S3 or S4).

步骤2、提取两种脑电信号之间的多种非线性相互依赖度和两种脑电信号之间的互相关系数,并组合为睡眠特征。Step 2, extracting multiple nonlinear interdependencies between the two EEG signals and the cross-correlation coefficient between the two EEG signals, and combining them into a sleep feature.

(201)对每一种脑电信号进行重建,得到重建后的脑电信号。(201) Reconstructing each EEG signal to obtain the reconstructed EEG signal.

具体的,根据两个脑电导联x与y,得到的时间序列X′={x′n}和Y′={y′n},重建脑电信号,其中,重建后的脑电信号中每个时间点的延迟向量为xn=(x′n,…,x′n-(m-1)τ)与yn=(y′n,…,y′n-(m-1)τ),n=1,…N,其中,n为时间点,xn表示第一脑电信号中第n个时间点的延迟向量,m是嵌入维数,τ表示时滞。Specifically, according to the two EEG leads x and y, the obtained time series X′={x′ n } and Y′={y′ n }, reconstruct the EEG signal, wherein each EEG signal in the reconstructed EEG signal is The delay vectors of the time points are x n =(x' n ,...,x' n-(m-1)τ ) and y n =(y' n ,...,y' n-(m-1)τ ) , n=1,...N, where n is the time point, x n represents the delay vector of the nth time point in the first EEG signal, m is the embedding dimension, and τ represents the time delay.

因此,重建后的第一脑电信号X={xn},重建后的第二脑电信号Y={yn}。Therefore, the reconstructed first EEG signal X={x n }, and the reconstructed second EEG signal Y={y n }.

(202)计算重建后的脑电信号中每个时间点的延迟向量的独立邻域距离。独立邻域距离为一种脑电信号中的某时间点到同一种脑电信号中的该时间点的k邻域时间点的均方欧氏距离。(202) Calculate the independent neighborhood distance of the delay vector of each time point in the reconstructed EEG signal. The independent neighborhood distance is the mean squared Euclidean distance from a certain time point in a kind of EEG signal to the k-neighborhood time point of this time point in the same kind of EEG signal.

具体的,基于重建后的第一脑电信号X中的每个时间点的延迟向量xn,计算一种脑电信号中的某时间点xn到同一种脑电信号中的该时间点xn的k邻域的均方欧氏距离,即第一脑电信号中每个时间点xn的独立邻域距离为:Specifically, based on the delay vector x n of each time point in the reconstructed first EEG signal X, calculate a certain time point x n in one EEG signal to the time point x in the same EEG signal The mean square Euclidean distance of the k neighborhoods of n , that is, the independent neighborhood distance of each time point x n in the first EEG signal is:

Figure BDA0003428747840000061
Figure BDA0003428747840000061

同理,对于重建后的第二脑电信号Y中的每个时间点的延迟向量yn,可以计算每个时间点延迟向量yn到其k邻域的均方欧氏距离,得到第二脑电信号中每个时间点的延迟向量yn的独立邻域距离为

Figure BDA0003428747840000062
Similarly, for the delay vector y n at each time point in the reconstructed second EEG signal Y, the mean square Euclidean distance from the delay vector y n at each time point to its k neighborhood can be calculated to obtain the second The independent neighborhood distance of the delay vector y n at each time point in the EEG signal is
Figure BDA0003428747840000062

(203)计算重建后的脑电信号中每个时间点的延迟向量的耦合邻域距离。耦合邻域距离为一种脑电信号中的某时间点到另一种脑电信号中的该时间点的k邻域时间点的均方欧氏距离。(203) Calculate the coupled neighborhood distance of the delay vector at each time point in the reconstructed EEG signal. The coupled neighborhood distance is the mean squared Euclidean distance from a certain time point in one kind of EEG signal to the k neighborhood time points of this time point in another kind of EEG signal.

对于重建后的第一脑电信号X中的每个时间点的延迟向量xn,计算在重建后的第二脑电信号Y条件下,每个时间点的延迟向量xn到另一种脑电信号中的该时间点的k邻域的均方欧氏距离,该距离是通过将最近邻替换为y的最近邻的等时间近邻来定义的,即第一脑电信号中每个时间点的延迟向量xn的耦合邻域距离:For the delay vector x n of each time point in the reconstructed first EEG signal X, calculate the delay vector x n at each time point to another brain under the condition of the reconstructed second EEG signal Y The mean squared Euclidean distance of the k-neighborhood of this time point in the electrical signal, which is defined by replacing the nearest neighbor with the equal-time neighbor of the nearest neighbor of y, that is, each time point in the first EEG signal The coupled-neighborhood distance of the delay vector x n :

Figure BDA0003428747840000071
Figure BDA0003428747840000071

其中,rn,j与sn,j,j=1,…,k分别表示xn与yn的K近邻的时间指数。Among them, rn ,j and sn ,j , j=1,...,k represent the time indices of the K nearest neighbors of x n and y n , respectively.

同理,对于重建后的第二脑电信号Y中的每个时间点的延迟向量yn,计算在重建后的第二脑电信号X条件下,每个时间点的延迟向量yn到其k邻域的均方欧氏距离,得到第二脑电信号中每个时间点的延迟向量yn的耦合邻域距离

Figure BDA0003428747840000072
Similarly, for the delay vector yn at each time point in the reconstructed second EEG signal Y, calculate the delay vector yn at each time point to its value under the condition of the reconstructed second EEG signal X. The mean square Euclidean distance of the k neighborhoods, to obtain the coupled neighborhood distance of the delay vector y n at each time point in the second EEG signal
Figure BDA0003428747840000072

(204)基于两种脑电信号中每个时间点延迟向量的独立邻域距离和耦合邻域距离,计算两种脑电信号之间的多种非线性相互依赖度和两种脑电信号之间的互相关系数。其中,睡眠特征(第一睡眠特征、第二睡眠特征、第三睡眠特征、第四睡眠特征、第五睡眠特征、第六睡眠特征和第七睡眠特征)。其中,多种非线性相互依赖度包括第一非线性相互依赖度S、第二非线性相互依赖度H和第三非线性相互依赖度N,第一非线性相互依赖度S对应于第一睡眠特征和第二睡眠特征,第二非线性相互依赖度H对应于第三睡眠特征和第四睡眠特征,第三非线性相互依赖度N对应于第五睡眠特征和第六睡眠特征,两种脑电信号之间的互相关系数对应于第七睡眠特征。(204) Based on the independent neighborhood distance and the coupled neighborhood distance of the delay vector at each time point in the two EEG signals, calculate various nonlinear interdependencies between the two EEG signals and the relationship between the two EEG signals The correlation coefficient between them. Among them, sleep characteristics (first sleep characteristics, second sleep characteristics, third sleep characteristics, fourth sleep characteristics, fifth sleep characteristics, sixth sleep characteristics and seventh sleep characteristics). The multiple nonlinear interdependencies include a first nonlinear interdependency S, a second nonlinear interdependence H, and a third nonlinear interdependence N, and the first nonlinear interdependence S corresponds to the first sleep feature and the second sleep feature, the second nonlinear interdependence H corresponds to the third sleep feature and the fourth sleep feature, the third nonlinear interdependence N corresponds to the fifth sleep feature and the sixth sleep feature, the two brains The cross-correlation coefficient between the electrical signals corresponds to the seventh sleep characteristic.

(a)第一非线性相互依赖度S,第一非线性相互依赖度的计算方法为:计算一种脑电信号在每个时间点上的独立邻域距离与耦合邻域距离的比值,并计算所有时间点上的该比值的均值,将该均值作为第一非线性相互依赖度。(a) The first nonlinear interdependence degree S, the calculation method of the first nonlinear interdependence degree is: calculating the ratio of the independent neighborhood distance and the coupled neighborhood distance of an EEG signal at each time point, and The average of the ratios at all time points is calculated and used as the first nonlinear interdependence.

如果重建后的第一脑电信号X的点阵{xn}有一个平均的平方半径

Figure BDA0003428747840000081
那么如果这些系统是强相关的,有
Figure BDA0003428747840000082
Figure BDA0003428747840000083
如果他们是独立的,那么
Figure BDA0003428747840000084
因此,可以定义一个相互依赖的度量(第一睡眠特征)S(k)(X∣Y)为If the lattice {x n } of the reconstructed first EEG signal X has an average square radius
Figure BDA0003428747840000081
Then if these systems are strongly correlated, we have
Figure BDA0003428747840000082
Figure BDA0003428747840000083
If they are independent, then
Figure BDA0003428747840000084
Therefore, an interdependent measure (the first sleep feature) S (k) (X∣Y) can be defined as

Figure BDA0003428747840000085
Figure BDA0003428747840000085

由于

Figure BDA0003428747840000086
有because
Figure BDA0003428747840000086
Have

0<S(k)(X∣Y)≤10<S (k) (X∣Y)≤1

如果S(k)(X∣Y)的值趋近于0,那么XY之间关系独立,而当S(k)(X∣Y)的值趋近于1时,表示XY将同时达到最大值。If the value of S (k) (X∣Y) approaches 0, then the relationship between XY is independent, and when the value of S (k) (X∣Y) approaches 1, it means that XY will reach the maximum value at the same time .

同理,可以得到第二睡眠特征S(k)(Y∣X)。Similarly, the second sleep feature S (k) (Y∣X) can be obtained.

(b)第二非线性相互依赖度H,第二非线性相互依赖度的计算方法为:计算一种脑电信号在每个时间点上的独立邻域距离与耦合邻域距离的比值,并计算每个时间点上的比值的对数值,将所有时间点上的对数值的均值作为第二非线性相互依赖度。(b) The second nonlinear interdependence degree H, the calculation method of the second nonlinear interdependence degree is: calculate the ratio of the independent neighborhood distance and the coupled neighborhood distance of an EEG signal at each time point, and The logarithm of the ratio at each time point was calculated, and the mean of the log values at all time points was used as the second nonlinear interdependence.

将另一个非线性相互依赖的度量(第三睡眠特征)H(k)(X∣Y)定义为Define another nonlinear interdependence metric (third sleep feature) H (k) (X∣Y) as

Figure BDA0003428747840000087
Figure BDA0003428747840000087

如果X和Y是完全独立的,则H(k)(X∣Y)的值为0,而如果Y中的接近也意味着X中对等时间伙伴的接近,那么它将是正值。H (k) (X∣Y) has the value 0 if X and Y are completely independent, while it will be positive if proximity in Y also implies proximity of peer-to-peer time partners in X.

同理,可以得到第四睡眠特征H(k)(Y∣X)。Similarly, the fourth sleep feature H (k) (Y∣X) can be obtained.

(c)第三非线性相互依赖度N,第三非线性相互依赖度的计算方法为:计算得到一种脑电信号在每个时间点上的独立邻域距离与耦合邻域距离的差值后,计算该差值与同一时间点上的独立邻域距离的比值,并将所有时间点上的该比值的均值,将该均值作为第三非线性相互依赖度。(c) The third nonlinear interdependence degree N, the calculation method of the third nonlinear interdependence degree is: calculate the difference between the independent neighborhood distance and the coupled neighborhood distance of an EEG signal at each time point Then, the ratio of the difference to the independent neighborhood distance at the same time point is calculated, and the average of the ratios at all time points is taken as the third nonlinear interdependence.

在之前的耦合混沌系统研究中,H对噪声更有鲁棒性,但缺点是它没有归一化,因此,提出了一种新的测量(第五睡眠特征)N(X∣Y),它是经过标准化的且比S更加鲁棒。In previous studies of coupled chaotic systems, H is more robust to noise, but the disadvantage is that it is not normalized, therefore, a new measure (the fifth sleep feature) N(X∣Y) is proposed, which is normalized and more robust than S.

Figure BDA0003428747840000091
Figure BDA0003428747840000091

同理,可以得到第六睡眠特征N(k)(Y∣X)。Similarly, the sixth sleep feature N (k) (Y∣X) can be obtained.

一般来说,S(X∣Y),H(X∣Y),N(X∣Y)不等于S(Y∣X),H(Y∣X),N(Y∣X)。S,H,N的不对称性是其他非线性度量互信息和相位同步的主要优势。Generally speaking, S(X∣Y), H(X∣Y), N(X∣Y) are not equal to S(Y∣X), H(Y∣X), N(Y∣X). The asymmetry of S, H, N is the main advantage of other nonlinear metrics for mutual information and phase synchronization.

(d)利用S(X∣Y)、H(X∣Y)、N(X∣Y)与S(Y∣X)、H(Y∣X)、N(Y∣X)作为特征进行提取,此外,再加上互相关函数(第七睡眠特征)cxy,互相关函数是最常见的衡量两种脑电信号之间的度量,这里

Figure BDA0003428747840000092
与σx表示{xn}的均值与方差,
Figure BDA0003428747840000093
与σy表示{yn}的均值与方差,τ表示时滞,且有cxy=cyx。(d) Use S(X∣Y), H(X∣Y), N(X∣Y) and S(Y∣X), H(Y∣X), N(Y∣X) as features to extract, In addition, coupled with the cross-correlation function (the seventh sleep feature) c xy , the cross-correlation function is the most common measure between two EEG signals, here
Figure BDA0003428747840000092
and σ x represents the mean and variance of {x n },
Figure BDA0003428747840000093
and σ y represents the mean and variance of {y n }, τ represents the time delay, and c xy = cyx .

Figure BDA0003428747840000094
Figure BDA0003428747840000094

综上,第一睡眠特征、第二睡眠特征、第三睡眠特征、第四睡眠特征、第五睡眠特征、第六睡眠特征和第七睡眠特征共同组成某一段时间内被测者的睡眠特征。To sum up, the first sleep feature, the second sleep feature, the third sleep feature, the fourth sleep feature, the fifth sleep feature, the sixth sleep feature, and the seventh sleep feature together constitute the sleep feature of the subject within a certain period of time.

步骤3、基于睡眠特征,采用分类器,得到被测者该段时间内所处睡眠阶段。Step 3. Based on the sleep characteristics, a classifier is used to obtain the sleep stage of the subject within the period of time.

作为一种实施方式,分类器采用模糊逻辑分类器。As an embodiment, the classifier adopts a fuzzy logic classifier.

当某一段时间内被测者的睡眠特征的集合达到时,用a表示,计算其发射强度,选取最大值时的标签作为最终结果:When the set of sleep characteristics of the subject within a certain period of time is reached, it is represented by a, and its emission intensity is calculated, and the label at the maximum value is selected as the final result:

Figure BDA0003428747840000101
Figure BDA0003428747840000101

标签=arg max(λM(a))label = arg max(λ M (a))

其中,M={W,REM,S1,S2,S3,S4},a为测试样本,P为每类形成的最终原型,P分为六类,每一类睡眠分期产生一种原型集合。睡眠分期为6分类,对于每一类分别产生原型,共有六种,分别为{W,REM,S1,S2,S3,S4},当一个测试样本到达时,分别计算它与六类原型之间的发作强度,某一类原型并非只有一个,所以在该类之中的强度也不同,取在该类的最大的发射强度作为测试样本与该原型的代表,这样就有六种代表,再在六种代表中取最大值,作为其最终的标签,所以取两次最大值。先在某一类中取最大值,再比较六类的最大值。Among them, M={W, REM, S1, S2, S3, S4}, a is the test sample, P is the final prototype formed by each type, P is divided into six types, and each type of sleep stage produces a prototype set. The sleep stage is divided into 6 categories. For each category, there are six types of prototypes, which are {W, REM, S1, S2, S3, S4}. When a test sample arrives, calculate the difference between it and the six types of prototypes. The attack intensity of a certain type of prototype is not only one, so the intensity in this type is also different, and the maximum emission intensity in this type is taken as the representative of the test sample and the prototype, so there are six kinds of representatives, and then in the The maximum value of the six representatives is taken as its final label, so the maximum value is taken twice. First take the maximum value in a certain category, and then compare the maximum value of the six categories.

模糊逻辑分类器使用非参数EDA量来客观地揭示数据的集成性质和相互分布,具体的,采用以下三个EDA量:Fuzzy logic classifiers use nonparametric EDA quantities to objectively reveal the integrated nature and mutual distribution of data. Specifically, the following three EDA quantities are used:

假设存在训练样本集A={a1,a2,…,ak},该训练样本集A对应的唯一数据样本集为U={u1,u2,…,uUk}:Assuming that there is a training sample set A={a 1 ,a 2 ,..., ak }, the only data sample set corresponding to the training sample set A is U={u 1 ,u 2 ,...,u Uk }:

①累计接近,数据样本ai(即,某一时间段某个被测者的睡眠特征)的累计接近度表示为:① Cumulative proximity, the cumulative proximity of the data sample a i (that is, the sleep characteristics of a subject in a certain period of time) is expressed as:

Figure BDA0003428747840000102
Figure BDA0003428747840000102

其中,d(ai,aj)表示ai,aj之间的距离。Among them, d(a i , a j ) represents the distance between a i , a j .

②数据样本ai的单模态密度:②The single-modal density of the data sample a i :

Figure BDA0003428747840000111
Figure BDA0003428747840000111

③唯一数据样本ui的多模态密度:③ Multimodal density of the unique data sample ui :

Figure BDA0003428747840000112
Figure BDA0003428747840000112

其中,ui为唯一数据样本,fi为唯一数据样本ui出现的频率。例如,对于训练样本集A={1,1,2,3,4,4},那么其唯一数据样本集为U={1,2,3,4},对应的频率fi分别为1/3,1/6,1/6,1/3。Among them, ui is the unique data sample, and fi is the frequency of the unique data sample ui. For example, for the training sample set A={1,1,2,3,4,4}, then its only data sample set is U={1,2,3,4}, and the corresponding frequencies fi are 1/3 respectively , 1/6, 1/6, 1/3.

非参数EDA量的递归计算形式在数据的处理中起着重要作用。该分类器可以采用三种分类距离进行分类,分别是:马氏距离,欧氏距离,余弦相似度。在这三种距离下,均可以通过在内存中保存关键元参数来实现快速计算,这也保证了本方法的高效率。The recursive form of computation of nonparametric EDA quantities plays an important role in the processing of the data. The classifier can use three classification distances for classification, namely: Mahalanobis distance, Euclidean distance, and cosine similarity. Under these three distances, fast computation can be achieved by saving key meta-parameters in memory, which also ensures the high efficiency of this method.

作为一种实施方式,模糊逻辑分类器采用两种训练方式进行训练:离线训练和在线训练:As an implementation manner, the fuzzy logic classifier is trained using two training methods: offline training and online training:

(1)离线训练(1) Offline training

首先,计算训练样本集

Figure BDA0003428747840000113
对应的每一个唯一数据样本wi的多模态密度
Figure BDA0003428747840000114
并将
Figure BDA0003428747840000115
进行排列进列表{w}。之后选出列表{w}中的局部极大值,之后将局部极大值存入{p}0。以S1类的训练数据为例。First, calculate the training sample set
Figure BDA0003428747840000113
The corresponding multimodal density of each unique data sample w i
Figure BDA0003428747840000114
and will
Figure BDA0003428747840000115
Arrange into list {w}. Then the local maxima in the list {w} are selected, and then the local maxima are stored in {p} 0 . Take the training data of class S1 as an example.

Figure BDA0003428747840000116
Figure BDA0003428747840000116

THEN(wi∈{p}0)THEN( wi ∈{p} 0 )

之后,{p}0中的每一个元素,吸附最近的其他数据样本形成数据云。Wp为{p}0中的第p个元素吸附最近的数据样本后形成的数据云的原型,即第p个数据云的原型:After that, each element in {p} 0 absorbs the nearest other data samples to form a data cloud. Wp is the prototype of the data cloud formed after the p-th element in {p} 0 adsorbs the nearest data sample, that is, the prototype of the p-th data cloud:

Figure BDA0003428747840000121
Figure BDA0003428747840000121

之后找到第p个数据云的中心,根据平均半径与其他数据云的中心形成邻域,具体的,若某个数据云的中心与第p个数据云的中心的距离小于平均半径,则该数据云为第p个数据云的邻域。平均半径

Figure BDA0003428747840000122
由粒度(L)决定。一般来说,L越大分类越细。Then find the center of the p-th data cloud, and form a neighborhood with the centers of other data clouds according to the average radius. Specifically, if the distance between the center of a data cloud and the center of the p-th data cloud is less than the average radius, the data Cloud is the neighborhood of the p-th data cloud. average radius
Figure BDA0003428747840000122
Determined by particle size (L). Generally speaking, the larger the L, the finer the classification.

Figure BDA0003428747840000123
Figure BDA0003428747840000123

如果第p个数据云中心的多模态密度比第p个数据云的邻域中所有数据云中心的多模态要大,那么第p个数据云的原型便被确认为是一个原型,将第p个数据云的原型归入{p}S1If the multimodal density of the pth data cloud center is greater than the multimodality of all data cloud centers in the neighborhood of the pth data cloud, then the prototype of the pth data cloud is confirmed as a prototype, and the The prototype of the p-th data cloud is assigned to {p} S1 .

(2)在线训练(2) Online training

当一个新的训练数据到达时,首先更新平均半径

Figure BDA0003428747840000124
之后计算该新的训练数据单模态密度。如果其单模态密度大于已有原型的最大的单模态密度或小于已有原型的最小单模态密度,那么它将成为一个新的原型;When a new training data arrives, first update the average radius
Figure BDA0003428747840000124
This new training data unimodal density is then calculated. If its single-modal density is greater than the maximum single-modal density of the existing prototype or less than the minimum single-modal density of the existing prototype, then it will become a new prototype;

如果不符合,那么计算其与最近的原型的距离并与平均半径

Figure BDA0003428747840000125
进行比较。如果大于平均距离,那么它也将成为一个新的原型。If it does not match, then calculate its distance from the nearest prototype and compare it with the average radius
Figure BDA0003428747840000125
Compare. If it is greater than the average distance, then it will also become a new prototype.

当成为一个新的原型后,将分类器的参数进行更新。如果无法称为新的原型,那么它将被归入最近的原型,同时更新参数。When it becomes a new prototype, the parameters of the classifier are updated. If it cannot be called a new archetype, then it will be relegated to the most recent archetype, and the parameters will be updated.

将原型形成的步骤共重复六次,得到六类原型,分别表示为{p}REM,{p}S1,{p}s2等。The steps of prototype formation are repeated six times, and six types of prototypes are obtained, which are represented as {p} REM , {p} S1 , {p} s2 and so on.

步骤4、获得被测者连续多个时间段内所处睡眠阶段后,进行后处理:对于睡眠分期的六个阶段,采取对于每个阶段分类进行判读,如对于清醒期,将结果分为清醒期与非清醒期,进行一次判定并得到结果。对于每个对象的六种分期分别进行判定,取平均值作为最终的结果。具体的,对h个时间段内所处睡眠阶段进行后处理,假设第1个时间段至第h1个时间段内,有超过阈值个时间段处于于某一睡眠阶段,且第1个时间段和第h1个时间段也处于该睡眠阶段,则将第1个时间段至第h1个时间段内不处于该睡眠阶段的时间段,修改为处于该睡眠阶段。例如,对400个时间段内所处睡眠阶段进行后处理,其中第1~100段为S1,其他为S2,S3或REM等其他分期。当进行判断,得到400段结果后,针对S1进行结果判定,变为二分类——S1类与非S1类。第1~100段应该判定为S1类,101~400应判定为非S1类。如果第20个片段被判定为S1类,那么就是正确的;第200个片段被判断为S1就是错误的;第300个片段被判断为非S1期,那么就是正确的。对于这400段进行判读,得到S1的结果。Step 4. After obtaining the sleep stage of the subject in multiple consecutive time periods, perform post-processing: for the six stages of sleep stages, take the classification of each stage to interpret, such as for the wake-up stage, divide the results into wake-up stages. Period and non-awake period, make a judgment and get the result. The six stages of each object were judged separately, and the average was taken as the final result. Specifically, post-processing is performed on the sleep stage in h time periods. It is assumed that from the first time period to the h1th time period, there are more than a threshold time period in a certain sleep stage, and the first time period is in a certain sleep stage. and the h1 th time period is also in the sleep stage, the time period from the first time period to the h1 th time period that is not in the sleep stage is modified to be in the sleep stage. For example, post-processing is performed on the sleep stages in 400 time periods, of which the first to 100th periods are S1, and the others are other stages such as S2, S3 or REM. When the judgment is made and 400 pieces of results are obtained, the result is judged for S1, and it becomes two categories - S1 category and non-S1 category. Paragraphs 1 to 100 should be judged as S1, and 101 to 400 should be judged as non-S1. If the 20th segment is judged as S1, then it is correct; if the 200th segment is judged as S1, it is wrong; if the 300th segment is judged as non-S1, then it is correct. Interpret these 400 segments and get the result of S1.

本发明的方法在都柏林圣文森特大学医院所提供的睡眠数据库上进行验证。该数据库包含多种生理信息记录如脑电信号,心电信号等。其中,C3-A2与C4-A1为两条脑电信号,所以以这两条导联作为样本,提取它们之间的非线性相互依赖性关系。在本实验中,选择时滞τ=2,嵌入维数m=10,邻域K=10,泰勒矫正T=50。经过对三种分类距离、粒度大小与训练集在线离线训练比例的选择与实验测试,得到:当分类距离选择余弦相似度、粒度为12、训练集全部用于离线训练时的正确率最高。The method of the present invention was validated on a sleep database provided by St Vincent's University Hospital, Dublin. The database contains a variety of physiological information records such as EEG signals, ECG signals, etc. Among them, C3-A2 and C4-A1 are two EEG signals, so these two leads are used as samples to extract the nonlinear interdependence between them. In this experiment, time delay τ=2, embedding dimension m=10, neighborhood K=10, and Taylor correction T=50 are chosen. After the selection and experimental testing of three classification distances, granularity sizes and training set online and offline training ratios, it is obtained that the correct rate is the highest when cosine similarity is selected for the classification distance, the granularity is 12, and the training set is all used for offline training.

通过表1的实验结果,可以看到,在五位被测者的测试中,正确率平均值达到了81%,与其他方法对比,结果较好。From the experimental results in Table 1, it can be seen that in the test of five subjects, the average accuracy rate reached 81%, which is better than other methods.

表1实验结果Table 1 Experimental results

Figure BDA0003428747840000131
Figure BDA0003428747840000131

Figure BDA0003428747840000141
Figure BDA0003428747840000141

基于非线性动力学,可以将对象睡眠时提取脑电信号的不同导联视为几个非线性动力系统;将多通道脑电信号导联之间的各种联系与区别看做几个动力学系统之间存在的耦合关系;由于不同的睡眠分期之间脑电信号不断变化,不同动力学系统之间耦合关系也不断变化;所以,睡眠期间的不断变化综合体现为两个脑电导联之间的耦合关系的变动,本发明采用非线性动力学的方法进行对于睡眠期间的研究。本发明通过从多通道脑电信号中提取特征进行睡眠分期,由于脑电图信号的许多特征不能由线性模型产生,所以,本发明提取非线性度量作为特征,应用于睡眠的检测,比传统的线性方法提供更多的信息。Based on nonlinear dynamics, the different leads that extract EEG signals during sleep can be regarded as several nonlinear dynamic systems; the various connections and differences between multi-channel EEG signal leads can be regarded as several dynamics The coupling relationship between systems; due to the continuous change of EEG signals between different sleep stages, the coupling relationship between different dynamic systems is also constantly changing; therefore, the continuous changes during sleep are comprehensively reflected in the relationship between two EEG leads The change of the coupling relationship, the present invention adopts the method of nonlinear dynamics to study the sleep period. The present invention performs sleep staging by extracting features from multi-channel EEG signals. Since many features of EEG signals cannot be generated by linear models, the present invention extracts nonlinear metrics as features and applies it to sleep detection. Linear methods provide more information.

本发明采用模糊逻辑分类器,该分类器不依赖于任何先验假设,仅依靠数据之间的内部关系来进行识别与分类,且仅在内存中保存关键的元参数,计算速度极快,解决了其他方法计算速度较慢的问题;本发明还有三种分类距离供实际情况灵活选择:马氏距离,欧氏距离,余弦相似度;克服了以往睡眠分期正确率不高的缺点,速度较快;而且可以灵活地调整计算复杂度:既可以得到较高的检测率,又可以避免对于训练集的过度学习导致的过拟合;通过灵活的调整参数,在不同的情况下得到优秀的结果。The present invention adopts a fuzzy logic classifier, which does not rely on any a priori assumptions, but only relies on the internal relationship between data to identify and classify, and only saves key meta-parameters in the memory. The problem of slow calculation speed of other methods is solved; the present invention also has three classification distances for flexible selection in actual situations: Mahalanobis distance, Euclidean distance, and cosine similarity; Overcoming the shortcomings of low accuracy of sleep staging in the past, the speed is faster ; And the computational complexity can be flexibly adjusted: it can not only obtain a higher detection rate, but also avoid over-fitting caused by over-learning of the training set; by flexibly adjusting the parameters, excellent results can be obtained in different situations.

实施例二Embodiment 2

本实施例提供了一种基于非线性相互依赖度的睡眠分期系统,其具体包括如下模块:This embodiment provides a sleep staging system based on nonlinear interdependence, which specifically includes the following modules:

信号获取模块,其被配置为:获取被测者某一段时间内的两种脑电信号;A signal acquisition module, which is configured to: acquire two kinds of EEG signals of the subject within a certain period of time;

特征提取模块,其被配置为:提取两种脑电信号之间的多种非线性相互依赖度和两种脑电信号之间的互相关系数,并组合为睡眠特征;a feature extraction module, configured to: extract multiple nonlinear interdependencies between two kinds of EEG signals and a cross-correlation coefficient between two kinds of EEG signals, and combine them into sleep features;

分类模块,其被配置为:基于睡眠特征,采用分类器,得到被测者该段时间内所处睡眠阶段。The classification module is configured to: based on the sleep feature, use a classifier to obtain the sleep stage of the subject within the period of time.

此处需要说明的是,本实施例中的各个模块与实施例一中的各个步骤一一对应,其具体实施过程相同,此处不再累述。It should be noted here that each module in this embodiment corresponds to each step in Embodiment 1 one by one, and the specific implementation process thereof is the same, which is not repeated here.

实施例三Embodiment 3

本实施例提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上述实施例一所述的一种基于非线性相互依赖度的睡眠分期方法中的步骤。This embodiment provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the steps in the non-linear interdependence-based sleep staging method described in the first embodiment above. step.

实施例四Embodiment 4

本实施例提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述实施例一所述的一种基于非线性相互依赖度的睡眠分期方法中的步骤。This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor implements the one described in the first embodiment when the processor executes the program. Steps in a non-linear interdependence-based approach to sleep staging.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including but not limited to disk storage, optical storage, and the like.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(RandomAccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, the processes of the embodiments of the above-mentioned methods may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1. A sleep staging method based on nonlinear interdependencies, comprising:
acquiring two electroencephalogram signals of a tested person within a certain period of time;
extracting various nonlinear interdependencies between the two electroencephalogram signals and cross-correlation coefficients between the two electroencephalogram signals, and combining the correlation coefficients into a sleep characteristic;
and based on the sleep characteristics, obtaining the sleep stage of the tested person in the period of time by adopting a classifier.
2. The sleep stage classification method based on nonlinear interdependence as claimed in claim 1, wherein the specific steps of extracting various nonlinear interdependences between two electroencephalogram signals and cross-correlation coefficients between two electroencephalogram signals are as follows:
reconstructing each electroencephalogram signal to obtain reconstructed electroencephalogram signals;
calculating the independent neighborhood distance and the coupling neighborhood distance of each time point in the reconstructed electroencephalogram signal;
based on the independent neighborhood distance and the coupling neighborhood distance of each time point in the two electroencephalogram signals, various nonlinear interdependencies between the two electroencephalogram signals and cross-correlation coefficients between the two electroencephalogram signals are calculated.
3. The method of claim 2, wherein the independent neighborhood distance is the mean squared euclidean distance from a time point in one electroencephalogram signal to a time point in k neighborhood of the time point in the same electroencephalogram signal.
4. The method of claim 2, wherein the coupling neighborhood distance is the mean squared euclidean distance from a time point in one brain electrical signal to a time point k neighborhood of the time point in another brain electrical signal.
5. The sleep staging method based on nonlinear interdependencies as recited in claim 2, wherein the plurality of nonlinear interdependencies include a first nonlinear interdependency calculated by: and calculating the ratio of the independent neighborhood distance to the coupling neighborhood distance of the electroencephalogram signal at each time point, calculating the mean value of the ratio at all the time points, and taking the mean value as a first nonlinear interdependence degree.
6. The sleep staging method based on nonlinear interdependencies as recited in claim 2, wherein the plurality of nonlinear interdependencies includes a second nonlinear interdependency calculated by: and calculating the ratio of the independent neighborhood distance to the coupling neighborhood distance of the electroencephalogram signal at each time point, calculating the logarithm value of the ratio at each time point, and taking the mean value of the logarithm values at all the time points as a second nonlinear interdependence.
7. The sleep staging method based on nonlinear interdependencies as recited in claim 2, wherein the plurality of nonlinear interdependencies includes a third nonlinear interdependency calculated by: calculating to obtain a difference value between the independent neighborhood distance and the coupling neighborhood distance of the electroencephalogram signal at each time point, calculating a ratio of the difference value to the independent neighborhood distance at the same time point, and taking the mean value of the ratios at all time points as a third nonlinear interdependence.
8. A sleep staging system based on non-linear interdependencies, comprising:
a signal acquisition module configured to: acquiring two electroencephalogram signals of a tested person within a certain period of time;
a feature extraction module configured to: extracting various nonlinear interdependencies between the two electroencephalogram signals and cross-correlation coefficients between the two electroencephalogram signals, and combining the correlation coefficients into a sleep characteristic;
a classification module configured to: and based on the sleep characteristics, obtaining the sleep stage of the tested person in the period of time by adopting a classifier.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of a non-linear interdependence based sleep staging method as claimed in any one of the claims 1-7.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps in a non-linear interdependence based sleep staging method as claimed in any one of claims 1-7.
CN202111589919.5A 2021-12-23 2021-12-23 A sleep staging method and system based on nonlinear interdependence Pending CN114391808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111589919.5A CN114391808A (en) 2021-12-23 2021-12-23 A sleep staging method and system based on nonlinear interdependence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111589919.5A CN114391808A (en) 2021-12-23 2021-12-23 A sleep staging method and system based on nonlinear interdependence

Publications (1)

Publication Number Publication Date
CN114391808A true CN114391808A (en) 2022-04-26

Family

ID=81227642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111589919.5A Pending CN114391808A (en) 2021-12-23 2021-12-23 A sleep staging method and system based on nonlinear interdependence

Country Status (1)

Country Link
CN (1) CN114391808A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110092831A1 (en) * 2008-04-14 2011-04-21 Itamar Medical Ltd. Non invasive method and apparatus for determining light-sleep and deep-sleep stages
CN108968915A (en) * 2018-06-12 2018-12-11 山东大学 Sleep state classification method and system based on entropy feature and support vector machines
US20200338304A1 (en) * 2018-01-16 2020-10-29 Walter Viveiros System and method for sleep environment management
US20200346016A1 (en) * 2019-05-02 2020-11-05 Enhale Medical, Inc. Systems and methods to improve sleep disordered breathing using closed-loop feedback

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110092831A1 (en) * 2008-04-14 2011-04-21 Itamar Medical Ltd. Non invasive method and apparatus for determining light-sleep and deep-sleep stages
US20200338304A1 (en) * 2018-01-16 2020-10-29 Walter Viveiros System and method for sleep environment management
CN108968915A (en) * 2018-06-12 2018-12-11 山东大学 Sleep state classification method and system based on entropy feature and support vector machines
US20200346016A1 (en) * 2019-05-02 2020-11-05 Enhale Medical, Inc. Systems and methods to improve sleep disordered breathing using closed-loop feedback

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HAN G. JO 等: "Genetic fuzzy classifier for sleep stage identification", 《COMPUTERS IN BIOLOGY AND MEDICINE》, vol. 40, no. 7, 31 July 2010 (2010-07-31), XP027141017 *
SERAP AYDIN 等: "Mutual Information Analysis of Sleep EEG in Detecting Psycho-Physiological Insomnia", 《EDUCATION & TRAINING》, vol. 39, no. 43, 3 March 2015 (2015-03-03) *
闫彦 等: "轻度认知障碍老年人脑电的非线性相互依赖脑网络分析", 《中国生物医学工程学报》, vol. 40, no. 6, 20 December 2021 (2021-12-20) *

Similar Documents

Publication Publication Date Title
Diykh et al. EEG sleep stages identification based on weighted undirected complex networks
Cui et al. Automatic Sleep Stage Classification Based on Convolutional Neural Network and Fine‐Grained Segments
Zhao et al. Self-supervised learning from multi-sensor data for sleep recognition
Veeranki et al. Nonlinear signal processing methods for automatic emotion recognition using electrodermal activity
Zhu et al. An efficient visibility graph similarity algorithm and its application on sleep stages classification
CN107273841A (en) A kind of electric sensibility classification method of the brain based on EMD and gaussian kernel function SVM
CN116439672A (en) Multi-resolution sleep stage classification method based on dynamic self-adaptive kernel graph neural network
Yang et al. A study on automatic sleep stage classification based on CNN-LSTM
Zhang et al. A review of automated sleep stage based on EEG signals
Vindas et al. Guided deep embedded clustering regularization for multifeature medical signal classification
Zhong et al. Subject-generic EEG feature selection for emotion classification via transfer recursive feature elimination
CN112037906A (en) Method and system for expanding sample data of long-time physiological signal time sequence
CN118426594B (en) Man-machine interaction method, device and equipment based on electroencephalogram probability coding
Tang et al. Multi-domain based dynamic graph representation learning for EEG emotion recognition
Gurve et al. Deep learning of eeg time–frequency representations for identifying eye states
CN112446307A (en) Local constraint-based non-negative matrix factorization electrocardiogram identity recognition method and system
Wu et al. Personal sleep pattern visualization using sequence-based kernel self-organizing map on sound data
CN114391808A (en) A sleep staging method and system based on nonlinear interdependence
Zhang et al. Heart sound classification and recognition based on EEMD and correlation dimension
Liu et al. Joint Contrastive Learning with Feature Alignment for Cross-Corpus EEG-based Emotion Recognition
CN117290709A (en) Method, system, device and storage medium for continuous dynamic intent decoding
Hao et al. A novel sleep staging algorithm based on hybrid neural network
Radhakrishnan et al. An Autonomous Sleep-Stage Detection Technique in Disruptive Technology Environment
He et al. Identification of EEG-based music emotion using hybrid COA features and t-SNE
Yulita et al. Sequence-based sleep stage classification using conditional neural fields

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
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20241101