WO2018058930A1 - Method and device for extracting qrs complex - Google Patents

Method and device for extracting qrs complex Download PDF

Info

Publication number
WO2018058930A1
WO2018058930A1 PCT/CN2017/079422 CN2017079422W WO2018058930A1 WO 2018058930 A1 WO2018058930 A1 WO 2018058930A1 CN 2017079422 W CN2017079422 W CN 2017079422W WO 2018058930 A1 WO2018058930 A1 WO 2018058930A1
Authority
WO
WIPO (PCT)
Prior art keywords
point
qrs complex
signal
value
determining
Prior art date
Application number
PCT/CN2017/079422
Other languages
French (fr)
Chinese (zh)
Inventor
郑慧敏
Original Assignee
深圳竹信科技有限公司
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 深圳竹信科技有限公司 filed Critical 深圳竹信科技有限公司
Publication of WO2018058930A1 publication Critical patent/WO2018058930A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • A61B5/346Analysis of electrocardiograms
    • A61B5/349Detecting specific parameters of the electrocardiograph cycle
    • A61B5/366Detecting abnormal QRS complex, e.g. widening
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7203Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/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/725Details of waveform analysis using specific filters therefor, e.g. Kalman or adaptive filters
    • 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/7271Specific aspects of physiological measurement analysis

Definitions

  • the present invention relates to the field of medical signal processing technologies, and in particular, to a QRS complex extraction method and apparatus.
  • the method of extracting the QRS complex in the ECG signal through the wearable device is based on two algorithms.
  • the first one is PT, Pan-Tompkins algorithm, which mainly uses ECG, Electrocardiograph ECG signals through bandpass filters, differentiators and square modules, based on the first-order differential Hilbert transform method.
  • the threshold is variable and is not subject to human interference;
  • the second is the FDD algorithm, which mainly uses an FIR bandpass filter whose coefficients are related to the order of the fraction.
  • the above two extraction methods are based on the detection method of the first-order differential signal, and other subsequent algorithms are the improvement methods of the two. Considering that wearable devices cannot be overly complicated due to the design of the circuit and do not use expensive sensors, the accuracy of QRS complex detection is often reduced.
  • the main object of the present invention is to provide a QRS complex extraction method and device, which aims to solve the problem that the wearable device in the prior art cannot be overly complicated due to the design of the circuit and does not use expensive sensors, and the QRS complex is often reduced. The problem of the accuracy of the test.
  • a QRS complex extraction method includes the steps of:
  • a QRS complex is extracted from the signature signal.
  • the step of extracting a QRS complex from the feature signal comprises:
  • Determining the minimum point from the starting point in the characteristic signal to the point of the R1 point is the Q1 point
  • Determining the minimum point from the point R1 to the end point in the characteristic signal is the point S1;
  • the QRS complex is determined based on the starting point of the QRS complex, the R1 point, the Q1 point, the S1 point, and the end point.
  • the step of extracting a QRS complex from the feature signal comprises:
  • Determining the maximum point from the starting point in the characteristic signal to the range of R2 is the Q2 point
  • the maximum point is determined from the R2 point in the characteristic signal to the end point range as the S2 point;
  • the QRS complex is determined based on the start of the QRS complex, R2, Q2, S2, and endpoint.
  • the method further includes:
  • R-peak R2
  • the QRS complex of the original signal under the negative point where peak is the peak of the QRS complex.
  • the method further includes:
  • the present invention further provides a QRS wave group extracting apparatus, including:
  • a processing module configured to structurally elementize the original signal
  • a calculation module for obtaining a characteristic signal of the original signal by using a signal elementized by the morphological operation structure
  • an extraction module configured to extract a QRS complex from the feature signal.
  • the extraction module comprises:
  • a determining unit for determining a start point and an end point of the QRS complex from the feature signal; the determining unit is further configured to
  • the determining unit Determining the maximum point from the characteristic signal as the R1 point; the determining unit is also used for
  • the minimum point is determined from the starting point in the characteristic signal to the point of the R1 point as the Q1 point; the determining unit is also used for
  • Determining the minimum point from the point R1 to the end point in the characteristic signal is the point S1;
  • An extracting unit configured to determine a QRS complex based on a starting point of the QRS complex, an R1 point, a Q1 point, an S1 point, and an end point.
  • the determining unit is further configured to determine a minimum point from the feature signal as the R2 point; the determining unit is further configured to:
  • the maximum point is determined from the starting point in the characteristic signal to the range of R2 to be the Q2 point; the determining unit is also used for
  • the maximum point is determined from the R2 point in the characteristic signal to the end point range as the S2 point;
  • the extracting unit is further configured to determine a QRS complex according to a starting point of the QRS complex, an R2 point, a Q2 point, an S2 point, and an end point.
  • the device further includes: a determining module,
  • the calculation module is further configured to calculate a value of a positive point of -Q1+(R1-Q1)+(R1-S1)-S1; the calculation module is further used for
  • the determining module is configured to determine whether a value of the positive point is greater than a value of the negative point
  • R-peak R2
  • the QRS complex of the original signal under the negative point where peak is the peak of the QRS complex.
  • the device further includes: an update module, configured to acquire an update manner of the structural element, and update the structural element;
  • the processing module is further configured to structure the original signal according to the updated structural element.
  • the invention can use the morphological method to highlight the QRS complex and suppress the other parts of the ECG signal, and can extract the QRS complex from the original collected ECG signal, the calculation amount is small, and the extraction is improved. Accuracy.
  • FIG. 1 is a schematic flow chart of a first embodiment of a QRS complex extraction method according to the present invention
  • FIG. 2 is a schematic flow chart of determining a location of a QRS complex in an embodiment of the present invention
  • FIG. 3 is a schematic flow chart of determining a location of a QRS group in another embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a QRS complex extracted in an embodiment of the present invention.
  • FIG. 5 is a schematic flow chart of a second embodiment of a QRS complex extraction method according to the present invention.
  • FIG. 6 is a schematic diagram of functional modules of a first embodiment of a QRS complex extraction device according to the present invention.
  • FIG. 7 is a schematic diagram of a refinement function module of an embodiment of the extraction module of FIG. 6;
  • FIG. 8 is a schematic diagram of functional modules of a second embodiment of the QRS complex extraction device of the present invention.
  • the invention provides a QRS wave group extraction method.
  • FIG. 1 is a schematic flow chart of a first embodiment of a QRS complex extraction method according to the present invention.
  • the QRS complex extraction method includes:
  • Step S10 acquiring an original signal
  • the original signal may be an ECG signal collected by an ECG electrocardiograph, or may be other physiological signals collected.
  • the original signal is obtained from the electrocardiograph when the acquired signal needs to be processed.
  • the original signal may be subjected to low-pass filtering processing to remove significant power frequency interference, and the low-pass filtering processing may be selected or not processed according to the setting.
  • Step S20 the elementalizes the original signal
  • the structural element is initialized and the structure elements the original signal.
  • Initialization of structural elements The structural elements consist of five reference points: start point, Q, R, S, and end point.
  • the length of the structural element is 90ms, and the amplitude of the structural element is the difference between the maximum and minimum values in the initial 2s signal segment of the ECG signal.
  • the rule of window sliding is: if no candidate area is detected, the starting point of the next window locates the starting point of the current window plus the position of the half-second window; If the QRS complex has been detected, the start of the next window locates the end of the QRS complex plus a 20 ms position.
  • Step S30 obtaining a characteristic signal of the original signal by using a signal elementized by the morphological operation structure
  • a morphological operation is performed, and the characteristic signal of the original signal is obtained by using the signal elementized by the morphological operation structure.
  • g is a structural element
  • f is ECG signal data with a window length of 1 s
  • FS is a characteristic signal.
  • Step S40 extracting a QRS complex from the feature signal.
  • the QRS complex is extracted from the feature signal.
  • a non-zero portion of the feature signal FS is found, and then a portion in which the duration is longer than 70 ms is selected as a candidate portion of the QRS, and then the position of the QRS is determined from the 70 ms candidate portion in the following manner.
  • the manner of determining the location of the QRS may include:
  • Step S41 determining a start point and an end point of the QRS complex from the feature signal
  • Step S42 determining a maximum point from the feature signal as the R1 point
  • Step S43 determining that the minimum point is the Q1 point from the starting point in the characteristic signal to the range of the R1 point;
  • Step S44 determining that the minimum point is the S1 point from the R1 point to the end point range in the characteristic signal
  • step S45 the QRS complex is determined based on the start point of the QRS complex, the R1 point, the Q1 point, the S1 point, and the end point.
  • the manner of determining the location of the QRS may further include:
  • Step S46 determining a minimum point from the feature signal as the R2 point
  • Step S47 determining a maximum point from the starting point in the characteristic signal to the point of the R2 point as the Q2 point;
  • Step S48 determining a maximum point from the R2 point to the end point range in the characteristic signal is S2 point;
  • step S49 the QRS complex is determined according to the start point of the QRS complex, the R2 point, the Q2 point, the S2 point, and the end point.
  • the value of the positive point is calculated as -Q1+(R1-Q1)+(R1-S1)-S1;
  • the value of the point is -Q2+(Q2-Q1)+(R1-S1)-S1; comparing the value of the positive point with the value of the negative point, determining whether the value of the positive point is greater than the value of the negative point, and the value at the positive point is smaller than the negative
  • the QRS complex is the QRS complex determined under the negative point.
  • the position of the QRS point is determined according to the judgment result of the positive and negative points, the QRS wave group of the original signal is obtained, and the operation of extracting the QRS wave group is completed.
  • peak is the value of the peak
  • R is the value of R of the QRS complex.
  • the morphological method can be used to highlight the QRS complex and suppress the other parts of the ECG signal.
  • the QRS complex can be extracted from the original collected ECG signal with a small amount of calculation and improved. The accuracy of the extraction.
  • FIG. 5 is a schematic flowchart diagram of a second embodiment of a QRS complex extraction method according to the present invention. Based on the first embodiment of the QRS complex extraction method, the method further includes:
  • Step S50 Acquire an update manner of the structural element, update the structural element, and structure the original signal according to the updated structural element.
  • the structural elements are updated based on the information of the extracted QRS complex.
  • the QRS endpoints are based on the starting point and are updated according to the following formula:
  • Newloc (1-a)*Curr_loc+a*extractedloc
  • the accuracy of obtaining the position of the QRS complex is further improved, and the accuracy of medical signal detection is improved.
  • the invention further provides a QRS complex extraction device.
  • FIG. 6 is a schematic diagram of functional modules of a first embodiment of a QRS complex extraction apparatus according to the present invention.
  • the QRS complex extraction device includes an acquisition module 10, a processing module 20, a calculation module 30, an extraction module 40, and a determination module 50.
  • the obtaining module 10 is configured to acquire an original signal
  • the original signal may be an ECG signal collected by an ECG electrocardiograph, or may be other physiological signals collected.
  • the original signal is obtained from the electrocardiograph when the acquired signal needs to be processed.
  • the original signal may be subjected to low-pass filtering processing to remove significant power frequency interference, and the low-pass filtering processing may be selected or not processed according to the setting.
  • the processing module 20 is configured to structurally elementize the original signal
  • the structural element is initialized and the structure elements the original signal.
  • Initialization of structural elements The structural elements consist of five reference points: start point, Q, R, S, and end point.
  • the length of the structural element is 90ms, and the amplitude of the structural element is the difference between the maximum and minimum values in the initial 2s signal segment of the ECG signal.
  • the rule of window sliding is: if no candidate area is detected, the starting point of the next window locates the starting point of the current window plus the position of the half second window; if the QRS wave group has been detected, Then the starting point of the next window locates the end of the QRS complex plus 20ms.
  • the calculating module 30 is configured to obtain a characteristic signal of the original signal by using a signal elementized by the morphological operation structure;
  • a morphological operation is performed, and the characteristic signal of the original signal is obtained by using the signal elementized by the morphological operation structure.
  • g is a structural element
  • f is an ECG signal data with a window length of 1 s
  • FS is a characteristic letter number.
  • the extraction module 40 is configured to extract a QRS complex from the feature signal.
  • the QRS complex is extracted from the feature signal.
  • a non-zero portion of the feature signal FS is found, and then a portion in which the duration is longer than 70 ms is selected as a candidate portion of the QRS, and then the position of the QRS is determined from the 70 ms candidate portion in the following manner.
  • the extraction module 40 includes: a determining unit 41 and an extracting unit 42,
  • the determining unit 41 is configured to determine a start point and an end point of the QRS complex from the feature signal; the determining unit 41 is further configured to
  • the maximum value point is determined from the feature signal as the R1 point; the determining unit 41 is also used for
  • the minimum point is determined from the starting point in the characteristic signal to the point of the R1 point as the Q1 point; the determining unit 41 is also used for
  • Determining the minimum point from the point R1 to the end point in the characteristic signal is the point S1;
  • the extracting unit 42 is configured to determine a QRS complex according to a starting point of the QRS complex, an R1 point, a Q1 point, an S1 point, and an end point.
  • the determining unit 41 is further configured to determine a minimum point from the feature signal as the R2 point; the determining unit 41 is further configured to:
  • Determining the maximum point from the starting point in the characteristic signal to the point of the R2 point is the Q2 point; the determining unit 41 is also used for
  • the maximum point is determined from the R2 point in the characteristic signal to the end point range as the S2 point;
  • the extracting unit 42 is further configured to determine a QRS complex according to a starting point of the QRS complex, an R2 point, a Q2 point, an S2 point, and an end point.
  • the value of the positive point is calculated as -Q1+(R1-Q1)+(R1-S1)-S1; 30, is also used to calculate the value of the negative point is -Q2+(Q2-Q1)+(R1-S1)-S1;
  • the position of the QRS point is determined according to the judgment result of the positive and negative points, and the QRS wave group of the original signal is obtained, and the extraction is completed.
  • the operation of the QRS complex Where peak is the value of the peak and R is the value of R of the QRS complex.
  • the morphological method can be used to highlight the QRS complex and suppress the other parts of the ECG signal.
  • the QRS complex can be extracted from the original collected ECG signal with a small amount of calculation and improved. The accuracy of the extraction.
  • Figure 8 is a functional diagram of a second embodiment of the QRS complex extraction device of the present invention.
  • the device also includes an update module 60,
  • the update module 60 is configured to acquire an update manner of a structural element, and update a structural element
  • the processing module 20 is further configured to structure the original signal according to the updated structural element.
  • the structural elements are updated based on the information of the extracted QRS complex.
  • the QRS endpoints are based on the starting point and are updated according to the following formula:
  • Newloc (1-a)*Curr_loc+a*extractedloc
  • the accuracy of obtaining the position of the QRS complex is further improved, and the accuracy of medical signal detection is improved.

Abstract

Provided are a method and device for extracting a QRS complex. The method comprises the following steps: acquiring an original signal (S10); performing structural element transformation on the original signal (S20); performing a morphological operation on the signal having undergone the structural element transformation to obtain a characteristic signal of the original signal (S30); and extracting a QRS complex from the characteristic signal (S40). The method and device for extracting a QRS complex can effectively extract a QRS complex from an originally collected electrocardio signal, thereby reducing a computation load, and increasing extraction accuracy.

Description

QRS波群提取方法及装置QRS wave group extraction method and device 技术领域Technical field
本发明涉及医学信号处理技术领域,尤其涉及QRS波群提取方法及装置。The present invention relates to the field of medical signal processing technologies, and in particular, to a QRS complex extraction method and apparatus.
背景技术Background technique
当前监测人体健康,通过可穿戴式设备提取心电信号中QRS波群(反应左右心室的电激动过程)的方法基于两种算法。第一种是PT,Pan-Tompkins算法,主要是将ECG,Electrocardiograph心电信号通过带通滤波器,差分器和平方模块,基于一阶微分的希尔伯特变换方法,在这种方法中,阈值可变,并且不受人为干扰;第二种是FDD算法,主要使用一个FIR带通滤波器,滤波器的系数至于分式的阶数有关。上面两种提取方法皆是基于一阶微分信号的检测方法,后续其他算法皆是对其二者的改进方法。考虑到可穿戴式设备由于电路的设计不能过于复杂以及不会选用成本昂贵的传感器,往往降低了QRS波群检测的准确性。Currently monitoring human health, the method of extracting the QRS complex in the ECG signal through the wearable device (reacting the electrical activation process of the left and right ventricles) is based on two algorithms. The first one is PT, Pan-Tompkins algorithm, which mainly uses ECG, Electrocardiograph ECG signals through bandpass filters, differentiators and square modules, based on the first-order differential Hilbert transform method. The threshold is variable and is not subject to human interference; the second is the FDD algorithm, which mainly uses an FIR bandpass filter whose coefficients are related to the order of the fraction. The above two extraction methods are based on the detection method of the first-order differential signal, and other subsequent algorithms are the improvement methods of the two. Considering that wearable devices cannot be overly complicated due to the design of the circuit and do not use expensive sensors, the accuracy of QRS complex detection is often reduced.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种QRS波群提取方法及装置,旨在解决现有技术中可穿戴式设备由于电路的设计不能过于复杂以及不会选用成本昂贵的传感器,往往降低了QRS波群检测的准确性的问题。The main object of the present invention is to provide a QRS complex extraction method and device, which aims to solve the problem that the wearable device in the prior art cannot be overly complicated due to the design of the circuit and does not use expensive sensors, and the QRS complex is often reduced. The problem of the accuracy of the test.
为实现上述目的,本发明提供的一种QRS波群提取方法,包括步骤:To achieve the above object, a QRS complex extraction method provided by the present invention includes the steps of:
获取原始信号;Obtain the original signal;
结构元素化所述原始信号;Structurally elementizing the original signal;
运用形态学操作结构元素化后的信号得到原始信号的特征信号;Using the morphological operational structure elementized signal to obtain the characteristic signal of the original signal;
从所述特征信号中提取QRS波群。A QRS complex is extracted from the signature signal.
优选地,所述从所述特征信号中提取QRS波群的步骤包括:Preferably, the step of extracting a QRS complex from the feature signal comprises:
从特征信号中确定QRS波群的起点和终点; Determining the start and end points of the QRS complex from the signature signal;
从特征信号中确定最大值点作为R1点;Determining a maximum point from the characteristic signal as an R1 point;
从特征信号中的起点到R1点范围内确定最小值点为Q1点;Determining the minimum point from the starting point in the characteristic signal to the point of the R1 point is the Q1 point;
从特征信号中的R1点到终点范围内确定最小值点为S1点;Determining the minimum point from the point R1 to the end point in the characteristic signal is the point S1;
根据QRS波群的起点、R1点、Q1点、S1点和终点确定QRS波群。The QRS complex is determined based on the starting point of the QRS complex, the R1 point, the Q1 point, the S1 point, and the end point.
优选地,所述从所述特征信号中提取QRS波群的步骤包括:Preferably, the step of extracting a QRS complex from the feature signal comprises:
从特征信号中确定最小值点作为R2点;Determining a minimum point from the characteristic signal as an R2 point;
从特征信号中的起点到R2点范围内确定最大值点为Q2点;Determining the maximum point from the starting point in the characteristic signal to the range of R2 is the Q2 point;
从特征信号中的R2点到终点范围内确定最大值点为S2点;The maximum point is determined from the R2 point in the characteristic signal to the end point range as the S2 point;
根据QRS波群的起点、R2点、Q2点、S2点和终点确定QRS波群。The QRS complex is determined based on the start of the QRS complex, R2, Q2, S2, and endpoint.
优选地,所述方法还包括:Preferably, the method further includes:
计算正极点的值为-Q1+(R1-Q1)+(R1-S1)-S1;Calculate the value of the positive point as -Q1+(R1-Q1)+(R1-S1)-S1;
计算负极点的值为-Q2+(Q2-Q1)+(R1-S1)-S1;Calculate the value of the negative point as -Q2+(Q2-Q1)+(R1-S1)-S1;
判断正极点的值是否大于负极点的值;Determining whether the value of the positive point is greater than the value of the negative point;
在正极点的值小于负极点的值时,R-peak=R1,正极点下的为原始信号的QRS波群;When the value of the positive point is smaller than the value of the negative point, R-peak=R1, and the QRS group of the original signal under the positive point;
在正极点的值大于或等于负极点的值时,R-peak=R2,负极点下的为原始信号的QRS波群;其中peak为QRS波群的波峰值。When the value of the positive point is greater than or equal to the value of the negative point, R-peak=R2, and the QRS complex of the original signal under the negative point; where peak is the peak of the QRS complex.
优选地,所述从所述特征信号中提取QRS波群的步骤之后,还包括:Preferably, after the step of extracting the QRS complex from the feature signal, the method further includes:
获取结构元素的更新方式,更新结构元素,并按照更新后的结构元素结构化所述原始信号。Get the way the structural elements are updated, update the structural elements, and structure the original signals according to the updated structural elements.
此外,为实现上述目的,本发明还提供一种QRS波群提取装置,包括:In addition, in order to achieve the above object, the present invention further provides a QRS wave group extracting apparatus, including:
获取模块,用于获取原始信号;Obtaining a module for acquiring an original signal;
处理模块,用于结构元素化所述原始信号;a processing module, configured to structurally elementize the original signal;
计算模块,用于运用形态学操作结构元素化后的信号得到原始信号的特征信号;a calculation module for obtaining a characteristic signal of the original signal by using a signal elementized by the morphological operation structure;
提取模块,用于从所述特征信号中提取QRS波群。And an extraction module, configured to extract a QRS complex from the feature signal.
优选地,所述提取模块包括:Preferably, the extraction module comprises:
确定单元,用于从特征信号中确定QRS波群的起点和终点;确定单元还用于 a determining unit for determining a start point and an end point of the QRS complex from the feature signal; the determining unit is further configured to
从特征信号中确定最大值点作为R1点;确定单元还用于Determining the maximum point from the characteristic signal as the R1 point; the determining unit is also used for
从特征信号中的起点到R1点范围内确定最小值点为Q1点;确定单元还用于The minimum point is determined from the starting point in the characteristic signal to the point of the R1 point as the Q1 point; the determining unit is also used for
从特征信号中的R1点到终点范围内确定最小值点为S1点;Determining the minimum point from the point R1 to the end point in the characteristic signal is the point S1;
提取单元,用于根据QRS波群的起点、R1点、Q1点、S1点和终点确定QRS波群。An extracting unit configured to determine a QRS complex based on a starting point of the QRS complex, an R1 point, a Q1 point, an S1 point, and an end point.
优选地,所述确定单元,还用于从特征信号中确定最小值点作为R2点;确定单元还用于Preferably, the determining unit is further configured to determine a minimum point from the feature signal as the R2 point; the determining unit is further configured to:
从特征信号中的起点到R2点范围内确定最大值点为Q2点;确定单元还用于The maximum point is determined from the starting point in the characteristic signal to the range of R2 to be the Q2 point; the determining unit is also used for
从特征信号中的R2点到终点范围内确定最大值点为S2点;The maximum point is determined from the R2 point in the characteristic signal to the end point range as the S2 point;
所述提取单元,还用于根据QRS波群的起点、R2点、Q2点、S2点和终点确定QRS波群。The extracting unit is further configured to determine a QRS complex according to a starting point of the QRS complex, an R2 point, a Q2 point, an S2 point, and an end point.
优选地,所述装置还包括:判断模块,Preferably, the device further includes: a determining module,
所述计算模块,还用于计算正极点的值为-Q1+(R1-Q1)+(R1-S1)-S1;计算模块还用于The calculation module is further configured to calculate a value of a positive point of -Q1+(R1-Q1)+(R1-S1)-S1; the calculation module is further used for
计算负极点的值为-Q2+(Q2-Q1)+(R1-S1)-S1;Calculate the value of the negative point as -Q2+(Q2-Q1)+(R1-S1)-S1;
所述判断模块,用于判断正极点的值是否大于负极点的值;The determining module is configured to determine whether a value of the positive point is greater than a value of the negative point;
提取单元,还用于在正极点的值小于负极点的值时,R-peak=R1,正极点下的为原始信号的QRS波群;提取单元还用于The extracting unit is further configured to: when the value of the positive pole point is smaller than the value of the negative pole point, R-peak=R1, and the QRS wave group of the original signal under the positive pole point; the extracting unit is further used for
在正极点的值大于或等于负极点的值时,R-peak=R2,负极点下的为原始信号的QRS波群;其中peak为QRS波群的波峰值。When the value of the positive point is greater than or equal to the value of the negative point, R-peak=R2, and the QRS complex of the original signal under the negative point; where peak is the peak of the QRS complex.
优选地,所述装置还包括:更新模块,用于获取结构元素的更新方式,更新结构元素;Preferably, the device further includes: an update module, configured to acquire an update manner of the structural element, and update the structural element;
所述处理模块,还用于按照更新后的结构元素结构化所述原始信号。The processing module is further configured to structure the original signal according to the updated structural element.
本发明通过运用形态学的方法可以起到突出QRS波群,抑制心电信号其他部分的作用,可以很好的从原始采集的心电信号中提取QRS波群,计算量小,且提高了提取的准确度。The invention can use the morphological method to highlight the QRS complex and suppress the other parts of the ECG signal, and can extract the QRS complex from the original collected ECG signal, the calculation amount is small, and the extraction is improved. Accuracy.
附图说明 DRAWINGS
图1为本发明QRS波群提取方法的第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of a QRS complex extraction method according to the present invention;
图2为本发明一实施例中确定QRS波群的位置的流程示意图;2 is a schematic flow chart of determining a location of a QRS complex in an embodiment of the present invention;
图3为本发明另一实施例中确定QRS波群的位置的流程示意图;3 is a schematic flow chart of determining a location of a QRS group in another embodiment of the present invention;
图4为本发明一实施例中提取的QRS波群的示意图;4 is a schematic diagram of a QRS complex extracted in an embodiment of the present invention;
图5为本发明QRS波群提取方法的第二实施例的流程示意图;5 is a schematic flow chart of a second embodiment of a QRS complex extraction method according to the present invention;
图6为本发明QRS波群提取装置的第一实施例的功能模块示意图;6 is a schematic diagram of functional modules of a first embodiment of a QRS complex extraction device according to the present invention;
图7为图6中提取模块一实施例的细化功能模块示意图;7 is a schematic diagram of a refinement function module of an embodiment of the extraction module of FIG. 6;
图8为本发明QRS波群提取装置的第二实施例的功能模块示意图。FIG. 8 is a schematic diagram of functional modules of a second embodiment of the QRS complex extraction device of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明提供一种QRS波群提取方法。The invention provides a QRS wave group extraction method.
参照图1,图1为本发明QRS波群提取方法的第一实施例的流程示意图。Referring to FIG. 1, FIG. 1 is a schematic flow chart of a first embodiment of a QRS complex extraction method according to the present invention.
在一实施例中,所述QRS波群提取方法包括:In an embodiment, the QRS complex extraction method includes:
步骤S10,获取原始信号;Step S10, acquiring an original signal;
在本实施例中,所述原始信号可以是ECG心电图仪采集到的心电信号,也可以是采集到的其他生理信号。在需要对采集的信号进行处理时,从心电图仪获取原始信号。在本发明一较佳实施例中,在获取到原始信号后,还可以对原始信号进行低通滤波处理,去掉显著的工频干扰,低通滤波处理的过程可以根据设置选择处理或不处理。In this embodiment, the original signal may be an ECG signal collected by an ECG electrocardiograph, or may be other physiological signals collected. The original signal is obtained from the electrocardiograph when the acquired signal needs to be processed. In a preferred embodiment of the present invention, after the original signal is acquired, the original signal may be subjected to low-pass filtering processing to remove significant power frequency interference, and the low-pass filtering processing may be selected or not processed according to the setting.
步骤S20,结构元素化所述原始信号;Step S20, the elementalizes the original signal;
在获取到原始信号后,初始化结构元素,结构元素化所述原始信号。结构元素的初始化:结构元素由5个基准点构成:起点、Q、R、S和终点。结构元素的长度为90ms,结构元素的幅度为心电信号初始2s信号段中最大值与最小值之差。在本发明一较佳实施例中,窗口滑动的规则是:如果没有检测出候选区域,则下一次窗口的起点定位当前窗口起点加上半秒窗口的位置; 如果已经检测出了QRS波群,则下一次窗口的起点定位QRS波群的终点加上20ms的位置。After the original signal is acquired, the structural element is initialized and the structure elements the original signal. Initialization of structural elements: The structural elements consist of five reference points: start point, Q, R, S, and end point. The length of the structural element is 90ms, and the amplitude of the structural element is the difference between the maximum and minimum values in the initial 2s signal segment of the ECG signal. In a preferred embodiment of the present invention, the rule of window sliding is: if no candidate area is detected, the starting point of the next window locates the starting point of the current window plus the position of the half-second window; If the QRS complex has been detected, the start of the next window locates the end of the QRS complex plus a 20 ms position.
步骤S30,运用形态学操作结构元素化后的信号得到原始信号的特征信号;Step S30, obtaining a characteristic signal of the original signal by using a signal elementized by the morphological operation structure;
在结构元素初始化后,进行形态学操作,运用形态学操作结构元素化后的信号得到原始信号的特征信号。具体的,形态学操作:按照下面公式1进行运算,FS=f-(f0g+f·g)/2------公式1;形态学的基本操作包括:After the structural element is initialized, a morphological operation is performed, and the characteristic signal of the original signal is obtained by using the signal elementized by the morphological operation structure. Specifically, the morphological operation is performed according to the following formula 1, FS=f-(f 0 g+f·g)/2------Form 1; the basic operations of morphology include:
Figure PCTCN2017079422-appb-000001
Figure PCTCN2017079422-appb-000001
Figure PCTCN2017079422-appb-000002
Figure PCTCN2017079422-appb-000002
Figure PCTCN2017079422-appb-000003
Figure PCTCN2017079422-appb-000003
Figure PCTCN2017079422-appb-000004
Figure PCTCN2017079422-appb-000004
Top_Hat:That(f)=f-fοg。Top_Hat: That(f)=f-fοg.
其中,g为结构元素,f为窗口长度为1s的心电信号数据,FS为特征信号。通过上述形态学操作,可以起到突出QRS波群,抑制心电信号其他部分的作用。Where g is a structural element, f is ECG signal data with a window length of 1 s, and FS is a characteristic signal. Through the above morphological operations, it is possible to highlight the QRS complex and suppress the effects of other parts of the ECG signal.
步骤S40,从所述特征信号中提取QRS波群。Step S40, extracting a QRS complex from the feature signal.
在得到特征信号后,从所述特征信号中提取QRS波群。找出特征信号FS中非零的部分,然后选择其中持续时间大于70ms的部分作为QRS的候选部分,然后从70ms候选的部分中按照以下方式确定QRS的位置。具体的,参考图2,QRS的位置确定的方式可以包括:After the feature signal is obtained, the QRS complex is extracted from the feature signal. A non-zero portion of the feature signal FS is found, and then a portion in which the duration is longer than 70 ms is selected as a candidate portion of the QRS, and then the position of the QRS is determined from the 70 ms candidate portion in the following manner. Specifically, referring to FIG. 2, the manner of determining the location of the QRS may include:
步骤S41,从特征信号中确定QRS波群的起点和终点;Step S41, determining a start point and an end point of the QRS complex from the feature signal;
步骤S42,从特征信号中确定最大值点作为R1点;Step S42, determining a maximum point from the feature signal as the R1 point;
步骤S43,从特征信号中的起点到R1点范围内确定最小值点为Q1点;Step S43, determining that the minimum point is the Q1 point from the starting point in the characteristic signal to the range of the R1 point;
步骤S44,从特征信号中的R1点到终点范围内确定最小值点为S1点;Step S44, determining that the minimum point is the S1 point from the R1 point to the end point range in the characteristic signal;
步骤S45,根据QRS波群的起点、R1点、Q1点、S1点和终点确定QRS波群。In step S45, the QRS complex is determined based on the start point of the QRS complex, the R1 point, the Q1 point, the S1 point, and the end point.
参考图3,QRS的位置确定的方式还可以包括:Referring to FIG. 3, the manner of determining the location of the QRS may further include:
步骤S46,从特征信号中确定最小值点作为R2点;Step S46, determining a minimum point from the feature signal as the R2 point;
步骤S47,从特征信号中的起点到R2点范围内确定最大值点为Q2点;Step S47, determining a maximum point from the starting point in the characteristic signal to the point of the R2 point as the Q2 point;
步骤S48,从特征信号中的R2点到终点范围内确定最大值点为S2点; Step S48, determining a maximum point from the R2 point to the end point range in the characteristic signal is S2 point;
步骤S49,根据QRS波群的起点、R2点、Q2点、S2点和终点确定QRS波群。In step S49, the QRS complex is determined according to the start point of the QRS complex, the R2 point, the Q2 point, the S2 point, and the end point.
进一步地,在得到QRS波群的起点、R1、Q1、S1、终点、R2、Q2和S2后,计算正极点的值为-Q1+(R1-Q1)+(R1-S1)-S1;计算负极点的值为-Q2+(Q2-Q1)+(R1-S1)-S1;比较正极点的值与负极点的值,判断正极点的值是否大于负极点的值,在正极点的值小于负极点的值时,R-peak=R1,原始信号的QRS波群为正极点下确定的QRS波群;在正极点的值大于或等于负极点的值时,R-peak=R2,原始信号的QRS波群为负极点下确定的QRS波群。根据正负极点的判断结果确定QRS点的位置,得到所述原始信号的QRS波群,完成提取QRS波群的操作。其中peak为波峰的值,R为QRS波群的R的值。参考图4,为提取的QRS波群的示意图,其中圈出的为QRS波群的R点。Further, after obtaining the starting point of the QRS complex, R1, Q1, S1, the end point, R2, Q2, and S2, the value of the positive point is calculated as -Q1+(R1-Q1)+(R1-S1)-S1; The value of the point is -Q2+(Q2-Q1)+(R1-S1)-S1; comparing the value of the positive point with the value of the negative point, determining whether the value of the positive point is greater than the value of the negative point, and the value at the positive point is smaller than the negative When the value of the point is R-peak=R1, the QRS complex of the original signal is the QRS complex determined under the positive point; when the value of the positive point is greater than or equal to the value of the negative point, R-peak=R2, the original signal The QRS complex is the QRS complex determined under the negative point. The position of the QRS point is determined according to the judgment result of the positive and negative points, the QRS wave group of the original signal is obtained, and the operation of extracting the QRS wave group is completed. Where peak is the value of the peak and R is the value of R of the QRS complex. Referring to Figure 4, there is a schematic diagram of the extracted QRS complex, in which the R points of the QRS complex are circled.
本实施例通过运用形态学的方法可以起到突出QRS波群,抑制心电信号其他部分的作用,可以很好的从原始采集的心电信号中提取QRS波群,计算量小,且提高了提取的准确度。In this embodiment, the morphological method can be used to highlight the QRS complex and suppress the other parts of the ECG signal. The QRS complex can be extracted from the original collected ECG signal with a small amount of calculation and improved. The accuracy of the extraction.
参照图5,图5为本发明QRS波群提取方法的第二实施例的流程示意图。基于上述QRS波群提取方法的第一实施例,所述方法还包括:Referring to FIG. 5, FIG. 5 is a schematic flowchart diagram of a second embodiment of a QRS complex extraction method according to the present invention. Based on the first embodiment of the QRS complex extraction method, the method further includes:
步骤S50,获取结构元素的更新方式,更新结构元素,并按照更新后的结构元素结构化所述原始信号。根据提取的QRS波群的信息对结构元素进行更新。Step S50: Acquire an update manner of the structural element, update the structural element, and structure the original signal according to the updated structural element. The structural elements are updated based on the information of the extracted QRS complex.
结构元素更新:QRS终点都以起点为基准,按照下面的公式进行更新:Structural element update: The QRS endpoints are based on the starting point and are updated according to the following formula:
Newloc=(1-a)*Curr_loc+a*extractedloc;Newloc=(1-a)*Curr_loc+a*extractedloc;
Newam==(1-a)*Curr_am+a*extractedam;其中,Curr_loc和Curr_am分别指的是在现有结构元素中相对于起始点的位置和幅度;extractedloc和extractedam分别是指在提取的QRS波群中相对于起点的位置和幅度;而a按照下面公式更新:a=a-b,NPA>OPA*1.1;a=a+b,NPA<OPA*0.9;a=0.3其他条件,a的初始值为0.9,b为0.05,NPA和OPA分别指当前一次和前一次的PA值,PA=∑ie候选部分|FS(i)|。本实施例通过对结构元素的不断更新,使得获取QRS波群的位置的准确度进一步提高,提高医疗信号检测的准确性。 Newam==(1-a)*Curr_am+a*extractedam; where Curr_loc and Curr_am refer to the position and amplitude relative to the starting point in the existing structural elements, respectively; extracted loc and extractedam refer to the extracted QRS wave, respectively. The position and amplitude of the group relative to the starting point; and a is updated according to the following formula: a = ab, NPA > OPA * 1.1; a = a + b, NPA < OPA * 0.9; a = 0.3 other conditions, the initial value of a 0.9, b is 0.05, NPA and OPA refer to the current and previous PA values, respectively, PA = ∑ ie candidate part |FS(i)|. In this embodiment, by continuously updating the structural elements, the accuracy of obtaining the position of the QRS complex is further improved, and the accuracy of medical signal detection is improved.
本发明进一步提供一种QRS波群提取装置。The invention further provides a QRS complex extraction device.
参照图6,图6为本发明QRS波群提取装置的第一实施例的功能模块示意图。Referring to FIG. 6, FIG. 6 is a schematic diagram of functional modules of a first embodiment of a QRS complex extraction apparatus according to the present invention.
在一实施例中,所述QRS波群提取装置包括:获取模块10、处理模块20、计算模块30、提取模块40和判断模块50。In an embodiment, the QRS complex extraction device includes an acquisition module 10, a processing module 20, a calculation module 30, an extraction module 40, and a determination module 50.
所述获取模块10,用于获取原始信号;The obtaining module 10 is configured to acquire an original signal;
在本实施例中,所述原始信号可以是ECG心电图仪采集到的心电信号,也可以是采集到的其他生理信号。在需要对采集的信号进行处理时,从心电图仪获取原始信号。在本发明一较佳实施例中,在获取到原始信号后,还可以对原始信号进行低通滤波处理,去掉显著的工频干扰,低通滤波处理的过程可以根据设置选择处理或不处理。In this embodiment, the original signal may be an ECG signal collected by an ECG electrocardiograph, or may be other physiological signals collected. The original signal is obtained from the electrocardiograph when the acquired signal needs to be processed. In a preferred embodiment of the present invention, after the original signal is acquired, the original signal may be subjected to low-pass filtering processing to remove significant power frequency interference, and the low-pass filtering processing may be selected or not processed according to the setting.
所述处理模块20,用于结构元素化所述原始信号;The processing module 20 is configured to structurally elementize the original signal;
在获取到原始信号后,初始化结构元素,结构元素化所述原始信号。结构元素的初始化:结构元素由5个基准点构成:起点、Q、R、S和终点。结构元素的长度为90ms,结构元素的幅度为心电信号初始2s信号段中最大值与最小值之差。在本发明一较佳实施例中,窗口滑动的规则是:如果没有检测出候选区域,则下一次窗口的起点定位当前窗口起点加上半秒窗口的位置;如果已经检测出了QRS波群,则下一次窗口的起点定位QRS波群的终点加上20ms的位置。After the original signal is acquired, the structural element is initialized and the structure elements the original signal. Initialization of structural elements: The structural elements consist of five reference points: start point, Q, R, S, and end point. The length of the structural element is 90ms, and the amplitude of the structural element is the difference between the maximum and minimum values in the initial 2s signal segment of the ECG signal. In a preferred embodiment of the present invention, the rule of window sliding is: if no candidate area is detected, the starting point of the next window locates the starting point of the current window plus the position of the half second window; if the QRS wave group has been detected, Then the starting point of the next window locates the end of the QRS complex plus 20ms.
所述计算模块30,用于运用形态学操作结构元素化后的信号得到原始信号的特征信号;The calculating module 30 is configured to obtain a characteristic signal of the original signal by using a signal elementized by the morphological operation structure;
在结构元素初始化后,进行形态学操作,运用形态学操作结构元素化后的信号得到原始信号的特征信号。具体的,形态学操作:按照下面公式1进行运算,FS=f-(f0g+f·g)/2------公式1;形态学的基本操作包括:After the structural element is initialized, a morphological operation is performed, and the characteristic signal of the original signal is obtained by using the signal elementized by the morphological operation structure. Specifically, the morphological operation is performed according to the following formula 1, FS=f-(f 0 g+f·g)/2------Form 1; the basic operations of morphology include:
Figure PCTCN2017079422-appb-000005
Figure PCTCN2017079422-appb-000005
Figure PCTCN2017079422-appb-000006
Figure PCTCN2017079422-appb-000006
Figure PCTCN2017079422-appb-000007
Figure PCTCN2017079422-appb-000007
Figure PCTCN2017079422-appb-000008
Figure PCTCN2017079422-appb-000008
Top_Hat:That(f)=f-fοg。Top_Hat: That(f)=f-fοg.
其中,g为结构元素,f为窗口长度为1s的心电信号数据,FS为特征信 号。通过上述形态学操作,可以起到突出QRS波群,抑制心电信号其他部分的作用。Where g is a structural element, f is an ECG signal data with a window length of 1 s, and FS is a characteristic letter number. Through the above morphological operations, it is possible to highlight the QRS complex and suppress the effects of other parts of the ECG signal.
所述提取模块40,用于从所述特征信号中提取QRS波群。The extraction module 40 is configured to extract a QRS complex from the feature signal.
在得到特征信号后,从所述特征信号中提取QRS波群。找出特征信号FS中非零的部分,然后选择其中持续时间大于70ms的部分作为QRS的候选部分,然后从70ms候选的部分中按照以下方式确定QRS的位置。具体的,参考图7,所述提取模块40包括:确定单元41和提取单元42,After the feature signal is obtained, the QRS complex is extracted from the feature signal. A non-zero portion of the feature signal FS is found, and then a portion in which the duration is longer than 70 ms is selected as a candidate portion of the QRS, and then the position of the QRS is determined from the 70 ms candidate portion in the following manner. Specifically, referring to FIG. 7, the extraction module 40 includes: a determining unit 41 and an extracting unit 42,
所述确定单元41,用于从特征信号中确定QRS波群的起点和终点;确定单元41还用于The determining unit 41 is configured to determine a start point and an end point of the QRS complex from the feature signal; the determining unit 41 is further configured to
从特征信号中确定最大值点作为R1点;确定单元41还用于The maximum value point is determined from the feature signal as the R1 point; the determining unit 41 is also used for
从特征信号中的起点到R1点范围内确定最小值点为Q1点;确定单元41还用于The minimum point is determined from the starting point in the characteristic signal to the point of the R1 point as the Q1 point; the determining unit 41 is also used for
从特征信号中的R1点到终点范围内确定最小值点为S1点;Determining the minimum point from the point R1 to the end point in the characteristic signal is the point S1;
所述提取单元42,用于根据QRS波群的起点、R1点、Q1点、S1点和终点确定QRS波群。The extracting unit 42 is configured to determine a QRS complex according to a starting point of the QRS complex, an R1 point, a Q1 point, an S1 point, and an end point.
进一步地,所述确定单元41,还用于从特征信号中确定最小值点作为R2点;确定单元41还用于Further, the determining unit 41 is further configured to determine a minimum point from the feature signal as the R2 point; the determining unit 41 is further configured to:
从特征信号中的起点到R2点范围内确定最大值点为Q2点;确定单元41还用于Determining the maximum point from the starting point in the characteristic signal to the point of the R2 point is the Q2 point; the determining unit 41 is also used for
从特征信号中的R2点到终点范围内确定最大值点为S2点;The maximum point is determined from the R2 point in the characteristic signal to the end point range as the S2 point;
所述提取单元42,还用于根据QRS波群的起点、R2点、Q2点、S2点和终点确定QRS波群。The extracting unit 42 is further configured to determine a QRS complex according to a starting point of the QRS complex, an R2 point, a Q2 point, an S2 point, and an end point.
进一步地,在得到QRS波群的起点、R1、Q1、S1、终点、R2、Q2和S2后,计算正极点的值为-Q1+(R1-Q1)+(R1-S1)-S1;计算模块30,还用于计算负极点的值为-Q2+(Q2-Q1)+(R1-S1)-S1;判断模块50,用于比较正极点的值与负极点的值,判断正极点的值是否大于负极点的值,计算模块30还用于在正极点的值小于负极点的值时,R-peak=R1,原始信号的QRS波群为正极点下确定的QRS波群;在正极点的值大于或等于负极点的值时,R-peak=R2,原始信号的QRS波群为负极点下确定的QRS波群。根据正负极点的判断结果确定QRS点的位置,得到所述原始信号的QRS波群,完成提取 QRS波群的操作。其中peak为波峰的值,R为QRS波群的R的值。Further, after obtaining the starting point of the QRS complex, R1, Q1, S1, the end point, R2, Q2, and S2, the value of the positive point is calculated as -Q1+(R1-Q1)+(R1-S1)-S1; 30, is also used to calculate the value of the negative point is -Q2+(Q2-Q1)+(R1-S1)-S1; the determining module 50 is configured to compare the value of the positive point with the value of the negative point, and determine whether the value of the positive point is More than the value of the negative point, the calculation module 30 is further configured to use R-peak=R1 when the value of the positive point is smaller than the value of the negative point, and the QRS group of the original signal is the QRS group determined under the positive point; When the value is greater than or equal to the value of the negative point, R-peak=R2, and the QRS complex of the original signal is the QRS complex determined under the negative point. The position of the QRS point is determined according to the judgment result of the positive and negative points, and the QRS wave group of the original signal is obtained, and the extraction is completed. The operation of the QRS complex. Where peak is the value of the peak and R is the value of R of the QRS complex.
本实施例通过运用形态学的方法可以起到突出QRS波群,抑制心电信号其他部分的作用,可以很好的从原始采集的心电信号中提取QRS波群,计算量小,且提高了提取的准确度。In this embodiment, the morphological method can be used to highlight the QRS complex and suppress the other parts of the ECG signal. The QRS complex can be extracted from the original collected ECG signal with a small amount of calculation and improved. The accuracy of the extraction.
参照图8,图8为本发明QRS波群提取装置的第二实施例的功能示意图。所述装置还包括:更新模块60,Referring to Figure 8, Figure 8 is a functional diagram of a second embodiment of the QRS complex extraction device of the present invention. The device also includes an update module 60,
所述更新模块60,用于获取结构元素的更新方式,更新结构元素;The update module 60 is configured to acquire an update manner of a structural element, and update a structural element;
所述处理模块20,还用于按照更新后的结构元素结构化所述原始信号。根据提取的QRS波群的信息对结构元素进行更新。The processing module 20 is further configured to structure the original signal according to the updated structural element. The structural elements are updated based on the information of the extracted QRS complex.
结构元素更新:QRS终点都以起点为基准,按照下面的公式进行更新:Structural element update: The QRS endpoints are based on the starting point and are updated according to the following formula:
Newloc=(1-a)*Curr_loc+a*extractedloc;Newloc=(1-a)*Curr_loc+a*extractedloc;
Newam==(1-a)*Curr_am+a*extractedam;其中,Curr_loc和Curr_am分别指的是在现有结构元素中相对于起始点的位置和幅度;extractedloc和extractedam分别是指在提取的QRS波群中相对于起点的位置和幅度;而a按照下面公式更新:a=a-b,NPA>OPA*1.1;a=a+b,NPA<OPA*0.9;a=0.3其他条件,a的初始值为0.9,b为0.05,NPA和OPA分别指当前一次和前一次的PA值,PA=∑ie候选部分|FS(i)|。本实施例通过对结构元素的不断更新,使得获取QRS波群的位置的准确度进一步提高,提高医疗信号检测的准确性。Newam==(1-a)*Curr_am+a*extractedam; where Curr_loc and Curr_am refer to the position and amplitude relative to the starting point in the existing structural elements, respectively; extracted loc and extractedam refer to the extracted QRS wave, respectively. The position and amplitude of the group relative to the starting point; and a is updated according to the following formula: a = ab, NPA > OPA * 1.1; a = a + b, NPA < OPA * 0.9; a = 0.3 other conditions, the initial value of a 0.9, b is 0.05, NPA and OPA refer to the current and previous PA values, respectively, PA = ∑ ie candidate part |FS(i)|. In this embodiment, by continuously updating the structural elements, the accuracy of obtaining the position of the QRS complex is further improved, and the accuracy of medical signal detection is improved.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (10)

  1. 一种QRS波群提取方法,其特征在于,包括步骤:A QRS complex extraction method, comprising the steps of:
    获取原始信号;Obtain the original signal;
    结构元素化所述原始信号;Structurally elementizing the original signal;
    运用形态学操作结构元素化后的信号得到原始信号的特征信号;Using the morphological operational structure elementized signal to obtain the characteristic signal of the original signal;
    从所述特征信号中提取QRS波群。A QRS complex is extracted from the signature signal.
  2. 如权利要求1所述的QRS波群提取方法,其特征在于,所述从所述特征信号中提取QRS波群的步骤包括:The QRS complex extraction method according to claim 1, wherein the step of extracting a QRS complex from the feature signal comprises:
    从特征信号中确定QRS波群的起点和终点;Determining the start and end points of the QRS complex from the signature signal;
    从特征信号中确定最大值点作为R1点;Determining a maximum point from the characteristic signal as an R1 point;
    从特征信号中的起点到R1点范围内确定最小值点为Q1点;Determining the minimum point from the starting point in the characteristic signal to the point of the R1 point is the Q1 point;
    从特征信号中的R1点到终点范围内确定最小值点为S1点;Determining the minimum point from the point R1 to the end point in the characteristic signal is the point S1;
    根据QRS波群的起点、R1点、Q1点、S1点和终点确定QRS波群。The QRS complex is determined based on the starting point of the QRS complex, the R1 point, the Q1 point, the S1 point, and the end point.
  3. 如权利要求2所述的QRS波群提取方法,其特征在于,所述从所述特征信号中提取QRS波群的步骤包括:The QRS complex extraction method according to claim 2, wherein the step of extracting a QRS complex from the feature signal comprises:
    从特征信号中确定最小值点作为R2点;Determining a minimum point from the characteristic signal as an R2 point;
    从特征信号中的起点到R2点范围内确定最大值点为Q2点;Determining the maximum point from the starting point in the characteristic signal to the range of R2 is the Q2 point;
    从特征信号中的R2点到终点范围内确定最大值点为S2点;The maximum point is determined from the R2 point in the characteristic signal to the end point range as the S2 point;
    根据QRS波群的起点、R2点、Q2点、S2点和终点确定QRS波群。The QRS complex is determined based on the start of the QRS complex, R2, Q2, S2, and endpoint.
  4. 如权利要求3所述的QRS波群提取方法,其特征在于,所述方法还包括:The method of extracting a QRS complex according to claim 3, wherein the method further comprises:
    计算正极点的值为-Q1+R1-Q1+(R1-S1)-S1;Calculate the value of the positive point as -Q1+R1-Q1+(R1-S1)-S1;
    计算负极点的值为-Q2+Q2-Q1+(R1-S1)-S1;Calculate the value of the negative point as -Q2+Q2-Q1+(R1-S1)-S1;
    判断正极点的值是否大于负极点的值;Determining whether the value of the positive point is greater than the value of the negative point;
    在正极点的值小于负极点的值时,R-peak=R1,正极点下的为原始信号的QRS波群; When the value of the positive point is smaller than the value of the negative point, R-peak=R1, and the QRS group of the original signal under the positive point;
    在正极点的值大于或等于负极点的值时,R-peak=R2,负极点下的为原始信号的QRS波群;其中peak为QRS波群的波峰值。When the value of the positive point is greater than or equal to the value of the negative point, R-peak=R2, and the QRS complex of the original signal under the negative point; where peak is the peak of the QRS complex.
  5. 如权利要求1至4任一项所述的QRS波群提取方法,其特征在于,所述从所述特征信号中提取QRS波群的步骤之后,还包括:The QRS complex extraction method according to any one of claims 1 to 4, further comprising: after the step of extracting a QRS complex from the feature signal, further comprising:
    获取结构元素的更新方式,更新结构元素,并按照更新后的结构元素结构化所述原始信号。Get the way the structural elements are updated, update the structural elements, and structure the original signals according to the updated structural elements.
  6. 一种QRS波群提取装置,其特征在于,包括:A QRS wave group extracting device, comprising:
    获取模块,用于获取原始信号;Obtaining a module for acquiring an original signal;
    处理模块,用于结构元素化所述原始信号;a processing module, configured to structurally elementize the original signal;
    计算模块,用于运用形态学操作结构元素化后的信号得到原始信号的特征信号;a calculation module for obtaining a characteristic signal of the original signal by using a signal elementized by the morphological operation structure;
    提取模块,用于从所述特征信号中提取QRS波群。And an extraction module, configured to extract a QRS complex from the feature signal.
  7. 如权利要求6所述的QRS波群提取装置,其特征在于,所述提取模块包括:The QRS complex extraction device according to claim 6, wherein the extraction module comprises:
    确定单元,用于从特征信号中确定QRS波群的起点和终点;确定单元还用于a determining unit for determining a start point and an end point of the QRS complex from the feature signal; the determining unit is further configured to
    从特征信号中确定最大值点作为R1点;确定单元还用于Determining the maximum point from the characteristic signal as the R1 point; the determining unit is also used for
    从特征信号中的起点到R1点范围内确定最小值点为Q1点;确定单元还用于The minimum point is determined from the starting point in the characteristic signal to the point of the R1 point as the Q1 point; the determining unit is also used for
    从特征信号中的R1点到终点范围内确定最小值点为S1点;Determining the minimum point from the point R1 to the end point in the characteristic signal is the point S1;
    提取单元,用于根据QRS波群的起点、R1点、Q1点、S1点和终点确定QRS波群。An extracting unit configured to determine a QRS complex based on a starting point of the QRS complex, an R1 point, a Q1 point, an S1 point, and an end point.
  8. 如权利要求7所述的QRS波群提取装置,其特征在于,所述确定单元,还用于从特征信号中确定最小值点作为R2点;确定单元还用于The QRS complex extraction device according to claim 7, wherein the determining unit is further configured to determine a minimum point from the feature signal as the R2 point; the determining unit is further configured to:
    从特征信号中的起点到R2点范围内确定最大值点为Q2点;确定单元还用于 The maximum point is determined from the starting point in the characteristic signal to the range of R2 to be the Q2 point; the determining unit is also used for
    从特征信号中的R2点到终点范围内确定最大值点为S2点;The maximum point is determined from the R2 point in the characteristic signal to the end point range as the S2 point;
    所述提取单元,还用于根据QRS波群的起点、R2点、Q2点、S2点和终点确定QRS波群。The extracting unit is further configured to determine a QRS complex according to a starting point of the QRS complex, an R2 point, a Q2 point, an S2 point, and an end point.
  9. 如权利要求8所述的QRS波群提取装置,其特征在于,所述装置还包括:判断模块,The QRS complex extraction device according to claim 8, wherein the device further comprises: a determination module,
    所述计算模块,还用于计算正极点的值为-Q1+R1-Q1+R1-S1-S1;计算模块还用于The calculation module is further configured to calculate a value of a positive point of -Q1+R1-Q1+R1-S1-S1; the calculation module is further used for
    计算负极点的值为-Q2+Q2-Q1+R1-S1-S1;Calculate the value of the negative point as -Q2+Q2-Q1+R1-S1-S1;
    所述判断模块,用于判断正极点的值是否大于负极点的值;The determining module is configured to determine whether a value of the positive point is greater than a value of the negative point;
    提取单元,还用于在正极点的值小于负极点的值时,R-peak=R1,正极点下的为原始信号的QRS波群;提取单元还用于The extracting unit is further configured to: when the value of the positive pole point is smaller than the value of the negative pole point, R-peak=R1, and the QRS wave group of the original signal under the positive pole point; the extracting unit is further used for
    在正极点的值大于或等于负极点的值时,R-peak=R2,负极点下的为原始信号的QRS波群;其中peak为QRS波群的波峰值。When the value of the positive point is greater than or equal to the value of the negative point, R-peak=R2, and the QRS complex of the original signal under the negative point; where peak is the peak of the QRS complex.
  10. 如权利要求6至9任一项所述的QRS波群提取装置,其特征在于,所述装置还包括:更新模块,用于获取结构元素的更新方式,更新结构元素;The QRS group extraction device according to any one of claims 6 to 9, wherein the device further comprises: an update module, configured to acquire an update manner of the structural element, and update the structural element;
    所述处理模块,还用于按照更新后的结构元素结构化所述原始信号。 The processing module is further configured to structure the original signal according to the updated structural element.
PCT/CN2017/079422 2016-09-27 2017-04-05 Method and device for extracting qrs complex WO2018058930A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610856757.X 2016-09-27
CN201610856757.XA CN106419899A (en) 2016-09-27 2016-09-27 Method and device for quantum resonance spectrometer (QRS) wave group extraction

Publications (1)

Publication Number Publication Date
WO2018058930A1 true WO2018058930A1 (en) 2018-04-05

Family

ID=58170625

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/079422 WO2018058930A1 (en) 2016-09-27 2017-04-05 Method and device for extracting qrs complex

Country Status (2)

Country Link
CN (1) CN106419899A (en)
WO (1) WO2018058930A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106419899A (en) * 2016-09-27 2017-02-22 深圳竹信科技有限公司 Method and device for quantum resonance spectrometer (QRS) wave group extraction
CN107529686A (en) * 2017-06-29 2018-01-02 深圳竹信科技有限公司 Signal processing method, device and computer-readable recording medium
CN109875550B (en) * 2019-04-02 2020-08-04 东北大学 Ventricular depolarization key point detection method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101658425A (en) * 2009-09-11 2010-03-03 西安电子科技大学 Device and method for detecting attention focusing degree based on analysis of heart rate variability
US20100099995A1 (en) * 2008-10-16 2010-04-22 Jie Lian Method and apparatus for ectopic beat detection
CN102973264A (en) * 2012-12-07 2013-03-20 哈尔滨工业大学深圳研究生院 Electrocardiosignal preprocessing method based on morphological multiresolution decomposition
CN103405227A (en) * 2013-08-02 2013-11-27 重庆邮电大学 Double-layer morphological filter based electrocardiosignal preprocessing method
CN103705234A (en) * 2013-12-05 2014-04-09 深圳先进技术研究院 Detecting method and device for dynamic electrocardio signal data
CN104161510A (en) * 2014-08-27 2014-11-26 电子科技大学 Multistage lead electrocardiograph signal QRS waveform identification method
CN106419899A (en) * 2016-09-27 2017-02-22 深圳竹信科技有限公司 Method and device for quantum resonance spectrometer (QRS) wave group extraction

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100099995A1 (en) * 2008-10-16 2010-04-22 Jie Lian Method and apparatus for ectopic beat detection
CN101658425A (en) * 2009-09-11 2010-03-03 西安电子科技大学 Device and method for detecting attention focusing degree based on analysis of heart rate variability
CN102973264A (en) * 2012-12-07 2013-03-20 哈尔滨工业大学深圳研究生院 Electrocardiosignal preprocessing method based on morphological multiresolution decomposition
CN103405227A (en) * 2013-08-02 2013-11-27 重庆邮电大学 Double-layer morphological filter based electrocardiosignal preprocessing method
CN103705234A (en) * 2013-12-05 2014-04-09 深圳先进技术研究院 Detecting method and device for dynamic electrocardio signal data
CN104161510A (en) * 2014-08-27 2014-11-26 电子科技大学 Multistage lead electrocardiograph signal QRS waveform identification method
CN106419899A (en) * 2016-09-27 2017-02-22 深圳竹信科技有限公司 Method and device for quantum resonance spectrometer (QRS) wave group extraction

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TIAN, XUZI ET AL.: "Detection Algorithm of R Wave in Electrocardiogram Signal Based on Mathematical Morphology", MODERN ELECTRONIC TECHNIQUE, 31 December 2010 (2010-12-31), pages 114 - 115, ISSN: 1004-373X *

Also Published As

Publication number Publication date
CN106419899A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
EP3087915B1 (en) Method and system for noise cleaning of photoplethysmogram signals for estimating blood pressure
CN111091116B (en) Signal processing method and system for judging arrhythmia
AU2016230825B2 (en) Systems, apparatus and methods for sensing fetal activity
WO2018058930A1 (en) Method and device for extracting qrs complex
KR101983037B1 (en) An apparatus for detecting r-peak in electrocardiogram signal by using wavelet transform and modified shannon energy envelope and the method thereof
US10420527B2 (en) Determining a heart rate and a heart rate variability
CN107233093B (en) R wave detection method and device and electronic equipment
TWI519276B (en) Electrocardiography signal extraction method
WO2017084546A1 (en) Wearable device-based user interest information determination method, device and wearable device
Dessì et al. Identification of fetal QRS complexes in low density non-invasive biopotential recordings
Tan et al. EMD-based electrocardiogram delineation for a wearable low-power ECG monitoring device
CN106236041A (en) A kind of measure in real time and accurately heart rate and the algorithm of breathing rate and system
WO2022011480A1 (en) System and method for saliency detection in long-term ecg monitoring
Zhong et al. Maternal ECG removal using short time Fourier transform and convolutional auto-encoder
CN108784683B (en) ECG machine including filter for feature detection
Lin et al. Removal of power line interference in EEG signals with spike noise based on robust adaptive filter
JPWO2020003910A1 (en) Heart rate detector, heart rate detection method and program
TWI696191B (en) Algorithm of qrs detection capable of reducing noise effects
CN110477916B (en) Method and device for identifying motion starting time of surface electromyographic signal
Visinescu et al. Automatic detection of QRS complexes in ECG signals collected from patients after cardiac surgery
CN115868940B (en) IABP-based physiological signal quality assessment method and device
TWI667015B (en) A method and a system for capturing a segment of the least electrode contact noise from an electrocardiogram signal
CN110664384B (en) Method and system for extracting pulse wave feature points
Heo et al. PPG signal preprocessing and comparison study with learning-based model for stress detection
Patil et al. Cardiac Arrhythmia Detection through ECG Signals

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17854389

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 20.08.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17854389

Country of ref document: EP

Kind code of ref document: A1