Inflation control method, device and computer equipment of blood pressure measuring device
By monitoring and calculating the measurement pressure error of the air pump in real time within the blood pressure measuring device, and dynamically adjusting the duty cycle, the problems of air overshoot and oscillation are solved, thus improving the accuracy of blood pressure measurement.
Patent Information
- Application Number
- CN202511804158.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-03
- Publication Date
- 2026-03-03
- Estimated Expiration
- 2045-12-03
AI Technical Summary
Existing blood pressure measurement devices suffer from inflation overshoot or oscillation due to inflation control methods, which reduces the accuracy of blood pressure measurement results.
By acquiring the measured pressure of the air pump of the blood pressure measuring device at the previous and current moments, the error value is calculated to generate a pulse signal with a preset duty cycle, and the duty cycle of the air pump is dynamically adjusted to avoid overshoot of the air pump based on the desired pressure.
It significantly reduces the number of times the air pump starts and stops, as well as noise, and improves the accuracy of blood pressure measurement results.
Smart Images

Figure CN121242527B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of medical electronic equipment technology, and in particular to an inflation control method, apparatus, and computer device for a blood pressure measuring device. Background Technology
[0002] Blood pressure is a key physiological parameter for assessing the health of the human cardiovascular system. Measuring blood pressure allows for effective screening and prevention of potential cardiovascular problems. To facilitate convenient blood pressure measurement and daily trend tracking, inflatable blood pressure monitors have been developed, providing more comfortable and frequent ambulatory blood pressure monitoring for rapid initial screening. The working principle of an inflatable blood pressure monitor is to inflate the cuff, detect the pulse amplitude to infer systolic and diastolic blood pressure, and immediately stop inflation after measurement, allowing the cuff to return to its initial state. A common method for controlling inflation in blood pressure monitors is through a Bang-Bang (on / off) setting. The controller in the blood pressure monitor switches between on and off states based on the deviation between the pressure value and the set value; inflation occurs when the device is on and not when it is off.
[0003] However, the above inflation control method is prone to inflation overshoot or oscillation, which reduces the accuracy of blood pressure measurement results. Summary of the Invention
[0004] Therefore, it is necessary to provide an inflation control method, device, and computer equipment for a blood pressure measuring device that can improve the accuracy of blood pressure measurement results, in response to the above-mentioned technical problems.
[0005] In a first aspect, this application provides an inflation control method for a blood pressure measuring device, comprising:
[0006] Obtain the previous measurement pressure of the air pump of the blood pressure measuring device at the previous moment and the current measurement pressure at the current moment;
[0007] An inflation control signal is generated based on the error between the expected pressure at the current moment and the current measured pressure; the inflation control signal is a pulse signal with a preset duty cycle.
[0008] The inflation control signal is used to control the inflation of the air pump.
[0009] In one embodiment, generating an inflation control signal based on the error value between the desired pressure at the current moment and the current measured pressure includes:
[0010] Determine the error value between the expected pressure at the current moment and the current measured pressure, determine the preset duty cycle, and generate an inflation control signal for the preset duty cycle.
[0011] In one embodiment, determining the preset duty cycle based on the error value between the expected pressure at the current moment and the current measured pressure includes:
[0012] The duty cycle of the previous moment is determined based on the error between the expected pressure at the current moment and the current measured pressure.
[0013] Determine whether the error value is less than a preset error threshold. If the error value is less than the preset error threshold, then the duty cycle of the previous time step is used as the preset duty cycle. If the error value is not less than the preset error threshold, then the preset duty cycle is determined based on the duty cycle of the previous time step and the number of first sampling points between the previous time step and the current time step.
[0014] In one embodiment, determining the preset duty cycle based on the duty cycle of the previous time step and the number of first sampling points between the previous time step and the current time step includes:
[0015] The candidate duty cycle is determined based on the duty cycle of the previous time step and the preset step size;
[0016] The preset duty cycle is determined from the duty cycle at the previous time and the candidate duty cycle based on the number of second sampling points corresponding to the candidate duty cycle and the number of first sampling points.
[0017] In one embodiment, determining the preset duty cycle from the duty cycle at the previous time step and the candidate duty cycle based on the number of second sampling points corresponding to the candidate duty cycle and the number of first sampling points includes:
[0018] If the number of the first sampling points is less than the number of the second sampling points, then the duty cycle of the previous moment is taken as the preset duty cycle.
[0019] If the number of the first sampling points is not less than the number of the second sampling points, then the candidate duty cycle is used as the preset duty cycle.
[0020] In one embodiment, determining the duty cycle of the previous time step based on the error value between the expected pressure at the current time and the current measured pressure includes:
[0021] The error value is input to the PID controller for adjustment to obtain the control quantity;
[0022] The duty cycle of the previous moment is determined based on the feedforward quantity and the control quantity; the feedforward quantity is the ratio of the slope of the change corresponding to the desired pressure of the air pump to the maximum inflation rate of the air pump.
[0023] In one embodiment, the previous moment is the initial moment when the air pump performs the measurement, and the method further includes:
[0024] A desired pressure change curve is generated based on the previously measured pressure; the desired pressure change curve is used to characterize the desired pressure at different times.
[0025] The step of generating an inflation control signal based on the error value between the expected pressure at the current moment and the current measured pressure includes:
[0026] The expected pressure at the current moment is obtained based on the expected pressure change curve.
[0027] An inflation control signal is generated based on the error between the expected pressure at the current moment and the current measured pressure.
[0028] In one embodiment, generating the desired pressure change curve based on the previous measured pressure includes:
[0029] The previously measured pressure is input into the soft-start function for calculation to obtain the expected pressure at multiple first preset times arranged in chronological order;
[0030] The target expected pressure among the multiple expected pressures is input into a linear function for calculation to obtain the expected pressures at multiple second preset times arranged in chronological order; the time corresponding to the target expected pressure is the last time among the multiple first preset times.
[0031] The expected pressure change curve is generated based on the expected pressure at the plurality of first preset times and the expected pressure at the plurality of second preset times.
[0032] Secondly, this application also provides an inflation control device for a blood pressure measuring device, comprising:
[0033] The acquisition module is used to acquire the previous measurement pressure of the air pump of the blood pressure measuring device at the previous moment and the current measurement pressure at the current moment;
[0034] The generation module is used to generate an inflation control signal based on the error value between the expected pressure at the current time and the current measured pressure; the inflation control signal is a pulse signal with a preset duty cycle.
[0035] The control module is used to control the inflation of the air pump according to the inflation control signal.
[0036] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0037] Obtain the previous measurement pressure of the air pump of the blood pressure measuring device at the previous moment and the current measurement pressure at the current moment;
[0038] An inflation control signal is generated based on the error between the expected pressure at the current moment and the current measured pressure; the inflation control signal is a pulse signal with a preset duty cycle.
[0039] The inflation control signal is used to control the inflation of the air pump.
[0040] The inflation control method, device, and computer equipment of the aforementioned blood pressure measuring device first acquire the previous measurement pressure of the inflation pump of the blood pressure measuring device at the previous moment and the current measurement pressure at the current moment; then, based on the error value between the expected pressure at the current moment and the current measurement pressure, an inflation control signal is generated; the inflation control signal is a pulse signal with a preset duty cycle; finally, the inflation pump is controlled to inflate according to the inflation control signal. By monitoring the measured pressure at any adjacent time in real time, the duty cycle of the air pump at the current time is calculated, enabling dynamic adjustment of the air pump's duty cycle to reduce the deviation between the measured pressure and the standard pressure value at the corresponding time. Simultaneously, using the interval between adjacent time moments as an inflation control cycle for the air pump, the duty cycle is adjusted in a stepwise manner, maintaining a certain duration between two adjustment operations. This significantly reduces the number of start-stop cycles and noise of the air pump. Compared to traditional inflation methods based on a fixed duty cycle or on / off control, which suffer from inflation overshoot or oscillation, this method dynamically adjusts the air pump's duty cycle at different times based on the error between the measured pressure at the current time and the desired pressure. Using the desired pressure as a benchmark, a more reasonable duty cycle is determined, avoiding air pump overshoot and improving the accuracy of blood pressure measurement results. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 This is a diagram illustrating the application environment of an inflation control method for a blood pressure measuring device in one embodiment.
[0043] Figure 2This is a flowchart illustrating the inflation control method of a blood pressure measuring device in one embodiment;
[0044] Figure 3 This is a flowchart illustrating the inflation control method of a blood pressure measuring device in another embodiment;
[0045] Figure 4 This is a flowchart illustrating the process of determining a preset duty cycle in one embodiment;
[0046] Figure 5 This is a flowchart illustrating the process of determining a candidate duty cycle in one embodiment;
[0047] Figure 6 This is a flowchart illustrating the process of determining a preset duty cycle in another embodiment;
[0048] Figure 7 This is a flowchart illustrating the process of determining the duty cycle at the previous moment in one embodiment.
[0049] Figure 8 This is a schematic diagram of the inflation control process based on the desired pressure change curve in one embodiment;
[0050] Figure 9 This is a schematic diagram illustrating the application of the desired pressure change curve in one embodiment.
[0051] Figure 10 This is a schematic diagram of the process for generating a desired pressure change curve in one embodiment;
[0052] Figure 11 This is a flowchart illustrating the inflation control method of a blood pressure measuring device in another embodiment;
[0053] Figure 12 This is a structural block diagram of the inflation control device of a blood pressure measuring device in one embodiment;
[0054] Figure 13 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0056] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0057] Blood pressure is a key physiological parameter for assessing the health of the human cardiovascular system. Measuring blood pressure allows for effective screening and prevention of potential cardiovascular problems. To improve the convenience of blood pressure measurement and facilitate daily trend tracking, inflatable blood pressure monitors have emerged, providing more comfortable and frequent ambulatory blood pressure monitoring for rapid initial screening. The working principle of an inflatable blood pressure monitor is to inflate the cuff, detect the pulse amplitude to infer systolic and diastolic blood pressure, and immediately stop inflation after measurement, allowing the cuff to return to its initial state. A common method for controlling inflation in blood pressure monitors is through a bang-bang (on / off) setting. The controller in the blood pressure monitor switches between on and off states based on the deviation between the pressure value and the set value; inflation occurs when the device is on and not when it is off. However, this inflation control method is prone to overshoot or oscillation, leading to reduced accuracy in blood pressure measurements.
[0058] In view of the above-mentioned technical problems, this application provides an inflation control method for a blood pressure measuring device that can improve the accuracy of blood pressure measurement results. The following embodiments will specifically illustrate the inflation control method for the blood pressure measuring device.
[0059] The inflation control method for the blood pressure measuring device provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, the control device 102 is connected to the inflation pump 104 of the blood pressure measuring device via a network. The control device 102 includes a data acquisition unit, a processor, and an input unit. The data acquisition unit monitors the measurement pressure on the cuff of the blood pressure measuring device in real time when the inflation pump 104 inflates, and transmits the measurement pressure to the processor to generate a control signal. The input unit receives user-inputted proportional, integral, and derivative coefficients, clears the sliding window integral buffer, initializes positive and negative hold counters and other status flags, and controls parameters such as duty cycle upper and lower limits, fixed step size, basic hold point count, and sliding window length. It then transmits these status and control parameters to the processor to initialize the control device 102, adapting it to different inflation pump 104 characteristics, cuff volume, and clinical strategies. After completing the initialization configuration through the parameters transmitted by the input unit, the processor processes the measurement pressure transmitted by the data acquisition unit at different times and outputs a control signal to the inflation pump 104. The inflation pump 104 inflates based on the control signal at the corresponding time to complete the blood pressure measurement. The control device 102 can be integrated into the blood pressure measuring device or located on a cloud or other network server outside the blood pressure measuring device. The control device 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, drones, low-altitude aircraft, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can include virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc.
[0060] In one exemplary embodiment, an inflation control method for a blood pressure measuring device is provided, which is applied to... Figure 1 Taking the control equipment in the middle as an example, such as Figure 2 As shown, it includes:
[0061] Step S201: Obtain the previous measurement pressure of the air pump of the blood pressure measuring device at the previous moment and the current measurement pressure at the current moment.
[0062] The blood pressure measuring device can be any type of medical ambulatory blood pressure monitor, smart / networked blood pressure monitor, or dual-tube automatic blood pressure monitor, or other inflatable blood pressure measuring devices; there are no restrictions here. The previous and current times can be any adjacent moments during the inflation process of the blood pressure measuring device's inflation pump. The interval between adjacent moments is set according to actual data collection needs, such as 1 second, or other intervals; there are no restrictions here. The measured pressure can be the pressure value obtained by converting the measured value of the blood pressure measuring device's inflation pump during cuff inflation.
[0063] In the embodiments of this application, the control device starts the inflation pump of the blood pressure measuring device to inflate the cuff. The pressure sensor set on the cuff collects the ADC value, i.e. the air pressure signal, at different times in real time and transmits it to the control device. The control device selects the air pressure signal at the corresponding time to be controlled for inflation from the air pressure signals at different times according to the preset sliding window. Optionally, in the first method, when the preset sliding window has not started to move, the air pressure signals at adjacent times included in the sliding window at this time are the air pressure signal at the start time and the air pressure signal at the current time. The control device extracts and converts the air pressure signal at the start time and the air pressure signal at the current time through a linear mapping function to generate the previous measurement pressure at the previous time and the current measurement pressure at the current time. Alternatively, a second approach involves the following: when the preset sliding window sequentially slides to the middle stage of blood pressure measurement, the sliding window contains the air pressure signals from adjacent moments, including the current moment's air pressure signal and the previous moment's air pressure signal. The control device extracts and transforms the previous moment's air pressure signal and the current moment's air pressure signal using a linear mapping function, generating the previous moment's measured pressure and the current moment's measured pressure. Linear mapping functions include, but are not limited to, the following functions: convolution, discrete Fourier transform, affine mapping, and linear mapping of neural network layers.
[0064] Step S202: Generate an inflation control signal based on the error between the expected pressure at the current moment and the current measured pressure.
[0065] The inflation control signal can be a pulse signal with a preset duty cycle; the desired pressure can be the standard pressure value of the inflation pump at the corresponding moment, with the blood pressure measurement corresponding to the standard pressure value being optimal. The error value can be positive, negative, or 0. That is, if the current measured pressure is greater than the desired pressure at the current moment, the error value is positive; if the current measured pressure is less than the desired pressure at the current moment, the error value is negative; if the current measured pressure is equal to the desired pressure at the current moment, the error value is 0.
[0066] In the embodiments of this application, after obtaining the current measured pressure at the current moment, the control device can acquire a preset expected pressure change curve, which includes the standard pressure values at different moments during the blood pressure measurement. The current moment is then matched with a preset moment in the preset expected pressure change curve. If the similarity between the current moment and the preset moment is greater than a preset similarity threshold, the expected pressure corresponding to that preset moment is extracted as the expected pressure at the current moment. A difference calculation is performed between the expected pressure at the current moment and the current strategy measured pressure at the current moment to obtain the error value between the expected pressure at the current moment and the current measured pressure. Optionally, a preset duty cycle is obtained by calculating the error value using a PID algorithm. This preset duty cycle can be the duty cycle of the inflation cycle corresponding to the inflation pump at the current moment.
[0067] Step S203: Control the inflation of the air pump according to the inflation control signal.
[0068] In the embodiments of this application, the control device controls the inflation of the air pump based on the calculated inflation control signal. That is, the air pump inflates according to the current preset duty cycle at the current moment. When the inflation process duration reaches the preset sliding window length, the control device receives the air pressure signal at the new moment (the next moment after the current moment). At the same time, the sliding window slides according to a fixed step size to reach a new calculation inflation control stage. At this time, the sliding window contains the air pressure signal at the current moment and other signals at the new moment. The control device converts the air pressure signal at the current moment and other signals at the new moment to generate the measured pressure at the current moment and the measured pressure at the new moment. Based on the error value between the expected pressure at the new moment and the measured pressure at the new moment, a new inflation control signal is generated. The air pump inflates according to the new preset duty cycle in the inflation control signal at the new moment. This step is repeated until the blood pressure measurement duration reaches the preset time threshold, and the control device completes the complete inflation control of the air pump.
[0069] The inflation control method for the aforementioned blood pressure measuring device first obtains the previous measurement pressure of the inflation pump at the previous moment and the current measurement pressure at the current moment; then, based on the error value between the expected pressure at the current moment and the current measurement pressure, an inflation control signal is generated; the inflation control signal is a pulse signal with a preset duty cycle; finally, the inflation pump is controlled to inflate according to the inflation control signal. By monitoring the measured pressure at any adjacent time in real time, the duty cycle of the air pump at the current time is calculated, enabling dynamic adjustment of the air pump's duty cycle to reduce the deviation between the measured pressure and the standard pressure value at the corresponding time. Simultaneously, using the interval between adjacent time moments as an inflation control cycle for the air pump, the duty cycle is adjusted in a stepwise manner, maintaining a certain duration between two adjustment operations. This significantly reduces the number of start-stop cycles and noise of the air pump. Compared to traditional inflation methods based on a fixed duty cycle or on / off control, which suffer from inflation overshoot or oscillation, this method dynamically adjusts the air pump's duty cycle at different times based on the error between the measured pressure at the current time and the desired pressure. Using the desired pressure as a benchmark, a more reasonable duty cycle is determined, avoiding air pump overshoot and improving the accuracy of blood pressure measurement results.
[0070] In one exemplary embodiment, such as Figure 3 As shown, an inflation control signal is generated based on the error between the desired pressure at the current moment and the current measured pressure, including:
[0071] S301, Obtain the previous measurement pressure of the air pump of the blood pressure measuring device at the previous moment and the current measurement pressure at the current moment.
[0072] In the embodiments of this application, the control device starts the inflation pump of the blood pressure measuring device to inflate the cuff, and receives the air pressure signal sensed by the cuff sensor in real time during the inflation process. According to a preset sliding window, it extracts the current air pressure signal to be controlled at the current moment and the air pressure signal from the previous moment from the air pressure signal. The two extracted air pressure signals are then converted into the current measurement pressure at the current moment and the previous measurement pressure at the previous moment through a linear mapping function, for accurate calculation of the error value in subsequent processes. The acquisition principle in step S301 is the same as that in step S201, and is not limited here.
[0073] S302, determine the error value between the expected pressure and the current measured pressure at the current moment, determine the preset duty cycle, and generate an inflation control signal with the preset duty cycle.
[0074] The preset duty cycle represents the duty cycle of the inflation cycle when the current time is used as the starting time for inflation. The preset duty cycle can be any value from 0 to 100%. For example, the preset duty cycle can be 50%, or other values. There are no restrictions here.
[0075] In the embodiments of this application, for the current measured pressure at the current moment, the control device acquires the pre-stored expected pressure change curve, determines the expected pressure at the current moment from the expected pressure curve, and performs a subtraction operation between the current measured pressure and the expected pressure corresponding to the current moment to obtain the error value between the current measured pressure and the expected pressure corresponding to the current moment. Based on the error between the expected pressure and the current measured pressure at the current moment, the duty cycle of the previous moment is calculated. It is then determined whether the error value is within a preset error range. If the error value is within the preset error range, it indicates that the error value has not exceeded the limit error range. That is, using the duty cycle of the previous moment to control the inflation of the air pump results in an inflation volume and a measured pressure that meet the accuracy requirements of the blood pressure measurement results. In this case, the preset duty cycle is determined based on the duty cycle of the previous moment. If the error value is not within the preset error range, it indicates that the error value has exceeded the limit error range. That is, when using the duty cycle of the previous moment to control the inflation of the air pump, the corresponding measured pressure is insufficient to measure an accurate blood pressure value. The duty cycle of the previous moment needs to be adjusted. Optionally, a fixed step size and the first sampling point data during the process from the previous moment to the current moment are acquired, and the preset duty cycle is determined based on the duty cycle of the previous moment, the fixed step size, and the first sampling point data during the process from the previous moment to the current moment.
[0076] The above method dynamically adjusts the duty cycle of the air pump at different times by using the error value between the measured pressure at the current moment and the expected pressure. Based on the expected pressure, a more reasonable duty cycle is determined, which avoids the air pump from overshooting and improves the accuracy of blood pressure measurement results.
[0077] In one exemplary embodiment, such as Figure 4 As shown, based on the error between the expected pressure at the current moment and the current measured pressure, the preset duty cycle is determined, including:
[0078] S401, determine the duty cycle of the previous moment based on the error between the expected pressure at the current moment and the current measured pressure.
[0079] The duty cycle of the previous moment represents the duty cycle of the inflation cycle when the previous moment is used as the starting time for inflation. The duty cycle of the previous moment can be any value from 0 to 100%. For example, the duty cycle of the previous moment can be 48%, or it can be other values. There are no restrictions here.
[0080] In the embodiments of this application, the control device performs a subtraction operation between the current measured pressure and the expected pressure corresponding to the current time to obtain the error value between the current measured pressure and the expected pressure corresponding to the current time. When determining the duty cycle of the previous time based on the error value, the proportional coefficient (P), integral coefficient (I), and derivative coefficient (D) in the preset PID algorithm, as well as the feedforward quantity calculated from the relevant parameters of the expected pressure change curve, are first obtained, and the error term corresponding to each coefficient in the error value is determined. The candidate duty cycle of the previous time is calculated based on the error term and the feedforward quantity. Optionally, the candidate duty cycle of the previous moment can be constrained by preset upper and lower limits of the duty cycle to meet the pressure requirements in the actual blood pressure measurement process. For example, when the candidate duty cycle of the previous moment is within the preset duty cycle range, the candidate duty cycle of the previous moment is determined as the duty cycle of the previous moment; when the candidate duty cycle of the previous moment is greater than the upper limit of the preset duty cycle range, the upper limit of the preset duty cycle range is determined as the duty cycle of the previous moment; when the candidate duty cycle of the previous moment is less than the lower limit of the preset duty cycle range, the lower limit of the preset duty cycle range is determined as the duty cycle of the previous moment.
[0081] S402, determine whether the error value is less than the preset error threshold. If the error value is less than the preset error threshold, then use the duty cycle of the previous time as the preset duty cycle. If the error value is not less than the preset error threshold, then determine the preset duty cycle based on the duty cycle of the previous time and the number of first sampling points between the previous time and the current time.
[0082] The preset error threshold can be a positive or negative value, or a range, and can be set according to actual needs; there are no restrictions here. The error value can be a positive number, a negative number, or 0.
[0083] In the embodiments of this application, after the control device determines the duty cycle of the previous moment based on the error value between the expected pressure and the current measured pressure at the current moment, it compares the error value with a preset error threshold. Optionally, in the first way, when the error value is positive and the preset error threshold is positive, it determines whether the error value is less than the preset error threshold. If the error value is less than the preset error threshold, it indicates that the error value has not exceeded the positive limit error range, and the duty cycle of the previous moment is used as the preset duty cycle. If the error value is not less than the preset error threshold, it indicates that the error value exceeds the positive limit error range, and the preset duty cycle is determined according to the duty cycle of the previous moment and the number of first sampling points between the previous moment and the current moment.
[0084] Alternatively, the second approach is to determine whether the opposite of the error value is less than the opposite of the preset error threshold when the error value is negative and the preset error threshold is negative. If the opposite of the error value is less than the opposite of the preset error threshold, it indicates that the error value has not exceeded the negative limit error range, and the duty cycle of the previous time step is used as the preset duty cycle. If the opposite of the error value is not less than the opposite of the preset error threshold, it indicates that the error value has exceeded the negative limit error range, and the preset duty cycle is determined based on the duty cycle of the previous time step and the number of first sampling points between the previous time step and the current time step.
[0085] Alternatively, a third approach is to determine whether the error value is within a certain range when the preset error threshold is a range in which the upper and lower limits are opposites. If the error value is within the range, it indicates that the error value has not exceeded the limited error range, and the duty cycle of the previous time step is used as the preset duty cycle. If the error value is not less than the range, it indicates that the error value has exceeded the limited error range, and the preset duty cycle is determined based on the duty cycle of the previous time step and the number of first sampling points between the previous time step and the current time step.
[0086] The above method dynamically adjusts the duty cycle of the air pump at different times by using the error value between the measured pressure at the current moment and the expected pressure. Based on the expected pressure, a more reasonable duty cycle is determined, which avoids the air pump from overshooting and improves the accuracy of blood pressure measurement results.
[0087] In one exemplary embodiment, such as Figure 5 As shown, the preset duty cycle is determined based on the duty cycle of the previous time step and the number of first sampling points between the previous and current time steps, including:
[0088] S501 determines the candidate duty cycle based on the previous duty cycle and the preset step size.
[0089] The preset step size can be the interval between adjacent time steps or other durations; there are no restrictions here. The candidate duty cycle is greater than the duty cycle of the previous time step.
[0090] In the embodiments of this application, after calculating the duty cycle of the previous moment, the control device obtains a preset step size, and performs an addition operation on the duty cycle of the previous moment and the preset step size to obtain a candidate duty cycle. Optionally, the candidate duty cycle is constrained by preset upper and lower limits of the duty cycle to meet the pressure requirements in the actual blood pressure measurement process. For example, when the candidate duty cycle is within the preset duty cycle range, the candidate duty cycle remains unchanged; when the candidate duty cycle is greater than the upper limit of the preset duty cycle range, the upper limit of the preset duty cycle range is determined as the candidate duty cycle; when the candidate duty cycle is less than the lower limit of the preset duty cycle range, the lower limit of the preset duty cycle range is determined as the candidate duty cycle.
[0091] By imposing preset upper and lower limits on the candidate duty cycle, the control equipment can be guaranteed to operate within a high-efficiency and safe range.
[0092] S502, determine the preset duty cycle from the duty cycle and candidate duty cycle at the previous moment based on the number of second sampling points and the number of first sampling points corresponding to the candidate duty cycle.
[0093] The number of second sampling points can be the standard number of sampling points required for the corresponding duty cycle interval, and can be set according to actual needs; there is no restriction here. The number of second sampling points can be selected from a preset mapping table, which includes multiple duty cycle intervals and multiple sampling point values. Each duty cycle interval uniquely corresponds to a sampling point value; the larger the duty cycle, the more sampling points, ensuring a longer stable period in high duty cycle intervals to avoid overshoot. For example, when the duty cycle interval is [0.60, 0.65], the sampling point value is set to the first value; when the duty cycle interval is [0.45, 0.60), the sampling point value is set to the second value, which is less than the first value. The number of first sampling points can be obtained from either a positive or negative counter. When the error value is positive, the number of first sampling points is the number of pressure sampling points measured by the positive counter between the previous and current times; when the error value is negative, the number of first sampling points is the number of pressure sampling points measured by the negative counter between the previous and current times. Both the positive and negative counters are reset at the beginning of the inflation cycle to accurately sample the measurement pressure of the current inflation cycle.
[0094] In the embodiments of this application, the control device traverses a preset mapping table, matches the candidate duty cycle with the duty cycle interval in the preset mapping table, that is, determines which duty cycle interval the candidate duty cycle belongs to, and takes the sampling point value corresponding to the duty cycle interval as the second sampling point quantity, obtains the sampling point quantity of the counter in the same direction as the error value as the first sampling point quantity, compares the second sampling point quantity and the first sampling point quantity, and determines the preset duty cycle from the duty cycle and candidate duty cycle at the previous moment based on the comparison result, so as to perform inflation control on the inflation cycle with the current moment as the start time, and resets the counter in the corresponding direction at the current moment.
[0095] The above method dynamically adjusts the duty cycle of the air pump at different times by using the error value between the measured pressure at the current moment and the expected pressure. Based on the expected pressure, a more reasonable duty cycle is determined, which avoids the air pump from overshooting and improves the accuracy of blood pressure measurement results.
[0096] In one exemplary embodiment, such as Figure 6As shown, based on the number of second sampling points and the number of first sampling points corresponding to the candidate duty cycles, the preset duty cycle is determined from the duty cycle and candidate duty cycles at the previous time step, including:
[0097] S601, compare the number of second sampling points with the number of first sampling points.
[0098] S602, if the number of first sampling points is less than the number of second sampling points, then the duty cycle of the previous moment is used as the preset duty cycle.
[0099] S603, if the number of the first sampling points is not less than the number of the second sampling points, then the candidate duty cycle is used as the preset duty cycle.
[0100] In the embodiments of this application, the control device calculates the number of second sampling points and the number of first sampling points, compares the two numbers, and determines that when the number of first sampling points is less than the number of second sampling points, it indicates that the number of sampling points is sufficient to accurately reflect the blood pressure measurement result when the air pump is inflated using the duty cycle of the previous moment. In this case, the duty cycle of the previous moment is set as the preset duty cycle for the current moment to control the inflation cycle starting from the current moment. When the number of first sampling points is not less than the number of second sampling points, it indicates that the inflation volume or measurement pressure is insufficient when the air pump is controlled using the duty cycle of the previous moment, and even if a large number of sampling points are set, it is still insufficient to accurately reflect the blood pressure measurement result. In this case, the candidate duty cycle is set as the preset duty cycle for the current moment to control the inflation cycle starting from the current moment.
[0101] The above method adjusts the duty cycle at different times by increasing the number of sampling points, ensuring a smooth pressure rise during inflation without overshoot, thus improving the accuracy of subsequent blood pressure measurements.
[0102] In one exemplary embodiment, such as Figure 7 As shown, the duty cycle of the previous time step is determined based on the error between the expected pressure at the current time and the current measured pressure, including:
[0103] S701 inputs the error value to the PID controller for adjustment, thus obtaining the control quantity.
[0104] In the embodiments of this application, the control device inputs the error value to the PID controller for adjustment. Optionally, it first obtains the proportional coefficient (P), integral coefficient (I), and derivative (D) coefficients in the preset PID algorithm, and determines the error integral term and error derivative term from the previous time to the current time. Then, it multiplies the error value with the proportional coefficient to obtain the first control quantity; it multiplies the error integral term with the integral coefficient to obtain the second control quantity; it multiplies the error derivative term with the derivative coefficient to obtain the third control quantity; and it sums the first control quantity, the second control quantity, and the third control quantity to obtain the control quantity.
[0105] S702 determines the duty cycle of the previous moment based on the feedforward quantity and the control quantity.
[0106] The feedforward can be the ratio of the slope of the desired pressure change of the air pump to the maximum inflation rate of the air pump. The corresponding slope can be the constant slope of the desired pressure change curve, which can be 6 mmHg / s or other values, determined by the actual starting pressure of the air pump. There are no restrictions here.
[0107] In the embodiments of this application, after receiving the control quantity, the control device performs a summation operation on the control quantity and the feedforward quantity to obtain the candidate duty cycle of the previous moment. Optionally, the candidate duty cycle of the previous moment is constrained by preset upper and lower limits of the duty cycle to meet the pressure requirements in the actual blood pressure measurement process. For example, when the candidate duty cycle of the previous moment is within the preset duty cycle range, the candidate duty cycle of the previous moment is determined as the duty cycle of the previous moment; when the candidate duty cycle of the previous moment is greater than the upper limit of the preset duty cycle range, the upper limit of the preset duty cycle range is determined as the duty cycle of the previous moment; when the candidate duty cycle of the previous moment is less than the lower limit of the preset duty cycle range, the lower limit of the preset duty cycle range is determined as the duty cycle of the previous moment.
[0108] The above method uses PID control. Instead of infinitely accumulating the integral term, it uses a fixed-length annular buffer (e.g., a sliding window) between adjacent time intervals to sample the measured pressure. It only accumulates the error (or error increment) of the sampling within the interval between adjacent time intervals to suppress integral saturation and improve robustness to air pump noise and short-term fluctuations.
[0109] In one exemplary embodiment, such as Figure 8 As shown, the method also includes:
[0110] S801 generates the desired pressure change curve based on the previous measured pressure.
[0111] Here, the previous moment is the initial moment when the air pump performs effective measurement, and the expected pressure change curve is used to characterize the expected pressure at different times. The blood pressure measurement result is optimal under this expected pressure.
[0112] In the embodiments of this application, the control device inputs the previously measured pressure into a soft-start function for calculation, obtaining multiple expected pressures at first preset times arranged in chronological order; inputs the expected pressure at the last preset time among the multiple expected pressures into a linear function for calculation, obtaining multiple expected pressures at second preset times arranged in chronological order; and generates an expected pressure change curve based on the multiple expected pressures at the first preset times and the multiple expected pressures at the second preset times, as shown below. Figure 9 As shown. Optionally, before the air pump performs effective measurements, if the air pump's measurement pressure is extremely low (e.g., measurement pressure < 20 mmHg, or other pressure ranges are acceptable, this is not limited) or the inflation time is too short (e.g., cumulative inflation time is less than a set threshold), a dedicated initial duty cycle segment or soft-start logic is used for the air pump during this stage to quickly and smoothly enter the effective measurement area; and the air pump is forcibly stopped and an alarm is triggered when the air pump's measurement pressure exceeds the preset safety upper limit or when a sensor malfunction is detected.
[0113] S802, the expected pressure at the current moment is obtained based on the expected pressure change curve.
[0114] In the embodiments of this application, after generating the expected pressure change curve, the current time is matched with a preset time of the expected pressure change curve. If the similarity between the current time and the preset time is greater than a preset similarity threshold, the expected pressure corresponding to the preset time is extracted as the expected pressure of the current time.
[0115] S803 generates an inflation control signal based on the error between the expected pressure at the current moment and the current measured pressure.
[0116] In the embodiments of this application, the current measured pressure is subtracted from the expected pressure at the current moment to obtain the error value between the current measured pressure and the expected pressure at the current moment. Based on the error between the expected pressure and the current measured pressure at the current moment, the duty cycle of the previous moment is calculated. It is then determined whether the error value is within a preset error range. If the error value is within the preset error range, it indicates that the error value has not exceeded the limit error range. That is, using the duty cycle of the previous moment to control the inflation of the air pump results in an inflation volume and a measured pressure that meet the accuracy requirements of the blood pressure measurement results. In this case, the preset duty cycle is determined based on the duty cycle of the previous moment. If the error value is not within the preset error range, it indicates that the error value has exceeded the limit error range. That is, when using the duty cycle of the previous moment to control the inflation of the air pump, the corresponding measured pressure is insufficient to measure an accurate blood pressure value. The duty cycle of the previous moment needs to be adjusted. Optionally, a fixed step size and the first sampling point data during the process from the previous moment to the current moment are acquired, and the preset duty cycle is determined based on the duty cycle of the previous moment, the fixed step size, and the first sampling point data during the process from the previous moment to the current moment.
[0117] The above method generates the expected pressure change curve for the inflation scenario based on the initial moment of the current inflation process, and uses the expected pressure in the expected pressure curve as a reference to determine the duty cycle at the current moment. Even when there is leakage in the blood pressure measuring device or nonlinear change in the measured pressure, it can still stably track the slope of the pressure change, thus improving the accuracy of the blood pressure measurement results.
[0118] In one exemplary embodiment, such as Figure 10 As shown, the desired pressure change curve is generated based on the previous measured pressure, including:
[0119] S901, input the previous measured pressure into the soft start function for calculation, and obtain the expected pressure at multiple first preset times arranged in chronological order.
[0120] The slow-start function can be an ease-in-out curve function, such as S = 3×t² - 2×t³, where S is the expected pressure at the first preset time and t is the interval between the first preset time and the initial time. The first preset time can be any time during the inflation phase when the difference between the measured pressures of adjacent times is less than the preset difference. The preset difference can be 6 mmHg or other values, which are not limited here.
[0121] In the embodiments of this application, the previous measured pressure and the interval between different first preset times and the initial time are input into the soft start function for calculation to obtain the expected pressure of multiple first preset times arranged in chronological order.
[0122] The above method, by setting a soft-start function, achieves a smooth start for pressure measurement, thus improving the accuracy of blood pressure measurement results.
[0123] S902, the target expected pressure from multiple expected pressures is input into a linear function for calculation, to obtain the expected pressures at multiple second preset times arranged in chronological order.
[0124] The target desired pressure corresponds to the last of a plurality of first preset times; the measured pressure at the second preset time is any time during the inflation phase when the difference between the measured pressures of adjacent times is equal to a preset difference.
[0125] The linear function can be y=kt+b, where t is the interval between the second preset time and the last first preset time, k is a constant slope, which can be 6 mmHg / s or 7 mmHg / s, or other values, which are not restricted here, y is the expected pressure at the second preset time, and b is a constant.
[0126] S903, based on the expected pressure at multiple first preset times and the expected pressure at multiple second preset times, generate the expected pressure change curve.
[0127] In the embodiments of this application, the expected pressure at a first preset time and the expected pressure at multiple second preset times are arranged in chronological order to generate an expected pressure change curve.
[0128] In addition to the methods of all the above embodiments, an inflation control method for a blood pressure measuring device is also provided, such as... Figure 11 As shown, the method includes:
[0129] S1001, Obtain the previous measurement pressure of the air pump of the blood pressure measuring device at the previous moment and the current measurement pressure at the current moment;
[0130] S1002, determine the error value between the expected pressure at the current moment and the current measured pressure;
[0131] S1003: Input the error value to the PID controller for adjustment to obtain the control quantity; determine the duty cycle of the previous moment based on the feedforward quantity and the control quantity;
[0132] S1004, determine whether the error value is less than the preset error threshold. If the error value is less than the preset error threshold, then use the duty cycle of the previous moment as the preset duty cycle.
[0133] S1005, if the error value is not less than the preset error threshold, then determine the candidate duty cycle based on the duty cycle of the previous time step and the preset step size.
[0134] S1006, compare the number of second sampling points and the number of first sampling points corresponding to the candidate duty cycle;
[0135] S1007, If the number of first sampling points is less than the number of second sampling points, then the duty cycle of the previous moment is used as the preset duty cycle.
[0136] S1008, if the number of first sampling points is not less than the number of second sampling points, then the candidate duty cycle is used as the preset duty cycle.
[0137] S1009, Generate the inflation control signal with the preset duty cycle, and control the inflation pump to inflate according to the inflation control signal.
[0138] Each of the above steps has been described in the foregoing embodiments. For details, please refer to the foregoing content. They will not be repeated here.
[0139] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0140] Based on the same inventive concept, this application also provides an inflation control device for a blood pressure measuring device to implement the inflation control method of the blood pressure measuring device described above. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more embodiments of the inflation control device for a blood pressure measuring device provided below can be found in the limitations of the inflation control method for the blood pressure measuring device described above, and will not be repeated here.
[0141] In one exemplary embodiment, such as Figure 12 As shown, an inflation control device for a blood pressure measuring device is provided, comprising: an acquisition module 121, a generation module 122, and a control module 123, wherein:
[0142] The acquisition module 121 is used to acquire the previous measurement pressure of the air pump of the blood pressure measuring device at the previous moment and the current measurement pressure at the current moment;
[0143] The generation module 122 is used to generate an inflation control signal based on the error value between the expected pressure at the current time and the current measured pressure; the inflation control signal is a pulse signal with a preset duty cycle.
[0144] The control module 123 is used to control the inflation of the air pump according to the inflation control signal.
[0145] In an exemplary embodiment, the generation module 122 is specifically used to: determine the error value between the expected pressure and the current measured pressure at the current moment, determine the preset duty cycle, and generate an inflation control signal with the preset duty cycle.
[0146] In an exemplary embodiment, the generation module 122 includes:
[0147] The first determining unit is used to determine the duty cycle of the previous moment based on the error value between the expected pressure at the current moment and the current measured pressure.
[0148] The second determining unit is used to determine whether the error value is less than a preset error threshold. If the error value is less than the preset error threshold, the duty cycle of the previous time step is used as the preset duty cycle. If the error value is not less than the preset error threshold, the preset duty cycle is determined based on the duty cycle of the previous time step and the number of first sampling points between the previous time step and the current time step.
[0149] In an exemplary embodiment, the second determining unit described above includes:
[0150] The first determining sub-unit is used to determine the candidate duty cycle based on the duty cycle of the previous time step and the preset step size;
[0151] The second determining subunit is used to determine the preset duty cycle from the duty cycle and the candidate duty cycle at the previous time step based on the number of second sampling points and the number of first sampling points corresponding to the candidate duty cycle.
[0152] In an exemplary embodiment, the second determining subunit is specifically used to: when the number of first sampling points is less than the number of second sampling points, use the duty cycle of the previous moment as the preset duty cycle; when the number of first sampling points is not less than the number of second sampling points, use the candidate duty cycle as the preset duty cycle.
[0153] In an exemplary embodiment, the first determining unit is specifically used to: input the error value to the PID controller for adjustment to obtain the control quantity; determine the duty cycle of the previous moment based on the feedforward quantity and the control quantity; the feedforward quantity is the ratio of the slope of change corresponding to the desired pressure of the air pump to the maximum inflation rate of the air pump.
[0154] In one exemplary embodiment, the above-described apparatus further includes a second generation module, comprising:
[0155] The first generation subunit is used to generate the expected pressure change curve based on the previous measured pressure; the expected pressure change curve is used to characterize the expected pressure at different times.
[0156] The calculation sub-unit is used to obtain the expected pressure at the current moment based on the expected pressure change curve.
[0157] The second generation subunit is used to generate an inflation control signal based on the error between the expected pressure at the current moment and the current measured pressure.
[0158] In an exemplary embodiment, the first generation subunit described above is specifically used for:
[0159] The previous measured pressure is input into the soft start function for calculation, and the expected pressures at multiple first preset times are obtained in chronological order.
[0160] The target expected pressure from multiple expected pressures is input into a linear function for calculation, resulting in multiple expected pressures at multiple second preset times arranged in chronological order; the time corresponding to the target expected pressure is the last time among multiple first preset times.
[0161] Based on the expected pressure at multiple first preset times and multiple second preset times, an expected pressure change curve is generated.
[0162] Each module in the inflation control device of the aforementioned blood pressure measuring device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0163] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 13As shown, the computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores the measurement pressure data of the inflation pump of the blood pressure measuring device. The I / O interfaces are used for information exchange between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements an inflation control method for a blood pressure measuring device.
[0164] Those skilled in the art will understand that Figure 13 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0165] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0166] Obtain the previous measurement pressure of the air pump of the blood pressure measuring device at the previous moment and the current measurement pressure at the current moment;
[0167] An inflation control signal is generated based on the error between the expected pressure and the current measured pressure at the current moment; the inflation control signal is a pulse signal with a preset duty cycle.
[0168] The inflation control signal is used to control the inflation of the air pump.
[0169] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0170] Determine the error between the expected pressure and the current measured pressure at the current moment, determine the preset duty cycle, and generate an inflation control signal for the preset duty cycle.
[0171] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0172] The duty cycle of the previous moment is determined based on the error between the expected pressure at the current moment and the current measured pressure.
[0173] Determine whether the error value is less than the preset error threshold. If the error value is less than the preset error threshold, the duty cycle of the previous time step is used as the preset duty cycle. If the error value is not less than the preset error threshold, the preset duty cycle is determined based on the duty cycle of the previous time step and the number of first sampling points between the previous time step and the current time step.
[0174] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0175] The candidate duty cycle is determined based on the duty cycle of the previous time step and the preset step size;
[0176] The preset duty cycle is determined from the duty cycle and candidate duty cycle at the previous time step based on the number of second sampling points and the number of first sampling points corresponding to the candidate duty cycle.
[0177] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0178] If the number of first sampling points is less than the number of second sampling points, then the duty cycle of the previous time step is used as the preset duty cycle.
[0179] If the number of first sampling points is not less than the number of second sampling points, then the candidate duty cycle will be used as the preset duty cycle.
[0180] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0181] The error value is input to the PID controller for adjustment to obtain the control quantity;
[0182] The duty cycle of the previous moment is determined based on the feedforward and control quantities; the feedforward quantity is the ratio of the slope of the change corresponding to the desired pressure of the air pump to the maximum inflation rate of the air pump.
[0183] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0184] The expected pressure change curve is generated based on the previous measured pressure; the expected pressure change curve is used to characterize the expected pressure at different times.
[0185] The expected pressure at the current moment is obtained from the expected pressure change curve;
[0186] An inflation control signal is generated based on the error between the expected pressure at the current moment and the current measured pressure.
[0187] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0188] The previous measured pressure is input into the soft start function for calculation, and the expected pressures at multiple first preset times are obtained in chronological order.
[0189] The target expected pressure from multiple expected pressures is input into a linear function for calculation, resulting in multiple expected pressures at multiple second preset times arranged in chronological order; the time corresponding to the target expected pressure is the last time among multiple first preset times.
[0190] Based on the expected pressure at multiple first preset times and multiple second preset times, an expected pressure change curve is generated.
[0191] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0192] Obtain the previous measurement pressure of the air pump of the blood pressure measuring device at the previous moment and the current measurement pressure at the current moment;
[0193] An inflation control signal is generated based on the error between the expected pressure and the current measured pressure at the current moment; the inflation control signal is a pulse signal with a preset duty cycle.
[0194] The inflation control signal is used to control the inflation of the air pump.
[0195] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0196] Determine the error between the expected pressure and the current measured pressure at the current moment, determine the preset duty cycle, and generate an inflation control signal for the preset duty cycle.
[0197] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0198] The duty cycle of the previous moment is determined based on the error between the expected pressure at the current moment and the current measured pressure.
[0199] Determine whether the error value is less than the preset error threshold. If the error value is less than the preset error threshold, the duty cycle of the previous time step is used as the preset duty cycle. If the error value is not less than the preset error threshold, the preset duty cycle is determined based on the duty cycle of the previous time step and the number of first sampling points between the previous time step and the current time step.
[0200] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0201] The candidate duty cycle is determined based on the duty cycle of the previous time step and the preset step size;
[0202] The preset duty cycle is determined from the duty cycle and candidate duty cycle at the previous time step based on the number of second sampling points and the number of first sampling points corresponding to the candidate duty cycle.
[0203] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0204] If the number of first sampling points is less than the number of second sampling points, then the duty cycle of the previous time step is used as the preset duty cycle.
[0205] If the number of first sampling points is not less than the number of second sampling points, then the candidate duty cycle will be used as the preset duty cycle.
[0206] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0207] The error value is input to the PID controller for adjustment to obtain the control quantity;
[0208] The duty cycle of the previous moment is determined based on the feedforward and control quantities; the feedforward quantity is the ratio of the slope of the change corresponding to the desired pressure of the air pump to the maximum inflation rate of the air pump.
[0209] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0210] The expected pressure change curve is generated based on the previous measured pressure; the expected pressure change curve is used to characterize the expected pressure at different times.
[0211] The expected pressure at the current moment is obtained from the expected pressure change curve;
[0212] An inflation control signal is generated based on the error between the expected pressure at the current moment and the current measured pressure.
[0213] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0214] The previous measured pressure is input into the soft start function for calculation, and the expected pressures at multiple first preset times are obtained in chronological order.
[0215] The target expected pressure from multiple expected pressures is input into a linear function for calculation, resulting in multiple expected pressures at multiple second preset times arranged in chronological order; the time corresponding to the target expected pressure is the last time among multiple first preset times.
[0216] Based on the expected pressure at multiple first preset times and multiple second preset times, an expected pressure change curve is generated.
[0217] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0218] Obtain the previous measurement pressure of the air pump of the blood pressure measuring device at the previous moment and the current measurement pressure at the current moment;
[0219] An inflation control signal is generated based on the error between the expected pressure and the current measured pressure at the current moment; the inflation control signal is a pulse signal with a preset duty cycle.
[0220] The inflation control signal is used to control the inflation of the air pump.
[0221] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0222] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0223] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for controlling the inflation of a blood pressure measuring device, characterized in that, The method includes: Obtain the previous measurement pressure of the air pump of the blood pressure measuring device at the previous moment and the current measurement pressure at the current moment; Determine the error value between the expected pressure at the current moment and the current measured pressure, determine the preset duty cycle, and generate an inflation control signal for the preset duty cycle; the inflation control signal is a pulse signal with the preset duty cycle. The inflation control signal is used to control the inflation of the air pump. Determining the preset duty cycle based on the error value between the expected pressure at the current moment and the current measured pressure includes: The duty cycle of the previous moment is determined based on the error between the expected pressure at the current moment and the current measured pressure. Determine whether the error value is less than a preset error threshold. If the error value is less than the preset error threshold, then the duty cycle of the previous time step is used as the preset duty cycle. If the error value is not less than the preset error threshold, then a candidate duty cycle is determined based on the duty cycle of the previous time step and a preset step size. Determine the number of first sampling points between the previous time step and the current time step and the number of second sampling points for the candidate duty cycle. If the number of first sampling points is less than the number of second sampling points, then the duty cycle of the previous time step is used as the preset duty cycle. If the number of first sampling points is not less than the number of second sampling points, then the candidate duty cycle is used as the preset duty cycle.
2. The method according to claim 1, characterized in that, Determining the duty cycle of the previous time step based on the error between the expected pressure at the current time and the current measured pressure includes: The error value is input to the PID controller for adjustment to obtain the control quantity; The duty cycle of the previous moment is determined based on the feedforward quantity and the control quantity; the feedforward quantity is the ratio of the slope of the change corresponding to the desired pressure of the air pump to the maximum inflation rate of the air pump.
3. The method according to any one of claims 1-2, characterized in that, The preceding moment is the initial moment when the air pump performs the measurement, and the method further includes: A desired pressure change curve is generated based on the previously measured pressure; the desired pressure change curve is used to characterize the desired pressure at different times. The step of generating an inflation control signal based on the error value between the expected pressure at the current moment and the current measured pressure includes: The expected pressure at the current moment is obtained based on the expected pressure change curve. An inflation control signal is generated based on the error between the expected pressure at the current moment and the current measured pressure.
4. The method according to claim 3, characterized in that, The step of generating the desired pressure change curve based on the previous measured pressure includes: The previously measured pressure is input into the soft-start function for calculation to obtain the expected pressure at multiple first preset times arranged in chronological order; The target expected pressure among the multiple expected pressures is input into a linear function for calculation to obtain the expected pressures at multiple second preset times arranged in chronological order; the time corresponding to the target expected pressure is the last time among the multiple first preset times. The expected pressure change curve is generated based on the expected pressure at the plurality of first preset times and the expected pressure at the plurality of second preset times.
5. An inflation control device for a blood pressure measuring device, characterized in that, The device includes: The acquisition module is used to acquire the previous measurement pressure of the air pump of the blood pressure measuring device at the previous moment and the current measurement pressure at the current moment; The generation module is used to determine the error value between the expected pressure at the current moment and the current measured pressure, determine the preset duty cycle, and generate an inflation control signal for the preset duty cycle; the inflation control signal is a pulse signal with the preset duty cycle. The control module is used to control the inflation of the air pump according to the inflation control signal; The generation module includes: The first determining unit is used to determine the duty cycle of the previous moment based on the error value between the expected pressure at the current moment and the current measured pressure. The second determining unit is used to determine whether the error value is less than a preset error threshold. If the error value is less than the preset error threshold, the duty cycle of the previous time moment is used as the preset duty cycle. If the error value is not less than the preset error threshold, the preset duty cycle is determined based on the duty cycle of the previous time moment and the number of first sampling points between the previous time moment and the current time moment. The second determining unit includes: The first determining subunit is used to determine a candidate duty cycle based on the duty cycle of the previous time and a preset step size; and to determine the number of first sampling points between the previous time and the current time and the number of second sampling points for the candidate duty cycle. The second determining subunit is used to take the duty cycle of the previous moment as the preset duty cycle when the number of the first sampling points is less than the number of the second sampling points; and to take the candidate duty cycle as the preset duty cycle when the number of the first sampling points is not less than the number of the second sampling points.
6. The apparatus according to claim 5, characterized in that, The first determining unit is specifically used for: inputting the error value to the PID controller for adjustment to obtain a control quantity; determining the duty cycle of the previous moment based on the feedforward quantity and the control quantity; the feedforward quantity is the ratio of the slope of the change corresponding to the desired pressure of the air pump to the maximum inflation rate of the air pump.
7. The apparatus according to claim 5 or 6, characterized in that, The device further includes: The first generation subunit is used to generate a desired pressure change curve based on the previous measured pressure; the desired pressure change curve is used to characterize the desired pressure at different times. A calculation subunit is used to obtain the expected pressure at the current moment based on the expected pressure change curve. The second generation subunit is used to generate an inflation control signal based on the error value between the expected pressure at the current time and the current measured pressure.
8. The apparatus according to claim 7, characterized in that, The first generating subunit is specifically used for: The previously measured pressure is input into the soft-start function for calculation to obtain the expected pressure at multiple first preset times arranged in chronological order; The target expected pressure among the multiple expected pressures is input into a linear function for calculation to obtain the expected pressures at multiple second preset times arranged in chronological order; the time corresponding to the target expected pressure is the last time among the multiple first preset times. The expected pressure change curve is generated based on the expected pressure at the plurality of first preset times and the expected pressure at the plurality of second preset times.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Small-capacity air bag blood pressure detection system and precise pressure control method thereof
CN120501400A