Peristaltic pump in-tube pressure detection method, system, electronic equipment and storage medium
By using a pressure sensor on the outer wall of the infusion pipeline to collect and calculate in-tube pressure values based on a relationship function, the method stabilizes pressure measurements and enhances the accuracy of blockage detection in peristaltic pumps.
Patent Information
- Application Number
- CN202411252530.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-09-09
AI Technical Summary
Existing methods for detecting blockages in peristaltic pumps are inaccurate due to the volatility of liquid pressure within the infusion line, leading to unreliable pressure detection.
A method and system that uses a pressure sensor on the outer wall of the infusion pipeline to collect reference pressure values before the motor starts, calculating the in-tube pressure based on a relationship function between the outer wall extrusion pressure and inner tube pressure, and excluding pressure fluctuations caused by motor rotation.
Improves the accuracy of detecting blockages in peristaltic pumps by stabilizing pressure measurements and ensuring consistent data collection, thereby enhancing the reliability of blockage detection.
Smart Images

Figure CN118758585B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of peristaltic pumps, and in particular to a method, system, electronic equipment and storage medium for detecting the in-tube pressure of a peristaltic pump. Background Art
[0002] A peristaltic pump, also known as a peristaltic infusion pump, is a device used to transport fluids. The main structure of a peristaltic pump includes a motor, a pump head, and an infusion line. In order to ensure that the peristaltic pump can work properly, it is necessary to detect whether the peristaltic pump has a risk of blockage. In related technologies, the risk of blockage is determined by detecting the pressure inside the infusion line. However, the liquid pressure inside the infusion line has a certain degree of volatility, and the results obtained by directly using a sensor for detection cannot accurately reflect the actual situation of the pressure inside the line.
[0003] Therefore, how to improve the detection accuracy of the pressure in the peristaltic pump tube is a technical problem that technical personnel in this field currently need to solve. Summary of the invention
[0004] The object of the present invention is to provide a method, system, electronic equipment and storage medium for detecting the pressure inside the tube of a peristaltic pump, which can improve the detection accuracy of the pressure inside the tube of the peristaltic pump.
[0005] In order to solve the above technical problems, the present invention provides a method for detecting the in-tube pressure of a peristaltic pump, and the in-tube pressure detection method of the peristaltic pump comprises:
[0006] A reference pressure value is collected according to a preset period using a pressure sensor; wherein the pressure sensor is arranged on the outer wall of the infusion pipeline of the peristaltic pump, and the reference pressure value is the squeezing force value of the outer wall of the infusion pipeline on the pressure sensor;
[0007] Determining a start time of a motor of the peristaltic pump;
[0008] The reference pressure values collected n times most recently before the motor starts are set as the candidate pressure values;
[0009] The in-tube pressure value is calculated according to the alternative pressure value; wherein the in-tube pressure value is the pressure inside the infusion pipeline.
[0010] Optionally, calculating the pressure value in the pipe according to the alternative pressure value includes:
[0011] Performing statistical processing on all the candidate pressure values to obtain an outer wall extrusion pressure value;
[0012] Substitute the outer wall extrusion pressure value into the relationship function to obtain the inner tube pressure value; wherein the relationship function is used to describe the relationship between the inner tube pressure value and the outer wall extrusion pressure value.
[0013] Optionally, before collecting the reference pressure value according to a preset period using the pressure sensor, the method further includes:
[0014] Controlling the peristaltic pump to pressurize an externally connected digital pressure gauge; wherein the digital pressure gauge is used to measure the pressure inside the infusion pipeline;
[0015] Recording a second pressure value collected by the pressure sensor when the reading of the digital pressure gauge is the first pressure value;
[0016] Recording a fourth pressure value collected by the pressure sensor when the reading of the digital pressure gauge is the third pressure value;
[0017] The relationship function is generated according to the first pressure value, the second pressure value, the third pressure value and the fourth pressure value; wherein the relationship function is a linear function.
[0018] Optionally, statistical processing is performed on all the candidate pressure values to obtain an outer wall extrusion pressure value, including:
[0019] Abnormal values among all the candidate pressure values are removed, and the average value of the remaining candidate pressure values is set as the outer wall extrusion pressure value.
[0020] Optionally, after collecting the reference pressure value according to a preset period using the pressure sensor, the method further includes:
[0021] The position pointed to by the pointer of the circular queue is set as the position to be inserted; wherein the circular queue includes n positions for storing reference pressure values;
[0022] The most recently collected reference pressure value is stored in the position to be inserted, and the position pointed to by the pointer is updated.
[0023] Optionally, also include:
[0024] Determining whether the motor of the peristaltic pump is in a starting state;
[0025] If so, stop storing the new reference pressure value into the circular queue, and determine the reference pressure values collected the most recently n times before the motor starts according to the circular queue.
[0026] Optionally, after calculating the pressure value in the pipe according to the alternative pressure value, the method further includes:
[0027] Determining whether the pressure value in the tube is greater than a critical pressure value;
[0028] If so, it is determined that the peristaltic pump is at risk of being blocked.
[0029] The present invention also provides a peristaltic pump in-tube pressure detection system, the system comprising:
[0030] A pressure acquisition module, used to collect reference pressure values according to a preset period using a pressure sensor; wherein the pressure sensor is arranged on the outer wall of the infusion pipeline of the peristaltic pump, and the reference pressure value is the squeezing force value of the outer wall of the infusion pipeline on the pressure sensor;
[0031] A start detection module, used to determine the start time of the motor of the peristaltic pump;
[0032] A pressure value selection module, used to set the reference pressure values collected n times most recently before the motor starts as candidate pressure values;
[0033] The in-tube pressure calculation module is used to calculate the in-tube pressure value according to the alternative pressure value; wherein the in-tube pressure value is the pressure inside the infusion pipeline.
[0034] The present invention also provides a storage medium on which a computer program is stored. When the computer program is executed, the steps of the above-mentioned method for detecting the in-tube pressure of the peristaltic pump are implemented.
[0035] The beneficial effects of the present invention are as follows: The present invention provides a method for detecting the in-tube pressure of a peristaltic pump. In the method, a pressure sensor arranged on the outer wall of an infusion pipeline is used to collect a reference pressure value according to a preset period. The reference pressure value reflects the squeezing condition of the outer wall of the infusion pipeline on the pressure sensor. After determining the motor start-up time of the peristaltic pump, the reference pressure value collected for the most recent n times before the motor start-up time can be set as an alternative pressure value, and then the in-tube pressure value is calculated according to the alternative pressure value. When the motor rotates, the in-tube pressure changes greatly, which will cause the collected voltage to be unstable. The present invention calculates the in-tube pressure value based on the reference pressure value collected for the most recent n times before the motor start-up time, which can avoid the influence of pressure fluctuations when the motor rotates on the measurement results. Since there is a certain relationship between the squeezing force value of the outer wall of the infusion pipeline on the pressure sensor and the in-tube pressure, the present invention can calculate the in-tube pressure value according to the squeezing condition of the outer wall of the infusion pipeline on the pressure sensor, thereby ensuring the accuracy of the in-tube pressure value. Therefore, the present invention can improve the detection accuracy of the in-tube pressure of the peristaltic pump. The present invention also provides a peristaltic pump in-tube pressure detection system, a storage medium and an electronic device, which have the above-mentioned beneficial effects and are not described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A flow chart of a method for detecting the in-tube pressure of a peristaltic pump provided in an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of the pressure change in a pipe provided by an embodiment of the present invention;
[0039] Figure 3 A schematic structural diagram of an in-tube pressure detection system for a peristaltic pump provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] See below Figure 1 , Figure 1 The present invention provides a flowchart of a method for detecting the in-tube pressure of a peristaltic pump according to an embodiment of the present invention.
[0042] Specific steps may include:
[0043] S101: using a pressure sensor to collect a reference pressure value according to a preset period;
[0044] Among them, this embodiment can be applied to the controller of a peristaltic pump, and the outer wall of the infusion pipeline of the peristaltic pump is provided with a pressure sensor. The controller can obtain the pressure value in the tube by reading the parameters collected by the pressure sensor and performing corresponding processing.
[0045] Since the pressure sensor is installed on the outer wall of the peristaltic pump infusion pipeline, the pressure sensor can measure the squeezing force of the outer wall of the infusion pipeline on the pressure sensor. The pressure sensor can convert the above squeezing force into a corresponding electrical signal and send it to the controller. The controller can convert the electrical signal into a digital signal to obtain a reference pressure value, that is, a voltage analog-to-digital conversion value (AD value) reflecting the pressure. The above reference pressure value is the squeezing force value of the outer wall of the infusion pipeline on the pressure sensor, that is, the reference pressure value is used to describe the squeezing force generated by the outer wall of the infusion pipeline on the pressure sensor.
[0046] This embodiment uses the pressure sensor to collect reference pressure values according to a preset period, that is, it can collect and store reference pressure values of multiple periods. Specifically, before the motor of the peristaltic pump is started, the reference pressure value can be continuously collected and stored.
[0047] S102: Determine the starting time of the motor of the peristaltic pump;
[0048] In this step, the starting time of the peristaltic pump motor can be determined by monitoring the starting signal or current change of the motor. The exact time of the motor starting can also be determined by the central processing unit (CPU) of the device where the peristaltic pump is located.
[0049] S103: setting the reference pressure values collected n times most recently before the motor starts as the candidate pressure values;
[0050] Among them, before the motor starts, this embodiment has collected and stored at least n reference pressure values. Since there is a period of pressure fluctuation after the peristaltic pump motor is turned off, in order to avoid interference caused by the last peristalsis, this embodiment sets the reference pressure values collected the most recently n times before the motor starts as the alternative pressure values, so that all alternative pressure values are parameters collected by the pressure sensor when the motor stops and the pressure in the pipe (i.e., pipeline pressure) is stable. Since the time interval of the motor start-up is much greater than the acquisition frequency of the pressure sensor, this embodiment has collected and stored at least n reference pressure values before the motor starts.
[0051] Take the above process as an example: the pressure sensor collects reference pressure values every other second starting from the 1st second. If the motor starts at the 7.5th second and n=5, the reference pressure values collected at the 3rd second, the 4th second, the 5th second, the 6th second and the 7th second are set as the candidate pressure values. As a feasible implementation, this embodiment can also use a circular queue of size n to store the reference pressure values collected the most recently n times, so as to read the reference pressure values collected the most recently n times before the motor starts from the circular queue.
[0052] S104: Calculating the pressure value in the tube according to the candidate pressure value;
[0053] Among them, the infusion pipeline is usually made of a material with a certain elasticity. When the pressure in the tube changes, the tube wall will deform accordingly. This deformation will be transmitted to the outside of the tube wall, and then generate an extrusion force on the pressure sensor set on the outer wall. Therefore, there is a mapping relationship between the pressure value in the tube and the pressure value on the outer wall. In this embodiment, a relationship function can be pre-calibrated, and the relationship function describes the mapping relationship between the pressure value in the tube and the pressure value on the outer wall. In this embodiment, the extrusion pressure value of the tube wall can be measured at different pressure values in the tube, thereby establishing a mapping relationship between the pressure value in the tube and the pressure value on the outer wall.
[0054] This step can calculate the in-tube pressure value based on the alternative pressure value based on the above mapping relationship. Since there are n alternative pressure values selected in S103, in this embodiment, corresponding calculations can be performed based on the n alternative pressure values (such as removing extreme values, taking an average, etc.) to obtain an outer wall extrusion pressure value that can reflect the outer wall extrusion state, and the in-tube pressure value corresponding to the outer wall extrusion pressure value is calculated based on the above mapping relationship. The in-tube pressure value is the pressure inside the infusion pipeline, that is, the in-tube pressure value is used to reflect the real pressure state inside the infusion pipeline.
[0055] After calculating the pressure value in the tube according to the alternative pressure value, it can also be determined whether the pressure value in the tube is greater than the critical pressure value; if so, it is determined that the peristaltic pump has a risk of blockage, and corresponding prompt information can be generated at this time.
[0056] This embodiment uses a pressure sensor arranged on the outer wall of the infusion pipeline to collect reference pressure values according to a preset period. The reference pressure value reflects the squeezing condition of the outer wall of the infusion pipeline on the pressure sensor. After determining the starting time of the motor of the peristaltic pump, the reference pressure value collected for the most recent n times before the motor starts can be set as an alternative pressure value, and then the pressure value in the tube is calculated based on the alternative pressure value. The pressure in the tube changes greatly when the motor rotates, which will cause the collected voltage to be unstable. This embodiment calculates the pressure value in the tube based on the reference pressure value collected for the most recent n times before the motor starts, which can avoid the influence of pressure fluctuations when the motor rotates on the measurement results. Since there is a certain relationship between the squeezing force value of the outer wall of the infusion pipeline on the pressure sensor and the pressure in the tube, this embodiment can calculate the pressure value in the tube according to the squeezing condition of the outer wall of the infusion pipeline on the pressure sensor, thereby ensuring the accuracy of the pressure value in the tube. Therefore, this embodiment can improve the detection accuracy of the pressure in the peristaltic pump tube.
[0057] As for Figure 1 Further introduction to the corresponding embodiment, the pressure value inside the tube can be calculated in the following way: statistical processing is performed on all the alternative pressure values to obtain the outer wall extrusion pressure value; the outer wall extrusion pressure value is substituted into the relationship function to obtain the pressure value inside the tube; wherein the relationship function is used to describe the relationship between the pressure value inside the tube and the outer wall extrusion pressure value.
[0058] As a feasible implementation, the process of statistically processing all the candidate pressure values is as follows: removing abnormal values from all the candidate pressure values, and setting the average value of the remaining candidate pressure values as the outer wall extrusion pressure value.
[0059] In this embodiment, an excessively large or small candidate pressure value can be set as an abnormal value, or a candidate pressure value whose absolute value of the difference between the average values of all candidate pressure values is greater than a preset value can be set as an abnormal value. The candidate pressure value after removing the abnormal value is the remaining candidate pressure value.
[0060] As a feasible implementation method, before using the pressure sensor to collect the reference pressure value according to the preset period, a digital pressure gauge can be connected to the peristaltic pump, and the above relationship function can be generated through steps A1 to A4:
[0061] Step A1: controlling the peristaltic pump to pressurize an externally connected digital pressure gauge;
[0062] Wherein, the digital pressure gauge is used to measure the pressure inside the infusion pipeline;
[0063] Step A2: recording the second pressure value collected by the pressure sensor when the reading of the digital pressure gauge is the first pressure value;
[0064] The first pressure value is the pressure value inside the tube in the current state, and the second pressure value is the pressure value of the outer wall in the current state. When recording the first pressure value read by the digital pressure gauge, the motor can be stopped and the second pressure value collected by the pressure sensor can be read. After collecting the second pressure value, the motor can be started again.
[0065] Step A3: recording the fourth pressure value collected by the pressure sensor when the reading of the digital pressure gauge is the third pressure value;
[0066] The third pressure value is the current internal pressure value of the tube, and the fourth pressure value is the current external wall pressure value. When recording the third pressure value of the digital pressure gauge, the motor can be stopped and the fourth pressure value collected by the pressure sensor can be read.
[0067] Step A4: generating the relationship function according to the first pressure value, the second pressure value, the third pressure value and the fourth pressure value;
[0068] The relationship function is a linear function y=kx+b, y represents the pressure value inside the tube, x represents the extrusion pressure value of the outer wall, k represents the slope, and b represents a constant. Specifically, in this embodiment, the relationship function can be determined based on two points (x1, y1) and (x2, y2), where x1 is the second pressure value, y1 is the first pressure value, x2 is the fourth pressure value, and y2 is the third pressure value.
[0069] As for Figure 1 Further introduction to the corresponding embodiment, after the pressure sensor is used to collect the reference pressure value according to the preset period, the reference pressure value collected by the pressure sensor can be stored in the following manner: the position pointed to by the pointer of the circular queue is set as the position to be inserted; wherein the circular queue includes n positions for storing reference pressure values; the most recently collected reference pressure value is stored in the position to be inserted, and the position pointed to by the pointer is updated. After the position pointed to by the pointer is updated, the position to be inserted is also updated accordingly.
[0070] In the above process, after each new reference pressure value is collected, the new reference pressure value can be stored in the position pointed to by the pointer of the circular queue, and the pointer can be moved to the next position to realize circular overwriting and storing of the reference pressure value.
[0071] As a feasible implementation, the present embodiment can also determine whether the motor of the peristaltic pump is in the startup state; if so, stop storing the new reference pressure value in the circular queue, and determine the reference pressure value collected n times most recently before the motor startup time according to the circular queue. After the motor is in the shutdown state, the new reference pressure value can continue to be stored in the circular queue.
[0072] The process described in the above embodiment is explained below through an embodiment in actual application.
[0073] In the related art, the pressure outside the tube is used to determine whether the peristaltic pump pipeline is blocked. For example, a controller is used to collect voltage values to calculate the corresponding pressure to determine whether it is blocked. However, the above process does not specify at what moment the pressure outside the tube is collected. Due to the technical characteristics of peristaltic infusion, when the motor rotates, the pressure inside the tube changes greatly, which will cause the collected voltage to be unstable; for example, the pressure is high when squeezing and low when relaxing.
[0074] In view of the defects existing in the above-mentioned related technologies, the embodiment of the present invention provides a solution for improving the pressure detection accuracy of a peristaltic infusion pump. The solution determines through a program that the collected pressure value is the voltage value before the motor rotates, so that the pressure change during and after extrusion does not need to be considered. This improves the accuracy and simplifies the judgment process.
[0075] In this embodiment, whether the peristaltic pump is blocked can be determined based on the pressure, for example, by collecting the voltage of the pressure sensor to obtain the corresponding pressure value for determination; when the pressure value in the tube is greater than the critical pressure value, it is determined to be blocked, otherwise there is no blockage.
[0076] The difficulty in judging whether a peristaltic pump is blocked lies in the fact that due to the unique structure of the peristaltic pump, its operation will cause fluctuations in the internal pressure of the infusion pipeline; specifically, when the extrusion volume increases, the internal pressure increases accordingly; and when the extrusion volume decreases, the pressure will drop back to a lower level; this intermittent pressure change undoubtedly causes certain interference to the accurate judgment of the system.
[0077] Since there is a one-to-one correspondence between the pressure value in the pipeline and the voltage value collected by the sensor, and this relationship follows the mathematical model of a one-time function, the corresponding pressure level can be accurately analyzed through these voltage values based on the above mathematical model.
[0078] The operations performed during the calibration phase are as follows:
[0079] The peristaltic pump is connected to an external digital pressure gauge, and the peristaltic pump is used to pressurize the digital pressure gauge. At two certain pressure values (such as 40Kp and 80Kp), the motor is stopped and the AD value transmitted by the sensor is read. The slope k and the constant b are calculated through these four values. At this point, the linear function relationship corresponding to the pressure in the tube and the AD value (i.e., the outer wall extrusion pressure value) is obtained. In this embodiment, the above linear function relationship can be stored in the flash memory device Flash for blockage judgment during normal operation.
[0080] When the peristaltic pump is performing pressure calibration, a real-time AD value is displayed. In this embodiment, the AD value can be read on the device calibration interface.
[0081] The operations performed during the run phase are as follows:
[0082] The exact moment when the motor starts can be captured accurately by the central processing unit (CPU). Figure 2 , Figure 2 This is a schematic diagram of the change of the pressure in the pipe provided by an embodiment of the present invention, where the horizontal axis is time, the vertical axis is the pressure in the pipe, and T0 is the time when the motor is started.
[0083] Before the motor rotates, the system continuously reads the voltage analog-to-digital conversion value (AD value) reflecting the pressure, and these values are stored in an array in sequence. In order to ensure the accuracy of the data, that is, the data involved in the judgment has excluded the fluctuations after the last peristalsis, the sampling frequency can be appropriately increased to ensure that the collected data are obtained when the motor stops and the pressure in the tube is stable. After removing the data that is too large or too small, the data collected is summed and averaged, and then the current pressure value (i.e. the pressure value in the tube) is calculated through a calibrated linear function for comparison to determine whether it is blocked.
[0084] The above array can be a one-dimensional array AD[n]={AD0, AD1, AD2, AD3, ..., ADn-1}. The higher the sampling frequency, the more data. The AD values are stored in a loop so that the data in the array are closer to the startup time. If n is 10, the sampling frequency of the AD value is once every 10ms, and ten numbers take up 100ms. If the sampling frequency is once every 1ms, ten numbers take up 10ms. The fluctuation is generated after the motor rotates. In this embodiment, the data collected the most recently n times before the motor starts can exclude the fluctuation after the last creep. The above AD0, AD1, AD2, AD3, ..., ADn-1 represent the AD values read at different times.
[0085] In this embodiment, whether the peristaltic pump is blocked can be determined in the following manner:
[0086] Step B1, continuously read the AD value, store the AD value and the time T at which it was read into an array, and obtain [AD, T].
[0087] Among them, this embodiment can limit the storage of a maximum of 10 AD values, and the AD values can be infinitely covered, the 11th covers 1 array, the 12th covers the second array... and so on, to ensure that these 10 data are closely connected to the 10 AD values before the motor rotates. This embodiment determines that the acquired data excludes the data after the last fluctuation and before the motor rotates by infinite coverage.
[0088] Step B2: determine the motor starting time Ti.
[0089] Step B3, obtain the array [ADj, Tj], [Adj+1, Tj+1], [Adj+2, Tj+2] ... [Adi-1, Ti-1] stored in a period of time before the motor start time Ti. The above i and j represent the sequence number of time.
[0090] Step B4: exclude arrays with larger or smaller AD values.
[0091] Step B5, calculate the average value using the AD values in the remaining array.
[0092] Step B6, substitute the AD average value into the linear function to obtain the pressure value in the tube.
[0093] Step B7, compare the pressure value in the tube with the critical pressure value; if the pressure value in the tube is greater than the critical pressure value, the peristaltic pump is in a blocked state; if the pressure value in the tube is less than or equal to the critical pressure value, the peristaltic pump is not in a blocked state.
[0094] The above solution can ensure that all collected pressure and voltage values are obtained when the motor is in a stationary state during the calibration or operation phase, and the pressure fluctuations during and after the motor rotation process can be ignored. This measure ensures the consistency and reliability of data collection. Through this strict data acquisition method, the system can eliminate the pressure instability caused by the peristaltic movement of the power part of the equipment, and can more accurately determine whether the peristaltic pump is blocked, which is conducive to timely and accurate output of alarm information.
[0095] See also Figure 3 , Figure 3 A schematic diagram of the structure of a peristaltic pump in-tube pressure detection system provided by an embodiment of the present invention, the system may include:
[0096] The pressure acquisition module 301 is used to collect reference pressure values according to a preset period using a pressure sensor; wherein the pressure sensor is arranged on the outer wall of the infusion pipeline of the peristaltic pump, and the reference pressure value is the squeezing force value of the outer wall of the infusion pipeline on the pressure sensor;
[0097] A start detection module 302, used to determine the start time of the motor of the peristaltic pump;
[0098] A pressure value selection module 303 is used to set the reference pressure value collected n times most recently before the motor starts as the candidate pressure value;
[0099] The in-tube pressure calculation module 304 is used to calculate the in-tube pressure value according to the candidate pressure value; wherein the in-tube pressure value is the pressure inside the infusion pipeline.
[0100] This embodiment uses a pressure sensor arranged on the outer wall of the infusion pipeline to collect reference pressure values according to a preset period. The reference pressure value reflects the squeezing condition of the outer wall of the infusion pipeline on the pressure sensor. After determining the starting time of the motor of the peristaltic pump, the reference pressure value collected for the most recent n times before the motor starts can be set as an alternative pressure value, and then the pressure value in the tube is calculated based on the alternative pressure value. The pressure in the tube changes greatly when the motor rotates, which will cause the collected voltage to be unstable. This embodiment calculates the pressure value in the tube based on the reference pressure value collected for the most recent n times before the motor starts, which can avoid the influence of pressure fluctuations when the motor rotates on the measurement results. Since there is a certain relationship between the squeezing force value of the outer wall of the infusion pipeline on the pressure sensor and the pressure in the tube, this embodiment can calculate the pressure value in the tube according to the squeezing condition of the outer wall of the infusion pipeline on the pressure sensor, thereby ensuring the accuracy of the pressure value in the tube. Therefore, this embodiment can improve the detection accuracy of the pressure in the peristaltic pump tube.
[0101] Furthermore, the in-tube pressure calculation module 304 calculates the in-tube pressure value according to the alternative pressure value, including: performing statistical processing on all the alternative pressure values to obtain the outer wall extrusion pressure value; substituting the outer wall extrusion pressure value into the relationship function to obtain the in-tube pressure value; wherein the relationship function is used to describe the relationship between the in-tube pressure value and the outer wall extrusion pressure value.
[0102] Furthermore, it also includes:
[0103] A function establishment module is used to control the peristaltic pump to pressurize an external digital pressure gauge before using the pressure sensor to collect reference pressure values according to a preset period; wherein the digital pressure gauge is used to measure the pressure inside the infusion pipeline; it is also used to record the second pressure value collected by the pressure sensor when the reading of the digital pressure gauge is a first pressure value; it is also used to record the fourth pressure value collected by the pressure sensor when the reading of the digital pressure gauge is a third pressure value; it is also used to generate the relationship function according to the first pressure value, the second pressure value, the third pressure value and the fourth pressure value; wherein the relationship function is a linear function.
[0104] Furthermore, the process of the in-tube pressure calculation module 304 performing statistical processing on all the candidate pressure values to obtain the outer wall extrusion pressure value includes: removing abnormal values from all the candidate pressure values, and setting the average value of the remaining candidate pressure values as the outer wall extrusion pressure value.
[0105] Furthermore, it also includes:
[0106] A storage module is used to set the position pointed to by the pointer of the circular queue as the position to be inserted after the reference pressure value is collected according to a preset period using a pressure sensor; wherein the circular queue includes n positions for storing reference pressure values; and is also used to store the most recently collected reference pressure value to the position to be inserted, and update the position pointed to by the pointer.
[0107] Furthermore, it also includes:
[0108] The storage module is also used to determine whether the motor of the peristaltic pump is in the starting state; if so, stop storing the new reference pressure value into the circular queue, and determine the reference pressure values collected the most recently n times before the motor starts according to the circular queue.
[0109] Furthermore, it also includes:
[0110] The blockage judgment module is used to judge whether the pressure value in the tube is greater than the critical pressure value after calculating the pressure value in the tube according to the alternative pressure value; if so, it is determined that the peristaltic pump has a risk of blockage.
[0111] Since the embodiments of the system part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the system part, which will not be repeated here.
[0112] The present invention also provides a storage medium on which a computer program is stored. When the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0113] The present invention also provides an electronic device, which may include a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps provided in the above embodiment may be implemented. Of course, the electronic device may also include various network interfaces, power supplies and other components.
[0114] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.
[0115] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
Claims
1. A method for detecting the in-tube pressure of a peristaltic pump, characterized in that: include: A reference pressure value is collected according to a preset period using a pressure sensor; wherein the pressure sensor is arranged on the outer wall of the infusion pipeline of the peristaltic pump, and the reference pressure value is the squeezing force value of the outer wall of the infusion pipeline on the pressure sensor; Determining a start time of a motor of the peristaltic pump; The reference pressure values collected n times most recently before the motor starts are set as the candidate pressure values; Calculate the in-tube pressure value according to the alternative pressure value; wherein the in-tube pressure value is the pressure inside the infusion pipeline; Calculating the pressure value in the pipe according to the candidate pressure value includes: Performing statistical processing on all the candidate pressure values to obtain an outer wall extrusion pressure value; Substituting the outer wall extrusion pressure value into the relationship function to obtain the inner tube pressure value; wherein the relationship function is used to describe the relationship between the inner tube pressure value and the outer wall extrusion pressure value; Before collecting the reference pressure value according to the preset period by using the pressure sensor, the method further includes: Controlling the peristaltic pump to pressurize an externally connected digital pressure gauge; wherein the digital pressure gauge is used to measure the pressure inside the infusion pipeline; Recording a second pressure value collected by the pressure sensor when the reading of the digital pressure gauge is the first pressure value; Recording a fourth pressure value collected by the pressure sensor when the reading of the digital pressure gauge is the third pressure value; The relationship function is generated according to the first pressure value, the second pressure value, the third pressure value and the fourth pressure value; wherein the relationship function is a linear function.
2. The method for detecting the in-tube pressure of a peristaltic pump according to claim 1, characterized in that: All the candidate pressure values are statistically processed to obtain the outer wall extrusion pressure value, including: Abnormal values among all the candidate pressure values are removed, and the average value of the remaining candidate pressure values is set as the outer wall extrusion pressure value.
3. The method for detecting the in-tube pressure of a peristaltic pump according to claim 1, characterized in that: After collecting the reference pressure value according to the preset period by using the pressure sensor, the method further includes: The position pointed to by the pointer of the circular queue is set as the position to be inserted; wherein the circular queue includes n positions for storing reference pressure values; The most recently collected reference pressure value is stored in the position to be inserted, and the position pointed to by the pointer is updated.
4. The method for detecting the in-tube pressure of a peristaltic pump according to claim 3, characterized in that: Also includes: Determining whether the motor of the peristaltic pump is in a starting state; If so, stop storing the new reference pressure value into the circular queue, and determine the reference pressure values collected the most recently n times before the motor starts according to the circular queue.
5. The method for detecting the in-tube pressure of a peristaltic pump according to any one of claims 1 to 4, characterized in that: After calculating the pressure value in the pipe according to the alternative pressure value, the method further includes: Determining whether the pressure value in the tube is greater than a critical pressure value; If so, it is determined that the peristaltic pump is at risk of being blocked.
6. A peristaltic pump in-tube pressure detection system, characterized in that: include: A pressure acquisition module, used to collect reference pressure values according to a preset period using a pressure sensor; wherein the pressure sensor is arranged on the outer wall of the infusion pipeline of the peristaltic pump, and the reference pressure value is the squeezing force value of the outer wall of the infusion pipeline on the pressure sensor; A start detection module, used to determine the start time of the motor of the peristaltic pump; A pressure value selection module, used to set the reference pressure values collected n times most recently before the motor starts as candidate pressure values; an in-tube pressure calculation module, used to calculate an in-tube pressure value according to the candidate pressure value; wherein the in-tube pressure value is the pressure inside the infusion pipeline; The process of calculating the inner tube pressure value according to the candidate pressure value by the inner tube pressure calculation module includes: performing statistical processing on all the candidate pressure values to obtain the outer wall extrusion pressure value; substituting the outer wall extrusion pressure value into the relationship function to obtain the inner tube pressure value; wherein the relationship function is used to describe the relationship between the inner tube pressure value and the outer wall extrusion pressure value; The in-tube pressure detection system of the peristaltic pump also includes: A function establishment module is used to control the peristaltic pump to pressurize an external digital pressure gauge before using the pressure sensor to collect reference pressure values according to a preset period; wherein the digital pressure gauge is used to measure the pressure inside the infusion pipeline; it is also used to record the second pressure value collected by the pressure sensor when the reading of the digital pressure gauge is a first pressure value; it is also used to record the fourth pressure value collected by the pressure sensor when the reading of the digital pressure gauge is a third pressure value; it is also used to generate the relationship function according to the first pressure value, the second pressure value, the third pressure value and the fourth pressure value; wherein the relationship function is a linear function.
7. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, the steps of the method for detecting the intra-tube pressure of a peristaltic pump as claimed in any one of claims 1 to 5 are implemented.
8. A storage medium, characterized in that: The storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by the processor, the steps of the method for detecting the intra-tube pressure of a peristaltic pump as claimed in any one of claims 1 to 5 are implemented.
