Method and device for determining liquid volume and electronic equipment
By determining and adjusting the measurement parameters of liquid volume in a wearable breast pump, combined with sensor technology, the problems of liquid volume measurement error and manpower consumption are solved, and higher measurement accuracy and resource efficiency are achieved.
Patent Information
- Application Number
- CN202310817505.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-05
- Publication Date
- 2025-01-07
AI Technical Summary
In the prior art, there is a large error in the automatic measurement of liquid volume in a wearable breast pump. Especially when the container is tilted or non-static, it is difficult to ensure the accuracy of the measurement. Manual measurement consumes human resources, which is suitable for human resources tightness. The scene is not good.
By determining the values of the first parameter, the second parameter and the third parameter, adjusting based on the errors of the previous and current measurements, the error is updated using the preset relationship and threshold value to improve the measurement accuracy of the liquid volume, and combining the TOF sensor and acceleration Measurement and correction are carried out by sensors and other technologies.
It improves the measurement accuracy of liquid volume, reduces manpower consumption, is suitable for scenarios with tight human resources, and reduces automatic measurement errors.
Smart Images

Figure CN119268784A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of wearable breast pumps, and in particular to a method, device and electronic device for determining liquid volume. Background Art
[0002] In the prior art, the volume of liquid can be determined in a variety of ways. For example, the liquid in a wearable breast pump can be measured manually using a container with a scale (such as a milk bottle). For another example, the volume of liquid can be automatically obtained using a TOF (Time of flight) sensor.
[0003] However, manual measurement is very labor-intensive and difficult to apply to scenarios with tight human resources. Therefore, the liquid volume can be measured automatically or by a combination of automatic and manual methods. However, automatic measurement using TOF sensors often results in large errors. For example, when the container is tilted or in a non-stationary state, the accuracy of the liquid volume determination will be affected.
[0004] It can be seen that how to improve the accuracy of liquid volume determination is a technical issue worthy of attention. Summary of the invention
[0005] In view of this, in order to solve some or all of the above-mentioned technical problems, the embodiments of the present application provide a method, device and electronic device for determining the volume of a liquid.
[0006] In a first aspect, an embodiment of the present application provides a method for determining liquid volume for a wearable breast pump, the method comprising:
[0007] Determine a first value of a first parameter, a second value of a second parameter, and a third value of a third parameter, wherein the first parameter represents the volume of the liquid in the target container determined this time using the first method, the second parameter represents the volume of the liquid in the target container determined last time using the first method, and the third parameter represents the actual volume of the liquid in the target container determined last time using the second method;
[0008] Determine a first error based on the second value and the third value, wherein the first error represents a target error for determining the volume of the liquid in the target container using the first manner;
[0009] The first error is used to adjust the first value to determine a target liquid volume, wherein the target liquid volume is the actual volume of the liquid in the target container determined at the time.
[0010] In a possible implementation manner, the first value is determined in the following manner:
[0011] Obtaining a fourth value of a fourth parameter, wherein the fourth parameter represents the volume of the liquid in the target container determined at the time by the third method, and the operation represented by the first method includes the operation represented by the third method;
[0012] The first value is determined based on the fourth value and a second error, wherein the second error represents a compensation parameter of the liquid in the target container.
[0013] In a possible implementation manner, the second error is determined in the following manner:
[0014] determining a third error based on a fifth value of the fifth parameter and a sixth value of the sixth parameter, wherein the fifth parameter represents the sum of the volumes of the liquid in the target container determined by the first method for the previous target number of times, the sixth parameter represents the sum of the volumes of the liquid in the target container determined by the second method for the previous target number of times, and the third error represents an error between the fifth value and the sixth value;
[0015] Based on the third error, the second error is determined.
[0016] In a possible implementation manner, the fifth value and the sixth value are updated in the following manner:
[0017] When a preset condition is met, updating the fifth value and the sixth value to 0;
[0018] The preset conditions include: the third error is less than a preset third threshold, and the product of the first difference and the second difference is less than 0;
[0019] The first difference is a difference between the volume of the liquid in the target container determined this time by using the first method and the volume of the liquid in the target container determined this time by using the second method;
[0020] The second difference is a difference between the volume of the liquid in the target container determined last time using the first method and the volume of the liquid in the target container determined last time using the second method.
[0021] In a possible implementation manner, the second error is updated in the following manner:
[0022] When the eighth value of the eighth parameter is greater than the preset fourth threshold, adding the third error to the second error to obtain an updated second error;
[0023] Wherein, when the fourth error is less than or equal to the preset second threshold, the eighth value is updated to 0; when the fourth error is greater than the preset second threshold, the eighth value is incremented by 1; the initial value of the eighth parameter is 0;
[0024] The fourth error represents an error between the first value and the target liquid volume.
[0025] In a possible implementation manner, the fourth value is determined in the following manner:
[0026] Acquire the height and tilt angle of the liquid in the target container determined at that time;
[0027] Based on a preset correspondence, the volume of the liquid corresponding to the height and the tilt angle is determined to obtain the fourth value, wherein the preset correspondence represents the correspondence between the height of the liquid in the target container, the tilt angle and the volume of the liquid.
[0028] In a possible implementation manner, when the fourth error is less than or equal to a preset second threshold, the second value and the third value are updated in the following manner:
[0029] Add the first value to the second value to obtain an updated second value;
[0030] The target liquid volume is added to the third value to obtain the updated third value.
[0031] In a possible implementation, determining the first value of the first parameter, the second value of the second parameter, and the third value of the third parameter includes:
[0032] determining a first value of a first parameter and a second value of a second parameter;
[0033] When the seventh value of the seventh parameter is greater than or equal to the preset first threshold, determining a third value of the third parameter;
[0034] The seventh parameter indicates the number of times that the fourth error is less than or equal to a preset second threshold, and the fourth error indicates the error between the first value and the target liquid volume.
[0035] In a second aspect, an embodiment of the present application provides a liquid volume determination device for a wearable breast pump, the device comprising:
[0036] a first determination unit, configured to determine a first value of a first parameter, a second value of a second parameter, and a third value of a third parameter, wherein the first parameter represents the volume of the liquid in the target container determined this time using the first method, the second parameter represents the volume of the liquid in the target container determined last time using the first method, and the third parameter represents the actual volume of the liquid in the target container determined last time using the second method;
[0037] a second determining unit, configured to determine a first error based on the second value and the third value, wherein the first error represents a target error for determining the volume of the liquid in the target container in the first manner;
[0038] An adjustment unit is used to adjust the first value using the first error to determine a target liquid volume, wherein the target liquid volume is an actual volume of the liquid in the target container determined at the time.
[0039] In a possible implementation manner, the first value is determined in the following manner:
[0040] Obtaining a fourth value of a fourth parameter, wherein the fourth parameter represents the volume of the liquid in the target container determined at the time by the third method, and the operation represented by the first method includes the operation represented by the third method;
[0041] The first value is determined based on the fourth value and a second error, wherein the second error represents a compensation parameter of the liquid in the target container.
[0042] In a possible implementation manner, the second error is determined in the following manner:
[0043] determining a third error based on a fifth value of the fifth parameter and a sixth value of the sixth parameter, wherein the fifth parameter represents the sum of the volumes of the liquid in the target container determined by the first method for the previous target number of times, the sixth parameter represents the sum of the volumes of the liquid in the target container determined by the second method for the previous target number of times, and the third error represents an error between the fifth value and the sixth value;
[0044] Based on the third error, the second error is determined.
[0045] In a possible implementation manner, the fifth value and the sixth value are updated in the following manner:
[0046] When a preset condition is met, updating the fifth value and the sixth value to 0;
[0047] The preset conditions include: the third error is less than a preset third threshold, and the product of the first difference and the second difference is less than 0;
[0048] The first difference is a difference between the volume of the liquid in the target container determined this time by using the first method and the volume of the liquid in the target container determined this time by using the second method;
[0049] The second difference is a difference between the volume of the liquid in the target container determined last time using the first method and the volume of the liquid in the target container determined last time using the second method.
[0050] In a possible implementation manner, the second error is updated in the following manner:
[0051] When the eighth value of the eighth parameter is greater than the preset fourth threshold, adding the third error to the second error to obtain an updated second error;
[0052] Wherein, when the fourth error is less than or equal to the preset second threshold, the eighth value is updated to 0; when the fourth error is greater than the preset second threshold, the eighth value is incremented by 1; the initial value of the eighth parameter is 0;
[0053] The fourth error represents an error between the first value and the target liquid volume.
[0054] In a possible implementation manner, the fourth value is determined in the following manner:
[0055] Acquire the height and tilt angle of the liquid in the target container determined at that time;
[0056] Based on a preset correspondence, the volume of the liquid corresponding to the height and the tilt angle is determined to obtain the fourth value, wherein the preset correspondence represents the correspondence between the height of the liquid in the target container, the tilt angle and the volume of the liquid.
[0057] In a possible implementation manner, when the fourth error is less than or equal to a preset second threshold, the second value and the third value are updated in the following manner:
[0058] Add the first value to the second value to obtain an updated second value;
[0059] The target liquid volume is added to the third value to obtain the updated third value.
[0060] In a possible implementation, determining the first value of the first parameter, the second value of the second parameter, and the third value of the third parameter includes:
[0061] determining a first value of a first parameter and a second value of a second parameter;
[0062] When the seventh value of the seventh parameter is greater than or equal to the preset first threshold, determining a third value of the third parameter;
[0063] The seventh parameter indicates the number of times that the fourth error is less than or equal to a preset second threshold, and the fourth error indicates the error between the first value and the target liquid volume.
[0064] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0065] Memory for storing computer programs;
[0066] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method of any embodiment of the method for determining the liquid volume of the first aspect of the present application is implemented.
[0067] In a fourth aspect, an embodiment of 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 method of any embodiment of the method for determining the volume of liquid as described in the first aspect above is implemented.
[0068] In a fifth aspect, an embodiment of the present application provides a computer program, which includes a computer readable code. When the computer readable code is executed on a device, the processor in the device implements a method as in any embodiment of the method for determining the volume of liquid in the first aspect described above.
[0069] The method for determining the volume of liquid provided in the embodiment of the present application can be used for a wearable breast pump, which determines a first value of a first parameter, a second value of a second parameter, and a third value of a third parameter, wherein the first parameter represents the volume of the liquid in the target container determined by the first method at the current time, the second parameter represents the volume of the liquid in the target container determined by the first method at the previous time, and the third parameter represents the actual volume of the liquid in the target container determined by the second method at the previous time, and then, based on the second value and the third value, determines a first error, wherein the first error represents the target error of the volume of the liquid in the target container determined by the first method, and then, using the first error, adjusts the first value to determine the target liquid volume, wherein the target liquid volume is the actual volume of the liquid in the target container determined at the current time. Thus, the error of the volume of the liquid in the target container determined by the first method and the second method at the previous time can be obtained, and then the error is used to adjust the volume of the liquid in the target container determined by the first method at the current time to determine the actual volume of the liquid in the target container, thereby improving the accuracy of determining the volume of the liquid. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0071] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0072] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0073] Figure 1 A schematic flow chart of a method for determining a liquid volume provided in an embodiment of the present application;
[0074] Figure 2 A schematic flow chart of another method for determining the volume of a liquid provided in an embodiment of the present application;
[0075] Figure 3AA schematic flow chart of another method for determining liquid volume provided in an embodiment of the present application;
[0076] Figure 3B A schematic flow chart of another method for determining liquid volume provided in an embodiment of the present application;
[0077] Figure 3C A schematic diagram of an interface interaction of a method for determining liquid volume provided in an embodiment of the present application;
[0078] Figure 4 A schematic diagram of the structure of a device for determining the volume of a liquid provided in an embodiment of the present application;
[0079] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0080] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be noted that unless otherwise specifically stated, the relative arrangement of the components and steps, the numerical expressions and the numerical values described in these embodiments do not limit the scope of the present application.
[0081] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0082] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0083] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0084] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0085] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0086] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0087] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, methods, and equipment should be considered as part of the specification.
[0088] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0089] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0090] Figure 1 A flow chart of a method for determining the volume of a liquid provided in an embodiment of the present application. The method can be applied to one or more electronic devices such as a smart phone, a laptop computer, a desktop computer, a portable computer, a server, etc. In addition, the execution subject of the method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute the method, or a plurality of electronic devices can cooperate with each other to execute the method. When the above-mentioned execution subject is software, the method can be implemented as a plurality of software or software modules, or as a single software or software module. No specific limitation is made herein.
[0091] like Figure 1 As shown, the method specifically includes:
[0092] Step 101, determine a first value of a first parameter, a second value of a second parameter, and a third value of a third parameter, wherein the first parameter represents the volume of liquid in a target container currently determined using a first method, the second parameter represents the volume of liquid in the target container previously determined using the first method, and the third parameter represents the actual volume of liquid in the target container previously determined using the second method.
[0093] In this embodiment, the first value may be a parameter value of the first parameter, the second value may be a parameter value of the second parameter, and the third value may be a parameter value of the third parameter.
[0094] The first method mentioned above may be any one or more methods for determining the volume of a liquid.
[0095] As an example, the first method may be a method in which the target container measures the volume of the liquid therein by itself. For example, one or more sensors may be provided in the target container, and the volume of the liquid in the target container may be measured by the sensors. The sensors may include at least one of the following: a TOF sensor, an acceleration sensor, a weighing sensor, and the like.
[0096] As another example, the first method may also include the following two operations: first, the target container measures the volume of the liquid therein by itself to obtain first measurement data; and second, the first measurement data is corrected.
[0097] The second method can be any one or more methods different from the first method and used to determine the volume of the liquid. In some cases, the accuracy of the volume of the liquid in the target container determined by the second method is higher than the accuracy of the volume of the liquid in the target container determined by the first method.
[0098] As an example, the second method mentioned above may be a method of manual input by the user.
[0099] The above-mentioned time can be understood as the most recent time.
[0100] The above-mentioned previous time can be understood as any one or more times before the most recent time (excluding the most recent time).
[0101] The liquid in each target container corresponding to the second parameter is in the same state as the liquid in each target container corresponding to the third parameter. The same state may indicate that the liquid in the target container has not been increased, decreased or replaced. For example, when the target container contains liquid A, the first method and the second method may be used to determine the second value of the second parameter and the third value of the third parameter, respectively. Thereafter, the liquid in the target container may be increased, decreased or replaced, and then, when the target container contains liquid B, the first method and the second method may be used to determine the second value of the second parameter and the third value of the third parameter, respectively. Thus, the volume of the liquid in the target container determined the first two times is obtained. Then, the liquid in the target container may be increased, decreased or replaced again, and then, when the target container contains liquid C, the first method may be used to determine the first value of the first parameter. Thus, the volume of the liquid in the target container determined the first time using the first method is obtained.
[0102] Here, as the number of determinations increases, the first value of the first parameter will be continuously updated to obtain an updated first value. The first value x before the update can be used to determine the second value. For example, the second value can be directly updated to x, or the second value can be increased by x to obtain an updated second value.
[0103] The target container may be any container for containing liquids. As an example, the target container may be a breast pump, a cup, etc.
[0104] The liquid may be any one or more liquids. As an example, the liquid may be water, milk, etc.
[0105] Step 102: determining a first error based on the second value and the third value, wherein the first error represents a target error for determining the volume of the liquid in the target container using the first method.
[0106] In this embodiment, the first error may be determined based on at least one of the following: absolute error, standard error, relative error, etc.
[0107] As an example, the first error may be determined in the following manner (hereinafter referred to as manner A):
[0108] First, the difference between the second value and the third value is calculated.
[0109] Afterwards, the quotient of the difference and the third value is determined as the first error.
[0110] As another example, the first error may also be determined in the following manner (hereinafter referred to as manner B):
[0111] The difference between the second value and the third value is determined as the first error.
[0112] Step 103: using the first error to adjust the first value to determine a target liquid volume, wherein the target liquid volume is the actual volume of the liquid in the target container determined at the time.
[0113] In this embodiment, when the above-mentioned method A is used to determine the first error, the following formula 1 can be used to determine the target liquid volume:
[0114] y=x×(1+perOffset)
[0115] Formula 1
[0116] Wherein, in the above formula 1, the above y represents the target liquid volume, the above x represents the first value, and the above perOffset represents the first error.
[0117] Optionally, when the above method B is used to determine the first error, the following formula 2 may be used to determine the target liquid volume:
[0118] y=x+perOffset
[0119] Formula 2
[0120] Wherein, in the above formula 2, the above y represents the target liquid volume, the above x represents the first value, and the above perOffset represents the first error.
[0121] The method for determining the volume of liquid provided in the embodiment of the present application can be used for a wearable breast pump, which determines a first value of a first parameter, a second value of a second parameter, and a third value of a third parameter, wherein the first parameter represents the volume of the liquid in the target container determined by the first method at the current time, the second parameter represents the volume of the liquid in the target container determined by the first method at the previous time, and the third parameter represents the actual volume of the liquid in the target container determined by the second method at the previous time, and then, based on the second value and the third value, determines a first error, wherein the first error represents the target error of the volume of the liquid in the target container determined by the first method, and then, using the first error, adjusts the first value to determine the target liquid volume, wherein the target liquid volume is the actual volume of the liquid in the target container determined at the current time. Thus, the error of the volume of the liquid in the target container determined by the first method and the second method at the previous time can be obtained, and then the error is used to adjust the volume of the liquid in the target container determined by the first method at the current time to determine the actual volume of the liquid in the target container, thereby improving the accuracy of determining the volume of the liquid.
[0122] In some optional implementations of this embodiment, the first value is determined in the following manner:
[0123] First, a fourth value of the fourth parameter is obtained.
[0124] The fourth parameter represents the volume of the liquid in the target container determined at the time by the third method, and the operation represented by the first method includes the operation represented by the third method.
[0125] The fourth numerical value may be a parameter value of a fourth parameter.
[0126] The third method may be any one or more methods different from the first method and the second method, and is used to determine the volume of the liquid.
[0127] As an example, if the operations represented by the first mode are: operation A, operation B, then the operation represented by the third mode may be: operation A. More specifically, if the first mode includes the following two operations: first, the target container measures the volume of the liquid therein by itself to obtain first measurement data; second, correcting the first measurement data, then the third mode may only include: the target container measures the volume of the liquid therein by itself to obtain the first measurement data.
[0128] Then, the first value is determined based on the fourth value and a second error, wherein the second error represents a compensation parameter of the liquid in the target container.
[0129] The second error may be a preset and fixed value, or a variable value updated according to a certain strategy.
[0130] As an example, the following formula 3 may be used to determine the first value:
[0131] x=X×(1+offset)
[0132] Formula 3
[0133] In the above formula 3, x represents the first value, X represents the fourth value, and offset represents the second error.
[0134] As another example, the following formula 4 may be used to determine the first value:
[0135] x=X+offset
[0136] Formula 4
[0137] In the above formula 4, x represents the first value, X represents the fourth value, and offset represents the second error.
[0138] It can be understood that in the above optional implementation, the first value can be determined by the fourth value and the second error, and then the first value can be adjusted using the first error to determine the actual volume of the liquid in the target container determined this time, which can further improve the accuracy of determining the volume of the liquid in the target container.
[0139] In some application scenarios of the above optional implementation manner, the second error is determined in the following manner:
[0140] First, based on the fifth value of the fifth parameter and the sixth value of the sixth parameter, a third error is determined.
[0141] The fifth parameter represents the sum of the volumes of the liquid in the target container determined by the first method for the previous target number of times. The sixth parameter represents the sum of the volumes of the liquid in the target container determined by the second method for the previous target number of times. The third error represents the error between the fifth value and the sixth value.
[0142] The fifth value may be a parameter value of the fifth parameter. The sixth value may be a parameter value of the sixth parameter.
[0143] The target quantity may be a predetermined fixed value or a variable value that changes based on the first strategy.
[0144] As an example, the third error may be determined using the following formula 5:
[0145] abnormalPerOffset=(abnormalManualMilk-
[0146] abnormalAutoMilk)÷abnormalAutoMilk
[0147] Formula 5
[0148] In the above formula 5, abnormalPerOffset may represent the third error, abnormalManualMilk may represent the fifth value, and abnormalAutoMilk may represent the sixth value.
[0149] As an example, the following formula 6 may be used to determine the third error:
[0150] abnormalPerOffset=abnormalManualMilk-abnormalAutoMilk
[0151] Formula 6
[0152] In the above formula 6, abnormalPerOffset may represent the third error, abnormalManualMilk may represent the fifth value, and abnormalAutoMilk may represent the sixth value.
[0153] Thereafter, the second error is determined based on the third error.
[0154] As an example, the product of the third error and the preset coefficient may be determined as the second error, or the second error may be determined by using the following formula 7:
[0155] offset=offset+abnormalPerOffset
[0156] Formula 7
[0157] In the above formula 7, abnormalPerOffset may represent the third error, and offset may represent the second error.
[0158] It can be understood that in the above application scenario, the third error can be determined based on the fifth value of the fifth parameter and the sixth value of the sixth parameter, and then the second error can be determined based on the third error. Thus, the accuracy of determining the volume of the liquid can be further improved.
[0159] In some cases of the above application scenarios, the fifth value and the sixth value are updated in the following manner:
[0160] When a preset condition is met, the fifth value and the sixth value are updated to 0.
[0161] The preset conditions include: the third error is smaller than a preset third threshold (eg, 0.2), or the product of the first difference and the second difference is smaller than zero.
[0162] The first difference is a difference between the volume of the liquid in the target container determined this time by using the first method and the volume of the liquid in the target container determined this time by using the second method.
[0163] The second difference is a difference between the volume of the liquid in the target container determined last time using the first method and the volume of the liquid in the target container determined last time using the second method.
[0164] Here, before the fifth value and the sixth value are updated to 0, the values of the fifth value and the sixth value may be accumulated as the number of times the volume of the liquid in the target container is measured increases.
[0165] It can be understood that in the above optional implementation, when the third error is less than the preset third threshold value and the data direction is inconsistent (that is, the product of the above first difference and the second difference is less than 0), the abnormal data (including the above fifth value and the sixth value) can be cleared and the data with larger errors can be collected. Here, the consistency of data direction means that the data is too large or too small for many consecutive times. If the direction is not continuous, sometimes too large and sometimes too small, it means that the measurement environment may not be standard (for example, it is not measured under standard action), which is irrelevant to the error, and no correction is made. Thereby, the accuracy of liquid volume determination is further improved.
[0166] In some cases of the above application scenarios, the second error is updated in the following manner:
[0167] When the eighth value of the eighth parameter is greater than the preset fourth threshold, the third error is added to the second error to obtain an updated second error.
[0168] Among them, when the fourth error is less than or equal to the preset second threshold, the eighth value is updated to 0; when the fourth error is greater than the preset second threshold, the eighth value is incremented by 1; the initial value of the eighth parameter is 0.
[0169] The fourth error represents the error between the first value and the target liquid volume. For example, the fourth error may be an absolute error or a relative error between the first value and the target liquid volume.
[0170] It can be understood that in the above case, when the fourth error is greater than the preset second threshold value for a large number of times, it is considered that the data error is large and the second error needs to be corrected. Thus, the accuracy of liquid volume determination can be further improved.
[0171] In some application scenarios of the above optional implementation manner, the fourth value is determined in the following manner:
[0172] First, the height and the tilt angle of the liquid in the target container determined at that time are obtained.
[0173] The TOF sensor disposed in the target container may be used to determine the height of the liquid in the target container, and the acceleration sensor disposed in the target container may be used to determine the tilt angle of the liquid in the target container.
[0174] Afterwards, based on a preset corresponding relationship, the volume of the liquid corresponding to the height and the tilt angle is determined to obtain the fourth value.
[0175] The preset corresponding relationship indicates the corresponding relationship between the height, the tilt angle and the volume of the liquid in the target container.
[0176] As an example, the above preset corresponding relationship may be as follows:
[0177] {{{-40,55,5},{-30,55,5},{-20,53,5},{-10,54,5},{0,51,5},{10,54,5},{20,53,5},{30,55,5},{40,55,5}}, .....
[0179] {{-40,37,120},{-30,39,120},{-20,40,120},{-10,40,120},{0,35,120},{10,40,120},{20,40,120},{30,39,120},{40,37,120}},
[0180] };
[0181] Note: For example, {-40,37,120}, -40 represents the tilt angle, 37 represents the distance measured by tof, and 120 represents the liquid volume.
[0182] It can be understood that in the above optional implementation, the fourth value can be determined by using the height and tilt angle of the liquid and a preset corresponding relationship, thereby improving the accuracy of measuring the volume of the tilted liquid.
[0183] In some optional implementations of this embodiment, when the fourth error is less than or equal to a preset second threshold, the second value and the third value are updated in the following manner:
[0184] The second value is increased by the first value to obtain an updated second value.
[0185] The target liquid volume is added to the third value to obtain the updated third value.
[0186] It can be understood that in the above optional implementation, the first error can be determined by accumulating the liquid volumes determined by the first method and the second method for several times, and then the target liquid volume can be determined, so as to further improve the accuracy of liquid volume measurement.
[0187] Figure 2 A schematic diagram of another method for determining the volume of a liquid provided in an embodiment of the present application. Figure 2 As shown, the method specifically includes:
[0188] Step 201, determine a first value of a first parameter and a second value of a second parameter; wherein the first parameter represents the volume of liquid in a target container determined this time using a first method, and the second parameter represents the volume of liquid in the target container determined last time using the first method.
[0189] In this embodiment, the specific implementation method of the above step 201 can refer to the above step 101 and will not be repeated here.
[0190] Step 202, when the seventh value of the seventh parameter is greater than or equal to the preset first threshold, determine the third value of the third parameter; wherein the seventh parameter represents the number of times the fourth error is less than or equal to the preset second threshold, the fourth error represents the error between the first value and the target liquid volume, and the third parameter represents the actual volume of the liquid in the target container determined in the previous time using the second method.
[0191] In this embodiment, the seventh value may be a parameter value of a seventh parameter.
[0192] In addition, the specific implementation method of the above step 202 can refer to the above step 101 and will not be repeated here.
[0193] Step 203: determining a first error based on the second value and the third value, wherein the first error represents a target error for determining the volume of the liquid in the target container using the first method.
[0194] In this embodiment, step 203 and Figure 1 Step 102 in the corresponding embodiment is basically the same and will not be described again here.
[0195] Step 204: using the first error to adjust the first value to determine a target liquid volume, wherein the target liquid volume is the actual volume of the liquid in the target container determined at the time.
[0196] In this embodiment, step 204 and Figure 1 Step 103 in the corresponding embodiment is basically the same and will not be described again here.
[0197] It should be noted that, in addition to the above contents, this embodiment may also include Figure 1 The corresponding technical features described in the corresponding embodiments are realized Figure 1 For details, please refer to Figure 1 For the sake of brevity, the relevant description is not repeated here.
[0198] The method for determining the volume of liquid provided in the embodiment of the present application starts to determine the third value of the third parameter only when the seventh value of the seventh parameter is greater than or equal to the preset first threshold value; and if the seventh value of the seventh parameter is less than the preset first threshold value, there is no need to determine the third value of the third parameter. In this way, the third value of the third parameter is determined only after accumulating the first value with a smaller error and the target liquid volume, which can further improve the accuracy of determining the volume of the liquid.
[0199] The following is an example in which the target container is a breast pump and the above-mentioned liquid is milk to illustrate the embodiments of the present application. However, it should be noted that the embodiments of the present application may have the features described below, but the following description does not constitute a limitation on the scope of protection of the embodiments of the present application.
[0200] Please refer to Figure 3A and Figure 3B . Figure 3A A schematic flow chart of another method for determining liquid volume provided in an embodiment of the present application. Figure 3B A schematic flow chart of another method for determining liquid volume provided in an embodiment of the present application.
[0201] Here, the method can be executed by an APP (application) installed on a terminal device. For example, the APP can refer to a mobile phone application software such as Android.
[0202] A TOF sensor may be provided in a breast pump, which can calculate the distance between a transmitter and a reflector by measuring the "flight time" of ultrasonic / microwave / light or other signals between the transmitter and the reflector.
[0203] In this method, the volume unit of the liquid can be oz (ounce), 1 US fluid ounce = 29.57353 ml volume or capacity.
[0204] Instructions can be sent between the breast pump and the above-mentioned terminal devices via Bluetooth.
[0205] In the prior art, the amount of milk in a breast pump is measured by TOF distance measurement and meter reading to obtain the amount of milk. TOF distance measurement itself has certain errors. The inclination angle of the breast pump, the amount of exercise of the mother and other factors will affect the accuracy of the calculation of the milk amount value. In order to make the displayed milk amount value more accurate, the following method can be used:
[0206] The APP uses two data models to correct breast pump data, the automatic calibration model and the abnormal data model:
[0207] The automatic calibration model exists locally in the APP. This model mainly collects data (including the second value, the third value, and the fourth value) with a manual calibration error (that is, the fourth error) within 20% (inclusive), and calculates the automatic compensation parameters (that is, the second error) based on the average value of multiple data, so as to perform secondary compensation after receiving the data uploaded by the breast pump (the first compensation is performed inside the breast pump, and the internal compensation of the breast pump is based on the abnormal data model of the APP and is fed back to the breast pump, which will be introduced in detail later). The data after secondary compensation is displayed on the APP. As an example, please refer to Figure 3C , Figure 3CA schematic diagram of an interface interaction of a method for determining liquid volume provided in an embodiment of the present application. The more data there is, the closer the data corrected by the model is to the true value. The more it is used, the more accurate it becomes.
[0208] Here, whether to start the automatic calibration algorithm can be determined by the following condition: totalTimes (ie, the seventh value)>=10 (ie, the preset first threshold).
[0209] In this method, x may represent the amount of milk reported by the breast pump, that is, the first value mentioned above.
[0210] Automatic calibration of milk volume data algorithm: y = x × (1 + perOffset), where y is the target liquid volume; and perOffset is the first error.
[0211] totalTimes may represent the total number of manual calibration times when it is not cleared to 0, that is, the seventh value mentioned above.
[0212] totalAutoMilk may represent the total amount of milk (oz) reported by the device when it is not cleared to 0, that is, the second value mentioned above.
[0213] totalManualMilk may represent the total amount of milk (oz) after manual calibration when it is not cleared to 0, that is, the third value mentioned above.
[0214] perOffset can represent the actual error of the amount of milk per ounce (oz), which is the first error mentioned above.
[0215] perOffset=(totalManualMilk-totalAutoMilk)÷totalAutoMilk.
[0216] Abnormal data model: This model exists locally in the APP. This model is mainly used to calibrate the internal compensation parameters of the breast pump. Data with manual calibration errors exceeding 20% (including the fifth and sixth values mentioned above) are collected. When the data direction (large or small) is consistent and the number of abnormalities exceeding 20% reaches 5 times (that is, the fourth threshold value preset above), it is considered that the data error reported by the breast pump is large, and the automatic compensation parameters inside the breast pump need to be corrected (that is, the first data compensation parameters, the second error). The data x reported by the breast pump (that is, the first value mentioned above) is corrected based on this parameter.
[0217] abnormalTimes may indicate the number of abnormal calibrations when not being cleared to 0, which is the eighth value mentioned above.
[0218] abnormalAutoMilk may indicate the total amount of abnormal milk (oz) reported by the device when it is not cleared to 0, which is the sixth value mentioned above.
[0219] abnormalManualMilk may represent the total amount of abnormal milk (oz) after manual calibration without being cleared to 0, which is the fifth value mentioned above.
[0220] abnormalPerOffset may indicate the actual error of abnormal milk volume per ounce (oz), which is the third error mentioned above.
[0221] abnormalPerOffset=(abnormalManualMilk-abnormalAutoMilk) / abnormalAutoMilk.
[0222] Manual calibration: The user manually enters the milk volume data after observing the scale lines on the bottle.
[0223] Data direction: Consistent data direction means that the data is too large or too small for many consecutive times. If the direction is not continuous, sometimes too large and sometimes too small, it means that the breast pump milk measurement environment may not be standard, which has nothing to do with the internal compensation parameters of the breast pump and the TOF distance measurement error, so no correction is made. It may be that the measurement was not performed under standard action when measuring milk.
[0224] Specifically, the overall process is as follows:
[0225] 1. Get the amount of milk by measuring the height of the milk surface through TOF and the angle of the breast pump through the acceleration sensor. Then, get the amount of milk by looking up the table based on the height and angle.
[0226] Milk quantity table:
[0227] const volume_info_t volume_table_pitch_1[][9]={{{-40,55,5},{-30,55,5},{-20,53,5},{-10,54,5},{0,51,5},{10,54,5},{20,53,5},{30,55,5},{40,55,5}}, .....
[0229] {{-40,37,120},{-30,39,120},{-20,40,120},{-10,40,120},{0,35,120},{10,40,120},{20,40,120},{30,39,120},{40,37,120}},
[0230] };
[0231] Note: For example, {-40,37,120} -40 indicates the breast pump tilt angle, 37 indicates the distance measured by tof, and 120 indicates the amount of milk in milliliters.
[0232] If angle = -40, height = 37, then volume = 120 ml
[0233] 1 US fluid ounce: perOZ = 29.57353 ml
[0234] Milk volume: x (ounces) = volume / perOZ;
[0235] The breast pump has a built-in compensation parameter for the amount of milk per ounce, offset = 0 (the initial value is zero, and the app will modify this value later through the abnormal data model correction cmd).
[0236] Equipment milk volume compensation: x=x*(1+offset).
[0237] 2. The device reports the milk volume data x to the APP. The milk volume data reporting is separated from the online milking data reporting and the online data reporting.
[0238] 1) Offline data refers to the milking data of the breast pump when the APP is not used. The data will be automatically reported to the APP when the APP is started next time and the breast pump is connected.
[0239] 2) Online data refers to the milk pumping data when the breast pump is connected to the APP.
[0240] 3) The data generation node is when the countdown for breastfeeding ends or the user actively stops.
[0241] 3. After receiving the milk volume data, the APP determines whether it is necessary to turn on the automatic calibration algorithm. x is the milk volume reported by the breast pump in oz.
[0242] 1) totalTimes>=10 turns on the automatic calibration algorithm: display milk volume y=x×(1+perOffset);
[0243] 2) totalTimes<10, automatic calibration algorithm is not enabled: the displayed milk volume is the actual reported milk volume y=x by the breast pump;
[0244] 3) A manual calibration window is displayed, and the milk volume y is displayed. The user can further manually correct the milk volume data y, or choose to skip it.
[0245] 4. The APP calculates the amount of milk entered by the mother and the amount of milk reported by the device, and saves the calculation results persistently.
[0246] 1) If the mother does not correct the data, then the process ends;
[0247] 2) Mom corrected the data: data error rate z = (yx) ÷ x;
[0248] If |z|>0.2 and the absolute error rate is greater than 20%, update the abnormal data:
[0249] abnormalTimes=abnormalTimes+1;
[0250] abnormalAutoMilk=abnormalAutoMilk+x;
[0251] abnormalManualMilk=abnormalManualMilk+y;
[0252] abnormalPerOffset=(abnormalManualMilk-abnormalAutoMilk) / abnormalAutoMilk;
[0253] If abnormalPerOffset<0.2, the data direction is inconsistent, and the abnormal data is cleared.
[0254] If abnormalTimes>5, initiate a correction compensation parameter to the breast pump, and pass abnormalPerOffset to the breast pump. The breast pump corrects the offset compensation parameter per ounce of milk based on this value, and the APP clears and resets the abnormal data.
[0255] Breast pump compensation correction: offset = offset + abnormalPerOffset, the next time the breast pump automatically compensates for the amount of milk per ounce;
[0256] If |z|<=0.2 and the absolute error rate is not greater than 20%, correct the automatic calibration algorithm model and clear the abnormal data:
[0257] totalTimes = totalTimes + 1;
[0258] totalAutoMilk=totalAutoMilk+x;
[0259] totalManualMilk=totalManualMilk+y;
[0260] perOffset=(totalManualMilk-totalAutoMilk) / totalAutoMilk;
[0261] Clearing abnormal data may include:
[0262] abnormalTimes=0;
[0263] abnormalAutoMilk=0;
[0264] abnormalManualMilk=0.
[0265] It should be noted that, in addition to the contents recorded above, this embodiment may also include the technical features described in the above embodiments, so as to achieve the technical effect of the method for determining the liquid volume shown above. Please refer to the above description for details. For the sake of brevity, it will not be repeated here.
[0266] The method for determining the volume of liquid provided in the embodiment of the present application can reduce the error between the automatically measured data and the actual data, so that the measured data and the actual data become more accurate with use.
[0267] Figure 4 A schematic diagram of the structure of a device for determining the volume of a liquid provided in an embodiment of the present application.
[0268] Specifically include:
[0269] A first determining unit 401 is used to determine a first value of a first parameter, a second value of a second parameter, and a third value of a third parameter, wherein the first parameter represents the volume of the liquid in the target container determined this time by using the first method, the second parameter represents the volume of the liquid in the target container determined last time by using the first method, and the third parameter represents the actual volume of the liquid in the target container determined last time by using the second method;
[0270] A second determining unit 402 is configured to determine a first error based on the second value and the third value, wherein the first error represents a target error for determining the volume of the liquid in the target container using the first method;
[0271] The adjustment unit 403 is used to adjust the first value using the first error to determine a target liquid volume, wherein the target liquid volume is an actual volume of the liquid in the target container determined at the time.
[0272] In a possible implementation manner, the first value is determined in the following manner:
[0273] Obtaining a fourth value of a fourth parameter, wherein the fourth parameter represents the volume of the liquid in the target container determined at the time by the third method, and the operation represented by the first method includes the operation represented by the third method;
[0274] The first value is determined based on the fourth value and a second error, wherein the second error represents a compensation parameter of the liquid in the target container.
[0275] In a possible implementation manner, the second error is determined in the following manner:
[0276] determining a third error based on a fifth value of the fifth parameter and a sixth value of the sixth parameter, wherein the fifth parameter represents the sum of the volumes of the liquid in the target container determined by the first method for the previous target number of times, the sixth parameter represents the sum of the volumes of the liquid in the target container determined by the second method for the previous target number of times, and the third error represents an error between the fifth value and the sixth value;
[0277] Based on the third error, the second error is determined.
[0278] In a possible implementation manner, the fifth value and the sixth value are updated in the following manner:
[0279] When a preset condition is met, updating the fifth value and the sixth value to 0;
[0280] The preset conditions include: the third error is less than a preset third threshold, and the product of the first difference and the second difference is less than 0;
[0281] The first difference is a difference between the volume of the liquid in the target container determined this time by using the first method and the volume of the liquid in the target container determined this time by using the second method;
[0282] The second difference is a difference between the volume of the liquid in the target container determined last time using the first method and the volume of the liquid in the target container determined last time using the second method.
[0283] In a possible implementation manner, the second error is updated in the following manner:
[0284] When the eighth value of the eighth parameter is greater than the preset fourth threshold, adding the third error to the second error to obtain an updated second error;
[0285] Wherein, when the fourth error is less than or equal to the preset second threshold, the eighth value is updated to 0; when the fourth error is greater than the preset second threshold, the eighth value is incremented by 1; the initial value of the eighth parameter is 0;
[0286] The fourth error represents an error between the first value and the target liquid volume.
[0287] In a possible implementation manner, the fourth value is determined in the following manner:
[0288] Acquire the height and tilt angle of the liquid in the target container determined at that time;
[0289] Based on a preset correspondence, the volume of the liquid corresponding to the height and the tilt angle is determined to obtain the fourth value, wherein the preset correspondence represents the correspondence between the height of the liquid in the target container, the tilt angle and the volume of the liquid.
[0290] In a possible implementation manner, when the fourth error is less than or equal to a preset second threshold, the second value and the third value are updated in the following manner:
[0291] Add the first value to the second value to obtain an updated second value;
[0292] The target liquid volume is added to the third value to obtain the updated third value.
[0293] In a possible implementation, determining the first value of the first parameter, the second value of the second parameter, and the third value of the third parameter includes:
[0294] determining a first value of a first parameter and a second value of a second parameter;
[0295] When the seventh value of the seventh parameter is greater than or equal to the preset first threshold, determining a third value of the third parameter;
[0296] The seventh parameter indicates the number of times the fourth error is less than or equal to the preset second threshold, and the fourth error indicates the error between the first value and the target liquid volume. The liquid volume determination device provided in this embodiment can be as follows: Figure 4 The liquid volume determination device shown in can execute all the steps of the above-mentioned methods for determining the liquid volumes, thereby achieving the technical effects of the above-mentioned methods for determining the liquid volumes. For details, please refer to the above related descriptions. For the sake of brevity, they will not be repeated here.
[0297] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 5The electronic device 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the electronic device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not shown in FIG. Figure 5 Various buses are labeled as bus system 505 .
[0298] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0299] It can be understood that the memory 502 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0300] In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and an application program 5022 .
[0301] Among them, the operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present application can be included in the application 5022.
[0302] In this embodiment, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:
[0303] Determine a first value of a first parameter, a second value of a second parameter, and a third value of a third parameter, wherein the first parameter represents the volume of the liquid in the target container determined this time using the first method, the second parameter represents the volume of the liquid in the target container determined last time using the first method, and the third parameter represents the actual volume of the liquid in the target container determined last time using the second method;
[0304] Determine a first error based on the second value and the third value, wherein the first error represents a target error for determining the volume of the liquid in the target container using the first manner;
[0305] The first error is used to adjust the first value to determine a target liquid volume, wherein the target liquid volume is the actual volume of the liquid in the target container determined at the time.
[0306] The method disclosed in the above embodiment of the present application can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 501. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
[0307] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above functions of the present application, or a combination thereof.
[0308] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0309] The electronic device provided in this embodiment may be Figure 5 The electronic device shown in can execute all steps of the above-mentioned method for determining the volume of each liquid, thereby achieving the technical effect of the above-mentioned method for determining the volume of each liquid. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0310] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0311] When one or more programs in the storage medium can be executed by one or more processors, the liquid volume determination method executed on the electronic device side can be implemented.
[0312] The processor is used to execute the liquid volume determination program stored in the memory to implement the following steps of the liquid volume determination method executed on the electronic device side:
[0313] Determine a first value of a first parameter, a second value of a second parameter, and a third value of a third parameter, wherein the first parameter represents the volume of the liquid in the target container determined this time using the first method, the second parameter represents the volume of the liquid in the target container determined last time using the first method, and the third parameter represents the actual volume of the liquid in the target container determined last time using the second method;
[0314] Determine a first error based on the second value and the third value, wherein the first error represents a target error for determining the volume of the liquid in the target container using the first manner;
[0315] The first error is used to adjust the first value to determine a target liquid volume, wherein the target liquid volume is the actual volume of the liquid in the target container determined at the time.
[0316] The professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0317] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0318] It should be understood that the terms used in the text are only for the purpose of describing specific example embodiments, and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used in the text may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0319] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for determining liquid volume, for use in a wearable breast pump, characterized in that: The method comprises: Determine a first value of a first parameter, a second value of a second parameter, and a third value of a third parameter, wherein the first parameter represents the volume of the liquid in the target container determined this time using the first method, the second parameter represents the volume of the liquid in the target container determined last time using the first method, and the third parameter represents the actual volume of the liquid in the target container determined last time using the second method; Determine a first error based on the second value and the third value, wherein the first error represents a target error for determining the volume of the liquid in the target container using the first manner; The first error is used to adjust the first value to determine a target liquid volume, wherein the target liquid volume is the actual volume of the liquid in the target container determined at the time.
2. The method according to claim 1, characterized in that The first value is determined in the following manner: Obtaining a fourth value of a fourth parameter, wherein the fourth parameter represents the volume of the liquid in the target container determined at the time by the third method, and the operation represented by the first method includes the operation represented by the third method; The first value is determined based on the fourth value and a second error, wherein the second error represents a compensation parameter of the liquid in the target container.
3. The method according to claim 2, characterized in that The second error is determined in the following manner: determining a third error based on a fifth value of the fifth parameter and a sixth value of the sixth parameter, wherein the fifth parameter represents the sum of the volumes of the liquid in the target container determined by the first method for the previous target number of times, the sixth parameter represents the sum of the volumes of the liquid in the target container determined by the second method for the previous target number of times, and the third error represents an error between the fifth value and the sixth value; Based on the third error, the second error is determined.
4. The method according to claim 3, characterized in that The fifth value and the sixth value are updated in the following manner: When a preset condition is met, updating the fifth value and the sixth value to 0; The preset conditions include: the third error is less than a preset third threshold, and the product of the first difference and the second difference is less than 0; The first difference is: a difference between the volume of the liquid in the target container determined this time by using the first method and the volume of the liquid in the target container determined this time by using the second method; The second difference is: the difference between the volume of the liquid in the target container determined last time using the first method and the volume of the liquid in the target container determined last time using the second method.
5. The method according to claim 3, characterized in that: The second error is updated in the following manner: When the eighth value of the eighth parameter is greater than the preset fourth threshold, adding the third error to the second error to obtain an updated second error; Wherein, when the fourth error is less than or equal to the preset second threshold, the eighth value is updated to 0; when the fourth error is greater than the preset second threshold, the eighth value is incremented by 1; the initial value of the eighth parameter is 0; The fourth error represents an error between the first value and the target liquid volume.
6. The method according to claim 2, characterized in that The fourth value is determined in the following manner: Acquire the height and tilt angle of the liquid in the target container determined at that time; Based on a preset correspondence, the volume of the liquid corresponding to the height and the tilt angle is determined to obtain the fourth value, wherein the preset correspondence represents the correspondence between the height of the liquid in the target container, the tilt angle and the volume of the liquid.
7. The method according to any one of claims 1 to 6, characterized in that: When the fourth error is less than or equal to the preset second threshold, the second value and the third value are updated in the following manner: Add the first value to the second value to obtain an updated second value; The target liquid volume is added to the third value to obtain the updated third value.
8. The method according to any one of claims 1 to 6, characterized in that: The determining of a first value of the first parameter, a second value of the second parameter, and a third value of the third parameter comprises: determining a first value of a first parameter and a second value of a second parameter; When the seventh value of the seventh parameter is greater than or equal to the preset first threshold, determining a third value of the third parameter; The seventh parameter indicates the number of times that the fourth error is less than or equal to a preset second threshold, and the fourth error indicates the error between the first value and the target liquid volume.
9. A liquid volume determination device for a wearable breast pump, characterized in that: The device comprises: a first determination unit, configured to determine a first value of a first parameter, a second value of a second parameter, and a third value of a third parameter, wherein the first parameter represents the volume of the liquid in the target container determined this time using the first method, the second parameter represents the volume of the liquid in the target container determined last time using the first method, and the third parameter represents the actual volume of the liquid in the target container determined last time using the second method; a second determining unit, configured to determine a first error based on the second value and the third value, wherein the first error represents a target error for determining the volume of the liquid in the target container in the first manner; An adjustment unit is used to adjust the first value using the first error to determine a target liquid volume, wherein the target liquid volume is an actual volume of the liquid in the target container determined at the time.
10. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute a computer program stored in the memory, and when the computer program is executed, implement the method described in any one of claims 1 to 8.