[go: up one dir, main page]

CN110742621B - Signal processing method and computer equipment - Google Patents

Signal processing method and computer equipment Download PDF

Info

Publication number
CN110742621B
CN110742621B CN201911055292.8A CN201911055292A CN110742621B CN 110742621 B CN110742621 B CN 110742621B CN 201911055292 A CN201911055292 A CN 201911055292A CN 110742621 B CN110742621 B CN 110742621B
Authority
CN
China
Prior art keywords
blood oxygen
signal
signals
time domain
oxygen saturation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911055292.8A
Other languages
Chinese (zh)
Other versions
CN110742621A (en
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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN201911055292.8A priority Critical patent/CN110742621B/en
Publication of CN110742621A publication Critical patent/CN110742621A/en
Application granted granted Critical
Publication of CN110742621B publication Critical patent/CN110742621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/145Measuring characteristics of blood in vivo, e.g. gas concentration or pH-value ; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid or cerebral tissue
    • A61B5/14542Measuring characteristics of blood in vivo, e.g. gas concentration or pH-value ; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid or cerebral tissue for measuring blood gases
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/08Measuring devices for evaluating the respiratory organs
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/08Measuring devices for evaluating the respiratory organs
    • A61B5/0826Detecting or evaluating apnoea events
    • 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/4818Sleep apnoea
    • 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
    • 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)
  • Animal Behavior & Ethology (AREA)
  • Veterinary Medicine (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Physiology (AREA)
  • Artificial Intelligence (AREA)
  • Pulmonology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Psychiatry (AREA)
  • Signal Processing (AREA)
  • Optics & Photonics (AREA)
  • Evolutionary Computation (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The invention provides a signal processing method and computer equipment, and relates to the technical field of signals. Wherein the method comprises the following steps: acquiring an original blood oxygen signal; preprocessing the original blood oxygen signal to obtain a first blood oxygen signal; determining a first time domain characteristic of the first blood oxygen signal; the first time domain feature is used for characterizing whether the blood oxygen saturation of the first blood oxygen signal is reduced or not; and inputting the first time domain characteristic into a preset respiratory classification model to obtain the target respiratory category to which the original blood oxygen signal belongs. In the embodiment of the present invention, the signal processing device may classify the first blood oxygen signal according to a time domain feature that can represent whether the blood oxygen saturation is decreased, and classify the first blood oxygen signal through a preset respiration classification model, so as to determine a respiration type to which the original blood oxygen signal corresponding to the first blood oxygen signal belongs.

Description

一种信号处理方法及计算机设备A signal processing method and computer equipment

技术领域technical field

本发明涉及信号技术领域,特别是涉及一种信号处理方法及计算机设备。The present invention relates to the field of signal technology, in particular to a signal processing method and computer equipment.

背景技术Background technique

近年来,随着信号技术的不断发展,信号技术的应用领域也越来越广泛,例如在医学领域中,可以对血氧信号、心电信号等医学信号数据进行处理,得到的处理结果能够辅助临床分析。In recent years, with the continuous development of signal technology, the application field of signal technology has become more and more extensive. For example, in the medical field, medical signal data such as blood oxygen signal and ECG signal can be processed, and the obtained processing results can assist Clinical analysis.

目前,人们对于睡眠质量越来越关注,因此睡眠中的问题也逐渐开始被人们所重视。呼吸暂停(apnea)是指睡眠过程中口鼻气流完全停止10s以上,低通气(hypopnea)是指呼吸气流幅度比基线水平降低50%以上,同时血氧饱和度比基础水平下降4%,睡眠呼吸暂停低通气指数(apnea-hypopnea index,AHI)是指每小时睡眠时间内呼吸暂停与低通气的次数之和。At present, people pay more and more attention to the quality of sleep, so the problem of sleep has gradually begun to be paid attention to. Apnea refers to the complete cessation of oral and nasal airflow for more than 10 s during sleep, and hypopnea refers to the decrease of respiratory airflow amplitude by more than 50% compared with the baseline level, and the blood oxygen saturation is decreased by 4% compared with the basic level. The apnea-hypopnea index (AHI) is the sum of the number of apnea and hypopnea per hour of sleep.

在相关技术中,只能根据睡眠呼吸暂停低通气指数,通过简单的阈值判别方法,确定是否为正常的睡眠呼吸类型,但阈值判别方式准确率较低。In the related art, whether it is a normal sleep breathing type can only be determined by a simple threshold discrimination method according to the sleep apnea-hypopnea index, but the accuracy of the threshold discrimination method is low.

发明内容SUMMARY OF THE INVENTION

本发明提供一种信号处理方法及计算机设备,以解决现有的睡眠呼吸类型判别采用简单的阈值判别方式,因此准确率较低的问题。The present invention provides a signal processing method and computer equipment to solve the problem that the existing sleep breathing type discrimination adopts a simple threshold discrimination method, so the accuracy rate is low.

为了解决上述问题,本发明公开了一种信号处理方法,包括:In order to solve the above problems, the present invention discloses a signal processing method, including:

获取原始血氧信号;Obtain the original blood oxygen signal;

对所述原始血氧信号进行预处理,得到第一血氧信号;Preprocessing the original blood oxygen signal to obtain a first blood oxygen signal;

确定所述第一血氧信号的第一时域特征;所述第一时域特征用于表征所述第一血氧信号的血氧饱和度是否下降;determining a first time domain feature of the first blood oxygen signal; the first time domain feature is used to represent whether the blood oxygen saturation of the first blood oxygen signal decreases;

将所述第一时域特征输入预设呼吸分类模型,得到所述原始血氧信号所属的目标呼吸类别。Inputting the first time domain feature into a preset respiratory classification model to obtain a target respiratory category to which the original blood oxygen signal belongs.

可选地,所述确定所述第一血氧信号的第一时域特征,包括:Optionally, the determining the first time domain feature of the first blood oxygen signal includes:

对所述第一血氧信号进行分窗处理,得到n个分窗血氧信号;performing window processing on the first blood oxygen signal to obtain n windowed blood oxygen signals;

分别对每个所述分窗血氧信号进行分段处理,共计得到n×m个分段血氧信号;Perform segmentation processing on each of the sub-window blood oxygen signals respectively, and obtain a total of n×m sub-window blood oxygen signals;

确定每个所述分段血氧信号对应的血氧饱和度;determining the blood oxygen saturation corresponding to each of the segmented blood oxygen signals;

根据每个所述分窗血氧信号中的m个分段血氧信号对应的血氧饱和度,确定所述第一血氧信号的第一时域特征。The first time domain feature of the first blood oxygen signal is determined according to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals in each of the windowed blood oxygen signals.

可选地,所述第一时域特征包括血氧饱和度均值、血氧饱和度标准方差、血氧饱和度局部最大值、血氧饱和度局部最小值、血氧饱和度局部极差、平均一级下降百分比、平均一级持续下降时间、二级下降百分比和二级持续下降时间中的至少一种。Optionally, the first time domain feature includes the mean value of blood oxygen saturation, the standard deviation of blood oxygen saturation, the local maximum value of blood oxygen saturation, the local minimum value of blood oxygen saturation, the local range of blood oxygen saturation, the average value of blood oxygen saturation. At least one of percent first drop, average time to first drop, percent drop second, and time to second drop.

可选地,所述根据每个所述分窗血氧信号中的m个分段血氧信号对应的血氧饱和度,确定所述第一血氧信号的第一时域特征,包括:Optionally, determining the first time domain feature of the first blood oxygen signal according to the blood oxygen saturation levels corresponding to m segmented blood oxygen signals in each of the windowed blood oxygen signals, including:

对于每个所述分窗血氧信号中的m个分段血氧信号,根据所述m个分段血氧信号对应的血氧饱和度,确定所述分窗血氧信号的血氧饱和度均值;For m segmented blood oxygen signals in each of the segmented blood oxygen signals, the blood oxygen saturation of the windowed blood oxygen signal is determined according to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals mean;

根据所述m个分段血氧信号对应的血氧饱和度和所述血氧饱和度均值,确定所述分窗血氧信号的血氧饱和度标准方差;According to the blood oxygen saturation corresponding to the m segmented blood oxygen signals and the mean value of the blood oxygen saturation, determine the blood oxygen saturation standard deviation of the windowed blood oxygen signal;

根据所述m个分段血氧信号对应的血氧饱和度,确定所述分窗血氧信号的血氧饱和度局部最大值;determining the local maximum value of the blood oxygen saturation of the sub-window blood oxygen signal according to the blood oxygen saturation corresponding to the m segmented blood oxygen signals;

根据所述m个分段血氧信号对应的血氧饱和度,确定所述分窗血氧信号的血氧饱和度局部最小值;determining the local minimum value of the blood oxygen saturation of the sub-window blood oxygen signal according to the blood oxygen saturation corresponding to the m segmented blood oxygen signals;

根据每个所述血氧饱和度局部最大值和每个所述血氧饱和度局部最小值,确定每个所述分窗血氧信号的血氧饱和度局部极差;According to each of the local maximum values of the blood oxygen saturation and each of the local minimum values of the blood oxygen saturation, determine the local range of the blood oxygen saturation of each of the windowed blood oxygen signals;

根据所述m个分段血氧信号对应的血氧饱和度,确定所述分窗血氧信号的平均一级下降百分比;According to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals, determine the average first-order drop percentage of the windowed blood oxygen signals;

根据所述m个分段血氧信号对应的血氧饱和度和第一预设常数,确定所述分窗血氧信号的平均一级持续下降时间;According to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals and a first preset constant, determine the average first-order continuous decline time of the windowed blood oxygen signals;

根据所述血氧饱和度均值,确定所述分窗血氧信号的二级下降百分比;According to the mean value of blood oxygen saturation, determine the secondary drop percentage of the windowed blood oxygen signal;

根据所述血氧饱和度均值和第二预设常数,确定所述分窗血氧信号的二级持续下降时间。According to the mean value of blood oxygen saturation and a second preset constant, the second-level continuous falling time of the windowed blood oxygen signal is determined.

可选地,所述根据所述m个分段血氧信号对应的血氧饱和度,确定所述分窗血氧信号的平均一级下降百分比,包括:Optionally, determining the average first-order drop percentage of the windowed blood oxygen signals according to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals, including:

根据所述m个分段血氧信号对应的血氧饱和度,通过下述公式,确定所述分窗血氧信号的平均一级下降百分比;According to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals, the following formula is used to determine the average first-order drop percentage of the windowed blood oxygen signals;

Figure BDA0002256379880000031
Figure BDA0002256379880000031

其中,

Figure BDA0002256379880000032
in,
Figure BDA0002256379880000032

MD1_wi表示n个所述分窗血氧信号中,第i个所述分窗血氧信号的平均一级下降百分比;D1_di表示n×m个所述分段血氧信号中,第i个所述分段血氧信号的一级下降百分比;Sd表示所述分段血氧信号对应的血氧饱和度;MD1_wi represents the average first-order drop percentage of the i-th windowed blood-oxygen signal among the n segmented blood-oxygen signals; D1_di represents the i-th segmented blood-oxygen signal among the n×m segmented blood-oxygen signals. The first-order drop percentage of the segmented blood oxygen signal; Sd represents the blood oxygen saturation corresponding to the segmented blood oxygen signal;

所述根据所述m个分段血氧信号对应的血氧饱和度和第一预设常数,确定所述分窗血氧信号的平均一级持续下降时间,包括:The determining, according to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals and the first preset constant, the average first-order continuous decline time of the windowed blood oxygen signals, including:

根据所述m个分段血氧信号对应的血氧饱和度和第一预设常数,通过下述公式,确定所述分窗血氧信号的平均一级持续下降时间;According to the blood oxygen saturation corresponding to the m segmented blood oxygen signals and the first preset constant, the following formula is used to determine the average first-order continuous decline time of the windowed blood oxygen signals;

Figure BDA0002256379880000033
Figure BDA0002256379880000033

其中,

Figure BDA0002256379880000034
in,
Figure BDA0002256379880000034

MT1_wi表示n个所述分窗血氧信号中,第i个所述分窗血氧信号的平均一级持续下降时间;T1_di表示n×m个所述分段血氧信号中,第i个所述分段血氧信号的一级持续下降时间;a表示所述第一预设常数;MT1_wi represents the average first-order continuous fall time of the i-th sub-window blood oxygen signal among the n sub-window blood oxygen signals; T1_di represents the i-th sub-window blood oxygen signal in the n×m sub-window blood oxygen signals. the first-level continuous falling time of the segmented blood oxygen signal; a represents the first preset constant;

所述根据所述血氧饱和度均值,确定所述分窗血氧信号的二级下降百分比,包括:The determining the second-level drop percentage of the windowed blood oxygen signal according to the average blood oxygen saturation includes:

根据所述血氧饱和度均值,通过下述公式,确定所述分窗血氧信号的二级下降百分比;According to the mean value of blood oxygen saturation, the second-level drop percentage of the windowed blood oxygen signal is determined by the following formula;

Figure BDA0002256379880000041
Figure BDA0002256379880000041

其中,D2_wi表示n个所述分窗血氧信号中,第i个所述分窗血氧信号的二级下降百分比;Mean_wi表示n个所述分窗血氧信号中,第i个所述分窗血氧信号的血氧饱和度均值;Among them, D2_wi represents the secondary drop percentage of the i-th windowed blood oxygen signal among the n sub-window blood oxygen signals; Mean_wi represents the i-th sub-window blood oxygen signal in the n sub-window blood oxygen signals. mean blood oxygen saturation of the window blood oxygen signal;

所述根据所述血氧饱和度均值和第二预设常数,确定所述分窗血氧信号的二级持续下降时间,包括:The determining, according to the mean value of blood oxygen saturation and the second preset constant, the second-level continuous fall time of the sub-window blood oxygen signal includes:

根据所述血氧饱和度均值和第二预设常数,通过下述公式,确定所述分窗血氧信号的二级持续下降时间;According to the blood oxygen saturation mean value and the second preset constant, the second-level continuous fall time of the windowed blood oxygen signal is determined by the following formula;

Figure BDA0002256379880000042
Figure BDA0002256379880000042

其中,T2_wi表示n个所述分窗血氧信号中,第i个所述分窗血氧信号的平均一级持续下降时间,b表示所述第二预设常数。Wherein, T2_wi represents the average first-order continuous fall time of the i-th windowed blood oxygen signal among the n blood oxygen signals in the sub-windows, and b represents the second preset constant.

可选地,所述获取原始血氧信号之前,还包括:Optionally, before obtaining the original blood oxygen signal, the method further includes:

获取多个样本血氧信号和每个所述样本血氧信号对应的呼吸类别;acquiring a plurality of sample blood oxygen signals and a respiratory category corresponding to each of the sample blood oxygen signals;

对每个所述样本血氧信号分别进行预处理,得到多个第二血氧信号;Preprocessing each of the sample blood oxygen signals to obtain a plurality of second blood oxygen signals;

确定每个所述第二血氧信号的第二时域特征;所述第二时域特征用于表征所述第二血氧信号的血氧饱和度是否下降;determining a second time domain feature of each of the second blood oxygen signals; the second time domain features are used to characterize whether the blood oxygen saturation of the second blood oxygen signal decreases;

构建初始呼吸分类模型;Build an initial respiratory classification model;

以每组对应的所述第二时域特征和所述呼吸类别为训练参数,对所述初始呼吸分类模型进行训练,得到所述预设呼吸分类模型。The initial breathing classification model is trained by using the second time domain feature and the breathing category corresponding to each group as training parameters to obtain the preset breathing classification model.

可选地,所述预设呼吸分类模型包括逐步线性判别分析模型、线性判别分析模型或支持向量机模型。Optionally, the preset breathing classification model includes a stepwise linear discriminant analysis model, a linear discriminant analysis model or a support vector machine model.

可选地,所述预设呼吸分类模型为逐步线性判别分析模型,所述初始呼吸分类模型为待训练的所述逐步线性判别分析模型;每个所述第二时域特征包括至少两个子时域特征;Optionally, the preset breathing classification model is a stepwise linear discriminant analysis model, and the initial breathing classification model is the stepwise linear discriminant analysis model to be trained; each of the second time domain features includes at least two sub-times. Domain features;

所述以每组对应的所述第二时域特征和所述呼吸类别为训练参数,对所述初始呼吸分类模型进行训练,得到所述预设呼吸分类模型,包括:The said initial breathing classification model is trained using the second time domain feature and the breathing category corresponding to each group as training parameters, and the preset breathing classification model is obtained, including:

以每组对应的所述第二时域特征和所述呼吸类别为训练参数,输入待训练的所述逐步线性判别分析模型;Taking each group of corresponding second time-domain features and the breathing category as training parameters, inputting the step-by-step linear discriminant analysis model to be trained;

根据每组对应的所述第二时域特征和所述呼吸类别,对所述第二时域特征中的每个所述子时域特征进行显著性检验,得到显著性权重超过预设阈值的子时域特征;According to each group of the corresponding second time domain features and the respiration category, a significance test is performed on each of the sub-time domain features in the second time domain features, and a significance weight exceeding a preset threshold is obtained. Sub-time domain features;

根据所述显著性权重超过预设阈值的子时域特征,训练得到所述逐步线性判别分析模型。The step-by-step linear discriminant analysis model is obtained by training according to the sub-time domain features of which the saliency weight exceeds a preset threshold.

可选地,所述第一时域特征与所述第二时域特征中所述显著性权重超过所述预设阈值的子时域特征属性相同。Optionally, the first time-domain feature and the second time-domain feature have the same sub-time-domain feature attribute of which the saliency weight exceeds the preset threshold.

为了解决上述问题,本发明还公开了一种计算机设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的信号处理方法的步骤。In order to solve the above problems, the present invention also discloses a computer device, comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor When implementing the steps of the signal processing method as described above.

与现有技术相比,本发明包括以下优点:Compared with the prior art, the present invention includes the following advantages:

在本发明实施例中,信号处理设备首先可以获取原始血氧信号,然后可以对原始血氧信号进行预处理,得到第一血氧信号,之后,信号处理设备可以确定第一血氧信号的第一时域特征,该第一时域特征能够表征第一血氧信号的血氧饱和度是否下降,进而信号处理设备将第一时域特征作为输入参数,输入预设呼吸分类模型,即可得到原始血氧信号所属的目标呼吸类别。在本发明实施例中,信号处理设备可以根据第一血氧信号中能够表征血氧饱和度是否下降的时域特征,通过预设呼吸分类模型进行分类,从而确定出第一血氧信号对应的原始血氧信号所属的呼吸类别,相对于基于呼吸暂停次数与低通气次数的阈值判别方法,提高了判断呼吸类型的准确性。In this embodiment of the present invention, the signal processing device may first obtain the original blood oxygen signal, and then may preprocess the original blood oxygen signal to obtain the first blood oxygen signal, and then the signal processing device may determine the first blood oxygen signal of the first blood oxygen signal. A time-domain feature, the first time-domain feature can represent whether the blood oxygen saturation of the first blood-oxygen signal has decreased, and then the signal processing device uses the first time-domain feature as an input parameter and inputs a preset respiratory classification model to obtain The target breathing class to which the raw blood oxygen signal belongs. In this embodiment of the present invention, the signal processing device may classify the first blood oxygen signal according to a time domain feature that can characterize whether the blood oxygen saturation is decreased, and use a preset respiratory classification model to determine the corresponding blood oxygen signal of the first blood oxygen signal. Compared with the threshold determination method based on the number of apnea and the number of hypopnea, the breathing category to which the original blood oxygen signal belongs, improves the accuracy of judging the breathing type.

附图说明Description of drawings

图1示出了本发明实施例一的一种信号处理方法的流程图;1 shows a flowchart of a signal processing method according to Embodiment 1 of the present invention;

图2示出了本发明实施例二的一种信号处理方法的流程图;2 shows a flowchart of a signal processing method according to Embodiment 2 of the present invention;

图3示出了本发明实施例二的一种一级持续下降时间的计算流程图;Fig. 3 shows the calculation flow chart of a first-level continuous descent time according to the second embodiment of the present invention;

图4示出了本发明实施例二的一种二级持续下降时间的计算流程图。FIG. 4 shows a flow chart of calculating a second-level continuous falling time according to the second embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more clearly understood, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.

实施例一Example 1

参照图1,示出了本发明实施例一的一种信号处理方法的步骤流程图,该方法包括以下步骤:Referring to FIG. 1, a flowchart of steps of a signal processing method according to Embodiment 1 of the present invention is shown, and the method includes the following steps:

步骤101:获取原始血氧信号。Step 101: Obtain the original blood oxygen signal.

在本发明实施例中,血氧信号检测设备与人体连接后,可以在一段时间内,对人体的原始血氧信号进行采集,并可以将采集到的原始血氧信号数据导入信号处理设备中,从而信号处理设备可以获取到原始血氧信号。可选地,血氧信号具体可以为脉搏血氧信号,本发明实施例对此不作具体限定,只要是能够测得血氧含量的信号均可。In the embodiment of the present invention, after the blood oxygen signal detection device is connected to the human body, the original blood oxygen signal of the human body can be collected within a period of time, and the collected raw blood oxygen signal data can be imported into the signal processing device, Therefore, the signal processing device can obtain the original blood oxygen signal. Optionally, the blood oxygen signal may specifically be a pulse blood oxygen signal, which is not specifically limited in this embodiment of the present invention, as long as it is a signal capable of measuring the blood oxygen content.

步骤102:对原始血氧信号进行预处理,得到第一血氧信号。Step 102: Preprocess the original blood oxygen signal to obtain a first blood oxygen signal.

在本发明实施例中,信号处理设备获取到原始血氧信号后,可以对原始血氧信号进行滤波等用于降噪的预处理,以减小原始血氧信号中的噪声干扰,从而得到降噪后的第一血氧信号。In this embodiment of the present invention, after acquiring the original blood oxygen signal, the signal processing device may perform preprocessing such as filtering on the original blood oxygen signal for noise reduction, so as to reduce noise interference in the original blood oxygen signal, so as to reduce the noise in the original blood oxygen signal. The first blood oxygen signal after noise.

步骤103:确定第一血氧信号的第一时域特征;第一时域特征用于表征第一血氧信号的血氧饱和度是否下降。Step 103: Determine a first time domain feature of the first blood oxygen signal; the first time domain feature is used to represent whether the blood oxygen saturation of the first blood oxygen signal decreases.

在本步骤中,信号处理设备可以提取第一血氧信号的第一时域特征,其中,第一时域特征为能够表征第一血氧信号的血氧饱和度是否下降的一些时域特征。例如,第一时域特征可以包括血氧饱和度均值、血氧饱和度标准方差、血氧饱和度局部最大值、血氧饱和度局部最小值、血氧饱和度局部极差等,这些时域特征都可以直接或间接地表征第一血氧信号的血氧饱和度是否下降,本发明实施例对于第一时域特征不作具体限定。In this step, the signal processing device may extract a first time domain feature of the first blood oxygen signal, wherein the first time domain feature is some time domain features that can characterize whether the blood oxygen saturation of the first blood oxygen signal has decreased. For example, the first time domain feature may include the mean value of blood oxygen saturation, the standard deviation of blood oxygen saturation, the local maximum value of blood oxygen saturation, the local minimum value of blood oxygen saturation, the local range of blood oxygen saturation, and the like. All the features can directly or indirectly represent whether the blood oxygen saturation of the first blood oxygen signal decreases, and the first time domain feature is not specifically limited in this embodiment of the present invention.

步骤104:将第一时域特征输入预设呼吸分类模型,得到原始血氧信号所属的目标呼吸类别。Step 104: Input the first time domain feature into a preset respiratory classification model to obtain the target respiratory category to which the original blood oxygen signal belongs.

在本步骤中,信号处理设备中可以事先构建一个预设呼吸分类模型,用于根据输入的血氧信号的时域特征,确定出该血氧信号所属的呼吸类别,并输出该呼吸类别。在具体应用时,呼吸类别可以包括正常呼吸类别和睡眠呼吸暂停类别。信号处理设备可以将第一时域特征作为输入参数,输入预设呼吸分类模型,从而预设呼吸分类模型可以输出第一时域特征对应的目标呼吸类别,也即是输出原始血氧信号所属的目标呼吸类别。In this step, a preset respiration classification model may be constructed in the signal processing device in advance, for determining the respiration class to which the blood oxygen signal belongs according to the time domain feature of the input blood oxygen signal, and outputting the respiration class. In specific applications, the breathing categories may include normal breathing categories and sleep apnea categories. The signal processing device can use the first time-domain feature as an input parameter to input a preset respiratory classification model, so that the preset respiratory classification model can output the target respiratory category corresponding to the first time-domain feature, that is, to which the output original blood oxygen signal belongs. Target breathing class.

在本发明实施例中,信号处理设备首先可以获取原始血氧信号,然后可以对原始血氧信号进行预处理,得到第一血氧信号,之后,信号处理设备可以确定第一血氧信号的第一时域特征,该第一时域特征能够表征第一血氧信号的血氧饱和度是否下降,进而信号处理设备将第一时域特征作为输入参数,输入预设呼吸分类模型,即可得到原始血氧信号所属的目标呼吸类别。在本发明实施例中,信号处理设备可以根据第一血氧信号中能够表征血氧饱和度是否下降的时域特征,通过预设呼吸分类模型进行分类,从而确定出第一血氧信号对应的原始血氧信号所属的呼吸类别,相对于基于呼吸暂停次数与低通气次数的阈值判别方法,提高了判断呼吸类型的准确性。In this embodiment of the present invention, the signal processing device may first obtain the original blood oxygen signal, and then may preprocess the original blood oxygen signal to obtain the first blood oxygen signal, and then the signal processing device may determine the first blood oxygen signal of the first blood oxygen signal. A time-domain feature, the first time-domain feature can represent whether the blood oxygen saturation of the first blood-oxygen signal has decreased, and then the signal processing device uses the first time-domain feature as an input parameter and inputs a preset respiratory classification model to obtain The target breathing class to which the raw blood oxygen signal belongs. In this embodiment of the present invention, the signal processing device may classify the first blood oxygen signal according to a time domain feature that can characterize whether the blood oxygen saturation is decreased, and use a preset respiratory classification model to determine the corresponding blood oxygen signal of the first blood oxygen signal. Compared with the threshold determination method based on the number of apnea and the number of hypopnea, the breathing category to which the original blood oxygen signal belongs, improves the accuracy of judging the breathing type.

实施例二Embodiment 2

参照图2,示出了本发明实施例二的一种信号处理方法的步骤流程图,该方法包括以下步骤:Referring to FIG. 2, a flowchart of steps of a signal processing method according to Embodiment 2 of the present invention is shown, and the method includes the following steps:

步骤201:通过训练得到预设呼吸分类模型。Step 201: Obtain a preset breathing classification model through training.

在本发明实施例中,在基于原始血氧信号进行呼吸类别的分类之前,信号处理设备可以首先通过训练得到预设呼吸分类模型,具体包括下述步骤:获取多个样本血氧信号和每个样本血氧信号对应的呼吸类别;对每个样本血氧信号分别进行预处理,得到多个第二血氧信号;确定每个第二血氧信号的第二时域特征;第二时域特征用于表征第二血氧信号的血氧饱和度是否下降;构建初始呼吸分类模型;以每组对应的第二时域特征和呼吸类别为训练参数,对初始呼吸分类模型进行训练,得到预设呼吸分类模型。In this embodiment of the present invention, before classifying the respiratory category based on the original blood oxygen signal, the signal processing device may first obtain a preset respiratory classification model through training, which specifically includes the following steps: acquiring a plurality of sample blood oxygen signals and each Respiration category corresponding to the sample blood oxygen signal; preprocess each sample blood oxygen signal to obtain a plurality of second blood oxygen signals; determine the second time domain feature of each second blood oxygen signal; the second time domain feature Used to characterize whether the blood oxygen saturation of the second blood oxygen signal has dropped; build an initial respiratory classification model; use the second time domain features and respiratory categories corresponding to each group as training parameters to train the initial respiratory classification model to obtain a preset Respiratory classification model.

首先,可以向信号处理设备输入多个样本血氧信号,以及对每个样本血氧信号对应标记的呼吸类别,在具体应用中,每个样本血氧信号的采集方式与原始血氧信号的采集方式可以相同。然后,信号处理设备可以对每个样本血氧信号分别进行滤波等用于降噪的预处理,以减小每个样本血氧信号中的噪声干扰,从而得到降噪后的多个第二血氧信号。之后,信号处理设备可以提取每个第二血氧信号的第二时域特征,其中,第二时域特征为能够表征第二血氧信号的血氧饱和度是否下降的一些时域特征,与第一时域特征属性相同。进而信号处理设备可以构建初始呼吸分类模型,在初始呼吸分类模型中,各个模型参数是待训练的。接着,信号处理设备可以将各组对应的第二时域特征和标记的呼吸类别构建为训练特征矩阵,并将训练特征矩阵作为训练参数,输入初始呼吸分类模型中,以进行调参,从而实现对初始呼吸分类模型的训练。训练完成后,初始呼吸分类模型中的各个模型参数确定,从而得到了训练好的预设呼吸分类模型。First, a plurality of sample blood oxygen signals can be input to the signal processing device, as well as the corresponding marked respiration category for each sample blood oxygen signal. The way can be the same. Then, the signal processing device may perform preprocessing for noise reduction, such as filtering, on each sample blood oxygen signal, so as to reduce noise interference in each sample blood oxygen signal, so as to obtain a plurality of second blood samples after noise reduction. oxygen signal. After that, the signal processing device can extract the second time domain feature of each second blood oxygen signal, wherein the second time domain feature is some time domain features that can characterize whether the blood oxygen saturation of the second blood oxygen signal is decreased, and The first time domain characteristic properties are the same. Further, the signal processing device can construct an initial respiratory classification model, in which each model parameter is to be trained. Next, the signal processing device can construct a training feature matrix corresponding to the second time-domain feature of each group and the marked breathing category, and use the training feature matrix as a training parameter to input it into the initial breathing classification model for parameter adjustment, thereby realizing Training of the initial breath classification model. After the training is completed, each model parameter in the initial breathing classification model is determined, thereby obtaining a trained preset breathing classification model.

可选地,在实际应用中,预设呼吸分类模型可以包括逐步线性判别分析(StepwiseLinear Discriminant Analysis,SWLDA)模型、线性判别分析(Linear DiscriminantAnalysis,LDA)模型或支持向量机(Support Vector Machine,SVM)模型。其中,逐步线性判别分析模型可以结合LDA和双向逐步分析这两种方法,对输入的特征进行各个维度的显著性检验,最后只保留对分类结果贡献最大的特征组合来建立分类模型,从而能够大幅度降低特征的数量,避免过拟合现象。在具体应用时,逐步线性判别分析模型可以通过调整显著特征的p值、剔除显著特征的p值以及显著特征的总个数,这三个重要的参数,来优化模型,使得模型的分类结果更加准确。Optionally, in practical applications, the preset respiratory classification model may include a stepwise linear discriminant analysis (Stepwise Linear Discriminant Analysis, SWLDA) model, a linear discriminant analysis (Linear Discriminant Analysis, LDA) model or a support vector machine (Support Vector Machine, SVM) model. Model. Among them, the step-by-step linear discriminant analysis model can combine the two methods of LDA and two-way step-by-step analysis to carry out the significance test of each dimension on the input features, and finally retain only the feature combination that contributes the most to the classification result to establish a classification model, which can greatly The magnitude reduces the number of features to avoid overfitting. In specific applications, the step-by-step linear discriminant analysis model can optimize the model by adjusting the p-value of salient features, excluding the p-value of salient features, and the total number of salient features, these three important parameters, so that the classification results of the model are more accurate. precise.

具体地,在预设呼吸分类模型为逐步线性判别分析模型,初始呼吸分类模型为待训练的逐步线性判别分析模型,每个第二时域特征包括至少两个子时域特征的情况下,以每组对应的第二时域特征和呼吸类别为训练参数,对初始呼吸分类模型进行训练,得到预设呼吸分类模型的步骤具体可以通过下述方式实现,包括:Specifically, when the preset breathing classification model is a step-by-step linear discriminant analysis model, the initial breathing classification model is a step-by-step linear discriminant analysis model to be trained, and each second time domain feature includes at least two sub-time domain features, each The second time domain feature corresponding to the group and the breathing category are training parameters, the initial breathing classification model is trained, and the step of obtaining the preset breathing classification model can be specifically implemented by the following methods, including:

以每组对应的第二时域特征和呼吸类别为训练参数,输入待训练的逐步线性判别分析模型;根据每组对应的第二时域特征和呼吸类别,对第二时域特征中的每个子时域特征进行显著性检验,得到显著性权重超过预设阈值的子时域特征;根据显著性权重超过预设阈值的子时域特征,训练得到逐步线性判别分析模型。Taking each group of corresponding second time domain features and respiratory categories as training parameters, input the step-by-step linear discriminant analysis model to be trained; The saliency test of each sub-time domain feature is carried out, and the sub-time domain feature whose saliency weight exceeds the preset threshold is obtained; according to the sub-time domain feature whose saliency weight exceeds the preset threshold, the step-by-step linear discriminant analysis model is obtained by training.

其中,信号处理设备可以将每组对应的第二时域特征和呼吸类别作为训练参数,输入待训练的逐步线性判别分析模型。其中,每个第二时域特征可以包括至少两个子时域特征,子时域特征例如可以是血氧饱和度均值、血氧饱和度标准方差、血氧饱和度局部最大值、血氧饱和度局部最小值、血氧饱和度局部极差、平均一级下降百分比、平均一级持续下降时间、二级下降百分比和二级持续下降时间等。待训练的逐步线性判别分析模型可以结合LDA和双向逐步分析两种方式,基于每组对应的第二时域特征和呼吸类别对于模型参数的调参结果,确定每个子时域特征对于分类结果的影响占比,从而能够对每个子时域特征进行显著性检验,在训练的决策阶段,待训练的逐步线性判别分析模型可以得到每个子时域特征对应的显著性权重,并可以根据显著性权重从大到小的顺序,对每个子时域特征进行排序。显著性权重越高的子时域特征,对分类结果准确性的影响越显著。进而信号处理设备可以根据显著性权重超过预设阈值的子时域特征,也即对分类结果准确性的影响最大前一个或多个子时域特征,训练得到逐步线性判别分析模型。Wherein, the signal processing device may use each group of corresponding second time-domain features and respiratory categories as training parameters, and input the step-by-step linear discriminant analysis model to be trained. Wherein, each second time-domain feature may include at least two sub-time-domain features, and the sub-time-domain features may be, for example, the mean value of blood oxygen saturation, the standard deviation of blood oxygen saturation, the local maximum value of blood oxygen saturation, and the blood oxygen saturation Local minimum value, local range of blood oxygen saturation, average first-order drop percentage, average first-order continuous drop time, second-order drop percentage, and second-order continuous drop time, etc. The step-by-step linear discriminant analysis model to be trained can be combined with LDA and two-way step-by-step analysis. Based on the parameter adjustment results of each group of corresponding second time-domain features and respiratory categories for model parameters, determine the contribution of each sub-time-domain feature to the classification result. In the decision-making stage of training, the step-by-step linear discriminant analysis model to be trained can obtain the saliency weight corresponding to each sub-time domain feature, and according to the saliency weight Sort each sub-temporal feature in order from largest to smallest. The sub-temporal features with higher saliency weights have a more significant impact on the accuracy of classification results. Furthermore, the signal processing device can train to obtain a step-by-step linear discriminant analysis model according to the sub-time-domain features whose significance weight exceeds the preset threshold, that is, the sub-time-domain features that have the greatest impact on the accuracy of the classification result.

在本发明实施例中,第一时域特征与第二时域特征中显著性权重超过预设阈值的子时域特征属性相同。由于逐步线性判别分析模型可以根据第二时域特征中对分类结果准确性的影响显著的子时域特征进行训练得到,因此,在后续通过训练好的预设呼吸分类模型对原始血氧信号进行分类时,可以只从原始血氧信号中提取与影响显著的子时域特征属性相同的时域特征即可,而无需从原始血氧信号中提取与第二时域特征中的所有子时域特征属性相同的时域特征,因此,能够减少从原始血氧信号中提取的时域特征的数量,进而减少了原始血氧信号的时域特征计算量。In this embodiment of the present invention, the first time domain feature and the second time domain feature have the same sub-time domain feature attribute whose saliency weight exceeds a preset threshold. Since the step-by-step linear discriminant analysis model can be obtained by training according to the sub-time-domain features in the second time-domain feature that have a significant impact on the accuracy of the classification result, the original blood oxygen signal is then subjected to subsequent training through the trained preset respiratory classification model. When classifying, only the time domain features that have the same attributes as the sub-time-domain features with significant influence can be extracted from the original blood oxygen signal, and it is not necessary to extract all the sub-time-domain features from the original blood oxygen signal and the second time-domain features. Therefore, the number of time-domain features extracted from the original blood oxygen signal can be reduced, thereby reducing the time-domain feature calculation amount of the original blood oxygen signal.

例如,第二时域特征可以包括以下9个子时域特征:血氧饱和度均值、血氧饱和度标准方差、血氧饱和度局部最大值、血氧饱和度局部最小值、血氧饱和度局部极差、平均一级下降百分比、平均一级持续下降时间、二级下降百分比和二级持续下降时间。在模型训练时,可以确定第二时域特征中对分类结果准确性的影响显著的子时域特征共有6个,分别是血氧饱和度均值、血氧饱和度局部极差、平均一级下降百分比、平均一级持续下降时间、二级下降百分比和二级持续下降时间。信号处理设备可以根据上述6个影响显著的子时域特征,训练得到逐步线性判别分析模型。因此,后续从原始血氧信号中提取需要输入的第一时域特征时,可以只提取原始血氧信号的血氧饱和度均值、血氧饱和度局部极差、平均一级下降百分比、平均一级持续下降时间、二级下降百分比和二级持续下降时间这6个时域特征,作为逐步线性判别分析模型的输入参数即可,这6个时域特征的属性与第二时域特征中对分类结果准确性的影响显著的6个子时域特征的属性相同,如此,减少了从原始血氧信号中提取的时域特征的数量,无需计算原始血氧信号的血氧饱和度标准方差、血氧饱和度局部最大值、血氧饱和度局部最小值,减少了原始血氧信号的时域特征计算量。For example, the second time domain feature may include the following 9 sub-time domain features: mean value of blood oxygen saturation, standard deviation of blood oxygen saturation, local maximum value of blood oxygen saturation, local minimum value of blood oxygen saturation, local blood oxygen saturation value Range, Average 1st Drop, Average 1st Duration, 2nd %, and 2nd Duration. During model training, it can be determined that there are 6 sub-time-domain features in the second time-domain feature that have a significant impact on the accuracy of the classification result, which are the average blood oxygen saturation, the local range of blood oxygen saturation, and the average first-level drop. Percentage, average first-degree duration of descent, second-degree percentage of descent, and second-degree duration of descent. The signal processing device can train to obtain a step-by-step linear discriminant analysis model according to the above-mentioned six sub-time domain features with significant influence. Therefore, when extracting the first time domain feature that needs to be input from the original blood oxygen signal, only the mean blood oxygen saturation, the local range of blood oxygen saturation, the average first-order drop percentage, and the average first-order drop of the original blood oxygen signal can be extracted. The six time domain features of the first-level continuous decline time, the second-level decline percentage, and the second-level continuous decline time can be used as the input parameters of the step-by-step linear discriminant analysis model. The properties of the six sub-time domain features that have a significant impact on the accuracy of the classification results are the same, so the number of time domain features extracted from the original blood oxygen signal is reduced, and there is no need to calculate the standard deviation of blood oxygen saturation, blood The local maximum value of oxygen saturation and the local minimum value of blood oxygen saturation reduce the amount of time-domain feature calculation of the original blood oxygen signal.

得到训练好的预设呼吸分类模型之后,信号处理设备便可以获取新的原始血氧信号,进而根据新的原始血氧信号对应的时域特征,通过训练好的预设呼吸分类模型进行呼吸类别的分类。After the trained preset breathing classification model is obtained, the signal processing device can obtain a new original blood oxygen signal, and then according to the time-domain characteristics corresponding to the new original blood oxygen signal, through the trained preset breathing classification model. Classification.

步骤202:获取原始血氧信号。Step 202: Obtain the original blood oxygen signal.

此步骤的具体实现方式可以参考与上述步骤101的实现过程,本实施例在此不再详述。For the specific implementation manner of this step, reference may be made to the implementation process of the foregoing step 101, which will not be described in detail in this embodiment.

步骤203:对原始血氧信号进行预处理,得到第一血氧信号。Step 203: Preprocess the original blood oxygen signal to obtain a first blood oxygen signal.

此步骤的具体实现方式可以参考与上述步骤102的实现过程,本实施例在此不再详述。For a specific implementation manner of this step, reference may be made to the implementation process of the foregoing step 102, which is not described in detail in this embodiment.

步骤204:对第一血氧信号进行分窗处理,得到n个分窗血氧信号。Step 204: Perform window processing on the first blood oxygen signal to obtain n windowed blood oxygen signals.

在本发明实施例中,信号处理设备可以按照预设窗长,对经过预处理后的第一血氧信号进行分窗处理,可以得到n个分窗血氧信号,其中,每个分窗血氧信号对应的时长即为预设窗长。例如,预设窗长可以为60s,则可以每隔60s对第一血氧信号进行分窗处理,得到n个60s的分窗血氧信号。In this embodiment of the present invention, the signal processing device may perform window processing on the preprocessed first blood oxygen signal according to the preset window length, and may obtain n windowed blood oxygen signals, wherein each windowed blood oxygen signal is The duration corresponding to the oxygen signal is the preset window length. For example, the preset window length may be 60s, then the first blood oxygen signal may be subjected to window processing every 60s to obtain n 60s windowed blood oxygen signals.

步骤205:分别对每个分窗血氧信号进行分段处理,共计得到n×m个分段血氧信号。Step 205 : Perform segmental processing on each sub-window blood oxygen signal respectively, and obtain n×m segmented blood oxygen signals in total.

在本发明实施例中,信号处理设备可以按照预设段长,对分别对每个分窗血氧信号进行分段处理,每个分窗血氧信号可以分段为m个分段血氧信号,总共可以获得n×m个分段血氧信号,其中,每个分段血氧信号对应的时长即为预设段长。例如,预设段长可以为10s,则可以每隔10s对一个60s的分窗血氧信号进行分段处理,每个分窗血氧信号可以分段为6个10s的分段血氧信号,总共为6n个分段血氧信号。In this embodiment of the present invention, the signal processing device may perform segment processing on each windowed blood oxygen signal according to a preset segment length, and each windowed blood oxygen signal may be segmented into m segmented blood oxygen signals , a total of n×m segmented blood oxygen signals can be obtained, wherein the time length corresponding to each segmented blood oxygen signal is the preset segment length. For example, the preset segment length can be 10s, then a 60s windowed blood oxygen signal can be segmented every 10s, and each windowed blood oxygen signal can be segmented into six 10s segmented blood oxygen signals, A total of 6n segmented blood oxygen signals.

步骤206:确定每个分段血氧信号对应的血氧饱和度。Step 206: Determine the blood oxygen saturation corresponding to each segmented blood oxygen signal.

在本步骤中,信号处理设备可以确定每个分段血氧信号对应的血氧饱和度。可选地,可以基于电化学原理测出血氧分压,进而根据血氧分压计算得到血氧饱和度,具体可以参考相关技术,本发明实施例对于确定血氧饱和度的方式不作具体限定。In this step, the signal processing device may determine the blood oxygen saturation corresponding to each segmented blood oxygen signal. Optionally, the blood oxygen partial pressure can be measured based on the electrochemical principle, and then the blood oxygen saturation can be calculated according to the blood oxygen partial pressure. For details, reference may be made to the related art. The embodiment of the present invention does not specifically limit the method for determining the blood oxygen saturation. .

步骤207:根据每个分窗血氧信号中的m个分段血氧信号对应的血氧饱和度,确定第一血氧信号的第一时域特征。Step 207 : Determine the first time domain feature of the first blood oxygen signal according to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals in each windowed blood oxygen signal.

可选地,第一时域特征可以包括血氧饱和度均值、血氧饱和度标准方差、血氧饱和度局部最大值、血氧饱和度局部最小值、血氧饱和度局部极差、平均一级下降百分比、平均一级持续下降时间、二级下降百分比和二级持续下降时间中的至少一种。Optionally, the first time domain feature may include the mean value of blood oxygen saturation, the standard deviation of blood oxygen saturation, the local maximum value of blood oxygen saturation, the local minimum value of blood oxygen saturation, the local range of blood oxygen saturation, and the average at least one of percent decline in grades, average duration of first grade declines, percent declines in grades two, and durations in second grades.

相应的,本步骤具体可以通过下述方式实现,包括:Correspondingly, this step can be implemented in the following ways, including:

子步骤2071:对于每个分窗血氧信号中的m个分段血氧信号,根据m个分段血氧信号对应的血氧饱和度,确定分窗血氧信号的血氧饱和度均值。Sub-step 2071: For the m segmented blood oxygen signals in each windowed blood oxygen signal, determine the average blood oxygen saturation of the windowed blood oxygen signals according to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals.

以60s的分窗血氧信号、10s的分段血氧信号以及m=6为例,在考虑分窗界限的情况下,6n个分段血氧信号对应的血氧饱和度可以表示为Sw1d1、Sw1d2、Sw1d3、Sw1d4、Sw1d5、Sw1d6、Sw2d1、Sw2d2、Sw2d3、Sw2d4、Sw2d5、Sw2d6、…、Swnd5、Swnd6,可以记为二级血氧饱和度序列。在不考虑分窗界限的情况下,6n个分段血氧信号对应的血氧饱和度可以表示为Sd1、Sd2、Sd3、…、Sd6n,可以记为一级血氧饱和度序列。其中,一级血氧饱和度序列与二级血氧饱和度序列的数值是相同的,只是表示方式不同,二级血氧饱和度序列的表示方式可以体现出分段血氧信号所属的分窗血氧信号,而一级血氧饱和度序列的表示方式则体现不出分窗界限,在具体应用时可以根据需求命名,本发明实施例对此不作限定。Taking the 60s windowed blood oxygen signal, the 10s segmented blood oxygen signal and m=6 as examples, in the case of considering the window boundaries, the blood oxygen saturation corresponding to the 6n segmented blood oxygen signals can be expressed as Sw1d1, Sw1d2, Sw1d3, Sw1d4, Sw1d5, Sw1d6, Sw2d1, Sw2d2, Sw2d3, Sw2d4, Sw2d5, Sw2d6, …, Swnd5, Swnd6, can be recorded as a secondary blood oxygen saturation sequence. Without considering the boundaries of the sub-windows, the blood oxygen saturation levels corresponding to the 6n segmented blood oxygen signals can be expressed as Sd1, Sd2, Sd3, ..., Sd6n, which can be recorded as a first-order blood oxygen saturation sequence. Among them, the values of the primary blood oxygen saturation sequence and the secondary blood oxygen saturation sequence are the same, but the representation is different. The representation of the secondary blood oxygen saturation sequence can reflect the sub-window to which the segmented blood oxygen signal belongs. The blood oxygen signal, and the representation of the first-level blood oxygen saturation sequence does not reflect the boundary of the window, and can be named according to requirements in specific applications, which is not limited in this embodiment of the present invention.

可选地,以某一个分窗血氧信号中的m个分段血氧信号进行说明,信号处理设备可以根据该分窗血氧信号中的m个分段血氧信号对应的血氧饱和度,通过下述公式(1)确定该分窗血氧信号的血氧饱和度均值。其中,在下述公式(1)中,Mean_wi表示n个分窗血氧信号中,第i个分窗血氧信号的血氧饱和度均值,Swidj表示第i个分窗血氧信号中的第j个分段血氧信号对应的血氧饱和度。Optionally, with m segmented blood oxygen signals in a certain windowed blood oxygen signal for illustration, the signal processing device can be based on the blood oxygen saturation corresponding to the m segmented blood oxygen signals in the windowed blood oxygen signal. , the mean value of the blood oxygen saturation of the sub-window blood oxygen signal is determined by the following formula (1). Among them, in the following formula (1), Mean_wi represents the blood oxygen saturation mean value of the i-th sub-window blood oxygen signal in the n sub-window blood oxygen signals, and Swidj represents the j-th blood oxygen signal in the i-th sub-window blood oxygen signal The blood oxygen saturation corresponding to each segmented blood oxygen signal.

Figure BDA0002256379880000121
Figure BDA0002256379880000121

例如m=6时,公式(1)可以具体化为下述公式(1-1)。For example, when m=6, the formula (1) can be embodied as the following formula (1-1).

Figure BDA0002256379880000122
Figure BDA0002256379880000122

子步骤2072:根据m个分段血氧信号对应的血氧饱和度和血氧饱和度均值,确定分窗血氧信号的血氧饱和度标准方差。Sub-step 2072: Determine the blood oxygen saturation standard deviation of the windowed blood oxygen signals according to the blood oxygen saturation levels and the mean blood oxygen saturation levels corresponding to the m segmented blood oxygen signals.

可选地,以某一个分窗血氧信号中的m个分段血氧信号进行说明,信号处理设备可以根据该分窗血氧信号中的m个分段血氧信号对应的血氧饱和度,以及该分窗血氧信号的血氧饱和度均值,通过下述公式(2)确定该分窗血氧信号的血氧饱和度标准方差。其中,在下述公式(2)中,Sd_wi表示第i个分窗血氧信号的血氧饱和度标准方差。Optionally, with m segmented blood oxygen signals in a certain windowed blood oxygen signal for illustration, the signal processing device can be based on the blood oxygen saturation corresponding to the m segmented blood oxygen signals in the windowed blood oxygen signal. , and the mean value of the blood oxygen saturation of the sub-window blood oxygen signal, the standard deviation of the blood oxygen saturation of the sub-window blood oxygen signal is determined by the following formula (2). Wherein, in the following formula (2), Sd_wi represents the blood oxygen saturation standard deviation of the i-th sub-window blood oxygen signal.

Figure BDA0002256379880000123
Figure BDA0002256379880000123

例如m=6时,公式(2)可以具体化为下述公式(2-1)。For example, when m=6, the formula (2) can be embodied as the following formula (2-1).

Figure BDA0002256379880000124
Figure BDA0002256379880000124

子步骤2073:根据m个分段血氧信号对应的血氧饱和度,确定分窗血氧信号的血氧饱和度局部最大值。Sub-step 2073: Determine the local maximum value of the blood oxygen saturation of the windowed blood oxygen signal according to the blood oxygen saturation corresponding to the m segmented blood oxygen signals.

可选地,以某一个分窗血氧信号中的m个分段血氧信号进行说明,信号处理设备可以根据该分窗血氧信号中的m个分段血氧信号对应的血氧饱和度,通过下述公式(3)确定该分窗血氧信号的血氧饱和度局部最大值。其中,在下述公式(3)中,Max_wi表示第i个分窗血氧信号的血氧饱和度局部最大值。Optionally, with m segmented blood oxygen signals in a certain windowed blood oxygen signal for illustration, the signal processing device can be based on the blood oxygen saturation corresponding to the m segmented blood oxygen signals in the windowed blood oxygen signal. , the local maximum value of the blood oxygen saturation of the sub-window blood oxygen signal is determined by the following formula (3). Wherein, in the following formula (3), Max_wi represents the local maximum value of the blood oxygen saturation of the i-th sub-window blood oxygen signal.

Max_wi=max{Swidj},(j=1,2,3,…,m,i=1,2,3,…,n) (3)Max_wi=max{Swidj},(j=1,2,3,...,m,i=1,2,3,...,n) (3)

例如m=6时,公式(3)可以具体化为下述公式(3-1)。For example, when m=6, the formula (3) can be embodied as the following formula (3-1).

Max_wi=max{Swid1,Swid2,Swid3,Swid4,Swid5,Swid6},(j=1,2,3,…,m,i=1,2,3,…,n)Max_wi=max{Swid1,Swid2,Swid3,Swid4,Swid5,Swid6},(j=1,2,3,...,m,i=1,2,3,...,n)

(3-1) (3-1)

子步骤2074:根据m个分段血氧信号对应的血氧饱和度,确定分窗血氧信号的血氧饱和度局部最小值。Sub-step 2074: Determine the local minimum value of the blood oxygen saturation of the windowed blood oxygen signal according to the blood oxygen saturation corresponding to the m segmented blood oxygen signals.

可选地,以某一个分窗血氧信号中的m个分段血氧信号进行说明,信号处理设备可以根据该分窗血氧信号中的m个分段血氧信号对应的血氧饱和度,通过下述公式(4)确定该分窗血氧信号的血氧饱和度局部最小值。其中,在下述公式(4)中,Min_wi表示第i个分窗血氧信号的血氧饱和度局部最小值。Optionally, with m segmented blood oxygen signals in a certain windowed blood oxygen signal for illustration, the signal processing device can be based on the blood oxygen saturation corresponding to the m segmented blood oxygen signals in the windowed blood oxygen signal. , the local minimum value of the blood oxygen saturation of the windowed blood oxygen signal is determined by the following formula (4). Wherein, in the following formula (4), Min_wi represents the local minimum value of the blood oxygen saturation of the i-th sub-window blood oxygen signal.

Min_wi=min{Swidj},(j=1,2,3,…,m,i=1,2,3,…,n) (4)Min_wi=min{Swidj},(j=1,2,3,…,m,i=1,2,3,…,n) (4)

例如m=6时,公式(4)可以具体化为下述公式(4-1)。For example, when m=6, the formula (4) can be embodied as the following formula (4-1).

Min_wi=min{Swid1,Swid2,Swid3,Swid4,Swid5,Swid6},(j=1,2,3,…,m,i=1,2,3,…,n)Min_wi=min{Swid1,Swid2,Swid3,Swid4,Swid5,Swid6},(j=1,2,3,...,m,i=1,2,3,...,n)

(4-1) (4-1)

子步骤2075:根据每个血氧饱和度局部最大值和每个血氧饱和度局部最小值,确定每个分窗血氧信号的血氧饱和度局部极差。Sub-step 2075: According to each local maximum value of blood oxygen saturation and each local minimum value of blood oxygen saturation, determine the local range of blood oxygen saturation of each sub-window blood oxygen signal.

可选地,以某一个分窗血氧信号进行说明,信号处理设备可以根据该分窗血氧信号的血氧饱和度局部最大值和血氧饱和度局部最小值,通过下述公式(5)确定该分窗血氧信号的血氧饱和度局部极差。其中,在下述公式(5)中,R_wi表示第i个分窗血氧信号的血氧饱和度局部极差。Optionally, with a certain windowed blood oxygen signal for illustration, the signal processing device can use the following formula (5) according to the local maximum value of blood oxygen saturation and the local minimum value of blood oxygen saturation of the windowed blood oxygen signal. The local range of blood oxygen saturation of the sub-window blood oxygen signal is determined. Wherein, in the following formula (5), R_wi represents the local range of blood oxygen saturation of the i-th sub-window blood oxygen signal.

R_wi=Max_wi-Min_wi,(i=1,2,3,…,n) (5)R_wi=Max_wi-Min_wi,(i=1,2,3,...,n) (5)

子步骤2076:根据m个分段血氧信号对应的血氧饱和度,确定分窗血氧信号的平均一级下降百分比。Sub-step 2076: Determine the average first-order drop percentage of the windowed blood oxygen signals according to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals.

可选地,信号处理设备可以根据n×m个分段血氧信号对应的血氧饱和度,通过下述公式(6)确定每个分段血氧信号的一级下降百分比。其中,在下述公式(6)中,D1_di表示n×m个分段血氧信号中,第i个分段血氧信号的一级下降百分比。Optionally, the signal processing device may determine the first-order drop percentage of each segmented blood oxygen signal according to the blood oxygen saturation corresponding to the n×m segmented blood oxygen signals by the following formula (6). Wherein, in the following formula (6), D1_di represents the first-order drop percentage of the i-th segmented blood-oxygen signal among the n×m segmented blood-oxygen signals.

Figure BDA0002256379880000141
Figure BDA0002256379880000141

例如m=6时,公式(6)可以具体化为下述公式(6-1)。For example, when m=6, the formula (6) can be embodied as the following formula (6-1).

Figure BDA0002256379880000142
Figure BDA0002256379880000142

然后,以某一个分窗血氧信号中的m个分段血氧信号进行说明,信号处理设备可以根据该分窗血氧信号中的m个分段血氧信号的一级下降百分比,通过下述公式(7)确定该分窗血氧信号的平均一级下降百分比。其中,在下述公式(7)中,MD1_wi表示n个分窗血氧信号中,第i个分窗血氧信号的平均一级下降百分比。Then, taking the m segmented blood oxygen signals in a certain windowed blood oxygen signal for illustration, the signal processing device can, according to the first-order drop percentage of the m segmented blood oxygen signals in the windowed blood oxygen signal, pass the following The above formula (7) determines the average first-order drop percentage of the sub-window blood oxygen signal. Wherein, in the following formula (7), MD1_wi represents the average first-order drop percentage of the blood oxygen signal of the i-th sub-window in the blood oxygen signals of the n sub-windows.

Figure BDA0002256379880000143
Figure BDA0002256379880000143

例如m=6时,公式(7)可以具体化为下述公式(7-1)。For example, when m=6, the formula (7) can be embodied as the following formula (7-1).

Figure BDA0002256379880000144
Figure BDA0002256379880000144

子步骤2077:根据m个分段血氧信号对应的血氧饱和度和第一预设常数,确定分窗血氧信号的平均一级持续下降时间。Sub-step 2077: According to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals and the first preset constant, determine the average first-order continuous fall time of the windowed blood oxygen signals.

可选地,信号处理设备可以根据n×m个分段血氧信号对应的血氧饱和度和第一预设常数,通过下述公式(8)确定每个分段血氧信号的一级下降百分比。其中,在下述公式(8)中,T1_di表示n×m个分段血氧信号中,第i个分段血氧信号的一级持续下降时间,a表示第一预设常数,第一预设常数等于预设段长。公式(8)所表示的计算过程可以参照图3。Optionally, the signal processing device can determine the first-order drop of each segmented blood oxygen signal by the following formula (8) according to the blood oxygen saturation corresponding to the n×m segmented blood oxygen signals and the first preset constant. percentage. Among them, in the following formula (8), T1_di represents the first-level continuous fall time of the i-th segmented blood oxygen signal in the n×m segmented blood oxygen signals, a represents the first preset constant, the first preset The constant is equal to the preset segment length. The calculation process represented by formula (8) can refer to FIG. 3 .

Figure BDA0002256379880000145
Figure BDA0002256379880000145

例如m=6,预设段长=10s时,公式(8)可以具体化为下述公式(8-1)。For example, when m=6 and the preset segment length=10s, the formula (8) can be embodied as the following formula (8-1).

Figure BDA0002256379880000151
Figure BDA0002256379880000151

然后,以某一个分窗血氧信号中的m个分段血氧信号进行说明,信号处理设备可以根据该分窗血氧信号中的m个分段血氧信号的一级下降百分比,通过下述公式(9)确定该分窗血氧信号的平均一级持续下降时间。其中,在下述公式(9)中,MT1_wi表示n个分窗血氧信号中,第i个分窗血氧信号的平均一级持续下降时间。Then, taking the m segmented blood oxygen signals in a certain windowed blood oxygen signal for illustration, the signal processing device can, according to the first-order drop percentage of the m segmented blood oxygen signals in the windowed blood oxygen signal, pass the following The above formula (9) determines the average first-order continuous falling time of the sub-window blood oxygen signal. Wherein, in the following formula (9), MT1_wi represents the average first-order continuous fall time of the blood oxygen signal of the i-th sub-window in the blood oxygen signals of the n sub-windows.

Figure BDA0002256379880000152
Figure BDA0002256379880000152

例如m=6时,公式(9)可以具体化为下述公式(9-1)。For example, when m=6, the formula (9) can be embodied as the following formula (9-1).

Figure BDA0002256379880000153
Figure BDA0002256379880000153

子步骤2078:根据血氧饱和度均值,确定分窗血氧信号的二级下降百分比。Sub-step 2078: Determine the secondary drop percentage of the windowed blood oxygen signal according to the mean blood oxygen saturation.

可选地,信号处理设备可以根据每个分窗血氧信号对应的血氧饱和度均值,通过下述公式(10)确定每个分窗血氧信号的二级下降百分比。其中,在下述公式(10)中,D2_wi表示n个分窗血氧信号中,第i个分窗血氧信号的二级下降百分比。Optionally, the signal processing device may determine the secondary drop percentage of each sub-window blood oxygen signal by the following formula (10) according to the blood oxygen saturation mean value corresponding to each sub-window blood oxygen signal. Wherein, in the following formula (10), D2_wi represents the secondary drop percentage of the blood oxygen signal of the i-th sub-window in the blood oxygen signals of the n sub-windows.

Figure BDA0002256379880000154
Figure BDA0002256379880000154

子步骤2079:根据血氧饱和度均值和第二预设常数,确定分窗血氧信号的二级持续下降时间。Sub-step 2079: Determine the secondary continuous fall time of the windowed blood oxygen signal according to the mean blood oxygen saturation and the second preset constant.

可选地,信号处理设备可以根据每个分窗血氧信号的血氧饱和度均值和第二预设常数,通过下述公式(11)确定每个分窗血氧信号的二级持续下降时间。其中,在下述公式(11)中,T2_wi表示n个分窗血氧信号中,第i个分窗血氧信号的平均一级持续下降时间,b表示第二预设常数,第二预设常数等于预设窗长。公式(11)所表示的计算过程可以参照图4。Optionally, the signal processing device can determine the secondary continuous fall time of each windowed blood oxygen signal by the following formula (11) according to the blood oxygen saturation mean value of each windowed blood oxygen signal and the second preset constant: . Among them, in the following formula (11), T2_wi represents the average first-order continuous fall time of the ith windowed blood oxygen signal in the n sub-window blood oxygen signals, b represents the second preset constant, the second preset constant equal to the default window length. The calculation process represented by formula (11) can refer to FIG. 4 .

Figure BDA0002256379880000161
Figure BDA0002256379880000161

例如预设窗长=60s时,公式(8)可以具体化为下述公式(8-1)。For example, when the preset window length=60s, the formula (8) can be embodied as the following formula (8-1).

Figure BDA0002256379880000162
Figure BDA0002256379880000162

需要说明的是,在实际应用中,预设呼吸分类模型在训练时即可从各个维度时域特征中,确定出对分类结果影响显著的时域特征维度,因此,在实际应用时,可以根据预设呼吸分类模型确定出的对分类结果影响显著的时域特征维度,提取相同维度的第一时域特征即可。例如,预设呼吸分类模型确定出的对分类结果影响显著的时域特征维度是平均一级下降百分比、平均一级持续下降时间、二级下降百分比和二级持续下降时间,则信号处理设备对第一血氧信号提取平均一级下降百分比、平均一级持续下降时间、二级下降百分比和二级持续下降时间的时域特征即可,相应的,对于需要提取哪个维度的第一时域特征,则执行相应的特征确定步骤即可,对于不需要提取的维度,则无需执行相应维度的特征确定步骤。It should be noted that, in practical applications, the preset breathing classification model can determine the time-domain feature dimensions that have a significant impact on the classification results from the time-domain features of each dimension during training. The time domain feature dimension determined by the preset breathing classification model that has a significant impact on the classification result can be extracted by extracting the first time domain feature of the same dimension. For example, the time-domain feature dimensions determined by the preset respiratory classification model that have a significant impact on the classification result are the average first-level drop percentage, the average first-level continuous drop time, the second-level drop percentage, and the second-level continuous drop time. The first blood oxygen signal can extract the time domain features of the average first-level drop percentage, the average first-level continuous drop time, the second-level drop percentage, and the second-level continuous drop time. Correspondingly, the first time-domain feature of which dimension needs to be extracted , the corresponding feature determination step only needs to be performed, and for the dimension that does not need to be extracted, the feature determination step of the corresponding dimension does not need to be performed.

另外,由于在本发明实施例中,可以只提取第一血氧信号时域方面的特征,而无需提取频域、光谱、非线性等方面的特征,因此可以使得分类的特征提取和运算的复杂度较低。In addition, in this embodiment of the present invention, only the time domain features of the first blood oxygen signal can be extracted, without the need to extract the frequency domain, spectral, nonlinear and other features, so the classification feature extraction and operation can be complicated. low degree.

步骤208:将第一时域特征输入预设呼吸分类模型,得到原始血氧信号所属的目标呼吸类别。Step 208: Input the first time domain feature into a preset respiratory classification model to obtain the target respiratory category to which the original blood oxygen signal belongs.

在本发明实施例中,信号处理设备可以将第一时域特征构建为第一特征矩阵,并将第一特征矩阵作为输入参数,输入训练好的预设呼吸分类模型中,从而预设呼吸分类模型可以输出第一时域特征对应的目标呼吸类别,也即是输出原始血氧信号所属的目标呼吸类别,从而确定出原始血氧信号是属于正常呼吸类别还是睡眠呼吸暂停类别。In this embodiment of the present invention, the signal processing device may construct the first time domain feature as a first feature matrix, and use the first feature matrix as an input parameter to input the trained preset respiratory classification model, thereby preset respiratory classification The model can output the target breathing category corresponding to the first time domain feature, that is, the target breathing category to which the output original blood oxygen signal belongs, so as to determine whether the original blood oxygen signal belongs to the normal breathing category or the sleep apnea category.

此外,在实际应用中,可选地,可以对不同的血氧信号所属者分别训练不同的预设呼吸分类模型,从而在进行睡眠呼吸类型的分类时,采用当前血氧信号所属者对应的预设呼吸分类模型进行分类,从而能够提高分类的准确性。当然,又可选地,也可以对不同的血氧信号所属者的血氧信号,采用相同的预设呼吸分类模型,也即是预设呼吸分类模型可以通用,如此,可以节约模型训练的时长。In addition, in practical applications, optionally, different preset respiration classification models can be trained for different blood oxygen signal owners, so that when classifying sleep breathing types, the preset corresponding to the current blood oxygen signal owner is used. A respiratory classification model is set for classification, so that the classification accuracy can be improved. Of course, optionally, the same preset respiration classification model can also be used for the blood oxygen signals of different blood oxygen signal owners, that is, the preset respiration classification model can be used universally. In this way, the model training time can be saved. .

在本发明实施例中,信号处理设备首先可以通过训练得到预设呼吸分类模型,然后可以获取原始血氧信号,并对原始血氧信号进行预处理,得到第一血氧信号,之后,信号处理设备可以对第一血氧信号进行分窗处理和分段处理,得到n个分窗血氧信号,每个分窗血氧信号中包括m个分段血氧信号,并根据每个分窗血氧信号中的m个分段血氧信号对应的血氧饱和度,确定第一血氧信号的第一时域特征,该第一时域特征能够表征第一血氧信号的血氧饱和度是否下降,进而信号处理设备将第一时域特征作为输入参数,输入预设呼吸分类模型,即可得到原始血氧信号所属的目标呼吸类别。在本发明实施例中,信号处理设备可以分窗分段对第一血氧信号进行时域特征提取,从而得到多维度多数量的时域特征,并根据第一血氧信号中能够表征血氧饱和度是否下降的时域特征,通过预设呼吸分类模型进行分类,从而确定出第一血氧信号对应的原始血氧信号所属的呼吸类别,相对于基于呼吸暂停次数与低通气次数的阈值判别方法,提高了判断呼吸类型的准确性。In the embodiment of the present invention, the signal processing device can first obtain a preset respiratory classification model through training, and then can obtain the original blood oxygen signal, and preprocess the original blood oxygen signal to obtain the first blood oxygen signal, and then perform signal processing. The device can perform window processing and segmentation processing on the first blood oxygen signal to obtain n windowed blood oxygen signals. Each windowed blood oxygen signal includes m segmented blood oxygen signals. The blood oxygen saturation corresponding to the m segmented blood oxygen signals in the oxygen signal determines the first time domain feature of the first blood oxygen signal, and the first time domain feature can represent whether the blood oxygen saturation of the first blood oxygen signal is Then, the signal processing device uses the first time domain feature as an input parameter, and inputs the preset respiratory classification model to obtain the target respiratory category to which the original blood oxygen signal belongs. In the embodiment of the present invention, the signal processing device may perform time-domain feature extraction on the first blood oxygen signal by window and segment, so as to obtain multi-dimensional and numerous time-domain features, and the blood oxygen can be characterized according to the first blood oxygen signal. The time-domain feature of whether the saturation level is decreased is classified by the preset breathing classification model, so as to determine the breathing category to which the original blood oxygen signal corresponding to the first blood oxygen signal belongs, which is compared with the threshold based on the number of apnea and the number of hypopnea. The method improves the accuracy of judging the type of breathing.

本发明实施例还提供了一种计算机设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的信号处理方法的步骤。An embodiment of the present invention also provides a computer device, including a processor, a memory, and a computer program stored on the memory and running on the processor, the computer program being executed by the processor to achieve the above The steps of the signal processing method.

对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。For the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, Certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments may be referred to each other.

最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Furthermore, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article of manufacture or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, commodity or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture, or device that includes the element.

以上对本发明所提供的一种信号处理方法及计算机设备,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A signal processing method and computer equipment provided by the present invention have been introduced in detail above. The principles and implementations of the present invention are described with specific examples in this paper. The descriptions of the above embodiments are only used to help understand the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be construed as Limitations of the present invention.

Claims (10)

1.一种信号处理设备,其特征在于,所述信号处理设备被配置为执行以下步骤:1. A signal processing device, wherein the signal processing device is configured to perform the following steps: 获取原始血氧信号;Obtain the original blood oxygen signal; 对所述原始血氧信号进行预处理,得到第一血氧信号;Preprocessing the original blood oxygen signal to obtain a first blood oxygen signal; 确定所述第一血氧信号的第一时域特征;所述第一时域特征用于表征所述第一血氧信号的血氧饱和度是否下降;determining a first time domain feature of the first blood oxygen signal; the first time domain feature is used to represent whether the blood oxygen saturation of the first blood oxygen signal decreases; 将所述第一时域特征输入预设呼吸分类模型,得到所述原始血氧信号所属的目标呼吸类别;所述预设呼吸分类模型是根据第二血氧信号的第二时域特征以及标记的呼吸类别构建的训练特征矩阵作为训练参数,输入初始呼吸分类模型,对所述初始呼吸分类模型进行训练得到的;其中,所述第二时域特征与所述第一时域特征属性相同;Inputting the first time domain feature into a preset respiration classification model to obtain the target respiration category to which the original blood oxygen signal belongs; the preset respiration classification model is based on the second time domain feature of the second blood oxygen signal and the label The training feature matrix constructed by the respiration category is used as a training parameter, and the initial respiration classification model is input and obtained by training the initial respiration classification model; wherein, the second time domain feature is the same as the first time domain feature attribute; 其中,所述第二血氧信号是对获取的样本血氧信号进行预处理得到的。Wherein, the second blood oxygen signal is obtained by preprocessing the obtained sample blood oxygen signal. 2.根据权利要求1所述的一种信号处理设备,其特征在于,所述确定所述第一血氧信号的第一时域特征,包括:2 . The signal processing device according to claim 1 , wherein the determining the first time domain feature of the first blood oxygen signal comprises: 2 . 对所述第一血氧信号进行分窗处理,得到n个分窗血氧信号;performing window processing on the first blood oxygen signal to obtain n windowed blood oxygen signals; 分别对每个所述分窗血氧信号进行分段处理,共计得到n×m个分段血氧信号;Perform segmentation processing on each of the sub-window blood oxygen signals respectively, and obtain a total of n×m sub-window blood oxygen signals; 确定每个所述分段血氧信号对应的血氧饱和度;determining the blood oxygen saturation corresponding to each of the segmented blood oxygen signals; 根据每个所述分窗血氧信号中的m个分段血氧信号对应的血氧饱和度,确定所述第一血氧信号的第一时域特征。The first time domain feature of the first blood oxygen signal is determined according to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals in each of the windowed blood oxygen signals. 3.根据权利要求2所述的一种信号处理设备,其特征在于,所述第一时域特征包括血氧饱和度均值、血氧饱和度标准方差、血氧饱和度局部最大值、血氧饱和度局部最小值、血氧饱和度局部极差、平均一级下降百分比、平均一级持续下降时间、二级下降百分比和二级持续下降时间中的至少一种。3 . The signal processing device according to claim 2 , wherein the first time domain feature comprises the mean value of blood oxygen saturation, the standard deviation of blood oxygen saturation, the local maximum value of blood oxygen saturation, the At least one of a local minimum of saturation, a local range of blood oxygen saturation, an average first-order drop percentage, an average first-order sustained drop time, a second-order drop percentage, and a second-order sustained drop time. 4.根据权利要求3所述的一种信号处理设备,其特征在于,所述根据每个所述分窗血氧信号中的m个分段血氧信号对应的血氧饱和度,确定所述第一血氧信号的第一时域特征,包括:4 . The signal processing device according to claim 3 , wherein the determination of the said The first time domain feature of the first blood oxygen signal includes: 对于每个所述分窗血氧信号中的m个分段血氧信号,根据所述m个分段血氧信号对应的血氧饱和度,确定所述分窗血氧信号的血氧饱和度均值;For each of the m segmented blood oxygen signals in the segmented blood oxygen signals, the blood oxygen saturation of the windowed blood oxygen signal is determined according to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals mean; 根据所述m个分段血氧信号对应的血氧饱和度和所述血氧饱和度均值,确定所述分窗血氧信号的血氧饱和度标准方差;According to the blood oxygen saturation corresponding to the m segmented blood oxygen signals and the mean value of the blood oxygen saturation, determine the blood oxygen saturation standard deviation of the windowed blood oxygen signal; 根据所述m个分段血氧信号对应的血氧饱和度,确定所述分窗血氧信号的血氧饱和度局部最大值;determining the local maximum value of the blood oxygen saturation of the sub-window blood oxygen signal according to the blood oxygen saturation corresponding to the m segmented blood oxygen signals; 根据所述m个分段血氧信号对应的血氧饱和度,确定所述分窗血氧信号的血氧饱和度局部最小值;determining the local minimum value of the blood oxygen saturation of the sub-window blood oxygen signal according to the blood oxygen saturation corresponding to the m segmented blood oxygen signals; 根据每个所述血氧饱和度局部最大值和每个所述血氧饱和度局部最小值,确定每个所述分窗血氧信号的血氧饱和度局部极差;According to each of the local maximum values of the blood oxygen saturation and each of the local minimum values of the blood oxygen saturation, determine the local range of the blood oxygen saturation of each of the windowed blood oxygen signals; 根据所述m个分段血氧信号对应的血氧饱和度,确定所述分窗血氧信号的平均一级下降百分比;According to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals, determine the average first-order drop percentage of the windowed blood oxygen signals; 根据所述m个分段血氧信号对应的血氧饱和度和第一预设常数,确定所述分窗血氧信号的平均一级持续下降时间;According to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals and a first preset constant, determine the average first-order continuous decline time of the windowed blood oxygen signals; 根据所述血氧饱和度均值,确定所述分窗血氧信号的二级下降百分比;According to the mean value of blood oxygen saturation, determine the secondary drop percentage of the windowed blood oxygen signal; 根据所述血氧饱和度均值和第二预设常数,确定所述分窗血氧信号的二级持续下降时间。According to the mean value of blood oxygen saturation and a second preset constant, the second-level continuous falling time of the windowed blood oxygen signal is determined. 5.根据权利要求4所述的一种信号处理设备,其特征在于,所述根据所述m个分段血氧信号对应的血氧饱和度,确定所述分窗血氧信号的平均一级下降百分比,包括:5 . The signal processing device according to claim 4 , wherein the average level of the windowed blood oxygen signals is determined according to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals. 6 . Percent decline, including: 根据所述m个分段血氧信号对应的血氧饱和度,通过下述公式,确定所述分窗血氧信号的平均一级下降百分比;According to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals, the following formula is used to determine the average first-order drop percentage of the windowed blood oxygen signals;
Figure FDA0003674750650000021
Figure FDA0003674750650000021
其中,
Figure FDA0003674750650000022
in,
Figure FDA0003674750650000022
MD1_wi表示n个所述分窗血氧信号中,第i个所述分窗血氧信号的平均一级下降百分比;D1_di表示n×m个所述分段血氧信号中,第i个所述分段血氧信号的一级下降百分比;Sd表示所述分段血氧信号对应的血氧饱和度;MD1_wi represents the average first-order drop percentage of the i-th windowed blood-oxygen signal among the n segmented blood-oxygen signals; D1_di represents the i-th segmented blood-oxygen signal among the n×m segmented blood-oxygen signals. The first-order drop percentage of the segmented blood oxygen signal; Sd represents the blood oxygen saturation corresponding to the segmented blood oxygen signal; 所述根据所述m个分段血氧信号对应的血氧饱和度和第一预设常数,确定所述分窗血氧信号的平均一级持续下降时间,包括:The determining, according to the blood oxygen saturation levels corresponding to the m segmented blood oxygen signals and the first preset constant, the average first-order continuous decline time of the windowed blood oxygen signals, including: 根据所述m个分段血氧信号对应的血氧饱和度和第一预设常数,通过下述公式,确定所述分窗血氧信号的平均一级持续下降时间;According to the blood oxygen saturation corresponding to the m segmented blood oxygen signals and the first preset constant, the following formula is used to determine the average first-order continuous decline time of the windowed blood oxygen signals;
Figure FDA0003674750650000031
Figure FDA0003674750650000031
其中,
Figure FDA0003674750650000032
in,
Figure FDA0003674750650000032
MT1_wi表示n个所述分窗血氧信号中,第i个所述分窗血氧信号的平均一级持续下降时间;T1_di表示n×m个所述分段血氧信号中,第i个所述分段血氧信号的一级持续下降时间;a表示所述第一预设常数;MT1_wi represents the average first-order continuous fall time of the i-th sub-window blood oxygen signal among the n sub-window blood oxygen signals; T1_di represents the i-th sub-window blood oxygen signal in the n×m sub-window blood oxygen signals. the first-level continuous falling time of the segmented blood oxygen signal; a represents the first preset constant; 所述根据所述血氧饱和度均值,确定所述分窗血氧信号的二级下降百分比,包括:The determining the second-level drop percentage of the windowed blood oxygen signal according to the average blood oxygen saturation includes: 根据所述血氧饱和度均值,通过下述公式,确定所述分窗血氧信号的二级下降百分比;According to the mean value of blood oxygen saturation, the second-level drop percentage of the windowed blood oxygen signal is determined by the following formula;
Figure FDA0003674750650000033
Figure FDA0003674750650000033
其中,D2_wi表示n个所述分窗血氧信号中,第i个所述分窗血氧信号的二级下降百分比;Mean_wi表示n个所述分窗血氧信号中,第i个所述分窗血氧信号的血氧饱和度均值;Among them, D2_wi represents the secondary drop percentage of the i-th windowed blood oxygen signal among the n sub-window blood oxygen signals; Mean_wi represents the i-th sub-window blood oxygen signal in the n sub-window blood oxygen signals. mean blood oxygen saturation of the window blood oxygen signal; 所述根据所述血氧饱和度均值和第二预设常数,确定所述分窗血氧信号的二级持续下降时间,包括:The determining, according to the mean value of blood oxygen saturation and the second preset constant, the second-level continuous falling time of the windowed blood oxygen signal includes: 根据所述血氧饱和度均值和第二预设常数,通过下述公式,确定所述分窗血氧信号的二级持续下降时间;According to the blood oxygen saturation mean value and the second preset constant, the second-level continuous fall time of the windowed blood oxygen signal is determined by the following formula;
Figure FDA0003674750650000041
Figure FDA0003674750650000041
其中,T2_wi表示n个所述分窗血氧信号中,第i个所述分窗血氧信号的平均一级持续下降时间,b表示所述第二预设常数。Wherein, T2_wi represents the average first-order continuous fall time of the i-th windowed blood oxygen signal among the n blood oxygen signals in the sub-windows, and b represents the second preset constant.
6.根据权利要求1所述的一种信号处理设备,其特征在于,所述获取原始血氧信号之前,还包括:6 . The signal processing device according to claim 1 , wherein before acquiring the original blood oxygen signal, the method further comprises: 6 . 获取多个样本血氧信号和每个所述样本血氧信号对应的呼吸类别;acquiring a plurality of sample blood oxygen signals and a respiratory category corresponding to each of the sample blood oxygen signals; 对每个所述样本血氧信号分别进行预处理,得到多个第二血氧信号;Preprocessing each of the sample blood oxygen signals to obtain a plurality of second blood oxygen signals; 确定每个所述第二血氧信号的第二时域特征;所述第二时域特征用于表征所述第二血氧信号的血氧饱和度是否下降;determining a second time domain feature of each of the second blood oxygen signals; the second time domain features are used to characterize whether the blood oxygen saturation of the second blood oxygen signal decreases; 构建初始呼吸分类模型;Build an initial respiratory classification model; 以每组对应的所述第二时域特征和所述呼吸类别为训练参数,对所述初始呼吸分类模型进行训练,得到所述预设呼吸分类模型。The initial breathing classification model is trained by using the second time domain feature and the breathing category corresponding to each group as training parameters to obtain the preset breathing classification model. 7.根据权利要求1所述的一种信号处理设备,其特征在于,所述预设呼吸分类模型包括逐步线性判别分析模型、线性判别分析模型或支持向量机模型。7 . The signal processing device according to claim 1 , wherein the preset breathing classification model comprises a stepwise linear discriminant analysis model, a linear discriminant analysis model or a support vector machine model. 8 . 8.根据权利要求6所述的一种信号处理设备,其特征在于,所述预设呼吸分类模型为逐步线性判别分析模型,所述初始呼吸分类模型为待训练的所述逐步线性判别分析模型;每个所述第二时域特征包括至少两个子时域特征;8 . The signal processing device according to claim 6 , wherein the preset breathing classification model is a stepwise linear discriminant analysis model, and the initial breathing classification model is the stepwise linear discriminant analysis model to be trained. 9 . ; Each of the second time domain features includes at least two sub-time domain features; 所述以每组对应的所述第二时域特征和所述呼吸类别为训练参数,对所述初始呼吸分类模型进行训练,得到所述预设呼吸分类模型,包括:The said initial breathing classification model is trained using the second time domain feature and the breathing category corresponding to each group as training parameters, and the preset breathing classification model is obtained, including: 以每组对应的所述第二时域特征和所述呼吸类别为训练参数,输入待训练的所述逐步线性判别分析模型;Taking each group of corresponding second time-domain features and the breathing category as training parameters, inputting the step-by-step linear discriminant analysis model to be trained; 根据每组对应的所述第二时域特征和所述呼吸类别,对所述第二时域特征中的每个所述子时域特征进行显著性检验,得到显著性权重超过预设阈值的子时域特征;According to each group of the corresponding second time domain features and the respiration category, a significance test is performed on each of the sub-time domain features in the second time domain features, and a significance weight exceeding a preset threshold is obtained. Sub-time domain features; 根据所述显著性权重超过预设阈值的子时域特征,训练得到所述逐步线性判别分析模型。The step-by-step linear discriminant analysis model is obtained by training according to the sub-time domain features of which the saliency weight exceeds a preset threshold. 9.根据权利要求8所述的一种信号处理设备,其特征在于,所述第一时域特征与所述第二时域特征中所述显著性权重超过所述预设阈值的子时域特征属性相同。9 . The signal processing device according to claim 8 , wherein in the first time domain feature and the second time domain feature, the saliency weight exceeds the sub-time domain of the preset threshold. 10 . Feature properties are the same. 10.一种计算机设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至9中任一项所述的一种信号处理设备所被配置执行的步骤。10. A computer device, characterized in that it comprises a processor, a memory, and a computer program stored on the memory and executable on the processor, and the computer program is executed by the processor to achieve the right A signal processing device according to any one of claims 1 to 9 is configured to perform steps.
CN201911055292.8A 2019-10-31 2019-10-31 Signal processing method and computer equipment Active CN110742621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911055292.8A CN110742621B (en) 2019-10-31 2019-10-31 Signal processing method and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911055292.8A CN110742621B (en) 2019-10-31 2019-10-31 Signal processing method and computer equipment

Publications (2)

Publication Number Publication Date
CN110742621A CN110742621A (en) 2020-02-04
CN110742621B true CN110742621B (en) 2022-09-13

Family

ID=69281651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911055292.8A Active CN110742621B (en) 2019-10-31 2019-10-31 Signal processing method and computer equipment

Country Status (1)

Country Link
CN (1) CN110742621B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111297327B (en) * 2020-02-20 2023-12-01 京东方科技集团股份有限公司 Sleep analysis method, system, electronic equipment and storage medium
CN114795133A (en) * 2022-06-29 2022-07-29 华南师范大学 Sleep apnea detection method, device, equipment and storage medium

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8932227B2 (en) * 2000-07-28 2015-01-13 Lawrence A. Lynn System and method for CO2 and oximetry integration
JP3820811B2 (en) * 1999-08-02 2006-09-13 株式会社デンソー Respiratory system disease monitoring device
US10512429B2 (en) * 2004-12-23 2019-12-24 ResMed Pty Ltd Discrimination of cheyne-stokes breathing patterns by use of oximetry signals
US20090247837A1 (en) * 2008-03-27 2009-10-01 Nellcor Puritan Bennett Llc System And Method For Diagnosing Sleep Apnea
NZ594879A (en) * 2009-04-20 2013-08-30 Resmed Ltd Discrimination of cheyne -stokes breathing patterns by use of oximetry signals
US8378832B2 (en) * 2009-07-09 2013-02-19 Harry J. Cassidy Breathing disorder treatment system and method
US20150018632A1 (en) * 2012-09-14 2015-01-15 Mohammad Khair System and Method For Monitoring Cardiac Blood Flow Balance Between The Right and Left Heart Chambers
US20140171769A1 (en) * 2012-12-18 2014-06-19 Covidien Lp Systems and methods for distinguishing between central apnea and obstructive apnea
CN104545818A (en) * 2015-01-29 2015-04-29 吉林大学 Sleep apnea syndrome detection method based on pulse and blood oxygen signals
ES2640832B1 (en) * 2016-04-01 2018-09-04 Consejo Superior De Investigaciones Científicas (Csic) SENSOR, DEVICE, SYSTEM AND NON-INVASIVE METHOD TO DETERMINE TRAINING PARAMETERS DURING THE PERFORMANCE OF A PHYSICAL EXERCISE
CN106137219B (en) * 2016-08-04 2019-02-01 天津大学 The absolute difference adduction of dual wavelength calculates arterial oxygen saturation method and device thereof
CN108283489A (en) * 2017-12-16 2018-07-17 湖南明康中锦医疗科技发展有限公司 Sleep-respiratory system and method
CN109044302A (en) * 2018-07-03 2018-12-21 京东方科技集团股份有限公司 Measure device, electronic equipment and the computer readable storage medium of blood pressure
CN109259733A (en) * 2018-10-25 2019-01-25 深圳和而泰智能控制股份有限公司 Apnea detection method, apparatus and detection device in a kind of sleep
CN109528216A (en) * 2019-01-18 2019-03-29 京东方科技集团股份有限公司 The detection method and device of fetal hemoglobin saturation
CN109965848A (en) * 2019-04-18 2019-07-05 天津大学 A detection method of sleep apnea syndrome based on blood oxygen signal classification
CN110302460B (en) * 2019-08-09 2022-01-07 丹阳慧创医疗设备有限公司 Attention training method, device, equipment and system

Also Published As

Publication number Publication date
CN110742621A (en) 2020-02-04

Similar Documents

Publication Publication Date Title
CN109620152B (en) MutifacolLoss-densenert-based electrocardiosignal classification method
CN108564942A (en) One kind being based on the adjustable speech-emotion recognition method of susceptibility and system
CN106653001A (en) Baby crying identifying method and system
CN103405217B (en) System and method for multi-dimensional measurement of dysarthria based on real-time articulation modeling technology
CN110742621B (en) Signal processing method and computer equipment
CN111938650B (en) Method and device for monitoring sleep apnea
CN109069069A (en) The signal finishing and false positive removal for accelerating surveying data are swallowed after segmentation
CN110234279B (en) Method for characterizing sleep disordered breathing
CN108877924A (en) A kind of asthma method of determining probability and device
WO2020259057A1 (en) Sound identification method, device, storage medium, and electronic device
WO2020000523A1 (en) Signal processing method and apparatus
US11266354B2 (en) Method of generating respiratory status classifier and method of determining respiratory status
CN116895287A (en) SHAP value-based depression voice phenotype analysis method
CN111227792B (en) Apnea detection method, system, electronic device and storage medium
CN116597864A (en) Voice detection method and device
Ma et al. Application of time-frequency domain and deep learning fusion feature in non-invasive diagnosis of congenital heart disease-related pulmonary arterial hypertension
CN115053300A (en) Diagnosis of respiratory disease from subject sound
CN115457966A (en) Pig cough sound identification method based on improved DS evidence theory multi-classifier fusion
Topuz et al. SUPER-COUGH: A Super Learner-based ensemble machine learning method for detecting disease on cough acoustic signals
CN112466284B (en) A kind of mask voice recognition method
CN110113998B (en) Methods to characterize sleep-disordered breathing
CN114299925A (en) Method and system for obtaining importance measurement index of dysphagia symptom of Parkinson disease patient based on voice
CN108564967A (en) Mel energy vocal print feature extracting methods towards crying detecting system
CN111583968A (en) A method and system for speech emotion recognition
CN116649980A (en) Emotion monitoring method, system, device and storage medium based on artificial intelligence

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
OL01 Intention to license declared
OL01 Intention to license declared