Respiration rate measurement method and device based on PPG signal
Through filtering and differential processing methods based on PPG signals, combined with user motion status detection, the complexity of existing respiration measurement methods and the large problems of external influence are solved, and simple, easy-to-carry and fast respiration rate measurement is achieved.
Patent Information
- Application Number
- CN202011180742.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-29
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-10-29
AI Technical Summary
Existing respiration measurement methods have problems such as complex equipment, being greatly affected by external conditions, inconvenience to carry, and slow measurement speed.
The respiration rate measurement method based on PPG signal is adopted. The PPG signal is collected in real time for filtering and differential processing. The upper envelope is calculated to obtain the final respiration rate. After the user's motion status is detected, the static state is ensured for measurement.
It achieves respiratory rate detection that is less affected by the outside world, is simple to operate and easy to carry, and has fast measurement.
Smart Images

Figure CN112494008B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of respiratory rate measurement based on PPG signals, and in particular to a respiratory rate measurement method and device based on PPG signals. Background Art
[0002] Existing methods for measuring respiration include thoracic impedance, inductance plethysmography, temperature measurement, airflow detection, humidity detection, carbon dioxide level measurement, etc. However, all existing testing methods have disadvantages such as complex testing equipment, measurement being greatly affected by external conditions, the equipment cannot be carried, and the measurement is slow. Summary of the invention
[0003] The main purpose of the present invention is to provide a method and device for measuring respiratory rate based on PPG signals, aiming to solve the problems of existing respiratory measurement.
[0004] To achieve the above object, the present invention provides a method for measuring respiration rate based on a PPG signal, the method comprising:
[0005] Step S10: collecting PPG signals in real time;
[0006] Step S20: performing a first processing on the PPG signal to obtain a first processed signal; the first processing includes filtering processing and differential processing;
[0007] Step S30: performing a second processing on the first processed signal to obtain an upper envelope;
[0008] Step S40: Calculate the final respiratory rate according to the upper envelope.
[0009] Furthermore, before step S10, the method further includes:
[0010] Step S1: collecting the user's accelerometer signal to obtain the user's motion state;
[0011] Step S2: Determine whether the user's motion state is a stationary state, if not, execute step S3, if yes, execute step S4;
[0012] Step S3: Remind the user to calm down and remain in a static state, and return to step S1;
[0013] Step S4: Collect PPG signals in real time when the user is in a stationary state.
[0014] Furthermore, the PPG signal is a 16 Hz PPG green light signal.
[0015] Furthermore, the step S20 includes:
[0016] Step S210: filtering the PPG signal using a fourth-order averaging filter and a fourth-order Butterworth bandpass filter to obtain a preprocessed signal;
[0017] Step S220: performing first-order difference processing on the preprocessed signal to obtain a first processed signal.
[0018] Furthermore, the average filter is:
[0019]
[0020] in,
[0021] X(n) is the input signal, i.e. the PPG signal;
[0022] Y(n) is the output signal;
[0023] K and N are natural numbers.
[0024] Furthermore, the Butterworth bandpass filter is:
[0025]
[0026] in,
[0027] a K and b K The filter coefficients calculated to select the desired frequency signal.
[0028] Furthermore, the first-order difference is:
[0029] Y(n)=X(n)-X(n-1).
[0030] Furthermore, the step S30 includes:
[0031] Step S310: finding a maximum point in the first processed signal according to a preset first threshold;
[0032] Step S320: Calculate the cubic spline interpolation based on the upper envelope function to obtain the upper envelope; the upper envelope function is within the required interval [x 1 ,x n ] is a quadratic continuously differentiable function, where each small interval [x k ,x k+1 ](k=1,2,…,n-1) is a polynomial of no more than three degrees, whose second-order derivative exists and is a linear function, and whose first-order derivative is continuous.
[0033] Furthermore, the step S40 includes:
[0034] Step S410: finding the maximum value point of the specified interval of the upper envelope according to a preset second threshold;
[0035] Step S420: Calculate the slope of each point of the upper envelope according to the maximum value point;
[0036] Step S430: using the slope to assist in statistical analysis of all respiratory rates in the specified interval, and calculating the final respiratory rate.
[0037] At the same time, the present invention also provides a respiratory rate measurement device based on a PPG signal, and the respiratory rate measurement device based on a PPG signal includes the respiratory rate measurement method based on a PPG signal as described above.
[0038] The present invention provides a respiratory rate measurement method and device based on PPG signals, which realize respiratory rate measurement through PPG-based signals. Compared with existing respiratory measurement methods, the method and device are less affected by the outside world, have a wide range of usage scenarios, are simple to operate and easy to carry, and measure faster. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of a flow chart of a method for measuring respiratory rate based on a PPG signal provided by an embodiment of the present invention;
[0040] Figure 2 A schematic diagram of a flow chart of a method for detecting a user's motion state provided by an embodiment of the present invention;
[0041] Figure 3 for Figure 1 Schematic diagram of the process of step S20;
[0042] Figure 4 for Figure 1 Schematic diagram of the process of step S30;
[0043] Figure 5 for Figure 1 Schematic diagram of the process of step S40;
[0044] Figure 6 A schematic diagram of a PPG signal provided by an embodiment of the present invention;
[0045] Figure 7 A schematic diagram of a preprocessed signal provided by an embodiment of the present invention;
[0046] Figure 8 A schematic diagram of a first processed signal provided by an embodiment of the present invention;
[0047] Fig. 9 A schematic diagram of an upper envelope provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0049] An embodiment of the present invention provides a respiratory rate measurement method based on a PPG signal, wherein the PPG is photoplethysmography (PPG). The respiratory rate measurement method based on the PPG signal is a method for detecting the respiratory rate based on the PPG signal, and the volume pulse wave is obtained by detecting the change in blood volume in the arterioles and capillaries. The PPG signal is a composite signal, mainly composed of 5 frequencies distributed in the range of 0.007 Hz to 1.5 Hz. The PPG signal is related to respiration, blood pressure, heart rate, body temperature and the autonomic nervous system. Therefore, the present invention uses the PPG signal to find the contained respiratory signal to calculate the respiratory rate.
[0050] See also Figure 1 An embodiment of the present invention provides a method for measuring a respiratory rate based on a PPG signal, the method comprising:
[0051] Step S10: collecting PPG signals in real time;
[0052] Step S20: performing a first processing on the PPG signal to obtain a first processed signal; the first processing includes filtering processing and differential processing;
[0053] Step S30: performing a second processing on the first processed signal to obtain an upper envelope;
[0054] Step S40: Calculate the final respiratory rate according to the upper envelope.
[0055] See also Figure 2 Specifically, during measurement, the user needs to remain still. Therefore, before performing step S10 to collect PPG signals in real time, the user's motion state is detected first, and the steps include:
[0056] Step S1: collecting the user's accelerometer signal to obtain the user's motion state; during actual measurement, the user may wear a smart wearable device such as a smart watch to collect the user's accelerometer signal;
[0057] Step S2: Determine whether the user's motion state is a stationary state, if not, execute step S3, if yes, execute step S4;
[0058] Step S3: Remind the user to calm down and remain in a static state, and return to step S1;
[0059] Step S4: Collect PPG signals in real time when the user is in a stationary state.
[0060] Make sure that the user is in a stationary state before collecting the PPG signal, which is a 16Hz PPG green light signal.
[0061] See also Figure 3 , performing a first process on the PPG signal collected in real time, specifically, the step S20 includes:
[0062] Step S210: filtering the PPG signal using a fourth-order averaging filter and a fourth-order Butterworth bandpass filter to obtain a preprocessed signal; wherein,
[0063] The averaging filter is:
[0064]
[0065] in,
[0066] X(n) is the input signal, i.e. the PPG signal;
[0067] Y(n) is the output signal;
[0068] K and N are natural numbers.
[0069] The value of a point is replaced by the average of several values in the neighborhood of the point. This method requires little calculation and has fast processing speed, and is very effective in filtering out high-frequency noise.
[0070] The Butterworth bandpass filter is:
[0071]
[0072] in,
[0073] a K and b K The filter coefficients calculated to select the desired frequency signal.
[0074] The time domain equivalent difference equation of the Butterworth filter can filter out high frequency signals and baseline drift interference.
[0075] Step S220: performing first-order difference processing on the preprocessed signal to obtain a first processed signal.
[0076] The first-order difference is:
[0077] Y(n)=X(n)-X(n-1).
[0078] The real-time collected PPG signal is filtered with a fourth-order average filter and a fourth-order Butterworth bandpass filter to filter out the influence of higher frequency signal interference and baseline drift. Since the frequency of the respiratory signal is low, the Butterworth bandpass filter cannot completely eliminate the interference of baseline drift, so the first order difference is performed on the obtained filtered signal to complete the first processing of the original data of the PPG signal and obtain the first processed signal.
[0079] Further, a second processing is performed on the first processed signal to obtain an upper envelope.
[0080] See also Figure 4 , the step S30 comprises:
[0081] Step S310: finding a maximum point in the first processed signal according to a preset first threshold;
[0082] Step S320: Calculate the cubic spline interpolation based on the upper envelope function to obtain the upper envelope; the upper envelope function is within the required interval [x 1 ,x n ] is a quadratic continuously differentiable function, where each small interval [x k ,x k+1 ](k=1,2,…,n-1) is a polynomial of no more than three degrees, whose second-order derivative exists and is a linear function, and whose first-order derivative is continuous.
[0083] Furthermore, the final respiratory rate is calculated based on the upper envelope.
[0084] See also Figure 5 , the step S40 comprises:
[0085] Step S410: finding the maximum value point of the specified interval of the upper envelope according to a preset second threshold;
[0086] Step S420: Calculate the slope of each point of the upper envelope according to the maximum value point;
[0087] Step S430: using the slope to assist in statistical analysis of all respiratory rates in the specified interval, and calculating the final respiratory rate.
[0088] Please also read Figure 6 , Figure 7 , Figure 8 and Fig. 9 ,in, Figure 6 A schematic diagram of a PPG signal provided by an embodiment of the present invention, Figure 7Schematic diagram of the PPG signal after preprocessing, i.e., after filtering by an average filter and a Butterworth bandpass filter; Figure 8 is the first processed signal after the first processing, Fig. 9 A schematic diagram of an upper envelope provided by an embodiment of the present invention. The upper envelope obtained after processing the original PPG signal has a strong correlation with the respiratory signal, so the upper envelope is used to calculate the respiratory rate.
[0089] At the same time, the present invention also provides a respiratory rate measurement device based on a PPG signal, and the respiratory rate measurement device based on a PPG signal includes the respiratory rate measurement method based on a PPG signal as described above.
[0090] Compared with the prior art, the present invention provides a respiratory rate measurement method and device based on PPG signals, which realize respiratory rate measurement through signals based on PPG. Compared with the existing respiratory measurement methods, it is less affected by the outside world, has a wide range of usage scenarios, is simple to operate and easy to carry, and measures faster.
[0091] The above description is only an implementation mode of the present invention. It should be pointed out that, for ordinary technicians in this field, improvements can be made without departing from the creative concept of the present invention, but these all belong to the protection scope of the present invention.
Claims
1. A method for measuring respiratory rate based on PPG signal, characterized in that: include: Step S10: collecting PPG signals in real time; Step S20: performing a first processing on the PPG signal to obtain a first processed signal; The first processing includes filtering processing and differential processing; The step S20 comprises: Step S210: filtering the PPG signal using a fourth-order averaging filter and a fourth-order Butterworth bandpass filter to obtain a preprocessed signal; Step S220: performing first-order difference processing on the preprocessed signal to obtain a first processed signal; Step S30: performing a second processing on the first processed signal to obtain an upper envelope; The step S30 comprises: Step S310: finding a maximum point in the first processed signal according to a preset first threshold; Step S320: Calculate the upper envelope by cubic spline interpolation based on the upper envelope function; the upper envelope function is within the required interval [ , ] is a quadratic continuously differentiable function, where each small interval [ , ](k=1,2,…,n-1) is a polynomial of degree not more than three, whose second-order derivative exists and is a linear function, and whose first-order derivative is continuous; Step S40: Calculating the final respiratory rate according to the upper envelope; The step S40 comprises: Step S410: finding the maximum value point of the specified interval of the upper envelope according to a preset second threshold; Step S420: Calculate the slope of each point of the upper envelope according to the maximum value point; Step S430: using the slope to assist in statistical analysis of all respiratory rates in the specified interval, and calculating the final respiratory rate.
2. The respiratory rate measurement method based on the PPG signal according to claim 1, characterized in that: Before step S10, the method further includes: Step S1: collecting the user's accelerometer signal to obtain the user's motion state; Step S2: Determine whether the user's motion state is a stationary state, if not, execute step S3, if yes, execute step S4; Step S3: Remind the user to calm down and remain in a static state, and return to step S1; Step S4: Collect PPG signals in real time when the user is in a stationary state.
3. The respiratory rate measurement method based on PPG signal according to claim 1, characterized in that: The PPG signal is a 16 Hz PPG green light signal.
4. The respiratory rate measurement method based on PPG signal according to claim 1, characterized in that: The averaging filter is: in, is the input signal, i.e., the PPG signal; is the output signal; K and N are natural numbers.
5. The respiratory rate measurement method based on PPG signal according to claim 1, characterized in that: The Butterworth bandpass filter is: in, and The filter coefficients calculated to select the desired frequency signal.
6. The method for measuring respiratory rate based on PPG signal according to claim 1, characterized in that: The first-order difference is: 。 7. A respiratory rate measurement device based on PPG signal, characterized in that: The respiratory rate measurement device based on the PPG signal includes the respiratory rate measurement method based on the PPG signal as described in any one of claims 1 to 6.
