Respiration rate measuring method and device

By performing collaborative filtering processing on the pressure signals in the chest and abdomen area, the problem of insufficient accuracy of respiratory rate measurement in multiple people or complex environments in the existing technology is solved, and high-accuracy respiratory rate in multiple people and complex scenes is achieved. Measurement.

CN118697322AActive Publication Date: 2024-09-27AI DREAM (ZHUHAI) INTELLIGENT TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411068028.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-09-27
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

Existing respiration rate measurement methods have accuracy problems in multiple people or complex environments, making it difficult to effectively measure respiration rate, especially in scenarios with large environmental interference.

Method used

By collecting pressure map data, the chest and abdomen areas are determined, and the pressure signals in uninhabited areas are used for collaborative filtering processing on the chest and abdomen areas to obtain adaptive filtering signals, and band-pass filtering is performed to extract respiratory wave signals, and the peak interval is calculated to Calculate respiration rate.

Benefits of technology

It improves the accuracy of respiratory rate measurement, adapts to multiple people and complex scenes, improves signal quality, and enables accurate measurement in environments with multiple people and objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118697322A
    Figure CN118697322A
Patent Text Reader

Abstract

The invention discloses a respiratory rate measuring method and device, and the method comprises the steps: collecting pressure diagram data, and determining a thoracic and abdominal region in the pressure diagram data; determining a target unmanned area according to a preset rule, and obtaining first pressure data of the thoracic and abdominal area and second pressure data of the target unmanned area; performing collaborative filtering processing on the first pressure data through the second pressure data to obtain an adaptive filtering signal; carrying out band-pass filtering processing on the self-adaptive filtering signal to obtain a respiratory wave signal; carrying out peak point extraction on the respiratory wave signal to obtain a peak interval; a respiratory rate value is calculated based on the peak interval. By extracting the position of the chest and abdomen and using the pressure signal of the unmanned area to carry out collaborative filtering on the pressure signal of the position of the chest and abdomen, the signal quality is improved to a certain extent, the respiratory rate accuracy is improved, respiratory rate measurement can be carried out in complex scenes such as multiple persons and multiple objects, the application scene is wide, and the accuracy is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home technology, and in particular to a respiratory rate measurement method, device, computer equipment and storage medium. Background Art

[0002] With the development of intelligent mattresses, the functions of smart mattresses are becoming more and more powerful. Some mattresses have realized the monitoring of physiological parameter data (weight, heart rate, breathing, body movement, etc.). However, during the testing process, they are often affected by the environment, multiple people and objects, etc., resulting in less than ideal accuracy of respiratory rate measurement.

[0003] At present, the respiratory rate measurement schemes are mainly divided into contact and non-contact. Common contact schemes include electrocardiogram, electromyography, photoplethysmography, etc., and non-contact schemes include radar waves, image processing, etc. The existing bed-based respiratory rate measurement schemes are mainly based on ballistocardiogram (BCG) and air bag pressure signals. This type of method has less environmental interference and has achieved high accuracy in respiratory rate measurement in single-person scenarios. However, when there are multiple people, other vibration sources in the environment, or strong electromagnetic sources in the environment, the accuracy of its measurement will be greatly reduced. Especially in multi-person scenarios, the measurement results of existing methods are basically unreliable. Summary of the invention

[0004] Based on this, it is necessary to provide a respiratory rate measurement method, device, computer equipment and storage medium to address the above technical problems, so as to solve at least one problem existing in the above-mentioned prior art.

[0005] In a first aspect, the embodiment of the present application is implemented as follows: a method for measuring respiratory rate is provided, comprising the following steps:

[0006] Collecting pressure map data and determining the chest and abdomen regions in the pressure map data;

[0007] Determine the target unmanned area according to a preset rule, and obtain the first pressure data of the chest and abdomen area and the second pressure data of the target unmanned area;

[0008] Performing collaborative filtering processing on the first pressure data through the second pressure data to obtain an adaptive filtering signal;

[0009] Performing bandpass filtering on the adaptive filtering signal to obtain a respiratory wave signal;

[0010] Extracting peak points of the respiratory wave signal to obtain peak intervals;

[0011] Based on the peak interval, a respiratory rate value is calculated.

[0012] In a second aspect, a respiratory rate measuring device is provided, comprising:

[0013] A chest and abdomen region determination unit, used to collect pressure map data and determine the chest and abdomen region in the pressure map data;

[0014] A pressure data acquisition unit, configured to determine a target unmanned area according to a preset rule, and acquire first pressure data of the chest and abdomen area and second pressure data of the target unmanned area;

[0015] an adaptive filtering acquisition unit, configured to perform collaborative filtering processing on the first pressure data through the second pressure data to obtain an adaptive filtering signal;

[0016] A respiratory wave signal acquisition unit, used for performing bandpass filtering on the adaptive filtering signal to obtain a respiratory wave signal;

[0017] A peak interval acquisition unit, used for extracting peak points of the respiratory wave signal to obtain a peak interval;

[0018] The respiratory rate value acquisition unit is used to calculate the respiratory rate value based on the peak interval.

[0019] In a third aspect, a computer device is provided, comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the respiratory rate measurement method as described above when executing the computer-readable instructions.

[0020] In a fourth aspect, a readable storage medium is provided, wherein the readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the respiratory rate measurement method as described above are implemented.

[0021] The above-mentioned respiratory rate measurement method, device, computer equipment and storage medium, the method of which is implemented, includes: collecting pressure map data, determining the chest and abdomen area in the pressure map data; determining the target unmanned area according to preset rules, obtaining the first pressure data of the chest and abdomen area and the second pressure data of the target unmanned area; performing collaborative filtering processing on the first pressure data through the second pressure data to obtain an adaptive filtering signal; performing bandpass filtering processing on the adaptive filtering signal to obtain a respiratory wave signal; extracting the peak points of the respiratory wave signal to obtain the peak interval; and calculating the respiratory rate value based on the peak interval. In the embodiment of the present application, by extracting the position of the chest and abdomen, and using the pressure signal of the unmanned area to perform collaborative filtering on the pressure signal of the chest and abdomen, the signal quality is improved to a certain extent, the accuracy of the respiratory rate is improved, and the respiratory rate measurement can be realized in complex scenes such as multiple people and multiple people and multiple objects, which is suitable for a wide range of scenes and has higher accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0023] Figure 1 is a flow chart of a method for measuring respiratory rate in one embodiment of the present invention;

[0024] Figure 2 is a network architecture diagram of a deep learning model in one embodiment of the present invention;

[0025] Figure 3 is a schematic diagram of the chest and abdomen area of ​​a user in a supine position in one embodiment of the present invention;

[0026] Figure 4 is a schematic diagram of the chest and abdomen area of ​​a user in a prone position in one embodiment of the present invention;

[0027] Figure 5 is a schematic diagram of the chest and abdomen areas of two users in a side-lying state in one embodiment of the present invention;

[0028] Figure 6 is a schematic diagram of the chest and abdomen area of ​​a user during sleep and an unmanned area in one embodiment of the present invention;

[0029] Figure 7 is a curve diagram of the change of the original pressure signal in one embodiment of the present invention;

[0030] Figure 8 is a curve diagram of the change of the pressure signal in the chest and abdomen area in one embodiment of the present invention;

[0031] Fig. 9 is a curve diagram of a pressure signal change in an unmanned area in one embodiment of the present invention;

[0032] Fig.10 is a curve diagram of a change of an adaptive filtering signal in one embodiment of the present invention;

[0033] Fig.11 is a schematic diagram of a change curve of a selected breathing peak point in one embodiment of the present invention;

[0034] Fig.12 is a graph showing changes in respiratory rate measured in one embodiment of the present invention;

[0035] Fig.13is a schematic structural diagram of a respiratory rate measuring device in one embodiment of the present invention;

[0036] Fig.14 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 creative work are within the scope of protection of the present invention.

[0038] In one embodiment, if Figure 1 As shown, a flow chart of a method for measuring respiratory rate is provided, comprising the following steps:

[0039] In step S110, pressure map data is collected to determine the chest and abdomen regions in the pressure map data;

[0040] In an embodiment of the present application, a pressure detection device may be provided on an object on which a user rests. For example, a pressure blanket may be provided on a smart mattress, sofa, bed, or other device on which a user lies, or a plurality of pressure detection devices arranged in an array may be provided. The pressure detection devices may be arranged in an array equidistantly in the longitudinal and transverse directions to collect the pressure map data.

[0041] It can be understood that the pressure map data may include a pressure image of the area where the human body is located and a pressure image of the unmanned area. The pressure image of the area where the human body is located can be connected according to the pressure detection device that obtains the pressure data to obtain the image of the area where the human body is located. The unmanned area may refer to an area where the pressure detection device does not detect pressure data, that is, an area where there is no human contact and no object pressure.

[0042] Wherein, the pressure detection device can be a pressure sensor.

[0043] In the embodiment of the present application, the pressure map data can be input into a pre-trained deep learning model for detection to obtain chest and abdomen position information, such as the horizontal coordinate, vertical coordinate, chest and abdomen frame width, chest and abdomen frame height, etc. of the center point of the chest and abdomen, and the chest and abdomen area can be extracted based on the chest and abdomen position information. At the same time, the pre-trained deep learning model can also output the sleeping posture type, such as supine / prone, side-lying, and others.

[0044] It can be understood that the chest and abdomen regions may include multiple regions. For example, in a scenario where two people are in bed or multiple people are in bed, multiple chest and abdomen regions may be extracted to detect the breathing rates of multiple users simultaneously.

[0045] Furthermore, the output results of the pre-trained deep learning model can also determine the number of users, so that based on the number of users, it can be determined whether it is consistent with the number of chest and abdominal areas obtained, so as to avoid the problem of false detection or detect other objects as the chest and abdominal areas of the human body, such as animals.

[0046] In one embodiment of the present application, the network architecture of the deep learning model can be specifically as follows: Figure 2 As shown, the specific operations of the convolution layer include three steps: Conv2d (convolution), BN (batch normalization), and ReLU (activation). K5 represents the convolution kernel size of 5*5, K3 represents the convolution kernel size of 3*3, s2 represents the step size of 2, s1 represents the step size of 1, p1 represents the padded maxpooling, c16 represents the number of convolution kernels of 16, c32 represents the number of convolution kernels of 32, c64 represents the number of convolution kernels of 64, and 32*16*32 represents the number and form of the output parameters of this layer. The fully connected layer corresponds to the Fully connected layer. Upsampling x2 represents upsampling by 2 times, upsampling x4 represents upsampling by 4 times, downsampling x2 represents downsampling by 2 times, and downsampling x4 represents downsampling by 4 times. It includes two operations: summation and ReLU. The basic block is the Basic Block layer in ResNet. The convolution layer 1*1 is a 1*1 size convolution layer, which is used to adjust the input size and shape and increase nonlinearity (which also includes ReLU operation). The pressure map data passes through the input layer Input layer, and the input parameter is 64*31*1. Then, after Conv2d (convolution) processing, it is input into the Basic Block layer in ResNet for processing and then sent to Conv1*1 for convolution processing. After classification processing through the fully connected layer, multiple features are output, which may specifically include the location information of the chest and abdomen. Among them, the chest and abdomen location information may include the horizontal coordinate, vertical coordinate, chest and abdomen box width, and chest and abdomen box height of the center point of the chest and abdomen.

[0047] See also Figure 3-Figure 5 , showing the chest and abdomen areas under different sleeping positions. The chest and abdomen areas in the figure are framed with a white frame. Figure 3 It is the chest and abdomen area of ​​the user in supine position. Figure 4 It is the chest and abdomen area of ​​the user in prone position. Figure 5 It refers to the chest and abdominal areas when two people are lying on their sides.

[0048] In an embodiment of the present application, a sample data set can be collected, and the sample data set may include pre-collected pressure map sample data, which can manually mark the chest and abdominal areas. The deep learning model is iteratively trained using the pre-collected pressure map sample data until the deep learning model meets preset convergence conditions. For example, when the number of iterations exceeds a preset number, or the loss value is lower than a preset loss threshold, a trained deep learning model can be obtained for subsequent extraction of the chest and abdominal areas.

[0049] It can be understood that the deep learning model can continuously optimize its model parameters during use to obtain the optimal deep learning model.

[0050] In step S120, a target unmanned area is determined according to a preset rule, and first pressure data of the chest and abdomen area and second pressure data of the target unmanned area are acquired;

[0051] In the embodiment of the present application, the area where the human body is located and the target unmanned area can be determined by obtaining the pressure data detected by each pre-set pressure detection device, wherein the area where the pressure detection device with pressure data changes is located is the area where the human body is located, and the area where the pressure detection device without pressure data changes is the target unmanned area. Based on the area where the human body is located, the area where the human chest and abdomen are located can be further determined. For details, see Figure 6 , showing an example of a pressure map of a user in bed, where white boxes are used to select the target unmanned area and the user's chest and abdomen areas.

[0052] Furthermore, after the chest and abdomen area and the target unmanned area are determined, the pressure values ​​collected by each pressure detection device in the chest and abdomen area at the current moment can be obtained, and then the pressure values ​​can be added and the average value can be calculated to obtain the first pressure data. Similarly, the second pressure data of the target unmanned area can also be obtained by calculating the pressure values ​​collected by each pressure detection device in the target unmanned area and calculating the average value. Among them, when the user is in the sleep process, the first pressure data can be specifically as follows Figure 8 As shown, Figure 8 The upper middle figure is a curve diagram of the pressure data change in the chest and abdomen area within 0 to 3000 seconds, and the lower figure is an enlarged detailed display diagram of the pressure change in the chest and abdomen area within 0 to 120 seconds. The second pressure data can be specifically as follows Fig. 9 As shown, Fig. 9 The upper middle figure is a curve diagram of the pressure data change in the unmanned area from 0 to 3000 seconds, and the lower figure is an enlarged detailed display of the pressure change in the unmanned area from 0 to 120 seconds. The original pressure data can be Figure 7 As shown, Figure 7The upper middle figure is a pressure change curve of the entire pressure area from 0 to 3000 seconds, and the lower figure is an enlarged detail display of the pressure change from 0 to 120 seconds.

[0053] It can be understood that the area of ​​the target no-man's land may be the same as the area of ​​the chest and abdomen area. For example, the length and width of the chest and abdomen area are determined as the length and width of the no-man's land, and then the target no-man's land that meets the length and width can be extracted from multiple no-man's lands.

[0054] In step S130, collaborative filtering is performed on the first pressure data using the second pressure data to obtain an adaptive filtering signal;

[0055] In the embodiment of the present application, after obtaining the first pressure data and the second pressure data, the first pressure data can be subjected to collaborative filtering processing through the second pressure data to obtain the adaptive filtering signal, that is, through Fig. 9 The second pressure data pair shown Figure 8 The first pressure data shown is collaboratively filtered to obtain an adaptive filtering signal.

[0056] It should be noted that although there are no people and no heavy objects in the unmanned area, there will still be small pressure values, mainly due to electromagnetic and other noise interference in the environment. Therefore, the pressure data of the unmanned area is used to filter the pressure data of the chest and abdominal areas to filter out environmental interference noise.

[0057] The filtering method includes but is not limited to RLS (Recursive Least Squares) and LMS (least mean square). The adaptive filtering signal after filtering can be specifically as follows: Fig.10 As shown, the upper part shows the filter signal change curve within the time range of 0 to 3000 s, and the lower part shows the details of the filter signal within 0 to 120 s.

[0058] In step S140, the adaptive filtering signal is subjected to bandpass filtering to obtain a respiratory wave signal;

[0059] In an embodiment of the present application, after the adaptive filtering signal is obtained, the adaptive filtering can be bandpass filtered through a bandpass filter. The types of the bandpass filter include but are not limited to second-order bandpass filtering, resonance filters, and IIR-type butterworth filters. The passband frequency range can be [0.1, 1.5] Hz, allowing signals in the passband frequency range to pass through, while blocking or weakening signals of other frequencies, so that the respiratory wave signal can be obtained.

[0060] In step S150, peak points of the respiratory wave signal are extracted to obtain peak intervals;

[0061] In the embodiment of the present application, after bandpass filtering, a respiratory wave signal can be obtained, and the maximum and minimum points of the respiratory wave signal are detected, and based on the maximum and minimum points, the peak point of the respiratory wave signal is obtained. The selected peak point can be specifically as follows: Fig.11 As shown in the figure, the position of the wave crest point is shown as a hollow circle. Based on the position of the wave crest point, the time interval between adjacent wave crest points, that is, the peak interval, can be obtained.

[0062] In step S160, the respiratory rate value is calculated based on the peak interval.

[0063] In the embodiment of the present application, based on the peak interval, the stability characteristics of the respiratory wave signal, that is, the peak amplitude stability, the time interval stability and the high-frequency energy stability can be calculated, wherein the high-frequency energy stability can be calculated by the ratio of the first high-frequency energy in the chest and abdomen area to the second high-frequency energy in the unmanned area. The stability characteristic is obtained based on the sum of the three stabilities, and the respiratory value is calculated according to the following formula:

[0064]

[0065] Where BR(i)′ is the breathing value at the current moment, min is the minimum operation, BR(i-1)′ is the breathing value at the previous moment, BR(i) is the breathing value before processing at the current moment, and its value is 60 / T. T is the time interval between the current peaks, and β represents the stability characteristic.

[0066] It can be understood that the respiratory value obtained above is filtered, such as Kalman filtering, to achieve smoothing of the respiratory value, so as to obtain a real-time output respiratory value, that is, the respiratory rate value, as shown in FIG. Fig.12 shown.

[0067] In an embodiment of the present application, a method for measuring respiratory rate is provided, including: collecting pressure map data, determining the chest and abdomen area in the pressure map data; determining the target unmanned area according to a preset rule, obtaining first pressure data of the chest and abdomen area and second pressure data of the target unmanned area; performing collaborative filtering processing on the first pressure data through the second pressure data to obtain an adaptive filtering signal; performing bandpass filtering processing on the adaptive filtering signal to obtain a respiratory wave signal; extracting the peak points of the respiratory wave signal to obtain the peak interval; and calculating the respiratory rate value based on the peak interval. In an embodiment of the present application, by extracting the position of the chest and abdomen, and using the pressure signal of the unmanned area to perform collaborative filtering on the pressure signal of the chest and abdomen, the signal quality is improved to a certain extent, the accuracy of the respiratory rate is improved, and the respiratory rate measurement can be realized in complex scenes such as multiple people and multiple people and multiple objects, which is suitable for a wide range of scenes and has higher accuracy.

[0068] In an embodiment of the present application, determining the target unmanned area according to a preset rule includes:

[0069] Constructing a pressure map coordinate system, and selecting the coordinates of the center position of the candidate unmanned area in the pressure map coordinate system;

[0070] Calculate the sum of the pressure values ​​of each point in the candidate unmanned area and the number of pressure values ​​of each point in the candidate unmanned area that are greater than a first preset threshold;

[0071] When the sum of the pressure values ​​at the points is less than the second preset threshold, and the number of the pressure values ​​at the points greater than the first preset threshold is less than the third preset threshold, the candidate unmanned area is determined to be the target unmanned area.

[0072] Specifically, a pressure map coordinate system can be constructed according to the pressure map data. For example, the vertex at the lower left corner of the pressure matrix is ​​taken as the coordinate origin, the horizontal right direction is the positive direction of the horizontal axis, and the vertical upward direction is the positive direction of the vertical axis. The center position of the candidate unmanned area can be initialized in the pressure map coordinate system. For example, the coordinates of the center position of the chest and abdomen are (x0, y0), and the initial center position of the candidate unmanned area is Where w is the width of the candidate unmanned area frame. Calculate the sum of the pressure signal values ​​P in the candidate unmanned area sum And the number of candidate unmanned area pressure signal values ​​greater than the preset value Count th , if P sum Less than the preset value and Count th If the value is less than the preset value, the candidate unmanned area is determined to be the target unmanned area, otherwise the search continues.

[0073] The rule for searching the unmanned area can be from left to right and from y0 to both sides in the above pressure map. If the area satisfies P sumLess than the preset value and Count th If the signal is less than the preset value, the search is stopped and the area is taken as the unmanned area. If the above conditions are not met, the signal and the minimum area are taken as the unmanned area. Figure 6 As shown in the figure, the selected target unmanned area frame and chest and abdomen area frame are as follows Figure 6 Shown in the white box.

[0074] In one embodiment of the present application, the step of extracting peak points of the respiratory wave signal to obtain peak intervals includes:

[0075] Performing a minimum point detection on the respiratory wave signal, when the minimum value corresponding to the detected minimum point is less than a fourth preset threshold value, and the time interval between the minimum point and the previous valid minimum point is within a preset time range, the minimum point is taken as a valid minimum point;

[0076] The respiratory wave signal is subjected to a maximum point detection, and when the maximum value corresponding to the detected maximum point is greater than a fifth preset threshold value and there is a valid minimum point before the maximum point, the maximum point is taken as a peak point.

[0077] Specifically, the respiratory wave signal can be detected for a minimum point, where the minimum point refers to a point where the values ​​of the first points on the left and right sides of the point are both greater than the value of the point. When a minimum point is detected, it can be determined whether the minimum value corresponding to the minimum point is less than the fourth preset threshold TH1, and whether the time interval between the minimum point and the previous minimum point less than the fourth preset threshold is within a preset time range, such as 2 seconds to 8 seconds. If so, the flag position of the minimum point can be set to 1. At the same time, the respiratory wave signal can be detected for a maximum point, where the maximum value refers to a point where the values ​​of the first points on the left and right sides of the point are both less than the value of the point. After the maximum point is detected, if the maximum value corresponding to the maximum point is greater than the fifth preset threshold TH2, and a valid minimum point appears before the maximum point, that is, a minimum point with a flag position of 1 appears, the maximum point is used as a peak point, and the flag of the minimum point is set to 0.

[0078] The time interval between the minimum value point and the previous minimum value point that is smaller than the fourth preset threshold value refers to the breathing interval.

[0079] It can be understood that whether a valid minimum point appears before the maximum point means that a valid minimum point appears within a certain time range before the maximum point, and the minimum point is adjacent to the maximum point. The minimum point can also be adjacent to the previous valid minimum point.

[0080] In one embodiment of the present application, the calculating of the respiratory rate value based on the peak interval includes:

[0081] Based on the peak interval, calculating a breathing signal stability feature of the target user;

[0082] Based on the stability characteristic, calculating the current breathing value;

[0083] The respiratory value is filtered to obtain the respiratory rate value.

[0084] Specifically, based on the peak interval, the stability characteristic β of the respiratory wave signal can be calculated, and the respiratory value can be calculated according to the following formula:

[0085]

[0086] Where BR(i)′ is the breathing value at the current moment, min is the minimum operation, BR(i-1)′ is the breathing value at the previous moment, BR(i) is the breathing value before processing at the current moment, and its value is 60 / T. T is the time interval between the current peaks, and β represents the stability characteristic.

[0087] It can be understood that by filtering the respiratory value obtained above, such as Kalman filtering, to achieve smoothing of the respiratory value, the real-time output respiratory value, that is, the respiratory rate value, can be obtained.

[0088] Further, the calculating of the breathing signal stability feature of the target user includes:

[0089] Calculate the peak amplitude stability, time interval stability and high-frequency energy stability respectively;

[0090] The sum of the peak amplitude stability, the time interval stability and the high-frequency energy stability is calculated as the stability feature of the respiratory signal.

[0091] Specifically, the signal stability characteristics include peak amplitude stability, time interval stability and high-frequency energy stability. The peak amplitude stability β is calculated by the peak interval. 1 , time interval stability β 2 and high frequency energy stability β 3 , and then the signal stability characteristic is obtained based on the sum of the three, that is, β = β = β 1 +β 2 +β 3 .

[0092] The peak amplitude stability can be obtained by:

[0093] Performing median filtering on the peak amplitude within the first preset time window, and calculating a first mean value of the peak amplitude after the median filtering;

[0094] Calculate a first ratio between the peak amplitude at the current moment and the first mean value;

[0095] The peak amplitude stability is calculated based on the first ratio.

[0096] Specifically, a median filter may be performed on the peak amplitudes within a first preset time window, such as the current time to the 60 seconds before the current time, and the length of the time window may be 3. Then, a first mean value is calculated for each peak amplitude after the median filter, and a first ratio α between the peak amplitude at the current time and the first mean value is calculated. 1 , and based on the first ratio α 1 , according to the following formula, the peak amplitude stability β is calculated 1 :

[0097]

[0098] The time interval stability can be obtained in the following way:

[0099] Performing median filtering on the time intervals within the second preset time window, and calculating a second mean value of the time intervals after the median filtering;

[0100] Calculate a second ratio between the current time interval and the second mean;

[0101] Based on the second ratio, the time interval stability is calculated.

[0102] Specifically, the time interval within the second preset time window, for example, the time interval from the current time to the previous 60 seconds, that is, the time interval between adjacent peak points, can be subjected to median filtering, and the second mean of all time intervals after median filtering can be calculated. Then, the second ratio α between the time interval at the current moment and the second mean can be calculated. 2 , and according to the second ratio α 2 , according to the following formula, the stability of the time interval β is calculated 3 :

[0103]

[0104] The high frequency energy stability is obtained by:

[0105] calculating a first high-frequency energy of the first pressure data and a second high-frequency energy of the second pressure data;

[0106] Based on a third ratio between the first high-frequency energy and the second high-frequency energy, high-frequency energy stability is calculated.

[0107] Specifically, the first high-frequency energy and the second high-frequency energy corresponding to the first pressure data of the chest and abdomen area and the second pressure data of the unmanned area can be calculated respectively, and then the third ratio α between the first high-frequency energy and the second high-frequency energy can be calculated. 3 , and according to the third ratio α 3 , the high frequency energy stability β is calculated according to the following formula 3 :

[0108]

[0109] The step of calculating the first high-frequency energy of the first pressure data and the second high-frequency energy of the second pressure data includes:

[0110] performing high-pass filtering on the first pressure data and the second pressure data respectively;

[0111] calculating the sum of absolute values ​​of the first pressure data after high-pass filtering within a third preset time window as the first high-frequency energy;

[0112] The sum of the absolute values ​​of the second pressure data after high-pass filtering within the third preset time window is calculated as the second high-frequency energy.

[0113] Specifically, the first pressure data and the second pressure data can be high-pass filtered by a high-pass filter. The types of the high-pass filter may specifically include a first-order RC high-pass filter, a multifunctional second-order general filter, etc. The first pressure data and the second pressure data can be smoothed, and then the sum of the absolute values ​​of the first pressure data after high-pass filtering is calculated and used as the first high-frequency energy, and the sum of the absolute values ​​of the second pressure data after high-pass filtering is calculated and used as the second high-frequency energy.

[0114] In the embodiments of the present application, by extracting the positions of the chest and abdomen, and using the pressure signals of the unmanned areas to perform collaborative filtering on the pressure signals of the chest and abdomen, the signal quality is improved to a certain extent, the accuracy of the respiratory rate is improved, and the respiratory rate measurement can be achieved in complex scenarios such as multiple people or multiple people and multiple objects. It is adaptable to a wide range of scenarios and has higher accuracy.

[0115] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0116] In one embodiment, a respiratory rate measurement device is provided, which corresponds one-to-one to the respiratory rate measurement method in the above embodiment. Fig.13As shown, the respiratory rate measurement device includes a chest and abdomen area determination unit 10, a pressure data acquisition unit 20, an adaptive filtering acquisition unit 30, a respiratory wave signal acquisition unit 40, a peak interval acquisition unit 50 and a respiratory rate value acquisition unit 60. The functional modules are described in detail as follows:

[0117] A chest and abdomen region determination unit 10, used to collect pressure map data and determine the chest and abdomen region in the pressure map data;

[0118] A pressure data acquisition unit 20, configured to determine a target unmanned area according to a preset rule, and acquire first pressure data of the chest and abdomen area and second pressure data of the target unmanned area;

[0119] an adaptive filtering acquisition unit 30, configured to perform collaborative filtering processing on the first pressure data through the second pressure data to obtain an adaptive filtering signal;

[0120] A respiratory wave signal acquisition unit 40, configured to perform bandpass filtering on the adaptive filtering signal to obtain a respiratory wave signal;

[0121] The peak interval acquisition unit 50 is used to extract the peak point of the respiratory wave signal to obtain the peak interval;

[0122] The respiratory rate value acquiring unit 60 is used to calculate the respiratory rate value based on the peak interval.

[0123] In one embodiment of the present application, the pressure data acquisition unit 20 is further used to:

[0124] Constructing a pressure map coordinate system, and selecting the coordinates of the center position of the candidate unmanned area in the pressure map coordinate system;

[0125] Calculate the sum of the pressure values ​​of each point in the candidate unmanned area and the number of pressure values ​​of each point in the candidate unmanned area that are greater than a first preset threshold;

[0126] When the sum of the pressure values ​​at the points is less than the second preset threshold, and the number of the pressure values ​​at the points greater than the first preset threshold is less than the third preset threshold, the candidate unmanned area is used as the unmanned area.

[0127] In one embodiment of the present application, the peak interval acquisition unit 50 is further configured to:

[0128] Performing a minimum point detection on the respiratory wave signal, when the minimum value corresponding to the detected minimum point is less than a fourth preset threshold value, and the time interval between the minimum point and the previous valid minimum point is within a preset time range, the minimum point is taken as a valid minimum point;

[0129] The respiratory wave signal is subjected to a maximum point detection, and when the maximum value corresponding to the detected maximum point is greater than a fifth preset threshold value and there is a valid minimum point before the maximum point, the maximum point is taken as a peak point.

[0130] In one embodiment of the present application, the respiratory rate value obtaining unit 60 is further used to:

[0131] Based on the peak interval, calculating a breathing signal stability feature of the target user;

[0132] Based on the stability characteristic, calculating the current breathing value;

[0133] The respiratory value is filtered to obtain the respiratory rate value.

[0134] In one embodiment of the present application, the respiratory rate value obtaining unit 60 is further used to:

[0135] Calculate the peak amplitude stability, time interval stability and high-frequency energy stability respectively;

[0136] The sum of the peak amplitude stability, the time interval stability and the high-frequency energy stability is calculated as the stability feature of the respiratory signal.

[0137] In one embodiment of the present application, the respiratory rate value obtaining unit 60 is further used to:

[0138] Performing median filtering on the peak amplitude within the first preset time window, and calculating a first mean value of the peak amplitude after the median filtering;

[0139] Calculate a first ratio between the peak amplitude at the current moment and the first mean value;

[0140] The peak amplitude stability is calculated based on the first ratio.

[0141] In one embodiment of the present application, the respiratory rate value obtaining unit 60 is further used to:

[0142] Performing median filtering on the time intervals within the second preset time window, and calculating a second mean value of the time intervals after the median filtering;

[0143] Calculate a second ratio between the current time interval and the second mean;

[0144] Based on the second ratio, the time interval stability is calculated.

[0145] In one embodiment of the present application, the respiratory rate value obtaining unit 60 is further used to:

[0146] calculating a first high-frequency energy of the first pressure data and a second high-frequency energy of the second pressure data;

[0147] Based on a third ratio between the first high-frequency energy and the second high-frequency energy, high-frequency energy stability is calculated.

[0148] In one embodiment of the present application, the respiratory rate value obtaining unit 60 is further used to:

[0149] performing high-pass filtering on the first pressure data and the second pressure data respectively;

[0150] calculating the sum of absolute values ​​of the first pressure data after high-pass filtering within a third preset time window as the first high-frequency energy;

[0151] The sum of the absolute values ​​of the second pressure data after high-pass filtering within the third preset time window is calculated as the second high-frequency energy.

[0152] In the embodiments of the present application, by extracting the positions of the chest and abdomen, and using the pressure signals of the unmanned areas to perform collaborative filtering on the pressure signals of the chest and abdomen, the signal quality is improved to a certain extent, the accuracy of the respiratory rate is improved, and the respiratory rate measurement can be achieved in complex scenarios such as multiple people or multiple people and multiple objects. It is adaptable to a wide range of scenarios and has higher accuracy.

[0153] For the specific definition of the respiratory rate measurement device, please refer to the definition of the respiratory rate measurement method above, which will not be repeated here. Each module in the above respiratory rate measurement device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0154] In one embodiment, a computer device is provided. The computer device may be a terminal device, and its internal structure diagram may be as follows: Fig.14 As shown. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium. The readable storage medium stores computer-readable instructions. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed by the processor, a respiratory rate measurement method is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.

[0155] In an embodiment of the present application, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the respiratory rate measurement method as described above when executing the computer-readable instructions.

[0156] In an embodiment of the application, a readable storage medium is provided, wherein the readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the respiratory rate measurement method as described above are implemented.

[0157] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0158] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0159] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for measuring respiratory rate, characterized in that: The method comprises: Collecting pressure map data and determining the chest and abdomen regions in the pressure map data; Determine the target unmanned area according to a preset rule, and obtain the first pressure data of the chest and abdomen area and the second pressure data of the target unmanned area; Performing collaborative filtering processing on the first pressure data through the second pressure data to obtain an adaptive filtering signal; Performing bandpass filtering on the adaptive filtering signal to obtain a respiratory wave signal; Extracting peak points of the respiratory wave signal to obtain peak intervals; Based on the peak interval, a respiratory rate value is calculated.

2. The respiratory rate measurement method according to claim 1, characterized in that: The step of determining the target unmanned area according to a preset rule includes: Constructing a pressure map coordinate system, and selecting the coordinates of the center position of the candidate unmanned area in the pressure map coordinate system; Calculate the sum of the pressure values ​​of each point in the candidate area and the number of pressure values ​​of each point in the candidate unmanned area that are greater than a first preset threshold; When the sum of the pressure values ​​at the points is less than the second preset threshold, and the number of the pressure values ​​at the points greater than the first preset threshold is less than the third preset threshold, the candidate unmanned area is taken as the target unmanned area.

3. The respiratory rate measurement method according to claim 1, characterized in that: The step of extracting the peak point of the respiratory wave signal to obtain the peak interval includes: Performing a minimum point detection on the respiratory wave signal, when the minimum value corresponding to the detected minimum point is less than a fourth preset threshold value, and the time interval between the minimum point and the previous valid minimum point is within a preset time range, the minimum point is taken as a valid minimum point; A maximum point detection is performed on the respiratory wave signal. When a maximum value corresponding to the detected maximum point is greater than a fifth preset threshold and there is a valid minimum point before the maximum point, the maximum point is taken as a peak point.

4. The respiratory rate measurement method according to claim 1, characterized in that: The step of calculating the respiratory rate value based on the peak interval comprises: Based on the peak interval, calculating a breathing signal stability feature of the target user; Based on the stability characteristic, calculating the current breathing value; The respiratory value is filtered to obtain the respiratory rate value.

5. The respiratory rate measurement method according to claim 4, characterized in that: The calculating the breathing signal stability feature of the target user includes: Calculate the peak amplitude stability, time interval stability and high-frequency energy stability respectively; The sum of the peak amplitude stability, the time interval stability and the high-frequency energy stability is calculated as the stability feature of the respiratory signal.

6. The respiratory rate measurement method according to claim 5, characterized in that: The peak amplitude stability is obtained by: Performing median filtering on the peak amplitude within the first preset time window, and calculating a first mean value of the peak amplitude after the median filtering; Calculate a first ratio between the peak amplitude at the current moment and the first mean value; The peak amplitude stability is calculated based on the first ratio.

7. The respiratory rate measurement method according to claim 5, characterized in that: The time interval stability is obtained by: Performing median filtering on the time intervals within the second preset time window, and calculating a second mean value of the time intervals after the median filtering; Calculate a second ratio between the current time interval and the second mean; Based on the second ratio, the time interval stability is calculated.

8. The respiratory rate measurement method according to claim 5, characterized in that: The high frequency energy stability is obtained by: calculating a first high-frequency energy of the first pressure data and a second high-frequency energy of the second pressure data; Based on a third ratio between the first high-frequency energy and the second high-frequency energy, high-frequency energy stability is calculated.

9. The respiratory rate measurement method according to claim 8, characterized in that: The calculating the first high-frequency energy of the first pressure data and the second high-frequency energy of the second pressure data includes: performing high-pass filtering on the first pressure data and the second pressure data respectively; calculating the sum of absolute values ​​of the first pressure data after high-pass filtering within a third preset time window as the first high-frequency energy; The sum of absolute values ​​of the second pressure data after high-pass filtering within the third preset time window is calculated as the second high-frequency energy.

10. A respiratory rate measuring device, characterized in that: The device comprises: A chest and abdomen region determination unit, used to collect pressure map data and determine the chest and abdomen region in the pressure map data; A pressure data acquisition unit, configured to determine a target unmanned area according to a preset rule, and acquire first pressure data of the chest and abdomen area and second pressure data of the target unmanned area; an adaptive filtering acquisition unit, configured to perform collaborative filtering processing on the first pressure data through the second pressure data to obtain an adaptive filtering signal; A respiratory wave signal acquisition unit, used for performing bandpass filtering on the adaptive filtering signal to obtain a respiratory wave signal; A peak interval acquisition unit, used for extracting peak points of the respiratory wave signal to obtain a peak interval; The respiratory rate value acquisition unit is used to calculate the respiratory rate value based on the peak interval.

Citation Information

Patent Citations

  • Respiratory rate calculation method and device

    CN112494031A

  • Respiration rate monitoring method, device, equipment and medium

    CN114159050A

  • User identity recognition method and device

    CN117671739A

  • Detection device is breathed in sleep based on quick sensor of flexible power

    CN205697777U

  • Sleep inspection device

    JP2017189525A