A method, device, electronic device and storage medium for reducing flow error

By collecting and fitting the polynomial function of the rotation speed value and the flow value in the medical irrigation pump, the fitting relationship expression with an error smaller than the preset value is screened out, which solves the problems of low flow calibration accuracy and low manual timing efficiency in the existing technology. Achieved higher flow accuracy and work efficiency.

CN118356549BActive Publication Date: 2024-09-24GUANGDONG OPTO MEDIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410777366.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-24
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

In the existing technology, the accuracy of the fitting relationship for medical irrigation pump flow calibration is low, and the efficiency of manual data collection and timing is low, resulting in large flow errors and low work efficiency.

Method used

By collecting multiple sets of rotational speed values ​​and flow values ​​of the flushing pump, first-order polynomial functions and second-order polynomial functions are fitted, and the error values ​​are calculated in the control system, and the functions whose errors are smaller than the preset allowed values ​​are screened out as the fitting relationship expression. Reduce manual participation and improve fitting accuracy and work efficiency.

Benefits of technology

This reduces the flow error, improves the accuracy and efficiency of the flushing pump flow output, and reduces the precision error caused by manual timing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118356549B
    Figure CN118356549B
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and storage medium for reducing flow errors, which are applied to the technical field of medical flushing pump equipment. The speed value and flow value are collected by a control system, and the corresponding first-order polynomial function and second-order polynomial function are fitted. After inverse calculation, the first-order polynomial function and second-order polynomial function with higher accuracy are screened out as fitting relationship formulas for application, thereby achieving the beneficial effects of reducing errors and improving work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of medical flushing pump equipment, and in particular to a method, device, electronic equipment and storage medium for reducing flow rate error. Background Art

[0002] The working principle of the irrigation pump of the tissue resection surgery power system is that the system machine internal program controls the stepper motor to drive the rotation of the irrigation pump, and the irrigation fluid is directly delivered to the patient's surgical site through the water pipe and surgical instruments for irrigation. The effect of the irrigation depends on the flow value of the irrigation pump. The accuracy of the flow value determines the output of the actual output flow, and the factors that affect the accuracy of the flow value often depend on the hardware itself, the stability of the connection with the stepper motor, and the difference in the calibration of the flow value.

[0003] Flushing pump flow calibration is the most important process to determine the accuracy of flow value. The calibration steps are usually as follows: record the collected speed value and flow value in a table, import the data into the external fitting software, select the relationship to be generated according to the approximate relationship of the visual data, and perform fitting. Finally, put the fitted relationship into the program to control the flushing pump flow. The closer the relationship is to the actual data curve, the higher the accuracy of the fitting and the more accurate the flow output. However, the collected data is often not completely consistent with the manually estimated relationship, so the generated relationship is also lacking in fitting accuracy.

[0004] In the early and late stages of the flow value calibration process, there is also a data collection and verification process. During the data collection and verification process, the experimenter is required to manually time and manually record the flow rate of the flushing pump in one minute. Such manual timing will further increase the error and greatly reduce work efficiency.

[0005] Therefore, there are problems in the prior art such as low precision of the generated fitting relationship and low efficiency of manual data collection. Summary of the invention

[0006] In view of the above-mentioned shortcomings of the prior art, the present application provides a method, device, electronic device and storage medium for reducing flow errors, which are applied to the technical field of medical flushing pump equipment. The speed value and flow value are collected through the control system, and the corresponding first-order polynomial function and second-order polynomial function are fitted. After inverse calculation, the first-order polynomial function and second-order polynomial function with higher accuracy are screened out as fitting relationship formulas for application, thereby achieving the beneficial effects of reducing errors and improving work efficiency.

[0007] In a first aspect, the present application provides a method for reducing flow error, the method comprising the steps of:

[0008] S1: Collect and save the corresponding speed and flow values ​​of multiple groups of flushing pumps;

[0009] S2: fitting a plurality of first-order polynomial functions and a second-order polynomial function of the speed value with respect to the flow value according to a plurality of groups of corresponding speed values ​​and flow values;

[0010] S3: inputting the plurality of first-order polynomial functions and the second-order polynomial functions into the control system of the flushing pump respectively, and calculating a plurality of first error values ​​and second error values ​​within a preset time period;

[0011] S4: From the multiple first error values ​​and the second error values, select a third error value whose error is less than or equal to the preset allowable error value, and input the first-order polynomial function and the second-order polynomial function corresponding to the third error value as fitting expressions into the control system of the flushing pump for application to reduce the flow error.

[0012] The present application provides a method for reducing flow error. By collecting multiple groups of corresponding speed values ​​and flow values ​​of a flushing pump and saving them in the control system of the flushing pump, the control system can conveniently fit a function of the speed value with respect to the flow value according to the automatically saved speed value and flow value, wherein no manual timing is required, and the accuracy error caused by manual participation can be reduced; multiple first-order polynomial functions and second-order polynomial functions are respectively fitted according to the speed value and the flow value, and fitting multiple functions is conducive to the subsequent generation of a fitting relationship with better accuracy, thereby reducing the flow error of the flushing pump; multiple first-order polynomial functions and second-order polynomial functions are substituted into the control system of the flushing pump, and a first error value and a second error value between the result obtained by using the corresponding function and the actual result within a preset time period can be calculated, and then a third error value within a preset allowable range can be selected from the multiple first error values ​​and the second error values, and the first-order polynomial function and the second-order polynomial function corresponding to the third error value are input as fitting relationships into the control system of the flushing pump for application, so as to achieve the purpose of reducing the flow error, and in the above process, there is less manual participation, which is conducive to improving work efficiency.

[0013] Furthermore, after step S4, the following steps are further included:

[0014] S5: selecting one or more groups of the speed values ​​and the flow values ​​corresponding to the plurality of the first error values ​​and the second error values, whose errors are greater than the preset allowable error value, and collecting and merging one or more groups of the speed values ​​and the flow values ​​having a continuous numerical interval range of the speed values, to re-form one or more groups of corresponding speed values ​​and flow values;

[0015] S6: Based on the re-formed one or more groups of corresponding rotational speed values ​​and flow values, loop steps S2 to S4 until the error values ​​of the correspondingly generated one or more first-order polynomial functions and the second-order polynomial functions are all less than or equal to the preset allowable error value.

[0016] The present application provides a method for reducing flow errors, which comprises the following steps: screening out one or more groups of rotational speed values ​​and flow values ​​corresponding to a preset allowable error value from a first error value and a second error value, re-forming one or more groups of corresponding rotational speed values ​​and flow values, and inputting the re-generated rotational speed values ​​and flow values ​​into a control system of a flushing pump, looping steps S2 to S4, fitting corresponding first-order polynomial functions and second-order polynomial functions, further screening functions with smaller errors and adding them to the fitting relationship, until the error values ​​of the correspondingly generated one or more first-order polynomial functions and second-order polynomial functions are all less than or equal to the preset allowable error value, so as to achieve the purpose of reducing the flow error.

[0017] Further, step S6 includes:

[0018] S61: collecting a plurality of corresponding detailed rotation speed values ​​and detailed flow rate values ​​according to the numerical interval range, wherein the detailed rotation speed values ​​are within the numerical interval range;

[0019] S62: Based on the re-formed one or more groups of corresponding speed values ​​and flow values, and the corresponding detailed speed values ​​and detailed flow values, steps S2 to S4 are repeated until the error values ​​of the correspondingly generated one or more first-order polynomial functions and the second-order polynomial functions are less than or equal to the preset allowable error value.

[0020] The present application provides a method for reducing flow errors. According to a numerical range, an operator can input multiple speed values ​​within the numerical range for collection by the control system of the flushing pump, thereby generating a first-order polynomial function and a second-order polynomial function with higher fitting accuracy, thereby improving the accuracy of data collection within the numerical range and reducing flow errors.

[0021] Further, step S3 includes:

[0022] S31: inputting the plurality of first-order polynomial functions and the second-order polynomial functions into the control system of the flushing pump respectively, and collecting a plurality of groups of corresponding result speed values ​​and result flow values ​​within the preset time period;

[0023] S32: Substituting the plurality of result flow values ​​into the first-order polynomial function and the second-order polynomial function, respectively, and calculating and obtaining corresponding plurality of first theoretical speed values ​​and second theoretical speed values;

[0024] S33: Calculate the errors between the first theoretical speed values, the second theoretical speed values ​​and the corresponding result speed values ​​to obtain the first error values ​​and the second error values.

[0025] The present application provides a method for reducing flow error, by respectively substituting a first-order polynomial function and a second-order polynomial function into a flushing pump control system, collecting multiple groups of corresponding result speed values ​​and result flow values ​​within a preset time period, and then substituting the result flow values ​​into the first-order polynomial function and the second-order polynomial function, respectively, the first theoretical speed value and the second theoretical speed value can be inversely calculated, the error between the first theoretical speed value and the result speed value is the first error value, and the error between the second theoretical speed value and the result speed value is the second error value. Through inverse calculation and verification, it is helpful to subsequently screen out a function formula with higher fitting accuracy as a fitting relationship formula application.

[0026] Further, step S4 includes:

[0027] S41: selecting a third error value whose error is less than or equal to a preset allowable error value from the plurality of the first error values ​​and the second error values, and performing segmented processing on the speed value corresponding to the third error value, so that each segment of the speed value corresponds to only one of the first-order polynomial function or the second-order polynomial function;

[0028] S42: According to each interval segment of the segmented rotational speed value, the first-order polynomial function or the second-order polynomial function corresponding to each interval segment is output, and it is input into the control system of the flushing pump as a fitting relationship for application to reduce the flow error.

[0029] Further, step S41 includes:

[0030] S411: Selecting, from among the plurality of the first error values ​​and the second error values, the first error value or the second error value with a smaller error value under the same group of the rotation speed value and the flow rate value as a preliminary screening error value;

[0031] S412: Select a third error value whose error is less than or equal to a preset allowable error value from the preliminary screening error values, and segment the speed value corresponding to the third error value so that each segment of the speed value corresponds to only one of the first-order polynomial function or the second-order polynomial function.

[0032] Furthermore, the step S411 includes:

[0033] S4111: when the first error value and the second error value are equal under the same group of the rotation speed value and the flow rate value, comparing adjacent first error values ​​or adjacent second error values ​​under an adjacent group of the rotation speed value and the flow rate value;

[0034] S4112: When the adjacent first error value is smaller, select the first error value as the preliminary screening error value; when the adjacent second error value is smaller, select the second error value as the preliminary screening error value.

[0035] In a second aspect, the present application provides a device for reducing flow error, the device comprising:

[0036] Data acquisition module: collects and saves the corresponding speed and flow values ​​of multiple groups of flushing pumps;

[0037] A data fitting module: fitting a plurality of first-order polynomial functions and a second-order polynomial function of the speed value with respect to the flow value according to a plurality of groups of corresponding speed values ​​and flow values;

[0038] A data calculation module: inputting the plurality of first-order polynomial functions and the second-order polynomial functions into the control system of the flushing pump respectively, and calculating a plurality of first error values ​​and second error values ​​within a preset time period;

[0039] Data output module: From the multiple first error values ​​and the second error values, select a third error value whose error is less than or equal to a preset allowable error value, and input the first-order polynomial function and the second-order polynomial function corresponding to the third error value as fitting relationships into the control system of the flushing pump for application to reduce the flow error.

[0040] In a third aspect, the present application provides an electronic device, including a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in any of the above methods are executed.

[0041] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in any of the above methods are executed.

[0042] Beneficial effects: The present application proposes a method, device, electronic device and storage medium for reducing flow error. By collecting multiple groups of corresponding speed values ​​and flow values ​​of the flushing pump and saving them in the control system of the flushing pump, the control system can conveniently fit a function of the speed value with respect to the flow value according to the automatically saved speed value and flow value, wherein no manual timing is required, and the accuracy error caused by manual participation can be reduced; multiple first-order polynomial functions and second-order polynomial functions are respectively fitted according to the speed value and the flow value, and fitting multiple functions is conducive to the subsequent generation of a fitting relationship with better accuracy, thereby reducing the flow error of the flushing pump; multiple first-order polynomial functions and second-order polynomial functions are substituted into the control system of the flushing pump, and a first error value and a second error value between the result obtained by using the corresponding function and the actual result within a preset time period can be calculated, and then a third error value within a preset allowable range can be selected from the multiple first error values ​​and the second error values, and the first-order polynomial function and the second-order polynomial function corresponding to the third error value are input as fitting relationships into the control system of the flushing pump for application, so as to achieve the purpose of reducing the flow error, and in the above process, there is less manual participation, which is conducive to improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 This is a flow chart of a method for reducing flow error proposed in this application.

[0044] Figure 2 This is a structural diagram of a device for reducing flow error proposed in this application.

[0045] Figure 3 This is a structural diagram of an electronic device proposed in this application.

[0046] Description of reference numerals: 201, data acquisition module; 202, data fitting module; 203, data calculation module; 204, data output module; 301, processor; 302, memory; 303, communication bus; 3, electronic device. DETAILED DESCRIPTION

[0047] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application usually described and marked in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0048] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first, second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0049] The following disclosure provides many different implementations or examples to achieve the purpose of the present invention, which solves the problem that the existing tissue resection surgery power system flushing pump usually collects the speed value and flow value by manual timing, and then imports them into the external fitting software to generate the fitting relationship, resulting in low data accuracy and poor work efficiency. Specifically, the present application proposes a method, device, electronic device and storage medium for reducing the flow error, as follows:

[0050] Please refer to Figure 1 In a first aspect, the present application provides a method for reducing flow error, the method comprising the steps of:

[0051] S1: Collect the speed values ​​and flow values ​​corresponding to multiple groups of flushing pumps and save them;

[0052] S2: fitting multiple first-order polynomial functions and second-order polynomial functions of the speed value with respect to the flow value according to multiple groups of corresponding speed values ​​and flow values;

[0053] S3: inputting a plurality of first-order polynomial functions and a second-order polynomial function into a control system of the flushing pump respectively, and calculating a plurality of first error values ​​and second error values ​​within a preset time period;

[0054] S4: From multiple first error values ​​and second error values, select a third error value whose error is less than or equal to a preset allowable error value, and input the first-order polynomial function and the second-order polynomial function corresponding to the third error value as fitting relationships into the control system of the flushing pump to reduce the flow error.

[0055] Wherein, in step S1, the flushing pump is a flushing pump of the tissue resection surgery power system, and its main function is to introduce the flushing fluid into the water conduit to flush the surgical site of the patient. Therefore, the flow value of the flushing pump to introduce the flushing fluid is very important. Multiple groups of corresponding speed values ​​of the flushing pump are manually input and collected by the control system of the flushing pump. Specifically, the flushing pump can manually input different speed values ​​through the interactive interface of the control system of the flushing pump. After the flushing pump runs for a period of time at the input speed value, it automatically outputs the flow value of the flushing pump to introduce the flushing fluid, and the flow value is manually recorded and input into the storage module. Wherein, the flushing pump runs for a period of time automatically by the control system. After the control system automatically outputs the flow value of the flushing pump, the manual can choose to continue to input the speed value in the interactive interface of the control system, or choose to end the input and jump to the next step. Usually, in order to make the fitted function more accurate, it is necessary to input multiple speed values, obtain multiple corresponding flow values, and then choose to end the input, which can improve the accuracy of the fitted first-order polynomial function and second-order polynomial function. After collecting multiple groups of corresponding speed values ​​and flow values, the control system can save them in the storage module. Each set of speed value and flow value includes multiple corresponding speed values ​​and flow values. After manually inputting multiple speed values ​​and obtaining corresponding flow values, selecting "End Input" indicates that a set of corresponding speed value and flow value has been collected. Repeating this operation can obtain multiple sets of speed value and flow value.

[0056] Among them, in step S2, the control system can fit the first-order polynomial function and the second-order polynomial function of the speed value with respect to the flow value according to the collected multiple sets of speed values ​​and flow values. Specifically, the fitting function of the speed value with respect to the flow value is based on the principle of the least squares method, wherein the principle is a prior art and will not be repeated here. The first-order polynomial function and the second-order polynomial function finally generated by fitting are: y=k*x+b; y=a*x²+b*x+c; wherein y represents the speed value; x represents the flow value; a, b, c, k are all constant coefficients.

[0057] Wherein, in step S3, a plurality of first-order polynomial functions and second-order polynomial functions are respectively input into the control system of the flushing pump, and a plurality of first error values ​​and second error values ​​within a preset time period are calculated, wherein the preset time period can be manually set in advance, and specifically represents the operation time of the flushing pump; in a specific application, the first error value refers to the error between the first theoretical speed value calculated by the first-order polynomial function after the control system substitutes the result flow value into the first-order polynomial function after the specific result speed value and result flow value are collected, and the result speed value actually collected by the control system; similarly, the second error value refers to the error between the second theoretical speed value calculated by the second-order polynomial function after the control system substitutes the result flow value into the second-order polynomial function, and the result speed value actually collected by the control system. Wherein, the result flow value and the result speed value are the same set of corresponding data, which are respectively substituted into the first-order polynomial function and the second-order polynomial function for back calculation. Therefore, step S3 includes:

[0058] S31: inputting a plurality of first-order polynomial functions and a plurality of second-order polynomial functions into a control system of a flushing pump, respectively, and collecting a plurality of groups of corresponding result speed values ​​and result flow values ​​within a preset time period;

[0059] S32: Substituting the multiple result flow values ​​into the first-order polynomial function and the second-order polynomial function respectively, and calculating and obtaining the corresponding multiple first theoretical speed values ​​and second theoretical speed values ​​respectively;

[0060] S33: Calculate the errors between the plurality of first theoretical rotational speed values, the second theoretical rotational speed values ​​and the corresponding result rotational speed values ​​to obtain a plurality of first error values ​​and second error values.

[0061] Among them, in practical applications, the result flow values ​​are respectively input into the first-order polynomial function and the second-order polynomial function for back calculation, and the theoretical first theoretical speed value and the second theoretical speed value can be obtained, wherein there are differences between the first theoretical speed value and the second theoretical speed value and the actual input result speed value, namely the first error value and the second error value, and the smaller the error value, the higher the accuracy of the fitting function.

[0062] Among them, in step S4, in order to obtain a more accurate fitting relationship, a third error value whose error is less than or equal to the preset allowable error value can be selected from the first error value and the second error value, wherein the preset allowable error value is set in advance by the operator according to the actual clinical needs, and the third error value is the data that is less than or equal to the preset allowable error value among all the first error values ​​and the second error values. The same group of speed values ​​and flow values ​​correspond to a first-order polynomial function and a second-order polynomial function, and multiple groups of different speed values ​​and flow values ​​correspond to multiple first-order polynomial functions and multiple second-order polynomial functions. The first-order polynomial function and the second-order polynomial function corresponding to the third error value are selected, wherein the third error value with the same value may correspond to different first-order polynomial functions or different second-order polynomial functions. At this time, they can be distinguished by combining the speed value and flow value corresponding to the third error value. Specifically, if the third error value of a first-order polynomial function with a speed value of A1 and a flow value of a1 is 1%; the third error value of another second-order polynomial function with a speed value of A2 and a flow value of a2 is also 1%, then when the speed value is A1, the corresponding first-order polynomial function is used as the fitting relationship, and when the speed value is A2, the corresponding second-order polynomial function is used as the fitting relationship. Therefore, the function corresponding to the third error value is input as a fitting relationship into the control system of the flushing pump for application, which is conducive to reducing the flow error. Among them, the actual fitting relationship can have multiple sections. In the range of speed values ​​corresponding to each section of the fitting relationship, the operator can select any speed value within the range to calculate the flow value through the fitting relationship, and verify the accuracy of the fitting relationship by comparing it with the actual flow value obtained.

[0063] Thus, step S4 includes:

[0064] S41: selecting a third error value whose error is less than or equal to a preset allowable error value from the plurality of first error values ​​and the second error values, and performing segmented processing on the speed value corresponding to the third error value, so that each segment of the speed value corresponds to only one first-order polynomial function or a second-order polynomial function;

[0065] S42: According to each interval segment of the segmented speed value, a first-order polynomial function or a second-order polynomial function corresponding to each interval segment is output, and it is input as a fitting relationship into the control system of the flushing pump for application to reduce the flow error.

[0066] Wherein, in actual application, each third error value corresponds to one or more groups of speed values ​​and flow values, and the speed values ​​corresponding to the third error values ​​are segmented, that is, multiple groups of speed values ​​and flow values ​​are segmented. The specific segmentation implementation example is: when the speed value is a group, the first-order polynomial function or second-order polynomial function corresponding to the group of speed values ​​can be directly used as a segment; when the speed value is multiple groups, for example: A1, B1, C1, D1, E1, F1; the corresponding flow values ​​are: a1, b1, c1, d1, c1, f1. Wherein each group of speed values ​​and flow values ​​includes multiple corresponding speed values ​​and flow values, such as speed value A1 and flow value a1, which actually indicate arrays of multiple speed values ​​and multiple flow values ​​respectively. Among them, when the speed value is A1, B1, and C1, the corresponding selected fitting functions are all first-order polynomial functions, when the speed value is D1 and E1, the corresponding selected fitting functions are all second-order polynomial functions, and when the flow value is F1, the corresponding selected fitting function is a first-order polynomial function. This group of data can be divided into three sections, the data group with speed values ​​A1, B1, and C1 is one section, the data group with speed values ​​D1 and E1 is one section, and the data group with speed value F1 is the third section. Therefore, the fitting relationship finally output has three sections of fitting functions.

[0067] Among them, in the above scheme, there will be a situation where the first error value and the second error value corresponding to the same set of speed value and flow value are both selected as the third error value. For example, the first error value corresponding to the speed value C1 and the flow value c1 is 0.9%, and the second error value is 1%, and the preset allowable error value is 1.3%. The first error value and the second error value can both be used as the third error value. At this time, there is a problem that the same set of speed value and flow value corresponds to two fitting functions. In order to solve this problem, the size of the first error value and the second error value can be compared in advance, and the first error value or the second error value with a smaller value can be selected as the preliminary screening error value, and then the data less than or equal to the preset allowable error value can be selected from the preliminary screening error value as the third error value. In this embodiment, the first error value of 0.9% is selected as the preliminary screening error value, so that a set of speed value and flow value corresponds to a first-order polynomial function or a second-order polynomial function.

[0068] Specifically, step S41 includes:

[0069] S411: Selecting, from among the plurality of first error values ​​and second error values, a first error value or a second error value with a smaller error value under the same set of rotation speed value and flow rate value as a preliminary screening error value;

[0070] S412: Select a third error value whose error is less than or equal to a preset allowable error value from the preliminary screening error values, and perform segmented processing on the speed value corresponding to the third error value so that each speed value segment corresponds to only one first-order polynomial function or a second-order polynomial function.

[0071] Among them, in the above scheme, there is still a problem, that is, when the error values ​​of the first-order polynomial function and the second-order polynomial function corresponding to the same set of speed values ​​and flow values ​​are equal, and both are the third error values, how to select the first-order polynomial function or the second-order polynomial function as the fitting relationship. Specifically, it can be determined according to the fitting function selected for an adjacent set of speed values ​​and flow values. Specifically, it can be determined whether it is adjacent according to the numerical range of each set of speed values. For example, in two sets of data with speed values ​​A1 and speed values ​​B1, when the numerical ranges of the two sets of speed values ​​have an intersection, it can be determined that the two sets of data corresponding to the speed values ​​A1 and the speed values ​​B1 are two adjacent sets of data. Specifically, when the first error value and the second error value corresponding to a group of data of speed value B1 and flow value b1 are both selected as the third error value and are both 1.1%, a first-order polynomial function is selected corresponding to an adjacent group of speed value A1 and flow value a1, and a group of data of speed value B1 and flow value b1 also selects a first-order polynomial function as the fitting relationship, thereby reducing the output fitting relationship. In actual applications, when the control system collects the speed value within the numerical range of speed value A1 and speed value B1, the first-order polynomial function can be directly applied to improve the working efficiency of the control system.

[0072] Therefore, step S411 includes:

[0073] S4111: when the first error value and the second error value are equal under the same set of rotation speed values ​​and flow rate values, comparing adjacent first error values ​​or adjacent second error values ​​under an adjacent set of rotation speed values ​​and flow rate values;

[0074] S4112: When the adjacent first error value is smaller, select the first error value as the preliminary screening error value; when the adjacent second error value is smaller, select the second error value as the preliminary screening error value.

[0075] The adjacent first error values ​​and the adjacent second error values ​​refer respectively to the first error value of the first-order polynomial function and the second error value of the second-order polynomial function corresponding to a group of speed values ​​and flow values ​​adjacent to the speed value.

[0076] Furthermore, after step S3, the following steps are further included:

[0077] S5: selecting one or more groups of speed values ​​and flow values ​​corresponding to the errors greater than the preset allowable error value from the plurality of first error values ​​and second error values, and collecting and merging one or more groups of speed values ​​and flow values ​​with continuous numerical intervals of the speed values, to re-form one or more groups of corresponding speed values ​​and flow values;

[0078] S6: Based on the re-formed one or more groups of corresponding rotational speed values ​​and flow values, loop steps S2 to S4 until the error values ​​of the correspondingly generated one or more first-order polynomial functions and the second-order polynomial functions are all less than or equal to the preset allowable error value.

[0079] Among them, in actual applications, each first error value and second error value corresponds to a set of speed values ​​and flow values, and the speed values ​​and flow values ​​corresponding to the first error value and the second error value that are greater than the preset allowable error value are screened out, and the data group with errors in the continuous value range can be determined according to the numerical range of each group of speed values. For example, in the three groups of speed values ​​M1, N1, and O1, M1, N1, and O1 are all arrays, containing multiple speed values. Among them, the speed value M1 and the speed value N1 have an intersection, and the speed value O1 does not have an intersection with the speed value M1 and the speed value N1, then it can be determined that the numerical range of the speed value M1 and the speed value N1 is continuous, so the speed value M1 and the speed value N1 arrays can be merged, and the corresponding flow value can be determined according to the corresponding relationship and saved to the storage module. The control system will extract data from the above data to re-form one or more groups of corresponding speed values ​​and flow values, and repeat the cycle of steps S2 to S4. At this time, due to the change in sample parameters, that is, the number of speed values ​​involved in the calculation changes, when generating the fitting function based on the least squares principle, completely different first-order polynomial functions and second-order polynomial functions will be generated. Among them, the control system is still manually selected during the data extraction process, and the control system extracts data randomly. Therefore, it will cause the number of speed values ​​involved in the calculation and the least squares coefficients in the calculation process to change. By looping the above steps, the first-order polynomial function or second-order polynomial function corresponding to each group of speed values ​​and flow values ​​can be screened out during the loop, and then the screened fitting function is added to the fitting relationship to reduce the flow error.

[0080] Among them, if the selected error is greater than the preset allowable error value and only corresponds to one set of speed values ​​and flow values, or the first numerical interval range of the corresponding speed values ​​is discontinuous for multiple sets of flow values ​​and speed values, the first interval range of the speed value of each set of data can be obtained. When the control system collects data, multiple speed values ​​within the first numerical interval range corresponding to each set of data are manually input, and the corresponding flow values ​​are obtained, and the data samples involved in generating the first-order polynomial function and the second-order polynomial function are increased to make the fitting result more accurate. Among them, the first numerical interval range corresponding to each set of speed values ​​is composed of the minimum value and the maximum value of the set of multiple speed values, and any value between the minimum value and the maximum value is within the first numerical interval range.

[0081] Thus, step S6 comprises:

[0082] S61: collecting a plurality of corresponding detailed rotation speed values ​​and detailed flow rate values ​​according to the numerical interval range, wherein the detailed rotation speed value is within the numerical interval range;

[0083] S62: Based on the re-formed one or more groups of corresponding speed values ​​and flow values, and the corresponding detailed speed values ​​and detailed flow values, steps S2 to S4 are repeated until the error values ​​of the correspondingly generated one or more first-order polynomial functions and the second-order polynomial functions are less than or equal to the preset allowable error value.

[0084] Among them, in actual applications, directly re-inputting one or more groups of speed values ​​and flow values ​​corresponding to errors greater than the preset allowable error value into the control system for fitting may result in insufficient accuracy of the generated first-order polynomial function and second-order polynomial function due to insufficient data samples. In order to solve this problem, based on a continuous numerical interval range, that is, a numerical interval range consisting of a minimum speed value and a maximum speed value among the numerical values ​​corresponding to multiple groups of continuous speed values, in the process of inputting the corresponding speed value into the control system, multiple detailed speed values ​​and corresponding detailed flow values ​​within the numerical interval range can be collected, and the control system collects and adds the multiple detailed speed values ​​and detailed flow values ​​to the data stored in the storage module, and fits them together, so that the fitting result is more accurate, and a first-order polynomial function and a second-order polynomial function that can be used as a fitting relationship are obtained, thereby reducing the flow error.

[0085] As can be seen from the above, the present application provides a method for reducing flow error. By collecting multiple groups of corresponding speed values ​​and flow values ​​of the flushing pump and saving them in the control system of the flushing pump, the control system can conveniently fit a function of the speed value with respect to the flow value according to the automatically saved speed value and flow value, wherein no manual timing is required, and the accuracy error caused by manual participation can be reduced; multiple first-order polynomial functions and second-order polynomial functions are respectively fitted according to the speed value and the flow value, and fitting multiple functions is conducive to the subsequent generation of a fitting relationship with better accuracy, thereby reducing the flow error of the flushing pump; multiple first-order polynomial functions and second-order polynomial functions are substituted into the control system of the flushing pump, and a first error value and a second error value between the result obtained by using the corresponding function and the actual result within a preset time period can be calculated, and then a third error value within a preset allowable range is selected from the multiple first error values ​​and the second error values, and the first-order polynomial function and the second-order polynomial function corresponding to the third error value are input as fitting relationships into the control system of the flushing pump for application, so as to achieve the purpose of reducing the flow error, and in the above process, there is less manual participation, which is conducive to improving work efficiency.

[0086] In a second aspect, the present application provides a device for reducing flow error, the device comprising:

[0087] Data acquisition module 201: collects and saves the corresponding speed values ​​and flow values ​​of multiple groups of flushing pumps;

[0088] Data fitting module 202: fitting a plurality of first-order polynomial functions and a second-order polynomial function of the speed value with respect to the flow value according to a plurality of sets of corresponding speed values ​​and flow values;

[0089] Data calculation module 203: inputting a plurality of first-order polynomial functions and a second-order polynomial function into the control system of the flushing pump respectively, and calculating a plurality of first error values ​​and a second error value within a preset time period;

[0090] Data output module 204: Select a third error value whose error is less than or equal to a preset allowable error value from a plurality of first error values ​​and second error values, and input a first-order polynomial function and a second-order polynomial function corresponding to the third error value as fitting relationships into the control system of the flushing pump to reduce the flow error.

[0091] Among them, in actual application, the data acquisition module 201 is a computer program running in the flushing pump control system. Through an interface that interacts with the operator, it collects the speed value input by the operator, and then obtains the flow value after the flushing pump has been running for a period of time through a monitoring device; the data fitting module 202 is a computer program running in the control system of the flushing pump. By receiving the speed value and flow value collected by the data acquisition module 201, the speed value and the flow value are subjected to mathematical operations based on the least squares method, and a first-order polynomial function and a second-order polynomial function of the speed value with respect to the flow value are fitted; the data calculation module 203 is a calculation program in the control system of the flushing pump, which is used to input any flow value, inversely calculate the error between the first-order polynomial function and the second-order polynomial function, and obtain the first error value and the second error value accordingly; the data output module 204 is a calculation program in the control system of the flushing pump, which is used to screen out the third error value that meets the preset allowable error value, and input the first-order polynomial function and the second-order polynomial function corresponding to the third error value as fitting relationships into the application module for application, so as to reduce the flow error.

[0092] Among them, in actual application, the flushing pump is a flushing pump of the tissue resection surgery power system, and its main function is to introduce the flushing fluid into the water conduit to flush the patient's surgical site. Therefore, the flow value of the flushing pump to introduce the flushing fluid is very important. Multiple groups of corresponding speed values ​​and flow values ​​of the flushing pump are collected by the data acquisition module 201. Specifically, different speed values ​​can be manually input through the interactive interface of the flushing pump control system. After the flushing pump runs for a period of time at the input speed value, the flow value of the flushing pump to introduce the flushing fluid is automatically output, and the flow value is manually recorded and input into the storage module. The data acquisition module 201 collects the speed value and flow value. Among them, the running time of the flushing pump is automatically timed by the control system. After the control system automatically outputs the flow value of the flushing pump, the manual can choose to continue to input the speed value in the interactive interface of the control system, or choose to end the input and jump to the next step. Usually, in order to make the fitted function more accurate, it is necessary to input multiple speed values, obtain multiple corresponding flow values, and then choose to end the input, which can improve the accuracy of the fitted first-order polynomial function and second-order polynomial function. After collecting multiple sets of corresponding speed values ​​and flow values, the data collection module 201 can save them in the storage module. Each set of speed values ​​and flow values ​​includes multiple corresponding speed values ​​and flow values. After manually inputting multiple speed values ​​and obtaining corresponding flow values, selecting "end input" indicates that a set of corresponding speed values ​​and flow values ​​have been collected. Repeating this operation can obtain multiple sets of speed values ​​and flow values.

[0093] Among them, in actual applications, the data fitting module 202 can fit the first-order polynomial function and the second-order polynomial function of the speed value with respect to the flow value according to the collected multiple sets of speed values ​​and flow values. Specifically, the fitting function of the speed value with respect to the flow value is based on the principle of the least squares method, wherein the principle is a prior art and will not be repeated here. The first-order polynomial function and the second-order polynomial function finally generated by fitting are: y=k*x+b; y=a*x²+b*x+c; wherein y represents the speed value; x represents the flow value; a, b, c, k are all constant coefficients.

[0094] In practical applications, the data fitting module 202 inputs a plurality of first-order polynomial functions and a second-order polynomial function into the data calculation module 203, respectively, and calculates a plurality of first error values ​​and a second error value within a preset time period, wherein the preset time period can be manually set in advance, specifically indicating the time during which the flushing pump is operated; in specific applications, the first error value refers to the error between the first theoretical speed value inversely calculated by the first-order polynomial function after the control system substitutes the result flow value into the first-order polynomial function after manually inputting the specific result flow value, and the result flow value actually collected by the control system; similarly, the second error value refers to the error between the second theoretical speed value inversely calculated by the second-order polynomial function after the control system substitutes the result flow value into the second-order polynomial function, and the result flow value actually collected by the data acquisition module 201. The result flow value and the result speed value are the same set of corresponding data, which are respectively substituted into the first-order polynomial function and the second-order polynomial function for inverse calculation. That is, the result flow value is substituted into the first-order polynomial function and the second-order polynomial function for back calculation, and the theoretical first theoretical speed value and the second theoretical speed value can be obtained, wherein there are differences between the first theoretical speed value and the second theoretical speed value and the actual input result speed value, namely the first error value and the second error value. The smaller the error value, the higher the accuracy of the fitting function.

[0095] In actual applications, in order to obtain a more accurate fitting relationship, the data output module 204 can select a third error value whose error is less than or equal to a preset allowable error value from the first error value and the second error value, wherein the preset allowable error value is set in advance by the operator according to actual clinical needs, and the third error value is the data that is less than or equal to the preset allowable error value among all the first error values ​​and the second error values. The same set of speed values ​​and flow values ​​corresponds to a first-order polynomial function and a second-order polynomial function, and multiple sets of different speed values ​​and flow values ​​correspond to multiple first-order polynomial functions and multiple second-order polynomial functions. The first-order polynomial function and the second-order polynomial function corresponding to the third error value are selected, wherein the third error value with the same value may correspond to different first-order polynomial functions or different second-order polynomial functions. At this time, the speed value and the flow value corresponding to the third error value can be combined to distinguish them. For example, the third error value of a first-order polynomial function with a speed value of A1 and a flow value of a1 is 1%; the third error value of the second-order polynomial function with another speed value of A2 and a flow value of a2 is also 1%. When the speed value is A1, the corresponding first-order polynomial function is used as the fitting relationship, and when the speed value is A2, the corresponding second-order polynomial function is used as the fitting relationship. Therefore, the function corresponding to the third error value is input as a fitting relationship into the control system of the flushing pump for application, which is conducive to reducing the flow error. Among them, the actual fitting relationship can have multiple sections. In the range of speed values ​​corresponding to each fitting relationship, the operator can select any speed value within the range to calculate the flow value through the fitting relationship, and verify the accuracy of the fitting relationship by comparing it with the actually obtained flow value.

[0096] Wherein, in actual application, each third error value corresponds to one or more groups of speed values ​​and flow values, and the speed values ​​corresponding to the third error values ​​are segmented, that is, multiple groups of speed values ​​and flow values ​​are segmented. The specific segmentation implementation example is: when the speed value is a group, the first-order polynomial function or second-order polynomial function corresponding to the group of speed values ​​can be directly used as a segment; when the speed value is multiple groups, for example: A1, B1, C1, D1, E1, F1; the corresponding flow values ​​are: a1, b1, c1, d1, c1, f1. Wherein each group of speed values ​​and flow values ​​includes multiple corresponding speed values ​​and flow values, such as speed value A1 and flow value a1, which actually indicate arrays of multiple speed values ​​and multiple flow values ​​respectively. Among them, when the speed value is A1, B1, and C1, the corresponding selected fitting functions are all first-order polynomial functions, when the speed value is D1 and E1, the corresponding selected fitting functions are all second-order polynomial functions, and when the flow value is F1, the corresponding selected fitting function is a first-order polynomial function. This group of data can be divided into three sections, the data group with speed values ​​A1, B1, and C1 is one section, the data group with speed values ​​D1 and E1 is one section, and the data group with speed value F1 is the third section. Therefore, the fitting relationship finally output has three sections of fitting functions.

[0097] Among them, in actual applications, there will be a situation where the first error value and the second error value corresponding to the same set of speed values ​​and flow values ​​are both selected as the third error value. For example, the first error value corresponding to the speed value C1 and the flow value c1 is 0.9%, and the second error value is 1%, while the preset allowable error value is 1.3%. Both the first error value and the second error value can be used as the third error value. At this time, there is a problem that the same set of speed values ​​and flow values ​​correspond to two fitting functions. In order to solve this problem, the first error value and the second error value can be compared in advance, and the first error value or the second error value with a smaller value can be selected as the preliminary screening error value, and then the data less than or equal to the preset allowable error value can be selected from the preliminary screening error values ​​as the third error value. In this embodiment, the first error value of 0.9% is selected as the preliminary screening error value, so that a set of speed values ​​and flow values ​​corresponds to a first-order polynomial function or a second-order polynomial function.

[0098] Among them, in practical applications, there is still a problem in the above scheme, that is, when the error values ​​of the first-order polynomial function and the second-order polynomial function corresponding to the same set of speed values ​​and flow values ​​are equal, and both are the third error values, how to select the first-order polynomial function or the second-order polynomial function as the fitting relationship. Specifically, it can be determined according to the fitting function selected for an adjacent set of speed values ​​and flow values. Specifically, it can be determined whether it is adjacent according to the numerical range of each set of speed values. For example, in two sets of data with speed values ​​A1 and speed values ​​B1, when the numerical ranges of the two sets of speed values ​​have an intersection, it can be determined that the two sets of data corresponding to the speed values ​​A1 and the speed values ​​B1 are two adjacent sets of data. Specifically, when the first error value and the second error value corresponding to a group of data of speed value B1 and flow value b1 are both selected as the third error value and are both 1.1%, a first-order polynomial function is selected corresponding to an adjacent group of speed value A1 and flow value a1, and a group of data of speed value B1 and flow value b1 also selects a first-order polynomial function as the fitting relationship, thereby reducing the output fitting relationship. In actual use, when the control system collects the value of the manually input speed value within the numerical range of speed value A1 and speed value B1, the first-order polynomial function can be directly applied to improve the working efficiency of the control system.

[0099] Based on the same idea as the method in the above-mentioned embodiment, the device for reducing flow error provided by the present application can implement the method in the above-mentioned embodiment. For the convenience of explanation, the structural schematic diagram of the device embodiment only shows the parts related to the embodiment of the present application. Technicians in this field can understand that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0100] As can be seen from the above, the device for reducing flow error provided by the present application can collect multiple groups of corresponding speed values ​​and flow values ​​of the flushing pump and save them in the control system of the flushing pump, so that the control system can conveniently fit the function of the speed value about the flow value according to the automatically saved speed value and flow value, wherein no manual timing is required, and the accuracy error caused by manual participation can be reduced; multiple first-order polynomial functions and second-order polynomial functions are respectively fitted according to the speed value and the flow value, and fitting multiple functions is conducive to the subsequent generation of fitting relationships with better accuracy, thereby reducing the flow error of the flushing pump; multiple first-order polynomial functions and second-order polynomial functions are substituted into the control system of the flushing pump, and the first error value and the second error value between the result obtained by using the corresponding function and the actual result within a preset time period can be calculated, and then the third error value within the preset allowable range can be screened from the multiple first error values ​​and the second error values, and the first-order polynomial function and the second-order polynomial function corresponding to the third error value are input as fitting relationships into the control system of the flushing pump for application, so as to achieve the purpose of reducing the flow error, and in the above process, there is less manual participation, which is conducive to improving work efficiency.

[0101] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, the present application provides an electronic device 3, including: a processor 301 and a memory 302, the processor 301 and the memory 302 are interconnected and communicate with each other through a communication bus 303 and / or other forms of connection mechanisms (not marked), the memory 302 stores computer-readable instructions executable by the processor 301, when the electronic device is running, the processor 301 executes the computer-readable instructions to execute the method in any optional implementation of the above-mentioned embodiment to achieve the following functions: collecting multiple groups of corresponding speed values ​​and flow values ​​of the flushing pump and saving them; fitting multiple first-order polynomial functions and second-order polynomial functions of the speed value with respect to the flow value according to the multiple groups of corresponding speed values ​​and flow values; inputting the multiple first-order polynomial functions and the second-order polynomial functions into the control system of the flushing pump respectively, and calculating multiple first error values ​​and second error values ​​within a preset time period; selecting a third error value whose error is less than or equal to a preset allowable error value from the multiple first error values ​​and the second error values, and inputting the first-order polynomial function and the second-order polynomial function corresponding to the third error value as fitting relations into the control system of the flushing pump for application to reduce the flow error.

[0102] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method in any optional implementation of the above-mentioned embodiment is executed to achieve the following functions: collecting and saving multiple groups of corresponding speed values ​​and flow values ​​of a flushing pump; fitting multiple first-order polynomial functions and second-order polynomial functions of the speed value with respect to the flow value based on the multiple groups of corresponding speed values ​​and flow values; inputting the multiple first-order polynomial functions and second-order polynomial functions into the control system of the flushing pump respectively, and calculating multiple first error values ​​and second error values ​​within a preset time period; selecting a third error value whose error is less than or equal to a preset allowable error value from the multiple first error values ​​and the second error values, and inputting the first-order polynomial function and the second-order polynomial function corresponding to the third error value as fitting relationships into the control system of the flushing pump for application to reduce the flow error.

[0103] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0104] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0105] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0106] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0107] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for reducing flow error, characterized in that: The method comprises the steps of: S1: Collect and save the corresponding speed and flow values ​​of multiple groups of flushing pumps; S2: fitting a plurality of first-order polynomial functions and a second-order polynomial function of the speed value with respect to the flow value according to a plurality of groups of corresponding speed values ​​and flow values; S3: inputting the plurality of first-order polynomial functions and the second-order polynomial functions into the control system of the flushing pump respectively, and calculating a plurality of first error values ​​and second error values ​​within a preset time period; S4: selecting a third error value whose error is less than or equal to a preset allowable error value from the plurality of the first error values ​​and the second error values, and inputting the first-order polynomial function and the second-order polynomial function corresponding to the third error value as fitting equations into the control system of the flushing pump for application, so as to reduce the flow error; Step S3 includes: S31: inputting the plurality of first-order polynomial functions and the second-order polynomial functions into the control system of the flushing pump respectively, and collecting a plurality of groups of corresponding result speed values ​​and result flow values ​​within the preset time period; S32: Substituting the plurality of result flow values ​​into the first-order polynomial function and the second-order polynomial function, respectively, and calculating and obtaining corresponding plurality of first theoretical speed values ​​and second theoretical speed values; S33: Calculate the errors between a plurality of the first theoretical speed values, the second theoretical speed values ​​and the corresponding result speed values ​​to obtain a plurality of the first error values ​​and the second error values; Step S4 includes: S41: selecting a third error value whose error is less than or equal to a preset allowable error value from the plurality of the first error values ​​and the second error values, and performing segmented processing on the speed value corresponding to the third error value, so that each segment of the speed value corresponds to only one of the first-order polynomial function or the second-order polynomial function; S42: outputting the first-order polynomial function or the second-order polynomial function corresponding to each interval segment according to each interval segment of the speed value after segmentation, and inputting it into the control system of the flushing pump as a fitting relationship to reduce the flow error; After step S4, the following steps are also included: S5: selecting one or more groups of the speed values ​​and the flow values ​​corresponding to the plurality of the first error values ​​and the second error values, whose errors are greater than the preset allowable error value, and collecting and merging one or more groups of the speed values ​​and the flow values ​​having a continuous numerical interval range of the speed values, to re-form one or more groups of corresponding speed values ​​and flow values; S6: Based on the re-formed one or more groups of corresponding rotational speed values ​​and flow values, loop steps S2 to S4 until the error values ​​of the correspondingly generated one or more first-order polynomial functions and the second-order polynomial functions are all less than or equal to the preset allowable error value.

2. A method for reducing flow error according to claim 1, characterized in that: Step S6 includes: S61: collecting a plurality of corresponding detailed rotation speed values ​​and detailed flow rate values ​​according to the numerical interval range, wherein the detailed rotation speed values ​​are within the numerical interval range; S62: Based on the re-formed one or more groups of corresponding speed values ​​and flow values, and the corresponding detailed speed values ​​and detailed flow values, steps S2 to S4 are repeated until the error values ​​of the correspondingly generated one or more first-order polynomial functions and the second-order polynomial functions are less than or equal to the preset allowable error value.

3. A method for reducing flow error according to claim 1, characterized in that: Step S41 includes: S411: Selecting, from among the plurality of the first error values ​​and the second error values, the first error value or the second error value with a smaller error value under the same group of the rotation speed value and the flow rate value as a preliminary screening error value; S412: Select a third error value whose error is less than or equal to a preset allowable error value from the preliminary screening error values, and segment the speed value corresponding to the third error value so that each segment of the speed value corresponds to only one of the first-order polynomial function or the second-order polynomial function.

4. A method for reducing flow error according to claim 3, characterized in that: Step S411 includes: S4111: when the first error value and the second error value are equal under the same group of the rotation speed value and the flow rate value, comparing adjacent first error values ​​or adjacent second error values ​​under an adjacent group of the rotation speed value and the flow rate value; S4112: When the adjacent first error value is smaller, select the first error value as the preliminary screening error value; when the adjacent second error value is smaller, select the second error value as the preliminary screening error value.

5. A device for reducing flow error, characterized in that: The device is capable of executing the steps in any of the methods described in claims 1 to 4, and the device comprises: Data acquisition module: collects and saves the corresponding speed and flow values ​​of multiple groups of flushing pumps; A data fitting module: fitting a plurality of first-order polynomial functions and a second-order polynomial function of the speed value with respect to the flow value according to a plurality of groups of corresponding speed values ​​and flow values; A data calculation module: inputting the plurality of first-order polynomial functions and the second-order polynomial functions into the control system of the flushing pump respectively, and calculating a plurality of first error values ​​and second error values ​​within a preset time period; Data output module: From the multiple first error values ​​and the second error values, select a third error value whose error is less than or equal to a preset allowable error value, and input the first-order polynomial function and the second-order polynomial function corresponding to the third error value as fitting relationships into the control system of the flushing pump for application to reduce the flow error.

6. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 4 are executed.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are executed.