A pressure value calibration method, device and computer storage medium
Patent Information
- Application Number
- CN202410193329.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-21
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2044-02-21
AI Technical Summary
[0003]为了保证压力值的精确度,现有的方法在将压力信号转换为压力值时会采用线性方程或校准常数等方式对全量程内的压力值进行校准,但全量程内的压力信号和压力值并不总是呈现线性关系,比如:在-40cmH2O至52cmH2O范围内呈线性关系,在52cmH2O至200cmH2O范围内呈非线性关系,采用现有的方法会导致压力值精度较低,产生测量误差
[0015]第三方面,本发明另一实施例中提供一种计算机存储介质,所述介质上存储有程序,所述程序能够被处理器执行以实现如前述的方法。
Smart Images

Figure CN118044893B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of pressure value calibration technology, and specifically to a pressure value calibration method, device, and computer storage medium. Background Technology
[0002] A pressure transducer is an electronic device that detects changes in pressure. It can detect pressure changes and represent them as electrical signals. Pressure transducers can be used to measure various pressures, such as pressure, compressive force, etc. Its output can be a digital signal or an analog signal. Currently, pressure transducers are widely used in various fields, such as ventilators, blood pressure monitors, and urodynamic analyzers in the field of medical equipment. These devices typically use pressure transducers to continuously monitor the physiological pressure values of the human body.
[0003] To ensure the accuracy of pressure values, existing methods use linear equations or calibration constants to calibrate the pressure values across the entire range when converting pressure signals into pressure values. However, the pressure signal and pressure value do not always exhibit a linear relationship across the entire range. For example, they are linear in the range of -40cmH2O to 52cmH2O, but nonlinear in the range of 52cmH2O to 200cmH2O. Using existing methods will result in low pressure value accuracy and measurement errors. Summary of the Invention
[0004] The method provided by this invention can improve the recognition accuracy of all pressure values across the entire range.
[0005] In a first aspect, the present invention provides a method for calibrating a pressure value, characterized by comprising: acquiring a pressure signal output by a pressure sensor; obtaining a measured pressure value corresponding to the pressure signal based on the pressure signal; calibrating the measured pressure value according to a preset single-point calibration coefficient to obtain a first pressure value; determining the pressure value range into which the first pressure value falls, the pressure value range including at least a nonlinear range; when the first pressure value falls into the nonlinear range, obtaining a compensation value for the first pressure value according to a preset polynomial equation; and obtaining a calibrated pressure value based on the compensation value and the first pressure value.
[0006] In some embodiments, the polynomial equation can be represented as follows:
[0007] y = a1x 0 +a2x 1 +...+a n x n-1 Where y is the compensation value, x is the preset second pressure value corresponding to the first pressure value, and a nThis is the first calibration coefficient of the preset nth term, where n is an integer greater than or equal to 3.
[0008] In some embodiments, the second pressure value can be obtained by: dividing the nonlinear range into multiple sub-ranges according to a preset rule, each sub-range corresponding to two adjacent second pressure values, wherein the larger second pressure value corresponding to the preceding sub-range is the smaller second pressure value corresponding to the following sub-range, and a threshold is set in each sub-range; when the first pressure value is less than the threshold, the second pressure value is the smaller second pressure value corresponding to the sub-range; when the first pressure value is greater than or equal to the threshold, the second pressure value is the larger second pressure value corresponding to the sub-range.
[0009] In some embodiments, the calibrated pressure value can be represented as z = dy, where z is the calibrated pressure value, d is the first pressure value, and y is the compensation value.
[0010] In some embodiments, the method further includes: adjusting the first calibration coefficient before using the pressure sensor; adjusting the first calibration coefficient includes: acquiring a parameter adjustment pressure signal output by the pressure sensor after sensing a preset reference pressure value, wherein the reference pressure value falls within the nonlinear range; obtaining a parameter adjustment pressure value based on the parameter adjustment pressure signal; calibrating the parameter adjustment pressure value using a preset single-point calibration coefficient to obtain a calibrated parameter adjustment pressure value; adjusting the first calibration coefficient once based on the calibrated parameter adjustment pressure value and the reference pressure value; obtaining a compensated pressure value based on the parameter adjustment compensation value and the calibrated parameter adjustment pressure value. The compensation value is obtained based on the first calibration coefficient after each adjustment and the polynomial equation; it is determined whether the compensated pressure value and the reference pressure value meet the preset conditions; if they do, it is not necessary to continue adjusting the first calibration coefficient; otherwise, it is necessary to continue adjusting the first calibration coefficient; each time the first calibration coefficient is adjusted, the parameter adjustment compensation value is calculated once, and the compensated pressure value is obtained based on the parameter adjustment compensation value and the calibrated parameter adjustment pressure value, and it is determined whether the compensated pressure value and the reference pressure value meet the preset conditions; until the compensated pressure value and the reference pressure value meet the preset conditions, the adjustment of all first calibration coefficients is completed.
[0011] In some embodiments, adjusting the first calibration coefficient once includes: obtaining a first absolute value, the first absolute value being the absolute value of the difference between the calibrated adjusted pressure value and the reference pressure value; adjusting the first calibration coefficient for the first time based on the first absolute value; when n=3, continuing to adjust the first calibration coefficient includes: obtaining a second absolute value, the second absolute value being the absolute value of the difference between the compensated pressure value and the reference pressure value; adjusting the first calibration coefficient of the third item when the second absolute value is greater than or equal to a preset first threshold; or adjusting the first calibration coefficient of the second item when the second absolute value is less than or equal to a preset first threshold and greater than a preset second threshold; or adjusting the first calibration coefficient of the first item when the second absolute value is less than or equal to a preset second threshold and greater than a preset third threshold; calculating the second absolute value once for each adjustment of the first calibration coefficient; determining whether to continue adjusting the first calibration coefficient based on the second absolute value; and completing the adjustment of all first calibration coefficients until the second absolute value is less than or equal to a preset third threshold.
[0012] In some embodiments, the adjustment includes at least one of increasing and decreasing. When the calibrated adjusted pressure value / the compensated pressure value is greater than the reference pressure value, the first calibration coefficient is increased; when the calibrated adjusted pressure value / the compensated pressure value is less than the reference pressure value, the first calibration coefficient is decreased.
[0013] In some embodiments, the method for adjusting the first calibration coefficient further includes: adjusting the first calibration coefficient of the third term by a smaller margin than adjusting the first calibration coefficient of the second term, and adjusting the first calibration coefficient of the second term by a margin less than or equal to adjusting the first calibration coefficient of the first term.
[0014] Secondly, in another embodiment of the present invention, a urodynamic testing device is provided, comprising: a pressure sensor for detecting pressure data of bladder / urethra / abdominal pressure and outputting a pressure signal; a storage unit for storing a program; and a processing unit for executing the program to implement the method as described above.
[0015] Thirdly, in another embodiment of the present invention, a computer storage medium is provided, wherein a program is stored on the medium, and the program can be executed by a processor to implement the method as described above.
[0016] According to the method of the above embodiment, after obtaining the first pressure value, it is first determined that the pressure value falls within the range of the first pressure value. If the first pressure value falls into the nonlinear range, the compensation value of the first pressure value is obtained according to the preset polynomial equation. The calibrated pressure value is obtained according to the compensation value and the first pressure value. This method calibrates the first pressure value that falls into the nonlinear range, effectively improving the recognition accuracy of all pressure values in the full range, thus improving the recognition accuracy of all pressure values in the full range. Attached Figure Description
[0017] Figure 1 A flowchart of the pressure value calibration method provided by the present invention;
[0018] Figure 2 A flowchart illustrating a method for obtaining a second pressure value according to one embodiment;
[0019] Figure 3 A flowchart illustrating the adjustment of a first calibration coefficient according to one embodiment;
[0020] Figure 4 This is a flowchart illustrating one embodiment of adjusting the first calibration coefficient once;
[0021] Figure 5 A flowchart illustrating the continued adjustment of the first calibration coefficient in one embodiment;
[0022] Figure 6 This is a structural diagram of the urodynamic testing device provided by the present invention;
[0023] Figure 7 A structural diagram of the computer storage medium provided by the present invention. Detailed Implementation
[0024] The present invention will now be described in further detail with reference to specific embodiments and accompanying drawings. Similar elements in different embodiments are referred to by associated similar element reference numerals. In the following embodiments, many details are described to facilitate a better understanding of this application. However, those skilled in the art will readily recognize that some features may be omitted in different situations, or may be replaced by other elements, materials, or methods. In some cases, certain operations related to this application are not shown or described in the specification. This is to avoid obscuring the core parts of this application with excessive description. For those skilled in the art, detailed description of these related operations is not necessary; they can fully understand the related operations based on the description in the specification and general technical knowledge in the art.
[0025] Furthermore, the features, operations, or characteristics described in the specification can be combined in any suitable manner to form various embodiments. At the same time, the steps or actions in the method description can be rearranged or adjusted in a manner obvious to those skilled in the art. Therefore, the various orders in the specification and drawings are only for the clear description of a particular embodiment and do not imply a necessary order, unless otherwise stated that a particular order must be followed.
[0026] The serial numbers assigned to components in this article, such as "first" and "second", are used only to distinguish the objects being described and have no sequential or technical meaning.
[0027] The inventors, using existing methods to convert multiple pressure signals from different pressure ranges collected by pressure sensors into pressure values, found that the pressure values within a specific pressure range (e.g., -40cmH2O to 52cmH2O) deviated almost from the theoretical pressure values, while in another specific pressure range (e.g., 52cmH2O to 200cmH2O), the pressure values deviated significantly from the theoretical pressure values. After analysis, the inventors discovered that the main reason for this phenomenon was that existing conversion methods use linear equations or calibration constants to calibrate the pressure values across the entire range. However, the calibrated pressure values in some pressure ranges (e.g., 52cmH2O to 200cmH2O) tend to be higher than the theoretical pressure values, failing to guarantee the accuracy of identifying all pressure values across the entire range.
[0028] To address the aforementioned issues, this invention proposes a pressure value calibration method. After obtaining a first pressure value, the method first determines the pressure value range into which the first pressure value falls. If the first pressure value falls into a nonlinear range, a compensation value for the first pressure value is obtained according to a preset polynomial equation. Based on the compensation value and the first pressure value, the calibrated pressure value is obtained. This method calibrates the first pressure value that falls into the nonlinear range, effectively improving the recognition accuracy of all pressure values within the full range.
[0029] Please refer to Figure 1 One embodiment of the present invention provides a method for calibrating pressure values, comprising:
[0030] S10: Acquire the pressure signal output by the pressure sensor.
[0031] In some embodiments, the pressure signal output by the pressure sensor can be either an analog signal or a digital signal, which is not limited herein; it should be noted that the method proposed in this invention is applicable to most scenarios involving continuous acquisition of pressure values, such as blood pressure detection and urodynamic detection.
[0032] S20: Obtain the measured pressure value corresponding to the pressure signal based on the pressure signal.
[0033] Existing methods typically involve performing two calculations on the pressure signal to obtain the measured pressure value. For example, the voltage value is first calculated from the pressure signal, and then the pressure value is calculated based on the voltage value. This method involves two calculations, which can lead to a large deviation in the pressure value. To reduce the deviation, some embodiments obtain the pressure value corresponding to the pressure signal by: obtaining the pressure value based on the pressure signal and a preset mapping relationship. In this embodiment, since one voltage value conversion is omitted, the accuracy of pressure value recognition can be improved.
[0034] S30: The measured pressure value is calibrated according to a preset single-point calibration coefficient to obtain a first pressure value. In some embodiments, the first pressure value can be obtained in the following way:
[0035] d = c / k
[0036] Where d is the first pressure value, c is the measured pressure value, and k is the single-point calibration coefficient.
[0037] In some embodiments, the single-point calibration coefficient can be obtained in the following way:
[0038] k = c / l
[0039] Where k is the single-point calibration coefficient, c is the measured pressure value, and l is the theoretical pressure value.
[0040] S40: Determine the pressure range into which the first pressure value falls, the pressure range including at least the non-linear range.
[0041] In some embodiments, the pressure range also includes a linear range. For example, when the range is -40cmH2O to 200cmH2O, the linear range is -40cmH2O to 52cmH2O, and the nonlinear range is 52cmH2O to 200cmH2O. The first pressure value falling within the linear range has almost no deviation from the theoretical pressure value, so no further calibration is required. However, the first pressure value falling within the nonlinear range is larger than the theoretical pressure value, so a compensation value needs to be calculated to calibrate the first pressure value.
[0042] It should be noted that, since different types and models of pressure sensors have different ranges and performance, this article does not limit the pressure values at both ends of the linear and nonlinear ranges.
[0043] In some embodiments, the first pressure value falling within the linear range may also be calibrated using a linear equation, or other existing linear calibration methods may be used, which are not limited herein.
[0044] S50: When the first pressure value falls into the nonlinear range, the compensation value of the first pressure value is obtained according to the preset polynomial equation.
[0045] In some embodiments, the polynomial equation can be represented as follows:
[0046] y = a1x 0 +a2x 1 +...+a n x n-1
[0047] Where y is the compensation value, x is the preset second pressure value corresponding to the first pressure value, and a n This is the first calibration coefficient of the preset nth term, where n is an integer greater than or equal to 3.
[0048] In some embodiments, within the range of 52 cmH2O to 200 cmH2O, the initial values of the first calibration coefficients of each term in the polynomial equation are obtained based on the measured pressure values at 5 cmH2O intervals and the calibrated pressure values. The method for calculating the first calibration coefficients is prior art and will not be described in detail here. It is understood that different types and models of pressure sensors have different ranges and performances, so the first calibration parameters can be calculated and set according to requirements when applying them, and this article does not limit them.
[0049] In some embodiments, such as Figure 2 As shown, the second pressure value can be obtained in the following way:
[0050] S51: Divide the nonlinear range into multiple sub-ranges according to preset rules. Each sub-range corresponds to two adjacent second pressure values. The larger second pressure value of the first sub-range is the smaller second pressure value of the second sub-range. A threshold is set in each sub-range.
[0051] In some embodiments, the nonlinear range can be divided into multiple sub-ranges. For example, when the nonlinear range is 50 cmH2O to 80 cmH2O, each sub-range is spaced 10 cmH2O apart, so the sub-ranges are: 50 cmH2O-60 cmH2O, 60 cmH2O-70 cmH2O, and 70 cmH2O-80 cmH2O. The second pressure values corresponding to the sub-range of 50 cmH2O-60 cmH2O are 5 and 6, respectively, and the values corresponding to the sub-range of 60 cmH2O-70 cmH2O are... The corresponding second pressure values are 6 and 7, respectively. When the sub-range is 70cmH2O-80cmH2O, the corresponding second pressure values are 7 and 8, respectively. When the starting or ending value of the nonlinear range is not an integer multiple of 10, for example, when the starting value is 52cmH2O, the starting value of the first sub-range is set to 50cmH2O; when the ending value is 188cmH2O, the ending value of the last sub-range is set to 190cmH2O. In application, the nonlinear range can be divided according to actual needs, and this article does not impose any restrictions.
[0052] S52: When the first pressure value is less than the threshold, the second pressure value is the smaller second pressure value corresponding to the sub-range.
[0053] S53: When the first pressure value is greater than or equal to the threshold, the second pressure value is the larger second pressure value corresponding to the sub-range.
[0054] In some embodiments, the threshold can be set to the middle value of the sub-range. For example, when the sub-range is 80cmH2O-90cmH2O, the corresponding two second pressure values are 8 and 9, respectively. The threshold is set to 85, and the second pressure value is 8 when the first pressure value is greater than or equal to 80cmH2O and less than 85cmH2O, and the second pressure value is 9 when the first pressure value is greater than or equal to 85cmH2O and less than 90cmH2O. When the sub-range is 90cmH2O-100cmH2O, the corresponding two second pressure values are 9 and 10, respectively. The threshold is set to 95, and the second pressure value is 9 when the first pressure value is greater than or equal to 90cmH2O and less than 95cmH2O, and the second pressure value is 10 when the first pressure value is greater than or equal to 95cmH2O and less than 100cmH2O.
[0055] S60: Obtain the calibrated pressure value based on the compensation value and the first pressure value.
[0056] Since the first pressure value in the nonlinear range will be larger than the theoretical pressure value, in some embodiments, the first pressure value is subtracted from the compensation value to obtain the calibrated pressure value. The calibrated pressure value can be expressed in the following way:
[0057] z = dy
[0058] Where z is the calibrated pressure value, d is the first pressure value, and y is the compensation value.
[0059] In application, in order to adapt to different models and types of pressure sensors, the first calibration coefficient of the polynomial equation needs to be adjusted. In some embodiments, the method further includes adjusting the first calibration coefficient before using the pressure sensor.
[0060] In some embodiments, the first calibration coefficient is adjusted, such as Figure 3 As shown, it includes:
[0061] S71: Acquire the parameter adjustment pressure signal output by the pressure sensor after sensing the preset reference pressure value, where the reference pressure value falls within the nonlinear range.
[0062] In some embodiments, the reference pressure value is 160 cmH2O. When applying, the reference pressure value can be set according to the regulations of different industries, or it can be customized based on experience. This article does not impose any restrictions.
[0063] S72: Obtain the parameter adjustment pressure value based on the parameter adjustment pressure signal.
[0064] S73: The parameter adjustment pressure value is calibrated using a preset single-point calibration coefficient to obtain the calibrated parameter adjustment pressure value.
[0065] In some embodiments, the calibrated parameter adjustment pressure value can be obtained in the following way:
[0066] T2 = T1 / k
[0067] Where T2 is the calibrated pressure value, T1 is the pressure value, and k is the single-point calibration coefficient.
[0068] S74: Adjust the first calibration coefficient once based on the calibrated adjustment pressure value and the reference pressure value. In some embodiments, when n=3, the polynomial equation can be expressed as follows:
[0069] y = a1x 0 +a2x 1 +a3x 2
[0070] Where y is the calibrated pressure value, x is the second pressure value corresponding to the first pressure value, and a1, a2, and a3 are the first calibration coefficients of the first, second, and third terms, respectively.
[0071] In some embodiments, the first calibration coefficient of the first / second / third item is adjusted once based on the calibrated adjustment pressure value and the reference pressure value, and subsequent adjustments of the first calibration coefficient are all based on the compensated pressure value and the reference pressure value.
[0072] In some embodiments, the first calibration coefficient is adjusted once, such as... Figure 4 As shown, it includes:
[0073] S741: Obtain the first absolute value, which is the absolute value of the difference between the calibrated pressure value and the reference pressure value.
[0074] S742: Adjust the first calibration coefficient for the first time based on the first absolute value.
[0075] In some embodiments, when the first absolute value is greater than a preset third threshold, the first calibration coefficient is adjusted for the first time. Multiple thresholds can be set, and based on the comparison results of the first absolute value with these thresholds, it is determined which term's first calibration coefficient in the polynomial equation needs to be adjusted again. For example, when n=3, when the first absolute value is greater than or equal to the preset first threshold, the first calibration coefficient of the third term is adjusted for the first time; or when the first absolute value is less than or equal to the preset first threshold but greater than the preset second threshold, the first calibration coefficient of the second term is adjusted for the first time; or when the first absolute value is less than or equal to the preset second threshold but greater than the preset third threshold, the first calibration coefficient of the first term is adjusted for the first time.
[0076] S75: Based on the parameter adjustment compensation value and the calibrated parameter adjustment pressure value, the compensated pressure value is obtained. The parameter adjustment compensation value is obtained based on the first calibration coefficient after each adjustment and the polynomial equation.
[0077] In some embodiments, after one adjustment of the first calibration coefficient is completed, the compensated pressure value is calculated, and each subsequent adjustment of the first calibration coefficient is determined based on a second absolute value, which is the absolute value of the difference between the compensated pressure value and the reference pressure value.
[0078] S76: Determine whether the compensated pressure value and the reference pressure value meet the preset conditions.
[0079] S77: If satisfied, there is no need to continue adjusting the first calibration coefficient.
[0080] In some embodiments, the preset condition is that the absolute value of the difference between the compensated pressure value and the reference pressure value is less than or equal to a preset third threshold. If the preset condition is met, it means that the first calibration coefficient is applicable to the pressure sensor. After calibrating the calibrated parameter adjustment pressure value according to the first calibration coefficient and the polynomial equation, the compensated pressure value obtained has almost no deviation from the reference pressure value. Therefore, it is not necessary to continue adjusting the first calibration coefficient, and the first calibration coefficient is saved as the first calibration coefficient in the polynomial equation of the pressure sensor.
[0081] In some embodiments, when the absolute value of the difference between the compensated pressure value and the reference pressure value is greater than a preset fourth threshold, such as greater than 20, the pressure sensor is determined to be faulty, and the user is prompted to replace the pressure sensor.
[0082] S78: Otherwise, the first calibration coefficient needs to be adjusted further.
[0083] In some embodiments, when n=3, the first calibration coefficient is further adjusted, such as... Figure 5 As shown, it includes:
[0084] S781: Obtain the second absolute value, which is the absolute value of the difference between the compensated pressure value and the reference pressure value.
[0085] S782: When the second absolute value is greater than or equal to the preset first threshold, the first calibration coefficient of the third item is adjusted; or when the second absolute value is less than the preset first threshold but greater than the preset second threshold, the first calibration coefficient of the second item is adjusted; or when the second absolute value is less than or equal to the preset second threshold but greater than the preset third threshold, the first calibration coefficient of the first item is adjusted.
[0086] In some embodiments, the first threshold is greater than the second threshold, and the second threshold is greater than the third threshold. For example, the first threshold can be set to 1, the second threshold to 0.1, and the third threshold to 0.01. When the first absolute value / second absolute value is greater than the first threshold, it indicates that the error between the calibrated pressure value and the reference pressure value is too large, so the first calibration coefficient of the third term that has the greatest impact on the polynomial equation result is adjusted. When the first absolute value / second absolute value is less than the first threshold but greater than or equal to the second threshold, the first calibration coefficient of the second term that has a greater impact on the polynomial equation result is adjusted. When the first absolute value / second absolute value is less than the preset second threshold, the first calibration coefficient of the first term that has the least impact on the polynomial equation result is adjusted.
[0087] S783: Calculate the second absolute value once for each adjustment of the first calibration coefficient.
[0088] S784: Based on the second absolute value, determine whether to continue adjusting the first calibration coefficient.
[0089] In some embodiments, when the second absolute value is greater than a preset third threshold, it indicates that the calibrated pressure value obtained according to the first calibration coefficient and the polynomial equation deviates significantly from the reference pressure value, and the first calibration coefficient still needs to be adjusted.
[0090] S785: Adjustment of all first calibration coefficients is completed until the second absolute value is less than or equal to the preset third threshold.
[0091] In some embodiments, when the second absolute value is less than or equal to a preset third threshold, it indicates that the calibrated pressure value obtained according to the first calibration coefficient and the polynomial equation has almost no deviation from the reference pressure value, and it is not necessary to adjust all the first calibration coefficients.
[0092] In some embodiments, the adjustment includes at least one of increasing and decreasing. When the calibrated adjusted pressure value / compensated pressure value is greater than the reference pressure value, the first calibration coefficient is increased; when the calibrated adjusted pressure value / compensated pressure value is less than the reference pressure value, the first calibration coefficient is decreased.
[0093] In some embodiments, the compensated pressure value can be obtained in the following way:
[0094] b = jt
[0095] Where b is the compensated pressure value, j is the calibrated pressure value, and t is the calibration compensation value. In some embodiments, the method for adjusting the preset first calibration coefficient further includes: the adjustment range of the first calibration coefficient for the third term is less than the adjustment range of the first calibration coefficient for the second term, and the adjustment range of the first calibration coefficient for the second term is less than or equal to the adjustment range of the first calibration coefficient for the first term. In some embodiments, since the first calibration coefficient for the third term has the greatest impact on the polynomial equation result, the adjustment range of the first calibration coefficient for the third term is the smallest. For example, when all first calibration coefficients retain four decimal places, each adjustment is made by adjusting the last decimal place of the first calibration coefficient for the third term, with an adjustment range of 0.0001; each adjustment is made by adjusting the third decimal place of the first calibration coefficient for the second term, with an adjustment range of 0.001; each adjustment is made by adjusting the third decimal place of the first calibration coefficient for the first term, with an adjustment range of 0.001. In application, the number of decimal places and the adjustment range can be set according to actual needs, and this document does not impose any limitations.
[0096] S79: Each time the first calibration coefficient is adjusted, the parameter adjustment compensation value is calculated. Based on the parameter adjustment compensation value and the calibrated parameter adjustment pressure value, the pressure value after compensation is obtained, and it is determined whether the pressure value after compensation and the reference pressure value meet the preset conditions.
[0097] S80: Once the compensated pressure value and the reference pressure value meet the preset conditions, the adjustment of all first calibration coefficients is complete.
[0098] The following example, using a reference pressure of 160 cmH2O, a1 = -0.4713, a2 = 0.1306, a3 = 0.0029, a first threshold of 1, a second threshold of 0.1, and a third threshold of 0.01, illustrates the method for adjusting the first calibration coefficient:
[0099] 1. When the calibrated pressure value is 161.2 cmH2O, the corresponding second pressure value is 16. The adjustment steps are as follows:
[0100] (1) Since the first absolute value 1.2 is greater than the first threshold 1, it does not meet the preset conditions and the first calibration coefficient needs to be adjusted;
[0101] (2) Since the first absolute value 1.2 is greater than the first threshold 1 and the calibrated pressure value is greater than the reference pressure value, the first calibration coefficient a3 of the third item needs to be increased to 0.0030. Based on the first calibration coefficient (a1 = -0.4713, a2 = 0.1306, a3 = 0.0030) and the polynomial equation, the calibration compensation value is obtained. The calibrated pressure value is subtracted from the calibration compensation value to obtain the compensated pressure value of 161.19 cmH2O (this value is to illustrate the assumption of the adjustment step). At this time, the first adjustment of the first calibration coefficient is completed. Subsequent adjustments are all based on the second absolute value.
[0102] (3) Since the second absolute value 1.19 is greater than the first threshold 1 and the compensated pressure value is greater than the reference pressure value, the first calibration coefficient a3 of the third item needs to be increased. The adjustment range is 0.0001 each time until the second absolute value is less than 1, and then the adjustment of a3 is stopped.
[0103] (4) When the second absolute value is less than 1, the first calibration coefficient a2 of the second term is adjusted. First, a2 is increased to 0.1316. Based on the increased first calibration coefficient and the polynomial equation, the parameter adjustment compensation value for this time is obtained. The pressure value after compensation is obtained by subtracting the parameter adjustment compensation value from the calibrated pressure value. The pressure value after compensation is 160.98 cmH2O (this value is to illustrate the assumption of the adjustment step). Since the second absolute value is less than the first threshold 1 and greater than the second threshold 0.1, the first calibration coefficient a2 of the second term is increased. The adjustment range is 0.001 each time until the second absolute value is less than or equal to the second threshold 0.1, and the adjustment of a2 is stopped.
[0104] (5) When the second absolute value is less than or equal to 0.1, the first calibration coefficient a1 of the first item is adjusted. First, a1 is increased to -0.4703. The parameter adjustment compensation value is obtained according to the increased first calibration coefficient and the polynomial equation. The pressure value after compensation is obtained by subtracting the parameter adjustment compensation value from the calibrated pressure value. If the second absolute value is still greater than the third threshold of 0.01, a1 is increased again. The adjustment range is 0.001 each time. If the second absolute value is less than or equal to the third threshold of 0.01 (for example, when the pressure value after compensation is 159.99), the adjustment of a1 is stopped. At this time, the adjustment of all first calibration coefficients is completed.
[0105] 2. When the calibrated pressure value is 158.7 cmH2O, the corresponding second pressure value is 16. The adjustment steps are as follows:
[0106] (1) Since the first absolute value of 1.3 is greater than the first threshold of 1, it does not meet the preset conditions and the first calibration coefficient needs to be adjusted.
[0107] (2) Since the first absolute value 1.2 is greater than the first threshold 1 and the calibrated pressure value is less than the reference pressure value, the first calibration coefficient a3 of the third item needs to be reduced. During the first adjustment, a3 is reduced to 0.0028. Based on the adjusted first calibration coefficients (a1 = -0.4713, a2 = 0.1306, a3 = 0.0028) and the polynomial equation, the adjustment compensation value is obtained. After subtracting the adjustment compensation value from the calibrated pressure value, the pressure value after compensation is obtained as 158.71 cmH2O (this value is to illustrate the assumption of the adjustment step).
[0108] (3) Since the second absolute value of 1.29 is greater than the first threshold value of 1 and the compensated pressure value is less than the reference pressure value, it is necessary to continue to reduce the first calibration coefficient a3 of the third item. The adjustment range is 0.0001 each time until the second absolute value is less than 1, and then stop adjusting a3.
[0109] (4) When the second absolute value is less than 1, the first calibration coefficient a2 of the second term is adjusted. First, a2 is reduced to 0.1296. The parameter adjustment compensation value is obtained according to the reduced first calibration coefficient and the polynomial equation. The pressure value after compensation is obtained by subtracting the parameter adjustment compensation value from the calibrated pressure value. The pressure value after compensation is 159.02 cmH2O (this value is to illustrate the assumption of the adjustment step). Since the second absolute value is less than the first threshold 1 and greater than the second threshold 0.1, the first calibration coefficient a2 of the second term is reduced. The adjustment range is 0.001 each time until the second absolute value is less than or equal to the second threshold 0.1. Then the adjustment of a2 is stopped.
[0110] (5) When the second absolute value is less than or equal to 0.1, the first calibration coefficient a1 of the first item is adjusted. First, a1 is reduced to -0.4723. The parameter adjustment compensation value is obtained according to the reduced first calibration coefficient and the polynomial equation. The pressure value after compensation is obtained by subtracting the parameter adjustment compensation value from the calibrated pressure value. If the second absolute value is still greater than the third threshold of 0.01, a1 is reduced. The adjustment range is 0.001 each time. If the second absolute value is less than or equal to the third threshold of 0.01 (for example, when the pressure value after compensation is 160.01), the adjustment of a1 is stopped. At this time, the adjustment of all first calibration coefficients is completed.
[0111] One embodiment of the present invention provides a urodynamic testing device, such as... Figure 6As shown, it includes: a pressure sensor 10 for detecting pressure data of bladder / urethra / abdominal pressure and outputting pressure signals; a storage unit 30 for storing programs; and a processing unit 20 for implementing the method described above when executing the program.
[0112] One embodiment of the present invention provides a computer storage medium, such as... Figure 7 As shown, a program is stored on medium 70, which can be executed by processor 80 to implement the method described above.
[0113] The above examples illustrate the present invention only to aid in understanding it and are not intended to limit the scope of the invention. Those skilled in the art can make various simple deductions, modifications, or substitutions based on the principles of this invention.
Claims
1. A method for calibrating pressure values, characterized in that, include: Acquire the pressure signal output by the pressure sensor; Based on the pressure signal, the measured pressure value corresponding to the pressure signal is obtained; The measured pressure value is calibrated according to a preset single-point calibration coefficient to obtain a first pressure value; Determine the pressure value range into which the first pressure value falls, wherein the pressure value range includes at least a non-linear range; When the first pressure value falls within the nonlinear range, a compensation value for the first pressure value is obtained according to a preset polynomial equation. The calibrated pressure value is obtained based on the compensation value and the first pressure value; The polynomial equation can be expressed in the following way: y=a1x 0 +a2x 1 +…+a n x n-1 ; Where y is the compensation value, x is the preset second pressure value corresponding to the first pressure value, and a n This is the preset first calibration coefficient for the nth term, where n is an integer greater than or equal to 3; Before using the pressure sensor, the first calibration coefficient is adjusted; the adjustment of the first calibration coefficient includes: The parameter adjustment pressure signal output by the pressure sensor after sensing a preset reference pressure value is obtained, wherein the reference pressure value falls within the nonlinear range; The parameter adjustment pressure value is obtained based on the parameter adjustment pressure signal. The parameter adjustment pressure value is calibrated using a preset single-point calibration coefficient to obtain the calibrated parameter adjustment pressure value. The first calibration coefficient is adjusted once based on the calibrated adjustment pressure value and the reference pressure value. Based on the parameter adjustment compensation value and the calibrated parameter adjustment pressure value, the compensated pressure value is obtained. The parameter adjustment compensation value is obtained based on the first calibration coefficient after each adjustment and the polynomial equation. Determine whether the compensated pressure value and the reference pressure value meet preset conditions; If the conditions are met, there is no need to further adjust the first calibration coefficient; Otherwise, the first calibration coefficient needs to be adjusted further; Each time the first calibration coefficient is adjusted, the parameter adjustment compensation value is calculated once. Based on the parameter adjustment compensation value and the calibrated parameter adjustment pressure value, the pressure value after compensation is obtained, and it is determined whether the pressure value after compensation and the reference pressure value meet the preset conditions. The adjustment of all first calibration coefficients is completed when the compensated pressure value and the reference pressure value meet the preset conditions.
2. The method as described in claim 1, characterized in that, The second pressure value can be obtained in the following way: According to preset rules, the nonlinear range is divided into multiple sub-ranges in sequence. Each sub-range corresponds to two adjacent second pressure values. In two adjacent sub-ranges, the larger second pressure value corresponding to the previous sub-range is the smaller second pressure value corresponding to the next sub-range. A threshold is set in each sub-range. When the first pressure value is less than the threshold, the second pressure value is the smaller second pressure value corresponding to the sub-range; When the first pressure value is greater than or equal to the threshold, the second pressure value is the larger second pressure value corresponding to the sub-range.
3. The method as described in claim 2, characterized in that, The calibrated pressure value can be expressed in the following way: z=dy; Where z is the calibrated pressure value, d is the first pressure value, and y is the compensation value.
4. The method as described in claim 2, characterized in that, The adjustment of the first calibration coefficient once includes: Obtain a first absolute value, which is the absolute value of the difference between the calibrated pressure value and the reference pressure value; The first calibration coefficient is adjusted for the first time based on the first absolute value; When n=3, the further adjustment of the first calibration coefficient includes: Obtain a second absolute value, which is the absolute value of the difference between the compensated pressure value and the reference pressure value; When the second absolute value is greater than or equal to a preset first threshold, the first calibration coefficient of the third item is adjusted; or When the second absolute value is less than a preset first threshold and greater than a preset second threshold, the first calibration coefficient of the second item is adjusted; or When the second absolute value is less than or equal to a preset second threshold and greater than a preset third threshold, the first calibration coefficient of the first item is adjusted; Each time the first calibration coefficient is adjusted, the second absolute value is calculated once; Based on the second absolute value, determine whether to continue adjusting the first calibration coefficient; The adjustment of all first calibration coefficients is completed when the second absolute value is less than or equal to a preset third threshold.
5. The method as described in claim 4, characterized in that, The adjustment includes at least one of increasing and decreasing. When the calibrated adjusted pressure value / the compensated pressure value is greater than the reference pressure value, the first calibration coefficient is increased. When the calibrated adjusted pressure value / the compensated pressure value is less than the reference pressure value, the first calibration coefficient is decreased.
6. The method as described in claim 5, characterized in that, The method for adjusting the first calibration coefficient further includes: The adjustment range of the first calibration coefficient for the third term is smaller than the adjustment range of the first calibration coefficient for the second term. The adjustment range of the first calibration coefficient of the second term is less than or equal to the adjustment range of the first calibration coefficient of the first term.
7. A urodynamic testing device, characterized in that, include: Pressure sensor, used to detect pressure data of bladder / urethra / abdominal pressure and output pressure signal; Storage unit, used to store programs; The processing unit is configured to implement the method as described in any one of claims 1-6 when executing the program.
8. A computer storage medium, characterized in that, The medium stores a program that can be executed by a processor to implement the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Output Specification Calibrating Apparatus For Capacitive Pressure Sensor
CN103913269A
Automatic calibration method of sensor and batch calibration device
CN106289366A