WO2017148452A1 - Electrocardiography signal waveform feature point extraction method and device - Google Patents

Electrocardiography signal waveform feature point extraction method and device Download PDF

Info

Publication number
WO2017148452A1
WO2017148452A1 PCT/CN2017/079425 CN2017079425W WO2017148452A1 WO 2017148452 A1 WO2017148452 A1 WO 2017148452A1 CN 2017079425 W CN2017079425 W CN 2017079425W WO 2017148452 A1 WO2017148452 A1 WO 2017148452A1
Authority
WO
WIPO (PCT)
Prior art keywords
swdn
wave
search window
point
maximum value
Prior art date
Application number
PCT/CN2017/079425
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 WO2017148452A1 publication Critical patent/WO2017148452A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • 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/352Detecting R peaks, e.g. for synchronising diagnostic apparatus; Estimating R-R interval
    • 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/7235Details of waveform analysis
    • A61B5/7253Details of waveform analysis characterised by using transforms

Definitions

  • the invention relates to the technical field of medical technology, in particular to a method and a device for extracting characteristic points of an electrocardiographic signal waveform.
  • the traditional ECG signal feature point extraction method mainly adopts the linear filter method.
  • the processing speed of this method is fast and easy to implement, but the accuracy of the method is limited due to the frequency variability of the ECG signal.
  • the combination of filtering and differential operation methods is also used to identify QRS waves, but the operation of this method is relatively complicated.
  • the wavelet method is used to extract the characteristic points of ECG signals.
  • the methods commonly used in the prior art to process ECG signals are continuous wavelet transform (CWT) and discrete wavelet transform (DWT).
  • the CWT processing method generates redundancy, and the calculation amount of the CWT processing method is twice the calculation amount of the DWT processing method. Therefore, the DWT processing method is a common method in the prior art.
  • the DWT processing method in the JPEG image, the discrete cosine transform is to compress the image into 8*8 small blocks. This algorithm considers discarding the frequency information to achieve compression, because the higher the compression rate, the more the frequency information is discarded. In extreme cases, the JPEG image retains only the basic information of the appearance of the reflected image, and the fine image detail image is lost, resulting in loss of resolution of the DWT processing method when the scale becomes large, and there is no movement and no deformation.
  • the present invention provides a method for extracting characteristic points of an electrocardiographic signal waveform, which is a resolution loss in the process of ECG signal processing.
  • the invention also provides an electrocardiogram signal waveform feature point extracting device
  • the present invention provides the following technical solutions:
  • a method for extracting characteristic points of an electrocardiogram signal waveform comprising:
  • Step 3) The energy distribution, frequency analysis and cross-correlations average QRS wave reflects most of the details of the target layer coefficients swdn i, and the detail coefficients swdn j T wave and P wave reflected optimal target layer, which is swd
  • the detail coefficient, n i is the target layer in which the QRS wave is optimal
  • n j is the target layer in which the T wave and the P wave are optimal
  • i and j are the positions of the target layer
  • Step 4) determining a minimum value pair of swdn i and swdn j ;
  • Step 5) removing, by the first search window, a maximum value minimum value of swdn i and swdn j that exceeds a range of heights of the first search window, when removing a pole of swdn i that exceeds a height range of the first search window
  • the height T1 of the first search window is 0.25 rms (swdn i ⁇ 2)
  • the width of the first search window is d1
  • the d1 is greater than the waveform time from the maximum value to the adjacent minimum value in the original signal.
  • the width of the second search window is d2
  • the d2 is greater than the maximum value in the original signal to the adjacent minimum value Waveform time, where a ⁇ the detail coefficient in the second search window;
  • the second search window is located after the first search window is 150ms-200ms;
  • Step 6) Determine the position of the R wave point in swdn i and swdn j , and the position of the zero point of each group of the minimum value of the maximum value is the position of the R wave point:
  • Step 7) error detection and missed detection of swd i and swdn j in the R wave point position;
  • Step 8) determining the position of the Q wave point and the position of the S wave point in swdn i and swdn j according to the position of the R wave point;
  • Step 9) Determine the P wave and the T wave according to the position of the Q wave point and the position of the S wave point in swdn j .
  • the determining step of determining the minimum value of the maximum value in swdn i and swdn j in the step 4) is:
  • the slope is less than the image swdn i 0 designated as 1, the swdn i slope greater than or equal to the image 0 0 named, is the point where the minimum slope change point;
  • the image is smaller than the slope swdn j 0 designated as 1, the swdn j slope is greater than or equal to the image 0 0 named, which is the maximum value of the change in slope point.
  • the step 8) determining the position of the Q wave point and the position of the S wave point in swdn i and swdn j are:
  • the width is d4
  • the d4 is greater than the maximum value in the original signal.
  • the waveform time between adjacent minimum values, the third extreme point located in the third search frame after the R wave point position is the S wave point position.
  • the step 7) is specifically:
  • the step 9) is specifically:
  • a fourth search window of 100/512s is set forward to determine a first maximum value minimum pair in the fourth search window, the first maximum value 0 is the position of the P wave point, and a fifth search window of 100/512 s is set backward according to the S wave in swdn j to determine a second maximum value minimum pair in the fifth search window, the first The zero point of the second maximum value pair is the T wave point position.
  • An apparatus for extracting characteristic points of an electrocardiogram signal waveform comprising:
  • a first reading unit configured to read the original ECG signal after noise reduction
  • a second processing unit configured to determine, according to the energy distribution, the frequency analysis, and the average cross-correlation, the detail coefficient swdn i of the target layer in which the QRS wave is optimal, and the detail coefficient swdn j of the target layer in which the T wave and the P wave are optimal,
  • swd is the detail coefficient
  • n i is the target layer in which the QRS wave is optimal
  • n j is the target layer in which the T wave and the P wave are optimal
  • i and j are the positions of the target layer
  • a third processing unit configured to determine a maximum value minimum value pair of swdn i and swdn j ;
  • a fourth processing unit configured to remove, by the first search window, a maximum value minimum value of swdn i and swdn j that exceeds a range of the first search window height, when the swdn i is removed beyond the first search window height
  • the maximum value of the range is a minimum value
  • the height T1 of the first search window is 0.25 rms (swdn i ⁇ 2)
  • the maximum value of the swdn j exceeding the height range of the first search window is removed
  • the width of the first search window is d1
  • the d1 is greater than the maximum value from the maximum value in the original signal.
  • the width of the second search window is d2
  • the d2 is greater than the maximum value in the original signal to the adjacent minimum value Waveform time, where a ⁇ the detail coefficient in the second search window;
  • the second search window is located after the first search window is 150ms-200ms;
  • the fifth processing unit is configured to determine the position of the R wave point in the swdn i and the swdn j , and the position of the zero point of each pair of the minimum value of the maximum value is the position of the R wave point:
  • a sixth processing unit for error detection and miss detection of the R wave point positions in swdn i and swdn j ;
  • a seventh processing unit configured to determine a Q wave point position and an S wave point position in swdn i and swdn j according to the R wave point position;
  • the eighth processing unit is configured to determine the P wave and the T wave according to the Q wave point position and the S wave point position in swdn j .
  • the image is preferably, in the above-described extraction device ECG waveform characteristic points, the third processing unit for, when it is determined that the maximum value of swdn i, the slope is greater than 0 swdn i are designated as 1, the The image whose slope is less than or equal to 0 in swdn i is named 0, and the point where the slope changes is the maximum point;
  • the slope is less than the image swdn i 0 designated as 1, the swdn i slope greater than or equal to the image 0 0 named, is the point where the minimum slope change point;
  • the image whose slope is less than 0 in swdn j is named 1
  • the image whose slope is greater than or equal to 0 in swdn j is named 0, and the point where the slope changes is the maximum value. point.
  • the sixth processing unit is configured to detect a difference when the distance between the adjacent two R wave point positions is RR ⁇ 0.4mean, and remove the minimum value.
  • the position of the R wave point is a miss detection when the distance between adjacent two R wave points is RR>1.6mean, and a maximum absolute value is found between the positions of two adjacent R wave points that are missed.
  • the value is a minimum value pair.
  • the processing unit for determining a seventh swdn i Q wave in the third position in front of the extreme points of the R-wave swdn i point position position determining swdn j is the S-wave position swdn j preceding R-wave in the third extremum point position position;
  • the width is d4
  • the d4 is greater than the maximum value in the original signal.
  • the waveform time between adjacent minimum values, the third extreme point located in the third search frame after the R wave point position is the S wave point position.
  • the eighth processing unit is configured to determine a fourth search window of 100/512s forward by using a Q wave in swdn j as a reference. a first maximum value minimum pair in the four search window, wherein the zero point of the first maximum value pair is the P wave point position, and the S wave in the swdn j is used as a reference, and a 100/512 s is set backward.
  • the fifth search window determines a second maximum value minimum pair in the fifth search window, and the zero point of the second maximum value minimum pair is a T wave point position.
  • the method for extracting the characteristic points of the ECG signal waveform includes determining the position of the QRS wave point, the position of the P wave point, and the position of the T wave point.
  • Determination process of QRS wave position After reading the original ECG signal after noise reduction, the ECG signal is processed by stationary wavelet transform, the optimal wavelet base is selected and the ECG signal is layered, according to energy distribution, frequency analysis and average The cross-correlation determines that the QRS wave reflects the optimal target layer's detail coefficient swdn i , and the T and P waves represent the optimal target layer's detail coefficient swdn j , and then determines the maximum value of swdn i and swdn j , screened by the first and second search window of the search window is removed and swdn j swdn i do not meet the requirements for the maximum value minimum value, the R-wave is determined and the position swdn
  • the determination of the position of the QRS wave point, the position of the T wave point and the position of the P wave point are all determined by the stationary wavelet transform.
  • the stationary wavelet transform can effectively avoid the damage of the resolution when the scale becomes large, and the movement does not deform. , effectively solve the problems existing in the prior art.
  • FIG. 1 is a flowchart of a method for extracting feature points of an electrocardiogram signal according to an embodiment of the present invention.
  • the invention discloses a method for extracting characteristic points of an electrocardiographic signal waveform, which has a resolution loss in the process of ECG signal processing.
  • FIG. 1 is a flowchart of a method for extracting feature points of an electrocardiogram signal according to an embodiment of the present invention.
  • the invention discloses a method for extracting characteristic points of an electrocardiogram signal waveform, comprising:
  • Step 4) determining a minimum value pair of swdn i and swdn j ;
  • the width of the first search window is d1, and d1 is greater than the waveform time from the maximum value to the adjacent minimum value in the original signal;
  • the width of the second search window is d2, which is greater than the waveform time from the maximum value to the adjacent minimum value in the original signal, where a ⁇ the detail coefficient in the second search window;
  • the second search window is located after the first search window is 150ms-200ms;
  • Step 6) Determine the position of the R wave point in swdn i and swdn j , and the position of the zero point of each group of the minimum value of the maximum value is the position of the R wave point:
  • Step 8) determining the position of the Q wave point and the position of the S wave point in swdn i and swdn j according to the position of the R wave point;
  • Step 9) Determine the P wave and the T wave according to the position of the Q wave point and the position of the S wave point in swdn j .
  • the stationary wavelet transform is used to process the ECG signal instead of the process of processing the ECG signal by discrete wavelet transform in the prior art, which can effectively solve the problem that the existing ECG signal is processed by discrete wavelet transform without movement and deformation.
  • the problem of loss of resolution caused by the increase in size has improved the processing effect of the ECG signal to some extent.
  • the determination of the maxima minimum value pair needs to be performed at the corresponding layer. It should be noted that the maxima minimum value pair includes a maximum value and a minimum value.
  • the criterion for removing the minimum value of the minimum value exceeding the height range of the first search window in step 5) is to remove the maximum value when the absolute value greater than T1 or the minimum value is greater than one of the conditions of T1.
  • the value is a minimum value pair.
  • the first search window is used to remove the maximum value minimum value pair whose extreme value exceeds the threshold T1 range
  • the second search window is used to remove the negative maximum value minimum value pair, and cooperate with the second search window through the first search window. Screening can ensure the location of the determined R wave points is more accurate and improve the accuracy of ECG signal detection.
  • the height calculation formula of the first search window uses all the detail coefficients of the target layer, and the height calculation formula of the second search window uses the detail coefficient located in the second search window.
  • the determining step of determining the minimum value of the maximum value in swdn i and swdn j in step 4) is:
  • the slope is greater than the image swdn i 0 designated as 1, swdn i is less than or equal to the slope of the image 0 0 named, is the point where the change in slope maxima;
  • swdn j When it is determined that the minimum value swdn j, the slope is less than the image swdn j 0 designated as 1, swdn j greater than or equal to the slope of the image is named 0 0, which is the point of change of slope maxima.
  • Step 8) Determine the specific steps of the Q wave point position and the S wave point position in swdn i and swdn j as follows:
  • the third extreme point located in the third search box after the R wave position is the S wave point position.
  • Step 7) is specifically:
  • the accuracy of the determination of the position of the R wave point is further improved by the misdetection and the missed detection operation.
  • Step 9) is specifically:
  • a fourth search window of 100/512s is set forward to determine a first maximum value pair in the fourth search window, and the zero point of the first maximum value pair is P wave position, with the S wave in swdn j as the reference, a fifth search window of 100/512s is set backward to determine the second maximum value pair in the fifth search window, and the second maximum value is The 0 point is the T wave point position.
  • the fourth search window and the fifth search window have only the width and no height, and the maximum value minimum value pair here is not necessarily the maximum value minimum value pair, and the purpose is to find the nearest P wave point position and the distance S wave nearest to the Q wave.
  • the position of the T wave point What needs to be explained here is that the maximum value minimum pair includes a maximum value and a minimum value.
  • An apparatus for extracting characteristic points of an electrocardiogram signal waveform comprising:
  • a first reading unit configured to read the original ECG signal after noise reduction
  • a second processing unit configured to determine, according to the energy distribution, the frequency analysis, and the average cross-correlation, the detail coefficient swdn i of the target layer in which the QRS wave is optimal, and the detail coefficient swdn j of the target layer in which the T wave and the P wave are optimal,
  • swd is the detail coefficient
  • n i is the target layer in which the QRS wave is optimal
  • n j is the target layer in which the T wave and the P wave are optimal
  • i and j are the positions of the target layer
  • a third processing unit configured to determine a maximum value minimum value pair of swdn i and swdn j ;
  • a fourth processing unit configured to remove, by the first search window, a maximum value minimum value of swdn i and swdn j that exceeds a first search window height range, when removing swdn i exceeds a maximum of a first search window height range
  • the maximum value of the swdn j exceeding the height range of the first search window is removed, the first search window
  • the height T1 0.25 rms (swdn j ⁇ 2)
  • the width of the first search window is d1
  • d1 is greater than the waveform time from the maximum value to the adjacent minimum value in the original signal
  • the width of the second search window is d2, which is greater than the waveform time from the maximum value to the adjacent minimum value in the original signal, where a ⁇ the detail coefficient in the second search window;
  • the second search window is located after the first search window is 150ms-200ms;
  • the fifth processing unit is configured to determine the position of the R wave point in the swdn i and the swdn j , and the position of the zero point of each pair of the minimum value of the maximum value is the position of the R wave point:
  • a sixth processing unit for error detection and miss detection of the R wave point positions in swdn i and swdn j ;
  • a seventh processing unit configured to determine a Q wave point position and an S wave point position in swdn i and swdn j according to the R wave point position;
  • the eighth processing unit is configured to determine the P wave and the T wave according to the Q wave point position and the S wave point position in swdn j .
  • the stationary wavelet transform is used to process the ECG signal instead of the process of processing the ECG signal by discrete wavelet transform in the prior art, which can effectively solve the problem that the existing ECG signal is processed by discrete wavelet transform without movement and deformation.
  • the determination of the maxima minimum value pair needs to be performed at the corresponding layer. It should be noted that the maxima minimum value pair includes a maximum value and a minimum value.
  • the criterion for removing the maximum value minimum value pair exceeding the first search window height range in the fourth processing unit is to remove the set pole when the absolute value greater than T1 or the minimum value of the minimum value is greater than one of the conditions of T1. Large value minimum value pair.
  • the first search window is used to remove the maximum value minimum value pair whose extreme value exceeds the threshold T1 range
  • the second search window is used to remove the negative maximum value minimum value pair, and cooperate with the second search window through the first search window. Screening can ensure the location of the determined R wave points is more accurate and improve the accuracy of ECG signal detection.
  • the height calculation formula of the first search window uses all the detail coefficients of the target layer, and the height calculation formula of the second search window uses the detail coefficient located in the second search window.
  • the feature point extracting means ECG waveform provided by the invention the third processing unit for, when it is determined that the maximum value swdn i, the slope is greater than the image swdn i 0 1 named The image whose slope is less than or equal to 0 in swdn i is named 0, and the point where the slope changes is the maximum point;
  • swdn j When it is determined that the minimum value swdn j, the slope is less than the image swdn j 0 designated as 1, swdn j greater than or equal to the slope of the image is named 0 0, which is the point of change of slope maxima.
  • the sixth processing unit is configured to perform a misdetection when the distance between the two adjacent R wave point positions is RR ⁇ 0.4mean, and remove the R wave point position with a small extremum, when the position between the adjacent two R wave points is A miss detection is performed when the distance is RR>1.6mean, and a pair of maximum value minimum values having the largest absolute value is found between the positions of the adjacent two R wave points that are missed.
  • the accuracy of the determination of the position of the R wave point is further improved by the misdetection and the missed detection operation.
  • the third extreme point located in the third search box after the R wave position is the S wave point position.
  • the eighth processing unit is configured to set a first search window of 100/512s forward by using a Q wave in swdn j as a reference, and determine a first maximum value minimum pair in the fourth search window, the first maximum value minimum pair
  • the 0 point is the position of the P wave point
  • the S wave of swdn j is used as a reference
  • a fifth search window of 100/512s is set backward to determine the second maximum value pair in the fifth search window, the second largest The 0 point of the value minimum pair is the T wave point position.
  • the fourth search window and the fifth search window have only the width and no height, and the maximum value minimum value pair here is not necessarily the maximum value minimum value pair, and the purpose is to find the nearest P wave point position and the distance S wave nearest to the Q wave.
  • the position of the T wave point What needs to be explained here is that the maximum value minimum pair includes a maximum value and a minimum value.
  • the wavelet base db4 is selected, and its symmetry is good, and it has certain similarity with the P-QRS-T wave of the ECG signal.
  • the fifth layer swd5 is selected for QRS wave extraction
  • the sixth layer swd6 is used for T wave and P wave extraction.
  • QRS wave will be most obvious in the layer with the highest energy, and QRS can be obtained by MATLAB software.
  • the wave group is most obvious in swd5;
  • swd5 has the greatest correlation with QRS waves in the energy distribution, frequency domain and time domain.
  • swd6 has the highest correlation with T wave and P wave in energy distribution, frequency domain and time domain.
  • the maximum value of the minimum value is obtained by the slope of the image. Specifically, the image with the slope greater than 0 in swd5 is named 1, and the slope in swd5 is less than or equal to 0.
  • the image is named 0, and the point where the slope changes is the point where the slope changes from 1 to 0 or from 0 to 1 is the maximum point; the image with the slope less than 0 in swd5 is named 1, and the slope in swd5 is greater than or equal to
  • the image of 0 is named 0, and the point at which the slope changes is the point at which the slope changes from 1 to 0 or from 0 to 1 is a minimum point.
  • the image with a slope greater than 0 in swd6 is named 1.
  • the image with a slope less than or equal to 0 in swd6 is named 0.
  • the slope change point is the slope from 1 to 0 or The point where 0 becomes 1 is the maximum point; the image with the slope less than 0 in swd6 is named 1, and the image with the slope greater than or equal to 0 in swd6 is named 0, and the point where the slope changes is the slope changes from 1 to 0 or The point from 0 to 1 is the minimum point.
  • a part of the maximum value minimum value of swd5 and swd5 is removed by the first search window, and the removal principle is that the maximum value is larger than the threshold T1, and the absolute value of the minimum value is larger than T1, and the maximum value is extremely small. Value pairs can be removed as long as one of the conditions is met.
  • the second search window appears after the first search window is 150ms-200ms.
  • the second search window appears after the first search window 200ms, and the width of the first search window and the second search window is 40mm.
  • the maximum value of swd5 and swd5 is determined.
  • the maximum value and the minimum value of each group are 0 points, that is, the R wave position of the corresponding layer.
  • the principle of detection is that when the distance between adjacent two R wave points is RR ⁇ 0.4mean, the error is detected, and the position of the R wave point with a small extremum is removed, and the distance between the positions of two adjacent R wave points is RR. >1.6mean is the missed detection, and a pair of absolute maximum value pairs with the largest absolute value is found between the positions of the adjacent two R wave points that are missed.
  • the missed detection and the misdetection of the R-wave point position are not limited to the above methods, and may be other implementations that can be realized by those skilled in the art, and are not specifically limited herein. Where mean is the average of the RR.
  • the third of the R wave front The position of the extreme point is the position of the Q wave point; the determination of the position of the S wave point needs to be obtained through the third search window, and the third extreme point in the third search window is the position of the S wave point.
  • the third extreme point is either a maximum point or a minimum point.
  • the determination of the QRS wave on swd6 is not a true QRS wave, and the position of the QRS wave detected by the layer is used to locate the T wave and the P wave position.
  • the swd6 hung T wave point position and the P wave point position are determined by the fourth search window and the fifth search window, and only one set of the maximum value minimum pair exists in the sliding range of the fourth search window and the fifth search window, wherein each group
  • the maximum value minimum pair includes a maximum value and a minimum value
  • the 0 point between the adjacent maximum value and the minimum value in the fourth search window is the T wave point position
  • the adjacent maximum value and the minimum value in the fifth search window The 0 point between the values is the P wave point position.
  • the ECG waveform waveform feature point extraction process ends.
  • the widths of the first search window, the second search window and the third search window are 40 ms, which can meet the requirements.
  • the second search window is located 200 ms after the first search window.

Landscapes

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

Abstract

An electrocardiography signal waveform feature point extraction method, comprising QRS wave point, P wave point and T wave point position determination: processing an electrocardiography signal via a smooth wavelet transform (S2), determining a QRS wave embodiment optimal target layer and a T and P wave embodiment optimal target layer (S3), finding maximum value and minimum value pairs of the corresponding target layers (S4), removing maximum value and minimum value pairs which do not meet requirements (S5), performing error detection and miss detection on an R wave point position, obtaining a final R wave point position (S7), determining Q wave point and S wave point positions (S8), and determining P wave point and T wave point positions (S9). The QRS wave point, T wave point and P wave point position determination all use the smooth wavelet transform, and compared to a discrete wavelet transform, the smooth wavelet transform effectively avoids resolution damage during scale increasing without movement deformation, thereby effectively solving the problem in the prior art.

Description

一种心电信号波形特征点的提取方法及装置Method and device for extracting characteristic points of ECG signal waveform 技术领域Technical field
本发明涉及医疗技术领域,特别涉及一种心电信号波形特征点的提取方法及装置。The invention relates to the technical field of medical technology, in particular to a method and a device for extracting characteristic points of an electrocardiographic signal waveform.
背景技术Background technique
现有技术中用于监测人体健康的可穿戴式设备有很多种,一般是通过传感器采集人体的生理信息数据,然后再对这些生理数据进行分析,达到检测人体状态的目的。其中,心电信号的处理过程中如何准确的提取心电信号中的特征点(PQRST)对实现状态的自动判定尤为重要,其中P波代表左右新房的波动、QRS波代表心室的收缩,T波代表心室复极。There are many kinds of wearable devices for monitoring human health in the prior art, generally collecting physiological information data of the human body through sensors, and then analyzing these physiological data to achieve the purpose of detecting the human body state. Among them, how to accurately extract the feature points (PQRST) in the ECG signal during the processing of ECG signals is especially important for the automatic determination of the realization state, where P wave represents the fluctuation of the left and right new house, QRS wave represents the contraction of the ventricle, T wave Represents ventricular repolarization.
传统的心电信号特征点提取方法主要采用线性滤波器法,该法的处理速度快,且比较容易实现,但是由于心电信号的频率变异性使得该方法在准确性方面比较有限;现有技术中也有将滤波和差分运算方法结合对QRS波进行识别,但是该法的运算过程相对复杂。随着小波理论的发展,运用小波方法对心电信号特征点进行提取成为了主流,现有技术中常用的小波变换处理心电信号的方法有连续小波变换(CWT)和离散小波变换(DWT),其中CWT处理方法会产生冗余,而且CWT处理方法的计算量是DWT处理方法的计算量的两倍,因此DWT处理方法为现有技术中的常用方法。The traditional ECG signal feature point extraction method mainly adopts the linear filter method. The processing speed of this method is fast and easy to implement, but the accuracy of the method is limited due to the frequency variability of the ECG signal. The combination of filtering and differential operation methods is also used to identify QRS waves, but the operation of this method is relatively complicated. With the development of wavelet theory, the wavelet method is used to extract the characteristic points of ECG signals. The methods commonly used in the prior art to process ECG signals are continuous wavelet transform (CWT) and discrete wavelet transform (DWT). The CWT processing method generates redundancy, and the calculation amount of the CWT processing method is twice the calculation amount of the DWT processing method. Therefore, the DWT processing method is a common method in the prior art.
DWT处理方法,在JPEG图像中离散余弦变换是将图像压缩为8*8的小块,这种算法考丢弃频率信息实现压缩,因为压缩率越高,频率信息被丢弃的也就越多,在极端情况下,JPEG图像只保留了反应图像外貌的基本信息,精细的图像细节图像都损失了,导致当尺度变大时DWT处理方法分辨率有损失,且没有移动不变形。The DWT processing method, in the JPEG image, the discrete cosine transform is to compress the image into 8*8 small blocks. This algorithm considers discarding the frequency information to achieve compression, because the higher the compression rate, the more the frequency information is discarded. In extreme cases, the JPEG image retains only the basic information of the appearance of the reflected image, and the fine image detail image is lost, resulting in loss of resolution of the DWT processing method when the scale becomes large, and there is no movement and no deformation.
因此,如何避免心电信号处理过程中的分辨率损失,成为本领域技术人员亟待解决的技术问题。 Therefore, how to avoid the loss of resolution in the process of ECG signal processing has become a technical problem to be solved by those skilled in the art.
发明内容Summary of the invention
有鉴于此,本发明提供了一种心电信号波形特征点的提取方法,以心电信号处理过程中的分辨率损失。本发明还提供了一种心电信号波形特征点提取装置In view of this, the present invention provides a method for extracting characteristic points of an electrocardiographic signal waveform, which is a resolution loss in the process of ECG signal processing. The invention also provides an electrocardiogram signal waveform feature point extracting device
为实现上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:
一种心电信号波形特征点的提取方法,包括:A method for extracting characteristic points of an electrocardiogram signal waveform, comprising:
步骤1):读取降噪后的原始心电信号;Step 1): reading the original ECG signal after noise reduction;
步骤2):通过平稳小波变换处理所述步骤1)中的心电信号,选取最优小波基,并根据公式N=2n对所述心电信号根据进行分层,其中,N为选取的信号点总点数,n为总层数,n为正整数;Step 2): processing the ECG signal in the step 1) by the stationary wavelet transform, selecting an optimal wavelet base, and layering the ECG signal according to the formula N=2 n , wherein N is selected The total number of signal points, n is the total number of layers, and n is a positive integer;
步骤3):根据能量分布、频率分析和平均互相关确定QRS波体现最优的目标层的细节系数swdni,以及T波和P波体现最优的目标层的细节系数swdnj,其中swd为细节系数,ni为QRS波体现最优的目标层,nj为T波和P波体现最优的目标层,i和j为目标层的位置;Step 3): The energy distribution, frequency analysis and cross-correlations average QRS wave reflects most of the details of the target layer coefficients swdn i, and the detail coefficients swdn j T wave and P wave reflected optimal target layer, which is swd The detail coefficient, n i is the target layer in which the QRS wave is optimal, n j is the target layer in which the T wave and the P wave are optimal, and i and j are the positions of the target layer;
步骤4):确定swdni和swdnj的极大值极小值对;Step 4): determining a minimum value pair of swdn i and swdn j ;
步骤5):通过第一搜索窗去除swdni和swdnj的超出所述第一搜索窗高度范围的极大值极小值对,当去除swdni的超出所述第一搜索窗高度范围的极大值极小值对时,第一搜索窗的高度T1=0.25rms(swdni^2),当去除swdnj的超出所述第一搜索窗高度范围的极大值极小值对,第一搜索窗的高度T1=0.25rms(swdnj^2),所述第一搜索窗的宽度为d1,所述d1大于所述原始信号中从极大值到相邻极小值之间的波形时间;Step 5): removing, by the first search window, a maximum value minimum value of swdn i and swdn j that exceeds a range of heights of the first search window, when removing a pole of swdn i that exceeds a height range of the first search window When the large value is small, the height T1 of the first search window is 0.25 rms (swdn i ^2), and when the maximum value of the swdn j exceeding the height range of the first search window is removed, the first The height of the search window is T1=0.25 rms (swdn j ^2), the width of the first search window is d1, and the d1 is greater than the waveform time from the maximum value to the adjacent minimum value in the original signal. ;
通过第二搜索窗去除swdni和swdnj的超出第二搜索窗高度范围的负的极大值极小值对,当去除swdni的超出第二搜索窗高度范围的负的极大值极小值对时,第二搜索窗的高度T2=0.4rms(swdni(a)^2),当去除swdnj的超出第二搜索窗高度范围的负的极大值极小值对时,第二搜索窗的高度T2=0.4rms(swdnj(a)^2),所述第二搜索窗的宽度为d2,所述d2大于所述原始信号中从极大值到相邻极小值之间的波形时间,其中a∈第二搜索窗内的细节系数; Removing a negative maxima minimum value of swdn i and swdn j beyond the second search window height range by the second search window, when the swdn i is removed, the negative maximum value exceeding the second search window height range is extremely small When the value is correct, the height of the second search window is T2=0.4 rms (swdn i (a)^2), when the negative maximum value of swdn j exceeding the height range of the second search window is removed, the second The height of the search window is T2=0.4 rms (swdn j (a)^2), the width of the second search window is d2, and the d2 is greater than the maximum value in the original signal to the adjacent minimum value Waveform time, where a∈ the detail coefficient in the second search window;
所述第二搜索窗位于所述第一搜索窗150ms-200ms后;The second search window is located after the first search window is 150ms-200ms;
步骤6):确定swdni和swdnj中R波点位置,每组极大值极小值对的过0点位置即为R波点位置:Step 6): Determine the position of the R wave point in swdn i and swdn j , and the position of the zero point of each group of the minimum value of the maximum value is the position of the R wave point:
步骤7):错检和漏检swdni和swdnj中R波点位置;Step 7): error detection and missed detection of swd i and swdn j in the R wave point position;
步骤8):根据所述R波点位置确定swdni和swdnj中Q波点位置和S波点位置;Step 8): determining the position of the Q wave point and the position of the S wave point in swdn i and swdn j according to the position of the R wave point;
步骤9):根据swdnj中Q波点位置和S波点位置确定P波和T波。Step 9): Determine the P wave and the T wave according to the position of the Q wave point and the position of the S wave point in swdn j .
优选的,在上述心电信号波形特征点的提取方法中,所述步骤4)中确定swdni和swdnj中的极大值极小值对的确定步骤为:Preferably, in the method for extracting characteristic points of the electrocardiographic signal waveform, the determining step of determining the minimum value of the maximum value in swdn i and swdn j in the step 4) is:
当确定swdni的极大值时,所述swdni中斜率大于0的图像命名为1,所述swdni中斜率小于或者等于0的图像命名为0,其中斜率变化的点即为极大值点;When determining the maximum value point swdn i of the image is greater than the slope swdn i 0 is designated as 1, the slope of swdn i less than or equal named 0 0 image, wherein the change in slope is the maximum value point;
当确定swdni的极小值时,所述swdni中斜率小于0的图像命名为1,所述swdni中斜率大于或者等于0的图像命名为0,其中斜率变化的点即为极小值点;When it is determined that the minimum value of swdn i, the slope is less than the image swdn i 0 designated as 1, the swdn i slope greater than or equal to the image 0 0 named, is the point where the minimum slope change point;
当确定swdnj的极大值时,所述swdnj中斜率大于0的图像命名为1,所述swdnj中斜率小于或者等于0的图像命名为0,其中斜率变化的点即为极大值点;When determining the maximum value of swdn j, is greater than the slope of the image swdn j 0 designated as 1, the slope is less than or equal to the swdnj image named 0 0, where the slope change point is the maxima ;
当确定swdnj的极小值时,所述swdnj中斜率小于0的图像命名为1,所述swdnj中斜率大于或者等于0的图像命名为0,其中斜率变化的点即为极大值点。When the minimum value point swdn j is determined, the image is smaller than the slope swdn j 0 designated as 1, the swdn j slope is greater than or equal to the image 0 0 named, which is the maximum value of the change in slope point.
优选的,在上述心电信号波形特征点的提取方法中,所述步骤8)确定swdni和swdnj中Q波点位置和S波点位置的具体步骤为:Preferably, in the method for extracting characteristic points of the electrocardiographic signal waveform, the step 8) determining the position of the Q wave point and the position of the S wave point in swdn i and swdn j are:
确定swdni中Q波点位置为swdni中所述R波点位置前面的第三个极值点位置,确定swdnj中S波点位置为swdnj中所述R波点位置前面的第三个极值点位置;Q swdn i determined in the preceding wave position of the R-wave swdn i point position in the third position of the extreme points determined swdn j S wave in the foregoing for the position of the R-wave swdn j in a third position Extreme point position;
利用第五搜索窗确定swdni和swdnj中所述S波点的位置,当确定swdni中所述S波点的位置时,第三搜索窗的高度T4=0.9rms(swdni^2),当确定 swdni中所述S波点的位置时,第三搜索窗的高度T4=0.9rms(swdnj^2),宽度为d4,所述d4大于所述原始信号中从极大值到相邻极小值之间的波形时间,所述R波点位置后面的位于所述第三搜索框内的第三个极值点即为所述S波点位置。Using the fifth search window to determine the position of the S wave point in swdn i and swdn j , when determining the position of the S wave point in swdn i , the height of the third search window is T4=0.9rms (swdn i ^2) When determining the position of the S wave point in swdn i , the height of the third search window is T4=0.9 rms (swdn j ^2), and the width is d4, and the d4 is greater than the maximum value in the original signal. The waveform time between adjacent minimum values, the third extreme point located in the third search frame after the R wave point position is the S wave point position.
优选的,在上述心电信号波形特征点的提取方法中,所述步骤7)具体为:Preferably, in the method for extracting the feature points of the electrocardiographic signal waveform, the step 7) is specifically:
当相邻两个R波点位置之间的距离RR<0.4mean时为错检,去除极值小的R波点位置,当相邻两个R波点位置之间的距离RR>1.6mean时为漏检,在漏检的相邻两个R波点位置间找到一对绝对值最大的极大值极小值对。When the distance between adjacent two R-wave point positions RR<0.4mean is a misdetection, the position of the R-wave point with a small extremum is removed, and when the distance between adjacent two R-wave points is RR>1.6mean For the missed detection, a pair of maximum value minimum value pairs with the largest absolute value is found between the positions of the adjacent two R wave points that are missed.
优选的,在上述心电信号波形特征点的提取方法中,所述步骤9)具体为:Preferably, in the method for extracting the feature points of the electrocardiographic signal waveform, the step 9) is specifically:
以swdnj中的Q波为基准,向前设置一个100/512s的第四搜索窗确定所述第四搜索窗内的第一最大值最小值对,所述第一最大值最小值对的过0点即为P波点位置,以swdnj中S波为基准,向后设置一个100/512s的第五搜索窗确定所述第五搜索窗内的第二最大值最小值对,所述第二最大值最小值对的过0点即为T波点位置。Taking a Q wave in swdn j as a reference, a fourth search window of 100/512s is set forward to determine a first maximum value minimum pair in the fourth search window, the first maximum value 0 is the position of the P wave point, and a fifth search window of 100/512 s is set backward according to the S wave in swdn j to determine a second maximum value minimum pair in the fifth search window, the first The zero point of the second maximum value pair is the T wave point position.
一种心电信号波形特征点的提取装置,包括:An apparatus for extracting characteristic points of an electrocardiogram signal waveform, comprising:
第一读取单元,用于读取降噪后的原始心电信号;a first reading unit, configured to read the original ECG signal after noise reduction;
第一处理单元,用于通过平稳小波变换处理所述步骤1)中的心电信号,选取最优小波基,并根据公式N=2n对所述心电信号根据进行分层,其中,N为选取的信号点总点数,n为总层数,n为正整数;a first processing unit, configured to process the ECG signal in the step 1) by the stationary wavelet transform, select an optimal wavelet base, and layer the ECG signal according to the formula N=2 n , wherein, N For the total number of selected signal points, n is the total number of layers, and n is a positive integer;
第二处理单元,用于根据能量分布、频率分析和平均互相关确定QRS波体现最优的目标层的细节系数swdni,以及T波和P波体现最优的目标层的细节系数swdnj,其中swd为细节系数,ni为QRS波体现最优的目标层,nj为T波和P波体现最优的目标层,i和j为目标层的位置;a second processing unit, configured to determine, according to the energy distribution, the frequency analysis, and the average cross-correlation, the detail coefficient swdn i of the target layer in which the QRS wave is optimal, and the detail coefficient swdn j of the target layer in which the T wave and the P wave are optimal, Where swd is the detail coefficient, n i is the target layer in which the QRS wave is optimal, n j is the target layer in which the T wave and the P wave are optimal, and i and j are the positions of the target layer;
第三处理单元,用于确定swdni和swdnj的极大值极小值对;a third processing unit, configured to determine a maximum value minimum value pair of swdn i and swdn j ;
第四处理单元,用于通过第一搜索窗去除swdni和swdnj的超出所述第一搜索窗高度范围的极大值极小值对,当去除swdni的超出所述第一搜索窗高度范围的极大值极小值对时,第一搜索窗的高度T1=0.25rms(swdni^2),当去除swdnj的超出所述第一搜索窗高度范围的极大值极小值对,第一搜索窗的高 度T1=0.25rms(swdnj^2),所述第一搜索窗的宽度为d1,所述d1大于所述原始信号中从极大值到相邻极小值之间的波形时间;a fourth processing unit, configured to remove, by the first search window, a maximum value minimum value of swdn i and swdn j that exceeds a range of the first search window height, when the swdn i is removed beyond the first search window height When the maximum value of the range is a minimum value, the height T1 of the first search window is 0.25 rms (swdn i ^2), when the maximum value of the swdn j exceeding the height range of the first search window is removed The height of the first search window is T1=0.25 rms (swdn j ^2), the width of the first search window is d1, and the d1 is greater than the maximum value from the maximum value in the original signal. Waveform time
通过第二搜索窗去除swdni和swdnj的超出第二搜索窗高度范围的负的极大值极小值对,当去除swdni的超出第二搜索窗高度范围的负的极大值极小值对时,第二搜索窗的高度T2=0.4rms(swdni(a)^2),当去除swdnj的超出第二搜索窗高度范围的负的极大值极小值对时,第二搜索窗的高度T2=0.4rms(swdnj(a)^2),所述第二搜索窗的宽度为d2,所述d2大于所述原始信号中从极大值到相邻极小值之间的波形时间,其中a∈第二搜索窗内的细节系数;Removing a negative maxima minimum value of swdn i and swdn j beyond the second search window height range by the second search window, when the swdn i is removed, the negative maximum value exceeding the second search window height range is extremely small When the value is correct, the height of the second search window is T2=0.4 rms (swdn i (a)^2), when the negative maximum value of swdn j exceeding the height range of the second search window is removed, the second The height of the search window is T2=0.4 rms (swdn j (a)^2), the width of the second search window is d2, and the d2 is greater than the maximum value in the original signal to the adjacent minimum value Waveform time, where a∈ the detail coefficient in the second search window;
所述第二搜索窗位于所述第一搜索窗150ms-200ms后;The second search window is located after the first search window is 150ms-200ms;
第五处理单元,用于确定swdni和swdnj中R波点位置,每组极大值极小值对的过0点位置即为R波点位置:The fifth processing unit is configured to determine the position of the R wave point in the swdn i and the swdn j , and the position of the zero point of each pair of the minimum value of the maximum value is the position of the R wave point:
第六处理单元,用于错检和漏检swdni和swdnj中R波点位置;a sixth processing unit for error detection and miss detection of the R wave point positions in swdn i and swdn j ;
第七处理单元,用于根据所述R波点位置确定swdni和swdnj中Q波点位置和S波点位置;a seventh processing unit, configured to determine a Q wave point position and an S wave point position in swdn i and swdn j according to the R wave point position;
第八处理单元,用于根据swdnj中Q波点位置和S波点位置确定P波和T波。The eighth processing unit is configured to determine the P wave and the T wave according to the Q wave point position and the S wave point position in swdn j .
优选的,在上述心电信号波形特征点的提取装置中,所述第三处理单元用于当确定swdni的极大值时,所述swdni中斜率大于0的图像命名为1,所述swdni中斜率小于或者等于0的图像命名为0,其中斜率变化的点即为极大值点;The image is preferably, in the above-described extraction device ECG waveform characteristic points, the third processing unit for, when it is determined that the maximum value of swdn i, the slope is greater than 0 swdn i are designated as 1, the The image whose slope is less than or equal to 0 in swdn i is named 0, and the point where the slope changes is the maximum point;
当确定swdni的极小值时,所述swdni中斜率小于0的图像命名为1,所述swdni中斜率大于或者等于0的图像命名为0,其中斜率变化的点即为极小值点;When it is determined that the minimum value of swdn i, the slope is less than the image swdn i 0 designated as 1, the swdn i slope greater than or equal to the image 0 0 named, is the point where the minimum slope change point;
当确定swdnj的极大值时,所述swdnj中斜率大于0的图像命名为1,所述swdnj中斜率小于或者等于0的图像命名为0,其中斜率变化的点即为极大值点;When determining the maximum value of swdn j, is greater than the slope of the image swdn j 0 designated as 1, the slope is less than or equal to the swdnj image named 0 0, where the slope change point is the maxima ;
当确定swdnj的极小值时,所述swdnj中斜率小于0的图像命名为1,所 述swdnj中斜率大于或者等于0的图像命名为0,其中斜率变化的点即为极大值点。When the minimum value of swdn j is determined, the image whose slope is less than 0 in swdn j is named 1, and the image whose slope is greater than or equal to 0 in swdn j is named 0, and the point where the slope changes is the maximum value. point.
优选的,在上述心电信号波形特征点的提取装置中,所述第六处理单元用于当相邻两个R波点位置之间的距离RR<0.4mean时为错检,去除极值小的R波点位置,当相邻两个R波点位置之间的距离RR>1.6mean时为漏检,在漏检的相邻两个R波点位置间找到一对绝对值最大的极大值极小值对。Preferably, in the extracting device for the characteristic points of the electrocardiographic signal waveform, the sixth processing unit is configured to detect a difference when the distance between the adjacent two R wave point positions is RR<0.4mean, and remove the minimum value. The position of the R wave point is a miss detection when the distance between adjacent two R wave points is RR>1.6mean, and a maximum absolute value is found between the positions of two adjacent R wave points that are missed. The value is a minimum value pair.
优选的,在上述心电信号波形特征点的提取装置中,所述第七处理单元用于确定swdni中Q波点位置为swdni中所述R波点位置前面的第三个极值点位置,确定swdnj中S波点位置为swdnj中所述R波点位置前面的第三个极值点位置;Preferably, in the device of the ECG waveform extracting feature points, the processing unit for determining a seventh swdn i Q wave in the third position in front of the extreme points of the R-wave swdn i point position position determining swdn j is the S-wave position swdn j preceding R-wave in the third extremum point position position;
利用第五搜索窗确定swdni和swdnj中所述S波点的位置,当确定swdni中所述S波点的位置时,第三搜索窗的高度T4=0.9rms(swdni^2),当确定swdni中所述S波点的位置时,第三搜索窗的高度T4=0.9rms(swdnj^2),宽度为d4,所述d4大于所述原始信号中从极大值到相邻极小值之间的波形时间,所述R波点位置后面的位于所述第三搜索框内的第三个极值点即为所述S波点位置。Using the fifth search window to determine the position of the S wave point in swdn i and swdn j , when determining the position of the S wave point in swdn i , the height of the third search window is T4=0.9rms (swdn i ^2) When determining the position of the S wave point in swdn i , the height of the third search window is T4=0.9 rms (swdn j ^2), and the width is d4, and the d4 is greater than the maximum value in the original signal. The waveform time between adjacent minimum values, the third extreme point located in the third search frame after the R wave point position is the S wave point position.
优选的,在上述心电信号波形特征点的提取装置中,所述第八处理单元用于以swdnj中的Q波为基准,向前设置一个100/512s的第四搜索窗确定所述第四搜索窗内的第一最大值最小值对,所述第一最大值最小值对的过0点即为P波点位置,以swdnj中S波为基准,向后设置一个100/512s的第五搜索窗确定所述第五搜索窗内的第二最大值最小值对,所述第二最大值最小值对的过0点即为T波点位置。Preferably, in the extracting device of the electrocardiographic signal waveform feature point, the eighth processing unit is configured to determine a fourth search window of 100/512s forward by using a Q wave in swdn j as a reference. a first maximum value minimum pair in the four search window, wherein the zero point of the first maximum value pair is the P wave point position, and the S wave in the swdn j is used as a reference, and a 100/512 s is set backward. The fifth search window determines a second maximum value minimum pair in the fifth search window, and the zero point of the second maximum value minimum pair is a T wave point position.
从上述技术方案可以看出,本发明提供的心电信号波形特征点的提取方法包括QRS波点位置、P波点位置和T波点位置的确定。QRS波点位置的确定过程:读取降噪后的原始心电信号后,通过平稳小波变换处理心电信号,选取最优小波基并对心电信号分层,根据能量分布、频率分析和平均互相关确定QRS波体现最优的目标层的细节系数swdni,以及T波和P波体现最优的目标层的细节系数swdnj,然后确定swdni和swdnj的极大值极小值对,通 过第一搜索窗和第二搜索窗筛选去除swdni和swdnj中不符合要求的极大值极小值对,确定swdni和swdnj的R波点位置,对swdni和swdnj的R波点位置进行错检和漏检操作,确定最终的R波点位置,根据R波点位置确定swdni和swdnj的Q波点和S波点的位置,从而实现swdni和swdnj的了QRS波点位置的确定。swdnj的P波点位置和T波点位置的确定:通过swdnj的了QRS波点位置的确定P波点位置和T波点位置。上述QRS波点位置的确定、T波点位置及P波点位置的确定均用到了平稳小波变换,平稳小波变换相对于离散小波变换能够有效避免尺度变大时分辨率的损伤,同时移动不变形,有效解决了现有技术中存在的问题。It can be seen from the above technical solution that the method for extracting the characteristic points of the ECG signal waveform provided by the present invention includes determining the position of the QRS wave point, the position of the P wave point, and the position of the T wave point. Determination process of QRS wave position: After reading the original ECG signal after noise reduction, the ECG signal is processed by stationary wavelet transform, the optimal wavelet base is selected and the ECG signal is layered, according to energy distribution, frequency analysis and average The cross-correlation determines that the QRS wave reflects the optimal target layer's detail coefficient swdn i , and the T and P waves represent the optimal target layer's detail coefficient swdn j , and then determines the maximum value of swdn i and swdn j , screened by the first and second search window of the search window is removed and swdn j swdn i do not meet the requirements for the maximum value minimum value, the R-wave is determined and the position swdn i swdn j, and for the swdn i and swdn j The position of the R wave point is misdetected and missed, the final R wave position is determined, and the positions of the Q wave point and the S wave point of swdn i and swdn j are determined according to the R wave position, thereby realizing swdn i and swdn j . The determination of the position of the QRS wave point. swdn j and P-wave position T wave point position determination: swdn j by determining the P wave of the QRS o'clock position and T waves position. The determination of the position of the QRS wave point, the position of the T wave point and the position of the P wave point are all determined by the stationary wavelet transform. The stationary wavelet transform can effectively avoid the damage of the resolution when the scale becomes large, and the movement does not deform. , effectively solve the problems existing in the prior art.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明实施例提供的心电信号波形特征点的提取方法的流程图。FIG. 1 is a flowchart of a method for extracting feature points of an electrocardiogram signal according to an embodiment of the present invention.
具体实施方式detailed description
本发明公开了一种心电信号波形特征点的提取方法,以心电信号处理过程中的分辨率损失。The invention discloses a method for extracting characteristic points of an electrocardiographic signal waveform, which has a resolution loss in the process of ECG signal processing.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参阅图1,图1为本发明实施例提供的心电信号波形特征点的提取方法的流程图。Please refer to FIG. 1. FIG. 1 is a flowchart of a method for extracting feature points of an electrocardiogram signal according to an embodiment of the present invention.
本发明公开了一种心电信号波形特征点的提取方法,包括:The invention discloses a method for extracting characteristic points of an electrocardiogram signal waveform, comprising:
步骤1):读取降噪后的原始心电信号; Step 1): reading the original ECG signal after noise reduction;
步骤2):通过平稳小波变换处理步骤1)中的心电信号,选取最优小波基,并根据公式N=2n对心电信号根据进行分层,其中,N为选取的信号点总点数,n为总层数,n为正整数;Step 2): processing the ECG signal in step 1) by stationary wavelet transform, selecting an optimal wavelet base, and layering the ECG signal according to the formula N=2 n , where N is the total number of selected signal points , n is the total number of layers, and n is a positive integer;
步骤3):根据能量分布、频率分析和平均互相关确定QRS波体现最优的目标层的细节系数swdni,以及T波和P波体现最优的目标层的细节系数swdnj,其中swd为细节系数,ni为QRS波体现最优的目标层,nj为T波和P波体现最优的目标层,i和j为目标层的位置,假设i=5,相应的目标层为第5层,假设j=6,相应的目标层为第7层,i和j代表的是层的位置,不是层的总数;Step 3): determining, according to the energy distribution, the frequency analysis and the average cross-correlation, the detail coefficient swdn i of the target layer in which the QRS wave is optimal, and the detail coefficient swdn j of the target layer in which the T wave and the P wave are optimal, wherein swd is The detail coefficient, n i is the target layer in which the QRS wave is optimal, n j is the target layer in which the T wave and the P wave are optimal, and i and j are the positions of the target layer, assuming i=5, and the corresponding target layer is the first 5 layers, assuming j=6, the corresponding target layer is the 7th layer, i and j represent the position of the layer, not the total number of layers;
步骤4):确定swdni和swdnj的极大值极小值对;Step 4): determining a minimum value pair of swdn i and swdn j ;
步骤5):通过第一搜索窗去除swdni和swdnj的超出第一搜索窗高度范围的极大值极小值对,当去除swdni的超出第一搜索窗高度范围的极大值极小值对时,第一搜索窗的高度T1=0.25rms(swdni^2),当去除swdnj的超出第一搜索窗高度范围的极大值极小值对,第一搜索窗的高度T1=0.25rms(swdnj^2),第一搜索窗的宽度为d1,d1大于原始信号中从极大值到相邻极小值之间的波形时间;Step 5): removing the maximum value of the swdn i and swdn j beyond the first search window height range by using the first search window, and removing the maximum value of the swdn i beyond the first search window height range When the value is correct, the height of the first search window is T1=0.25 rms (swdn i ^2). When the maximum value of the swdn j exceeding the maximum value of the first search window is removed, the height of the first search window is T1= 0.25 rms (swdn j ^ 2), the width of the first search window is d1, and d1 is greater than the waveform time from the maximum value to the adjacent minimum value in the original signal;
通过第二搜索窗去除swdni和swdnj的超出第二搜索窗高度范围的负的极大值极小值对,当去除swdni的超出第二搜索窗高度范围的负的极大值极小值对时,第二搜索窗的高度T2=0.4rms(swdni(a)^2),当去除swdnj的超出第二搜索窗高度范围的负的极大值极小值对时,第二搜索窗的高度T2=0.4rms(swdnj(a)^2),第二搜索窗的宽度为d2,d2大于原始信号中从极大值到相邻极小值之间的波形时间,其中a∈第二搜索窗内的细节系数;Removing a negative maxima minimum value of swdn i and swdn j beyond the second search window height range by the second search window, when the swdn i is removed, the negative maximum value exceeding the second search window height range is extremely small When the value is correct, the height of the second search window is T2=0.4 rms (swdn i (a)^2), when the negative maximum value of swdn j exceeding the height range of the second search window is removed, the second The height of the search window is T2=0.4rms (swdn j (a)^2), and the width of the second search window is d2, which is greater than the waveform time from the maximum value to the adjacent minimum value in the original signal, where a细节 the detail coefficient in the second search window;
第二搜索窗位于第一搜索窗150ms-200ms后;The second search window is located after the first search window is 150ms-200ms;
步骤6):确定swdni和swdnj中R波点位置,每组极大值极小值对的过0点位置即为R波点位置:Step 6): Determine the position of the R wave point in swdn i and swdn j , and the position of the zero point of each group of the minimum value of the maximum value is the position of the R wave point:
步骤7):错检和漏检swdni和swdnj中R波点位置,当相邻两个R波点位置之间的距离RR<0.4mean时为错检,去除极值小的R波点位置,当相邻两个R波点位置之间的距离RR>1.6mean时为漏检,在漏检的相邻两个R波 点位置间找到一对绝对值最大的极大值极小值对;Step 7): False detection and miss detection swd i and swdn j R position of the wave point, when the distance between adjacent two R wave points is RR<0.4mean, it is wrong detection, and the R wave point with small extremum is removed. Position, when the distance between adjacent two R wave points is RR>1.6mean, it is missed detection, and between the two adjacent R wave points of the missed detection, a pair of absolute maximum values are found. Correct;
步骤8):根据R波点位置确定swdni和swdnj中Q波点位置和S波点位置;Step 8): determining the position of the Q wave point and the position of the S wave point in swdn i and swdn j according to the position of the R wave point;
步骤9):根据swdnj中Q波点位置和S波点位置确定P波和T波。Step 9): Determine the P wave and the T wave according to the position of the Q wave point and the position of the S wave point in swdn j .
本方案中采用平稳小波变换处理心电信号代替现有技术中通过离散小波变换处理心电信号的过程,能够有效解决现有技术通过离散小波变换处理心电信号存在的没有移动不变形和当尺度变大造成分辨率损失的问题,在一定程度上提高了心电信号的处理效果。In this scheme, the stationary wavelet transform is used to process the ECG signal instead of the process of processing the ECG signal by discrete wavelet transform in the prior art, which can effectively solve the problem that the existing ECG signal is processed by discrete wavelet transform without movement and deformation. The problem of loss of resolution caused by the increase in size has improved the processing effect of the ECG signal to some extent.
极大值极小值对的确定需要在相应的层进行,需要注意的是,极大值极小值对包括一个极大值和一个极小值。The determination of the maxima minimum value pair needs to be performed at the corresponding layer. It should be noted that the maxima minimum value pair includes a maximum value and a minimum value.
步骤5)中去除超出第一搜索窗高度范围的极大值极小值对的标准是,当满足极大值大于T1或者极小值的绝对值大于T1中一个条件时,去除该组极大值极小值对。The criterion for removing the minimum value of the minimum value exceeding the height range of the first search window in step 5) is to remove the maximum value when the absolute value greater than T1 or the minimum value is greater than one of the conditions of T1. The value is a minimum value pair.
第一搜索窗用来去除极值超出阈值T1范围的极大值极小值对,第二搜索窗用于去除负的极大值极小值对,通过第一搜索窗与第二搜索窗配合筛选能够保证确定的R波点位置更加准确,提高心电信号检测的准确性。The first search window is used to remove the maximum value minimum value pair whose extreme value exceeds the threshold T1 range, and the second search window is used to remove the negative maximum value minimum value pair, and cooperate with the second search window through the first search window. Screening can ensure the location of the determined R wave points is more accurate and improve the accuracy of ECG signal detection.
第一搜索窗的高度计算公式中用到是目标层的所有细节系数,第二搜索窗的高度计算公式中用到是目标成中位于第二搜索窗内的细节系数。The height calculation formula of the first search window uses all the detail coefficients of the target layer, and the height calculation formula of the second search window uses the detail coefficient located in the second search window.
步骤4)中确定swdni和swdnj中的极大值极小值对的确定步骤为:The determining step of determining the minimum value of the maximum value in swdn i and swdn j in step 4) is:
当确定swdni的极大值时,swdni中斜率大于0的图像命名为1,swdni中斜率小于或者等于0的图像命名为0,其中斜率变化的点即为极大值点;When determining the maximum value swdn i, the slope is greater than the image swdn i 0 designated as 1, swdn i is less than or equal to the slope of the image 0 0 named, is the point where the change in slope maxima;
当确定swdni的极小值时,swdni中斜率小于0的图像命名为1,swdni中斜率大于或者等于0的图像命名为0,其中斜率变化的点即为极小值点;When it is determined that the minimum value swdn i, the slope is less than the image swdn i 0 is designated as 1, swdn i is greater than or equal to the slope of the image is named 0 0, the point where the slope change point is the minimum value;
当确定swdnj的极大值时,swdnj中斜率大于0的图像命名为1,swdnj中斜率小于或者等于0的图像命名为0,其中斜率变化的点即为极大值点;When determining the maximum value swdn j, larger than the image slope swdn j 0 designated as 1, swdnj image slope less than or equal to 0 is designated 0, is the point where the change in slope maxima;
当确定swdnj的极小值时,swdnj中斜率小于0的图像命名为1,swdnj中斜率大于或者等于0的图像命名为0,其中斜率变化的点即为极大值点。When it is determined that the minimum value swdn j, the slope is less than the image swdn j 0 designated as 1, swdn j greater than or equal to the slope of the image is named 0 0, which is the point of change of slope maxima.
通过斜率的变化点确定极大值极小值对的存在。 The existence of a maximum value minimum value pair is determined by the change point of the slope.
步骤8)确定swdni和swdnj中Q波点位置和S波点位置的具体步骤为:Step 8) Determine the specific steps of the Q wave point position and the S wave point position in swdn i and swdn j as follows:
确定swdni中Q波点位置为swdni中R波点位置前面的第三个极值点位置,确定swdnj中S波点位置为swdnj中R波点位置前面的第三个极值点位置;Q swdn i determined in the preceding wave position of the R-wave swdn i extrema point position of the third point position determined swdn j S wave in the foregoing for the position swdn j R wave in the third position extrema position;
利用第五搜索窗确定swdni和swdnj中S波点的位置,当确定swdni中S波点的位置时,第三搜索窗的高度T4=0.9rms(swdni^2),当确定swdni中S波点的位置时,第三搜索窗的高度T4=0.9rms(swdnj^2),宽度为d4,d4大于原始信号中从极大值到相邻极小值之间的波形时间,R波点位置后面的位于第三搜索框内的第三个极值点即为S波点位置。Using the fifth search window to determine the position of the S wave point in swdn i and swdn j , when determining the position of the S wave point in swdn i , the height of the third search window is T4=0.9rms (swdn i ^2), when determining swdn When the position of the S wave point in i is, the height of the third search window is T4=0.9rms (swdn j ^2), and the width is d4, and d4 is larger than the waveform time from the maximum value to the adjacent minimum value in the original signal. The third extreme point located in the third search box after the R wave position is the S wave point position.
步骤7)具体为:Step 7) is specifically:
当相邻两个R波点位置之间的距离RR<0.4mean时为错检,去除极值小的R波点位置,当相邻两个R波点位置之间的距离RR>1.6mean时为漏检,在漏检的相邻两个R波点位置间找到一对绝对值最大的极大值极小值对。When the distance between adjacent two R-wave point positions RR<0.4mean is a misdetection, the position of the R-wave point with a small extremum is removed, and when the distance between adjacent two R-wave points is RR>1.6mean For the missed detection, a pair of maximum value minimum value pairs with the largest absolute value is found between the positions of the adjacent two R wave points that are missed.
通过错检和漏检操作进一步提高了R波点位置确定的准确率。The accuracy of the determination of the position of the R wave point is further improved by the misdetection and the missed detection operation.
步骤9)具体为:Step 9) is specifically:
以swdnj中的Q波为基准,向前设置一个100/512s的第四搜索窗确定第四搜索窗内的第一最大值最小值对,第一最大值最小值对的过0点即为P波点位置,以swdnj中S波为基准,向后设置一个100/512s的第五搜索窗确定第五搜索窗内的第二最大值最小值对,第二最大值最小值对的过0点即为T波点位置。Based on the Q wave in swdn j , a fourth search window of 100/512s is set forward to determine a first maximum value pair in the fourth search window, and the zero point of the first maximum value pair is P wave position, with the S wave in swdn j as the reference, a fifth search window of 100/512s is set backward to determine the second maximum value pair in the fifth search window, and the second maximum value is The 0 point is the T wave point position.
第四搜索窗和第五搜索窗只有宽度没有高度,此处的最大值最小值对不一定是极大值极小值对,目的是找到距离Q波最近的P波点位置和距离S波最近的T波点位置。此处需要说明的是最大值最小值对包括一个最大值和一个最小值。The fourth search window and the fifth search window have only the width and no height, and the maximum value minimum value pair here is not necessarily the maximum value minimum value pair, and the purpose is to find the nearest P wave point position and the distance S wave nearest to the Q wave. The position of the T wave point. What needs to be explained here is that the maximum value minimum pair includes a maximum value and a minimum value.
一种心电信号波形特征点的提取装置,包括:An apparatus for extracting characteristic points of an electrocardiogram signal waveform, comprising:
第一读取单元,用于读取降噪后的原始心电信号;a first reading unit, configured to read the original ECG signal after noise reduction;
第一处理单元,用于通过平稳小波变换处理步骤1)中的心电信号,选取最优小波基,并根据公式N=2n对心电信号根据进行分层,其中,N为选取的信号点总点数,n为总层数,n为正整数; a first processing unit, configured to process the ECG signal in the step 1) by the stationary wavelet transform, select an optimal wavelet base, and layer the ECG signal according to the formula N=2 n , where N is the selected signal The total number of points, n is the total number of layers, and n is a positive integer;
第二处理单元,用于根据能量分布、频率分析和平均互相关确定QRS波体现最优的目标层的细节系数swdni,以及T波和P波体现最优的目标层的细节系数swdnj,其中swd为细节系数,ni为QRS波体现最优的目标层,nj为T波和P波体现最优的目标层,i和j为目标层的位置;a second processing unit, configured to determine, according to the energy distribution, the frequency analysis, and the average cross-correlation, the detail coefficient swdn i of the target layer in which the QRS wave is optimal, and the detail coefficient swdn j of the target layer in which the T wave and the P wave are optimal, Where swd is the detail coefficient, n i is the target layer in which the QRS wave is optimal, n j is the target layer in which the T wave and the P wave are optimal, and i and j are the positions of the target layer;
第三处理单元,用于确定swdni和swdnj的极大值极小值对;a third processing unit, configured to determine a maximum value minimum value pair of swdn i and swdn j ;
第四处理单元,用于通过第一搜索窗去除swdni和swdnj的超出第一搜索窗高度范围的极大值极小值对,当去除swdni的超出第一搜索窗高度范围的极大值极小值对时,第一搜索窗的高度T1=0.25rms(swdni^2),当去除swdnj的超出第一搜索窗高度范围的极大值极小值对,第一搜索窗的高度T1=0.25rms(swdnj^2),第一搜索窗的宽度为d1,d1大于原始信号中从极大值到相邻极小值之间的波形时间;a fourth processing unit, configured to remove, by the first search window, a maximum value minimum value of swdn i and swdn j that exceeds a first search window height range, when removing swdn i exceeds a maximum of a first search window height range When the value is a minimum value, the height of the first search window is T1=0.25 rms (swdn i ^2), when the maximum value of the swdn j exceeding the height range of the first search window is removed, the first search window The height T1=0.25 rms (swdn j ^2), the width of the first search window is d1, and d1 is greater than the waveform time from the maximum value to the adjacent minimum value in the original signal;
通过第二搜索窗去除swdni和swdnj的超出第二搜索窗高度范围的负的极大值极小值对,当去除swdni的超出第二搜索窗高度范围的负的极大值极小值对时,第二搜索窗的高度T2=0.4rms(swdni(a)^2),当去除swdnj的超出第二搜索窗高度范围的负的极大值极小值对时,第二搜索窗的高度T2=0.4rms(swdnj(a)^2),第二搜索窗的宽度为d2,d2大于原始信号中从极大值到相邻极小值之间的波形时间,其中a∈第二搜索窗内的细节系数;Removing a negative maxima minimum value of swdn i and swdn j beyond the second search window height range by the second search window, when the swdn i is removed, the negative maximum value exceeding the second search window height range is extremely small When the value is correct, the height of the second search window is T2=0.4 rms (swdn i (a)^2), when the negative maximum value of swdn j exceeding the height range of the second search window is removed, the second The height of the search window is T2=0.4rms (swdn j (a)^2), and the width of the second search window is d2, which is greater than the waveform time from the maximum value to the adjacent minimum value in the original signal, where a细节 the detail coefficient in the second search window;
第二搜索窗位于第一搜索窗150ms-200ms后;The second search window is located after the first search window is 150ms-200ms;
第五处理单元,用于确定swdni和swdnj中R波点位置,每组极大值极小值对的过0点位置即为R波点位置:The fifth processing unit is configured to determine the position of the R wave point in the swdn i and the swdn j , and the position of the zero point of each pair of the minimum value of the maximum value is the position of the R wave point:
第六处理单元,用于错检和漏检swdni和swdnj中R波点位置;a sixth processing unit for error detection and miss detection of the R wave point positions in swdn i and swdn j ;
第七处理单元,用于根据R波点位置确定swdni和swdnj中Q波点位置和S波点位置;a seventh processing unit, configured to determine a Q wave point position and an S wave point position in swdn i and swdn j according to the R wave point position;
第八处理单元,用于根据swdnj中Q波点位置和S波点位置确定P波和T波。The eighth processing unit is configured to determine the P wave and the T wave according to the Q wave point position and the S wave point position in swdn j .
本方案中采用平稳小波变换处理心电信号代替现有技术中通过离散小波变换处理心电信号的过程,能够有效解决现有技术通过离散小波变换处理心电信号存在的没有移动不变形和当尺度变大造成分辨率损失的问题,在一定 程度上提高了心电信号的处理效果。In this scheme, the stationary wavelet transform is used to process the ECG signal instead of the process of processing the ECG signal by discrete wavelet transform in the prior art, which can effectively solve the problem that the existing ECG signal is processed by discrete wavelet transform without movement and deformation. The problem of loss of resolution caused by getting bigger To a certain extent, the processing effect of the ECG signal is improved.
极大值极小值对的确定需要在相应的层进行,需要注意的是,极大值极小值对包括一个极大值和一个极小值。The determination of the maxima minimum value pair needs to be performed at the corresponding layer. It should be noted that the maxima minimum value pair includes a maximum value and a minimum value.
第四处理单元中去除超出第一搜索窗高度范围的极大值极小值对的标准是,当满足极大值大于T1或者极小值的绝对值大于T1中一个条件时,去除该组极大值极小值对。The criterion for removing the maximum value minimum value pair exceeding the first search window height range in the fourth processing unit is to remove the set pole when the absolute value greater than T1 or the minimum value of the minimum value is greater than one of the conditions of T1. Large value minimum value pair.
第一搜索窗用来去除极值超出阈值T1范围的极大值极小值对,第二搜索窗用于去除负的极大值极小值对,通过第一搜索窗与第二搜索窗配合筛选能够保证确定的R波点位置更加准确,提高心电信号检测的准确性。The first search window is used to remove the maximum value minimum value pair whose extreme value exceeds the threshold T1 range, and the second search window is used to remove the negative maximum value minimum value pair, and cooperate with the second search window through the first search window. Screening can ensure the location of the determined R wave points is more accurate and improve the accuracy of ECG signal detection.
第一搜索窗的高度计算公式中用到是目标层的所有细节系数,第二搜索窗的高度计算公式中用到是目标成中位于第二搜索窗内的细节系数。The height calculation formula of the first search window uses all the detail coefficients of the target layer, and the height calculation formula of the second search window uses the detail coefficient located in the second search window.
为了进一步优化上述技术方案,在本发明提供的心电信号波形特征点的提取装置中,第三处理单元用于当确定swdni的极大值时,swdni中斜率大于0的图像命名为1,swdni中斜率小于或者等于0的图像命名为0,其中斜率变化的点即为极大值点;To further optimize the above technical solutions, the feature point extracting means ECG waveform provided by the invention, the third processing unit for, when it is determined that the maximum value swdn i, the slope is greater than the image swdn i 0 1 named The image whose slope is less than or equal to 0 in swdn i is named 0, and the point where the slope changes is the maximum point;
当确定swdni的极小值时,swdni中斜率小于0的图像命名为1,swdni中斜率大于或者等于0的图像命名为0,其中斜率变化的点即为极小值点;When it is determined that the minimum value swdn i, the slope is less than the image swdn i 0 is designated as 1, swdn i is greater than or equal to the slope of the image is named 0 0, the point where the slope change point is the minimum value;
当确定swdnj的极大值时,swdnj中斜率大于0的图像命名为1,swdnj中斜率小于或者等于0的图像命名为0,其中斜率变化的点即为极大值点;When determining the maximum value swdn j, larger than the image slope swdn j 0 designated as 1, swdnj image slope less than or equal to 0 is designated 0, is the point where the change in slope maxima;
当确定swdnj的极小值时,swdnj中斜率小于0的图像命名为1,swdnj中斜率大于或者等于0的图像命名为0,其中斜率变化的点即为极大值点。When it is determined that the minimum value swdn j, the slope is less than the image swdn j 0 designated as 1, swdn j greater than or equal to the slope of the image is named 0 0, which is the point of change of slope maxima.
通过斜率的变化点确定极大值极小值对的存在。The existence of a maximum value minimum value pair is determined by the change point of the slope.
第六处理单元用于当相邻两个R波点位置之间的距离RR<0.4mean时进行错检,去除极值小的R波点位置,当相邻两个R波点位置之间的距离RR>1.6mean时进行漏检,在漏检的相邻两个R波点位置间找到一对绝对值最大的极大值极小值对。The sixth processing unit is configured to perform a misdetection when the distance between the two adjacent R wave point positions is RR<0.4mean, and remove the R wave point position with a small extremum, when the position between the adjacent two R wave points is A miss detection is performed when the distance is RR>1.6mean, and a pair of maximum value minimum values having the largest absolute value is found between the positions of the adjacent two R wave points that are missed.
通过错检和漏检操作进一步提高了R波点位置确定的准确率。The accuracy of the determination of the position of the R wave point is further improved by the misdetection and the missed detection operation.
第七处理单元用于确定swdni中Q波点位置为swdni中R波点位置前面的 第三个极值点位置,确定swdnj中S波点位置为swdnj中R波点位置前面的第三个极值点位置;Seventh processing means for determining a point Q wave swdn i in position in front of the R-wave swdn i extrema point position of the third point position determined swdn j S wave in front of the point point position position swdn j R-wave The third extreme point position;
利用第五搜索窗确定swdni和swdnj中S波点的位置,当确定swdni中S波点的位置时,第三搜索窗的高度T4=0.9rms(swdni^2),当确定swdni中S波点的位置时,第三搜索窗的高度T4=0.9rms(swdnj^2),宽度为d4,d4大于原始信号中从极大值到相邻极小值之间的波形时间,R波点位置后面的位于第三搜索框内的第三个极值点即为S波点位置。Using the fifth search window to determine the position of the S wave point in swdn i and swdn j , when determining the position of the S wave point in swdn i , the height of the third search window is T4=0.9rms (swdn i ^2), when determining swdn When the position of the S wave point in i is, the height of the third search window is T4=0.9rms (swdn j ^2), and the width is d4, and d4 is larger than the waveform time from the maximum value to the adjacent minimum value in the original signal. The third extreme point located in the third search box after the R wave position is the S wave point position.
第八处理单元用于以swdnj中的Q波为基准,向前设置一个100/512s的第四搜索窗确定第四搜索窗内的第一最大值最小值对,第一最大值最小值对的过0点即为P波点位置,以swdnj中S波为基准,向后设置一个100/512s的第五搜索窗确定第五搜索窗内的第二最大值最小值对,第二最大值最小值对的过0点即为T波点位置。The eighth processing unit is configured to set a first search window of 100/512s forward by using a Q wave in swdn j as a reference, and determine a first maximum value minimum pair in the fourth search window, the first maximum value minimum pair The 0 point is the position of the P wave point, and the S wave of swdn j is used as a reference, and a fifth search window of 100/512s is set backward to determine the second maximum value pair in the fifth search window, the second largest The 0 point of the value minimum pair is the T wave point position.
第四搜索窗和第五搜索窗只有宽度没有高度,此处的最大值最小值对不一定是极大值极小值对,目的是找到距离Q波最近的P波点位置和距离S波最近的T波点位置。此处需要说明的是最大值最小值对包括一个最大值和一个最小值。The fourth search window and the fifth search window have only the width and no height, and the maximum value minimum value pair here is not necessarily the maximum value minimum value pair, and the purpose is to find the nearest P wave point position and the distance S wave nearest to the Q wave. The position of the T wave point. What needs to be explained here is that the maximum value minimum pair includes a maximum value and a minimum value.
本发明以一个具体实施例进行说明:The invention is illustrated by a specific embodiment:
选取的信号点总点数N=4096,根据公式N=2n获得的分解层数为12层;The total number of selected signal points is N=4096, and the number of decomposition layers obtained according to the formula N=2 n is 12 layers;
如果小波基的支集长度太大会不利于实时性,与待分析的信号相似性太差会造成原始信号在重构后有失真现象,且考虑小波基的对称性,如果对称性不好容易造成原始信号在重构后有相移的存在,综上,选取小波基db4,其对称性好,且与心电信号的P-QRS-T波具有一定的相似性。If the length of the wavelet base is too large, it will be detrimental to real-time performance. The poor similarity of the signal to be analyzed will cause the original signal to have distortion after reconstruction, and consider the symmetry of the wavelet base. If the symmetry is not good, it is easy to cause The original signal has a phase shift after reconstruction. In summary, the wavelet base db4 is selected, and its symmetry is good, and it has certain similarity with the P-QRS-T wave of the ECG signal.
根据能量分布、频率分析和平均互相性选取第5层swd5进行QRS波提取,第六层swd6进行T波和P波的提取。According to the energy distribution, frequency analysis and average mutuality, the fifth layer swd5 is selected for QRS wave extraction, and the sixth layer swd6 is used for T wave and P wave extraction.
选取swd5细节系数获得QRS波的原因:The reason why the swd5 detail coefficient is selected to obtain the QRS wave:
1)能量分布,由于ECG(心电信号)的能量主要集中在QRS波群上,相应的,通过信号分解后,QRS波会在能量最大的一层体现的最明显,通过MATLAB软件可以得到QRS波群在swd5体现的最明显; 1) Energy distribution, since the energy of ECG (electrocardiogram signal) is mainly concentrated on the QRS complex, correspondingly, after signal decomposition, QRS wave will be most obvious in the layer with the highest energy, and QRS can be obtained by MATLAB software. The wave group is most obvious in swd5;
2)频率分析,根据ECG中QRS波形频率范围,其能量主要集中在0~38Hz范围内,波峰集中在10~20Hz,中心频率在17Hz左右,带宽约10Hz,对swd5的细节系数进行傅里叶变换,发现swd5的中心频率也与QRS波群的频率范围接近;2) Frequency analysis, according to the frequency range of QRS waveform in ECG, its energy is mainly concentrated in the range of 0~38Hz, the peak is concentrated at 10~20Hz, the center frequency is about 17Hz, the bandwidth is about 10Hz, and the detail coefficient of swd5 is Fourier. Transform, find that the center frequency of swd5 is also close to the frequency range of the QRS complex;
3)平均互相关,根据计算也可以得到swd5的细节系数与原始心电信号的相关最好。3) The average cross-correlation, according to the calculation can also get the best correlation between the detail coefficient of swd5 and the original ECG signal.
通过上述内容可以看出,swd5在能量分布、频率域和时间域上与QRS波的相关性最大。It can be seen from the above that swd5 has the greatest correlation with QRS waves in the energy distribution, frequency domain and time domain.
选取swd6细节系数的原因:Reasons for choosing the swd6 detail factor:
1)能量分布,通过信号分解后,T波和P波在swd6体现的最明显;1) Energy distribution, after signal decomposition, T wave and P wave are most obvious in swd6;
2)频率分析,对swd6的细节系数进行傅里叶变换,发现swd6的中心频率也与T波和P波的频率范围接近;2) Frequency analysis, Fourier transform is performed on the detail coefficient of swd6, and it is found that the center frequency of swd6 is also close to the frequency range of T wave and P wave;
3)平均互相关,根据计算也可以得到swd6的细节系数与原始心电信号的相关性最好。3) The average cross-correlation, according to the calculation can also get the best correlation between the detail coefficient of swd6 and the original ECG signal.
通过上述内容可以看出,swd6在能量分布、频率域和时间域上与T波和P波的相关性最大。It can be seen from the above that swd6 has the highest correlation with T wave and P wave in energy distribution, frequency domain and time domain.
找出swd5极大值极小值对,一组极大值极小值对中包含一个极大值和一个极小值。极大值极小值对的获得方式有多种,本方案中通过图像的斜率获得极大值极小值对,具体为swd5中斜率大于0的图像命名为1,swd5中斜率小于或者等于0的图像命名为0,其中斜率变化的点也就是斜率由1变成0或者由0变成1的点为极大值点;swd5中斜率小于0的图像命名为1,swd5中斜率大于或者等于0的图像命名为0,其中斜率变化的点也就是斜率由1变为0或者由0变为1的点为极小值点。Find the swd5 maxima minimum value pair, which contains a maximal value and a minimum value. There are many ways to obtain the maximum value of the minimum value. In this scheme, the maximum value of the minimum value is obtained by the slope of the image. Specifically, the image with the slope greater than 0 in swd5 is named 1, and the slope in swd5 is less than or equal to 0. The image is named 0, and the point where the slope changes is the point where the slope changes from 1 to 0 or from 0 to 1 is the maximum point; the image with the slope less than 0 in swd5 is named 1, and the slope in swd5 is greater than or equal to The image of 0 is named 0, and the point at which the slope changes is the point at which the slope changes from 1 to 0 or from 0 to 1 is a minimum point.
找出swd6极大值极小值对,swd6中斜率大于0的图像命名为1,swd6中斜率小于或者等于0的图像命名为0,其中斜率变化的点也就是斜率由1变成0或者由0变成1的点为极大值点;swd6中斜率小于0的图像命名为1,swd6中斜率大于或者等于0的图像命名为0,其中斜率变化的点也就是斜率由1变为0或者由0变为1的点为极小值点。 Find the swd6 maxima minimum value. The image with a slope greater than 0 in swd6 is named 1. The image with a slope less than or equal to 0 in swd6 is named 0. The slope change point is the slope from 1 to 0 or The point where 0 becomes 1 is the maximum point; the image with the slope less than 0 in swd6 is named 1, and the image with the slope greater than or equal to 0 in swd6 is named 0, and the point where the slope changes is the slope changes from 1 to 0 or The point from 0 to 1 is the minimum point.
通过第一搜索窗去除swd5和swd5的一部分极大值极小值对,去除原则为极大值大于阈值T1的去掉,极小值的绝对值大于T1的也去掉,且该极大值极小值对只要满足其中一个条件就可以去除。A part of the maximum value minimum value of swd5 and swd5 is removed by the first search window, and the removal principle is that the maximum value is larger than the threshold T1, and the absolute value of the minimum value is larger than T1, and the maximum value is extremely small. Value pairs can be removed as long as one of the conditions is met.
通过第二搜索窗去除swd5和swd5负的极大值极小值对。The inverse of the maximum value of swd5 and swd5 is removed through the second search window.
第二搜索窗在第一搜索窗150ms-200ms后出现,优选的,第二搜索窗在第一搜索窗200ms后出现,且第一搜索窗和第二搜索窗的宽度为40mm。The second search window appears after the first search window is 150ms-200ms. Preferably, the second search window appears after the first search window 200ms, and the width of the first search window and the second search window is 40mm.
通过步骤4)后确定swd5和swd5的极大值极小值对,每组极大值与极小值的过0点即相应层的R波点位置。After step 4), the maximum value of swd5 and swd5 is determined. The maximum value and the minimum value of each group are 0 points, that is, the R wave position of the corresponding layer.
为了避免丢失swd5和swd5的R波点位置,同时避免swd5和swd5出现冗余的R波点位置,需要对步骤6)中的R波点位置进行错检和漏检操作,其中错检和漏检的原则为当相邻两个R波点位置之间的距离RR<0.4mean时为错检,去除极值小的R波点位置,当相邻两个R波点位置之间的距离RR>1.6mean时为漏检,在漏检的相邻两个R波点位置间找到一对绝对值最大的极大值极小值对。对R波点位置的漏检和错检不限于上述方法,还可以为本领域技术人员能够想到的其他能够实现的方案,在此不做具体限定。其中mean为RR的平均值。In order to avoid losing the R wave position of swd5 and swd5, and avoiding redundant R wave position of swd5 and swd5, it is necessary to perform error detection and miss detection on the R wave position in step 6), among which the error detection and leakage The principle of detection is that when the distance between adjacent two R wave points is RR<0.4mean, the error is detected, and the position of the R wave point with a small extremum is removed, and the distance between the positions of two adjacent R wave points is RR. >1.6mean is the missed detection, and a pair of absolute maximum value pairs with the largest absolute value is found between the positions of the adjacent two R wave points that are missed. The missed detection and the misdetection of the R-wave point position are not limited to the above methods, and may be other implementations that can be realized by those skilled in the art, and are not specifically limited herein. Where mean is the average of the RR.
确定swd5和swd5的Q波点位置和S波点位置,由于在第一搜索窗和第二搜索窗的滑动过程中已经对R波前的极值点位置进行了记录,R波前的第三个极值点位置即为Q波点位置;S波点位置的确定需要通过第三搜索窗得到,第三搜索窗内的第三个极值点即为S波点位置。在Q波点位置和S波点位置的确定过程中第三个极值点为极大值点还是极小值点都可以。Determining the Q wave point position and the S wave point position of swd5 and swd5, since the extreme point position of the R wave front has been recorded during the sliding process of the first search window and the second search window, the third of the R wave front The position of the extreme point is the position of the Q wave point; the determination of the position of the S wave point needs to be obtained through the third search window, and the third extreme point in the third search window is the position of the S wave point. In the process of determining the position of the Q wave point and the position of the S wave point, the third extreme point is either a maximum point or a minimum point.
此处需要说明的是swd6上QRS波的确定不是真实的QRS波,利用该层检测到的QRS波位置定位出T波和P波位置。It should be noted here that the determination of the QRS wave on swd6 is not a true QRS wave, and the position of the QRS wave detected by the layer is used to locate the T wave and the P wave position.
通过第四搜索窗和第五搜索窗确定swd6饿T波点位置和P波点位置,在第四搜索窗和第五搜索窗的滑动范围内仅存在一组最大值最小值对,其中每组最大值最小值对包括一个最大值和一个最小值,第四搜索窗内相邻最大值与最小值之间的过0点即为T波点位置,第五搜索窗内相邻最大值与最小值之间的过0点即为P波点位置。 The swd6 hung T wave point position and the P wave point position are determined by the fourth search window and the fifth search window, and only one set of the maximum value minimum pair exists in the sliding range of the fourth search window and the fifth search window, wherein each group The maximum value minimum pair includes a maximum value and a minimum value, and the 0 point between the adjacent maximum value and the minimum value in the fourth search window is the T wave point position, and the adjacent maximum value and the minimum value in the fifth search window The 0 point between the values is the P wave point position.
心电信号波形特征点提取过程结束。The ECG waveform waveform feature point extraction process ends.
根据人体ECG信号的一般规律,第一搜索窗、第二搜索窗和第三搜索窗的宽度为40ms能够满足要求。According to the general rule of the human body ECG signal, the widths of the first search window, the second search window and the third search window are 40 ms, which can meet the requirements.
优选的,第二搜索窗位于第一搜索窗200ms后。Preferably, the second search window is located 200 ms after the first search window.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。 The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments are obvious to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but the scope of the invention is to be accorded

Claims (10)

  1. 一种心电信号波形特征点的提取方法,其特征在于,包括:A method for extracting characteristic points of an electrocardiographic signal waveform, comprising:
    步骤1):读取降噪后的原始心电信号;Step 1): reading the original ECG signal after noise reduction;
    步骤2):通过平稳小波变换处理所述步骤1)中的心电信号,选取最优小波基,并根据公式N=2n对所述心电信号根据进行分层,其中,N为选取的信号点总点数,n为总层数,n为正整数;Step 2): processing the ECG signal in the step 1) by the stationary wavelet transform, selecting an optimal wavelet base, and layering the ECG signal according to the formula N=2 n , wherein N is selected The total number of signal points, n is the total number of layers, and n is a positive integer;
    步骤3):根据能量分布、频率分析和平均互相关确定QRS波体现最优的目标层的细节系数swdni,以及T波和P波体现最优的目标层的细节系数swdnj,其中swd为细节系数,ni为QRS波体现最优的目标层,nj为T波和P波体现最优的目标层,i和j为目标层的位置;Step 3): determining, according to the energy distribution, the frequency analysis and the average cross-correlation, the detail coefficient swdn i of the target layer in which the QRS wave is optimal, and the detail coefficient swdn j of the target layer in which the T wave and the P wave are optimal, wherein swd is The detail coefficient, n i is the target layer in which the QRS wave is optimal, n j is the target layer in which the T wave and the P wave are optimal, and i and j are the positions of the target layer;
    步骤4):确定swdni和swdnj的极大值极小值对;Step 4): determining a minimum value pair of swdn i and swdn j ;
    步骤5):通过第一搜索窗去除swdni和swdnj的超出所述第一搜索窗高度范围的极大值极小值对,当去除swdni的超出所述第一搜索窗高度范围的极大值极小值对时,第一搜索窗的高度T1=0.25rms(swdni^2),当去除swdnj的超出所述第一搜索窗高度范围的极大值极小值对,第一搜索窗的高度T1=0.25rms(swdnj^2),所述第一搜索窗的宽度为d1,所述d1大于所述原始信号中从极大值到相邻极小值之间的波形时间;Step 5): removing, by the first search window, a maximum value minimum value of swdn i and swdn j that exceeds a range of heights of the first search window, when removing a pole of swdn i that exceeds a height range of the first search window When the large value is small, the height T1 of the first search window is 0.25 rms (swdn i ^2), and when the maximum value of the swdn j exceeding the height range of the first search window is removed, the first The height of the search window is T1=0.25 rms (swdn j ^2), the width of the first search window is d1, and the d1 is greater than the waveform time from the maximum value to the adjacent minimum value in the original signal. ;
    通过第二搜索窗去除swdni和swdnj的超出第二搜索窗高度范围的负的极大值极小值对,当去除swdni的超出第二搜索窗高度范围的负的极大值极小值对时,第二搜索窗的高度T2=0.4rms(swdni(a)^2),当去除swdnj的超出第二搜索窗高度范围的负的极大值极小值对时,第二搜索窗的高度T2=0.4rms(swdnj(a)^2),所述第二搜索窗的宽度为d2,所述d2大于所述原始信号中从极大值到相邻极小值之间的波形时间,其中a∈第二搜索窗内的细节系数;Removing a negative maxima minimum value of swdn i and swdn j beyond the second search window height range by the second search window, when the swdn i is removed, the negative maximum value exceeding the second search window height range is extremely small When the value is correct, the height of the second search window is T2=0.4 rms (swdn i (a)^2), when the negative maximum value of swdn j exceeding the height range of the second search window is removed, the second The height of the search window is T2=0.4 rms (swdn j (a)^2), the width of the second search window is d2, and the d2 is greater than the maximum value in the original signal to the adjacent minimum value Waveform time, where a∈ the detail coefficient in the second search window;
    所述第二搜索窗位于所述第一搜索窗150ms-200ms后;The second search window is located after the first search window is 150ms-200ms;
    步骤6):确定swdni和swdnj中R波点位置,每组极大值极小值对的过0点位置即为R波点位置:Step 6): Determine the position of the R wave point in swdn i and swdn j , and the position of the zero point of each group of the minimum value of the maximum value is the position of the R wave point:
    步骤7):错检和漏检swdni和swdnj中R波点位置; Step 7): error detection and missed detection of swd i and swdn j in the R wave point position;
    步骤8):根据所述R波点位置确定swdni和swdnj中Q波点位置和S波点位置;Step 8): determining the position of the Q wave point and the position of the S wave point in swdn i and swdn j according to the position of the R wave point;
    步骤9):根据swdnj中Q波点位置和S波点位置确定P波和T波。Step 9): Determine the P wave and the T wave according to the position of the Q wave point and the position of the S wave point in swdn j .
  2. 根据权利要求1所述的心电信号波形特征点的提取方法,其特征在于,所述步骤4)中确定swdni和swdnj中的极大值极小值对的确定步骤为:The method for extracting characteristic points of an electrocardiographic signal according to claim 1, wherein the determining step of determining a minimum value pair of swdn i and swdn j in the step 4) is:
    当确定swdni的极大值时,所述swdni中斜率大于0的图像命名为1,所述swdni中斜率小于或者等于0的图像命名为0,其中斜率变化的点即为极大值点;When determining the maximum value point swdn i of the image is greater than the slope swdn i 0 is designated as 1, the slope of swdn i less than or equal named 0 0 image, wherein the change in slope is the maximum value point;
    当确定swdni的极小值时,所述swdni中斜率小于0的图像命名为1,所述swdni中斜率大于或者等于0的图像命名为0,其中斜率变化的点即为极小值点;When it is determined that the minimum value of swdn i, the slope is less than the image swdn i 0 designated as 1, the swdn i slope greater than or equal to the image 0 0 named, is the point where the minimum slope change point;
    当确定swdnj的极大值时,所述swdnj中斜率大于0的图像命名为1,所述swdnj中斜率小于或者等于0的图像命名为0,其中斜率变化的点即为极大值点;When determining the maximum value of swdn j, is greater than the slope of the image swdn j 0 designated as 1, the slope is less than or equal to the swdnj image named 0 0, where the slope change point is the maxima ;
    当确定swdnj的极小值时,所述swdnj中斜率小于0的图像命名为1,所述swdnj中斜率大于或者等于0的图像命名为0,其中斜率变化的点即为极大值点。When the minimum value point swdn j is determined, the image is smaller than the slope swdn j 0 designated as 1, the swdn j slope is greater than or equal to the image 0 0 named, which is the maximum value of the change in slope point.
  3. 根据权利要求1所述的心电信号波形特征点的提取方法,其特征在于,The method for extracting characteristic points of an electrocardiographic signal according to claim 1, wherein
    所述步骤8)确定swdni和swdnj中Q波点位置和S波点位置的具体步骤为:The specific steps of the step 8) determining the position of the Q wave point and the position of the S wave point in swdn i and swdn j are:
    确定swdni中Q波点位置为swdni中所述R波点位置前面的第三个极值点位置,确定swdnj中S波点位置为swdnj中所述R波点位置前面的第三个极值点位置;Q swdn i determined in the preceding wave position of the R-wave swdn i point position in the third position of the extreme points determined swdn j S wave in the foregoing for the position of the R-wave swdn j in a third position Extreme point position;
    利用第五搜索窗确定swdni和swdnj中所述S波点的位置,当确定swdni中所述S波点的位置时,第三搜索窗的高度T4=0.9rms(swdni^2),当确定swdni中所述S波点的位置时,第三搜索窗的高度T4=0.9rms(swdnj^2),宽度为d4,所述d4大于所述原始信号中从极大值到相邻极小值之间的波形时间,所述R波点位置后面的位于所述第三搜索框内的第三个极值点即为所述S波 点位置。Using the fifth search window to determine the position of the S wave point in swdn i and swdn j , when determining the position of the S wave point in swdn i , the height of the third search window is T4=0.9rms (swdn i ^2) When determining the position of the S wave point in swdn i , the height of the third search window is T4=0.9 rms (swdn j ^2), and the width is d4, and the d4 is greater than the maximum value in the original signal. The waveform time between adjacent minimum values, the third extreme point located in the third search frame after the R wave point position is the S wave point position.
  4. 根据权利要求1所述的心电信号波形特征点的提取方法,其特征在于,所述步骤7)具体为:The method for extracting characteristic points of an electrocardiogram signal according to claim 1, wherein the step 7) is specifically:
    当相邻两个R波点位置之间的距离RR<0.4mean时为错检,去除极值小的R波点位置,当相邻两个R波点位置之间的距离RR>1.6mean时为漏检,在漏检的相邻两个R波点位置间找到一对绝对值最大的极大值极小值对。When the distance between adjacent two R-wave point positions RR<0.4mean is a misdetection, the position of the R-wave point with a small extremum is removed, and when the distance between adjacent two R-wave points is RR>1.6mean For the missed detection, a pair of maximum value minimum value pairs with the largest absolute value is found between the positions of the adjacent two R wave points that are missed.
  5. 根据权利要求1所述的心电信号波形特征点的提取方法,其特征在于,所述步骤9)具体为:The method for extracting characteristic points of an electrocardiogram signal according to claim 1, wherein the step 9) is specifically:
    以swdnj中的Q波为基准,向前设置一个100/512s的第四搜索窗确定所述第四搜索窗内的第一最大值最小值对,所述第一最大值最小值对的过0点即为P波点位置,以swdnj中S波为基准,向后设置一个100/512s的第五搜索窗确定所述第五搜索窗内的第二最大值最小值对,所述第二最大值最小值对的过0点即为T波点位置。Taking a Q wave in swdn j as a reference, a fourth search window of 100/512s is set forward to determine a first maximum value minimum pair in the fourth search window, the first maximum value 0 is the position of the P wave point, and a fifth search window of 100/512 s is set backward according to the S wave in swdn j to determine a second maximum value minimum pair in the fifth search window, the first The zero point of the second maximum value pair is the T wave point position.
  6. 一种心电信号波形特征点的提取装置,其特征在,包括:An apparatus for extracting characteristic points of an electrocardiographic signal waveform, comprising:
    第一读取单元,用于读取降噪后的原始心电信号;a first reading unit, configured to read the original ECG signal after noise reduction;
    第一处理单元,用于通过平稳小波变换处理所述步骤1)中的心电信号,选取最优小波基,并根据公式N=2n对所述心电信号根据进行分层,其中,N为选取的信号点总点数,n为总层数,n为正整数;a first processing unit, configured to process the ECG signal in the step 1) by the stationary wavelet transform, select an optimal wavelet base, and layer the ECG signal according to the formula N=2 n , wherein, N For the total number of selected signal points, n is the total number of layers, and n is a positive integer;
    第二处理单元,用于根据能量分布、频率分析和平均互相关确定QRS波体现最优的目标层的细节系数swdni,以及T波和P波体现最优的目标层的细节系数swdnj,其中swd为细节系数,ni为QRS波体现最优的目标层,nj为T波和P波体现最优的目标层,i和j为目标层的位置;a second processing unit, configured to determine, according to the energy distribution, the frequency analysis, and the average cross-correlation, the detail coefficient swdn i of the target layer in which the QRS wave is optimal, and the detail coefficient swdn j of the target layer in which the T wave and the P wave are optimal, Where swd is the detail coefficient, n i is the target layer in which the QRS wave is optimal, n j is the target layer in which the T wave and the P wave are optimal, and i and j are the positions of the target layer;
    第三处理单元,用于确定swdni和swdnj的极大值极小值对;a third processing unit, configured to determine a maximum value minimum value pair of swdn i and swdn j ;
    第四处理单元,用于通过第一搜索窗去除swdni和swdnj的超出所述第一搜索窗高度范围的极大值极小值对,当去除swdni的超出所述第一搜索窗高度范围的极大值极小值对时,第一搜索窗的高度T1=0.25rms(swdni^2),当去除swdnj的超出所述第一搜索窗高度范围的极大值极小值对,第一搜索窗的高度T1=0.25rms(swdnj^2),所述第一搜索窗的宽度为d1,所述d1大于所述 原始信号中从极大值到相邻极小值之间的波形时间;a fourth processing unit, configured to remove, by the first search window, a maximum value minimum value of swdn i and swdn j that exceeds a range of the first search window height, when the swdn i is removed beyond the first search window height When the maximum value of the range is a minimum value, the height T1 of the first search window is 0.25 rms (swdn i ^2), when the maximum value of the swdn j exceeding the height range of the first search window is removed The height of the first search window is T1=0.25 rms (swdn j ^2), the width of the first search window is d1, and the d1 is greater than the maximum value from the maximum value in the original signal. Waveform time
    通过第二搜索窗去除swdni和swdnj的超出第二搜索窗高度范围的负的极大值极小值对,当去除swdni的超出第二搜索窗高度范围的负的极大值极小值对时,第二搜索窗的高度T2=0.4rms(swdni(a)^2),当去除swdnj的超出第二搜索窗高度范围的负的极大值极小值对时,第二搜索窗的高度T2=0.4rms(swdnj(a)^2),所述第二搜索窗的宽度为d2,所述d2大于所述原始信号中从极大值到相邻极小值之间的波形时间,其中a∈第二搜索窗内的细节系数;Removing a negative maxima minimum value of swdn i and swdn j beyond the second search window height range by the second search window, when the swdn i is removed, the negative maximum value exceeding the second search window height range is extremely small When the value is correct, the height of the second search window is T2=0.4 rms (swdn i (a)^2), when the negative maximum value of swdn j exceeding the height range of the second search window is removed, the second The height of the search window is T2=0.4 rms (swdn j (a)^2), the width of the second search window is d2, and the d2 is greater than the maximum value in the original signal to the adjacent minimum value Waveform time, where a∈ the detail coefficient in the second search window;
    所述第二搜索窗位于所述第一搜索窗150ms-200ms后;The second search window is located after the first search window is 150ms-200ms;
    第五处理单元,用于确定swdni和swdnj中R波点位置,每组极大值极小值对的过0点位置即为R波点位置:The fifth processing unit is configured to determine the position of the R wave point in the swdn i and the swdn j , and the position of the zero point of each pair of the minimum value of the maximum value is the position of the R wave point:
    第六处理单元,用于错检和漏检swdni和swdnj中R波点位置;a sixth processing unit for error detection and miss detection of the R wave point positions in swdn i and swdn j ;
    第七处理单元,用于根据所述R波点位置确定swdni和swdnj中Q波点位置和S波点位置;a seventh processing unit, configured to determine a Q wave point position and an S wave point position in swdn i and swdn j according to the R wave point position;
    第八处理单元,用于根据swdnj中Q波点位置和S波点位置确定P波和T波。The eighth processing unit is configured to determine the P wave and the T wave according to the Q wave point position and the S wave point position in swdn j .
  7. 根据权利要求6所述的心电信号波形特征点的提取装置,其特征在于,所述第三处理单元用于当确定swdni的极大值时,所述swdni中斜率大于0的图像命名为1,所述swdni中斜率小于或者等于0的图像命名为0,其中斜率变化的点即为极大值点;The ECG waveform feature extracting means the point of claim 6, wherein the third processing means for, when it is determined that the maximum value of swdn i, is greater than the slope of the image swdn i 0 named Is 1, the image in the swdn i with a slope less than or equal to 0 is named 0, wherein the point where the slope changes is a maximum point;
    当确定swdni的极小值时,所述swdni中斜率小于0的图像命名为1,所述swdni中斜率大于或者等于0的图像命名为0,其中斜率变化的点即为极小值点;When it is determined that the minimum value of swdn i, the slope is less than the image swdn i 0 designated as 1, the swdn i slope greater than or equal to the image 0 0 named, is the point where the minimum slope change point;
    当确定swdnj的极大值时,所述swdnj中斜率大于0的图像命名为1,所述swdnj中斜率小于或者等于0的图像命名为0,其中斜率变化的点即为极大值点;When determining the maximum value of swdn j, is greater than the slope of the image swdn j 0 designated as 1, the slope is less than or equal to the swdnj image named 0 0, where the slope change point is the maxima ;
    当确定swdnj的极小值时,所述swdnj中斜率小于0的图像命名为1,所述swdnj中斜率大于或者等于0的图像命名为0,其中斜率变化的点即为极大 值点。When the minimum value point swdn j is determined, the image is smaller than the slope swdn j 0 designated as 1, the swdn j slope is greater than or equal to the image 0 0 named, which is the maximum value of the change in slope point.
  8. 根据权利要求6所述的心电信号波形特征点的提取装置,其特征在于,所述第六处理单元用于当相邻两个R波点位置之间的距离RR<0.4mean时为错检,去除极值小的R波点位置,当相邻两个R波点位置之间的距离RR>1.6mean时为漏检,在漏检的相邻两个R波点位置间找到一对绝对值最大的极大值极小值对。The device for extracting characteristic points of an electrocardiographic signal according to claim 6, wherein the sixth processing unit is configured to detect a mismatch when the distance between adjacent two R-wave point positions is RR<0.4mean. , removing the R wave point position with a small extremum, when the distance between the adjacent two R wave point positions RR>1.6mean is a missed detection, and finding a pair of absolute between the two adjacent R wave point positions of the missed detection The largest value of the largest value of the minimum value pair.
  9. 根据权利要求6所述的心电信号波形特征点的提取装置,其特征在于,所述第七处理单元用于确定swdni中Q波点位置为swdni中所述R波点位置前面的第三个极值点位置,确定swdnj中S波点位置为swdnj中所述R波点位置前面的第三个极值点位置;The ECG waveform feature extracting means the point of claim 6, wherein said processing means for determining a seventh swdn i of the Q-wave position swdn i preceding the R-wave in the position of the point extremum position three, the determination swdn j S wave point position of said preceding R-wave swdn j third extremum point position position;
    利用第五搜索窗确定swdni和swdnj中所述S波点的位置,当确定swdni中所述S波点的位置时,第三搜索窗的高度T4=0.9rms(swdni^2),当确定swdni中所述S波点的位置时,第三搜索窗的高度T4=0.9rms(swdnj^2),宽度为d4,所述d4大于所述原始信号中从极大值到相邻极小值之间的波形时间,所述R波点位置后面的位于所述第三搜索框内的第三个极值点即为所述S波点位置。Using the fifth search window to determine the position of the S wave point in swdn i and swdn j , when determining the position of the S wave point in swdn i , the height of the third search window is T4=0.9rms (swdn i ^2) When determining the position of the S wave point in swdn i , the height of the third search window is T4=0.9 rms (swdn j ^2), and the width is d4, and the d4 is greater than the maximum value in the original signal. The waveform time between adjacent minimum values, the third extreme point located in the third search frame after the R wave point position is the S wave point position.
  10. 根据权利要求6所述的心电信号波形特征点的提取装置,其特征在于,所述第八处理单元用于以swdnj中的Q波为基准,向前设置一个100/512s的第四搜索窗确定所述第四搜索窗内的第一最大值最小值对,所述第一最大值最小值对的过0点即为P波点位置,以swdnj中S波为基准,向后设置一个100/512s的第五搜索窗确定所述第五搜索窗内的第二最大值最小值对,所述第二最大值最小值对的过0点即为T波点位置。 The apparatus for extracting characteristic points of an electrocardiogram signal according to claim 6, wherein the eighth processing unit is configured to set a fourth search of 100/512s forward based on the Q wave in swdn j . The window determines a first maximum value minimum value pair in the fourth search window, wherein the zero point of the first maximum value minimum value is a P wave point position, and is set backward according to the S wave in swdn j A fifth search window of 100/512s determines a second maximum value minimum pair in the fifth search window, and the zero point of the second maximum value minimum pair is the T wave point position.
PCT/CN2017/079425 2016-03-03 2017-04-05 Electrocardiography signal waveform feature point extraction method and device WO2017148452A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610120611.9 2016-03-03
CN201610120611.9A CN105748066B (en) 2016-03-03 2016-03-03 A kind of extracting method and device of electro-cardiologic signal waveforms characteristic point

Publications (1)

Publication Number Publication Date
WO2017148452A1 true WO2017148452A1 (en) 2017-09-08

Family

ID=56332372

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/079425 WO2017148452A1 (en) 2016-03-03 2017-04-05 Electrocardiography signal waveform feature point extraction method and device

Country Status (2)

Country Link
CN (1) CN105748066B (en)
WO (1) WO2017148452A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109009073A (en) * 2018-07-20 2018-12-18 广州视源电子科技股份有限公司 Atrial fibrillation detection apparatus and storage medium
CN111920407A (en) * 2020-07-27 2020-11-13 广东省医疗器械研究所 Electrocardio feature extraction method, system, device and medium based on wavelet transformation
CN112107310A (en) * 2020-09-30 2020-12-22 西安理工大学 ECG identity recognition method based on IWT and AGA-BP models
CN115644888A (en) * 2022-10-26 2023-01-31 北京超思电子技术有限责任公司 Method, device and computer readable medium for determining QRS wave group position

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105748066B (en) * 2016-03-03 2018-03-16 深圳竹信科技有限公司 A kind of extracting method and device of electro-cardiologic signal waveforms characteristic point
CN106923820B (en) * 2017-03-10 2020-01-17 深圳竹信科技有限公司 Electrocardiosignal artifact identification method and electrocardiosignal artifact identification device
CN107997759B (en) * 2017-10-27 2020-06-26 北京康博众联电子科技有限公司 Method for detecting QRS complex in electrocardiosignal, storage medium and computer equipment
CN110547786B (en) * 2018-06-01 2020-05-05 山东省计算中心(国家超级计算济南中心) Form recognition method of electrocardiogram waveform based on multi-scale wavelet transform
CN110916645A (en) * 2019-12-10 2020-03-27 电子科技大学 QRS wave identification method combining wavelet transformation and image segmentation network
CN111685759B (en) * 2020-05-12 2022-09-09 河北大学 P, T characteristic wave detection method of electrocardiosignals
CN111657916A (en) * 2020-06-02 2020-09-15 西安交通大学 Atrial and ventricular synchronous signal analysis method
CN112016405B (en) * 2020-08-07 2022-07-15 浙江大学 Electrocardiogram identity authentication method based on wearable equipment
CN113749665B (en) * 2021-08-19 2024-02-02 深圳邦健生物医疗设备股份有限公司 Method, device, equipment and medium for capturing abnormal index
CN114533078A (en) * 2022-02-25 2022-05-27 西安交通大学 Self-adaptive ECG signal edge processing method, system, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101828917A (en) * 2010-05-07 2010-09-15 深圳大学 Method and system for extracting electrocardiosignal characteristic
US20120014575A1 (en) * 2010-07-13 2012-01-19 Empire Technology Development Llc Hybrid 2-D ECG Data Compression Based on Wavelet Transforms
CN103156599A (en) * 2013-04-03 2013-06-19 河北大学 Detection method of electrocardiosignal R characteristic waves
CN103970975A (en) * 2013-02-02 2014-08-06 深圳先进技术研究院 Electrocardio data processing method and electrocardio data processing system
CN105212922A (en) * 2014-06-11 2016-01-06 吉林大学 The method and system that R wave of electrocardiosignal detects automatically are realized towards FPGA
CN105748066A (en) * 2016-03-03 2016-07-13 深圳竹信科技有限公司 Method and device for extracting feature point of electrocardiosignal waveform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101828917A (en) * 2010-05-07 2010-09-15 深圳大学 Method and system for extracting electrocardiosignal characteristic
US20120014575A1 (en) * 2010-07-13 2012-01-19 Empire Technology Development Llc Hybrid 2-D ECG Data Compression Based on Wavelet Transforms
CN103970975A (en) * 2013-02-02 2014-08-06 深圳先进技术研究院 Electrocardio data processing method and electrocardio data processing system
CN103156599A (en) * 2013-04-03 2013-06-19 河北大学 Detection method of electrocardiosignal R characteristic waves
CN105212922A (en) * 2014-06-11 2016-01-06 吉林大学 The method and system that R wave of electrocardiosignal detects automatically are realized towards FPGA
CN105748066A (en) * 2016-03-03 2016-07-13 深圳竹信科技有限公司 Method and device for extracting feature point of electrocardiosignal waveform

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109009073A (en) * 2018-07-20 2018-12-18 广州视源电子科技股份有限公司 Atrial fibrillation detection apparatus and storage medium
CN111920407A (en) * 2020-07-27 2020-11-13 广东省医疗器械研究所 Electrocardio feature extraction method, system, device and medium based on wavelet transformation
CN111920407B (en) * 2020-07-27 2023-09-22 广东省医疗器械研究所 Electrocardiogram feature extraction method, system, device and medium based on wavelet transformation
CN112107310A (en) * 2020-09-30 2020-12-22 西安理工大学 ECG identity recognition method based on IWT and AGA-BP models
CN115644888A (en) * 2022-10-26 2023-01-31 北京超思电子技术有限责任公司 Method, device and computer readable medium for determining QRS wave group position

Also Published As

Publication number Publication date
CN105748066A (en) 2016-07-13
CN105748066B (en) 2018-03-16

Similar Documents

Publication Publication Date Title
WO2017148452A1 (en) Electrocardiography signal waveform feature point extraction method and device
Merah et al. R-peaks detection based on stationary wavelet transform
Zidelmal et al. QRS detection using S-Transform and Shannon energy
Manikandan et al. A novel method for detecting R-peaks in electrocardiogram (ECG) signal
CN109907752B (en) Electrocardiogram diagnosis and monitoring system for removing motion artifact interference and electrocardio characteristic detection
CN105030228B (en) The method and device of its P wave position is determined in electrocardiosignal
Sabherwal et al. Automatic detection of the R peaks in single-lead ECG signal
Kaur et al. A novel approach to ECG R-peak detection
CA2979135A1 (en) Systems, apparatus and methods for sensing fetal activity
CN108272451B (en) QRS wave identification method based on improved wavelet transformation
CN112370015A (en) Physiological signal quality evaluation method based on gram angular field
Belkadi et al. A robust QRS detection approach using stationary wavelet transform
CN111317499A (en) Heart sound signal processing method based on wavelet technology
CN115040139A (en) Electrocardio R wave detection method, equipment, medium and product based on dual-tree complex wavelet
Tan et al. EMD-based electrocardiogram delineation for a wearable low-power ECG monitoring device
Chaitanya et al. A simple and robust QRS detection algorithm for wireless medical body area network
Dessì et al. Identification of fetal QRS complexes in low density non-invasive biopotential recordings
CN108836305B (en) A kind of ECG feature extracting method of fusion Butterworth filtering and wavelet transformation
Liu et al. A novel R-peak detection method combining energy and wavelet transform in electrocardiogram signal
WO2024061275A1 (en) Surface electrophysiological signal processing method for eliminating signal phase shift and system
Bakhshipour et al. Myocardial ischemia detection with ECG analysis, using Wavelet Transform and Support Vector Machines
Hu et al. An approach to QRS complex detection based on multiscale mathematical morphology
Pan et al. Detection of ECG characteristic points using biorthogonal spline wavelet
Yazdani et al. A novel preprocessing tool to enhance ECG R-wave extraction
Nair et al. Adaptive wavelet based identification and extraction of PQRST combination in randomly stretching ECG sequence

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17759303

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17759303

Country of ref document: EP

Kind code of ref document: A1