Intelligent traditional Chinese medicine decocting system
Through the design of the intelligent Chinese medicine decoction system, modular analysis and computer vision technology, the decoction time and monitoring process status are adaptively adjusted, and the drug quality problems caused by prescription specificity and fixed duration in the existing system are solved, and the product quality problems caused by prescription specificity and fixed duration are achieved. Efficient and precise decoction process.
Patent Information
- Application Number
- CN202411975026.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-02-07
AI Technical Summary
Due to the limitations of prescription specificity and fixed process time, the existing automated Chinese medicine decoction system has caused the decoction results to not meet expectations, affecting the quality of the medicine.
An intelligent Chinese medicine decoction system was designed, through the drug pretreatment module, the prescription information analysis module and the process monitoring module, the decoction time is adaptively adjusted according to the prescription information and drug characteristics, and the process status is monitored through computer vision technology to ensure decoction. The accuracy and quality of the process.
The decoction time is dynamically adjusted according to prescription specificity and drug solubility, which improves the accuracy of the decoction process and the quality of the drug, and ensures the best therapeutic effect of the decoction medicine.
Smart Images

Figure CN119385835A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control technology, and in particular to an intelligent Chinese medicine decocting system. Background Art
[0002] The scientific view of TCM that treats both the root cause and the symptom and the whole syndrome differentiation has led more and more people to choose TCM treatment. Among them, decoction is one of the important links in the TCM treatment process. Through precise decoction time and temperature control, TCM decoction can fully extract the effective ingredients in the medicinal materials, thereby improving the efficacy of the medicine. During the decoction process, the decoction method and time can also be adjusted according to the properties and compatibility of the medicinal materials to achieve the best therapeutic effect.
[0003] In order to improve the efficiency of Chinese medicine decoction, an automated decoction system is used to decoct the drugs to be processed in an automated manner based on prescription information. During the automated processing, each type of drug has standard processing information set in the system. However, due to the specificity of the patient, the prescription prescribed by the doctor may be specific compared to the standard data in the system, such as weight, water temperature, etc., resulting in the results of automated decoction not meeting product expectations. In addition, a fixed time is usually used to control the soaking process and the decoction process during the decoction process. If the fixed time is too short, the drug processing will be incomplete, and if the fixed time is too long, the drug properties will be lost. Therefore, the setting of a fixed time will also affect product quality. Summary of the invention
[0004] In order to solve the technical problem that the product quality does not meet expectations due to prescription specificity and fixed process time in the process of automated Chinese medicine decoction in the prior art, the purpose of the present invention is to provide an intelligent Chinese medicine decoction system, and the technical solution adopted is as follows: The present invention proposes an intelligent Chinese medicine decoction system, the system comprising: The drug pretreatment module is used to determine the drug to be treated and the process information of each process thereof according to the prescription information; obtain the standard process information of each process of the drug to be treated in the memory; the process includes the soaking process and the decoction process; The prescription information analysis module is used to obtain the water absorption solubility of the drug to be processed according to the solubility of the drug to be processed and the crushing process category in the process information under each process; obtain the prescription specificity according to the information difference between the standard process information and the process information; obtain the process time adjustment parameter according to the prescription specificity and the water absorption solubility, adjust the process time in the standard process information according to the drug soaking time adjustment parameter, and obtain the final process time of the drug to be processed; The process monitoring module is used to set the final process time as the maximum process time of the drug to be processed under each process, and obtain the liquid image during the process; obtain the color space information of the liquid image, and obtain the color expression degree of the liquid image according to the distribution concentration of the channel value under each color channel in the color space information; and control the stopping of the process according to the changing trend of the color expression degree between adjacent frames of liquid images.
[0005] Furthermore, the method for obtaining the water absorption solubility includes: A treatment degree label value is obtained according to the crushing process category, and the product of the treatment degree label value and the solubility is used as the water absorption solubility.
[0006] Furthermore, the processing degree label value is a preset value, and the greater the degree of breakage of the medicine to be processed, the greater the processing degree label value.
[0007] Furthermore, the prescription-specific acquisition method includes: The process information includes water temperature information and gram weight information. The temperature difference between the standard water temperature in the standard process information and the water temperature information is obtained, and the gram weight difference between the gram weight information and the standard gram weight in the standard process information is obtained; the product of the temperature difference and the gram weight difference is normalized to obtain the prescription specificity.
[0008] Furthermore, the method for obtaining the process time adjustment parameter includes: The ratio of the prescription specificity to the water absorption solubility is used as the process time adjustment parameter.
[0009] Furthermore, the method for obtaining the final process time includes: The process time adjustment parameter is normalized and then added to a positive integer 1 to obtain an adjustment coefficient, and the adjustment coefficient is multiplied by the process time in the standard process information to obtain the final process time.
[0010] Furthermore, the method for obtaining the distribution concentration includes: Obtain a histogram of the channel values under each color channel in the color space information; Obtaining the frequency ratio of the channel interval with the maximum frequency in the histogram to the number of all pixels; The channel value range under each color channel is obtained; and the ratio of the frequency proportion to the channel value range is normalized to obtain the distribution concentration under the color channel.
[0011] Furthermore, the color space information includes RGB color space information and grayscale information.
[0012] Furthermore, the stopping of the process is controlled according to the change trend of the color expression degree between adjacent frames of liquid images, including: The color expression degree difference between adjacent frames is calculated, and if the color expression degree differences of a preset number of consecutive frames are all 0, the process is stopped.
[0013] Furthermore, the maximum process time is divided into two time periods using a preset time threshold. In the first half of the maximum process time, the sampling frequency of the liquid image is a first sampling frequency; in the second half of the maximum process time, the sampling frequency of the liquid image is a second sampling frequency; and the second sampling frequency is greater than the first sampling frequency.
[0014] The present invention has the following beneficial effects: The embodiment of the present invention analyzes each process separately, compares the process information in the marked process information with the process information in the prescription information, and obtains the prescription specificity. Because the crushing process of different drugs to be processed is different, the medicinal properties of crushing should be more soluble in water than cutting, so the known solubility of the drug can be further adjusted based on the crushing process category to obtain the water absorption solubility. Then, the process time in the standard process information is adjusted according to the prescription specificity and water absorption solubility to obtain the final process time that meets the current prescription requirements. Further, the process is monitored using computer vision technology at the final process time. As the process proceeds, the color information of the liquid should become more and more obvious. Therefore, based on the color space information of the liquid image, the distribution concentration of the channel value is analyzed under each color channel, and the trend of the change in the color expression degree can be used to effectively evaluate the process state, thereby timely controlling the stop of the process. The present invention uses computer vision technology to monitor the process state while adaptively obtaining the final process time based on the prescription information, ensuring the normal operation of the process and the quality of the decocted medicine. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 A block diagram of an intelligent Chinese medicine decocting system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0017] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the intelligent Chinese medicine decoction system proposed according to the present invention, its specific implementation, structure, characteristics and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments can be combined in any suitable form.
[0018] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0019] The specific scheme of an intelligent Chinese medicine decocting system provided by the present invention is described in detail below with reference to the accompanying drawings.
[0020] See also Figure 1 , which shows a block diagram of an intelligent Chinese medicine decoction system provided by an embodiment of the present invention. The system includes: a medicine pretreatment module 101, a prescription information analysis module 102 and a process monitoring module 103.
[0021] The drug preprocessing module 101 is used to determine the drug to be processed and the process processing information of each process thereof according to the prescription information; and obtain the standard process processing information of each process of the drug to be processed in the memory.
[0022] It should be noted that the embodiment of the present invention is implemented on the basis of the existing automated Chinese medicine decoction system, wherein the standard process processing information is pre-entered into the system, and the system can use an automatic dispensing machine to dispense and weigh the required medicines according to the names of the medicines to be processed recorded in the prescription, and after the specification data of the medicines to be processed are verified, the medicines can be sent to the next process by a conveyor belt. The process of decocting medicines includes pretreatment, soaking and decoction. The pretreatment process is to crush the medicines, such as crushing, grinding, chopping, etc. After the pretreatment process is completed, the soaking operation is performed, and the soaking can further precipitate the medicinal properties, and then the final decoction is performed.
[0023] In the embodiment of the present invention, the soaking process and the decoction process are mainly targeted, so the process information obtained in the medicine pretreatment module 101 is the soaking process and the decoction process information. For these two processes, the most decisive factors are the initial water temperature and the weight specification of the medicinal materials.
[0024] Because the symptoms of different patients are different, the doctor in the prescription information will make certain adjustments to the specifications of the medicine according to the patient's special situation. Therefore, the standard process processing information stored in the system is no longer suitable for the medicine of this prescription. Because the prescription information analysis module 102 performs analysis under each process, for the soaking process and the decoction process, the solubility of the medicine is a more important factor. The greater the solubility, the less time the process consumes. However, for the medicine to be processed, the same medicine may be crushed differently in different prescriptions, and different crushing methods have different performances for the precipitation of the medicinal properties of the medicinal materials in the process. For example, crushing has a stronger ability to precipitate medicinal properties than shearing, and crushing has a stronger ability to precipitate medicinal properties than crushing. Therefore, the prescription information analysis module 102 obtains the water absorption solubility of the medicine to be processed according to the solubility of the medicine to be processed and the crushing process category in the process processing information. That is, the solubility is adjusted according to the crushing process category, so that the water absorption solubility can accurately standardize the actual information of the medicine in the entire process.
[0025] It should be noted that although the prescription information analysis module 102 analyzes each process separately, the water absorption solubility obtained belongs to the pretreatment process before the two processes. Therefore, for the two processes of soaking and decoction, only one water absorption solubility process is required.
[0026] The prescription information analysis module 102 further obtains the information difference between the standard process information and the process information to obtain prescription specificity. Prescription specificity can characterize the difference between the current prescription information and the standard information pre-stored in the system, and then use the difference and the water absorption solubility that can accurately characterize the actual characteristics of the drug to obtain the process time adjustment parameter. The process time adjustment parameter can be used to adjust the process time in the standard process information to obtain the final process time of the drug to be processed.
[0027] It should be noted that the solubility can be directly obtained from the prior information stored in the memory, and the solubility of the drug in water can be regarded as existing data, and there is no need to obtain it separately in the embodiment of the present invention.
[0028] Preferably, in one embodiment of the present invention, the method for obtaining water absorption solubility includes: The treatment degree label value is obtained according to the crushing process category, and the product of the treatment degree label value and the solubility is used as the water absorption solubility. That is, the treatment degree label value is used as the weight, and the water absorption solubility is obtained by weighting.
[0029] Furthermore, in the embodiment of the present invention, the processing degree label value is a preset value, and the greater the degree of crushing of the medicine to be processed, the greater the processing degree label value. In the embodiment of the present invention, for medicines that are not crushed, the processing degree label value is set to 0.3; for medicines that are shredded, the processing degree label value is set to 0.5; for medicines that are crushed, the processing degree label value is set to 0.7; for medicines that are pulverized, the processing degree label value is set to 1.
[0030] Preferably, in one embodiment of the present invention, the prescription-specific acquisition method includes: The process information includes water temperature information and gram weight information. The temperature difference between the standard water temperature in the standard process information and the water temperature information is obtained, and the gram weight difference between the gram weight information and the standard gram weight in the standard process information is obtained; the product of the temperature difference and the gram weight difference is normalized to obtain the prescription specificity. Because the purpose of prescription specificity is to adjust the process time, and the lower the initial water temperature of the process execution process, the more time is required for the actual execution of the process. Therefore, the temperature difference between the standard water temperature and the water temperature information is selected as the difference in the water temperature dimension, that is, the larger the temperature difference, the lower the actual water temperature information, and the longer the process time is required; similarly, the larger the actual gram weight, the more specifications of the drugs to be processed are relatively more, and more process time is required for processing. Therefore, the gram weight difference is the difference between the actual gram weight information and the standard gram weight. Then, the temperature difference and the gram weight difference are statistically combined by the multiplication method, and the prescription specificity can be obtained after normalization. That is, the larger the prescription specificity, the longer the process time is required for the drugs to be processed.
[0031] In an embodiment of the present invention, a linear normalization method is selected as the normalization method. In other embodiments of the present invention, existing technologies such as a function mapping method may also be selected for normalization processing, which will not be limited or elaborated herein.
[0032] Further, based on the above embodiment, the method for obtaining the process time adjustment parameter is: the ratio of the prescription specificity to the water absorption solubility is used as the process time adjustment parameter. As described above, the greater the prescription specificity, the longer the process time is required, and the greater the water absorption solubility, the easier it is for the drug to precipitate the drug, and the shorter the process time should be. Therefore, the prescription specificity and the process time adjustment parameter are positively correlated, while the water absorption solubility and the process time adjustment parameter are negatively correlated. That is, the greater the process time adjustment parameter, the longer the process time is required to execute the process.
[0033] Furthermore, the method for obtaining the final process time includes: The process time adjustment parameter is normalized and then added to a positive integer 1 to obtain an adjustment coefficient. That is, the adjustment coefficient is a multiple, and the adjustment coefficient is multiplied by the process time in the standard process information to obtain the final process time. It should be noted that the normalization method has been described in the above embodiment and will not be repeated here.
[0034] For the soaking and decoction processes, both processes will cause the medicinal properties to precipitate from the medicine into the solution over time, and the Chinese medicine will cause the color of the aqueous solution to change due to the appearance characteristics of the medicine. In the aqueous solution, the color will change from light to dark, and diffuse from the local to the whole. Therefore, for each process, the process status can be monitored based on computer vision technology. Although the final process time is the time adaptively acquired to suit the prescription information, it represents the maximum process time, and it still needs to be monitored at all times during the process to control the stop of the process in time.
[0035] The process monitoring module 103 is used to set the final process time as the maximum process time of the drug to be processed under each process. The liquid image in the process is obtained; the color space information of the liquid image is obtained, and the color expression degree of the liquid image is obtained according to the distribution concentration of the channel value under each color channel in the color space information. The greater the distribution concentration, the more thorough the color diffusion and the darker the color of the aqueous solution. As time goes by, the color expression degree should become larger and larger. If the process is completed, the color will no longer change, and the color expression degree will not change. Therefore, the process can be stopped according to the change trend of the color expression degree between adjacent frames of liquid images.
[0036] Preferably, in one embodiment of the present invention, the method for obtaining distribution centrality includes: A histogram of the channel values under each color channel in the color space information is obtained. It should be noted that the method for obtaining the histogram is well known to those skilled in the art, that is, the channel values are divided into multiple intervals, the number of pixels under the corresponding color channel in each interval is counted, and then a histogram is constructed. The histogram can intuitively represent the distribution of channel values in the current channel image in the form of an icon.
[0037] The frequency ratio of the channel interval with the maximum frequency in the histogram to the number of all pixels is obtained; the channel value range under each color channel is obtained. The larger the frequency ratio, the more concentrated the channel values are in a certain channel value interval, and the greater the distribution concentration is. The smaller the range is, the more uniform the color diffusion is at this time, and the greater the distribution concentration is. Therefore, the ratio of the frequency ratio to the channel value range is normalized to obtain the distribution concentration under the color channel.
[0038] It should be noted that, because the liquid image contains not only aqueous solution but also information such as medicine, the channel value extreme value will not be 0, that is, the distribution concentration does not have a denominator of 0.
[0039] In an embodiment of the present invention, the color space information includes RGB color space information and grayscale information. That is, the embodiment of the present invention includes four channels, namely, R channel, G channel, B channel and grayscale channel, wherein each channel will obtain a distribution concentration. In an embodiment of the present invention, after obtaining the average value of the distribution concentration of the R channel, the G channel and the B channel, it is added to the distribution concentration of the grayscale channel, and then divided by two to obtain the color expression degree. That is, firstly obtain the average information of the distribution concentration in the RGB color space information, and then combine it with the distribution concentration in the grayscale information, and further obtain the final color expression degree by averaging.
[0040] Preferably, in one embodiment of the present invention, the color expression degree difference between adjacent frames is calculated, and if the color expression degree difference of a preset number of consecutive frames is 0, the process is stopped. In the embodiment of the present invention, the preset number is set to 3, that is, if the color expression degree of three consecutive frames does not change, the process is considered to be completed and the process is stopped.
[0041] Preferably, in order to avoid the waste of computing power caused by the frequent image acquisition and processing by the process monitoring module, in one embodiment of the present invention, the maximum process time is divided into two time periods using a preset time threshold, and the sampling frequency of the liquid image is the first sampling frequency in the first half of the maximum process time; the sampling frequency of the liquid image is the second sampling frequency in the second half of the maximum process time; the second sampling frequency is greater than the first sampling frequency. In the embodiment of the present invention, the time threshold can be set to half of the maximum process time, the first sampling frequency is set to collect a liquid image every 5 seconds, and the second sampling frequency is set to collect a liquid image every 2 seconds.
[0042] After the intelligent Chinese medicine decoction system performs the post-decoction process, the medicine liquid can be further packaged and packed, and the necessary information can be attached to the surface of the packaged medicine liquid through labels to complete the automated decoction of Chinese medicine.
[0043] In summary, the embodiment of the present invention compares the process information in the marked process information with the process information in the prescription information to obtain prescription specificity. The known solubility of the drug is further adjusted based on the crushing process category to obtain the water absorption solubility. The process time in the standard process information is adjusted according to the prescription specificity and the water absorption solubility to obtain the final process time that meets the current prescription requirements. Computer vision technology is used to monitor the process at the final process time, and the distribution concentration of the channel value is analyzed under each color channel based on the color space information of the liquid image. The change trend of the color expression degree can be used to effectively evaluate the process status, and then the process stop can be controlled in time. The present invention adaptively obtains the final process time based on the prescription information and monitors the process status using computer vision technology, thereby ensuring the normal operation of the process and the quality of the decocted medicine.
[0044] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0045] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. An intelligent Chinese medicine decoction system, characterized in that: The system comprises: The drug pretreatment module is used to determine the drug to be treated and the process information of each process thereof according to the prescription information; obtain the standard process information of each process of the drug to be treated in the memory; the process includes the soaking process and the decoction process; The prescription information analysis module is used to obtain the water absorption solubility of the drug to be processed according to the solubility of the drug to be processed and the crushing process category in the process information under each process; obtain the prescription specificity according to the information difference between the standard process information and the process information; obtain the process time adjustment parameter according to the prescription specificity and the water absorption solubility, adjust the process time in the standard process information according to the drug soaking time adjustment parameter, and obtain the final process time of the drug to be processed; The process monitoring module is used to set the final process time as the maximum process time of the drug to be processed under each process, and obtain the liquid image during the process; obtain the color space information of the liquid image, and obtain the color expression degree of the liquid image according to the distribution concentration of the channel value under each color channel in the color space information; and control the stopping of the process according to the changing trend of the color expression degree between adjacent frames of liquid images.
2. The intelligent Chinese medicine decoction system according to claim 1, characterized in that: The method for obtaining the water absorption solubility comprises: A treatment degree label value is obtained according to the crushing process category, and the product of the treatment degree label value and the solubility is used as the water absorption solubility.
3. The intelligent Chinese medicine decoction system according to claim 2, characterized in that: The processing degree label value is a preset value, and the greater the degree of crushing of the medicine to be processed, the greater the processing degree label value.
4. The intelligent Chinese medicine decoction system according to claim 1, characterized in that: The prescription-specific acquisition method includes: The process information includes water temperature information and gram weight information. The temperature difference between the standard water temperature in the standard process information and the water temperature information is obtained, and the gram weight difference between the gram weight information and the standard gram weight in the standard process information is obtained; the product of the temperature difference and the gram weight difference is normalized to obtain the prescription specificity.
5. The intelligent Chinese medicine decoction system according to claim 4, characterized in that: The method for obtaining the process time adjustment parameter includes: The ratio of the prescription specificity to the water absorption solubility is used as the process time adjustment parameter.
6. The intelligent Chinese medicine decoction system according to claim 5, characterized in that: The method for obtaining the final process time includes: The process time adjustment parameter is normalized and then added to a positive integer 1 to obtain an adjustment coefficient, and the adjustment coefficient is multiplied by the process time in the standard process information to obtain the final process time.
7. The intelligent Chinese medicine decoction system according to claim 1, characterized in that: The method for obtaining the distribution centrality includes: Obtain a histogram of channel values under each color channel in the color space information; Obtaining the frequency ratio of the channel interval with the maximum frequency in the histogram to the number of all pixels; The channel value range under each color channel is obtained; and the ratio of the frequency proportion to the channel value range is normalized to obtain the distribution concentration under the color channel.
8. The intelligent Chinese medicine decoction system according to claim 1 or 7, characterized in that: The color space information includes RGB color space information and grayscale information.
9. The intelligent Chinese medicine decoction system according to claim 1, characterized in that: The stopping of the process is controlled according to the change trend of the color expression degree between adjacent frames of liquid images, including: The color expression degree difference between adjacent frames is calculated, and if the color expression degree differences of a preset number of consecutive frames are all 0, the process is stopped.
10. The intelligent Chinese medicine decoction system according to claim 1, characterized in that: The maximum process time is divided into two time periods using a preset time threshold. In the first half of the maximum process time, the sampling frequency of the liquid image is a first sampling frequency; in the second half of the maximum process time, the sampling frequency of the liquid image is a second sampling frequency; and the second sampling frequency is greater than the first sampling frequency.
Citation Information
Patent Citations
Traditional Chinese medicine intelligent decoction process and device and products thereof
CN103340752A
Intelligent herbal medicine decoction management method and system
CN108922596A
Traditional Chinese medicine dispensing method and system based on decoction process and storage medium
CN113782169A
Traditional Chinese medicine heating device, traditional Chinese medicine pill preparation equipment and traditional Chinese medicine processing method
CN113855563A
Automatic decoction method and device based on intelligent traditional Chinese medicine and medium
CN114504502A