A cardiopulmonary coupling analysis method based on single-channel ECG signal

By extracting the RR interval and EDR signal from the ECG signal, performing interpolation and Fourier transform, and calculating the cardiopulmonary coupling map, the problem of inaccurate sleep quality analysis in the existing technology is solved, and more accurate sleep quality assessment and personality are achieved. Formulate a chemical conditioning plan.

CN114098756BActive Publication Date: 2024-10-01HANGZHOU FISIO MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111313901.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-08
Publication Date
2024-10-01
Estimated Expiration
2041-11-08

AI Technical Summary

Technical Problem

Existing cardiopulmonary coupling analysis methods have the problem of low accuracy in sleep quality analysis.

Method used

By extracting the RR interval sequence and EDR signal from the body surface single-lead ECG signal, using cubic spline interpolation to interpolate them to the same sampling rate, calculating the autocorrelation function and cross-correlation function, and performing Fourier transform, the cardiopulmonary coupling is obtained Chart to analyze sleep quality.

Benefits of technology

The accuracy of sleep quality analysis is improved, making it possible to accurately judge sleep conditions in the home environment and facilitate the development of personalized conditioning plans.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114098756B_ABST
    Figure CN114098756B_ABST
Patent Text Reader

Abstract

The present invention discloses a cardiopulmonary coupling analysis method based on a single-channel ECG signal, specifically including: extracting RR interval sequence and EDR signal from a single-lead ECG signal of a volume; interpolating the RR interval sequence and the EDR sequence to the same sampling rate using cubic spline interpolation; calculating the autocorrelation function and cross-correlation function of the RR interval sequence and the EDR sequence; performing Fourier transform to obtain the autocorrelation power and cross-correlation power respectively; calculating the cardiopulmonary coupling result by cross-correlation power to obtain a cardiopulmonary coupling spectrum; analyzing the sleep quality according to the cardiopulmonary coupling spectrum. The present invention calculates the cardiopulmonary coupling result by cross-correlation power, and then obtains a cardiopulmonary coupling spectrum to analyze the sleep quality, thereby improving the accuracy of the sleep quality analysis, and can be used for home detection to reflect the real sleep condition, so as to facilitate accurate judgment of the user's sleep quality, and is conducive to formulating a personalized conditioning plan.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical health detection technology, and in particular to a cardiopulmonary coupling analysis method based on a single-channel ECG signal. Background Art

[0002] The discovery of brain waves in the last century made sleep researchers very excited, and they defined brain waves as the core signal for evaluating sleep. Later, they added the collection of multiple physiological signals such as electrooculography, electromyography, breathing, electrocardiography, blood oxygen, etc., forming the polysomnography (PSG) currently used in hospitals. Although polysomnography has its advantages, it also has many disadvantages. For example, the subjects need to connect various wires to their bodies and sleep in the hospital's sleep laboratory for one night. Such an environment and conditions often cannot reflect the subjects' actual sleep; another major problem is that experienced technicians must spend several hours to manually identify the characteristic waveforms in the EEG and stage sleep.

[0003] Sleep is a physiological process of the whole body. When the brain relaxes, the muscles are also in a state of relaxation. The heart rate will slow down, and the breathing will slow down and become more stable. In other words, during sleep, not only the brain enters a special state, but other systems of the body will also show the characteristics of sleep. After analyzing a large amount of clinical data, experts from the medical school found that there is a wonderful coupling relationship between ECG and breathing during sleep. When people are in deep sleep, this coupling will be enhanced. In the state of wakefulness, light sleep, or some diseases, this coupling will also show different characteristics. Based on this discovery, the sleep expert team of the medical school innovatively proposed Cardiopulmonary Coupling in 2005, which is the concept of cardiopulmonary coupling, referred to as CPC, and developed mature technology that can accurately give the stage of sleep. Through clinical verification, these results are very consistent with the sleep staging results based on traditional EEG methods.

[0004] During a whole night of sleep, the human body will go through a cycle from wakefulness, light sleep, to deep sleep, with several periods of rapid eye movement (REM) sleep related to dreams. Each sleep stage should be within a normal time range. CPC can determine the time and proportion of each sleep stage, accurately depict the structure of sleep, and prompt the user whether there is a sleep problem. The existing cardiopulmonary coupling detection method is relatively basic and needs to be further improved.

[0005] For example, Chinese patent CN104757967A, published on July 8, 2015, discloses a cardiopulmonary coupling feedback method and device, which includes: the first step: coupling and analyzing the cardiovascular signal and respiratory signal of the subject to obtain the cardiopulmonary coupling strength of the subject; the second step: outputting a movement instruction signal to the subject according to the cardiopulmonary coupling strength of the subject to improve the cardiopulmonary coupling strength of the subject, and the user performs specific exercises under the guidance of the cardiopulmonary coupling strength to continuously improve the cardiopulmonary coupling strength. It has the problem that the detection means are relatively simple and the accuracy of sleep quality analysis is not high. Summary of the invention

[0006] The technical problem to be solved by the present invention is that the current cardiopulmonary coupling analysis method has the technical problem that the accuracy of sleep quality analysis is not high. A cardiopulmonary coupling analysis method based on a single-channel ECG signal is proposed, which can improve the accuracy of sleep quality analysis through a cardiopulmonary coupling spectrum.

[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is: a cardiopulmonary coupling analysis method based on a single-channel ECG signal, comprising the following steps:

[0008] S1: Extract RR interval sequence and EDR signal from single-lead ECG signal;

[0009] S2: Use cubic spline interpolation to interpolate the RR interval sequence and EDR sequence to the same sampling rate;

[0010] S3: Calculate the autocorrelation function and cross-correlation function of the RR interval sequence and the EDR sequence;

[0011] S4: Perform Fourier transform to obtain autocorrelation power and cross-correlation power respectively;

[0012] S5: Calculate the cardiopulmonary coupling result through the cross-correlation power to obtain the cardiopulmonary coupling spectrum;

[0013] S6: Analyze sleep quality based on the cardiopulmonary coupling map.

[0014] The RR interval is the distance between the R waves in the QRS complex on the electrocardiogram. When the signal is an ECG signal with a sampling rate of 500Hz, the ECG signal needs to be downsampled to 100Hz; then the downsampled signal is bandpass filtered at 10Hz to 30Hz; and then the ECG signal is standardized.

[0015] Preferably, the process of extracting the RR interval sequence in step S1 includes a process of automatically identifying the positions of all R waves in the ECG signal, and identifying the positions of all R waves in the ECG signal includes the following steps:

[0016] A1: Determine whether the ECG signal is inverted;

[0017] A2: Calculate ECG 3000 First-order difference ECG-diff 3000 , ECG-diff 3000 Divide into segments of 1 second in length and find the mean of the minimum value of each segment diff , set the threshold of the R wave to μ r =0.4*mean diff ;

[0018] A3: Calculate the first-order difference ECG-diff of the ECG signal, find all the extreme points of ECG-diff, and obtain the R wave position sequence I R .

[0019] The ECG signal is inverted with the R wave peak facing downward, which may be caused by the electrodes being placed in reverse.

[0020] Preferably, step A1 comprises the following steps:

[0021] A11: Get the first 3000 seconds of the ECG signal 3000 , dividing it into 3000 segments of 1 second in length;

[0022] A12: Find the maximum value index i of each 1-second segment max and the minimum index i min ;

[0023] A13: Select the 3000 fragments that satisfy i max <i min and The total number of fragments is recorded as n. Then the ECG signal direction is correct, otherwise the ECG signal is inverted.

[0024] fz is the sampling rate of the ECG signal. In a normal 1-second ECG signal, the maximum value corresponds to the R wave peak, and the minimum value corresponds to the S wave. The R wave should be before the S wave, and the interval between them is generally less than 0.3 seconds.

[0025] Preferably, the step S1 comprises the following steps:

[0026] B1: Calculation I R The midpoint of two adjacent R waves is I R , to I R Interpolation is performed so that the RR interval sequence and the EDR sequence maintain the same sampling rate;

[0027] B2: Calculation I R The distance between adjacent R waves gives the interval sequence RR;

[0028] B3: Obtain the electrocardiogram-derived respiratory sequence EDR based on the amplitude value corresponding to each R wave position.

[0029] I R ' represents the baseline of the ECG signal, ECG' = ECG-I r 'To remove the baseline drift of the ECG signal, the R wave amplitude is ECG' (R i )-ECG'(S i ), which is the value corresponding to the R wave position in the ECG' minus the value corresponding to the S wave position.

[0030] Preferably, step S3 comprises the following steps:

[0031] S31: Calculate the autocorrelation function f corresponding to the RR sequence and the EDR sequence xx , f yy , and the cross-correlation function f between the RR sequence and the EDR sequence xy ;

[0032] S32: Calculate f xx 、f yy and f xy Fourier transform of the corresponding autopower spectrum S xx , S yy and the cross power spectrum S xy .

[0033] Calculate the autopower spectrum S of the RR sequence and EDR sequence every 300 seconds xx , S yy And the cross power spectrum S of RR and EDR xy .

[0034] Preferably, the autocorrelation function formula in step S31 is:

[0035] Where N is the signal length

[0036] The cross-correlation function formula is:

[0037] Where N is the signal length.

[0038] Preferably, the discrete Fourier transform formula used in step S32 is:

[0039] Where N is the signal length (0≤k≤N-1).

[0040] Preferably, the calculation formula for calculating the cardiopulmonary coupling result in step S5 is:

[0041]

[0042] The CPC component is calculated every 3 seconds using the calculation formula.

[0043] The substantial effect of the present invention is as follows: the present invention extracts the RR interval sequence and the EDR signal from the single-lead ECG signal of the body; then uses cubic spline interpolation to interpolate the RR interval sequence and the EDR sequence to the same sampling rate. The autocorrelation function and the cross-correlation function of the RR interval sequence and the EDR sequence are further calculated; and then Fourier transform is performed on them respectively to obtain the autocorrelation power and the cross-correlation power. The cardiopulmonary coupling result is calculated by the cross-correlation power, and then the cardiopulmonary coupling spectrum is obtained to analyze the sleep quality, which improves the accuracy of the sleep quality analysis, can be used for home detection to reflect the real sleep condition, facilitates accurate judgment of the user's sleep quality, and is conducive to the formulation of personalized conditioning plans. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A schematic flow chart of the main implementation steps of this embodiment;

[0045] Figure 2 is a schematic diagram of the cardiopulmonary coupling spectrum of this embodiment;

[0046] Figure 3 This is a schematic diagram of Example 1 of cardiopulmonary coupling sleep staging in this embodiment;

[0047] Figure 4 This is a schematic diagram of Example 2 of cardiopulmonary coupling sleep staging in this embodiment;

[0048] Figure 5 Schematic diagram of the process of the cardiopulmonary coupling analysis method of this embodiment. DETAILED DESCRIPTION

[0049] The specific implementation of the present invention will be further described below through specific examples in conjunction with the accompanying drawings.

[0050] A cardiopulmonary coupling analysis method based on single-channel ECG signals, such as Figure 1 As shown, the following steps are included:

[0051] S1: Extract RR interval sequence and EDR signal from single-lead ECG signal;

[0052] S2: Use cubic spline interpolation to interpolate the RR interval sequence and EDR sequence to the same sampling rate;

[0053] S3: Calculate the autocorrelation function and cross-correlation function of the RR interval sequence and the EDR sequence;

[0054] S4: Perform Fourier transform to obtain autocorrelation power and cross-correlation power respectively;

[0055] S5: Calculate the cardiopulmonary coupling result through the cross-correlation power to obtain the cardiopulmonary coupling spectrum;

[0056] S6: Analyze sleep quality based on the cardiopulmonary coupling map.

[0057] The specific implementation steps are as follows:

[0058] When the signal is an ECG signal with a sampling rate of 500hz,

[0059] Step 1.1: Downsample the ECG signal to 100 Hz;

[0060] Step 1.2: Perform a 10Hz to 30Hz bandpass filter on the downsampled signal;

[0061] Step 1.3: Normalize the ECG signal.

[0062] Step 2: Automatically identify the locations of all R waves in the ECG signal.

[0063] Step 2.1: First determine whether the ECG signal is inverted (the R wave peak is facing downward, which may be caused by the reverse electrode placement);

[0064] Step 2.1.1: Get the first 3000 seconds of the ECG signal 3000 , dividing it into 3000 segments of 1 second in length;

[0065] Step 2.1.2: Find the maximum value index i for each 1 second segment max and the minimum index i min ;

[0066] Step 2.1.3: In a normal 1-second ECG signal, the maximum value corresponds to the R wave peak, and the minimum value corresponds to the S wave. The R wave should be before the S wave, and the interval is generally less than 0.3 seconds. Therefore, we select the 3000 segments that meet i max <i min , The total number of segments (fz is the sampling rate of the ECG signal) is recorded as n. Then the ECG signal direction is correct, otherwise the ECG signal is inverted;

[0067] Step 2.2: Calculate ECG 3000 First-order difference ECG-diff 3000 , ECG-diff 3000 Divide into segments of 1 second in length and find the mean of the minimum value of each segment diff , set the threshold of the R wave to μ r =0.4*mean diff ;

[0068] Step 2.3: Calculate the first-order difference ECG-diff of the ECG signal and find all extreme points of ECG-diff, where all values ​​are less than the threshold μ r The lower extreme point of is the position of all R waves in the ECG signal, and the first upper extreme point adjacent to it is the corresponding R wave position, and the R wave position sequence I is obtained. R .

[0069] Step 3.1: Calculate I R The midpoint of two adjacent R waves is I R ′, for I R ' is interpolated to make the sampling rate become 100Hz, I R ' represents the baseline of the ECG signal, ECG' = ECG-I r 'To remove the ECG signal of baseline drift;

[0070] Step 3.2: Calculate I R The distance between adjacent R waves gives the interval sequence RR;

[0071] Step 3.3: Obtain the electrocardiogram-derived respiratory sequence EDR based on the amplitude value corresponding to each R wave position. The R wave amplitude is ECG'(R i )-ECG'(S i ), which is the value corresponding to the R wave position in the ECG' minus the value corresponding to the S wave position.

[0072] Step 4: Perform three-time interpolation on the RR sequence and the EDR sequence so that the sampling rate becomes 100 Hz.

[0073] Step 5: Calculate the autopower spectrum S of the RR sequence and EDR sequence every 300 seconds xx , S yy And the cross power spectrum S of RR and EDR xy ;

[0074] Step 5.1: First calculate the autocorrelation function f of the RR sequence and EDR sequence xx , f yy , and the cross-correlation function f between RR and EDR xy ; The autocorrelation function formula in step 5.1 is:

[0075]

[0076] The cross-correlation function formula is:

[0077]

[0078] Step 5.2: Calculate f xx 、f yy and f xyFourier transform of the auto-power spectrum S xx , S yy and the cross power spectrum S xy , the discrete Fourier transform formula used in step 5.2 is:

[0079] Among them (0≤k≤N-1).

[0080] Step 6: Calculate the CPC component every 3 seconds using the formula as follows:

[0081]

[0082] Step 7: Combine all CPC results to obtain the cardiopulmonary coupling map for the whole night, such as Figure 2 shown.

[0083] Figure 3 and Figure 4 These are two examples of cardiopulmonary coupling sleep staging. From top to bottom are the cardiopulmonary coupling atlases. Based on the cardiopulmonary coupling sleep staging and professional sleep staging results, it can be seen that there is a certain correlation between the results of the two sleep staging methods. Figure 5 Schematic diagram of the overall process of the cardiopulmonary coupling analysis method of this embodiment.

[0084] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention.

Claims

1. A cardiopulmonary coupling analysis method based on a single-channel ECG signal, characterized in that: The steps include: S1: Extract RR interval sequence and EDR signal from single-lead ECG signal; S2: Use cubic spline interpolation to interpolate the RR interval sequence and the EDR sequence to the same sampling rate, set the threshold based on the mean of the minimum value of the first-order difference of the ECG signal, and the lower extreme point in the first-order difference of the ECG that is less than the threshold is the position of the R wave, and the first upper extreme point adjacent to it is the corresponding R wave position; S3: Calculate the autocorrelation function and cross-correlation function of the RR interval sequence and the EDR sequence, subtract the midpoints of two adjacent R waves in the R wave position sequence from the ECG signal to obtain the ECG signal with the baseline drift removed, and subtract the value corresponding to the R wave position from the value corresponding to the S wave position in the ECG signal with the baseline drift removed to obtain the R wave amplitude; S4: Perform Fourier transform to obtain autocorrelation power and cross-correlation power respectively; S5: Calculate the cardiopulmonary coupling result through the cross-correlation power to obtain the cardiopulmonary coupling spectrum; S6: Analyze sleep quality based on the cardiopulmonary coupling map.

2. A cardiopulmonary coupling analysis method based on a single-channel ECG signal according to claim 1, characterized in that: The process of extracting the RR interval sequence in step S1 includes a process of automatically identifying the positions of all R waves in the ECG signal. Identifying the positions of all R waves in the ECG signal includes the following steps: A1: Determine whether the ECG signal is inverted; A2: Calculate ECG 3000 First-order difference ECG-diff 3000 , ECG-diff 3000 Divide into segments of 1 second in length and find the mean of the minimum value of each segment diff , set the threshold of the R wave to μ r =0.4*mean diff ; A3: Calculate the first-order difference ECG-diff of the ECG signal, find all the extreme points of ECG-diff, and obtain the R wave position sequence I R .

3. A cardiopulmonary coupling analysis method based on a single-channel ECG signal according to claim 2, characterized in that: Step A1 includes the following steps: A11: Get the first 3000 seconds of the ECG signal 3000 , dividing it into 3000 segments of 1 second in length; A12: Find the maximum value index i of each 1-second segment max and the minimum index i min ; A13: Select the 3000 fragments that satisfy i max <i min and The total number of fragments is recorded as n. Then the ECG signal direction is correct, otherwise the ECG signal is inverted.

4. A cardiopulmonary coupling analysis method based on a single-channel ECG signal according to claim 2, characterized in that: The step S1 comprises the following steps: B1: Calculation I R The midpoint of two adjacent R waves is I R ′, for I R ′ is interpolated so that the RR interval sequence and the EDR sequence maintain the same sampling rate; B2: Calculation I R The distance between adjacent R waves gives the interval sequence RR; B3: Obtain the electrocardiogram-derived respiratory sequence EDR based on the amplitude value corresponding to each R wave position.

5. A cardiopulmonary coupling analysis method based on a single-channel ECG signal according to claim 1 or 2, characterized in that: The step S3 comprises the following steps: S31: Calculate the autocorrelation function f corresponding to the RR sequence and the EDR sequence xx , f yy , and the cross-correlation function f between the RR sequence and the EDR sequence xy ; S32: Calculate f xx 、f yy and f xy Fourier transform of the corresponding autopower spectrum S xx , S yy and the cross power spectrum S xy .

6. A cardiopulmonary coupling analysis method based on a single-channel ECG signal according to claim 5, characterized in that: The autocorrelation function formula in step S31 is: The cross-correlation function formula is:

7. A cardiopulmonary coupling analysis method based on a single-channel ECG signal according to claim 5, characterized in that: The discrete Fourier transform formula used in step S32 is: Among them (0≤k≤N-1).

8. A cardiopulmonary coupling analysis method based on a single-channel ECG signal according to claim 5, characterized in that: The calculation formula for calculating the cardiopulmonary coupling result in step S5 is: