Calibration method and equipment of mechanical valve and storage medium
By collecting a small amount of data on the mechanical valve for linear fitting and dynamic compensation, the problems of high calibration costs and reduced accuracy of mechanical valves are solved, and efficient and accurate calibration results are achieved, improving the stability and safety of gas supply.
Patent Information
- Application Number
- CN202510699298.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-07-25
AI Technical Summary
The calibration process of mechanical valves of existing medical equipment is expensive and time-consuming, and wear after long-term use causes a decrease in control accuracy, affecting the stability and accuracy of gas supply.
By controlling the mechanical valve to collect current and gas flow data under different preset open states, perform linear fitting to obtain linear model parameters, and use the linear dynamic compensation function to calculate the dynamic compensation parameters, and dynamic calibration compensation is performed for the original correspondence between the current data and the gas flow data.
It realizes accurate and efficient calibration of mechanical valves, reduces production costs and time consumption, improves gas supply accuracy and system stability, and reduces medical risks.
Smart Images

Figure CN120369310A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to medical devices, and particularly to a calibration method, device, and storage medium for a mechanical valve. Background Art
[0002] Currently, during the valve calibration process of medical devices, multi-point calibration is required using a standard gas source before leaving the factory to obtain a basic calibration data table of the current and flow rate relationship of the valve (proportional valve). Usually, about 30 working condition points need to be collected, which results in high production costs and time consumption. Moreover, during the long-term use of the valve, the wear generated will also cause the control model to become inaccurate, affecting the air supply accuracy and calibration accuracy of the ventilator. In addition, the traditional PID control algorithm is sensitive to changes in the valve body temperature, easily causing fluctuations in control accuracy and affecting the air supply stability of the ventilator.
[0003] Therefore, how to achieve accurate and efficient calibration of the mechanical valve of medical devices is an urgent problem to be solved. Summary of the Invention
[0004] The main technical problem to be solved by the present invention is how to achieve accurate and efficient calibration of the mechanical valve of medical devices, which is an urgent problem to be solved.
[0005] According to a first aspect, in one embodiment, a calibration method for a mechanical valve is provided, which is applied to a respiratory support device. The method includes:
[0006] Controlling the mechanical valve to open according to at least 3 different preset opening states;
[0007] Obtaining the corresponding current data and gas flow rate data of the mechanical valve under different preset opening states; wherein, the mechanical valve under one preset opening state corresponds to a set of current data and gas flow rate data;
[0008] Performing linear fitting on the current data and the gas flow rate data to obtain linear model parameters;
[0009] Inputting the linear model parameters into a preset linear dynamic compensation function to calculate and obtain the dynamic compensation parameters corresponding to the mechanical valve;
[0010] Performing dynamic calibration compensation on the original corresponding relationship between the current data and the gas flow rate data according to the dynamic compensation parameters to obtain a new corresponding relationship between the current data and the gas flow rate data.
[0011] According to a second aspect, in one embodiment, a calibration device for a mechanical valve is provided. The calibration device includes:
[0012] A control unit, configured to control the mechanical valve to open according to at least 3 different preset opening states;
[0013] An acquisition unit, configured to acquire current data and gas flow data corresponding to the mechanical valve in different preset opening states; wherein, a set of current data and gas flow data corresponds to the mechanical valve in one preset opening state;
[0014] A processing unit, configured to perform linear fitting on the current data and the gas flow data to obtain linear model parameters; input the linear model parameters into a preset linear dynamic compensation function, and calculate dynamic compensation parameters corresponding to the mechanical valve;
[0015] A calibration unit, configured to perform dynamic calibration compensation on the original corresponding relationship between the current data and the gas flow data according to the dynamic compensation parameters, so as to obtain a new corresponding relationship between the current data and the gas flow data.
[0016] According to a third aspect, in an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program can be executed by a processor to implement a calibration method for a mechanical valve.
[0017] According to the calibration method of the mechanical valve in the above embodiment, in this application, linear model parameters are obtained by linear fitting of a small amount of current data and gas flow data collected in real time, and then dynamic compensation parameters corresponding to the mechanical valve are further obtained through the linear model parameters and a preset linear dynamic compensation function, and the original corresponding relationship between the current data and the gas flow data is dynamically calibrated and compensated through the dynamic compensation parameters. In this way, the dynamic compensation parameters corresponding to the mechanical valve are calculated through a small amount of current data and gas flow data, and the original corresponding relationship between the current data and the gas flow data of the mechanical valve is accurately and efficiently dynamically calibrated and compensated, thereby avoiding the cumbersome and time-consuming calibration of collecting data at multiple working conditions and the situation of low calibration accuracy. Description of the Drawings
[0018] Figure 1 It is a schematic flowchart of a calibration method for a mechanical valve provided in this embodiment;
[0019] Figure 2 It is a structural block diagram of a calibration device for a mechanical valve provided in this embodiment. Detailed Embodiment
[0020] The present invention will be further described in detail below in conjunction with the specific embodiments and the accompanying drawings. Similar elements in different embodiments are denoted by related similar element numbers. In the following embodiments, many detailed descriptions are provided to enable a better understanding of the present application. However, those skilled in the art can easily recognize that some of the features can be omitted in different situations, or can be replaced by other elements, materials, or methods. In some cases, some operations related to the present application are not shown or described in the specification, in order to avoid overshadowing the core part of the present application with excessive descriptions. For those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations based on the descriptions in the specification and the general technical knowledge in the art.
[0021] In addition, 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 also be reordered or adjusted in a manner obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for clearly describing a certain embodiment, and do not mean that they are necessary sequences, unless it is stated otherwise that a certain sequence must be followed.
[0022] The serial numbers assigned to the components herein, such as "first", "second", etc., are only used to distinguish the described objects and do not have any sequential or technical meaning. And the "connection" and "coupling" mentioned in the present application, unless otherwise specified, both include direct and indirect connection (coupling).
[0023] The existing proportional valve control system has the following deficiencies: On the one hand, it is necessary to perform multi-point calibration using a standard gas source before leaving the factory to obtain a basic calibration data table of the current and flow relationship of the proportional valve. Usually, about 30 working conditions need to be collected, which is not only costly and time-consuming, but also the calibration data is easily affected by environmental factors and needs to be frequently recalibrated, which will also affect the stability and reliability of the system. On the other hand, after the proportional valve is used for a long time, the wear of the valve body will cause the control model to be inaccurate, affecting the air supply accuracy of the respiratory support device and increasing the medical risk. On the other hand, the traditional PID control algorithm is sensitive to the temperature change of the valve body, resulting in fluctuations in control accuracy and affecting the air supply stability of the respiratory support device.
[0024] Based on this, the solution of the present application is proposed. The present application automatically corrects the wear error of the mechanical valve through a dynamic compensation algorithm, thereby ensuring the air supply accuracy of the respiratory support device, improving the long-term stability of the mechanical valve control system, and further reducing the medical risk and ensuring the safety of patients; the present application adopts a dynamic compensation algorithm to dynamically correct the factory calibration table according to the situation of the respiratory support device, effectively coping with mechanical wear and ensuring accurate air supply. At the same time, combined with an adaptive PID control strategy, it reduces the temperature influence and improves the system stability.
[0025] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of a calibration method for a mechanical valve provided in this embodiment. This method is applied to a respiratory support device, and specifically includes the following steps S101 - S105:
[0026] S101. Control the mechanical valve to open according to at least three different preset opening states.
[0027] It should be noted that each time the respiratory support device is turned on, a part of the data needs to be selected from the original corresponding relationship between the current data and the gas flow data. For example, the original corresponding relationship between the current data and the gas flow data when the opening state of the mechanical valve is 1 LPM; the original corresponding relationship between the current data and the gas flow data when the opening state of the mechanical valve is 3 LPM; then subtract the gas flow data in the above two opening states from the initial calibration data in the corresponding opening states to obtain the corresponding differences; when the above differences are all between -2 L / min and 2 L / min, it means that the mechanical valve of the respiratory support device does not need to be calibrated; otherwise, it means that there is a large deviation in the mechanical valve of the respiratory support device and needs to be calibrated. At this time, the mechanical valve of the respiratory support device can be calibrated and compensated according to steps S101 - S105.
[0028] It should be noted that the respiratory support device refers to a device used to provide stable and reliable respiratory support to help patients maintain the balance of normal oxygen supply and carbon dioxide excretion. Exemplarily, the respiratory support device includes but is not limited to treatment ventilators, emergency ventilators, high-frequency jet ventilators, high-frequency oscillating ventilators, transport ventilators, high-flow oxygen therapy devices, air anesthetic machines, direct-current anesthetic machines, and circle-seal anesthetic machines.
[0029] It should be noted that the mechanical valve refers to a hydraulic valve that converts the input electrical signal into force or displacement in proportion to continuously control parameters such as pressure and flow. The mechanical valve includes but is not limited to: oxygen proportioning valves, proportional overflow flow control valves, proportional direction valves.
[0030] It should be noted that the electronic control system of the mechanical valve (proportional valve) usually uses the PID (Proportional-Integral-Derivative) control algorithm to adjust the opening and closing of the valve. This control algorithm can adjust the valve according to the weights of the proportional, integral, and derivative terms to achieve precise flow control.
[0031] It should be noted that the preset open state of the mechanical valve represents the working state in which the valve allows the airflow or fluid to pass through in the pipeline or control system. The preset open state of the mechanical valve can be set according to actual needs. For example, in medical devices, the preset open state of the mechanical valve of a respiratory support device can be set to 2 LPM, 4 LPM, or 6 LPM. This application does not make any limitations in this regard. When the preset open state of the mechanical valve of the respiratory support device is set to 2 LPM, it means that the mechanical valve delivers 2 liters of oxygen per minute; when the preset open state of the mechanical valve of the respiratory support device is set to 4 LPM, it means that the mechanical valve delivers 4 liters of oxygen per minute; when the preset open state of the mechanical valve of the respiratory support device is set to 6 LPM, it means that the mechanical valve delivers 6 liters of oxygen per minute.
[0032] In some embodiments, it is also necessary to obtain the original correspondence between the current data and the gas flow data of the mechanical valve. The original correspondence includes multiple groups of original current data and their corresponding original gas flow data; the original linear model parameters are calculated based on the multiple groups of original current data and their corresponding original gas flow data; among them, the original linear model parameters include the first original linear model parameter and the second original linear model parameter.
[0033] It should be noted that the original correspondence between the current data and the gas flow data of the mechanical valve represents the correspondence between the current data and the gas flow data that have not been corrected before the mechanical valve leaves the factory.
[0034] It should be noted that the first original linear model parameter and the second original linear model parameter can be obtained by any type of linear fitting method for multiple groups of original current data and their corresponding original gas flow data. For example, the first original linear model parameter and the second original linear model parameter can be obtained by the least squares linear fitting method for multiple groups of original current data and their corresponding original gas flow data.
[0035] It should be noted that the first original linear model parameter can be calculated according to the following formula:
[0036]
[0037] In formula (1), a0 represents the first original linear model parameter; Q k represents the original gas flow data; I k represents the original current data; n represents the number of the original correspondences.
[0038] It should be noted that the second original linear model parameter can be calculated according to the following formula:
[0039]
[0040] In formula (2), b0 represents the second original linear model parameter; a0 represents the first original linear model parameter; Q k represents the original gas flow data; I k represents the original current data; n represents the number of original corresponding relationships.
[0041] S102. Obtain the current data and gas flow data corresponding to the mechanical valve in different preset opening states; wherein, one set of current data and gas flow data corresponds to the mechanical valve in one preset opening state.
[0042] It should be noted that there is a linear relationship between the current of the mechanical valve and the opening size of the valve. That is to say, the current is used to control the valve opening. When the current increases, the opening of the mechanical valve will increase in the same proportion, and the flow rate will also increase proportionally. For example, if the current increases by 10%, then the valve opening and flow rate will also increase by 10%.
[0043] It should be noted that one set of current data and gas flow data corresponds to one preset opening state of the mechanical valve. For example, current A and gas flow A correspond to the opening state A of the mechanical valve; current B and gas flow B correspond to the opening state B of the mechanical valve; current C and gas flow C correspond to the opening state C of the mechanical valve.
[0044] In practical applications, generally within the time window of 0.1 second to 2 seconds before starting ventilation, the respiratory support device will quickly control the mechanical valve (proportional valve) to 2 LPM, 4 LPM, 6 LPM, and obtain the corresponding relationship between the control current data of the mechanical valve (proportional valve) and the gas output flow rate in the above 3 preset opening states, that is, obtain multiple sets of current data and gas flow data collected in real time.
[0045] S103. Perform linear fitting on the current data and gas flow data to obtain linear model parameters.
[0046] In some embodiments, the linear model parameters include a first linear model parameter and a second linear model parameter.
[0047] It should be noted that the first linear model parameter and the second linear model parameter can be obtained from the current data and its corresponding gas flow data through any type of linear fitting method. For example, the first linear model parameter and the second linear model parameter can be obtained from the current data and its corresponding gas flow data through the linear fitting method of least squares.
[0048] In some embodiments, performing linear fitting on the current data and gas flow data to obtain linear model parameters includes:
[0049] Calculate the first linear model parameter based on at least three sets of current data and gas flow data;
[0050] Calculate the second linear model parameter based on the first linear model parameter and at least three sets of current data and gas flow data.
[0051] It should be noted that the first linear model parameter can be calculated according to the following formula:
[0052]
[0053] In formula (3), a online represents the first linear model parameter; I online,i represents the current data collected in real time; Q i represents the gas flow data collected in real time.
[0054] In practical applications, the three sets of current data and gas flow data are (I online,1 , Q = 2 LPM), (I online,2 , Q = 4 LPM), (I online,3 , Q = 6 LPM).
[0055] It should be noted that the second linear model parameter can be calculated according to the following formula:
[0056]
[0057] In formula (4), b online represents the second linear model parameter; a online represents the first linear model parameter; I online,i represents the current data collected in real time; Q i represents the gas flow data collected in real time.
[0058] It should be noted that the first linear model parameter and the second linear model parameter can be obtained by linear fitting of the same set of current data and gas flow data, or can be obtained by linear fitting of different sets of current data and gas flow data.
[0059] S104. Input the linear model parameter into a preset linear dynamic compensation function to calculate the dynamic compensation parameter corresponding to the mechanical valve.
[0060] It should be noted that the preset linear dynamic compensation function is a function for limiting the numerical range. That is, the input value is limited between the specified minimum value (min) and maximum value (max). For example, the clamp function. This preset linear dynamic compensation function only needs to adjust the values outside the range, and the values within the range remain unchanged. In this way, the calculation cost is reduced.
[0061] In some embodiments, the dynamic compensation parameters include a first dynamic compensation parameter and a second dynamic compensation parameter.
[0062] In some embodiments, a deviation threshold corresponding to a mechanical valve is obtained; wherein, the deviation threshold is used to indicate the maximum positive and negative deviation values allowed for the dynamic compensation parameters, and the deviation threshold includes a first deviation threshold and a second deviation threshold.
[0063] It should be noted that, in order to avoid over-calibration or under-calibration when calibrating the mechanical valve, a deviation threshold can be introduced during the calibration process of the mechanical valve, so as to limit the dynamic compensation parameters of the mechanical valve within an appropriate range. For example, the first dynamic compensation parameter is limited within the range of the first deviation threshold; the second dynamic compensation parameter is limited within the range of the second deviation threshold.
[0064] In some embodiments, inputting the linear model parameters into a preset linear dynamic compensation function to calculate the dynamic compensation parameters corresponding to the mechanical valve includes:
[0065] Inputting the first linear model parameter, the first original linear model parameter, and the first deviation threshold into the preset linear dynamic compensation function to calculate the first dynamic compensation parameter;
[0066] Inputting the second linear model parameter, the second original linear model parameter, and the second deviation threshold into the preset linear dynamic compensation function to calculate the second dynamic compensation parameter.
[0067] It should be noted that the first dynamic compensation parameter can be calculated according to the following formula:
[0068] Δa = clamp(a online - a0, ±Δa max ) (5),
[0069] In formula (5), Δa represents the first dynamic compensation parameter; a online represents the first linear model parameter; a0 represents the first original linear model parameter; ±Δa max represents the first deviation threshold.
[0070] In practical applications, the clamp function limits the first dynamic compensation parameter Δa between -Δa max and +Δa max .
[0071] It should be noted that the second dynamic compensation parameter can be calculated according to the following formula:
[0072] Δb = clamp(b online - b0, ±Δb max ) (6),
[0073] In Equation (6), Δb represents the second dynamic compensation parameter; b online represents the second linear model parameter; b0 represents the second original linear model parameter; ±Δb max represents the second deviation threshold.
[0074] In practical applications, the clamp function limits the second dynamic compensation parameter Δb to -Δb max and +Δb max therebetween.
[0075] S105. Dynamically calibrate and compensate the original corresponding relationship between the current data and the gas flow data according to the dynamic compensation parameter to obtain a new corresponding relationship between the current data and the gas flow data.
[0076] It should be noted that the original corresponding relationship between the current data and the gas flow data is used to enable the respiratory support device to control the valve opening according to the required current. For example, the respiratory support device receives the flow rate setting value input by the user, matches the corresponding current in this corresponding relationship according to the flow rate setting value, and thus controls the valve opening according to the matched current.
[0077] It should be noted that dynamically calibrating and compensating the original corresponding relationship between the current data and the gas flow data according to the dynamic compensation parameter means calibrating or correcting the original gas flow data corresponding to the original current data to obtain the calibrated gas flow data corresponding to the original current data.
[0078] In some embodiments, dynamically calibrating and compensating the original corresponding relationship between the current data and the gas flow data according to the dynamic compensation parameter to obtain a new corresponding relationship between the current data and the gas flow data includes:
[0079] Dynamically calibrate and compensate the original corresponding relationship between the current data and the gas flow data according to the first original linear model parameter, the second original linear model parameter, the first dynamic compensation parameter, and the second dynamic compensation parameter to obtain a new corresponding relationship between the current data and the gas flow data.
[0080] It should be noted that the calibrated gas flow data can be calculated according to the following formula:
[0081] Q corrected,k = a0I l,orig + b0 + Δa·I k,orig + Δb (7),
[0082] In Equation (7), Q corrected,k represents the calibrated gas flow data; I k,orig represents the kth original current data in the factory calibration table.
[0083] In some embodiments, dynamically calibrating and compensating the original corresponding relationship between current data and gas flow rate data according to dynamic compensation parameters to obtain a new corresponding relationship between current data and gas flow rate data further includes:
[0084] When it is monitored that the pressure in the ventilation pipeline of the respiratory support device is zero or the gas flow rate is zero, dynamically calibrating and compensating the original corresponding relationship between current data and gas flow rate data according to the first original linear model parameter, the second original linear model parameter, the first dynamic compensation parameter, and the second dynamic compensation parameter to obtain a new corresponding relationship between current data and gas flow rate data.
[0085] It should be noted that the calibrated gas flow rate data is as shown in formula (7), which will not be elaborated here.
[0086] It should be noted that the dynamic calibration and compensation of the original corresponding relationship between current data and gas flow rate data can be automatically triggered by the respiratory support device. Specifically, when it is monitored that the pressure in the ventilation pipeline of the respiratory support device is zero, it indicates that the mechanical valve is not used at this time, and the mechanical valve can be calibrated and compensated at this time. Or, when it is monitored that the gas flow rate of the respiratory support device is zero, it indicates that the mechanical valve is not used at this time, and the mechanical valve can also be calibrated and compensated at this time.
[0087] In some embodiments, dynamically calibrating and compensating the original corresponding relationship between current data and gas flow rate data according to dynamic compensation parameters to obtain a new corresponding relationship between current data and gas flow rate data further includes:
[0088] Receiving an instruction from the user to initiate dynamic calibration and compensation, and in response to this instruction, dynamically calibrating and compensating the original corresponding relationship between current data and gas flow rate data according to the first original linear model parameter, the second original linear model parameter, the first dynamic compensation parameter, and the second dynamic compensation parameter to obtain a new corresponding relationship between current data and gas flow rate data.
[0089] It should be noted that the calibrated gas flow rate data is as shown in formula (7), which will not be elaborated here.
[0090] It should be noted that the dynamic calibration and compensation of the original corresponding relationship between current data and gas flow rate data can be triggered by the user. The specific triggering method can be that the user clicks the button to initiate dynamic calibration and compensation on the respiratory support device; or the user sends a voice instruction to initiate dynamic calibration and compensation to the respiratory support device. Regarding this, the present application makes no limitations.
[0091] In practical applications, the present application corrects the factory calibration data table (the original correspondence between current data and gas flow data) through the least squares method and the linear fitting compensation algorithm to obtain the corrected data table of the mechanical valve (proportional valve) (the new correspondence between current data and gas flow data) to adapt to the influence of valve body aging and environmental changes. It should be noted that the present application is based on the experimental data of the mechanical valve (proportional valve), and the calibration range is limited within a certain range (the first deviation threshold and the second deviation threshold), so as to avoid overcorrection and ensure the long-term stability and accuracy of the mechanical valve (proportional valve).
[0092] This embodiment discloses a calibration method for a mechanical valve, which is applied to a respiratory support device. The method includes: controlling the mechanical valve to open according to at least 3 different preset opening states; obtaining the current data and gas flow data corresponding to the mechanical valve in different preset opening states; wherein, the mechanical valve in one preset opening state corresponds to a set of current data and gas flow data; performing linear fitting on the current data and gas flow data to obtain linear model parameters; inputting the linear model parameters into a preset linear dynamic compensation function to calculate the dynamic compensation parameters corresponding to the mechanical valve; and performing dynamic calibration compensation on the original correspondence between the current data and the gas flow data according to the dynamic compensation parameters to obtain the new correspondence between the current data and the gas flow data. In this way, the dynamic compensation parameters corresponding to the mechanical valve are calculated through a small amount of current data and gas flow data, and the original correspondence between the current data and the gas flow data of the mechanical valve is accurately and efficiently dynamically calibrated and compensated through the dynamic compensation parameters, thereby avoiding the cumbersome and time-consuming calibration of collecting data at multiple working condition points and the situation of low calibration accuracy.
[0093] Please refer to Figure 2 , Figure 2 which is the structural block diagram of a calibration device for a mechanical valve provided in this embodiment. The calibration device 20 specifically includes:
[0094] A control unit 201, configured to control the mechanical valve to open according to at least 3 different preset opening states; that is, configured to execute the above step S101.
[0095] An acquisition unit 202, configured to acquire the current data and gas flow data corresponding to the mechanical valve in different preset opening states; wherein, the mechanical valve in one preset opening state corresponds to a set of current data and gas flow data; that is, configured to execute the above step S102.
[0096] The processing unit 203 is configured to perform linear fitting on the current data and the gas flow rate data to obtain linear model parameters; input the linear model parameters into a preset linear dynamic compensation function, and calculate the dynamic compensation parameters corresponding to the mechanical valve; that is, it is configured to execute the above steps S103 and S104.
[0097] The calibration unit 204 is configured to perform dynamic calibration and compensation on the original corresponding relationship between the current data and the gas flow rate data according to the dynamic compensation parameters to obtain a new corresponding relationship between the current data and the gas flow rate data. That is, it is configured to execute the above step S105.
[0098] This embodiment discloses a calibration device for a mechanical valve. The calibration device includes a processing unit configured to control the mechanical valve to open in at least three different preset opening states. An acquisition unit is configured to acquire the current data and the gas flow rate data corresponding to the mechanical valve in different preset opening states; wherein, a set of current data and gas flow rate data corresponds to the mechanical valve in one preset opening state. The processing unit is configured to perform linear fitting on the current data and the gas flow rate data to obtain linear model parameters; input the linear model parameters into a preset linear dynamic compensation function, and calculate the dynamic compensation parameters corresponding to the mechanical valve. The calibration unit is configured to perform dynamic calibration and compensation on the original corresponding relationship between the current data and the gas flow rate data according to the dynamic compensation parameters to obtain a new corresponding relationship between the current data and the gas flow rate data. In this way, the dynamic compensation parameters corresponding to the mechanical valve are calculated through a small amount of current data and gas flow rate data, and the original corresponding relationship between the current data and the gas flow rate data of the mechanical valve is accurately and efficiently dynamically calibrated and compensated by the dynamic compensation parameters, thereby avoiding the cumbersome and time-consuming calibration of collecting data at multiple working condition points and the situation of low calibration accuracy.
[0099] Those skilled in the art can understand that all or part of the functions of the various methods in the above embodiments can be implemented in a hardware manner or in a computer program manner. When all or part of the functions in the above embodiments are implemented in a computer program manner, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, magnetic disk, optical disk, hard disk, etc. The above functions can be realized by a computer executing this program. For example, the program is stored in the memory of the device, and when the processor executes the program in the memory, the above all or part of the functions can be realized. In addition, when all or part of the functions in the above embodiments are implemented in a computer program manner, the program can also be stored in a storage medium such as a server, another computer, magnetic disk, optical disk, flash drive or mobile hard disk, and saved to the memory of the local device by downloading or copying, or the system of the local device is updated in version. When the processor executes the program in the memory, all or part of the functions in the above embodiments can be realized.
[0100] The above uses specific examples to elaborate on the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art of the present invention, according to the idea of the present invention, several simple deductions, deformations or substitutions can also be made.
Claims
1. A calibration method for a mechanical valve, applied to a respiratory support device, characterized in that The method includes: Controlling the mechanical valve to open according to at least 3 different preset opening states; Obtaining the corresponding current data and gas flow data of the mechanical valve under different preset opening states; wherein, the mechanical valve under one preset opening state corresponds to a set of current data and gas flow data; Performing linear fitting on the current data and the gas flow data to obtain linear model parameters; Inputting the linear model parameters into a preset linear dynamic compensation function to calculate the dynamic compensation parameters corresponding to the mechanical valve; Performing dynamic calibration compensation on the original corresponding relationship between the current data and the gas flow data according to the dynamic compensation parameters to obtain a new corresponding relationship between the current data and the gas flow data.
2. The method according to claim 1, characterized in that The method further includes: Obtaining the original corresponding relationship between the current data and the gas flow data of the mechanical valve, where the original corresponding relationship includes multiple sets of original current data and their corresponding original gas flow data; Calculating original linear model parameters according to the multiple sets of original current data and their corresponding original gas flow data; wherein, the original linear model parameters include a first original linear model parameter and a second original linear model parameter.
3. The method according to claim 2, wherein The linear model parameters include a first linear model parameter and a second linear model parameter; The performing linear fitting on the current data and the gas flow data to obtain linear model parameters includes: Calculating the first linear model parameter according to at least 3 sets of the current data and the gas flow data; Calculating the second linear model parameter according to the first linear model parameter and at least 3 sets of the current data and the gas flow data.
4. The method according to claim 3, wherein The method further includes: Obtaining the deviation threshold corresponding to the mechanical valve; wherein, the deviation threshold is used to indicate the maximum positive and negative deviation values allowed for the dynamic compensation parameters, and the deviation threshold includes a first deviation threshold and a second deviation threshold.
5. The method according to claim 4, characterized in that, The dynamic compensation parameters include a first dynamic compensation parameter and a second dynamic compensation parameter; The inputting the linear model parameters into a preset linear dynamic compensation function to calculate the dynamic compensation parameters corresponding to the mechanical valve includes: Inputting the first linear model parameter, the first original linear model parameter, and the first deviation threshold into the preset linear dynamic compensation function to calculate the first dynamic compensation parameter; Inputting the second linear model parameter, the second original linear model parameter, and the second deviation threshold into the preset linear dynamic compensation function to calculate the second dynamic compensation parameter.
6. The method according to claim 5, characterized in that, The performing dynamic calibration compensation on the original corresponding relationship between the current data and the gas flow data according to the dynamic compensation parameters to obtain a new corresponding relationship between the current data and the gas flow data includes: Performing dynamic calibration compensation on the original corresponding relationship between the current data and the gas flow data according to the first original linear model parameter, the second original linear model parameter, the first dynamic compensation parameter, and the second dynamic compensation parameter to obtain the new corresponding relationship between the current data and the gas flow data.
7. The method according to claim 5, characterized in that, Dynamically calibrating and compensating the original corresponding relationship between current data and gas flow data according to the dynamic compensation parameters to obtain a new corresponding relationship between current data and gas flow data further includes: When it is monitored that the pressure in the ventilation pipeline of the respiratory support device is zero or the gas flow is zero, dynamically calibrating and compensating the original corresponding relationship between current data and gas flow data according to the first original linear model parameter, the second original linear model parameter, the first dynamic compensation parameter, and the second dynamic compensation parameter to obtain the new corresponding relationship between current data and gas flow data.
8. The method according to claim 5, wherein Dynamically calibrating and compensating the original corresponding relationship between current data and gas flow data according to the dynamic compensation parameters to obtain a new corresponding relationship between current data and gas flow data further includes: Receiving an instruction from the user to initiate dynamic calibration and compensation, and in response to this instruction, dynamically calibrating and compensating the original corresponding relationship between current data and gas flow data according to the first original linear model parameter, the second original linear model parameter, the first dynamic compensation parameter, and the second dynamic compensation parameter to obtain the new corresponding relationship between current data and gas flow data.
9. A calibration device for a mechanical valve, characterized in that, The calibration device includes: A control unit for controlling the mechanical valve to open in at least three different preset opening states; An acquisition unit for acquiring the current data and gas flow data corresponding to the mechanical valve in different preset opening states; wherein, a set of current data and gas flow data corresponds to the mechanical valve in one preset opening state; A processing unit for performing linear fitting on the current data and the gas flow data to obtain linear model parameters; inputting the linear model parameters into a preset linear dynamic compensation function to calculate the dynamic compensation parameters corresponding to the mechanical valve; A calibration unit for dynamically calibrating and compensating the original corresponding relationship between current data and gas flow data according to the dynamic compensation parameters to obtain a new corresponding relationship between current data and gas flow data.
10. A computer-readable storage medium, characterized in that, The medium stores a computer program, and the computer program can be executed by a processor to implement the method according to any one of claims 1-8.
Citation Information
Cited By
Rotary valve calibration method, device, equipment and medium
CN120778363A