Method and device for adding water into medicine decocting twice based on twice weighing of medicine decocting barrel

By using a decoction pot to weigh twice and an artificial intelligence adaptive learning method, the problem of accurately calculating the amount of water to add during the second decoction of Chinese medicine has been solved. This has enabled the automation and standardization of the decoction process, ensuring the accuracy of the liquid volume and the stability of the concentration, and improving the quality and efficiency of decoction.

CN121845945APending Publication Date: 2026-04-14CHENGDU YH INTELLIGENT EQUIP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-02-13
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

In existing technologies, the calculation of the amount of water added for the second decoction of traditional Chinese medicine relies on empirical estimation or simple deduction, without taking into account the actual decoction situation. This results in extremely poor accuracy in the calculation of the amount of water added for the second decoction, affecting the total amount and concentration stability of the final mixed liquid, and thus affecting the clinical efficacy of the medicine.

Method used

The method of weighing the decoction pot twice is adopted. After the first decoction, the first and second total weights of the decoction pot are determined to calculate the actual amount of medicine in the first decoction. The amount of water to be added for the second decoction is determined according to the target prescription requirements and the actual amount of medicine. The amount of water to be added for the first decoction is calculated by combining artificial intelligence adaptive learning method, so as to accurately control the decoction process of the second decoction.

Benefits of technology

It enables precise calculation of the amount of water added for the second decoction, ensuring that the total amount of the final mixed liquid closely matches the theoretical requirements of the prescription, thereby improving the quality and efficiency of decoction, reducing human error, and enhancing the effectiveness of clinical medication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121845945A_ABST
    Figure CN121845945A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for adding water into medicine decocting twice based on twice weighing of a medicine decocting bucket, and the method comprises the steps: under the condition that the medicine decocting bucket completes primary decocting, determining the first total weight of the medicine decocting bucket, the medicine decocting bucket is used for completing medicine liquid decocting of a target prescription, and the first total weight of the medicine decocting bucket is greater than the first total weight of the medicine decocting bucket; the first total weight comprises the weight of a first decoction liquid obtained after the first decoction is carried out in the medicine decocting barrel, and the first decoction is carried out in the medicine decocting barrel; extracting the first decoction from the medicine decocting barrel through a slag-liquid separator, and determining the second total weight of the medicine decocting barrel again; according to the first total weight and the second total weight, calculating the actual liquid medicine amount of the first decoction obtained in the first decoction process; according to the required medicine liquid amount of the target prescription and the actual medicine liquid amount, the secondary decoction water adding amount is determined, water is injected into the medicine decocting barrel according to the secondary decoction water adding amount, secondary decoction is conducted on the medicine decocting barrel, and medicine liquid decoction comprises secondary decoction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automated control technology for traditional Chinese medicine decoction, and more specifically, to a method and apparatus for adding water during the second decoction of traditional Chinese medicine based on two weighings in the decoction tank. Background Technology

[0002] The second decoction of traditional Chinese medicine is an indispensable step to ensure the full dissolution of the effective components of the medicinal slices and to guarantee the efficacy and dosage of the decoction. The accuracy of the amount of water added in the second decoction directly determines the total dosage and concentration stability of the final mixed decoction. Current methods for calculating the amount of water added in the second decoction mostly rely on empirical estimation or simple derivation based on the theoretical amount of decoction from the first decoction, without dynamic adjustment based on actual decoction conditions, resulting in extremely poor accuracy.

[0003] The existing methods for adding water for the second decoction on the market all rely on the theoretical water absorption rate of the medicinal materials and the theoretical amount of medicinal liquid in the first decoction for derivation. Affected by variables such as the origin of the medicinal materials, storage environment, and decoction conditions, the theoretical data deviates significantly from the actual output and cannot reflect the actual output of the first decoction. This leads to the distortion of the calculation of the amount of water added for the second decoction, and the total amount of mixed medicinal liquid deviates from the theoretical requirements of the prescription, affecting the clinical efficacy of medication.

[0004] There is currently no effective solution to the problem that the amount of water added during the second decoction is difficult to calculate accurately, which leads to the total amount of the final mixed medicine deviating from the theoretical requirements of the prescription and affecting the clinical efficacy.

[0005] Therefore, it is necessary to improve the relevant technology to overcome the aforementioned defects. Summary of the Invention

[0006] This application provides a method and apparatus for adding water during the second decoction of Chinese medicine based on two weighings in a decoction pot, in order to at least solve the problem in related technologies where the amount of water added during the second decoction is difficult to calculate accurately, resulting in the total amount of the final mixed medicine deviating from the theoretical requirements of the prescription and affecting the clinical efficacy of the medicine.

[0007] According to one aspect of the embodiments of this application, a method for adding water for the second decoction of Chinese medicine based on two weighings in a decoction pot is provided, comprising: determining a first total weight of the decoction pot after the first decoction has been completed, wherein the decoction pot is used to complete the decoction of the target prescription, the first total weight includes the weight of the first decoction obtained after the first decoction in the decoction pot, the decoction of the prescription includes the first decoction; extracting the first decoction from the decoction pot using a residue-liquid separator, and determining a second total weight of the decoction pot again; calculating the actual volume of the first decoction obtained during the first decoction process based on the first total weight and the second total weight; determining the amount of water to be added for the second decoction based on the required volume of the prescription and the actual volume of the prescription, and adding water to the decoction pot according to the amount of water to be added for the second decoction, wherein the decoction of the prescription includes the second decoction.

[0008] In an exemplary embodiment, before determining the first total weight of the decoction pot after it has completed one decoction, the method further includes: performing drug detail analysis on the target prescription to obtain the drug details of the target prescription, wherein the drug details include: the names of multiple drugs and the weights of the multiple drugs; using the drug details as input, calculating the amount of water to be added for one decoction of the target prescription through an artificial intelligence adaptive learning method; adding water to the decoction pot according to the amount of water to be added for one decoction, and performing the one decoction in the decoction pot.

[0009] In an exemplary embodiment, determining the first total weight of the decoction barrel after the first decoction is completed includes: transferring the decoction barrel to the second decoction water addition station by a robotic arm after the first decoction is completed; weighing the decoction barrel by a weighing module integrated in the second decoction water addition station to obtain the first total weight.

[0010] In an exemplary embodiment, the process of extracting the first decoction liquid from the decoction barrel using a residue-liquid separator and determining the second total weight of the decoction barrel again includes: transferring the decoction barrel from the second decoction water addition station to the residue-liquid separator using the robotic arm; squeezing the residue in the decoction barrel using the residue-liquid separator to fully extract the first decoction liquid; transporting the first decoction liquid through a pipeline to a packaging machine for temporary storage; and transferring the decoction barrel back to the second decoction water addition station using the robotic arm for weighing to obtain the second total weight.

[0011] In an exemplary embodiment, determining the amount of water to be added for the second decoction based on the required amount of medicinal liquid in the target prescription and the actual amount of medicinal liquid includes: calculating the amount of water to be added for the second decoction using the formula E=D-C+F, where E is the amount of water to be added for the second decoction, D is the required amount of medicinal liquid, C is the actual amount of medicinal liquid, C is the difference between the first total weight and the second total weight, F is the amount of medicinal liquid retained as a sample, and F is determined based on the decoction environment parameters.

[0012] In an exemplary embodiment, after adding water to the decoction barrel according to the amount of water added for the second decoction and performing the second decoction in the decoction barrel, the method further includes: after the second decoction is completed in the decoction barrel, extracting the second decoction liquid from the decoction barrel using the residue-liquid separator; transporting the second decoction liquid through a pipeline to the packaging machine, mixing it with the first decoction liquid to obtain a mixed liquid; and heating the mixed liquid to boiling to obtain the final decoction liquid of the target prescription.

[0013] In an exemplary embodiment, before determining the first total weight of the decoction barrel after the first decoction has been completed, the method further includes: adding the target medicinal materials corresponding to the target prescription to the decoction barrel and fully soaking the target medicinal materials in the decoction barrel; after the target medicinal materials have been fully soaked, transferring the decoction barrel to a first decoction station using a robotic arm, and performing the first decoction in the decoction barrel at the first decoction station; wherein, water is added to the decoction barrel according to the amount of water added for the second decoction, and the decoction is prepared. After the second decoction is performed in the decoction barrel, the method further includes: adding water to the decoction barrel according to the amount of water added for the second decoction, and transferring the decoction barrel to the second decoction station by the robotic arm, and performing the second decoction in the decoction barrel at the second decoction station; after the second decoction is completed in the decoction barrel, extracting the second decoction liquid from the decoction barrel by the residue-liquid separator; transporting the second decoction liquid through a pipeline to a packaging machine that stores the first decoction liquid, packaging the final decoction liquid in the packaging machine, and cleaning the decoction barrel.

[0014] According to another aspect of the embodiments of this application, a decoction second decoction water addition device based on two weighings in a decoction barrel is also provided, comprising: a first determining module, used to determine a first total weight of the decoction barrel after the first decoction has been completed, wherein the decoction barrel is used to complete the decoction of the target prescription, and the first total weight includes the weight of the first decoction obtained after the first decoction is performed in the decoction barrel, and the decoction includes the first decoction; a second determining module, used to extract the first decoction from the decoction barrel through a residue-liquid separator, and determine a second total weight of the decoction barrel again; a calculation module, used to calculate the actual amount of the first decoction obtained in the first decoction process based on the first total weight and the second total weight; and a decoction module, used to determine the amount of water to be added for the second decoction based on the required amount of the target prescription and the actual amount of the first decoction, and to add water to the decoction barrel according to the amount of water to be added for the second decoction, wherein the decoction includes the second decoction.

[0015] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, wherein the computer program is configured to execute the above-described decoction method for adding water for the second decoction based on two weighings in the decoction pot when it is run.

[0016] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above-mentioned decoction and water addition method based on two weighings in the decoction pot through the computer program.

[0017] According to another aspect of the embodiments of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps of the methods described in various embodiments of this application.

[0018] This application addresses the following: After the first decoction of a target prescription is completed in the decoction pot, the first total weight of the decoction pot is determined, including the weight of the first decoction liquid obtained. The first decoction liquid is then extracted from the decoction pot using a residue-liquid separator, and the second total weight of the decoction pot is determined again. The actual volume of the first decoction liquid is determined based on the first and second total weights. Finally, the amount of water to be added for the second decoction is determined based on the required volume of liquid in the target prescription and the actual volume of liquid. Water is then added to the decoction pot for the second decoction. This approach, employing a two-weighing mechanism for the decoction pot, directly captures the actual output of the first decoction, eliminating reliance on theoretical data and accurately calculating the amount of water to be added for the second decoction. This solves the problem in related technologies where the amount of water added for the second decoction is difficult to calculate accurately, leading to a deviation of the final mixed liquid volume from the theoretical prescription requirements and affecting clinical efficacy. Attached Figure Description

[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a hardware structure block diagram of a computer terminal based on a decoction method of adding water for the second decoction based on two weighings in a decoction pot, according to an embodiment of this application.

[0022] Figure 2 This is a flowchart of a decoction method for adding water during the second decoction based on two weighings in a decoction pot, according to an embodiment of this application.

[0023] Figure 3 This is a flowchart illustrating a method for precisely adding water during the second decoction of Chinese medicine based on two weighings in a medicine barrel, according to an embodiment of this application.

[0024] Figure 4 This is a flowchart illustrating a method for precisely adding water during the second decoction of Chinese medicine based on two weighings in a medicine barrel, according to an embodiment of this application.

[0025] Figure 5This is a structural block diagram of a decoction and water addition device based on two weighings in a decoction pot, according to an embodiment of this application. Detailed Implementation

[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0027] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0028] The methods and embodiments provided in this application can be executed on a computer terminal or similar computing device. Taking running on a computer terminal as an example, Figure 1 This is a hardware structure block diagram of a computer terminal based on a decoction method involving two weighings in a decoction pot and the addition of water during the second decoction, according to an embodiment of this application. Figure 1 As shown, a computer terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a central processing unit (CPU) or a programmable gate array (FPGA)) and a memory 104 for storing data are also shown. The computer terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the computer terminal described above. For example, the computer terminal may also include components that are more complex than those described above. Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0029] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the data integration method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thus implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to a computer terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0030] The computer terminal uses a wireless network provided by a communications provider. In one example, transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0031] This embodiment provides a method for adding water during the second decoction of Chinese medicine based on weighing the medicine twice in a decoction pot. Figure 2 This is a flowchart of a decoction method for adding water during the second decoction based on two weighings in a decoction pot, according to an embodiment of this application. Figure 2 As shown, the process includes the following steps:

[0032] Step S202: After the decoction barrel has completed one decoction, determine the first total weight of the decoction barrel, wherein the decoction barrel is used to complete the decoction of the target prescription, and the first total weight includes the weight of the decoction obtained after the decoction barrel has completed the first decoction, and the decoction includes the first decoction.

[0033] Step S204: Extract the first decoction liquid from the decoction barrel using a residue-liquid separator, and determine the second total weight of the decoction barrel again;

[0034] Step S206: Calculate the actual volume of the decoction obtained from the first total weight and the second total weight.

[0035] Step S208: Determine the amount of water to be added for the second decoction based on the required amount of medicinal liquid in the target prescription and the actual amount of medicinal liquid, and add water to the decoction pot according to the amount of water to be added for the second decoction, wherein the decoction includes the second decoction.

[0036] This application addresses the following: After the first decoction of a target prescription is completed in the decoction pot, the first total weight of the decoction pot is determined, including the weight of the first decoction liquid obtained. The first decoction liquid is then extracted from the decoction pot using a residue-liquid separator, and the second total weight of the decoction pot is determined again. The actual volume of the first decoction liquid is determined based on the first and second total weights. Finally, the amount of water to be added for the second decoction is determined based on the required volume of liquid in the target prescription and the actual volume of liquid. Water is then added to the decoction pot for the second decoction. This approach, employing a two-weighing mechanism for the decoction pot, directly captures the actual output of the first decoction, eliminating reliance on theoretical data and accurately calculating the amount of water to be added for the second decoction. This solves the problem in related technologies where the amount of water added for the second decoction is difficult to calculate accurately, leading to a deviation of the final mixed liquid volume from the theoretical prescription requirements and affecting clinical efficacy.

[0037] In an exemplary embodiment, before determining the first total weight of the decoction pot after it has completed one decoction, the method further includes: performing drug detail analysis on the target prescription to obtain the drug details of the target prescription, wherein the drug details include: the names of multiple drugs and the weights of the multiple drugs; using the drug details as input, calculating the amount of water to be added for one decoction of the target prescription through an artificial intelligence adaptive learning method; adding water to the decoction pot according to the amount of water to be added for one decoction, and performing the one decoction in the decoction pot.

[0038] For the target prescription, the drug details are first analyzed, including the specific names and weights of each Chinese herb. Then, an artificial intelligence adaptive learning method is used. This method builds a model based on a large amount of historical decoction data, considers the characteristics of different herbs, calculates the amount of water to be added for the first decoction of the prescription, accurately matches the water absorption requirements of the herbs with the decoction process, and guides the precise injection of water into the decoction pot to start the first decoction process.

[0039] It should be noted that the key to analyzing drug details lies in understanding the composition of traditional Chinese medicine prescriptions. The name and weight of each herb are core information that directly affects the accuracy of subsequent water addition calculations. The core advantage of the artificial intelligence adaptive learning method is that it can learn from past decoction cases, continuously optimize the water addition prediction algorithm, reduce reliance on theoretical water absorption rates, and improve the personalization and accuracy of water addition. The calculated water addition for the first decoction directly guides the water filling operation of the decoction pot, ensuring that the herbs are fully soaked and the effective components are released during the first decoction.

[0040] This embodiment, through refined drug detail analysis and intelligent prediction of water addition for the first decoction, combined with a second decoction water addition strategy of weighing the medicine barrel twice, can significantly improve the accuracy of water addition, ensuring that the final liquid volume is highly consistent with the prescription requirements. It effectively overcomes the deviation between theoretical data and actual output in traditional decoction methods, realizes the automation and standardization of the Chinese medicine decoction process, and improves the quality and efficiency of decoction.

[0041] In an exemplary embodiment, determining the first total weight of the decoction barrel after the first decoction is completed includes: transferring the decoction barrel to the second decoction water addition station by a robotic arm after the first decoction is completed; weighing the decoction barrel by a weighing module integrated in the second decoction water addition station to obtain the first total weight.

[0042] The robotic arm is responsible for smoothly transferring the decoction barrel after the first decoction to a specific water-adding station for the second decoction, ensuring that the weighing process is not affected by external forces. The weighing module is integrated into the water-adding station and has high-precision measurement capabilities with an error controlled within ±1g. It can accurately determine the total weight of the decoction barrel and provide reliable data support for the subsequent calculation of water addition.

[0043] The effective combination of the robotic arm and the weighing module makes the measurement of the weight after the first decoction more accurate and efficient, reducing the errors that may be caused by human operation. At the same time, the high-precision weighing module can capture subtle weight changes, laying a solid foundation for finely controlling the amount of water added for the second decoction.

[0044] By using a robotic arm in conjunction with a high-precision weighing module, this embodiment can accurately obtain the first total weight of the decoction pot after the first decoction, effectively improving the accuracy of the subsequent second decoction water addition process, thereby ensuring that the final amount of liquid meets expectations and improving the quality and efficiency of decoction.

[0045] In an exemplary embodiment, the process of extracting the first decoction liquid from the decoction barrel using a residue-liquid separator and determining the second total weight of the decoction barrel again includes: transferring the decoction barrel from the second decoction water addition station to the residue-liquid separator using the robotic arm; squeezing the residue in the decoction barrel using the residue-liquid separator to fully extract the first decoction liquid; transporting the first decoction liquid through a pipeline to a packaging machine for temporary storage; and transferring the decoction barrel back to the second decoction water addition station using the robotic arm for weighing to obtain the second total weight.

[0046] The robotic arm transports the decoction barrel, which has already been boiled once, to the residue-liquid separator. The separator efficiently extracts the first decoction liquid by squeezing the residue, ensuring complete separation of the liquid and transferring it through pipelines to the packaging machine for external storage. This process also minimizes the amount of liquid residue, improving the accuracy of subsequent weighing. Subsequently, the robotic arm moves the decoction barrel back to the second decoction water addition station. At this point, the barrel contains only residue and a small amount of attached liquid. The second total weight obtained by the weighing module provides crucial data for accurately calculating the amount of water to be added for the second decoction.

[0047] It should be noted that the function of the slag-liquid separator is to completely separate the medicinal dregs and the medicinal liquid. Its design principle is based on physical compression, which can effectively avoid the waste of medicinal liquid and ensure the full utilization of the medicinal liquid components. The automated operation of the robotic arm ensures the precise movement of the decoction pot between each work station, reduces the loss of medicinal liquid during the transfer process, and also avoids the pollution and errors that may be caused by human operation.

[0048] This embodiment achieves efficient extraction of the medicinal liquid and accurate updating of the weight of the medicine barrel through the combined operation of the sludge-liquid separator and the robotic arm. This provides strong support for the accurate calculation of the amount of water added for the second decoction, thereby ensuring the stability of the total amount and concentration of the final mixed medicinal liquid, and improving the level of automation in decoction and the precision of drug quality control.

[0049] In an exemplary embodiment, determining the amount of water to be added for the second decoction based on the required amount of medicinal liquid in the target prescription and the actual amount of medicinal liquid includes: calculating the amount of water to be added for the second decoction using the formula E=D-C+F, where E is the amount of water to be added for the second decoction, D is the required amount of medicinal liquid, C is the actual amount of medicinal liquid, C is the difference between the first total weight and the second total weight, F is the amount of medicinal liquid retained as a sample, and F is determined based on the decoction environment parameters.

[0050] The example reveals a scientific method for accurately calculating the amount of water to be added for the second decoction based on the actual output of the medicinal liquid and the requirements of the target prescription. The formula is E=D-C+F, where E represents the amount of water to be added for the second decoction, D is the total amount of medicinal liquid required calculated according to the prescription, and the core variable C is the actual amount of medicinal liquid in the decoction pot after the first decoction, which is obtained by the difference between the two weighings. F represents the amount of medicinal liquid set to retain the sample and the preset amount of decoction evaporation. This value will be finely adjusted according to the environmental conditions during decoction, such as temperature and humidity.

[0051] D sets the target for the total amount of medicinal liquid, reflecting the expected output of the prescription; C directly reflects the actual output of one decoction by comparing the two weighings of the medicine barrel, eliminating the uncertainty of theoretical calculation; F is introduced to deal with the natural loss during the decoction process and ensure the reliability of the total amount of medicinal liquid. It is usually set in advance based on a large amount of experimental data and environmental monitoring.

[0052] This embodiment can dynamically adjust the amount of water added for the second decoction based on the precise control of the amount of liquid produced in the first decoction. This not only meets the total amount of liquid specified in the prescription, but also compensates for the natural evaporation and sample retention requirements during the decoction process, thus achieving precise control and maximum utilization of the amount of liquid.

[0053] In an exemplary embodiment, after adding water to the decoction barrel according to the amount of water added for the second decoction and performing the second decoction in the decoction barrel, the method further includes: after the second decoction is completed in the decoction barrel, extracting the second decoction liquid from the decoction barrel using the residue-liquid separator; transporting the second decoction liquid through a pipeline to the packaging machine, mixing it with the first decoction liquid to obtain a mixed liquid; and heating the mixed liquid to boiling to obtain the final decoction liquid of the target prescription.

[0054] After calculating the amount of water to be added for the second decoction, the corresponding amount of water is immediately injected into the decoction tank, and the second decoction process is started randomly. After the decoction is completed, the decoction tank is transported by a robotic arm to the residue-liquid separator, which uses its squeezing function to efficiently separate the residue and extract the second decoction liquid, which is then directly transported to the packaging machine through the designed pipeline system. The first and second decoction liquids are mixed to form a mixed liquid. The mixed liquid is then heated to boiling to ensure the full integration of the medicinal components and to ensure the safety and sterility of the liquid through high-temperature sterilization, ultimately obtaining the final decoction liquid that meets the requirements of the target prescription.

[0055] This embodiment achieves precise extraction of the second decoction liquid, effective mixing of the liquid, and full release of the active ingredients during the decoction process of traditional Chinese medicine through automated control and refined operation. This significantly improves the quality and efficiency of decoction and provides patients with safer and more effective drug preparations.

[0056] In an exemplary embodiment, before determining the first total weight of the decoction barrel after the first decoction has been completed, the method further includes: adding the target medicinal materials corresponding to the target prescription to the decoction barrel and fully soaking the target medicinal materials in the decoction barrel; after the target medicinal materials have been fully soaked, transferring the decoction barrel to a first decoction station using a robotic arm, and performing the first decoction in the decoction barrel at the first decoction station; wherein, water is added to the decoction barrel according to the amount of water added for the second decoction, and the decoction is prepared. After the second decoction is performed in the decoction barrel, the method further includes: adding water to the decoction barrel according to the amount of water added for the second decoction, and transferring the decoction barrel to the second decoction station by the robotic arm, and performing the second decoction in the decoction barrel at the second decoction station; after the second decoction is completed in the decoction barrel, extracting the second decoction liquid from the decoction barrel by the residue-liquid separator; transporting the second decoction liquid through a pipeline to a packaging machine that stores the first decoction liquid, packaging the final decoction liquid in the packaging machine, and cleaning the decoction barrel.

[0057] In this embodiment, this application provides an intelligent decoction system based on two weighings of the medicine barrel. The structure of the intelligent decoction system is as follows: Figure 4 As shown, the system consists of a medicinal material delivery module 41, an intelligent soaking unit 42, a robotic arm 43, a dual-station decoction chamber (including the aforementioned first and second decoction stations), a residue-liquid separator 45, a packaging machine 46, a dynamic water addition module 47, a boiling mixing device 48, and a self-cleaning circuit 49. The coordinated operation of all components of the system enables unmanned operation of the entire decoction process.

[0058] The herbal medicine delivery module 41 automatically weighs and accurately delivers the medicinal slices into the decoction pot according to the prescription, ensuring consistent feeding.

[0059] The intelligent soaking unit 42 is equipped with a stirring mechanism, which fully stirs and soaks the medicinal materials after adding water according to the set time, thereby improving the dissolution efficiency of the active ingredients;

[0060] The robotic arm 43 is equipped with a high-precision servo positioning system, which can quickly switch between soaking, first decoction, second decoction, and cleaning stations by moving the decoction pot, with a stroke error of less than 0.5mm.

[0061] The dual-station decoction chamber 44 adopts independent temperature zone control and pressure sensing technology, supporting the simultaneous operation of the first and second decoction stations, allowing for the simultaneous decoction of different prescriptions and avoiding waiting at each station.

[0062] The slag-liquid separator 45 integrates multi-layer filters and a hydraulic extrusion arm, applying a pressure of no less than 0.8 MPa to the slag, achieving a liquid recovery rate of over 98% and a residue rate of less than 1.5%.

[0063] The packaging machine 46 temporarily stores the first decoction of medicine and mixes the second decoction with the first decoction after the second decoction is completed.

[0064] The dynamic water addition module 47 uses a high-precision mass flow meter and closed-loop feedback control, achieving a water addition accuracy of ±2ml and a response time of less than 0.3 seconds.

[0065] The boiling mixing device 48 uses ultrasonic assistance and constant temperature circulation to ensure that the first decoction and the second decoction are fully homogenized and to avoid component separation.

[0066] The self-cleaning circuit 49 adopts a combination of high-temperature steam rinsing and ozone sterilization, which can complete the cleaning of the inner wall of the decoction pot without dead corners within 5 minutes, meeting the GMP hygiene standards for Chinese medicine decoction.

[0067] All component data is uploaded to the central control system in real time, forming a digital archive of the entire decoction process, supporting quality traceability and model retraining.

[0068] In an optional embodiment, this application provides a method for precisely adding water during the second decoction of Chinese medicine based on two weighings of the medicine container. This method is suitable for prescriptions requiring two decoctions. The first decoction uses an artificial intelligence adaptive learning method to calculate the amount of water to be added, while the second decoction uses a method of precisely adding water by weighing the medicine container twice. The processing flow is as follows: Figure 3 As shown, the specific steps include:

[0069] 3.1 Intelligent Water Addition and Decoction: For the prescription of Chinese medicine to be decocted (equivalent to the target prescription mentioned above), the theoretical water addition for the first decoction is calculated using an artificial intelligence adaptive learning method. After adding the corresponding amount of water to the decoction pot, the decoction process is completed. The artificial intelligence adaptive learning method takes the prescription drug details (drug name, weight) as the core input and calculates the water addition for the first decoction based on a model trained on historical big data of "drug-weight-water addition-liquid volume". In addition, a full-coverage basic water absorption rate test is carried out on all Chinese medicine decoction pieces. The water absorption rate data is only used as a reference for traceability and is not included in the model variables.

[0070] 3.2 Initial weighing of the first decoction pot (weight A acquisition): After the first decoction is completed, the decoction pot is picked up by a robotic arm and transferred to the second decoction water addition station with weighing function. The weighing module of this station automatically weighs the total weight of the decoction pot (including dregs and remaining liquid) before liquid extraction, records it as weight A and uploads it to the control system; the accuracy error of the weighing module is ≤±1g to ensure accurate weight data.

[0071] 3.3 Extraction of the first decoction liquid by squeezing: The robotic arm grabs the decoction barrel and transfers it to the residue-liquid separator. The residue is squeezed by the residue-liquid separator to extract the first decoction liquid and transport it through the pipeline to the packaging machine for temporary storage. After completion, it is ensured that only residue and a small amount of attached liquid remain in the decoction barrel, so as to minimize the impact of liquid residue on subsequent weighing.

[0072] 3.4 Second Weighing of the First Decoction Tank (Weight B Acquisition and Actual Liquid Volume Calculation): After the liquid is extracted, the robotic arm grabs the decoction tank again and transfers it back to the weighing module at the second decoction water addition station. The total weight of the decoction tank after extraction (containing only dregs and attached liquid) is recorded as weight B and uploaded to the control system. Through the formula C=A+BC, this value directly reflects the actual output of the first decoction liquid and provides the core basis for calculating the amount of water added for the second decoction.

[0073] 3.5 Precise calculation of water addition for the second decoction: The control system calls the theoretical total liquid volume D preset in the prescription, and combines it with the preset evaporation amount and the sum of the retained liquid volume F. The water addition amount E required for the second decoction is calculated by the formula E=D-C+F. Among them, the value of F is based on the preset benchmark value of historical decoction data, and can be dynamically fine-tuned according to the temperature and humidity of the decoction environment to further improve the accuracy of water addition.

[0074] 3.6 Second Decoction Water Addition and Decoction: The water supply module at the second decoction water addition station accurately injects the corresponding amount of water into the decoction barrel according to the calculated water addition amount E. The robotic arm grabs the decoction barrel and moves it to the decoction station to complete the second decoction.

[0075] 3.7 Mixing and Packaging: After the second decoction is completed, the liquid is squeezed and extracted into the same packaging machine, mixed with the first decoction, and then the mixed liquid is heated to boiling. The packaging and labeling process is completed according to the standard procedure.

[0076] This innovative solution employs a two-stage weighing mechanism for the decoction barrel, directly capturing the actual output of the first decoction. This completely eliminates the reliance on traditional methods that depend on theoretical water absorption rates of the medicinal herbs and the theoretical volume of the first decoction, avoiding discrepancies between theoretical data and actual operating conditions. The calculation of water addition for the second decoction is more closely aligned with actual needs, resulting in a final total mixed decoction volume that consistently deviates from the theoretical prescription value by less than 3%, significantly superior to traditional methods (which typically have deviations of 8%-15%). Furthermore, this solution only requires the addition of a high-precision weighing module at the second decoction water addition station, without the need for additional visual recognition, complex algorithms, or other components. It can be directly adapted to existing decoction equipment, offering low modification costs, ease of operation, and suitability for the large-scale, automated production needs of large-scale decoction centers.

[0077] The following detailed description of the solution is provided in conjunction with specific embodiments:

[0078] Example: A specific application of a method for accurately adding water during the second decoction of Chinese medicine based on weighing the medicine bucket twice.

[0079] 1. Preparation and Real-time Processing of the First Decoction: A second decoction prescription containing 10 kinds of Chinese medicinal herbs was selected, with a total weight of 200g and a theoretical total liquid volume of D=400ml. Standardized water absorption rate tests were conducted on all medicinal herbs, and the data was retained for traceability. Using an AI hybrid model (CNN+XGBoost), the name and weight of the herbs were input to calculate the amount of water to be added for the first decoction, which was 350ml. After being poured into the decoction pot, the first decoction was completed according to the standard process.

[0080] 2. Weighing the decoction barrel twice: After the first decoction is completed, the robotic arm grabs the decoction barrel and moves it to the second decoction water addition station. The high-precision weighing module displays the weight A=850g. After the decoction is transferred to the residue-liquid separator to complete the extraction of the decoction liquid, it is transferred back to the weighing station, where the weight B=520g is displayed. The actual amount of decoction liquid in the first decoction is accurately calculated using the formula C=850-520=330ml.

[0081] 3. Calculation and implementation of water addition for the second decoction: The preset decoction evaporation volume + sample liquid volume F = 50ml. Using the formula E = 400 - 330 + 50 = 120ml, the water addition for the second decoction is calculated to be 120ml. After accurately adding 120ml of water at the water addition station for the second decoction, the medicine is transferred to the decoction tank to complete the second decoction.

[0082] 4. Effect verification: The second decoction was extracted and mixed with the first decoction in a packaging machine. After heating and boiling, the total volume of the mixed decoction was measured to be 445ml. After deducting the 20ml sample, the actual dosage was 425ml. The core deviation from the theoretical prescription requirement of 400ml was controlled within 3%, and the accuracy was significantly better than the traditional theoretical calculation method.

[0083] The above process utilizes a robotic arm to move the decoction pot throughout the entire process. Both weighings and data calculations are completed automatically by the system, eliminating reliance on human experience, avoiding human error, and ensuring consistency in water addition for each batch of decoction. Furthermore, the system records key parameters such as the two weighings and the amount of water added for the second decoction. Combined with reference data on the water absorption rate of the medicinal herbs and AI model data from the first decoction, a complete decoction data chain is formed, providing data support for the standardized and regulated management of traditional Chinese medicine decoction processes.

[0084] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0085] Figure 5 This is a structural block diagram of a decoction and water addition device based on two weighings in a decoction pot, according to an embodiment of this application. The device includes:

[0086] The first determining module 52 is used to determine the first total weight of the decoction barrel when the decoction barrel has completed the first decoction. The decoction barrel is used to complete the decoction of the target prescription. The first total weight includes the weight of the decoction obtained after the decoction barrel has completed the first decoction. The decoction includes the first decoction.

[0087] The second determining module 54 is used to extract the decoction liquid from the decoction barrel using a residue-liquid separator and to determine the second total weight of the decoction barrel again.

[0088] Calculation module 56 is used to calculate the actual amount of decoction obtained in the decoction process based on the first total weight and the second total weight;

[0089] The decoction module 58 is used to determine the amount of water to be added for the second decoction based on the required amount of liquid in the target prescription and the actual amount of liquid, and to add water to the decoction pot according to the amount of water to be added for the second decoction, thereby performing the second decoction in the decoction pot, wherein the decoction includes the second decoction.

[0090] Using the aforementioned device, after the decoction barrel completes the first decoction of the target prescription, the first total weight of the decoction barrel after the first decoction is determined, including the weight of the first decoction liquid obtained after the first decoction. The first decoction liquid is extracted from the decoction barrel using a residue-liquid separator, and then the second total weight of the decoction barrel is determined again. The actual volume of the first decoction liquid is determined based on the first and second total weights. Finally, the amount of water to be added for the second decoction is determined based on the required volume of liquid in the target prescription and the actual volume of liquid. Water is then added to the decoction barrel for the second decoction. By employing the above scheme and using a double weighing mechanism for the decoction barrel, the actual output scale of the first decoction liquid is directly captured, eliminating the reliance on theoretical data and accurately calculating the amount of water to be added for the second decoction. This solves the problem in related technologies where the amount of water to be added for the second decoction is difficult to calculate accurately, leading to the final total volume of the mixed liquid deviating from the theoretical requirements of the prescription and affecting the clinical efficacy of the medication.

[0091] In an exemplary embodiment, the first determining module 52 is further configured to perform drug detail analysis on the target prescription to obtain the drug details of the target prescription, wherein the drug details include: the names of multiple drugs and the weights of the multiple drugs; using the drug details as input, calculating the amount of water to be added to the first decoction of the target prescription through an artificial intelligence adaptive learning method; adding water to the decoction pot according to the amount of water to be added to the first decoction, and performing the first decoction in the decoction pot.

[0092] In an exemplary embodiment, the first determining module 52 is further configured to, after the decoction barrel has completed the first decoction, transfer the decoction barrel to the second decoction water addition station by means of a robotic arm; and weigh the decoction barrel by means of a weighing module integrated in the second decoction water addition station to obtain the first total weight.

[0093] In an exemplary embodiment, the second determining module 54 is further configured to: transfer the decoction barrel from the second decoction water addition station to the slag-liquid separator via the robotic arm; squeeze the slag in the decoction barrel via the slag-liquid separator to fully extract the first decoction liquid; transport the first decoction liquid through a pipeline to a packaging machine for temporary storage; and transfer the decoction barrel back to the second decoction water addition station via the robotic arm for weighing to obtain the second total weight.

[0094] In an exemplary embodiment, the above-mentioned decoction module 58 is further configured to calculate the amount of water added for the second decoction using the formula E=D-C+F, where E is the amount of water added for the second decoction, D is the required amount of medicinal liquid, C is the actual amount of medicinal liquid, C is the difference between the first total weight and the second total weight, F is the amount of medicinal liquid retained as a sample, and F is determined based on the decoction environment parameters.

[0095] In an exemplary embodiment, the above-mentioned decoction module 58 is further configured to, after the second decoction is completed in the decoction barrel, extract the second decoction liquid from the decoction barrel through the residue-liquid separator; transport the second decoction liquid through a pipeline to the packaging machine, mix it with the first decoction liquid to obtain a mixed liquid; and heat the mixed liquid to boiling to obtain the final decoction liquid of the target prescription.

[0096] In an exemplary embodiment, the above-mentioned decoction and water-adding device based on two weighings in the decoction barrel is further used for: adding the target medicinal materials corresponding to the target prescription to the decoction barrel, and fully soaking the target medicinal materials in the decoction barrel; after the target medicinal materials have been fully soaked, transferring the decoction barrel to the first decoction station by a robotic arm, and performing the first decoction in the decoction barrel at the first decoction station; wherein, water is added to the decoction barrel according to the amount of water added for the second decoction, and the decoction barrel is subjected to the second decoction. After decoction, water is added to the decoction barrel according to the amount of water added for the second decoction, and the decoction barrel is transferred to the second decoction station by the robotic arm. The second decoction is carried out in the decoction barrel at the second decoction station. After the second decoction is completed in the decoction barrel, the second decoction liquid is extracted from the decoction barrel by the residue-liquid separator. The second decoction liquid is transported through the pipeline to the packaging machine that stores the first decoction liquid. The final decoction liquid in the packaging machine is packaged and the decoction barrel is cleaned.

[0097] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.

[0098] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0099] S1, when the decoction barrel has completed one decoction, determine the first total weight of the decoction barrel, wherein the decoction barrel is used to complete the decoction of the target prescription, and the first total weight includes the weight of the decoction obtained after the decoction barrel has completed the first decoction, and the decoction includes the first decoction.

[0100] S2, the decoction liquid is extracted from the decoction barrel by the residue-liquid separator, and the second total weight of the decoction barrel is determined again;

[0101] S3, calculate the actual volume of the decoction obtained from the decoction process based on the first total weight and the second total weight;

[0102] S4. Determine the amount of water to be added for the second decoction based on the required amount of medicinal liquid in the target prescription and the actual amount of medicinal liquid, and add water to the decoction pot according to the amount of water to be added for the second decoction, wherein the decoction includes the second decoction.

[0103] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0104] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0105] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0106] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0107] S1, when the decoction barrel has completed one decoction, determine the first total weight of the decoction barrel, wherein the decoction barrel is used to complete the decoction of the target prescription, and the first total weight includes the weight of the decoction obtained after the decoction barrel has completed the first decoction, and the decoction includes the first decoction.

[0108] S2, the decoction liquid is extracted from the decoction barrel by the residue-liquid separator, and the second total weight of the decoction barrel is determined again;

[0109] S3, calculate the actual volume of the decoction obtained from the decoction process based on the first total weight and the second total weight;

[0110] S4. Determine the amount of water to be added for the second decoction based on the required amount of medicinal liquid in the target prescription and the actual amount of medicinal liquid, and add water to the decoction pot according to the amount of water to be added for the second decoction, wherein the decoction includes the second decoction.

[0111] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0112] Embodiments of this application also provide a computer program product, including a non-volatile computer-readable storage medium storing the computer program product, wherein the computer program, when executed by a processor, implements the steps of the methods described in various embodiments of this application.

[0113] Optionally, in this embodiment, the computer program described above can be configured to perform the following steps when executed by the processor:

[0114] S1, when the decoction barrel has completed one decoction, determine the first total weight of the decoction barrel, wherein the decoction barrel is used to complete the decoction of the target prescription, and the first total weight includes the weight of the decoction obtained after the decoction barrel has completed the first decoction, and the decoction includes the first decoction.

[0115] S2, the decoction liquid is extracted from the decoction barrel by the residue-liquid separator, and the second total weight of the decoction barrel is determined again;

[0116] S3, calculate the actual volume of the decoction obtained from the decoction process based on the first total weight and the second total weight;

[0117] S4. Determine the amount of water to be added for the second decoction based on the required amount of medicinal liquid in the target prescription and the actual amount of medicinal liquid, and add water to the decoction pot according to the amount of water to be added for the second decoction, wherein the decoction includes the second decoction.

[0118] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0119] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0120] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for adding water during the second decoction of Chinese medicine based on two weighings in a decoction pot, characterized in that, include: When the decoction barrel completes one decoction, the first total weight of the decoction barrel is determined, wherein the decoction barrel is used to complete the decoction of the target prescription, and the first total weight includes the weight of the decoction obtained after the decoction barrel performs the first decoction, and the decoction includes the first decoction. The decoction liquid is extracted from the decoction barrel using a residue-liquid separator, and the second total weight of the decoction barrel is determined again. Calculate the actual volume of the decoction obtained from the first total weight and the second total weight; The amount of water to be added for the second decoction is determined based on the required amount of medicinal liquid in the target prescription and the actual amount of medicinal liquid. Water is then added to the decoction pot according to the amount of water to be added for the second decoction. The decoction of medicinal liquid includes the second decoction.

2. The method according to claim 1, characterized in that, Before determining the first total weight of the decoction pot after it has completed one decoction, the method further includes: The target prescription is analyzed to obtain the drug details of the target prescription, wherein the drug details include: the drug names of multiple drugs and the drug weights of the multiple drugs; Using the drug details as input, the amount of water to be added for one decoction of the target prescription is calculated using an artificial intelligence adaptive learning method; Water is added to the decoction pot according to the amount of water to be added in the first decoction, and the decoction pot is used to perform the first decoction.

3. The method according to claim 1, characterized in that, After the decoction pot has completed one decoction, the first total weight of the decoction pot is determined, including: After the decoction barrel has completed the first decoction, the decoction barrel is transferred to the second decoction water addition station by a robotic arm. The first total weight is obtained by weighing the decoction barrel through the weighing module integrated in the second decoction and water addition station.

4. The method according to claim 3, characterized in that, The decoction liquid is extracted from the decoction barrel using a residue-liquid separator, and the second total weight of the decoction barrel is determined again, including: The robotic arm moves the decoction barrel from the second decoction water addition process to the residue-liquid separator. The residue-liquid separator squeezes the residue in the decoction barrel to fully extract the first decoction liquid. The first decoction is transported through a pipeline to a packaging machine for temporary storage, and the decoction barrel is then transferred again to the second decoction water addition station for weighing by the robotic arm to obtain the second total weight.

5. The method according to claim 1, characterized in that, The amount of water to be added for the second decoction is determined based on the required volume of the target prescription and the actual volume of the prescription, including: The amount of water added for the second decoction is calculated using the formula E=D-C+F, where E is the amount of water added for the second decoction, D is the required amount of medicinal liquid, C is the actual amount of medicinal liquid, C is the difference between the first total weight and the second total weight, and F is the amount of medicinal liquid retained as a sample, which is determined based on the decoction environment parameters.

6. The method according to claim 4, characterized in that, The method further includes adding water to the decoction pot according to the amount of water added for the second decoction, and then performing the second decoction in the decoction pot: After the second decoction is completed in the decoction barrel, the second decoction liquid is extracted from the decoction barrel by the residue-liquid separator; The second decoction is transported through a pipeline to the packaging machine and mixed with the first decoction to obtain a mixed decoction. The mixed medicinal liquid is heated to boiling to obtain the final decoction of the target prescription.

7. The method according to claim 1, characterized in that, Before determining the first total weight of the decoction pot after it has completed one decoction, the method further includes: Add the target medicinal materials corresponding to the target prescription to the decoction pot, and soak the target medicinal materials thoroughly in the decoction pot; After the target medicinal material has been fully soaked, the decoction barrel is transferred to a decoction station by a robotic arm, where the decoction barrel is decocted for the first time. The method further includes, after adding water to the decoction pot according to the amount of water added for the second decoction, and performing the second decoction in the decoction pot: Water is added to the decoction barrel according to the amount of water to be added for the second decoction, and the decoction barrel is transferred to the second decoction station by the robotic arm, where the decoction barrel is boiled for the second decoction. After the second decoction is completed in the decoction barrel, the second decoction liquid is extracted from the decoction barrel by the residue-liquid separator; The second decoction is transported through a pipeline to a packaging machine that stores the first decoction, and the final decoction in the packaging machine is packaged and the decoction barrel is cleaned.

8. A decoction and water addition device based on two weighings in a decoction pot, characterized in that, include: The first determining module is used to determine the first total weight of the decoction barrel after the decoction barrel has completed the first decoction. The decoction barrel is used to complete the decoction of the target prescription. The first total weight includes the weight of the decoction obtained after the decoction barrel has completed the first decoction. The decoction includes the first decoction. The second determining module is used to extract the decoction liquid from the decoction barrel using a residue-liquid separator, and to determine the second total weight of the decoction barrel again. The calculation module is used to calculate the actual amount of decoction obtained from the decoction process based on the first total weight and the second total weight. The decoction module is used to determine the amount of water to be added for the second decoction based on the required amount of liquid in the target prescription and the actual amount of liquid, and to add water to the decoction pot according to the amount of water to be added for the second decoction, wherein the decoction includes the second decoction.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.