Peristaltic Pump Control Method and System Based on Flow Balance Monitoring
The flow characteristic curve and usage curve of the peristaltic pump are obtained through litmus reagent and strobe cameras, and the monitoring and control of the flow balance of the peristaltic pump is achieved, which solves the problem of material splash caused by unbalanced flow in the peristaltic pump, and improves the stability and safety of the blood purification system.
Patent Information
- Application Number
- CN202411110523.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2044-08-14
AI Technical Summary
The existing peristaltic pump control method can only prevent material splashing when the speed is large, and cannot effectively solve the problem that when the flow rate in the peristaltic pump is unbalanced, even if the speed is small, it may cause material splashing due to high extrusion pressure.
By obtaining the flow characteristic curves and flow usage curves of peristaltic pumps at different speeds based on litmus reagent and strobe cameras, the flow balance monitoring and control of peristaltic pumps can be realized, and the rotation speed is adjusted in real time to ensure stable material flow.
Effectively prevent material splashing, improve the stability and reliability of the blood purification system, and ensure patient safety.
Smart Images

Figure CN118775229B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of peristaltic pumps, and specifically to a control method and system for a peristaltic pump based on flow balance monitoring. Background Art
[0002] With the continuous progress of medical technology, as an important medical device, blood purification equipment plays an irreplaceable role in the treatment of kidney diseases, liver diseases, and immune system diseases. Blood purification equipment effectively removes harmful substances in the blood through filtration, adsorption, dialysis and other technical means, maintains the electrolyte balance in the body, and provides important life support for patients. A peristaltic pump, as an indispensable key component in the blood purification system, the stability of its performance and the control accuracy directly affect the effect of blood purification and the safety of patients.
[0003] A peristaltic pump is also called a constant flow pump and a hose pump, and mainly consists of a driver, a pump head, and an elastic hose. The fluid is isolated in the pump tube, the pump tube can be quickly replaced, the fluid can flow reversely, and it can run dry and other remarkable characteristics. These characteristics make the peristaltic pump widely used in the medical field, especially in the blood purification system. In the blood purification system, the peristaltic pump is responsible for accurately delivering and mixing various treatment fluids, such as dialysis fluid, replacement fluid and other fluids.
[0004] In the prior art, when controlling a peristaltic pump, it is usually to analyze the number of rotation cycles and the rotation speed of the peristaltic pump, and control the rotation speed of the peristaltic pump based on the analysis results to prevent the problem of splashing due to large pressure. Although this method can effectively control the rotation speed of the peristaltic pump and will not cause material splashing due to too high a rotation speed, in actual use, the material introduced into the peristaltic pump may still splash due to extrusion even under the specified rotation speed and acceleration due to flow imbalance. For example, in the Chinese patent with the publication number CN117072413A, a peristaltic pump control method, system, storage medium and intelligent terminal are disclosed. This solution improves the problem that the material just flowing out comes into instant contact with the bottom wall of the empty container, which is likely to generate a large pressure and splash by judging whether the current number of rotation cycle information is greater than the initial number of rotation cycle information. This improved method only solves the anti-splash problem when the rotation speed of the peristaltic pump is large, and when the overall flow in the peristaltic pump is unbalanced, even if the rotation speed of the peristaltic pump is small, it may still cause material splashing due to the large extrusion pressure in the pump tube, affecting the blood purification effect and patient safety. In view of this, it is necessary to improve the existing control method for peristaltic pumps. Summary of the Invention
[0005] The present invention aims to solve at least one of the technical problems in the prior art to some extent. By providing a peristaltic pump control method and system based on flow balance monitoring, it is used to solve the problem that in the existing improved methods for peristaltic pumps, only the anti-splash problem when the rotational speed of the peristaltic pump is relatively large can be solved. However, when the overall flow in the peristaltic pump is unbalanced, even when the rotational speed of the peristaltic pump is relatively small, the material may still splash due to the relatively large extrusion pressure in the pump tube.
[0006] To achieve the above object, in a first aspect, the present application provides a peristaltic pump control method based on flow balance monitoring, which is characterized by including the following steps:
[0007] Denote the liquid introduced into the peristaltic pump as peristaltic liquid; use a stroboscopic camera to take pictures of the peristaltic pump at different rotational speeds when introducing the peristaltic liquid based on litmus reagent;
[0008] Obtain the flow characteristic curve TZ of the peristaltic pump at different rotational speeds based on the acidity and alkalinity of the peristaltic liquid and the images obtained by the stroboscopic camera;
[0009] After introducing the peristaltic liquid into the peristaltic pump and starting it, use a stroboscopic camera to obtain the flow usage curve LS of the peristaltic pump at a stable rotational speed, and control the peristaltic pump based on the flow usage curve LS and the flow characteristic curve TZ.
[0010] Further, using a stroboscopic camera to take pictures of the peristaltic pump at different rotational speeds when introducing the peristaltic liquid based on litmus reagent includes:
[0011] Before introducing the liquid into the peristaltic pump, denote the liquid introduced into the peristaltic pump as peristaltic liquid, and use a pH test paper to test the acidity and alkalinity of the peristaltic liquid; when the test result shows that the pH is greater than 7, denote the peristaltic liquid as alkaline liquid; when the test result shows that the pH is less than 7, denote the peristaltic liquid as acidic liquid; when the test result shows that the pH is equal to 7, denote the peristaltic liquid as neutral liquid;
[0012] Denote the minimum rotational speed and the maximum rotational speed of the peristaltic pump as R min and R max respectively; before the peristaltic pump is put into use, take a sample of the peristaltic liquid, denote it as the sampled liquid, mix litmus reagent into the sampled liquid and stir evenly, then introduce the sampled liquid into the peristaltic pump and start the peristaltic pump; after the sampled liquid is introduced, start the peristaltic pump to rotate from R min and uniformly increase the rotational speed of the peristaltic pump until the rotational speed of the peristaltic pump is increased to R max , where the increase rate when the rotational speed of the peristaltic pump is increased is K, and use the rotational speed acquisition method to obtain K.
[0013] Further, the rotational speed acquisition method includes: establishing a plane rectangular coordinate system, denoted as the rotational speed acquisition coordinate system for elevation, where the unit of the X-axis of the rotational speed acquisition coordinate system for elevation is weight, and the unit of the Y-axis is rotational speed; denoting the weight of the sampled liquid as the sampled weight, and denoting the point with coordinates (sampled weight, R max ) in the rotational speed acquisition coordinate system for elevation as the inlet end point; denoting the point with coordinates (0, R min ) in the rotational speed acquisition coordinate system for elevation as the inlet start point, denoting the line connecting the inlet end point and the inlet start point as the rotational speed elevation line, and denoting the slope of the rotational speed elevation line as K;
[0014] When the sampled liquid is introduced and the peristaltic pump starts to rotate from R min , the front of the peristaltic pump is photographed by a stroboscopic camera every P seconds, where P is the shortest shooting interval of the stroboscopic camera and the housing of the peristaltic pump is made of a transparent housing, and the front of the peristaltic pump is the side where the pipeline inside the peristaltic pump can be observed.
[0015] Further, photographing the peristaltic pump at different rotational speeds when introducing the peristaltic liquid based on litmus reagent using a stroboscopic camera further includes:
[0016] When the rotational speed of the peristaltic pump is increased to R max , all the images photographed by the stroboscopic camera are obtained, and the areas where the reagent color is located in all the images are marked, denoted as the reagent areas, where when the peristaltic liquid is an acidic liquid, the reagent color is red; when the peristaltic liquid is an alkaline liquid, the reagent color is blue; when the peristaltic liquid is a neutral liquid, the reagent color is purple.
[0017] Further, obtaining the flow characteristic curve TZ of the peristaltic pump at different rotational speeds based on the acidity and alkalinity of the peristaltic liquid and the images photographed by the stroboscopic camera includes:
[0018] Establishing a plane rectangular coordinate system, denoted as the characteristic acquisition coordinate system, where the units of both the X-axis and the Y-axis of the characteristic acquisition coordinate system are cm; based on the shooting time of the images photographed by the stroboscopic camera, all the images are sequentially denoted as the stroboscopic images PS 1 to the stroboscopic image PS m , the stroboscopic images PS 1 to the stroboscopic image PS m are sequentially placed in the characteristic acquisition coordinate system, and the curves corresponding to the reagent areas in the stroboscopic image PS are sequentially denoted as the flow characteristic curves TZ 1 to the flow characteristic curve TZ m , where the placement position of the stroboscopic image PS is the same each time it is placed.
[0019] Further, using a stroboscopic camera to obtain the flow usage curve LS of the peristaltic pump at a stable rotational speed includes:
[0020] After the peristaltic pump is put into use and the peristaltic liquid is introduced, obtain the maximum rotational speed preset during the use of the peristaltic pump, denoted as RS max , and use a stroboscopic camera to take pictures of the front of the peristaltic pump every P seconds after the peristaltic pump starts to rotate until the rotational speed of the peristaltic pump increases to RS at a rate of K min ; Denote the images obtained by shooting as flow usage images SY max to flow usage image SY 1 where n is a positive integer less than or equal to m and greater than or equal to 1, and RS n is less than or equal to R max and greater than or equal to R max ; min ;
[0021] Establish a rectangular coordinate system, denoted as the real-time analysis coordinate system, where both the X-axis and the Y-axis of the real-time analysis coordinate system are in cm; Place the flow usage images YS 1 to flow usage image YS n into the real-time analysis coordinate system in sequence, and denote the curves corresponding to the reagent regions in the flow usage coordinate system YS 1 to flow usage coordinate system YS n as flow usage curves LS 1 to flow usage curve LS n , where the position of the flow usage image YS each time it is placed in the real-time analysis coordinate system is the same as the position of the stroboscopic image PS placed in the feature acquisition coordinate system.
[0022] Further, controlling the peristaltic pump based on the flow usage curve LS and the flow feature curve TZ includes:
[0023] Denote the region enclosed by the flow feature curves TZ 1 to flow feature curve TZ n in the feature acquisition coordinate system as the reagent restriction region; Based on the coordinates of all points in the reagent restriction region, place the reagent restriction region in the real-time analysis coordinate system; Denote the region enclosed by the flow usage curves LS 1 to flow usage curve LS n in the real-time analysis coordinate system as the reagent actual region;
[0024] When the reagent restriction region completely coincides with the reagent actual region, do not control the peristaltic pump; When the reagent restriction region does not completely coincide with the reagent actual region, use the peristaltic control method to control the peristaltic pump.
[0025] Further, the peristaltic control method includes: Denote the points with the maximum and minimum slopes in the flow feature curve TZ corresponding to the reagent restriction region as the feature slope peak points FD n respectively1 and the characteristic slope valley point GD 1 ; Denote the points with the maximum and minimum slopes in the actual reagent area corresponding flow usage curve LS n as the usage slope peak point SF 1 and the usage slope valley point SG 1 ; Respectively, make tangents to the characteristic flow curve TZ 1 from the characteristic slope peak point FD 1 and the characteristic slope valley point GD n , and denote the intersection point of the tangents as the characteristic intersection point TJ 1 ; Respectively, make tangents to the flow usage curve LS 1 from the usage slope peak point SF 1 and the usage slope valley point SG n , and denote the intersection point of the tangents as the usage intersection point SJ 1 ; Obtain the offset value PY using the distance offset algorithm 1 , and the distance offset algorithm is: , where F is the offset value PY 1 , L1 is the distance between the characteristic intersection point TJ 1 and the usage intersection point SJ 1 , L2 is the distance between the characteristic slope peak point FD 1 and the usage slope peak point SF 1 , L3 is the distance between the characteristic slope valley point GD 1 and the usage slope valley point SG 1 , k1 is the value of the slope corresponding to the characteristic slope peak point FD 1 minus the slope corresponding to the usage slope peak point SF 1 , and k2 is the value of the slope corresponding to the characteristic slope valley point GD 1 minus the slope corresponding to the usage slope valley point SG 1 ;
[0026] Denote the points with the maximum and minimum slopes in the flow characteristic curve TZ 1 corresponding to the reagent restricted area as the characteristic slope peak point FD 2 and the characteristic slope valley point GD 2 ; Denote the points with the maximum and minimum slopes in the flow usage curve LS 1 corresponding to the actual reagent area as the usage slope peak point SF 2 and the usage slope valley point SG 2 ; Respectively, make tangents to the characteristic flow curve TZ 2 from the characteristic slope peak point FD 2 and the characteristic slope valley point GD 1 , and denote the intersection point of the tangents as the characteristic intersection point TJ 2; respectively using the slope peak point SF 2 and the slope valley point SG 2 to draw the flow usage curve LS 1 and mark the intersection point of the tangents as the usage intersection point SJ 2 ; obtain the offset value PY using the distance offset algorithm 2 , in the distance offset algorithm at this time, F is the offset value PY 2 , L1 is the distance between the feature intersection point TJ 2 and the usage intersection point SJ 2 , L2 is the distance between the feature slope peak point FD 2 and the usage slope peak point SF 2 , L3 is the distance between the feature slope valley point GD 2 and the usage slope valley point SG 2 , k1 is the value obtained by subtracting the slope corresponding to the feature slope peak point FD 2 from the slope corresponding to the usage slope peak point SF 2 , k2 is the value obtained by subtracting the slope corresponding to the feature slope valley point GD 2 from the slope corresponding to the usage slope valley point SG 2 .
[0027] Furthermore, controlling the peristaltic pump based on the flow usage curve LS and the flow feature curve TZ further includes:
[0028] When the sum of the offset value PY 1 and the offset value PY 2 is not 0 and the offset value PY 1 is greater than the offset value PY 2 , reduce the rotational speed of the peristaltic pump, and obtain the flow usage curve LS and the corresponding offset value PY 1 and the offset value PY 2 in real time until the offset value PY 1 is equal to the offset value PY 2 ; when the sum of the offset value PY 1 and the offset value PY 2 is not 0 and the offset value PY 1 is less than the offset value PY 2 , increase the rotational speed of the peristaltic pump, and obtain the flow usage curve LS and the corresponding offset value PY 1 and the offset value PY 2 in real time until the offset value PY 1 is equal to the offset value PY 2 ;
[0029] When the sum of the offset value PY 1 and the offset value PY 2 is not 0 and the offset value PY 1 is equal to the offset value PY2 When it is, the peristaltic pump is not controlled; when the offset value PY 1 and the offset value PY 2 sum to 0, the peristaltic pump is not controlled.
[0030] In a second aspect, the present invention also provides a peristaltic pump control system based on flow balance monitoring, including a feature shooting module, a feature curve acquisition module, and a feature control module;
[0031] The feature shooting module is used to record the liquid introduced into the peristaltic pump as peristaltic liquid; use a stroboscopic camera based on litmus reagent to shoot the peristaltic pump at different rotation speeds when the peristaltic liquid is introduced;
[0032] The feature curve acquisition module is used to obtain the flow characteristic curve TZ of the peristaltic pump at different rotation speeds based on the acidity and alkalinity of the peristaltic liquid and the image obtained by shooting with the stroboscopic camera;
[0033] The feature control module is used to, after introducing the peristaltic liquid into the peristaltic pump and starting it, use a stroboscopic camera to obtain the flow usage curve LS of the peristaltic pump at a stable rotation speed, and control the peristaltic pump based on the flow usage curve LS and the flow characteristic curve TZ.
[0034] Advantages of the present invention: The present invention first uses a stroboscopic camera based on litmus reagent to shoot the peristaltic pump at different rotation speeds when the peristaltic liquid is introduced; obtains the flow characteristic curve TZ of the peristaltic pump at different rotation speeds. The advantage of this is that by using litmus reagent and a stroboscopic camera to obtain the flow characteristic curve TZ, the flow path of the material in the peristaltic pump at different rotation speeds of the peristaltic pump can be obtained, which is helpful for controlling the peristaltic pump at different rotation speeds during the subsequent actual application of the peristaltic pump;
[0035] The present invention also controls the peristaltic pump by obtaining the flow usage curve LS of the peristaltic pump at a stable rotation speed and based on the flow usage curve LS and the flow characteristic curve TZ. The advantage of this is that by controlling the peristaltic pump based on the flow characteristic curve TZ and the flow usage curve LS, when the peristaltic pump is at different rotation speeds, the actual operation trajectory of the material in the peristaltic pump can be effectively analyzed, the characteristics that can reflect whether the overall flow in the peristaltic pump is balanced can be obtained in the actual movement trajectory of the material, and the peristaltic pump is controlled by judgment, so as to effectively and timely control the peristaltic pump through the analysis of flow balance regardless of whether the rotation speed and rate of the peristaltic pump are greater than or less than the rated rotation speed and rate, prevent material splashing, affect the blood purification effect and patient safety, and improve the stability and reliability of the blood purification system. Description of the Drawings
[0036] Figure 1 is the principle block diagram of the system of the present invention;
[0037] Figure 2 Schematic diagram for obtaining the flow characteristic curve TZ of the present invention;
[0038] Figure 3 Schematic diagram of the reagent restricted area and the actual reagent area of the present invention;
[0039] Figure 4 For the characteristic slope peak point FD of the present invention 1 and the characteristic slope valley point GD 1 and the usage slope peak point SF 1 and the usage slope valley point SG 1 obtaining schematic diagram;
[0040] Figure 5 Flow chart of the steps of the method of the present invention;
[0041] Figure 6 Principle block diagram of the electronic device of the present invention. Detailed implementation manners
[0042] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0043] Embodiment 1, please refer to Figure 1 As shown, the present application provides a peristaltic pump control system based on flow balance monitoring, including a feature photographing module, a feature curve obtaining module, and a feature control module;
[0044] The feature photographing module is used to record the liquid introduced into the peristaltic pump as peristaltic liquid; a stroboscopic camera is used to photograph the peristaltic pump at different rotation speeds when the peristaltic liquid is introduced based on litmus reagent.
[0045] In the specific implementation process, the liquid introduced into the peristaltic pump includes but is not limited to inorganic salt solutions, acid-base solutions, and organic corrosion solutions. In this embodiment, a hydrochloric acid solution is taken as an example for analysis. In addition, the purpose of using litmus reagent in this embodiment is only to obtain the flow condition of the liquid in the peristaltic pump, that is, the litmus reagent is mixed in the peristaltic liquid for color development, and the actual flow condition of the peristaltic liquid is obtained through a stroboscopic camera. In actual implementation, the litmus reagent can be replaced with other reagents, such as phenolphthalein reagent, so as to effectively obtain the flow condition of the peristaltic liquid in the peristaltic pump;
[0046] The feature shooting module includes a reagent mixing shooting unit, and the reagent mixing shooting unit is configured with a reagent mixing shooting strategy, which includes: before introducing liquid into the peristaltic pump, the liquid introduced into the peristaltic pump is denoted as the peristaltic liquid, and the acid-base test of the peristaltic liquid is carried out using a pH test paper; when the test result shows that the pH is greater than 7, the peristaltic liquid is denoted as an alkaline liquid; when the test result shows that the pH is less than 7, the peristaltic liquid is denoted as an acidic liquid; when the test result shows that the pH is equal to 7, the peristaltic liquid is denoted as a neutral liquid;
[0047] In the specific implementation process, for example, when the peristaltic liquid is hydrochloric acid solution, during the acid-base test, the test result shows that the pH is less than 7, and the acid-base solution is denoted as an acidic liquid;
[0048] Denote the minimum rotation speed and the maximum rotation speed of the peristaltic pump as R min and R max respectively; before the peristaltic pump is put into use, take a sample of the peristaltic liquid, denoted as the sampled liquid, mix litmus reagent into the sampled liquid and stir evenly, then introduce the sampled liquid into the peristaltic pump and start the peristaltic pump; when the sampled liquid is introduced, the peristaltic pump starts to rotate from R min and uniformly increase the rotation speed of the peristaltic pump until the rotation speed of the peristaltic pump is increased to R max , where the increase rate of the peristaltic pump when the rotation speed is increased is K, and the method of obtaining K using the rotation speed acquisition method is adopted.
[0049] In the specific implementation process, due to possible differences in the types and models of peristaltic pumps during actual use, R min and R max may vary. For example, in this embodiment, a BT600S model peristaltic pump is selected for analysis, and the rotation speed range of the BT600S model peristaltic pump is 1 - 600 rpm, then R min is 1 rpm, and R max is 600 rpm;
[0050] The rotation speed acquisition method includes: establishing a plane rectangular coordinate system, denoted as the rotation speed increase acquisition coordinate system, where the unit of the X-axis of the rotation speed increase acquisition coordinate system is weight, and the unit of the Y-axis is rotation speed; denote the weight of the sampled liquid as the sampled weight, and denote the point with coordinates (sampled weight, R max ) in the rotation speed increase acquisition coordinate system as the introduction end point; denote the point with coordinates (0, R min ) in the rotation speed increase acquisition coordinate system as the introduction start point, denote the line connecting the introduction end point and the introduction start point as the rotation speed increase line, and denote the slope of the rotation speed increase line as K;
[0051] In the specific implementation process, to ensure that the sampled solution obtained can fully reflect the data of the peristaltic pump at different rotational speeds, the lifting rate of the peristaltic pump during rotation is obtained by using the rotational speed increase to obtain the coordinate system. For example, in a data processing process, R min is 1 rpm, R max is 600 rpm, and the sampled weight is 1198 grams. Then, by calculation, K is 0.5 rpm / gram, that is, for every 1 gram of sampled solution introduced into the peristaltic pump, the rotational speed of the peristaltic pump increases by 0.5 rpm;
[0052] After the sampled liquid is introduced and the peristaltic pump starts to rotate from R min , a stroboscopic camera is used to take pictures of the front of the peristaltic pump every P seconds. Among them, P is the shortest shooting interval of the stroboscopic camera, and the outer shell of the peristaltic pump is a transparent shell. The front of the peristaltic pump is the side where the pipeline inside the peristaltic pump can be observed.
[0053] In actual analysis, the value of P is adjusted according to the shortest shooting interval of the selected stroboscopic camera. In this embodiment, the value of P is 0.5 s; by setting the outer shell of the peristaltic pump as a transparent shell, it is helpful to clearly obtain the flow trajectory of the litmus reagent in the peristaltic liquid when using the stroboscopic camera for shooting, so as to conduct further analysis;
[0054] After the rotational speed of the peristaltic pump is increased to R max , all the images taken by the stroboscopic camera are obtained, and the areas where the reagent color is located in all the images are marked, denoted as the reagent area. Among them, when the peristaltic liquid is an acidic liquid, the reagent color is red; when the peristaltic liquid is an alkaline liquid, the reagent color is blue; when the peristaltic liquid is a neutral liquid, the reagent color is purple.
[0055] The characteristic curve acquisition module is used to obtain the flow characteristic curve TZ of the peristaltic pump at different rotational speeds based on the acidity and alkalinity of the peristaltic liquid and the images taken by the stroboscopic camera; the characteristic curve acquisition module includes a full rotational speed characteristic analysis unit, and the full rotational speed characteristic analysis unit is configured with a full rotational speed characteristic analysis strategy. The full rotational speed characteristic analysis strategy includes: establishing a plane rectangular coordinate system, denoted as the characteristic acquisition coordinate system, where the units of the X-axis and Y-axis of the characteristic acquisition coordinate system are both cm; based on the shooting time of the images taken by the stroboscopic camera, all the images are sequentially denoted as stroboscopic images PS 1 to stroboscopic image PS m , the stroboscopic images PS 1 to stroboscopic image PS m are sequentially placed into the characteristic acquisition coordinate system, and the curves corresponding to the reagent areas in the stroboscopic image PS are sequentially denoted as flow characteristic curves TZ 1 to flow characteristic curve TZ m, where the placement position of the stroboscopic image PS is the same each time it is placed.
[0056] For example, during a data analysis, if the peristaltic solution is an acidic liquid, the red area in the stroboscopic image PS is obtained, and the curve corresponding to the red area is recorded as the flow characteristic curve TZ.
[0057] When the reagent area is relatively wide, the midline of the reagent area can be recorded as the flow characteristic curve TZ. For example, during a data processing, for the obtained reagent area, please refer to Figure 2 shown in the figure. Among them, the figure corresponding to SJQY is the shape of the reagent area. Then, through analysis, it can be obtained that TZ1, TZ2, and TZ3 are the flow characteristic curves TZ of the reagent area SJQY. In this embodiment, the flow characteristic curve TZ can be a curve composed of multiple curves. Therefore, the number of curves corresponding to a single flow characteristic curve TZ is not unique.
[0058] The feature control module is used to, after introducing the peristaltic liquid into the peristaltic pump and starting it, use a stroboscopic camera to obtain the flow usage curve LS of the peristaltic pump at a stable rotation speed, and control the peristaltic pump based on the flow usage curve LS and the flow characteristic curve TZ.
[0059] The feature control module includes a real-time flow analysis unit and a peristaltic pump control unit. The real-time flow analysis unit is configured with a real-time flow analysis strategy, and the real-time flow analysis strategy includes:
[0060] After the peristaltic pump is put into use and after the peristaltic liquid is introduced and used, obtain the preset maximum rotation speed of the peristaltic pump during use, denoted as RS max , and use a stroboscopic camera to take pictures of the front of the peristaltic pump every P seconds after the peristaltic pump starts rotating from R min until the rotation speed of the peristaltic pump increases to RS at a rate of K max ; record the taken images as the flow usage images SY 1 to the flow usage image SY n , where n is a positive integer less than or equal to m and greater than or equal to 1, and RS max is less than or equal to R max and greater than or equal to R min ;
[0061] For example, during a data processing process, R min is 1 rmp, RS max is 600 rmp, and R maxis 1000 rmp, the value of K is 1 pm / g, P is 0.5 s. The time required for the peristaltic pump to increase its speed from 1 rmp to 600 rmp at 1 pm / g is 50 s, and the time required for the peristaltic pump to increase its speed from 1 rmp to 1000 rmp at 1 pm / g is 90 s. Then, after the peristaltic pump starts rotating, when 599 grams are introduced, the rotational speed of the peristaltic pump is 600 rmp. The number of images YS of the flow rate obtained by photographing with a stroboscopic camera is 100, that is, n is 100. At the same time, through calculation, it can be obtained that when the sampling liquid is introduced, the number of stroboscopic images PS is 180, that is, m is 180;
[0062] Establish a plane rectangular coordinate system, denoted as the real-time analysis coordinate system. Among them, both the X-axis and the Y-axis of the real-time analysis coordinate system are in cm; Place the flow rate usage image YS 1 to the flow rate usage image YS n into the real-time analysis coordinate system in sequence, and denote the curves corresponding to the reagent regions in the flow rate usage coordinate system YS 1 to the flow rate usage coordinate system YS n as the flow rate usage curves LS 1 to the flow rate usage curve LS n respectively. Among them, the position where the flow rate usage image YS is placed in the real-time analysis coordinate system each time is the same as the position where the stroboscopic image PS is placed in the feature acquisition coordinate system.
[0063] The peristaltic pump control unit is configured with a peristaltic pump real-time control strategy. The peristaltic pump real-time control strategy includes: Denote the region enclosed by the flow rate feature curves TZ 1 to the flow rate feature curve TZ n in the feature acquisition coordinate system as the reagent restriction region; Based on the coordinates of all points within the reagent restriction region, place the reagent restriction region in the real-time analysis coordinate system; Denote the region enclosed by the flow rate usage curves LS 1 to the flow rate usage curve LS n in the real-time analysis coordinate system as the reagent actual region. For example, in a data processing process, the real-time analysis coordinate system obtained can be referred to Figure 3 as shown. Among them, the figure corresponding to QQ1 is the reagent restriction region, and the figure corresponding to QQ2 is the reagent actual region; The real-time analysis coordinate system obtained after overlapping QQ1 and QQ2 can be referred to Figure 4 as shown. Among them, the point FD1 on the reagent restriction region QQ1 is the feature slope peak point FD 1 , and the point GD1 on the reagent restriction region QQ1 is the feature slope valley point GD 1 ; The point SF1 on the reagent actual region QQ2 is the usage slope peak point SF 1 , and the point SG1 on the reagent actual region QQ2 is the usage slope valley point SG 1 ;
[0064] When the reagent restricted area completely coincides with the actual reagent area, the peristaltic pump is not controlled; when the reagent restricted area does not completely coincide with the actual reagent area, the peristaltic control method is used to control the peristaltic pump.
[0065] The peristaltic control method includes: regarding the points with the maximum and minimum slopes in the flow characteristic curve TZ corresponding to the reagent restricted area n as the characteristic slope peak point FD 1 and the characteristic slope valley point GD 1 respectively; regarding the points with the maximum and minimum slopes in the flow usage curve LS within the actual reagent area n as the usage slope peak point SF 1 and the usage slope valley point SG 1 respectively; making tangents to the characteristic flow curve TZ 1 from the characteristic slope peak point FD 1 and the characteristic slope valley point GD n respectively, and denoting the intersection point of the tangents as the characteristic intersection point TJ 1 ; making tangents to the flow usage curve LS 1 from the usage slope peak point SF 1 and the usage slope valley point SG n respectively, and denoting the intersection point of the tangents as the usage intersection point SJ 1 ; obtaining the offset value PY 1 using the distance offset algorithm, and the distance offset algorithm is: , where F is the offset value PY 1 , L1 is the distance between the characteristic intersection point TJ 1 and the usage intersection point SJ 1 , L2 is the distance between the characteristic slope peak point FD 1 and the usage slope peak point SF 1 , L3 is the distance between the characteristic slope valley point GD 1 and the usage slope valley point SG 1 , k1 is the value obtained by subtracting the slope corresponding to the usage slope peak point SF 1 from the slope corresponding to the characteristic slope peak point FD 1 , and k2 is the value obtained by subtracting the slope corresponding to the usage slope valley point SG 1 from the slope corresponding to the characteristic slope valley point GD 1 ;
[0066] Regarding the points with the maximum and minimum slopes in the flow characteristic curve TZ corresponding to the reagent restricted area 1 as the characteristic slope peak point FD 2 and the characteristic slope valley point GD 2 respectively; regarding the points with the maximum and minimum slopes in the flow usage curve LS within the actual reagent area 1The points with the maximum and minimum slopes are respectively denoted as the slope peak point SF 2 and the slope valley point SG 2 ; respectively, the characteristic slope peak point FD 2 and the characteristic slope valley point GD 2 are used to make the tangent of the characteristic flow curve TZ 1 , and the intersection point of the tangents is denoted as the characteristic intersection point TJ 2 ; respectively, the slope peak point SF 2 and the slope valley point SG 2 are used to make the tangent of the flow usage curve LS 1 , and the intersection point of the tangents is denoted as the usage intersection point SJ 2 ; the distance offset algorithm is used to obtain the offset value PY 2 . In the distance offset algorithm at this time, F is the offset value PY 2 , L1 is the distance between the characteristic intersection point TJ 2 and the usage intersection point SJ 2 , L2 is the distance between the characteristic slope peak point FD 2 and the slope peak point SF 2 , L3 is the distance between the characteristic slope valley point GD 2 and the slope valley point SG 2 , k1 is the value obtained by subtracting the slope corresponding to the slope peak point SF 2 from the slope corresponding to the characteristic slope peak point FD 2 , and k2 is the value obtained by subtracting the slope corresponding to the slope valley point SG 2 from the slope corresponding to the characteristic slope valley point GD 2 .
[0067] When the sum of the offset value PY 1 and the offset value PY 2 is not 0 and the offset value PY 1 is greater than the offset value PY 2 , reduce the rotational speed of the peristaltic pump, and obtain the flow usage curve LS and the corresponding offset value PY 1 and the offset value PY 2 in real time until the offset value PY 1 is equal to the offset value PY 2 ; when the sum of the offset value PY 1 and the offset value PY 2 is not 0 and the offset value PY 1 is less than the offset value PY 2 , increase the rotational speed of the peristaltic pump, and obtain the flow usage curve LS and the corresponding offset value PY 1 and the offset value PY 2 in real time until the offset value PY 1 is equal to the offset value PY2 ; for example, during a data processing operation, when calculating the offset value PY 1 , where L1 is 100 cm, L2 is 5 cm, L3 is 3 cm, and both k1 and k2 are 0, the offset value PY can be calculated as 1 42, and at the same time, the offset value PY is calculated as 2 30. Through analysis, it can be obtained that the sum of the offset value PY 1 and the offset value PY 2 is not 0 and the offset value PY 1 is greater than the offset value PY 2 . This indicates that the change amplitude of the liquid flow rate in the peristaltic pump reflected by the flow rate usage curve LS n corresponding to the actual reagent area is larger than that of the flow rate usage curve LS 1 reflecting the liquid flow rate in the peristaltic pump. At this time, the liquid flow rate of the peristaltic pump is unbalanced. To reduce the change amplitude of the liquid flow rate in the peristaltic pump reflected by the flow rate usage curve LS n , the rotational speed of the peristaltic pump should be decreased. Vice versa, when the sum of the offset value PY 1 and the offset value PY 2 is not 0 and the offset value PY 1 is less than the offset value PY 2 , the rotational speed of the peristaltic pump should be increased; and when the sum of the offset value PY 1 and the offset value PY 2 is not 0 and the offset value PY 1 is equal to the offset value PY 2 , it indicates that even though the liquid flow area of the peristaltic pump reflected by the actual reagent area does not match the liquid flow area of the peristaltic pump reflected by the reagent restriction area, the change amplitude of the liquid flow rate in the peristaltic pump reflected by the flow rate usage curve LS n is approximately the same as that of the flow rate usage curve LS 1 reflecting the liquid flow rate in the peristaltic pump. At this time, the liquid flow rate of the peristaltic pump is balanced, so no control is required;
[0068] When the sum of the offset value PY 1 and the offset value PY 2 is not 0 and the offset value PY 1 is equal to the offset value PY 2 , no control is performed on the peristaltic pump; when the sum of the offset value PY 1 and the offset value PY 2 is 0, no control is performed on the peristaltic pump.
[0069] Example 2, please refer to Figure 5As shown, the present application also provides a peristaltic pump control method based on flow balance monitoring, including the following steps: Step S1, record the liquid introduced into the peristaltic pump as the peristaltic liquid; use a stroboscopic camera to photograph the peristaltic pump at different rotation speeds when the peristaltic liquid is introduced based on litmus reagent.
[0070] Step S1 includes the following sub-steps: Step S101, before introducing the liquid into the peristaltic pump, record the liquid introduced into the peristaltic pump as the peristaltic liquid, and use a pH test paper to test the acidity and alkalinity of the peristaltic liquid; when the test result shows that the pH is greater than 7, record the peristaltic liquid as an alkaline liquid; when the test result shows that the pH is less than 7, record the peristaltic liquid as an acidic liquid; when the test result shows that the pH is equal to 7, record the peristaltic liquid as a neutral liquid;
[0071] Step S102, record the minimum rotation speed and the maximum rotation speed of the peristaltic pump as R min and R max ; before the peristaltic pump is put into use, take a sample of the peristaltic liquid, record it as the sampled liquid, mix litmus reagent into the sampled liquid and stir evenly, then introduce the sampled liquid into the peristaltic pump and start the peristaltic pump; after the sampled liquid is introduced, start the peristaltic pump to rotate from R min and uniformly increase the rotation speed of the peristaltic pump until the rotation speed of the peristaltic pump is increased to R max , where the increase rate of the peristaltic pump when the rotation speed is increased is K, and use the rotation speed acquisition method to obtain K;
[0072] The rotation speed acquisition method includes: establish a plane rectangular coordinate system, denoted as the rotation speed increase acquisition coordinate system, where the unit of the X-axis of the rotation speed increase acquisition coordinate system is weight, and the unit of the Y-axis is rotation speed; record the weight of the sampled liquid as the sampled weight, and record the point with coordinates (sampled weight, R max ) in the rotation speed increase acquisition coordinate system as the introduction end point; record the point with coordinates (0, R min ) in the rotation speed increase acquisition coordinate system as the introduction start point, record the line connecting the introduction end point and the introduction start point as the rotation speed increase line, and record the slope of the rotation speed increase line as K;
[0073] Step S103, after the sampled liquid is introduced and the peristaltic pump starts to rotate from R min , use a stroboscopic camera to photograph the front of the peristaltic pump every P seconds, where P is the shortest shooting interval of the stroboscopic camera and the outer shell of the peristaltic pump is made of a transparent shell, and the front of the peristaltic pump is the side where the pipeline inside the peristaltic pump can be observed;
[0074] Step S104, when the rotation speed of the peristaltic pump is increased to R maxAfter that, obtain all the images taken by the stroboscopic camera, and mark the areas where the reagent color is located in all the images, which are denoted as reagent areas. Among them, when the peristaltic liquid is an acidic liquid, the reagent color is red; when the peristaltic liquid is an alkaline liquid, the reagent color is blue; when the peristaltic liquid is a neutral liquid, the reagent color is purple.
[0075] Step S2: Based on the acidity and alkalinity of the peristaltic liquid and the images obtained by the stroboscopic camera, obtain the flow characteristic curve TZ of the peristaltic pump at different rotation speeds.
[0076] Step S2 includes: Establish a rectangular coordinate system, denoted as the characteristic acquisition coordinate system. Among them, the units of the X-axis and Y-axis of the characteristic acquisition coordinate system are both cm; Based on the shooting time of the images taken by the stroboscopic camera, all the images are sequentially denoted as stroboscopic images PS 1 to stroboscopic image PS m and denote the stroboscopic image PS 1 to stroboscopic image PS m Put them into the characteristic acquisition coordinate system in sequence, and sequentially denote the curves corresponding to the reagent areas in the stroboscopic image PS as the flow characteristic curves TZ 1 to flow characteristic curve TZ m Among them, the placement position of the stroboscopic image PS is the same each time it is put in.
[0077] Step S3: After introducing the peristaltic liquid into the peristaltic pump and starting it, use the stroboscopic camera to obtain the flow usage curve LS of the peristaltic pump at a stable rotation speed, and control the peristaltic pump based on the flow usage curve LS and the flow characteristic curve TZ; Step S3 includes:
[0078] Step S301: After the peristaltic pump is put into use and the peristaltic liquid is introduced, obtain the preset maximum rotation speed of the peristaltic pump during use, denoted as RS max and use the stroboscopic camera to take pictures of the front of the peristaltic pump every P seconds after the peristaltic pump starts to rotate from R min until the rotation speed of the peristaltic pump increases to RS at a rate of K max ; Denote the taken images as flow usage images SY 1 to flow usage image SY n where n is a positive integer less than or equal to m and greater than or equal to 1, and RS max is less than or equal to R max and greater than or equal to R min ;
[0079] Step S302: Establish a rectangular coordinate system, denoted as the real-time analysis coordinate system. Among them, both the X-axis and Y-axis of the real-time analysis coordinate system are cm; Denote the flow usage image YS 1 to flow usage image YS nPut them into the real-time analysis coordinate system in sequence, and the flow usage coordinate system YS 1 to the flow usage coordinate system YS n The corresponding curves of the reagent regions within are sequentially recorded as the flow usage curves LS 1 to the flow usage curves LS n , where the position of the flow usage image YS each time it is put into the real-time analysis coordinate system is the same as the position of the stroboscopic image PS put into the feature acquisition coordinate system;
[0080] Step S303, the flow feature curves TZ in the feature acquisition coordinate system 1 to the flow feature curves TZ n The enclosed area is denoted as the reagent restriction area; based on the coordinates of all points within the reagent restriction area, place the reagent restriction area in the real-time analysis coordinate system; the area enclosed by the flow usage curves LS in the real-time analysis coordinate system 1 to the flow usage curves LS n The enclosed area is denoted as the reagent actual area;
[0081] Step S304, when the reagent restriction area completely coincides with the reagent actual area, do not control the peristaltic pump; when the reagent restriction area does not completely coincide with the reagent actual area, use the peristaltic control method to control the peristaltic pump.
[0082] The peristaltic control method includes: Step S3041, the flow feature curves TZ corresponding to the reagent restriction area n The points with the maximum and minimum slopes are respectively denoted as the feature slope peak point FD 1 and the feature slope valley point GD 1 ; the points with the maximum and minimum slopes in the corresponding flow usage curves LS within the reagent actual area are respectively denoted as the usage slope peak point SF n and the usage slope valley point SG 1 ; respectively make tangents to the feature flow curve TZ from the feature slope peak point FD 1 and the feature slope valley point GD 1 , and denote the intersection point of the tangents as the feature intersection point TJ 1 ; respectively make tangents to the flow usage curve LS from the usage slope peak point SF n and the usage slope valley point SG 1 , and denote the intersection point of the tangents as the usage intersection point SJ 1 ; use the distance offset algorithm to obtain the offset value PY 1 ; the distance offset algorithm is: , where F is the offset value PY n , L1 is the feature intersection point TJ 1 , L2 is the usage intersection point SJ 1 , and the distance between the two intersection points is calculated using the distance formula. If the offset value PY is greater than a preset threshold value, it is determined that the reagent restriction area is larger than the reagent actual area, and the peristaltic pump is controlled to reduce the reagent flow rate; if the offset value PY is less than the preset threshold value, it is determined that the reagent restriction area is smaller than the reagent actual area, and the peristaltic pump is controlled to increase the reagent flow rate; if the offset value PY is equal to the preset threshold value, it is determined that the reagent restriction area coincides with the reagent actual area, and the peristaltic pump is not controlled. 1 , L2 is the usage intersection point SJ 1The distance between the intersection point SJ 1 is L2, where the peak point FD of the characteristic slope 1 The distance between the slope peak point SF 1 is L3, and the valley point GD of the characteristic slope 1 The distance between the slope valley point SG 1 is k1, where k1 is the value obtained by subtracting the slope corresponding to the slope peak point SF 1 from the slope corresponding to the peak point FD of the characteristic slope 1 k2 is the value obtained by subtracting the slope corresponding to the slope valley point SG 1 from the slope corresponding to the valley point GD of the characteristic slope 1 ;
[0083] Step S3042: Denote the points with the maximum and minimum slopes on the flow characteristic curve TZ corresponding to the reagent restriction region 1 as the peak point FD of the characteristic slope 2 and the valley point GD of the characteristic slope 2 respectively; Denote the points with the maximum and minimum slopes on the flow usage curve LS corresponding to the actual reagent region 1 as the peak point SF of the usage slope 2 and the valley point SG of the usage slope 2 respectively; Draw tangents to the characteristic flow curve TZ 2 from the peak point FD of the characteristic slope and the valley point GD of the characteristic slope 2 respectively, and denote the intersection point of the tangents as the characteristic intersection point TJ 1 2 ; Draw tangents to the flow usage curve LSfrom the peak point SF of the usage slope 2 and the valley point SG of the usage slope 2 1 respectively, and denote the intersection point of the tangents as the usage intersection point SJ 2 ; Obtain the offset value PY 2 using the distance offset algorithm. In the distance offset algorithm at this time, F is the offset value PY 2 , L1 is the distance between the characteristic intersection point TJ 2 and the usage intersection point SJ 2 , L2 is the distance between the peak point FD of the characteristic slope 2 and the peak point SF of the usage slope 2 , L3 is the distance between the valley point GD of the characteristic slope 2 and the valley point SG of the usage slope 2 , k1 is the value obtained by subtracting the slope corresponding to the peak point SF of the usage slope 2 from the slope corresponding to the peak point FD of the characteristic slope 2 , and k2 is the value obtained by subtracting the slope corresponding to the valley point SG of the usage slope 2 from the slope corresponding to the valley point GD of the characteristic slope 2 The corresponding slope value.
[0084] Step S305, when the offset value PY 1 and the offset value PY 2 have a sum that is not 0 and the offset value PY 1 is greater than the offset value PY 2 , reduce the rotational speed of the peristaltic pump, and obtain the flow usage curve LS and the corresponding offset value PY 1 and the offset value PY 2 in real time until the offset value PY 1 is equal to the offset value PY 2 ; when the offset value PY 1 and the offset value PY 2 have a sum that is not 0 and the offset value PY 1 is less than the offset value PY 2 , increase the rotational speed of the peristaltic pump, and obtain the flow usage curve LS and the corresponding offset value PY 1 and the offset value PY 2 in real time until the offset value PY 1 is equal to the offset value PY 2 ;
[0085] Step S306, when the offset value PY 1 and the offset value PY 2 have a sum that is not 0 and the offset value PY 1 is equal to the offset value PY 2 , do not control the peristaltic pump; when the offset value PY 1 and the offset value PY 2 have a sum of 0, do not control the peristaltic pump.
[0086] Embodiment 3, please refer to Figure 6 as shown, Figure 6 illustrates a schematic structural diagram of an electronic device, which may include: a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus. The memory stores computer-readable instructions, and the processor can call the instructions in the memory. When the computer-readable instructions are executed by the processor, it runs the steps in the peristaltic pump control method based on flow balance monitoring to achieve the following functions: using a stroboscopic camera to photograph the peristaltic pump at different rotational speeds when introducing peristaltic liquid based on litmus reagent; obtaining the flow characteristic curve TZ of the peristaltic pump at different rotational speeds; obtaining the flow usage curve LS of the peristaltic pump at a stable rotational speed, and controlling the peristaltic pump based on the flow usage curve LS and the flow characteristic curve TZ.
[0087] In addition, when the logical instructions in the above-mentioned memory are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0088] Embodiment 4, this application also provides a computer-readable storage medium. This application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, it runs the steps in the peristaltic pump control method based on flow balance monitoring as described above to achieve the following functions: using a stroboscopic camera to photograph the peristaltic pump at different rotational speeds when peristaltic liquid is introduced based on litmus reagent; obtaining the flow characteristic curve TZ of the peristaltic pump at different rotational speeds; obtaining the flow usage curve LS of the peristaltic pump at a stable rotational speed, and controlling the peristaltic pump based on the flow usage curve LS and the flow characteristic curve TZ.
[0089] Through the description of the above embodiments, the embodiments of the present invention can be provided as a method, a system, or a computer program product. Based on this understanding, the above technical solution, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disks, optical discs, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments.
[0090] In the embodiments provided in this application, it should be understood that the disclosed system or method can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division, and there can be other division methods in actual implementation. Also, for example, multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some communication interfaces. The indirect coupling or communication connection of systems, modules, and units can be in electrical, mechanical, or other forms.
[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present application.
Claims
1. A peristaltic pump control method based on flow balance monitoring, characterized in that: The steps include: The liquid passed into the peristaltic pump is recorded as the peristaltic liquid; the peristaltic pump at different rotation speeds when the peristaltic liquid is passed into the peristaltic pump is photographed using a stroboscopic camera based on a litmus reagent; Based on the acidity and alkalinity of the peristaltic liquid and the images taken by the stroboscopic camera, the flow characteristic curve TZ of the peristaltic pump at different speeds is obtained; After the peristaltic liquid is introduced into the peristaltic pump and it is started, a stroboscopic camera is used to obtain the flow usage curve LS of the peristaltic pump at a stable rotation speed, and the peristaltic pump is controlled based on the flow usage curve LS and the flow characteristic curve TZ.
2. The peristaltic pump control method based on flow balance monitoring according to claim 1, characterized in that: Based on litmus reagent, the peristaltic pump at different speeds when the peristaltic liquid is passed through is photographed using a stroboscopic camera, including: Before the liquid is introduced into the peristaltic pump, the liquid introduced into the peristaltic pump is recorded as peristaltic liquid, and the peristaltic liquid is tested for acidity and alkalinity using pH test paper; when the test result shows that the pH is greater than 7, the peristaltic liquid is recorded as alkaline liquid; when the test result shows that the pH is less than 7, the peristaltic liquid is recorded as acidic liquid; when the test result shows that the pH is equal to 7, the peristaltic liquid is recorded as neutral liquid; The lowest and highest speeds of the peristaltic pump are respectively denoted as R min and R max Before the peristaltic pump is put into use, the peristaltic liquid is sampled and recorded as the sampling liquid. After the sampling liquid is mixed with litmus reagent and stirred evenly, the sampling liquid is passed into the peristaltic pump and the peristaltic pump is started. After the sampling liquid is passed, the peristaltic pump is turned from R min Start rotating and increase the speed of the peristaltic pump evenly until the speed of the peristaltic pump reaches R max , where the lifting rate of the peristaltic pump when the speed increases is K, and K is obtained using the speed acquisition method.
3. The peristaltic pump control method based on flow balance monitoring according to claim 2 is characterized in that: The speed acquisition method includes: establishing a plane rectangular coordinate system, recorded as the lifting speed acquisition coordinate system, wherein the unit of the X-axis of the lifting speed acquisition coordinate system is weight, and the unit of the Y-axis is speed; recording the weight of the sampled liquid as the sampling weight, and recording the coordinates in the lifting speed acquisition coordinate system as (sampling weight, R max ) is recorded as the entry end point; the coordinates of the coordinate system in which the speed is increased are obtained (0, R min ) is recorded as the entry starting point, the line connecting the entry end point and the entry starting point is recorded as the speed increase line, and the slope of the speed increase line is recorded as K; When the sample liquid is introduced and the peristaltic pump is driven by R min After the rotation starts, a stroboscopic camera is used to photograph the front of the peristaltic pump every P seconds, where P is the shortest shooting interval of the stroboscopic camera. The outer shell of the peristaltic pump adopts a transparent shell, and the front of the peristaltic pump is the side where the pipes inside the peristaltic pump can be observed.
4. The peristaltic pump control method based on flow balance monitoring according to claim 3 is characterized in that: The use of a stroboscopic camera to photograph the peristaltic pump at different speeds when the peristaltic liquid is introduced based on litmus reagent also includes: When the speed of the peristaltic pump increases to R max Afterwards, all images taken by the stroboscopic camera are obtained, and the areas where the reagent color is located in all images are marked as reagent areas, wherein when the peristaltic liquid is an acidic liquid, the reagent color is red; when the peristaltic liquid is an alkaline liquid, the reagent color is blue; when the peristaltic liquid is a neutral liquid, the reagent color is purple.
5. The peristaltic pump control method based on flow balance monitoring according to claim 4 is characterized in that: Based on the acidity and alkalinity of the peristaltic liquid and the images taken by the stroboscopic camera, the flow characteristic curve TZ of the peristaltic pump at different speeds is obtained, including: A plane rectangular coordinate system is established, which is recorded as the feature acquisition coordinate system, wherein the units of the X-axis and the Y-axis of the feature acquisition coordinate system are both cm; based on the shooting time of the images shot by the stroboscopic camera, all images are recorded in sequence as stroboscopic images PS1 to stroboscopic images PS m , change the stroboscopic image PS1 to the stroboscopic image PS m The curves corresponding to the reagent area in the stroboscopic image PS are sequentially recorded as flow characteristic curves TZ1 to TZ m , wherein the placement position of the stroboscopic image PS is the same each time it is placed.
6. The peristaltic pump control method based on flow balance monitoring according to claim 5, characterized in that: Using a stroboscopic camera to obtain the flow rate curve of a peristaltic pump at a stable speed LS includes: After the peristaltic pump is put into use and the peristaltic liquid is passed into use, the maximum speed preset during the use of the peristaltic pump is obtained, which is recorded as RS max and using a stroboscopic camera in a peristaltic pump by R min After the peristaltic pump starts rotating, take a picture of the front of the pump every P seconds until the speed of the peristaltic pump increases to RS at a rate K. max The captured images are recorded as flow usage image SY1 to flow usage image SY n , where n is a positive integer less than or equal to m and greater than or equal to 1, RS max Less than or equal to R max and greater than or equal to R min ; Establish a plane rectangular coordinate system, recorded as the real-time analysis coordinate system, where the X-axis and Y-axis of the real-time analysis coordinate system are both cm; convert the traffic usage image YS1 to the traffic usage image YS n Put them into the real-time analysis coordinate system in sequence, and convert the flow usage coordinate system YS1 to the flow usage coordinate system YS n The curves corresponding to the reagent areas in the flow rate usage curve LS1 to the flow rate usage curve LS n , where the position of the traffic usage image YS each time it is placed in the real-time analysis coordinate system is the same as the position of the stroboscopic image PS when it is placed in the feature acquisition coordinate system.
7. The peristaltic pump control method based on flow balance monitoring according to claim 6 is characterized in that: Control of the peristaltic pump based on the flow usage curve LS and the flow characteristic curve TZ includes: Convert the flow characteristic curve TZ1 to the flow characteristic curve TZ in the characteristic acquisition coordinate system n The enclosed area is recorded as the reagent restriction area; based on the coordinates of all points in the reagent restriction area, the reagent restriction area is placed in the real-time analysis coordinate system; the flow usage curve LS1 in the real-time analysis coordinate system is changed to the flow usage curve LS n The enclosed area is recorded as the actual area of the reagent; When the reagent restriction area completely overlaps with the reagent actual area, the peristaltic pump is not controlled; when the reagent restriction area does not completely overlap with the reagent actual area, the peristaltic pump is controlled using the peristaltic control method.
8. The peristaltic pump control method based on flow balance monitoring according to claim 7, characterized in that: The peristaltic control method includes: the flow characteristic curve TZ corresponding to the reagent restriction area n The points with the maximum and minimum slopes are recorded as the characteristic slope peak point FD1 and the characteristic slope valley point GD1 respectively; the flow rate corresponding to the actual area of the reagent is calculated using the curve LS n The points with the largest and smallest slopes are recorded as the slope peak point SF1 and the slope valley point SG1 respectively; the characteristic flow curve TZ is made by the characteristic slope peak point FD1 and the characteristic slope valley point GD1 respectively. n The tangent of the tangent is marked as the characteristic intersection point TJ1; the flow usage curve LS is made by using the slope peak point SF1 and the slope valley point SG1 respectively. n The tangent of the tangent is recorded as the intersection point SJ1; the distance offset algorithm is used to obtain the offset value PY1, and the distance offset algorithm is: , where F is the offset value PY1, L1 is the distance between the characteristic intersection point TJ1 and the used intersection point SJ1, L2 is the distance between the characteristic slope peak point FD1 and the used slope peak point SF1, L3 is the distance between the characteristic slope valley point GD1 and the used slope valley point SG1, k1 is the value of the slope corresponding to the characteristic slope peak point FD1 minus the slope corresponding to the used slope peak point SF1, and k2 is the value of the slope corresponding to the characteristic slope valley point GD1 minus the slope corresponding to the used slope valley point SG1; The points with the maximum slope and the minimum slope in the flow characteristic curve TZ1 corresponding to the reagent restriction area are recorded as the characteristic slope peak point FD2 and the characteristic slope valley point GD2 respectively; the points with the maximum slope and the minimum slope in the flow usage curve LS1 corresponding to the reagent actual area are recorded as the usage slope peak point SF2 and the usage slope valley point SG2 respectively; the characteristic slope peak point FD2 and the characteristic slope valley point GD2 are used as tangents to the characteristic flow curve TZ1, and the intersection of the tangents is recorded as the characteristic intersection point TJ2; the usage slope peak point SF2 and the usage slope valley point SG2 are used as tangents to the flow usage curve LS1, and The intersection point of the tangents is recorded as the used intersection point SJ2; the distance offset algorithm is used to obtain the offset value PY2. In the distance offset algorithm at this time, F is the offset value PY2, L1 is the distance between the characteristic intersection point TJ2 and the used intersection point SJ2, L2 is the distance between the characteristic slope peak point FD2 and the used slope peak point SF2, L3 is the distance between the characteristic slope valley point GD2 and the used slope valley point SG2, k1 is the slope corresponding to the characteristic slope peak point FD2 minus the slope corresponding to the used slope peak point SF2, and k2 is the slope corresponding to the characteristic slope valley point GD2 minus the slope corresponding to the used slope valley point SG2.
9. The peristaltic pump control method based on flow balance monitoring according to claim 8, characterized in that: Controlling the peristaltic pump based on the flow usage curve LS and the flow characteristic curve TZ also includes: When the sum of the offset value PY1 and the offset value PY2 is not 0 and the offset value PY1 is greater than the offset value PY2, the rotation speed of the peristaltic pump is reduced, and the flow usage curve LS and the corresponding offset value PY1 and offset value PY2 are obtained in real time until the offset value PY1 is equal to the offset value PY2; when the sum of the offset value PY1 and the offset value PY2 is not 0 and the offset value PY1 is less than the offset value PY2, the rotation speed of the peristaltic pump is increased, and the flow usage curve LS and the corresponding offset value PY1 and offset value PY2 are obtained in real time until the offset value PY1 is equal to the offset value PY2; When the sum of the offset value PY1 and the offset value PY2 is not 0 and the offset value PY1 is equal to the offset value PY2, the peristaltic pump is not controlled; when the sum of the offset value PY1 and the offset value PY2 is 0, the peristaltic pump is not controlled.
10. A peristaltic pump control system based on flow balance monitoring, used to implement the peristaltic pump control method based on flow balance monitoring according to any one of claims 1 to 9, characterized in that: It includes a feature shooting module, a feature curve acquisition module and a feature control module; The characteristic shooting module is used to record the liquid passed into the peristaltic pump as peristaltic liquid; based on the litmus reagent, a stroboscopic camera is used to shoot the peristaltic pump at different speeds when the peristaltic liquid is passed into the peristaltic pump; The characteristic curve acquisition module is used to acquire the flow characteristic curve TZ of the peristaltic pump at different speeds based on the acidity and alkalinity of the peristaltic liquid and the image taken by the stroboscopic camera; The characteristic control module is used to obtain the flow usage curve LS of the peristaltic pump at a stable speed using a stroboscopic camera after the peristaltic liquid is introduced into the peristaltic pump and it is started, and to control the peristaltic pump based on the flow usage curve LS and the flow characteristic curve TZ.
Citation Information
Patent Citations
Peristaltic pump control method and system, storage medium and intelligent terminal
CN117072413A
Device and method for circulating liquids
CN110914544A
Infusion pump peristaltic variable-speed control method and device, infusion pump and storage medium
CN112370605A