Weighing compensation method and system for electronic scale of coffee machine, medium and program product

By constructing a liquid splash model and evaporated water volume calculation, the compensation brewing task is generated, and the weight error caused by liquid splashing during the brewing process of the coffee machine electronic scale is solved, and the brewing accuracy and consistency are improved.

CN119104141AInactive Publication Date: 2024-12-10SHENZHEN YUWEI WEIGHING APP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411379359.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2024-12-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The weight error caused by liquid splash during the brewing process of the coffee machine electronic scale affects the brewing accuracy and the accuracy of the coffee liquid volume.

Method used

By constructing a liquid splash model, combining the water effluent velocity, container specifications and liquid physical properties, the evaporated water volume and splashed water volume are calculated, and a compensation brewing task is generated to adjust the water effluent to ensure the target liquid volume is achieved.

Benefits of technology

It improves the accuracy and consistency of the brewing process of the coffee machine, ensures that the amount of coffee liquid brewed in each brew meets the expected goals, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119104141A_ABST
    Figure CN119104141A_ABST
Patent Text Reader

Abstract

The invention discloses a weighing compensation method and system for an electronic scale of a coffee machine, a medium and a program product, and the method comprises the steps: determining a target brewing task and specification parameters of a container; constructing a plurality of liquid splashing models according to a plurality of water outlet speeds and specification parameters of the coffee machine; responding to the operation of selecting the current water outlet speed by the user, and matching a corresponding current liquid splashing model; the current water outlet duration is calculated according to the target water outlet amount and the current water outlet speed; the current evaporation water amount is determined according to the water outlet temperature and the current water outlet duration; calculating the final height of the liquid in the container according to the target water yield and the specification parameters; determining splashing water quantity according to the final height and the current liquid splashing model; generating a compensation brewing task, and sending the compensation brewing task to the coffee machine to enable the coffee machine to complete the compensation brewing task. By compensating the weighing result of the electronic scale of the coffee machine, the amount of liquid needing to be additionally brewed is obtained, and the accuracy of completing a target brewing task is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic weighing, and in particular, relates to a weighing compensation method, system, medium and program product for an electronic scale of a coffee machine. Background Art

[0002] The development of electronic scales for coffee machines is an important advancement in the coffee making process, with the goal of improving the consistency and quality of coffee brewing. Modern electronic scales generally use high-precision sensors that can be accurate to 0.1 grams or even lower. This high accuracy is essential for weighing coffee powder and water to ensure that every cup of coffee tastes consistent.

[0003] In the related art, the electronic scale is generally installed below the brewing system and corresponds to the water outlet of the brewing system. The electronic scale is wirelessly connected to the control device and is used to weigh the weight of the load placed on the electronic scale, and transmit the weighed weight to the control device in real time so that the control device can control the operation of the brewing system.

[0004] However, when the brewing system is discharging water, liquid may splash out of the container, and the splashed liquid also stays on the electronic scale. The weight measured by the electronic scale is equal to the weight of the liquid released from the water outlet, but the water in the container will be less than the target amount, resulting in the brewed beverage not meeting the expected target. Summary of the invention

[0005] The present application provides a weighing compensation method, system, medium and program product for an electronic scale of a coffee machine, which is used to compensate the weighing result of the electronic scale of the coffee machine to obtain the amount of liquid water required for additional brewing, thereby improving the accuracy of completing the target brewing task.

[0006] In a first aspect, the present application provides a weighing compensation method for an electronic scale of a coffee machine, which determines a target brewing task of the coffee machine and specification parameters of a container, wherein the target brewing task includes a target water output and a water output temperature, and the specification parameters include a height and an upper surface area of ​​the container; According to several water outlet speeds and specification parameters of the coffee machine, several liquid splash models are constructed, wherein the water outlet speed corresponds to the liquid splash model one by one, and the liquid splash model represents a three-dimensional model of liquid splashing at different heights in the container at the corresponding water outlet speed; In response to the user selecting the current water outlet speed, matching the current liquid splash model corresponding to the current water outlet speed; The current water discharge time is calculated based on the target water discharge volume and the current water discharge speed; Determine the current amount of evaporated water based on the outlet water temperature and the current outlet water duration; The final height of the liquid in the container after the target brewing task is completed is calculated according to the target water output and specification parameters; Determine the splash water volume according to the final height and the current liquid splash model; A compensation brewing task is generated and sent to the coffee machine so that the coffee machine completes the compensation brewing task. The compensation brewing task includes a compensation water volume, which is the sum of the current evaporated water volume and the splashed water volume.

[0007] By adopting the above technical solution, the target brewing task of the coffee machine and the specification parameters of the container are first determined. By considering factors such as the target water output, water output temperature, and the height and upper surface area of ​​the container, the key parameters of the coffee machine brewing process can be fully mastered. Then, according to several water output speeds and specification parameters of the coffee machine, several liquid splash models are constructed. By establishing a one-to-one correspondence between the water output speed and the liquid splash model, the splashing of the liquid at different heights in the container at different water output speeds can be accurately described. When the user selects the current water output speed, the splashing of the liquid at the current water output speed can be predicted by matching the corresponding liquid splash model. Next, the current water output time is calculated according to the target water output and the current water output speed, and then the current evaporated water volume is determined according to the water output temperature and the current water output time, taking into account the evaporation loss during the water output process. At the same time, the final height of the liquid in the container after the target brewing task is completed is calculated according to the target water output and specification parameters, and then the splashing water volume is determined according to the final height and the current liquid splash model, taking into account the liquid loss caused by splashing. Finally, a compensatory brewing task is generated. The compensation water volume is the sum of the current evaporated water volume and splashed water volume. By compensating for the water loss caused by evaporation and splashing, the amount of coffee liquid finally brewed by the coffee machine can accurately reach the preset target water output, thereby improving the brewing accuracy.

[0008] In conjunction with some embodiments of the first aspect, in some embodiments, determining the specification parameters of the container specifically includes: Obtain the current surveillance video captured by the camera, where the current surveillance video contains the coffee machine and the container; Use edge detection technology to detect the current monitoring video to obtain the machine outline of the coffee machine and the container outline of the container; Determine the size parameters of the coffee machine and determine the size conversion ratio based on the machine outline and size parameters; Determine the specification parameters of the container based on the size conversion ratio and container outline.

[0009] By adopting the above technical solution, the current monitoring video captured by the camera is obtained, and the machine outline of the coffee machine and the container outline of the container are detected by edge detection technology, so that the position and shape of the coffee machine and the container can be automatically identified. Then, by determining the size parameters of the coffee machine and determining the size conversion ratio according to the machine outline and size parameters, the conversion relationship between the pixel size in the monitoring video and the actual physical size is established. Finally, the specification parameters of the container are determined according to the size conversion ratio and the container outline, and the key parameters such as the height and upper surface area of ​​the container are automatically measured. The efficiency and accuracy of parameter acquisition are improved. By accurately obtaining the specification parameters of the container, important input parameters are provided for the subsequent construction of an accurate liquid splash model, which is conducive to further improving the weighing compensation accuracy of the coffee machine electronic scale.

[0010] In combination with some embodiments of the first aspect, in some embodiments, a plurality of liquid splash models are constructed according to a plurality of water outlet speeds and specification parameters of the coffee machine, specifically including: Determine the physical properties of the liquid, including density and viscosity; Establish a set of nonlinear partial differential equations based on the principles of fluid dynamics and the physical properties of liquids; A numerical method is used to solve a group of nonlinear partial differential equations to obtain model building parameters, which include fluid velocity field vector and pressure field; The computational fluid dynamics software is used to perform simulation operations according to the model establishment parameters to obtain the liquid splash model.

[0011] By adopting the above technical solutions, the physical properties of the liquid, including key parameters such as density and viscosity coefficient, are fully considered when constructing the liquid splash model, ensuring the physical rationality of the model. By introducing the principles of fluid dynamics and using a group of nonlinear partial differential equations to describe the motion behavior of the liquid, a rigorous mathematical model is established. The group of nonlinear partial differential equations can comprehensively consider factors such as the velocity field, pressure field, and external forces of the liquid to fully characterize the flow characteristics of the liquid. By using numerical methods to solve the group of nonlinear partial differential equations, accurate model establishment parameters are obtained, including the distribution of physical quantities such as the fluid velocity field vector and pressure field. On this basis, computational fluid dynamics software is used for simulation operations to obtain a highly simulated liquid splash model, which can more accurately describe the splashing behavior of the liquid in the container and provide a reliable theoretical basis for compensating for the amount of splashing water.

[0012] In conjunction with some embodiments of the first aspect, in some embodiments, the nonlinear partial differential equation system is: In the formula, u is the fluid velocity field vector, t is time, ρ is density, v is viscosity coefficient, p is the fluid pressure field, and f is the external force.

[0013] By adopting the above technical solution, the specific form of the nonlinear partial differential equations is given, including physical quantities such as fluid velocity field vector u, time t, density ρ, viscosity coefficient ν, pressure field p and external force f. This set of equations comprehensively considers various physical factors of liquid flow and can accurately describe the movement behavior of the liquid. Among them, the first equation describes the change of the fluid velocity field vector u with time t, taking into account the influence of the fluid's inertial force, pressure gradient force, viscosity force and external force. The second equation represents the incompressibility of the fluid, that is, the fluid satisfies the law of conservation of mass during movement. By solving this set of nonlinear partial differential equations, the distribution of the fluid velocity field vector and pressure field in space and time can be obtained, thereby accurately describing the flow characteristics of the liquid.

[0014] In combination with some embodiments of the first aspect, in some embodiments, determining the current evaporated water amount according to the water outlet temperature and the current water outlet time specifically includes: Determine the inlet water temperature; The water inlet temperature, water outlet temperature and water outlet time are input into the evaporation water volume calculation function group to obtain the current evaporation water volume.

[0015] By adopting the above technical solution, first, by determining the water inlet temperature, the water temperature state of the coffee machine at the beginning of the brewing process can be obtained. Then, the water inlet temperature, water outlet temperature and water outlet time are passed as input parameters to the evaporation water calculation function group, and the current evaporation water volume is obtained through the calculation of the function group. This method fully considers the key factors affecting the evaporation water volume, including water temperature difference and water outlet time. By establishing the mathematical relationship between the evaporation water volume and these factors, the water evaporation loss in the brewing process can be quantitatively calculated. Compared with simple empirical estimation, this method introduces physical and mathematical models, which can more accurately predict the evaporation water volume and provide reliable data support for subsequent compensation brewing tasks. By accurately calculating the evaporation water volume, the corresponding amount of water can be supplemented in the compensation brewing task to ensure that the final amount of coffee liquid obtained by brewing meets the expected target, thereby improving the weighing accuracy of the coffee machine electronic scale. At the same time, by introducing the water inlet temperature and water outlet temperature, this method considers the influence of water temperature changes on evaporation, making the calculation of the evaporation water volume more comprehensive and accurate.

[0016] In combination with some embodiments of the first aspect, in some embodiments, the evaporated water amount calculation function group is: M=Q×t In the formula, t is the water discharge time, Q is the current water discharge speed, M is the total water volume within t time, m is the current evaporated water volume, c is the specific heat capacity of the liquid, T out is the outlet water temperature, T in is the inlet water temperature, L v is the latent heat of vaporization of the liquid.

[0017] By adopting the above technical solution, the specific form of the evaporated water calculation function group is given. By reasonably setting these physical property parameters, the evaporated water can be estimated for different types of liquids (such as water, milk, etc.), expanding the scope of application of the method. At the same time, by considering the influence of water temperature differences, the formula can reflect the influence of water temperature changes on the evaporation rate, making the calculation results more dynamic and accurate.

[0018] In combination with some embodiments of the first aspect, in some embodiments, before determining the target brewing task of the coffee machine and the specification parameters of the container, the method further includes: When it is determined that the target brewing task is completed, the current weight data detected by the electronic scale is received; When it is determined that the difference between the current weight data and the target weight data is within the preset range, the step of determining the target brewing task of the coffee machine and the specification parameters of the container is performed.

[0019] By adopting the above technical solution, after determining that the target brewing task is completed, the current weight data obtained by the electronic scale detection is received and compared with the target weight data to determine whether the difference between the two is within the preset acceptable range. Only when the weight difference meets the requirements will the subsequent weighing compensation step be executed. This method provides a means to verify the quality of brewing task completion by introducing a weight detection and comparison mechanism. In practical applications, due to the influence of various factors, such as weighing errors, environmental interference, etc., even if the preset brewing task is completed, the actual weight of the coffee liquid may deviate from the target weight. By setting a preset interval for the weight difference, it can be determined whether the current brewing result meets the user's expected requirements. If the weight difference exceeds the preset interval, it means that the brewing task has not achieved the expected effect, and adjustments or re-brews may be required.

[0020] In a second aspect, an embodiment of the present application provides a weighing compensation system for an electronic scale of a coffee machine, the weighing compensation system for the electronic scale of a coffee machine comprising: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and one or more processors call the computer instructions to enable the weighing system of the electronic scale of the coffee machine to execute the method described in the first aspect and any possible implementation method of the first aspect.

[0021] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions. When the above instructions are executed on a weighing system of an electronic scale of a coffee machine, the weighing system of the electronic scale of the coffee machine executes the method described in the first aspect and any possible implementation method of the first aspect.

[0022] In a fourth aspect, an embodiment of the present application provides a computer program product, characterized in that when the computer program product runs on a weighing system of an electronic scale of a coffee machine, the weighing system of the electronic scale of the coffee machine executes a method described in any possible implementation manner in the first aspect.

[0023] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. The present application provides a weighing compensation method for an electronic scale of a coffee machine. First, the target brewing task of the coffee machine and the specification parameters of the container are determined. By considering factors such as the target water output, the water output temperature, and the height and upper surface area of ​​the container, the key parameters of the coffee machine brewing process can be fully mastered. Then, according to several water output speeds and specification parameters of the coffee machine, several liquid splash models are constructed. By establishing a one-to-one correspondence between the water output speed and the liquid splash model, the splashing of the liquid at different heights in the container at different water output speeds can be accurately described. When the user selects the current water output speed, the splashing of the liquid at the current water output speed can be predicted by matching the corresponding liquid splash model. Next, the current water output time is calculated according to the target water output and the current water output speed, and then the current evaporated water volume is determined according to the water output temperature and the current water output time, taking into account the evaporation loss during the water output process. At the same time, the final height of the liquid in the container after the target brewing task is completed is calculated according to the target water output and the specification parameters, and then the splashing water volume is determined according to the final height and the current liquid splash model, taking into account the liquid loss caused by splashing. Finally, a compensatory brewing task is generated. The compensation water volume is the sum of the current evaporated water volume and splashed water volume. By compensating for the water loss caused by evaporation and splashing, the amount of coffee liquid finally brewed by the coffee machine can accurately reach the preset target water output, thereby improving the brewing accuracy.

[0024] 2. The present application provides a weighing compensation method for an electronic scale for a coffee machine. The current monitoring video captured by a camera is obtained, and the machine outline of the coffee machine and the container outline of the container are detected using edge detection technology, so that the position and shape of the coffee machine and the container can be automatically identified. Then, by determining the size parameters of the coffee machine and determining the size conversion ratio according to the machine outline and size parameters, a conversion relationship between the pixel size in the monitoring video and the actual physical size is established. Finally, the specification parameters of the container are determined according to the size conversion ratio and the container outline, and the automatic measurement of key parameters such as the height and upper surface area of ​​the container is realized. The efficiency and accuracy of parameter acquisition are improved. By accurately obtaining the specification parameters of the container, important input parameters are provided for the subsequent construction of an accurate liquid splash model, which is conducive to further improving the weighing compensation accuracy of the electronic scale for the coffee machine.

[0025] 3. The present application provides a weighing compensation method for an electronic scale for a coffee machine. When constructing a liquid splash model, the physical properties of the liquid, including key parameters such as density and viscosity coefficient, are fully considered to ensure the physical rationality of the model. By introducing the principles of fluid dynamics and using a group of nonlinear partial differential equations to describe the motion behavior of the liquid, a rigorous mathematical model is established. The group of nonlinear partial differential equations can comprehensively consider factors such as the velocity field, pressure field, and external forces of the liquid to comprehensively characterize the flow characteristics of the liquid. By using numerical methods to solve the group of nonlinear partial differential equations, accurate model establishment parameters are obtained, including the distribution of physical quantities such as the fluid velocity field vector and pressure field. On this basis, computational fluid dynamics software is used for simulation operations to obtain a highly simulated liquid splash model, which can more accurately describe the splashing behavior of the liquid in the container, and provide a reliable theoretical basis for compensating for the amount of splashing water. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a flow chart of a weighing compensation method for an electronic scale of a coffee machine in an embodiment of the present application.

[0027] Figure 2 It is another flow chart of a weighing compensation method for an electronic scale of a coffee machine in an embodiment of the present application.

[0028] Figure 3 It is a schematic diagram of the physical device structure of a weighing compensation system for an electronic scale for a coffee machine provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more listed items.

[0030] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0031] An application scenario of an embodiment of the present application is described below: In an unmanned self-service coffee shop, customers can select the coffee they want to brew in advance on the relevant software. After receiving the brewing task, the coffee machine obtains the corresponding brewing recipe based on the coffee selected by the user, and then starts the electronic scale. While the coffee machine continues to dispense water, the electronic scale will feed back the weight data obtained by weighing to the coffee machine. When the weight data is the same as the preset weight data in the brewing recipe, the brewing ends and the coffee selected by the user is obtained.

[0032] However, during the busy work, some customers reported that the coffee they ordered seemed to be less than usual and the taste was also subtly different. After receiving the feedback, the staff carefully checked the coffee machine and electronic scale and found that the weight displayed on the electronic scale was exactly the same as the set recipe amount, but the brewed coffee liquid did not actually reach the expected amount.

[0033] In order to find out the cause, the staff conducted a series of tests and observations. They found that during the brewing process, due to the impact and speed of the water flow, a small amount of liquid would splash out of the container and land on the scale plate of the electronic scale. Although the mass of this splashed liquid is not large, it will also be weighed by the electronic scale, resulting in a difference between the weight displayed on the electronic scale and the actual weight of the liquid entering the container.

[0034] This discovery made the staff realize that although the electronic scale has a high accuracy, the presence of splashing will affect the accuracy of brewing, and thus affect the customer's coffee experience. They realized that it is not enough to rely solely on the weighing results of the electronic scale to control the brewing process. It is also necessary to consider the impact of splashing loss on the final amount of coffee liquid. This requires the electronic scale to be interconnected with the coffee machine. The electronic scale sends the weighed data to the coffee machine. The coffee machine calculates based on the data and the liquid splash model to obtain the additional water output. This collaborative working method can ensure consistency with the brewing recipe. In order to solve the above technical problems, the present application provides a weighing compensation method, system, medium and program product for an electronic scale of a coffee machine, which is used to compensate the weighing results of the electronic scale of the coffee machine to obtain the amount of liquid water that needs to be brewed additionally, thereby improving the accuracy of completing the target brewing task.

[0035] Combine the following Figure 1 , a weighing compensation method for an electronic scale of a coffee machine in an embodiment of the present application is described: See also Figure 1 , which is a flow chart of a weighing compensation method for an electronic scale of a coffee machine in an embodiment of the present application.

[0036] S101. When it is determined that the target brewing task is completed, the current weight data detected by the electronic scale is received; after the coffee brewing process is completed, the system receives the real-time weight data from the electronic scale. The electronic scale continuously monitors the weight change on the scale plate through a high-precision sensor and transmits the measured weight value to the system in real time. The system establishes a communication connection with the electronic scale through wireless or wired means to ensure that the data sent by the electronic scale can be received in a timely and accurate manner.

[0037] For example, when a cup of American coffee with a target weight of 250g is brewed, the electronic scale detects that the total weight on the scale plate is 248g and transmits this data to the system. After receiving the current weight data sent by the electronic scale, the system compares it with the preset target weight data to determine whether the brewing result meets the expected target.

[0038] This step utilizes the high-precision weighing capability of the electronic scale, and provides a basis for subsequent weighing compensation by obtaining the actual weight data after brewing in real time. At the same time, the communication connection between the system and the electronic scale ensures the real-time and reliability of data transmission, laying the foundation for fast and accurate weighing result judgment.

[0039] S102, when it is determined that the difference between the current weight data and the target weight data is within a preset range, determining a target brewing task of the coffee machine and specification parameters of the container; When the system determines that the difference between the current weight data and the target weight data is within a preset range, it determines the target brewing task of the coffee machine and the specification parameters of the container. The target brewing task includes the target water output and water output temperature, and the specification parameters include the height and upper surface area of ​​the container.

[0040] After receiving the current weight data transmitted by the electronic scale, the system compares it with the preset target weight data. By calculating the difference between the two, the system can determine the degree of deviation between the brewing result and the expected target. In order to take into account both the weighing accuracy and the efficiency of weighing compensation, the system sets a preset weight difference range. When the weight difference falls within this range, the system considers that the brewing result is close enough to the expected target and can enter the weighing compensation process.

[0041] For example, the target weight is 250g, and the preset weight difference range is ±5g. If the current weighing weight is 248g, the weight difference is -2g, which falls within the preset range. At this time, the system determines the parameters of the target brewing task, including the target water output of 200ml and the water output temperature of 95℃. At the same time, the system obtains the specification parameters of the container through sensors or image recognition technology, such as the container height is 10cm and the upper surface area is 50cm 2 .

[0042] By introducing a preset weight difference interval, the system not only ensures the quality of the brewing results, but also avoids unnecessary compensation for minor deviations, thus improving the efficiency of weighing compensation. In addition, by obtaining detailed brewing task parameters and container specification parameters, the system provides the necessary data basis for subsequent splash model construction and compensation calculation.

[0043] S103, constructing a plurality of liquid splash models according to a plurality of water outlet speeds and specification parameters of the coffee machine; The system constructs several liquid splash models according to several water outlet speeds and specification parameters of the coffee machine. The water outlet speed corresponds to the liquid splash model one by one. The liquid splash model represents a three-dimensional model of liquid splashing at different heights in the container at the corresponding water outlet speed.

[0044] After obtaining the specification parameters of the container, the system constructs a series of liquid splash models according to the water outlet speed range of the coffee machine. The liquid splash model is a mathematical description of the splash behavior of the liquid in the container at different water outlet speeds. By establishing the relationship between the water outlet speed and the splash amount, the model can predict and estimate the splash loss under specific conditions.

[0045] For example, the system can calculate the water flow rate of the coffee machine according to the water flow rate range (such as 50ml / s to 200ml / s, with 50ml / s as the step) for a 10cm high and 50cm high 2Four liquid splash models were constructed for containers with a large surface area. Each model corresponds to a specific water outlet velocity, and a three-dimensional splash distribution diagram is generated by numerical simulation or experimental data fitting. The splash distribution diagram intuitively shows the splash amount and distribution of the liquid at different heights of the container at the water outlet velocity. The detailed explanation of this step will be described below and will not be repeated here.

[0046] This step uses technologies such as computational fluid dynamics and numerical simulation to build a splash model to quantify the impact of parameters such as water outlet speed and container specifications on splash behavior. Detailed splash distribution maps can not only predict splash losses, but also provide an optimization basis for subsequent compensation strategies. At the same time, by establishing multiple splash models, the system can adapt to different water outlet speed conditions, improving the applicability and flexibility of weighing compensation.

[0047] S104, in response to the user selecting the current water outlet speed, matching the current liquid splash model corresponding to the current water outlet speed; When the user selects the current water flow rate through the coffee machine's control panel or mobile app, the system will match the corresponding splash model from the built liquid splash model library based on the user's selection. Since each splash model corresponds to a specific water flow rate, the system can quickly and accurately find the model that matches the current water flow rate.

[0048] For example, the user selects a water outlet speed of 100ml / s. The system matches the splash model corresponding to 100ml / s from the four constructed splash models (corresponding to water outlet speeds of 50ml / s, 100ml / s, 150ml / s, and 200ml / s). This model includes the splash model of the liquid at a height of 10cm and 50cm at a water outlet speed of 100ml / s. 2 Splash distribution diagram in upper surface area container.

[0049] This step establishes a one-to-one correspondence between the water outlet speed and the splash model, thus realizing a quick and automatic matching of the splash model that best suits the current brewing conditions. The matching result provides direct data support for the subsequent calculation of splash loss, without the need for repeated modeling or manual selection, thus improving the efficiency and accuracy of weighing compensation.

[0050] S105, calculating the current water output time according to the target water output and the current water output speed; After matching the liquid splash model corresponding to the current water outlet speed, the system calculates the water outlet time required to achieve the target water outlet according to the target water outlet set by the user and the current water outlet speed. The water outlet time is an important factor affecting splash loss and evaporation. By accurately calculating the water outlet time, the system can provide a reliable time basis for subsequent compensation estimation.

[0051] For example, the target water output volume set by the user is 200ml, and the currently selected water output speed is 100ml / s. According to the formula: water output time = target water output volume ÷ water output speed, the system calculates that the water output time is 2 seconds.

[0052] This step uses simple mathematical calculations to quickly and accurately calculate the water dispensing time based on the known conditions of the target water dispensing volume and water dispensing speed. By quantifying the water dispensing time, the system can estimate the splash loss and evaporation during this time in the subsequent steps, providing important calculation parameters for weighing compensation. At the same time, the calculation of the water dispensing time also provides a basis for controlling the actual water dispensing process of the coffee machine, ensuring the time accuracy of the brewing process.

[0053] S106, determining the current evaporated water amount according to the outlet water temperature and the current outlet water duration; The system determines the current amount of evaporated water based on the outlet water temperature and the current outlet water duration. Specifically: determines the inlet water temperature; The water inlet temperature, water outlet temperature and water outlet time are input into the evaporation water volume calculation function group to obtain the current evaporation water volume.

[0054] The function group for calculating the amount of evaporated water is: M=Q×t In the formula, t is the water discharge time, Q is the current water discharge speed, M is the total water volume within t time, m is the current evaporated water volume, c is the specific heat capacity of the liquid, T out is the outlet water temperature, T in is the inlet water temperature, L v is the latent heat of vaporization of the liquid.

[0055] After obtaining the water outlet time, the system needs to determine the amount of evaporated water during the brewing process based on the water outlet temperature and water outlet time. Evaporation is one of the important factors that lead to the loss of brewing liquid, especially in the case of high-temperature brewing, the water loss caused by evaporation cannot be ignored. In order to more accurately calculate the amount of evaporated water, the system first needs to determine the water inlet temperature, that is, the initial temperature of the water before brewing.

[0056] Then, the system inputs the water inlet temperature, the set water outlet temperature and the calculated water outlet time into the preset evaporation water calculation function group. This function group is based on the basic principles of thermodynamics and fluid mechanics, and comprehensively considers multiple factors affecting evaporation, such as water outlet time, water outlet speed, water volume, specific heat capacity, water outlet temperature, water inlet temperature and latent heat of evaporation. Through a series of formulas, the estimated value of evaporated water in the current brewing process is obtained.

[0057] The following is a specific example to illustrate how the system uses the evaporated water calculation function group to obtain the evaporated water amount of the current brewing process: Assume that the water inlet temperature is 20°C, the water outlet temperature is 95°C, the water outlet time is 2 seconds, and the water outlet speed is 100 ml / s. The specific heat capacity of water is 4.2×10 3 J / (kg·℃), the latent heat of evaporation of water is 2.26×106J / kg, and the density of water is 1000kg / m 3 .

[0058] Substituting the above parameters into the last formula in the function group, the total evaporated water volume is obtained to be 0.028 ml.

[0059] It can be seen that the system uses the evaporated water calculation function group, combined with the actual brewing parameters, to obtain a relatively accurate estimate of the evaporated water. Although the actual evaporation process is also affected by other factors such as ambient humidity and airflow, this function group provides a way to quantify evaporation losses and provides an important calculation basis for weighing compensation. At the same time, the precise calculation of the evaporated water also reflects the system's comprehensive consideration and in-depth optimization of the brewing process, which helps to improve the accuracy and consistency of coffee brewing.

[0060] S107, calculating the final height of the liquid in the container after the target brewing task is completed according to the target water output and specification parameters; After estimating the amount of evaporated water, the system calculates the final height of the liquid in the container after the target brewing task is completed based on the target water output and the specifications of the container. The liquid height is a key factor affecting the amount of splashing. By calculating the final liquid height, the system can more accurately estimate the splashing loss in subsequent steps.

[0061] For example, the target water output is 200 ml and the upper surface area of ​​the container is 50 cm 2 According to the formula: liquid height = liquid volume ÷ container upper surface area, the system calculates that the target liquid height after brewing is 4 cm.

[0062] This step uses simple geometric calculations to obtain an estimate of the liquid height by dividing the liquid volume by the upper surface area of ​​the container. Although the actual liquid height is also affected by factors such as the shape of the container and the viscosity of the liquid, this formula provides a reasonable approximation for regular cylindrical containers and water-like liquids. By quantifying the liquid height, the system can find the splash volume at the corresponding height position in the splash model, thereby estimating a more accurate splash loss.

[0063] S108, determining the splash water volume according to the final height and the current liquid splash model; Based on the calculated final height of the liquid after the target brewing is completed, the system searches for the splash volume at the corresponding height position in the currently matched liquid splash model, thereby estimating the total splash water volume during this brewing process. The splash model provides a splash volume distribution map at different heights. By locating the final liquid height in the distribution map, the system can quickly and accurately obtain the corresponding splash volume estimate.

[0064] For example, the final liquid height calculated in the previous step is 4 cm. The system searches for the splash volume at a liquid height of 4 cm in the splash model at the current matching water outlet speed of 100 ml / s. According to the data in the model, the splash volume per unit time at this height is 1.5 ml / s. Based on the water outlet time of 2 seconds calculated in step S105, the system estimates that the total splash water volume is 3 ml.

[0065] This step makes full use of the liquid splash model constructed earlier. By finding the splash volume at a specific height in the model, a rapid estimation of the splash loss is achieved. This model-based estimation method not only improves the calculation efficiency, but also improves the accuracy and reliability of the estimation results by introducing influencing factors such as water outlet speed and liquid height. At the same time, the calculation of the splash water volume also provides the last key parameter for weighing compensation, allowing the system to comprehensively evaluate the liquid loss during the brewing process and provide a more accurate compensation plan.

[0066] S109: Generate a compensating brewing task, and send the compensating brewing task to the coffee machine so that the coffee machine completes the compensating brewing task.

[0067] The system generates a compensatory brewing task and sends it to the coffee machine so that the coffee machine completes the compensatory brewing task. The compensatory brewing task includes the amount of compensatory water, which is the sum of the current amount of evaporated water and the amount of splashed water. After obtaining the estimated values ​​of the amount of evaporated water and the amount of splashed water, the system adds the two together to obtain the total amount of liquid lost during the brewing process. Based on this loss, the system generates a compensatory brewing task and sends it to the coffee machine to instruct the coffee machine to dispense additional water to compensate for the liquid loss during the brewing process, ensuring that the final amount of coffee liquid is consistent with the preset target water output.

[0068] For example, in the previous step, the system estimates that the amount of evaporated water is 0.016 ml and the amount of splashed water is 3 ml. The total liquid loss is 3.016 ml. Based on this, the system generates a compensation brewing task with a compensation water output of 3.016 ml and sends the task to the coffee machine through the communication interface. After receiving the compensation brewing task, the coffee machine adds the additional water output of 3.016 ml to the original water output of 200 ml, and finally obtains 203.016 ml of coffee liquid, which is basically consistent with the preset target water output of 200 ml.

[0069] The above embodiments have the following beneficial effects: First, the target brewing task of the coffee machine and the specification parameters of the container are determined. By considering factors such as the target water output, water output temperature, and the height and upper surface area of ​​the container, the key parameters of the coffee machine brewing process can be fully mastered. Then, according to several water output speeds and specification parameters of the coffee machine, several liquid splash models are constructed. By establishing a one-to-one correspondence between the water output speed and the liquid splash model, the splashing of the liquid at different heights in the container at different water output speeds can be accurately described. When the user selects the current water output speed, the splashing of the liquid at the current water output speed can be predicted by matching the corresponding liquid splash model. Next, the current water output time is calculated according to the target water output and the current water output speed, and then the current evaporated water volume is determined according to the water output temperature and the current water output time, taking into account the evaporation loss during the water output process. At the same time, the final height of the liquid in the container after the target brewing task is completed is calculated according to the target water output and specification parameters, and then the splashing water volume is determined according to the final height and the current liquid splash model, taking into account the liquid loss caused by splashing. Finally, a compensatory brewing task is generated. The compensation water volume is the sum of the current evaporated water volume and splashed water volume. By compensating for the water loss caused by evaporation and splashing, the amount of coffee liquid finally brewed by the coffee machine can accurately reach the preset target water output, thereby improving the brewing accuracy.

[0070] The current surveillance video captured by the camera is obtained, and the machine outline of the coffee machine and the container outline of the container are detected using edge detection technology, so that the position and shape of the coffee machine and the container can be automatically identified. Then, by determining the size parameters of the coffee machine and determining the size conversion ratio based on the machine outline and size parameters, the conversion relationship between the pixel size in the surveillance video and the actual physical size is established. Finally, the specification parameters of the container are determined based on the size conversion ratio and the container outline, and the key parameters such as the height and upper surface area of ​​the container are automatically measured. The efficiency and accuracy of parameter acquisition are improved. By accurately obtaining the specification parameters of the container, important input parameters are provided for the subsequent construction of an accurate liquid splash model, which is conducive to further improving the weighing compensation accuracy of the coffee machine electronic scale.

[0071] First, by determining the water inlet temperature, the water temperature state of the coffee machine at the beginning of the brewing process can be obtained. Then, the water inlet temperature, water outlet temperature and water outlet time are passed as input parameters to the evaporation water calculation function group, and the current evaporation water volume is obtained through the calculation of the function group. This method fully considers the key factors affecting the evaporation water volume, including water temperature difference and water outlet time. By establishing the mathematical relationship between the evaporation water volume and these factors, the water evaporation loss in the brewing process can be quantitatively calculated. Compared with simple empirical estimation, this method introduces physical and mathematical models, which can more accurately predict the evaporation water volume and provide reliable data support for subsequent compensation brewing tasks. By accurately calculating the evaporation water volume, the corresponding amount of water can be supplemented in the compensation brewing task to ensure that the final amount of coffee liquid obtained by brewing meets the expected target, thereby improving the weighing accuracy of the coffee machine electronic scale. At the same time, by introducing the water inlet temperature and water outlet temperature, this method considers the influence of water temperature changes on evaporation, making the calculation of evaporation water volume more comprehensive and accurate.

[0072] The specific form of the function group for calculating the amount of evaporated water is given. By setting these physical parameters reasonably, the amount of evaporated water can be estimated for different types of liquids (such as water, milk, etc.), expanding the scope of application of the method. At the same time, by considering the influence of water temperature differences, the formula can reflect the influence of water temperature changes on the evaporation rate, making the calculation results more dynamic and accurate.

[0073] After determining that the target brewing task is completed, the current weight data obtained by the electronic scale detection is compared with the target weight data to determine whether the difference between the two is within the preset acceptable range. Only when the weight difference meets the requirements will the subsequent weighing compensation step be executed. This method provides a means to verify the quality of brewing task completion by introducing a weight detection and comparison mechanism. In practical applications, due to the influence of various factors, such as weighing errors, environmental interference, etc., even if the preset brewing task is completed, the actual weight of the coffee liquid may deviate from the target weight. By setting a preset interval for the weight difference, it can be determined whether the current brewing result meets the user's expected requirements. If the weight difference exceeds the preset interval, it means that the brewing task has not achieved the expected effect, and adjustments or re-brews may be required.

[0074] In the following, another embodiment is combined to further describe the step S103 in the above embodiment to construct a plurality of liquid splashing models according to a plurality of water outlet speeds and specification parameters of the coffee machine. Figure 2 , another weighing compensation method of an electronic scale for a coffee machine in an embodiment of the present application is described: See also Figure 2 , is another flow chart of a weighing compensation method for an electronic scale for a coffee machine in an embodiment of the present application.

[0075] S201, determining the physical properties of the liquid; The system determines the physical properties of the liquid, including density and viscosity. Before building a liquid splash model, the system needs to first determine the physical properties of the liquid used, mainly including the two key parameters of the liquid's density and viscosity. The physical properties of the liquid directly affect its behavioral characteristics during the splash process, such as the splash shape, speed, range, etc. Therefore, accurate acquisition of liquid physical property data is an important prerequisite for splash simulation and model building.

[0076] The system can determine the density and viscosity of the liquid in a variety of ways. One method is to directly look up the standard physical property values ​​of the corresponding liquid from the material property database. For example, for pure water, at normal temperature and pressure, its density is about 1000kg / m 3 , the viscosity coefficient is about 1.0×10 -3 Pa·s. Another method is to obtain the physical property data of the liquid sample through experimental measurement. The system can use a precise density meter and viscometer to measure the actual liquid sample to obtain more accurate and practical physical property values.

[0077] Obtaining accurate data on the physical properties of liquids can improve the simulation accuracy and reliability of subsequent splash models. Taking density as an example, the density of a liquid determines its inertial response characteristics when subjected to external forces. The greater the density, the greater the inertia of the liquid, and the splashing shape and velocity distribution will also change accordingly. The viscosity coefficient of the liquid affects the interaction force and dissipation characteristics between the layers inside the liquid. The greater the viscosity coefficient, the more obvious the velocity attenuation and droplet coalescence effect when the liquid splashes.

[0078] S202. Establish a set of nonlinear partial differential equations based on the principles of fluid dynamics and the physical properties of liquids; The system establishes a set of nonlinear partial differential equations based on the principles of fluid dynamics and the physical properties of the liquid. The nonlinear partial differential equations are: In the formula, u is the fluid velocity field vector, t is time, ρ is density, v is viscosity coefficient, p is the fluid pressure field, and f is the external force.

[0079] After determining the physical properties of the liquid, the system needs to establish a set of nonlinear partial differential equations to describe the splashing behavior of the liquid based on the principles of fluid dynamics and the acquired liquid physical property data. Fluid dynamics is the science that studies the laws of fluid motion. Its basic principles can be expressed by a set of partial differential equations, including the continuity equation, momentum equation, and energy equation. By solving these equations, the spatiotemporal distribution of physical quantities such as the velocity field, pressure field, and temperature field of the fluid can be obtained, and the motion behavior of the fluid can be predicted and analyzed.

[0080] In the embodiment of the present application, the system focuses on the velocity field and pressure field distribution of the liquid during the splashing process. Therefore, the system chooses to use the following two basic fluid dynamics equations, and combines the known liquid density and viscosity coefficient to construct a nonlinear partial differential equation group: The momentum equation describes how the velocity of a liquid particle changes with time under the action of external forces, pressure gradient forces, and viscous forces. The left side of the equation represents the acceleration of the liquid particle, and the right side represents the pressure gradient force, viscous force, and external force per unit volume of liquid. The continuity equation indicates that the liquid satisfies the conservation of mass during motion, that is, the sum of the volume change rate of the liquid element and its surface mass flux is zero.

[0081] By solving these two partial differential equations simultaneously and combining appropriate boundary conditions and initial conditions, the system can obtain the velocity and pressure distribution of the liquid at any time and position during the splashing process, and then conduct a complete mathematical description and predictive analysis of the splashing behavior of the liquid.

[0082] For example, at a certain moment, the liquid splashes to a point 0.5 m away from the outlet. It is known that the density of the droplet at this time is 1000 kg / m 3 , the viscosity coefficient is 1.0×10-3Pa·s. Under the combined effect of gravity and surface tension, the splash trajectory and velocity distribution of the droplet can be obtained by solving the above nonlinear partial differential equations. Assuming the initial velocity of the droplet is 2m / s and the initial pressure is 1 atmosphere, it can be obtained through numerical solution that at 0.5m, the velocity of the droplet is about 1.2m / s and the pressure is about 0.8 atmosphere, showing obvious characteristics of velocity attenuation and pressure reduction.

[0083] S203, using a numerical method to solve the nonlinear partial differential equations to obtain model building parameters; After establishing a set of nonlinear partial differential equations describing the liquid splashing behavior, the system needs to use numerical methods to solve the equations to obtain a series of model parameters that reflect the liquid splashing characteristics. Due to the complexity of the actual splashing process, the liquid motion equations are usually difficult to obtain analytical solutions, so the use of numerical methods for approximate solutions has become an efficient and feasible option. Numerical methods discretize the continuous space-time domain and approximate the equations at a limited number of discrete nodes to obtain numerical solutions of physical quantities at discrete nodes.

[0084] In the embodiment of the present application, the system can use a variety of mainstream numerical methods such as finite element method, finite difference method, finite volume method, etc. to solve the partial differential equations of liquid splash. Taking the finite element method as an example, its basic idea is to divide the solution area into several small units, select an appropriate interpolation function on each unit, convert the partial differential equation into a system of algebraic equations, and obtain the numerical solution of the physical quantity at the discrete nodes by solving the algebraic equations.

[0085] Specifically, the system first divides the liquid splash area into several tetrahedral or hexahedral units, and selects a quadratic or cubic polynomial as the interpolation function of velocity and pressure on each unit. Then, the interpolation function is substituted into the partial differential equations, and combined with the Galerkin weighted residual method, a nonlinear algebraic equation system about the discrete values ​​of velocity and pressure is obtained. Finally, a nonlinear solution algorithm such as Newton iteration is used to obtain the numerical solution of velocity and pressure at each discrete node.

[0086] These numerical solutions constitute a series of model parameters that describe the liquid splashing behavior, including the velocity and direction of the liquid at any position and at any time in the splashing area, the pressure, etc. By analyzing and visualizing these model parameters, the system can quantitatively evaluate the characteristics of the liquid splashing shape, range, velocity distribution, etc. at different time and space positions, and predict the evolution trend of the splashing behavior.

[0087] For example, for a liquid splash case, the system uses the finite element method to solve the splash partial differential equations and obtains the following model parameters: at a position 0.1m away from the water outlet and at an angle of 30° to the water outlet direction, 0.2s after splashing, the droplet velocity is about 1.5m / s, and the velocity direction is at an angle of 45° to the horizontal direction; the pressure at this position is about 0.6 atmospheres. These numerical model parameters quantitatively describe the velocity, direction, and force characteristics of the droplet splash motion at this position, providing a basis for the detailed analysis and prediction of splash behavior.

[0088] S204, using computational fluid dynamics software to perform simulation operations according to model establishment parameters to obtain a liquid splash model.

[0089] After solving the nonlinear partial differential equations by numerical methods and obtaining a series of model parameters that reflect the characteristics of liquid splash, the system needs to import these parameters into professional computational fluid dynamics (CFD) software and perform simulation operations on the software platform to finally obtain a complete liquid splash model. CFD software is an important tool for simulating and analyzing complex fluid flow problems. It can vividly and vividly display the detailed characteristics of liquid movement by numerically solving fluid dynamics equations and combining visualization and interactive functions, and quantitatively analyze and predict the flow process.

[0090] In the embodiment of the present application, the system can select mainstream CFD software such as ANSYS Fluent, COMSOL Multiphysics, OpenFOAM, etc. to build and simulate the liquid splash model. Taking ANSYS Fluent as an example, the system first builds the geometric model and mesh model of liquid splash in the pre-processing module of the software according to the actual outlet structure and environmental parameters. Then, the model parameters solved in the previous step, such as the discrete values ​​of velocity and pressure, are imported into the solver settings of Fluent as the initial conditions and boundary conditions of the liquid motion.

[0091] Next, the system sets the solution parameters of the liquid splash simulation in Fluent, such as time step, number of iterations, convergence accuracy, etc., and selects appropriate physical models, such as multiphase flow model, turbulence model, etc. After completing the solver settings, the system starts the calculation and solution process of Fluent. The software will automatically perform numerical simulation of the liquid splash process based on the imported model parameters and the set solution parameters, and calculate the numerical solutions of physical quantities such as velocity, pressure, volume fraction, etc. of the liquid at each discrete node in the splash area at different times.

[0092] After the calculation is completed, the system can use Fluent's powerful post-processing function to visualize and extract data from the simulation results of the liquid splash model. For example, by drawing velocity vector diagrams, pressure cloud diagrams, liquid volume fraction diagrams, etc., the movement form, velocity distribution and other characteristics of the liquid during the splash process can be intuitively displayed; by extracting physical quantity data at a specific position or time, key indicators such as velocity change, pressure change, and splash volume of the liquid splash can be quantitatively analyzed.

[0093] Take the CFD simulation results of a liquid splash case as an example. By analyzing the velocity vector diagram simulated in Fluent, it is found that at 0.2m below the outlet, the liquid splash shows obvious velocity drop and direction deflection characteristics. The droplet velocity can reach up to 2.5m / s. As the splash distance increases, the velocity gradually decays and drops to about 1.2m / s at 0.5m. At the same time, the direction of droplet movement also gradually deflects from the initial parallel to the water outlet direction to a 60° angle with the ground. These simulation results not only verify the accuracy of the model parameters obtained by solving the nonlinear partial differential equations, but also provide an intuitive basis for the quantitative understanding of liquid splash characteristics.

[0094] The above embodiments have the following beneficial effects: When constructing the liquid splash model, the physical properties of the liquid, including key parameters such as density and viscosity coefficient, were fully considered to ensure the physical rationality of the model. By introducing the principles of fluid dynamics and using a group of nonlinear partial differential equations to describe the motion behavior of the liquid, a rigorous mathematical model was established. The group of nonlinear partial differential equations can comprehensively consider factors such as the velocity field, pressure field, and external forces of the liquid to fully characterize the flow characteristics of the liquid. By using numerical methods to solve the group of nonlinear partial differential equations, accurate model establishment parameters were obtained, including the distribution of physical quantities such as the fluid velocity field vector and pressure field. On this basis, computational fluid dynamics software was used for simulation operations to obtain a highly simulated liquid splash model, which can more accurately describe the splash behavior of the liquid in the container and provide a reliable theoretical basis for compensating for the amount of splashing water.

[0095] The specific form of the nonlinear partial differential equations is given, including physical quantities such as fluid velocity field vector u, time t, density ρ, viscosity coefficient ν, pressure field p and external force f. This set of equations comprehensively considers various physical factors of liquid flow and can accurately describe the movement behavior of the liquid. Among them, the first equation describes the change of the fluid velocity field vector u with time t, taking into account the influence of the fluid's inertial force, pressure gradient force, viscosity force and external force. The second equation represents the incompressibility of the fluid, that is, the fluid satisfies the law of conservation of mass during movement. By solving this set of nonlinear partial differential equations, the distribution of the fluid velocity field vector and pressure field in space and time can be obtained, thereby accurately characterizing the flow characteristics of the liquid.

[0096] The following describes the system in the embodiment of the present invention from the perspective of hardware processing. Figure 3 , which is a schematic diagram of the physical device structure of a weighing compensation system for a coffee machine electronic scale provided in an embodiment of the present application.

[0097] It should be noted that Figure 3The structure of the system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0098] like Figure 3 As shown, the system includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part 308 to the random access memory (RaM) 303, such as executing the method in the above embodiment. In RaM303, various programs and data required for system operation are also stored. CPU301, ROM302 and RaM303 are connected to each other through a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0099] The following components are connected to the I / O interface 305: an input section 306 including a camera, an infrared sensor, etc.; an output section 307 including a liquid crystal display (LCD) and a speaker, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LaN (Local area Network) card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.

[0100] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 309, and / or installed from a removable medium 311. When the computer program is executed by a central processing unit (CPU) 301, various functions defined in the present invention are performed.

[0101] It should be noted that the computer-readable medium shown in the embodiment of the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.

[0102] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present invention. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0103] As another aspect, the present invention further provides a computer-readable storage medium, which may be included in the system described in the above embodiment; or may exist independently without being assembled into the system. The above storage medium carries one or more computer programs, and when the above one or more computer programs are executed by a processor of a system, the system implements the method provided in the above embodiment.

[0104] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0105] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0106] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0107] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A weighing compensation method for a coffee machine electronic scale, characterized in that: include: Determining a target brewing task of the coffee machine and specification parameters of a container, wherein the target brewing task includes a target water output volume and water output temperature, and the specification parameters include a height and an upper surface area of ​​the container; Constructing a plurality of liquid splash models according to a plurality of water outlet speeds of the coffee machine and the specification parameters, wherein the water outlet speeds correspond to the liquid splash models one by one, and the liquid splash models represent three-dimensional models of liquid splashing at different heights in the container at corresponding water outlet speeds; In response to a user selecting a current water outlet speed, matching a current liquid splashing model corresponding to the current water outlet speed; The current water output time is calculated according to the target water output and the current water output speed; Determine the current evaporated water amount according to the water outlet temperature and the current water outlet time; Calculate the final height of the liquid in the container after the target brewing task is completed according to the target water output and the specification parameters; Determine the splash water volume according to the final height and the current liquid splash model; A compensating brewing task is generated and sent to the coffee machine so that the coffee machine completes the compensating brewing task, wherein the compensating brewing task includes a compensating water amount, which is the sum of the current evaporated water amount and the splashing water amount.

2. The method according to claim 1, characterized in that: Determining the specification parameters of the container specifically includes: Acquire a current monitoring video captured by a camera, wherein the current monitoring video includes the coffee machine and the container; detect the current monitoring video using edge detection technology to obtain a machine outline of the coffee machine and a container outline of the container; Determining the size parameters of the coffee machine, and determining a size conversion ratio according to the machine profile and the size parameters; The specification parameters of the container are determined according to the size conversion ratio and the container outline.

3. The method according to claim 1, characterized in that The step of constructing a plurality of liquid splash models according to the plurality of water outlet speeds of the coffee machine and the specification parameters specifically includes: Determining physical properties of the liquid, wherein the physical properties of the liquid include density and viscosity coefficient; Establishing a set of nonlinear partial differential equations based on the principles of fluid dynamics and the physical properties of the liquid; Solving the nonlinear partial differential equations using a numerical method to obtain model building parameters, wherein the model building parameters include a fluid velocity field vector and a pressure field; The simulation operation is performed using computational fluid dynamics software according to the model establishment parameters to obtain a liquid splash model.

4. The method according to claim 3, characterized in that The nonlinear partial differential equations are: In the formula, u is the fluid velocity field vector, t is the time, ρ is the density, v is the viscosity coefficient, p is the fluid pressure field, and f is the external force.

5. The method according to claim 1, characterized in that The determining the current evaporated water amount according to the water outlet temperature and the current water outlet time specifically includes: Determine the inlet water temperature; The water inlet temperature, the water outlet temperature and the water outlet time are input into the evaporation water amount calculation function group to obtain the current evaporation water amount.

6. The method according to claim 5, characterized in that The evaporated water calculation function group is: M=Q×t In the formula, t is the water discharge time, Q is the current water discharge speed, M is the total water volume within t time, m is the current evaporated water volume, c is the specific heat capacity of the liquid, and T out is the outlet water temperature, the T in is the inlet water temperature, the L v is the latent heat of vaporization of the liquid.

7. The method according to claim 1, characterized in that Before determining the target brewing task of the coffee machine and the specification parameters of the container, the method further includes: When it is determined that the target brewing task is completed, receiving current weight data detected by an electronic scale; When it is determined that the difference between the current weight data and the target weight data is within a preset range, the step of determining the target brewing task of the coffee machine and the specification parameters of the container is performed.

8. A weighing compensation system for an electronic scale of a coffee machine, characterized in that: The system comprises: One or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the system to execute the method as described in any one of claims 1-7.

9. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on a system, the system is caused to execute the method according to any one of claims 1 to 7.

10. A computer program product, characterized in that When the computer program product is run on a system, the system is caused to execute the method according to any one of claims 1 to 7.