A respiratory rate measurement device, method, equipment and medium
By using signal processing and interpolation technology in the respiration rate measurement device, the error problem of respiration rate extraction in the pulse wave signal of optical data acquisition is solved, and efficient and high-quality respiration rate measurement is achieved.
Patent Information
- Application Number
- CN202210879859.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-25
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-07-25
AI Technical Summary
It is difficult to extract the respiratory rate from the pulse wave signal collected by optical data with high efficiency and high quality with the existing technology, especially because the optical plethysmography method is easily interfered by physiological and external factors when processing the pulse wave signal, resulting in measurement errors.
A respiration rate measurement device and method are designed, including a signal processing module, a parameter determination module, a sequence acquisition module, a sequence processing module and a respiration rate calculation module. The pulse wave signal is processed through the preset frequency interval to obtain the maximum and minimum values. Interpolation processing is performed to generate a respiratory wave signal, and the respiratory rate and status are calculated based on this.
Interpolation processing reduces the interference of pulse wave signals, improves data continuity and accuracy, achieves efficient and high-quality respiratory rate measurement, reduces errors, and improves measurement efficiency.
Smart Images

Figure CN115886785B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of signal processing technology, and in particular to a respiratory rate measurement device, method, equipment and medium. Background Art
[0002] Respiratory rate is the number of breaths a person takes per minute. It is an important vital sign that helps to understand a person's overall health and sleep quality. Respiratory rate and breathing pattern are also considered to be good indicators of a person's basic health.
[0003] At present, the methods for detecting respiratory rate can be divided into two categories according to whether or not there is contact with the body surface: respiratory rate detection methods based on contact sensors and respiratory rate detection methods based on non-contact photoelectric devices; among them, the contact respiratory rate detection method is relatively mature and widely used. The contact respiratory rate detection method can be divided into two categories according to the different areas where the respiratory source occurs: direct measurement methods that extract chest fluctuations caused by breathing and indirect measurement methods that extract characteristic parameters of electrocardiogram signals. Direct measurement methods include impedance detection, transformer sensor detection, temperature sensor detection methods, etc. Among them, the impedance detection method has extremely high requirements for electrodes, and the different placement positions and individual differences of the subjects can affect the relationship between impedance and lung volume; in the temperature sensor detection method, the sensor will cause the nearby temperature to change due to long-term contact with the human body, affecting the measurement results; the transformer detection method has strict requirements on the relative position of the coil with a ferrite core, and it is difficult to keep the axis of the coil concentric for a long time as required. The representative method of indirect measurement is the respiratory characteristic parameter method based on optical plethysmography, which does not require external other types of sensors. Optical plethysmography is an optical measurement technique for detecting changes in blood volume in tissue microvessels. When a light beam is irradiated onto the human body, the light intensity received by the photodetector corresponds to the change in blood volume due to the different light absorption and reflection capabilities of the skin and blood, and the synchronous fluctuation of blood volume with the heart's fluctuations. Therefore, the change in light intensity can reflect the rhythm of the heartbeat and form a pulse wave signal. Breathing can cause periodic changes in the envelope, peak interval, peak amplitude, and single peak area of the pulse wave signal, so the respiratory rate can be estimated through this change feature.
[0004] In summary, how to efficiently and high-quality extract the respiratory rate from the pulse wave signal obtained by optical data collection is a problem that needs to be solved. Summary of the invention
[0005] In view of this, the purpose of the present invention is to provide a respiratory rate measurement device, method, equipment and medium, which can extract the respiratory rate from the pulse wave signal obtained by optical data collection with high efficiency and high quality. The specific scheme is as follows:
[0006] In a first aspect, the present application discloses a respiratory rate measuring device, comprising:
[0007] A signal processing module, used to process the original pulse wave signal collected at the current moment based on a preset frequency interval to obtain a currently processed pulse wave signal, and obtain a maximum value and a minimum value of the currently processed pulse wave signal;
[0008] a parameter determination module, configured to determine the amplitude of the currently processed pulse wave signal based on the maximum value and the minimum value, and to obtain the number of sampling points of the currently processed pulse wave signal based on a preset sampling frequency;
[0009] A sequence acquisition module, used to jump back to the step of processing the original pulse wave signal collected at the current moment based on the preset frequency interval to obtain the currently processed pulse wave signal, so as to obtain a first amplitude sequence and a first sampling point number sequence that meet the preset number of sequence items;
[0010] A sequence processing module, configured to interpolate the first amplitude sequence and the first sampling point number sequence according to a preset interpolation method to obtain a second amplitude sequence and a second sampling point number sequence, and obtain a current respiratory wave signal sequence based on the second amplitude sequence and the second sampling point number sequence;
[0011] The respiratory rate calculation module is used to calculate the respiratory rate based on the current respiratory wave signal sequence and display the respiratory rate and the corresponding respiratory state.
[0012] Optionally, the signal processing module includes:
[0013] A maximum value acquisition unit, used for performing first-order derivative processing on the currently processed pulse wave signal to obtain a first-order derivative function, and obtaining a number of maximum value points corresponding to the first-order derivative function;
[0014] A rising point determination submodule, used to determine a target maximum point of the first-order derivative function from a number of maximum points according to a preset rule, and use the target maximum point as the current rising point of the currently processed pulse wave signal;
[0015] The maximum value acquisition unit is used to acquire the minimum value of the currently processed pulse wave signal based on the current rising point and the previous rising point, and to determine the maximum value of the currently processed pulse wave signal based on the current rising point and the current pulse rate.
[0016] Optionally, the rising point determination submodule further includes:
[0017] A threshold judgment unit, used to judge whether the maximum value corresponding to each of the maximum value points exceeds a first preset threshold;
[0018] The target maximum point determination unit is used to determine the target maximum point of the currently processed pulse wave signal from the maximum points that do not exceed the first preset threshold according to a preset rule.
[0019] Optionally, the respiratory rate measuring device further comprises:
[0020] The pulse rate updating module is used to update the current pulse rate using the currently processed pulse wave signal.
[0021] Optionally, the sequence processing module includes:
[0022] a low-pass filtering unit, configured to perform low-pass filtering on the second amplitude sequence and the second sampling point sequence using a preset cutoff frequency to obtain a third amplitude sequence and a third sampling point sequence;
[0023] The respiratory wave signal acquisition unit is used to perform addition operations on each item in the third amplitude sequence and the third sampling point in sequence, and calculate the corresponding average value to obtain a current respiratory wave signal sequence.
[0024] Optionally, the respiratory rate calculation module includes:
[0025] A maximum value position acquisition unit, used to acquire the current maximum value and the corresponding current maximum value position of the current respiratory wave signal sequence;
[0026] A breathing interval acquisition unit, used to acquire a target number of sampling points between the current maximum value position and the previous maximum value position, and use the target number of sampling points as the breathing interval of the current breathing waveform;
[0027] A breathing interval sequence acquisition unit, used to jump back to the step of acquiring the current maximum value and the corresponding current maximum value position of the current respiratory wave signal sequence, so as to obtain a breathing interval sequence that meets a fourth preset number of sequence items;
[0028] The calculation submodule is used to calculate the respiratory rate based on the respiratory interval sequence, and display the respiratory rate and the corresponding respiratory state.
[0029] Optionally, the computing submodule includes:
[0030] A sequence extraction unit, used to extract a preset number of breathing intervals close to the current time node from the breathing interval sequence to obtain a target breathing interval sequence;
[0031] a coefficient of variation calculation unit, used to calculate the coefficient of variation of the target respiratory interval sequence, and determine whether the coefficient of variation exceeds a second preset threshold;
[0032] a state judgment unit, configured to calculate the respiratory rate based on the target respiratory interval sequence if it is not exceeded, and determine the respiratory state based on the respiratory rate;
[0033] The display unit is used to display the respiratory rate and the corresponding respiratory state; wherein the respiratory state includes a stable state and an unstable state.
[0034] In a second aspect, the present application discloses a method for measuring respiratory rate, comprising:
[0035] Processing the original pulse wave signal collected at the current moment based on a preset frequency interval to obtain a currently processed pulse wave signal, and obtaining a maximum value and a minimum value of the currently processed pulse wave signal;
[0036] Determining the amplitude of the currently processed pulse wave signal based on the maximum value and the minimum value, and acquiring the number of sampling points of the currently processed pulse wave signal based on a preset sampling frequency;
[0037] Re-jump to the step of processing the original pulse wave signal collected at the current moment based on the preset frequency interval to obtain the currently processed pulse wave signal, so as to obtain a first amplitude sequence and a first sampling point number sequence that meet the preset number of sequence items;
[0038] Interpolate the first amplitude sequence and the first sampling point number sequence according to a preset interpolation method to obtain a second amplitude sequence and a second sampling point number sequence, and obtain a current respiratory wave signal sequence based on the second amplitude sequence and the second sampling point number sequence;
[0039] The respiratory rate is calculated based on the current respiratory wave signal sequence, and the respiratory rate and the corresponding respiratory state are displayed.
[0040] In a third aspect, the present application discloses an electronic device, comprising:
[0041] Memory, used to store computer programs;
[0042] A processor is used to execute the computer program to implement the steps of the respiratory rate measurement method disclosed above.
[0043] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the respiratory rate measurement method disclosed above are implemented.
[0044] It can be seen that the present application discloses a respiratory rate measurement device, including a signal processing module, a parameter determination module, a sequence acquisition module, a sequence processing module and a respiratory rate calculation module; wherein the signal processing module is used to process the original pulse wave signal collected at the current moment based on a preset frequency interval to obtain a currently processed pulse wave signal, and obtain the maximum value and the minimum value of the currently processed pulse wave signal; the parameter determination module is used to determine the amplitude of the currently processed pulse wave signal based on the maximum value and the minimum value, and obtain the number of sampling points of the currently processed pulse wave signal based on a preset sampling frequency; the sequence acquisition module is used to jump back to The step of processing the original pulse wave signal collected at the current moment based on the preset frequency interval to obtain the current processed pulse wave signal, so as to obtain a first amplitude sequence and a first sampling point sequence that meet the preset number of sequence items; a sequence processing module, used to interpolate the first amplitude sequence and the first sampling point sequence according to a preset interpolation method to obtain a second amplitude sequence and a second sampling point sequence, and obtain a current respiratory wave signal sequence based on the second amplitude sequence and the second sampling point sequence; a respiratory rate calculation module, used to calculate the respiratory rate based on the current respiratory wave signal sequence, and display the respiratory rate and the corresponding respiratory state. It can be seen that the present application processes the original pulse wave signal collected at the current moment to obtain the currently processed pulse wave signal, and obtains the amplitude and sampling point number of the currently processed pulse wave signal, and so on to obtain the first amplitude sequence and the first sampling point number sequence that meet the preset number of sequence items, and then interpolates the first amplitude sequence and the first sampling point number sequence to obtain the second amplitude sequence and the second sampling point number sequence; then the current respiratory wave signal sequence is obtained according to the second amplitude sequence and the second sampling point number sequence, and then the respiratory rate is calculated according to the obtained current respiratory wave sequence, and the respiratory rate and the corresponding respiratory state are displayed. Since discrete data can be converted into a continuous smooth curve through interpolation, the deformation of the pulse wave signal caused by physiological factors and external factors is reduced, resulting in errors in the extracted sampling points and amplitude, so as to achieve high-quality respiratory rate measurement in the subsequent process, and the data samples required in the interpolation process are small, thereby reducing the process of measuring the respiratory rate, and achieving efficient respiratory rate measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0046] Figure 1 A structural diagram of a respiratory rate measuring device disclosed in the present application;
[0047] Figure 2 A specific original pulse wave signal diagram disclosed in the present application;
[0048] Figure 3 A sequence diagram of the number of sampling points required for a single pulse wave signal after interpolation disclosed in the present application;
[0049] Figure 4 An interpolated amplitude sequence diagram disclosed in the present application;
[0050] Figure 5 A schematic diagram of a module framework of a specific respiratory rate measurement device disclosed in the present application;
[0051] Figure 6 A schematic diagram of a module framework of a specific respiratory rate measurement device disclosed in the present application;
[0052] Figure 7 A schematic diagram of a respiratory wave signal sequence disclosed in this application;
[0053] Figure 8 A flow chart of a respiratory rate measurement method disclosed in this application;
[0054] Fig. 9 A flow chart of a specific respiratory rate measurement method disclosed in this application;
[0055] Fig.10 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.
[0057] Optical plethysmography is an optical measurement technique for detecting changes in blood volume in tissue microvessels. When a light beam is irradiated onto the human body, the light intensity received by the photodetector corresponds to the change in blood volume due to the different light absorption and reflection capabilities of the skin and blood, and the blood volume fluctuates synchronously with the heart's fluctuations. Therefore, changes in light intensity can reflect the rhythm of the heartbeat and form a pulse wave signal. Breathing can cause periodic changes in the envelope, peak interval, peak amplitude, and single peak area of the pulse wave signal, so respiratory frequency estimation can be achieved through this change feature. To this end, the embodiments of the present application disclose a respiratory rate measurement device, method, equipment, and medium, which can efficiently and high-quality extract the respiratory rate from the pulse wave signal obtained by optical data collection.
[0058] See also Figure 1 As shown, the embodiment of the present application discloses a respiratory rate measuring device, which includes:
[0059] The signal processing module 11 is used to process the original pulse wave signal collected at the current moment based on a preset frequency interval to obtain a currently processed pulse wave signal, and obtain the maximum value and the minimum value of the currently processed pulse wave signal.
[0060] In this embodiment, it is necessary to process the single original pulse wave signal collected at the current moment based on the preset frequency interval to obtain the currently processed pulse wave signal. Specifically, a bandpass filter can be used to perform bandpass filtering on the original pulse wave signal according to the preset frequency interval to screen out a stable pulse wave signal. The preset frequency interval is preferably 0.1-4Hz. Then, the maximum and minimum values of the currently processed pulse wave signal are obtained, that is, the maximum and minimum values of the filtered signal. It should be pointed out that when collecting the original pulse wave signal, this embodiment uses a light transmitter to emit a light signal to the human skin, and then analyzes the light intensity received by the light receiver to obtain the waveform signal of the pulse wave, and converts the waveform signal of the pulse wave into an electrical signal, and converts the electrical signal into a digital signal as the original pulse wave signal. Specifically, the signal can be collected by an oximeter. Figure 2 The present application discloses a specific original pulse wave signal diagram.
[0061] The parameter determination module 12 is used to determine the amplitude of the currently processed pulse wave signal based on the maximum value and the minimum value, and to obtain the number of sampling points of the currently processed pulse wave signal based on a preset sampling frequency.
[0062] In this embodiment, after obtaining the maximum and minimum values of a single currently processed pulse wave signal, the amplitude of the currently processed pulse wave signal is determined according to the maximum and minimum values and recorded as Amp, and the amplitude is the difference between the maximum and minimum values. In addition, the number of sampling points of the currently processed pulse wave signal is obtained according to the preset sampling frequency and recorded as Period. It can be understood that when using light to illuminate human skin for real-time collection of pulse wave signals, there is a fixed sampling frequency. The light can be red light, yellow light, or green light. In this embodiment, red light data is used, and the sampling frequency f is s Specifically, the number of sampling points required for a single pulse wave signal is the number of sampling points required for the current maximum value position and the previous maximum value position.
[0063] The sequence acquisition module 13 is used to jump back to the step of processing the original pulse wave signal collected at the current moment based on the preset frequency interval to obtain the current processed pulse wave signal, so as to obtain a first amplitude sequence and a first sampling point number sequence that meet the preset number of sequence items.
[0064] In this embodiment, the step of processing the original pulse wave signal collected at the current moment based on the preset frequency interval to obtain the current processed pulse wave signal is jumped again. That is, since the pulse wave signal is collected in real time, the continuous original pulse wave signal is continuously processed to obtain the point sequence Point_Amp{(x [s] ),(Amp[s])} and the point sequence Point_Period{(x [s] ),(Period[s])}, where s represents the number of preset sequence items, that is, the index of the number of preset sequence items, and x [s] represents the sum of the number of sampling points from the sth pulse wave signal to the starting point of the first pulse wave signal, Amp[s] is the amplitude of the sth pulse wave, and Period[s] is the number of sampling points required for the sth pulse wave signal. That is, the subsequence {Amp[s]} of the point sequence that defines the amplitude is the first amplitude sequence; the subsequence {Period[s]} of the point sequence that defines the sampling time is the first sampling point sequence. It should be pointed out that, whether it is the first amplitude sequence or the first sampling point sequence, the number of them is limited to S. When a new pulse wave signal is obtained, this point sequence is processed in the form of a queue. With the amplitude point sequence Point_Amp{x [s] ,Amp[s]} as an example, when the amplitude of the S+1th pulse wave signal and the corresponding number of sampling points are obtained, the first pulse wave amplitude point (x [1] ,Amp[1]) out of the queue, and the S+1th pulse wave amplitude point (x [S+1] ,Amp[S+1]) is filled into the tail of the queue, the sequence index is updated, and the sequence length is kept at S. Correspondingly, the point sequence Point_Period{x [s] ,Period[s]} is also updated in the above queue form. In this embodiment, S is taken as 30. At the same time, the current pulse rate is calculated, and the calculation formula of the current pulse rate is:
[0065] f s is the sampling frequency, Period is the number of sampling points of the pulse wave signal after current processing, and pulse rate is used to indicate the number of pulse waves in one minute.
[0066] The sequence processing module 14 is used to interpolate the first amplitude sequence and the first sampling point sequence according to a preset interpolation method to obtain a second amplitude sequence and a second sampling point sequence, and obtain a current respiratory wave signal sequence based on the second amplitude sequence and the second sampling point sequence.
[0067] In this embodiment, the first amplitude sequence and the first sampling point sequence are interpolated according to a preset interpolation method to obtain a second amplitude sequence and a second sampling point sequence.
[0068] When interpolating the first amplitude sequence Amp[s], taking the latest four points Amp[n-3], Amp[n-2], Amp[n-1], and Amp[n] as an example, interpolation is performed within the interval of Amp[n-2] and Amp[n-1], and the starting slope of the interpolation is set to the difference quotient value between Amp[n-1] and Amp[n-3]; the ending slope is set to the difference quotient value between Amp[n] and Amp[n-2].
[0069] The calculation formula for the starting slope is:
[0070]
[0071] The calculation formula for the ending slope is:
[0072]
[0073] Then the interpolation function in the interval of Amp[n-2] and Amp[n-1] is obtained according to the difference quotient value:
[0074]
[0075] In the formula, x∈[x [n-2] ,x [n-1] ].
[0076] The same process is applied to Amp[s] to interpolate Amp[s] and construct a new amplitude sequence A[X].
[0077] When interpolating the first sampling point sequence Period[s], taking the latest four points Period[n-3], Period[n-2], Period[n-1], and Period[n] as an example, interpolation is performed within the intervals of Period[n-2] and Period[n-1], and the starting slope of the interpolation is set to the difference quotient value between Period[n-1] and Period[n-3]; the ending slope is set to the difference quotient value between Period[n] and Period[n-2].
[0078] The calculation formula for the starting slope is:
[0079]
[0080] The calculation formula for the ending slope is:
[0081]
[0082] Then the interpolation function in the intervals of Period[n-2] and Period[n-1] is obtained according to the difference quotient value:
[0083]
[0084] In the formula, x∈[x [n-2] ,x [n-1] ].
[0085] The same is applied to Period[s], interpolating Period[s] to construct the sampling point sequence P[X] required for a new single pulse wave signal.
[0086] Figure 3 and Figure 4 They are respectively a sequence diagram of the number of sampling points required for a single pulse wave signal after interpolation and an amplitude sequence diagram after interpolation disclosed in the present application.
[0087] The current respiratory wave signal sequence is generated according to the interpolated second amplitude sequence and the second sampling point number sequence, and is recorded as WaveNew.
[0088] The respiratory rate calculation module 15 is used to calculate the respiratory rate based on the current respiratory wave signal sequence, and display the respiratory rate and the corresponding respiratory state.
[0089] In this embodiment, the current respiratory wave signal sequence obtained above is analyzed to calculate the corresponding respiratory rate, and the respiratory rate and the corresponding respiratory state are displayed through a specific display device, such as a blood oxygen meter display screen.
[0090] It can be seen that the present application discloses a respiratory rate measurement device, including a signal processing module, a parameter determination module, a sequence acquisition module, a sequence processing module and a respiratory rate calculation module; wherein the signal processing module is used to process the original pulse wave signal collected at the current moment based on a preset frequency interval to obtain a currently processed pulse wave signal, and obtain the maximum value and the minimum value of the currently processed pulse wave signal; the parameter determination module is used to determine the amplitude of the currently processed pulse wave signal based on the maximum value and the minimum value, and obtain the number of sampling points of the currently processed pulse wave signal based on a preset sampling frequency; the sequence acquisition module is used to jump back to The step of processing the original pulse wave signal collected at the current moment based on the preset frequency interval to obtain the current processed pulse wave signal, so as to obtain a first amplitude sequence and a first sampling point sequence that meet the preset number of sequence items; a sequence processing module, used to interpolate the first amplitude sequence and the first sampling point sequence according to a preset interpolation method to obtain a second amplitude sequence and a second sampling point sequence, and obtain a current respiratory wave signal sequence based on the second amplitude sequence and the second sampling point sequence; a respiratory rate calculation module, used to calculate the respiratory rate based on the current respiratory wave signal sequence, and display the respiratory rate and the corresponding respiratory state. It can be seen that the present application processes the original pulse wave signal collected at the current moment to obtain the currently processed pulse wave signal, and obtains the amplitude and sampling point number of the currently processed pulse wave signal, and so on to obtain the first amplitude sequence and the first sampling point number sequence that meet the preset number of sequence items, and then interpolates the first amplitude sequence and the first sampling point number sequence to obtain the second amplitude sequence and the second sampling point number sequence; then the current respiratory wave signal sequence is obtained according to the second amplitude sequence and the second sampling point number sequence, and then the respiratory rate is calculated according to the obtained current respiratory wave sequence, and the respiratory rate and the corresponding respiratory state are displayed. Since discrete data can be converted into a continuous smooth curve through interpolation, the deformation of the pulse wave signal caused by physiological factors and external factors is reduced, resulting in errors in the extracted sampling points and amplitude, so as to achieve high-quality respiratory rate measurement in the subsequent process, and the data samples required in the interpolation process are small, thereby reducing the process of measuring the respiratory rate, and achieving efficient respiratory rate measurement.
[0091] See also Figure 5 As shown, the present embodiment discloses a specific module framework schematic diagram of a respiratory rate measurement device. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, it includes:
[0092] The signal processing module 11 may specifically include: a maximum value acquisition unit 111, a rising point determination submodule 112, and a maximum value acquisition unit 113; wherein,
[0093] A maximum value acquisition unit 111 is used to perform first-order derivative processing on the currently processed pulse wave signal to obtain a first-order derivative function, and obtain a number of maximum value points corresponding to the first-order derivative function;
[0094] A rising point determination submodule 112 is used to determine a target maximum point of the first-order derivative function from a number of maximum points according to a preset rule, and use the target maximum point as the current rising point of the currently processed pulse wave signal;
[0095] The maximum value acquisition unit 113 is used to acquire the minimum value of the currently processed pulse wave signal based on the current rising point and the previous rising point, and to determine the maximum value of the currently processed pulse wave signal based on the current rising point and the current pulse rate.
[0096] Furthermore, the rising point determination submodule 112 specifically includes:
[0097] A threshold judgment unit 1121 is used to judge whether the maximum value corresponding to each of the maximum value points exceeds a first preset threshold;
[0098] The target maximum point determination unit 1122 is used to determine the target maximum point of the currently processed pulse wave signal from the maximum points that do not exceed the first preset threshold according to a preset rule.
[0099] The respiratory rate measurement device also includes:
[0100] The pulse rate updating module 16 is used to update the current pulse rate using the currently processed pulse wave signal.
[0101] In this embodiment, it can be understood that when obtaining the maximum and minimum values of the currently processed pulse wave signal, the currently processed pulse wave signal is firstly subjected to first-order derivative processing to obtain a first-order derivative function, and a number of maximum points corresponding to the first-order derivative function are obtained. In this embodiment, according to the characteristics of the pulse wave signal, in general, a first-order derivative function of a pulse wave signal will correspond to two maximum points. Then, according to the preset rules, the point with the larger extreme value of the two maximum points is determined as the target maximum point, and the target maximum point is used as the rising point of the currently processed pulse wave signal. By analogy, a rising point sequence s[n] is generated, which represents a sequence composed of n rising points of the pulse wave signal.
[0102] When determining the rising point of the currently processed pulse wave signal, that is, in the rising point determination submodule 112, first determine whether the maximum value corresponding to each maximum value point exceeds the first preset threshold, that is, determine whether each maximum value is within the preset threshold range. In this embodiment, the first preset threshold is set to 300. If all the maximum values of the currently processed pulse wave signal exceed 300, the signal is discarded and the first-order derivative processing of the next pulse wave signal is performed. Therefore, this embodiment needs to determine the target maximum value point of the currently processed pulse wave signal from the maximum value points that do not exceed the first preset threshold according to the preset rules.
[0103] In the process of determining the target maximum point, the preset rule is that each maximum of the currently processed pulse wave signal needs to be compared with the adjacent first three maximum values, specifically to determine whether the current maximum value is greater than the product of the average of the first three maximum values and the coefficient 0.4. If it is greater, the maximum point corresponding to the current maximum value is retained; and continue to determine whether the number of sampling points between the current maximum point and the migration maximum point is within the interval [60,180]. If it is in this interval, the current maximum point is retained. That is, if the above conditions are met at the same time, the maximum point is determined as the target maximum point, and the target maximum point is used as the current rising point of the currently processed pulse wave signal.
[0104] In the maximum value acquisition unit 113, the minimum value of the currently processed pulse wave signal is obtained based on the current rising point and the previous rising point, and the maximum value of the currently processed pulse wave signal is determined based on the current rising point and the current pulse rate. That is, assuming that the currently processed pulse wave signal is the ath, the rising point Rise[a] of the ath pulse wave signal is taken as the starting point, and the minimum value of the ath pulse wave signal is found within the position interval between the rising point Rise[a] and Rise[a-1]; then the maximum value of the pulse wave signal is found within a certain time period Δt after the rising point Rise[a], Δt represents the number of sampling points required for 1 / 3 of the pulse wave signal, which changes according to the real-time pulse rate value, and its calculation formula is:
[0105] f s is the sampling frequency;
[0106] When calculating the initial value Δt0 of Δt, the default pulse rate value is 60. s When 120 is taken, Δt0=(120*60) / (60*3).
[0107] Furthermore, in the pulse rate update module 16, the current processed pulse wave signal is used to update the current pulse rate, that is, when the amplitude of s+1 pulse wave signals and the corresponding number of sampling points are obtained, it is necessary to calculate the real-time pulse rate of the s+1th pulse wave signal and update it to the current real-time pulse rate value, and use the updated real-time pulse rate value when looking for the maximum and minimum values next time.
[0108] It can be seen that when obtaining the maximum and minimum values of the currently processed pulse wave signal, the embodiment of the present application needs to perform first-order derivative processing on the currently processed pulse wave signal to find the maximum point of the first-order derivative function, and determine the current rising point of the currently processed pulse wave signal based on threshold judgment and preset rules, and then obtain the maximum and minimum values, and also need to update the current pulse rate.
[0109] See also Figure 6 As shown, the present embodiment discloses a specific module framework schematic diagram of a respiratory rate measurement device. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, it includes:
[0110] The sequence processing module 14 may specifically include: a low-pass filtering unit 141 and a respiratory wave signal acquiring unit 142, wherein:
[0111] A low-pass filtering unit 141 is used to perform low-pass filtering on the second amplitude sequence and the second sampling point sequence using a preset cutoff frequency to obtain a third amplitude sequence and a third sampling point sequence;
[0112] The respiratory wave signal acquisition unit 142 is used to perform addition operations on each item in the third amplitude sequence and the third sampling point in sequence, and calculate the corresponding average value to obtain a current respiratory wave signal sequence.
[0113] In this embodiment, it is necessary to use a preset cutoff frequency to perform low-pass filtering on the second amplitude sequence A[X] and the second sampling point sequence P[X] to filter out the influence of baseline drift, and obtain the third amplitude sequence A1[X] and the third sampling point sequence P1[X], wherein the preset cutoff frequency is preferably 0.5 Hz. Then, the respiratory wave signal WaveNew is generated by fusion. The specific fusion method is: the filtered third amplitude sequence A1[X] and the filtered third sampling point sequence P1[X] are added and averaged item by item to form the respiratory wave signal sequence WaveNew. The calculation formula is:
[0114]
[0115] Figure 7 This is a schematic diagram of a respiratory wave signal sequence disclosed in this application.
[0116] The respiratory rate calculation module 15 may specifically include:
[0117] A maximum value position acquisition unit 151, used to acquire the current maximum value and the corresponding current maximum value position of the current respiratory wave signal sequence;
[0118] A breathing interval acquisition unit 152, used to acquire a target number of sampling points between the current maximum value position and the previous maximum value position, and use the target number of sampling points as the breathing interval of the current breathing waveform;
[0119] A breathing interval sequence acquiring unit 153, configured to jump back to the step of acquiring the current maximum value and the corresponding current maximum value position of the current respiratory wave signal sequence, so as to obtain a breathing interval sequence that satisfies a fourth preset number of sequence items;
[0120] The calculation submodule 154 is used to calculate the respiratory rate based on the respiratory interval sequence, and display the respiratory rate and the corresponding respiratory state.
[0121] In this embodiment, it is necessary to first determine the current maximum value of the current respiratory wave signal sequence, and compare each item in the WaveNew sequence with its first 8 items, the last 8 items, and the average value of the first 8 items and the average value of the last 8 items, so as to find the current maximum value in this WaveNew sequence. The breathing interval of the currently calculated respiratory waveform is determined by the current maximum value in the WaveNew sequence. The breathing interval is calculated as follows: the difference in the number of sampling points between the current maximum position of the respiratory wave and the previous maximum position of the respiratory wave. As the WaveNew sequence is continuously updated, the maximum value is also continuously updated, and then the breathing interval of the respiratory wave where the maximum value is located is also continuously updated. By analogy, a breathing interval sequence that meets the fourth preset number of sequence items is obtained, which is recorded as {RespRate[t]}, which represents the breathing interval sequence of the respiratory waveform where the maximum value in t WaveNew sequences is located. Then, the respiratory rate is obtained according to the respiratory interval sequence, and the respiratory rate and the corresponding respiratory state are displayed.
[0122] Furthermore, the calculation submodule 154 further includes:
[0123] A sequence extraction unit 1541 is used to extract a preset number of breathing intervals close to the current time node from the breathing interval sequence to obtain a target breathing interval sequence;
[0124] A coefficient of variation calculation unit 1542, used to calculate the coefficient of variation of the target respiratory interval sequence, and determine whether the coefficient of variation exceeds a second preset threshold;
[0125] a state judgment unit 1543, configured to calculate the respiratory rate based on the target respiratory interval sequence if it does not exceed, and determine the respiratory state based on the respiratory rate;
[0126] The display unit 1544 is used to display the respiratory rate and the corresponding respiratory state; wherein the respiratory state includes a stable state and an unstable state.
[0127] In an embodiment of the present application, a preset number of breathing intervals close to the current time node are first extracted from the breathing interval sequence to obtain a target breathing interval sequence, wherein the preset number can be specifically 14, that is, the 14 latest breathing intervals are extracted, and then the coefficient of variation of these 14 values is calculated. In order to determine whether the currently extracted respiratory wave sequence is in a stable state, it can be determined based on the variability of the breathing interval sequence {RespRate[t]}, wherein the variability is reflected by the coefficient of variation, and the coefficient of variation is the magnitude of the discreteness of the reflected data. The larger the coefficient of variation, the more discrete the data. By obtaining the coefficient of variation of these 14 values, it is possible to determine whether the data in the breathing interval sequence {RespRate[t]} is in a stable state, wherein the calculation formula of the coefficient of variation is:
[0128]
[0129] The result of the coefficient of variation is compared with the second preset threshold to determine whether the respiratory rate can be calculated. The second preset threshold can be set to 0.6. Specifically, the obtained coefficient of variation is used to determine whether the respiratory state is stable at this time. If the coefficient of variation is greater than 0.6, it is an unstable state, the current state is displayed, and the next pulse wave is processed again; if the coefficient of variation is less than 0.6, it indicates that the data of the {RespRate[t]} sequence is relatively stable and the respiratory rate can be calculated. The respiratory rate is defined as the number of breaths per minute. Breathing is based on one inhalation and exhalation as a respiratory cycle. The respiratory rate can be calculated by fitting the breathing interval required for the average fluctuation of the respiratory wave.
[0130] The breathing interval of the breathing wave where the 14 maximum values in the {RespRate[t]} sequence are located is calculated. The specific formula is:
[0131]
[0132] Where N is 14, f s is the sampling frequency, and the respiratory rate represents the number of respiratory waves per minute.
[0133] Furthermore, it is necessary to determine whether the respiratory rate is stable: compare the current respiratory rate obtained with the previous respiratory rate, and determine whether the change in the respiratory rate exceeds the predetermined change within the predetermined time. If it exceeds, it is unstable, and an unstable state is output, while continuing to process the next pulse wave; if it does not exceed, a stable state is output, and the respiratory rate value required at this time is output. In this design, the predetermined time is set to 5 seconds, and the predetermined change is set to 2, that is, if the change exceeds 2 within 5 seconds, the respiratory rate is determined to be unstable, and an unstable state is output, while continuing to process the next pulse wave. If the change does not exceed 2 within 5 seconds, a stable state is output, and the respiratory rate required at this time is output. Specifically, the respiratory rate and the corresponding respiratory state can be displayed on the oximeter display. It can be seen that after the embodiment of the present application performs low-pass filtering on the second amplitude sequence and the second sampling point sequence, the average is added item by item to obtain the current respiratory wave signal sequence, and then the current respiratory wave signal sequence is processed accordingly to obtain the respiratory interval sequence, and then the coefficient of variation is obtained based on the respiratory interval sequence, and the result of the coefficient of variation is compared with the second preset threshold to determine whether the respiratory state is in a stable state at this time. If the respiratory state is in a stable state, it is determined that the respiratory rate can be calculated at present. In addition, after calculating the respiratory rate, it is also necessary to determine whether the respiratory rate is stable, and display the respiratory rate and the corresponding respiratory state.
[0134] In particular, in another specific embodiment, the respiratory rate can be directly obtained after the respiratory interval sequence is obtained, that is, there is no need to obtain the coefficient of variation and compare the obtained coefficient of variation with the second preset threshold.
[0135] See also Figure 8 and Fig. 9 As shown, the embodiment of the present application discloses a method for measuring respiratory rate, the method comprising:
[0136] Step S11: processing the original pulse wave signal collected at the current moment based on a preset frequency interval to obtain a currently processed pulse wave signal, and obtaining the maximum value and the minimum value of the currently processed pulse wave signal;
[0137] Step S12: determining the amplitude of the currently processed pulse wave signal based on the maximum value and the minimum value, and acquiring the number of sampling points of the currently processed pulse wave signal based on a preset sampling frequency;
[0138] Step S13: Jumping back to the step of processing the original pulse wave signal collected at the current moment based on the preset frequency interval to obtain the currently processed pulse wave signal, so as to obtain a first amplitude sequence and a first sampling point number sequence that meet the preset number of sequence items;
[0139] Step S14: interpolating the first amplitude sequence and the first sampling point number sequence according to a preset interpolation method to obtain a second amplitude sequence and a second sampling point number sequence, and obtaining a current respiratory wave signal sequence based on the second amplitude sequence and the second sampling point number sequence;
[0140] Step S15: Calculate the respiratory rate based on the current respiratory wave signal sequence, and display the respiratory rate and the corresponding respiratory state.
[0141] It can be seen that the present application discloses a respiratory rate measurement method, including: processing the original pulse wave signal collected at the current moment based on a preset frequency interval to obtain a currently processed pulse wave signal, and obtaining the maximum value and minimum value of the currently processed pulse wave signal; determining the amplitude of the currently processed pulse wave signal based on the maximum value and the minimum value, and obtaining the number of sampling points of the currently processed pulse wave signal based on a preset sampling frequency; jumping back to the step of processing the original pulse wave signal collected at the current moment based on the preset frequency interval to obtain the currently processed pulse wave signal, so as to obtain a first amplitude sequence and a first sampling point number sequence that meet the preset number of sequence items; interpolating the first amplitude sequence and the first sampling point number sequence according to a preset interpolation method to obtain a second amplitude sequence and a second sampling point number sequence, and obtaining a current respiratory wave signal sequence based on the second amplitude sequence and the second sampling point number sequence; calculating the respiratory rate based on the current respiratory wave signal sequence, and displaying the respiratory rate and the corresponding respiratory state. It can be seen that the present application processes the original pulse wave signal collected at the current moment to obtain the currently processed pulse wave signal, and obtains the amplitude and sampling point number of the currently processed pulse wave signal, and so on to obtain the first amplitude sequence and the first sampling point number sequence that meet the preset sequence item number, and then interpolates the first amplitude sequence and the first sampling point number sequence to obtain the second amplitude sequence and the second sampling point number sequence; then the current respiratory wave signal sequence is obtained according to the second amplitude sequence and the second sampling point number sequence, and then the respiratory rate is calculated according to the obtained current respiratory wave sequence, and the respiratory rate and the corresponding respiratory state are displayed. Since interpolation can make discrete data into a continuous smooth curve, the pulse wave signal is reduced from being deformed by physiological factors and external factors, resulting in errors in the extracted sampling points and amplitude, so as to achieve high-quality respiratory rate measurement in the subsequent process, and the data samples required in the interpolation process are small, thereby reducing the amount of calculation and calculation process of measuring the respiratory rate, and can achieve efficient respiratory rate measurement.
[0142] Fig.10A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Specifically, it may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the respiratory rate measurement method performed by the electronic device disclosed in any of the aforementioned embodiments.
[0143] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0144] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0145] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.
[0146] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the respiratory rate measurement method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to data received by the electronic device and transmitted from an external device, the data 223 can also include data collected by its own input and output interface 25, etc.
[0147] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the method steps performed in the respiratory rate measurement process disclosed in any of the aforementioned embodiments are implemented.
[0148] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0149] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0150] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0151] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0152] The respiratory rate measurement device, method, equipment and storage medium provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A respiratory rate measuring device, characterized in that: include: A signal processing module, used to process the original pulse wave signal collected at the current moment based on a preset frequency interval to obtain a currently processed pulse wave signal, and obtain a maximum value and a minimum value of the currently processed pulse wave signal; a parameter determination module, configured to determine the amplitude of the currently processed pulse wave signal based on the maximum value and the minimum value, and to obtain the number of sampling points of the currently processed pulse wave signal based on a preset sampling frequency; A sequence acquisition module, used to jump back to the step of processing the original pulse wave signal collected at the current moment based on the preset frequency interval to obtain the currently processed pulse wave signal, so as to obtain a first amplitude sequence and a first sampling point number sequence that meet the preset number of sequence items; A sequence processing module, configured to interpolate the first amplitude sequence and the first sampling point number sequence according to a preset interpolation method to obtain a second amplitude sequence and a second sampling point number sequence, and obtain a current respiratory wave signal sequence based on the second amplitude sequence and the second sampling point number sequence; A respiratory rate calculation module, used to calculate the respiratory rate based on the current respiratory wave signal sequence, and display the respiratory rate and the corresponding respiratory state; Wherein, the sequence processing module includes: A low-pass filtering unit, configured to perform low-pass filtering on the second amplitude sequence and the second sampling point number sequence using a preset cutoff frequency to obtain a third amplitude sequence and a third sampling point number sequence; A respiratory wave signal acquisition unit, used for sequentially adding each item in the third amplitude sequence and the third sampling point number sequence, and calculating the corresponding average value to obtain a current respiratory wave signal sequence; The respiratory rate calculation module comprises: A maximum value position acquisition unit, used to acquire the current maximum value and the corresponding current maximum value position of the current respiratory wave signal sequence; A breathing interval acquisition unit, used to acquire a target number of sampling points between the current maximum value position and the previous maximum value position, and use the target number of sampling points as the breathing interval of the current breathing waveform; A breathing interval sequence acquisition unit, used to jump back to the step of acquiring the current maximum value and the corresponding current maximum value position of the current respiratory wave signal sequence, so as to obtain a breathing interval sequence that meets a fourth preset number of sequence items; A calculation submodule, used for calculating the respiratory rate based on the respiratory interval sequence, and displaying the respiratory rate and the corresponding respiratory state; The computing submodule comprises: A sequence extraction unit, used to extract a preset number of breathing intervals close to the current time node from the breathing interval sequence to obtain a target breathing interval sequence; a coefficient of variation calculation unit, used to calculate the coefficient of variation of the target respiratory interval sequence, and determine whether the coefficient of variation exceeds a second preset threshold; a state judgment unit, configured to calculate the respiratory rate based on the target respiratory interval sequence if it is not exceeded, and determine the respiratory state based on the respiratory rate; The display unit is used to display the respiratory rate and the corresponding respiratory state; wherein the respiratory state includes a stable state and an unstable state.
2. The respiratory rate measuring device according to claim 1, characterized in that The signal processing module comprises: A maximum value acquisition unit, used for performing first-order derivative processing on the currently processed pulse wave signal to obtain a first-order derivative function, and obtaining a number of maximum value points corresponding to the first-order derivative function; A rising point determination submodule, used to determine a target maximum point of the first-order derivative function from a number of maximum points according to a preset rule, and use the target maximum point as the current rising point of the currently processed pulse wave signal; The maximum value acquisition unit is used to acquire the minimum value of the currently processed pulse wave signal based on the current rising point and the previous rising point, and to determine the maximum value of the currently processed pulse wave signal based on the current rising point and the current pulse rate.
3. The respiratory rate measuring device according to claim 2, characterized in that The rising point determination submodule further includes: A threshold judgment unit, used to judge whether the maximum value corresponding to each of the maximum value points exceeds a first preset threshold; The target maximum point determination unit is used to determine the target maximum point of the currently processed pulse wave signal from the maximum points that do not exceed the first preset threshold according to a preset rule.
4. The respiratory rate measuring device according to claim 2, characterized in that Also includes: The pulse rate updating module is used to update the current pulse rate using the currently processed pulse wave signal.
5. A method for measuring respiratory rate, characterized in that: include: Processing the original pulse wave signal collected at the current moment based on a preset frequency interval to obtain a currently processed pulse wave signal, and obtaining a maximum value and a minimum value of the currently processed pulse wave signal; Determining the amplitude of the currently processed pulse wave signal based on the maximum value and the minimum value, and acquiring the number of sampling points of the currently processed pulse wave signal based on a preset sampling frequency; Re-jump to the step of processing the original pulse wave signal collected at the current moment based on the preset frequency interval to obtain the currently processed pulse wave signal, so as to obtain a first amplitude sequence and a first sampling point number sequence that meet the preset number of sequence items; Interpolate the first amplitude sequence and the first sampling point number sequence according to a preset interpolation method to obtain a second amplitude sequence and a second sampling point number sequence, and obtain a current respiratory wave signal sequence based on the second amplitude sequence and the second sampling point number sequence; Calculating a respiratory rate based on the current respiratory wave signal sequence, and displaying the respiratory rate and a corresponding respiratory state; The step of obtaining the current respiratory wave signal sequence based on the second amplitude sequence and the second sampling point number sequence includes: Performing low-pass filtering on the second amplitude sequence and the second sampling point number sequence using a preset cutoff frequency to obtain a third amplitude sequence and a third sampling point number sequence; performing an addition operation on each item in the third amplitude sequence and the third sampling point number sequence in turn, and calculating the corresponding average value to obtain a current respiratory wave signal sequence; The calculating of the respiratory rate based on the current respiratory wave signal sequence and displaying the respiratory rate and the corresponding respiratory state comprises: Obtaining a current maximum value and a corresponding current maximum value position of the current respiratory wave signal sequence; Obtaining a target number of sampling points between the current maximum value position and the previous maximum value position, and using the target number of sampling points as the breathing interval of the current breathing waveform; Jumping back to the step of obtaining the current maximum value of the current respiratory wave signal sequence and the corresponding current maximum value position, so as to obtain a respiratory interval sequence that meets the fourth preset number of sequence items; Calculating a respiratory rate based on the respiratory interval sequence, and displaying the respiratory rate and a corresponding respiratory state; The step of calculating the respiratory rate based on the respiratory interval sequence and displaying the respiratory rate and the corresponding respiratory state comprises: Extracting a preset number of breathing intervals close to the current time node from the breathing interval sequence to obtain a target breathing interval sequence; Calculating a coefficient of variation of the target respiratory interval sequence, and determining whether the coefficient of variation exceeds a second preset threshold; If not, calculating the respiratory rate based on the target respiratory interval sequence, and determining the respiratory state based on the respiratory rate; The respiratory rate and the corresponding respiratory state are displayed; wherein the respiratory state includes a stable state and an unstable state.
6. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of the respiratory rate measurement method as claimed in claim 5.
7. A computer-readable storage medium, characterized in that: Used to store a computer program; wherein, when the computer program is executed by a processor, the steps of the respiratory rate measurement method as claimed in claim 5 are implemented.
