Temperature control method and device, equipment and storage medium
By introducing an incremental PID control algorithm into the blood transfusion and infusion warmer, the heating power of the heating strip is adjusted in real time, solving the problem of temperature overshoot and achieving stable control of the fluid temperature during blood transfusion and infusion, thus improving the safety and comfort of treatment.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN HAWK OPTICAL ELECTRONICS INSTR
- Filing Date
- 2026-03-24
- Publication Date
- 2026-05-12
AI Technical Summary
Existing blood transfusion and infusion warmers lack the ability to dynamically adjust to temperature change trends, which can easily lead to temperature overshoot, affecting treatment comfort and safety.
An incremental PID control algorithm is adopted to collect the current temperature and target temperature of the heating bar in real time. The heating control quantity is calculated through the incremental PID control algorithm to dynamically adjust the heating power of the heating bar and achieve refined closed-loop control.
It effectively suppresses temperature overshoot, ensuring the stability and safety of fluid temperature during blood transfusion or infusion, and improving treatment comfort and equipment safety.
Smart Images

Figure CN122006020A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of temperature control technology, and in particular to a temperature control method, apparatus, device and storage medium. Background Technology
[0002] In the field of medical devices, transfusion and infusion warmers are used to warm the blood or medications transfused into the body to prevent patients from experiencing hypothermia. Currently, most transfusion and infusion warmers on the market use heating strips as heating elements. These heating strips are usually quite long (up to 1.4 meters or even longer) and are placed on the infusion tubing to heat the liquid inside the tubing.
[0003] Most existing control schemes employ simple on / off or proportional control methods: heating at full power when the temperature is below the set value, and stopping heating once the set value is reached, or roughly adjusting the heating power based on the temperature difference. This lack of dynamic adjustment capability to temperature change trends easily leads to temperature overshoot. Summary of the Invention
[0004] The main objective of this application is to provide a temperature control method that aims to solve the existing technical problem of temperature overshoot.
[0005] To achieve the above objectives, this application proposes a temperature control method, which is applied to a temperature control device connected to a heating strip, the method comprising:
[0006] Collect the current temperature of the heating bar at the current moment, and obtain the preset target temperature; Based on the current temperature and the target temperature, the current heating control quantity is obtained through an incremental PID control algorithm; Based on the current heating control value, the heating power of the heating strip is adjusted so that the heating strip performs temperature control according to the heating power.
[0007] In one embodiment, the heating strip is equipped with a temperature sensing unit, and the temperature control device is connected to the temperature sensing unit via an analog-to-digital converter interface. The step of acquiring the current temperature of the heating strip includes: The voltage signal of the temperature sensing unit on the heating bar is acquired through the analog-to-digital conversion interface. Based on a preset voltage-temperature mapping relationship, the voltage signal is converted into the current temperature using a binary lookup table algorithm.
[0008] In one embodiment, the temperature control device is also directly connected to the heating strip via the analog-to-digital conversion interface, and the step of acquiring the current temperature of the heating strip further includes: The identification voltage of the heating strip is obtained through the analog-to-digital conversion interface; The heating strip type corresponding to the heating strip is determined based on the identification voltage; The step of obtaining the current heating control quantity based on the current temperature and the target temperature using an incremental PID control algorithm includes: Determine the matching control algorithm parameters based on the heating strip type; The current heating control quantity is obtained by using an incremental PID control algorithm based on the control algorithm parameters, the current temperature, and the target temperature.
[0009] In one embodiment, the step of obtaining the current heating control quantity based on the control algorithm parameters, the current temperature, and the target temperature using an incremental PID control algorithm includes: The historical temperature of the heating strip is obtained, and the historical temperature deviation is determined based on the target temperature and the historical temperature. The current temperature deviation is determined based on the current temperature and the target temperature; The control adjustment value is determined by the incremental PID control algorithm based on the current temperature deviation, historical temperature deviation, and control algorithm parameters. Obtain the historical heating control values of the heating bar, and determine the current heating control value based on the control value adjustment value and the historical heating control values.
[0010] In one embodiment, the control algorithm parameters include a proportional coefficient, an integral coefficient, and a derivative coefficient; the historical temperature deviation includes at least the temperature deviation at the previous time step and the temperature deviation at the time step two time steps prior; the step of determining the control adjustment value based on the current temperature deviation, the historical temperature deviation, and the control algorithm parameters using an incremental PID control algorithm includes: The control quantity adjustment value is determined based on the temperature deviation at the previous time step, the temperature deviation at the time step two steps prior, the proportional coefficient, the integral coefficient, and the derivative coefficient using an incremental PID control algorithm. The incremental PID control algorithm is as follows: Δu(k)=Kp·[e(k)-e(k-1)]+Ki·e(k)+Kd·[e(k)-2e(k-1)+e(k-2)]; Wherein, Δu(k) is the control adjustment value, e(k) is the temperature deviation at the current moment, e(k-1) is the temperature deviation at the previous moment, e(k-2) is the temperature deviation at the moment before that, Kp is the proportional coefficient, Ki is the integral coefficient, and Kd is the derivative coefficient.
[0011] In one embodiment, the temperature control device further includes a human-machine interface, and after the step of adjusting the heating power of the heating strip according to the current heating control amount, it further includes: The current temperature and the target temperature are displayed in real time on the human-computer interaction interface; The system receives a temperature update command input by the user on the human-computer interaction interface and updates the target temperature based on the temperature update command.
[0012] In one embodiment, the temperature control device further includes an alarm unit, and after the step of adjusting the heating power of the heating bar according to the current heating control amount, the device further includes: Compare the current temperature with a preset temperature threshold; When the current temperature reaches the preset temperature threshold, a high temperature alarm is triggered by the alarm unit.
[0013] Furthermore, to achieve the above objectives, this application also proposes a temperature control device, the device comprising: The temperature acquisition module is used to collect the current temperature of the heating bar at the current moment and obtain the preset target temperature; The control quantity acquisition module is used to obtain the current heating control quantity based on the current temperature and the target temperature through an incremental PID control algorithm; The temperature control module is used to adjust the heating power of the heating strip according to the current heating control value, so that the heating strip performs temperature control according to the heating power.
[0014] In addition, to achieve the above objectives, this application also proposes an apparatus comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the temperature control method described above when executed by the processor.
[0015] In addition, to achieve the above objectives, this application also proposes a storage medium that is a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the temperature control method described above.
[0016] This application proposes a temperature control method, apparatus, device, and storage medium. The method is applied to a temperature control device connected to a heating strip. The method includes: acquiring the current temperature of the heating strip at a current moment and obtaining a preset target temperature; obtaining a current heating control quantity based on the current temperature and the target temperature using an incremental PID control algorithm; and adjusting the heating power of the heating strip according to the current heating control quantity so that the heating strip performs temperature control according to the heating power.
[0017] The temperature control method and device of this application can be equipped with a dynamic adjustment mechanism based on an incremental PID control algorithm. This mechanism can collect the current temperature of the heating strip in real time and input it along with a preset target temperature to the PID controller to calculate the current heating control quantity. Then, during actual heating, the system dynamically adjusts the heating power of the heating strip based on this control quantity, achieving precise closed-loop temperature control. Compared to existing technologies that use simple on / off control or proportional control methods, which lack the ability to dynamically adjust for temperature change trends and are prone to temperature overshoot, this application, by introducing an incremental PID algorithm, can adjust the heating power in advance based on the real-time temperature difference and its changing trend, suppressing temperature overshoot. Therefore, patients receiving blood transfusions or intravenous infusions can directly obtain a more stable and safer fluid temperature, preventing temperature overshoot and improving treatment comfort and equipment safety. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of this application; Figure 2 This is a flowchart of the first embodiment of the temperature control method proposed in this application; Figure 3 This is a flowchart of a second embodiment of the temperature control method proposed in this application; Figure 4 This is a flowchart of the third embodiment of the temperature control method proposed in this application; Figure 5 A diagram of a temperature control device provided in an embodiment of this application.
[0021] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0022] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of this application and are not intended to limit this application.
[0023] Reference Figure 1 , Figure 1 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of this application.
[0024] like Figure 1 As shown, the device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may be connected to a display screen; optionally, the user interface 1003 may include a standard wired interface or a wireless interface. In this application, the wired interface of the user interface 1003 may be a USB interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be high-speed random access memory (RAM) or non-volatile memory (NVM), such as a disk storage device. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0025] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0026] like Figure 1 As shown, the memory 1005, which is identified as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a temperature control program.
[0027] exist Figure 1 In the device shown, the network interface 1004 is mainly used to connect to the backend server and communicate with the backend server; the user interface 1003 is mainly used to connect to the user equipment; the device calls the defogging program stored in the memory 1005 through the processor 1001 and executes the steps of the defogging method provided in the embodiments of this application.
[0028] It should also be understood that the device described above in this embodiment is further provided with a zoom lens unit, the specific implementation of which can be referred to the description of the following embodiments.
[0029] Understandably, in the medical device field, blood transfusion and infusion warmers are used to warm the blood or medications transfused into the body to prevent patients from experiencing hypothermia. Currently, most blood transfusion and infusion warmers on the market use heating strips as heating elements. These heating strips are usually quite long (up to 1.4 meters or even longer) and are placed on the infusion tubing to heat the liquid inside.
[0030] Most existing control schemes employ simple on / off or proportional control methods: heating at full power when the temperature is below the set value, and stopping heating once the set value is reached, or roughly adjusting the heating power based on the temperature difference. This lack of dynamic adjustment capability to temperature change trends easily leads to temperature overshoot.
[0031] Therefore, in order to solve the above-mentioned technical problems, this embodiment proposes a temperature control method. The method is applied to a temperature control device connected to a heating strip. The method includes: acquiring the current temperature of the heating strip at the current moment and obtaining a preset target temperature; obtaining the current heating control quantity through an incremental PID control algorithm based on the current temperature and the target temperature; and adjusting the heating power of the heating strip according to the current heating control quantity so that the heating strip performs temperature control according to the heating power.
[0032] The temperature control method and device in this embodiment can be equipped with a dynamic adjustment mechanism based on an incremental PID control algorithm. This mechanism can collect the current temperature of the heating strip in real time and input it along with a preset target temperature to the PID controller to calculate the current heating control quantity. Then, during actual heating, the system dynamically adjusts the heating power of the heating strip based on this control quantity, achieving precise closed-loop temperature control. Compared to existing technologies that use simple on / off control or proportional control, which lack the ability to dynamically adjust for temperature changes and are prone to temperature overshoot, this embodiment, by introducing an incremental PID algorithm, can adjust the heating power in advance based on the real-time temperature difference and its changing trend, suppressing temperature overshoot. Therefore, patients receiving blood transfusions or intravenous infusions can directly obtain a more stable and safer fluid temperature, preventing temperature overshoot and improving treatment comfort and equipment safety.
[0033] For ease of understanding, the following is combined with Figures 1 to 5 The temperature control method provided in the embodiments of this application, as well as the temperature control method, apparatus, device, and storage medium provided in the following embodiments, will be described in detail.
[0034] This application provides a temperature control method, referring to... Figure 2 , Figure 2This is a flowchart of the first embodiment of the temperature control method proposed in this application.
[0035] like Figure 2 As shown, the method includes: Step S10: Collect the current temperature of the heating bar at the current moment, and obtain the preset target temperature.
[0036] It should be noted that the executing entity in this embodiment can be a multifunctional machine or device with temperature control, such as a temperature control device, or a device capable of performing the above functions. This embodiment uses a temperature control device (hereinafter referred to as the device) for description.
[0037] Furthermore, it should be noted that the aforementioned temperature control device can be an electronic device used to control the heating temperature of the heating strip, such as the main unit of a blood transfusion and infusion warmer. The device internally includes a microcontroller unit (MCU), memory, analog-to-digital converter interface, pulse width modulation (PWM) output interface, and human-machine interface for performing functions such as temperature acquisition, control calculation, and power output. The aforementioned heating strip can be a flexible strip-shaped heating element used to heat the liquid in the blood transfusion and infusion tubing, such as a silicone heating strip, which has a heating wire and one or more temperature sensing units embedded inside. The heating strip wraps around the infusion tubing, and the heat generated by the heating wire heats the blood or medication flowing inside the tubing. The aforementioned "current moment" can be the point in time when the temperature control device performs the temperature acquisition operation; for example, the device acquires the temperature every 100 milliseconds, and the instant corresponding to each acquisition is the current moment. The aforementioned "current temperature" can be the temperature value of the heating strip detected by the temperature sensing unit at the current moment, such as 25.3℃ obtained by detecting and converting using an NTC thermistor. The aforementioned preset target temperature can be a temperature value that the user expects the heating bar to reach and maintain, which is preset by the user through the human-computer interaction interface. For example, 37.0℃ is set by clinical medical staff according to the infusion needs.
[0038] In its implementation, the temperature control device first connects to the temperature sensing unit on the heating bar through its analog-to-digital conversion interface to collect the current temperature of the heating bar in real time, and at the same time reads the target temperature preset by the user from the memory.
[0039] Step S20: Based on the current temperature and the target temperature, obtain the current heating control quantity through an incremental PID control algorithm.
[0040] It should be noted that the incremental PID control algorithm can be a mathematical algorithm that calculates the incremental value of the control quantity based on three components: proportional, integral, and derivative. This algorithm uses the deviation between the current temperature and the target temperature, the deviation at the previous time step, and the deviation at the time step before that as input parameters. It performs weighted calculations using preset proportional, integral, and derivative coefficients to output the adjusted control quantity. The current heating control quantity can be the drive signal parameter output by the temperature control device to the heating element of the heating bar through a pulse width modulation (PWM) interface, such as the duty cycle percentage of the PWM signal. In specific implementations, after obtaining the current temperature and the target temperature, the temperature control device then calls the internally stored incremental PID control algorithm, using the difference between the current temperature and the target temperature as input, and calculates the current heating control quantity through the algorithm.
[0041] Step S30: Adjust the heating power of the heating strip according to the current heating control value so that the heating strip controls the temperature according to the heating power.
[0042] It should be noted that the aforementioned heating power can be the actual electrical power consumed by the heating wire of the heating strip. This power is directly proportional to the duty cycle of the pulse width modulation signal output by the temperature control device. For example, a duty cycle of 68% corresponds to a heating power of 102W. In specific implementation, after obtaining the current heating control value, the temperature control device adjusts the heating power output to the heating strip according to this value, so that the heating strip performs temperature control according to this heating power.
[0043] Furthermore, in order to obtain faster and more accurate temperature feedback data directly, thereby improving the real-time performance and accuracy of temperature control, a temperature sensing unit is provided on the heating strip, and the temperature control device is connected to the temperature sensing unit through an analog-to-digital converter interface. The step of acquiring the current temperature of the heating strip includes: Step S11: Acquire the voltage signal of the temperature sensing unit on the heating bar through the analog-to-digital conversion interface; Step S12: Based on the preset voltage-temperature mapping relationship, the voltage signal is converted into the current temperature using a binary lookup table algorithm.
[0044] It is understandable that the aforementioned temperature sensing unit can be a temperature detection element located inside or on the surface of the heating strip, used to convert temperature changes into electrical signal outputs. For example, a negative temperature coefficient thermistor, whose resistance decreases as temperature increases, thus generating different voltage signals. The aforementioned analog-to-digital conversion interface can be an analog-to-digital interface integrated into the microcontroller unit inside the temperature control device, used to convert the acquired analog voltage signal into a digital quantity. The aforementioned voltage signal can be the analog voltage value generated by the temperature sensing unit at the current temperature, which changes with temperature; for example, an NTC thermistor outputs a 2150mV voltage signal at 20℃. The aforementioned preset voltage-temperature mapping relationship can be the correspondence data between voltage and temperature values pre-stored in the memory of the temperature control device, used to convert the acquired voltage signal into the corresponding temperature value. The aforementioned binary search table lookup algorithm can be a calculation method for quickly finding a target value in an ordered data table. By dividing the search range in half each time, the search interval is gradually narrowed until the temperature value corresponding to the acquired voltage value is found.
[0045] In its specific implementation, the temperature control device is electrically connected to the temperature sensing unit on the heating bar through its analog-to-digital conversion interface. Then, in each sampling cycle, the voltage signal output by the temperature sensing unit at the current moment is acquired through the analog-to-digital conversion interface. Next, the voltage-temperature mapping table stored in the memory is called, and the voltage signal is searched and matched using a binary search table lookup algorithm. Finally, the voltage signal is converted into the corresponding current temperature value.
[0046] For ease of understanding, the following example is used for illustration, but it does not impose specific limitations on this embodiment. Assume that an NTC thermistor is installed inside the heating strip as a temperature sensing unit, and this thermistor outputs a 2150mV voltage signal at 25°C. The microcontroller unit of the temperature control device is connected to the output terminal of the NTC thermistor through its analog-to-digital converter pin. In one sampling cycle, the microcontroller unit initiates analog-to-digital conversion and acquires the current voltage value of 2150mV. The microcontroller unit then reads a pre-stored voltage-temperature mapping table from its memory. This table contains multiple sets of voltage values corresponding to temperature values, for example, 3200mV corresponds to 0°C, 2850mV corresponds to 10°C, 2500mV corresponds to 20°C, 2150mV corresponds to 25°C, 1800mV corresponds to 30°C, 1500mV corresponds to 35°C, 1200mV corresponds to 38°C, 1000mV corresponds to 40°C, and 800mV corresponds to 45°C. The microcontroller unit uses a binary search algorithm to compare the acquired 2150mV with voltage values in the table. First, it compares it with the median value of 1800mV; finding that 2150mV is greater than 1800mV, it continues searching within the first half of the table. Next, it compares it with 2500mV; finding that 2150mV is less than 2500mV, it continues searching between 2500mV and 1800mV. Finally, it finds a voltage value that matches 2150mV, corresponding to a temperature of 25℃. The microcontroller unit uses this 25℃ as the current temperature.
[0047] Furthermore, in order to adapt to the physical characteristics of the current heating strip and thus improve the temperature control accuracy and adaptability in different heating strip scenarios, the temperature control device is also directly connected to the heating strip through the analog-to-digital conversion interface. After the step of acquiring the current temperature of the heating strip, the device further includes: Step S13: Obtain the identification voltage of the heating strip through the analog-to-digital conversion interface; Step S14: Determine the heating strip type corresponding to the heating strip based on the identification voltage.
[0048] It should be noted that the aforementioned identification voltage can be the analog voltage value output by the type identification pin on the heating strip. Different types of heating strips output different voltage values on this pin; for example, a short heating strip outputs 4.2V, a standard heating strip outputs 3.5V, and a long heating strip outputs 2.8V. The heating strip types mentioned above can be classified according to the physical structure and electrical characteristics of the heating strip. Different categories of heating strips have different lengths, inner diameters, and rated power; for example, a short heating strip with a length of 0.8 meters and a power of 100W, a standard heating strip with a length of 1.4 meters and a power of 150W, and a long heating strip with a length of 2.0 meters and a power of 200W.
[0049] In a specific implementation, the temperature control device is electrically connected to the type identification pin on the heating strip through its analog-to-digital conversion interface. Then, the identification voltage output by the heating strip at the current moment is acquired through the analog-to-digital conversion interface. Next, the identification voltage is compared with the voltage type correspondence pre-stored in the memory, and the heating strip type corresponding to the currently connected heating strip is determined based on the comparison result.
[0050] For ease of understanding, the following example is used for illustration, but it does not impose specific limitations on this embodiment. Assume that the microcontroller unit of the temperature control device is connected to a type identification pin on the heating strip via an analog-to-digital conversion pin. In one sampling cycle, the microcontroller unit initiates analog-to-digital conversion and acquires the current identification voltage value of 3.5V. The microcontroller unit then reads pre-stored voltage type correspondence data from its memory. This data includes: voltage greater than 4.0V corresponds to a short heating strip type, voltage between 3.0V and 4.0V corresponds to a standard heating strip type, and voltage less than 3.0V corresponds to a long heating strip type. The microcontroller unit compares the acquired 3.5V with the above thresholds, determines that 3.5V falls within the 3.0V to 4.0V range, and therefore identifies the currently connected heating strip as a standard heating strip type, which is 1.4 meters long and has a rated power of 150W.
[0051] Accordingly, the step of obtaining the current heating control quantity based on the current temperature and the target temperature using an incremental PID control algorithm includes: Step S21: Determine the matching control algorithm parameters according to the heating bar type; Step S22: Obtain the current heating control quantity based on the control algorithm parameters, the current temperature, and the target temperature using an incremental PID control algorithm.
[0052] It should be noted that the above control algorithm parameters can be a set of coefficient values pre-configured by the temperature control device for the incremental PID control algorithm. Different heating bar types correspond to different coefficient values. This parameter set includes at least proportional coefficient, integral coefficient, and derivative coefficient.
[0053] In its specific implementation, after determining the type of heating bar, the temperature control device searches for and reads the pre-stored control algorithm parameters corresponding to that type from its internal memory. Then, it loads the read control algorithm parameters into the calculation unit of the incremental PID control algorithm. At the same time, it obtains the current temperature and the preset target temperature. The calculation unit performs mathematical calculations of the incremental PID control algorithm based on the loaded control algorithm parameters, the current temperature, and the target temperature, and finally outputs the current heating control quantity.
[0054] This embodiment introduces an incremental PID algorithm, which can adjust the heating power in advance according to the real-time temperature difference and its changing trend, suppressing temperature overshoot. As a result, patients can directly obtain a more stable and safer fluid temperature guarantee when receiving blood transfusion or infusion treatment, preventing temperature overshoot and improving the comfort of treatment and the safety of the equipment.
[0055] Based on the first embodiment, in the second embodiment, the content that is the same as or similar to that in Embodiment 1 above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 3 , Figure 3 The flowchart below shows the first embodiment of the method proposed in this application. Further, the step of obtaining the current heating control quantity based on the control algorithm parameters, the current temperature, and the target temperature using an incremental PID control algorithm includes: Step S221: Obtain the historical temperature of the heating strip, and determine the historical temperature deviation based on the target temperature and the historical temperature.
[0056] It should be noted that the historical temperature mentioned above can be the temperature value of the heating bar collected and stored by the temperature control device in various sampling periods before the current moment, such as 34.5℃ collected 100 milliseconds before the current moment and 34.0℃ collected 200 milliseconds before the current moment. The historical temperature deviation mentioned above can be the difference between the historical temperature value and the target temperature, for example, the deviation of 3.5℃ is obtained by subtracting the historical temperature of 34.5℃ from the target temperature of 38.0℃.
[0057] In its specific implementation, the temperature control device reads the pre-stored historical temperature from its internal memory, which is the temperature value of the heating bar collected and saved in the sampling period before the current time. Then, it subtracts the historical temperature from the target temperature to calculate the corresponding historical temperature deviation.
[0058] Step S222: Determine the current temperature deviation based on the current temperature and the target temperature.
[0059] It should be noted that the aforementioned current temperature can be the temperature value obtained by the temperature control device during the current sampling period by acquiring the voltage signal of the temperature sensing unit on the heating strip through the analog-to-digital converter interface and converting it based on the voltage-temperature mapping relationship, such as 35.0℃ acquired and converted at the current moment. The aforementioned current temperature deviation can be the difference between the current temperature and the target temperature. This difference reflects the degree of deviation between the actual temperature of the heating strip and the desired temperature at the current moment. For example, the target temperature of 38.0℃ minus the current temperature of 35.0℃ equals 3.0℃. In specific implementation, after obtaining the current temperature, the temperature control device reads the preset target temperature from the memory, then subtracts the current temperature from the target temperature to calculate the difference between the two as the current temperature deviation.
[0060] Step S223: Determine the control adjustment value based on the current temperature deviation, historical temperature deviation, and control algorithm parameters using an incremental PID control algorithm.
[0061] It should be noted that the incremental PID control algorithm described above can be a digital PID control algorithm, outputting the increment of the control quantity, such as the change in the current control quantity relative to the previous control quantity. The current temperature deviation mentioned above can be the difference between the heating bar temperature collected at the current moment and the user-set target temperature. The historical temperature deviation mentioned above can be the difference between the heating bar temperature collected at one or more moments prior to the current moment and the target temperature, such as the temperature deviation at the previous moment. The control algorithm parameters mentioned above can be key coefficients used in the PID controller to adjust the control effect, such as the proportional coefficient, integral coefficient, and derivative coefficient.
[0062] In this embodiment, the device acquires the current temperature deviation and the historical temperature deviation, and obtains control algorithm parameters. Then, the device inputs the current temperature deviation, the historical temperature deviation, and the control algorithm parameters into the incremental PID control algorithm, and calculates a control adjustment value through the incremental PID control algorithm.
[0063] Step S224: Obtain the historical heating control value of the heating bar, and determine the current heating control value based on the control value adjustment value and the historical heating control value.
[0064] It should be noted that the aforementioned historical heating control quantity can be the duty cycle value of the PWM (Pulse Width Modulation) waveform output by the device to the heating bar at a historical moment, for example, the PWM duty cycle calculated last time was 50%; the aforementioned control quantity adjustment value can be the adjustment range used to increase or decrease the historical heating control quantity calculated by the incremental PID (Proportional-Integral-Derivative) control algorithm, for example, a value of +5% or -3%; the aforementioned current heating control quantity can be the heating power value finally determined and output to the heating bar in this control cycle, which can be specifically represented as a specific PWM waveform duty cycle value, for example, 55% or 47%.
[0065] In practice, the device reads the heating control value used in the previous control cycle from the memory. This heating control value is usually saved as a historical heating control value. Then, the device adds the calculated control adjustment value to the read historical heating control value to determine the current heating control value to be executed in the current control cycle.
[0066] It is important to emphasize that the aforementioned control cycle can be a fixed time interval between one complete cycle of the device sampling, calculating, and outputting control of the heating bar temperature, for example, 100 milliseconds. Within one control cycle, the device will complete all control actions from temperature acquisition, PID (proportional-integral-derivative) calculation to heating power output.
[0067] In its implementation, the device repeatedly executes the temperature control process at fixed time intervals, each interval constituting a control cycle. At the beginning of each control cycle, the device triggers new temperature data acquisition, then performs incremental PID algorithm calculations based on the latest temperature data, and finally outputs the calculated heating control quantity to the heating bar for heating. After all actions in one control cycle are completed, the device waits for the next control cycle and repeats the above process, thereby achieving continuous, real-time, and stable closed-loop control of the heating bar temperature.
[0068] Further, the control algorithm parameters include proportional coefficient, integral coefficient, and derivative coefficient; the historical temperature deviation includes at least the temperature deviation at the previous time and the temperature deviation at the time two times prior; the step of determining the control adjustment value based on the current temperature deviation, the historical temperature deviation, and the control algorithm parameters using an incremental PID control algorithm includes: The control quantity adjustment value is determined based on the temperature deviation at the previous time step, the temperature deviation at the time step two steps prior, the proportional coefficient, the integral coefficient, and the derivative coefficient using an incremental PID control algorithm. The incremental PID control algorithm is as follows: Δu(k)=Kp·[e(k)-e(k-1)]+Ki·e(k)+Kd·[e(k)-2e(k-1)+e(k-2)]; Wherein, Δu(k) is the control adjustment value, e(k) is the temperature deviation at the current moment, e(k-1) is the temperature deviation at the previous moment, e(k-2) is the temperature deviation at the moment before that, Kp is the proportional coefficient, Ki is the integral coefficient, and Kd is the derivative coefficient.
[0069] It should be noted that the proportional coefficient mentioned above can be a weighting parameter in the incremental PID (proportional-integral-derivative) control algorithm used to adjust the influence of the current temperature deviation on the control quantity adjustment value. Its function is to proportionally amplify or reduce the current deviation, and for example, it can be a value of 0.8. The integral coefficient mentioned above can be a weighting parameter in the incremental PID control algorithm used to adjust the influence of the cumulative effect of temperature deviation on the control quantity adjustment value. Its function is to correct for the accumulation of historical deviations, and for example, it can be a value of 0.1. The derivative coefficient mentioned above can be a weighting parameter in the incremental PID control algorithm used to adjust the influence of the temperature deviation change trend on the control quantity adjustment value. Its function is to perform advance adjustment based on the rate of change of deviation to suppress overshoot, and for example, it can be a value of 0.05. The temperature deviation at the previous moment mentioned above can be the difference between the target temperature calculated in the previous control cycle and the measured temperature, and the temperature deviation at the moment before that mentioned above can be the difference between the target temperature calculated in the control cycle before that mentioned above.
[0070] In its implementation, after determining the current temperature deviation, the device reads historical temperature deviation data stored in the previous two control cycles from its memory, specifically including the temperature deviation at the previous moment and the temperature deviation at the moment before that. Based on pre-set control algorithm parameters—proportional coefficient, integral coefficient, and derivative coefficient—and combining the current temperature deviation with the read temperature deviations from the previous and moment before that, the device substitutes these values into the formula of the incremental PID control algorithm for calculation. First, the device calculates the difference between the current and previous temperature deviations and multiplies this difference by the proportional coefficient. Next, it calculates the current temperature deviation multiplied by the integral coefficient. Then, it calculates the current temperature deviation minus twice the previous temperature deviation plus the temperature deviation at the moment before that, multiplies this result by the derivative coefficient, and finally sums these three calculation results to determine the control adjustment value for the current control cycle.
[0071] Based on the first and second embodiments, in the third embodiment, the content that is the same as or similar to that in Embodiments 1 and 2 above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 4 , Figure 4This is a flowchart of the third embodiment of the temperature control method proposed in this application. Further, the temperature control device also includes a human-machine interface. After the step of adjusting the heating power of the heating strip according to the current heating control amount, it further includes: Step S40: Display the current temperature and the target temperature on the human-computer interaction interface in real time; Step S50: Receive the temperature update command input by the user on the human-computer interaction interface, and update the target temperature based on the temperature update command.
[0072] It should be explained that the aforementioned human-machine interface can be an integrated interface of hardware and software components on the device used to display information to the user and receive user input operations. Specifically, it can include a display screen and a touch screen or physical buttons, such as an LCD (liquid crystal display) screen with touch functionality. The aforementioned temperature update command can be a command issued by the user through operating the human-machine interface to change the target temperature of the heating bar. This command contains the new target temperature value that the user expects to set.
[0073] In its implementation, the aforementioned device, while determining the current heating control level and controlling the heating strip to heat, also visualizes the real-time temperature information of the heating strip and the user-preset target temperature information through a human-machine interface. Specifically, the device reads the heating strip temperature value collected and calculated at the current moment from memory, and simultaneously reads the currently effective target temperature setting. These two temperature values are then presented graphically or numerically on the display screen of the human-machine interface, allowing medical personnel to intuitively monitor the heating process.
[0074] Next, the device continuously monitors the human-machine interface for user input events. When the user inputs a new target temperature value via touch or physical buttons on the interface and confirms, the device receives a temperature update command triggered by this operation. The device parses this command, extracts the new target temperature value set by the user, and then writes this new temperature value to the address in memory that stores the target temperature parameter, thus replacing the original target temperature value with the newly set temperature. After the update is complete, the device will perform temperature control based on this updated target temperature in subsequent control cycles.
[0075] To facilitate understanding, the following example illustrates the concept, but does not limit the scope of this embodiment. For instance, during surgery, medical staff see on the device's touchscreen that the current real-time temperature of the heating bar is 37.5℃, while the previously set target temperature is 38.0℃. At this point, based on clinical needs, the doctor wants to adjust the infusion temperature to 39.0℃. The medical staff then taps the temperature setting area on the touchscreen, enters "39.0" on the pop-up numeric keypad, and taps confirm. The device immediately receives this temperature update command and changes the target temperature parameter stored in its memory from 38.0℃ to 39.0℃. From the next control cycle onwards, the device will use 39.0℃ as the target temperature for PID closed-loop control, and the target temperature displayed on the touchscreen will also be updated to 39.0℃.
[0076] Furthermore, the temperature control device is also equipped with an alarm unit, and after the step of adjusting the heating power of the heating bar according to the current heating control amount, it further includes: Compare the current temperature with a preset temperature threshold; When the current temperature reaches the preset temperature threshold, a high temperature alarm is triggered by the alarm unit.
[0077] It should be explained that the aforementioned preset temperature threshold can be one or more critical temperature values pre-stored in the device to determine whether the heating bar is in an abnormally high temperature state, such as an over-temperature alarm threshold of 41°C; the aforementioned alarm unit can be a hardware component on the device used to issue a warning signal when an abnormal situation is detected, specifically including a buzzer, an LED (light-emitting diode) indicator light, or a display module that can display alarm information on the human-machine interface.
[0078] In its implementation, after acquiring and calculating the current temperature of the heating bar in each control cycle, the device uses the temperature data not only for PID (Proportional-Integral-Derivative) closed-loop control calculations but also for safety monitoring purposes. Specifically, the device reads a preset temperature threshold from its memory, which is the maximum permissible temperature set according to medical device safety standards. Then, the device compares the acquired current temperature with the read preset temperature threshold to determine whether the current temperature has reached or exceeded the safety limit.
[0079] When the device detects that the current temperature has reached the preset temperature threshold through comparison, it will immediately trigger an alarm protection mechanism. The device will send a control signal to the alarm unit to activate the corresponding alarm devices. For example, the device can control the buzzer to emit a continuous audible alarm, simultaneously control the red LED indicator to flash, and pop up a prominent over-temperature alarm prompt window on the human-machine interface. Through this series of actions, the device can promptly alert medical staff that the heating strip is in an abnormally high temperature state, so that measures can be taken quickly to ensure patient safety. It should be noted that the hardware protection circuit in the device is also independent of the software control logic, directly cutting off the heating output when the temperature is abnormal, forming a dual protection.
[0080] This embodiment also provides a first embodiment of a temperature control device; please refer to [reference needed]. Figure 5 , Figure 5 A temperature control device diagram provided in this application embodiment, the temperature control device comprising: The temperature acquisition module is used to collect the current temperature of the heating bar at the current moment and obtain the preset target temperature; The control quantity acquisition module is used to obtain the current heating control quantity based on the current temperature and the target temperature through an incremental PID control algorithm; The temperature control module is used to adjust the heating power of the heating strip according to the current heating control value, so that the heating strip performs temperature control according to the heating power.
[0081] The temperature acquisition module is also used to acquire the voltage signal of the temperature sensing unit on the heating bar through the analog-to-digital conversion interface; and convert the voltage signal into the current temperature based on a preset voltage-temperature mapping relationship using a binary lookup table algorithm.
[0082] The temperature acquisition module is also used to acquire the identification voltage of the heating strip through the analog-to-digital conversion interface; and to determine the heating strip type corresponding to the heating strip based on the identification voltage.
[0083] The control quantity acquisition module is also used to determine the matching control algorithm parameters according to the heating bar type; and to obtain the current heating control quantity based on the control algorithm parameters, the current temperature and the target temperature through an incremental PID control algorithm.
[0084] Referring to the first embodiment of the temperature control device, this embodiment also proposes a second embodiment of the temperature control device. The contents that are the same as or similar to those in the first embodiment of the temperature control device can be referred to the above description, and will not be repeated hereafter.
[0085] The control quantity acquisition module is further configured to acquire the historical temperature of the heating strip, and determine the historical temperature deviation based on the target temperature and the historical temperature; determine the current temperature deviation based on the current temperature and the target temperature; determine the control quantity adjustment value based on the current temperature deviation, the historical temperature deviation and the control algorithm parameters using an incremental PID control algorithm; acquire the historical heating control quantity of the heating strip, and determine the current heating control quantity based on the control quantity adjustment value and the historical heating control quantity.
[0086] The control quantity acquisition module is also used to determine the control quantity adjustment value based on the temperature deviation at the previous moment, the temperature deviation at the moment before that, the proportional coefficient, the integral coefficient, and the derivative coefficient through an incremental PID control algorithm. The incremental PID control algorithm is as follows: Δu(k)=Kp·[e(k)-e(k-1)]+Ki·e(k)+Kd·[e(k)-2e(k-1)+e(k-2)]; Wherein, Δu(k) is the control adjustment value, e(k) is the temperature deviation at the current moment, e(k-1) is the temperature deviation at the previous moment, e(k-2) is the temperature deviation at the moment before that, Kp is the proportional coefficient, Ki is the integral coefficient, and Kd is the derivative coefficient.
[0087] Referring to the first embodiment and the second embodiment of the temperature control device, this embodiment also proposes a third embodiment of the temperature control device. The contents that are the same as or similar to the first embodiment and the second embodiment of the temperature control device can be referred to the above description, and will not be repeated hereafter.
[0088] The temperature control module is also used to display the current temperature and the target temperature on the human-computer interaction interface in real time; receive the temperature update command input by the user on the human-computer interaction interface, and update the target temperature based on the temperature update command.
[0089] The temperature acquisition module is also used to compare the current temperature with a preset temperature threshold; when the current temperature reaches the preset temperature threshold, a high temperature alarm is triggered by the alarm unit.
[0090] The temperature control device provided in this embodiment, employing the temperature control method described in the above embodiments, can solve the existing technical problem of easy temperature overshoot. Compared with the prior art, the beneficial effects of the temperature control device provided in this embodiment are the same as those of the temperature control method described in the above embodiments, and other technical features of the temperature control device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0091] This embodiment provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the temperature control method described in the above embodiment.
[0092] The computer-readable storage medium provided in this embodiment may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0093] The aforementioned computer-readable storage medium may be included in the temperature control device; or it may exist independently and not assembled into the temperature control device.
[0094] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the temperature control device, cause the temperature control device to perform temperature control.
[0095] Computer program code for performing the operations of this embodiment can be written in one or more programming languages or a combination thereof. These programming languages include object-oriented programming languages—such as Java, Smalltalk, and C++—and conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0096] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of the system, method, and display according to various embodiments of this embodiment. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0097] The modules described in this embodiment can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0098] The readable storage medium provided in this embodiment is a computer-readable storage medium, which stores computer-readable program instructions (i.e., a computer program) for executing the above-described temperature control method, and can solve the technical problem of how to improve the viewing experience of the display screen. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this embodiment are the same as the beneficial effects of the temperature control method provided in the above embodiments, and will not be repeated here.
[0099] The above descriptions are only some embodiments and do not limit the patent scope of this embodiment. All equivalent structural transformations made based on the technical concept of this application and the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included within the patent protection scope of this application.
Claims
1. A temperature control method, characterized in that, The method is applied to a temperature control device connected to a heating strip, and the method includes: Collect the current temperature of the heating bar at the current moment, and obtain the preset target temperature; Based on the current temperature and the target temperature, the current heating control quantity is obtained through an incremental PID control algorithm; Based on the current heating control value, the heating power of the heating strip is adjusted so that the heating strip performs temperature control according to the heating power.
2. The method as described in claim 1, characterized in that, The heating strip is equipped with a temperature sensing unit, and the temperature control device is connected to the temperature sensing unit via an analog-to-digital converter interface. The step of acquiring the current temperature of the heating strip includes: The voltage signal of the temperature sensing unit on the heating bar is acquired through the analog-to-digital conversion interface. Based on a preset voltage-temperature mapping relationship, the voltage signal is converted into the current temperature using a binary lookup table algorithm.
3. The method as described in claim 2, characterized in that, The temperature control device is also directly connected to the heating strip via the analog-to-digital converter interface. After the step of acquiring the current temperature of the heating strip, the device further includes: The identification voltage of the heating strip is obtained through the analog-to-digital conversion interface; The heating strip type corresponding to the heating strip is determined based on the identification voltage; The step of obtaining the current heating control quantity based on the current temperature and the target temperature using an incremental PID control algorithm includes: Determine the matching control algorithm parameters based on the heating strip type; The current heating control quantity is obtained by using an incremental PID control algorithm based on the control algorithm parameters, the current temperature, and the target temperature.
4. The method as described in claim 3, characterized in that, The step of obtaining the current heating control quantity based on the control algorithm parameters, the current temperature, and the target temperature using an incremental PID control algorithm includes: The historical temperature of the heating strip is obtained, and the historical temperature deviation is determined based on the target temperature and the historical temperature. The current temperature deviation is determined based on the current temperature and the target temperature; The control adjustment value is determined by the incremental PID control algorithm based on the current temperature deviation, historical temperature deviation, and control algorithm parameters. Obtain the historical heating control values of the heating bar, and determine the current heating control value based on the control value adjustment value and the historical heating control values.
5. The method as described in claim 4, characterized in that, The control algorithm parameters include proportional coefficient, integral coefficient, and derivative coefficient. The historical temperature deviation includes at least the temperature deviation at the previous time and the temperature deviation at the time two times prior. The step of determining the control adjustment value based on the current temperature deviation, historical temperature deviation, and control algorithm parameters using an incremental PID control algorithm includes: The control quantity adjustment value is determined based on the temperature deviation at the previous time step, the temperature deviation at the time step two steps prior, the proportional coefficient, the integral coefficient, and the derivative coefficient using an incremental PID control algorithm. The incremental PID control algorithm is as follows: Δu(k)=Kp·[e(k)-e(k-1)]+Ki·e(k)+Kd·[e(k)-2e(k-1)+e(k-2)]; Wherein, Δu(k) is the control adjustment value, e(k) is the temperature deviation at the current moment, e(k-1) is the temperature deviation at the previous moment, e(k-2) is the temperature deviation at the moment before that, Kp is the proportional coefficient, Ki is the integral coefficient, and Kd is the derivative coefficient.
6. The method as described in claim 1, characterized in that, The temperature control device also includes a human-machine interface. After the step of adjusting the heating power of the heating bar according to the current heating control value, it further includes: The current temperature and the target temperature are displayed in real time on the human-computer interaction interface; The system receives a temperature update command input by the user on the human-computer interaction interface and updates the target temperature based on the temperature update command.
7. The method as described in claim 1, characterized in that, The temperature control device is further equipped with an alarm unit. After the step of adjusting the heating power of the heating bar according to the current heating control value, the device further includes: Compare the current temperature with a preset temperature threshold; When the current temperature reaches the preset temperature threshold, a high temperature alarm is triggered by the alarm unit.
8. A temperature control device, characterized in that, The device includes: The temperature acquisition module is used to collect the current temperature of the heating bar at the current moment and obtain the preset target temperature; The control quantity acquisition module is used to obtain the current heating control quantity based on the current temperature and the target temperature through an incremental PID control algorithm; The temperature control module is used to adjust the heating power of the heating strip according to the current heating control value, so that the heating strip performs temperature control according to the heating power.
9. A temperature control device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the temperature control method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the steps of the temperature control method as described in any one of claims 1 to 7.