Traditional Chinese Medicine Decoction Pieces Processing Process Analysis System and Method Based on Image Recognition
Image recognition technology to obtain image and component data of the preparation process of Chinese herbal medicines, perform feature extraction and abnormal evaluation, solving the problem of insufficient accuracy of preparation effect analysis in the prior art, and achieving more accurate preparation effect evaluation and composition change analysis.
Patent Information
- Application Number
- CN202510317925.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2045-03-18
AI Technical Summary
The prior art cannot accurately evaluate the image and composition changes in the process of preparing Chinese herbal medicines, resulting in poor accuracy of the preparation effect analysis, and the inability to take into account the ingredient changes, difficulty in retaining effective ingredients and difficulty in removing toxic ingredients.
Through the Chinese herbal medicine preparation process analysis system based on image recognition, image change data and component composition data are obtained, image change feature extraction and abnormal evaluation are carried out, and the preparation effect is comprehensively evaluated based on the abnormality of component change.
It improves the accuracy of preparation effect analysis, takes into account the comprehensive analysis of component changes, difficulty in retention of effective ingredients and difficulty in removing toxic ingredients, and improves the quality stability and uniformity of the preparation process.
Smart Images

Figure CN119832001B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of image recognition, specifically a system and method for analyzing the processing process of traditional Chinese medicine decoction pieces based on image recognition. Background Art
[0002] The processing of traditional Chinese medicine decoction pieces is a continuous production process. The judgment of the processing end point is directly related to the quality of the decoction pieces and affects the clinical efficacy. The surface color of the decoction pieces is an important index with significant changes during the processing of bran-fried decoction pieces, and it is also the "gold standard" for veteran pharmacists to evaluate the quality of bran-fried decoction pieces. In current production, the initial evaluation still mainly relies on the production experience of operators, resulting in phenomena such as strong subjectivity and inconsistent standards, leading to low stability and poor uniformity of the quality of decoction pieces.
[0003] In the process of automated production, the prior art cannot comprehensively evaluate the processing effect based on the images and component changes during processing, resulting in poor accuracy in analyzing the processing effect. At the same time, it cannot take into account the component changes, the difficulty of retaining active ingredients, and the difficulty of removing toxic ingredients to comprehensively analyze the component changes during the processing process, further leading to poor accuracy in analyzing the processing effect. Most of the prior art has the above problems.
[0004] In order to improve the accuracy of analyzing the processing effect, this application designs a system and method for analyzing the processing process of traditional Chinese medicine decoction pieces based on image recognition. Summary of the Invention
[0005] To solve the deficiencies in the prior art mentioned in the background art, this application proposes a system and method for analyzing the processing process of traditional Chinese medicine decoction pieces based on image recognition.
[0006] To achieve the above object, this application provides the following technical solutions: In the first aspect, this application provides a method for analyzing the processing process of traditional Chinese medicine decoction pieces based on image recognition, which includes the following specific steps:
[0007] Step 1, obtain the image change data of the processing process of traditional Chinese medicine decoction pieces, and at the same time obtain the component composition data of the traditional Chinese medicine decoction pieces during the processing process;
[0008] Step 2, obtain the image change characteristics of the traditional Chinese medicine decoction pieces during the processing process based on the image change data of the processing process of traditional Chinese medicine decoction pieces;
[0009] Step 3, evaluate the abnormality of the image change during the processing process based on the image change characteristics of the traditional Chinese medicine decoction pieces;
[0010] Step 4, judge the abnormality of the component change based on the obtained component composition data of the traditional Chinese medicine decoction pieces during the processing process;
[0011] Step 5, analyze the processing effect based on the evaluation result of the abnormality of the image change during the processing process and the judgment result of the abnormality of the component change.
[0012] Preferably, based on the above solution, the image change data in the traditional Chinese medicine decoction pieces processing process includes the image acquisition video data of the image acquisition terminal during the processing process, and the composition data of the traditional Chinese medicine decoction pieces is the composition data of the traditional Chinese medicine decoction pieces collected after and before processing. Among them, the composition data is collected by the composition acquisition terminal, and the composition data includes the types and contents of active ingredients and the types and contents of toxic ingredients in the medicinal materials.
[0013] Preferably, based on the above solution, obtaining the image change characteristics of the traditional Chinese medicine decoction pieces during the processing process based on the image change data in the traditional Chinese medicine decoction pieces processing process includes the following specific steps:
[0014] Step 201: Obtain the image data during the processing process of the traditional Chinese medicine decoction pieces, and obtain the change data of the size, shape, and pixel values of each pixel point on the image surface of the traditional Chinese medicine decoction pieces during the processing process from the image data during the processing process;
[0015] Step 202: Obtain the standard size, shape, and change data of the pixel values of each pixel point on the image surface corresponding to the processing of the traditional Chinese medicine decoction pieces;
[0016] Step 203: After extracting the obtained data, store them in the corresponding storage components respectively.
[0017] Preferably, based on the above solution, the image change abnormality evaluation includes the following specific steps:
[0018] Step 301: Obtain the size and shape data after processing, and at the same time obtain the standard size and shape data corresponding to the processing of the traditional Chinese medicine decoction pieces, and import the obtained data into the image abnormality analysis formula to analyze the image abnormality value;
[0019] Step 302: Obtain the pixel values of each region pixel point on the surface of the medicinal materials after processing, and at the same time obtain the standard pixel values of each region pixel point in the processing of the traditional Chinese medicine decoction pieces;
[0020] Step 303: Based on the image abnormality analysis result and the pixel abnormality result of the medicinal materials, perform weighting and then add them to obtain the image change abnormality analysis result.
[0021] Preferably, based on the above solution, the component change abnormality judgment includes the following specific contents: Step 401: Obtain the component change information in the historical processing process, and analyze the difficulty of maintaining active ingredients and the difficulty of removing toxic ingredients based on the component change information in the same historical processing process;
[0022] Among them, the analysis of the difficulty of maintaining active ingredients includes the following specific steps: Step 4011: Obtain the active ingredient change information in the historical processing process, and obtain the contents of various active ingredients before historical processing and the contents of various active ingredients after historical processing from it;
[0023] Step 4012: Obtain the change amounts of the contents of various active ingredients during the processing based on the contents of various active ingredients before historical processing and the contents of various active ingredients after historical processing, and import the change amounts of the contents of various active ingredients and the contents of various active ingredients before processing into the calculation formula for the retention difficulty of active ingredients to calculate the retention difficulty of various active ingredients;
[0024] Step 4013: Obtain the change information of toxic ingredients during the historical processing, and obtain the contents of various toxic ingredients before historical processing and the contents of various toxic ingredients after historical processing therefrom;
[0025] Step 4014: Import the contents of various toxic ingredients before historical processing and the contents of various toxic ingredients after historical processing into the calculation formula for the removal difficulty of toxic ingredients to calculate the removal difficulty of toxic ingredients;
[0026] Step 402: Analyze the retention effect of active ingredients based on the calculated retention difficulty of active ingredients and the corresponding changes in the contents of active ingredients;
[0027] Step 403: Analyze the removal effect of toxic ingredients based on the calculated removal difficulty of toxic ingredients and the corresponding changes in the contents of toxic ingredients; Step 404: Judge the abnormality of ingredient changes based on the results of the analysis of the retention effect of active ingredients and the results of the analysis of the removal effect of toxic ingredients. The method for judging the abnormality of ingredient changes can be to obtain the ingredient change abnormality value by taking the reciprocal of the weighted sum of the results of the analysis of the retention effect of active ingredients and the results of the analysis of the removal effect of toxic ingredients.
[0028] Preferably, on the basis of the above solution, the analysis of the processing effect includes the following specific steps: Obtain the evaluation result of the abnormality of the change of the processing process image and the judgment result of the abnormality of ingredient changes calculated, multiply the evaluation result of the abnormality of the change of the processing process image and the judgment result of the abnormality of ingredient changes to obtain a product, take the reciprocal after standardization to obtain the processing effect, and compare the processing effect with the set processing effect threshold. If the processing effect is greater than or equal to the set processing effect threshold, it means that the processing effect is good and the processing parameters do not need to be changed. If the processing effect is less than the set processing effect threshold, it means that the processing effect is poor and the processing parameters need to be changed.
[0029] Second aspect, the present application provides a traditional Chinese medicine decoction piece processing process analysis system based on image recognition, which is implemented based on the above-mentioned traditional Chinese medicine decoction piece processing process analysis method based on image recognition, and specifically includes a data acquisition module, an image change feature acquisition module, an image change abnormality evaluation module, a component change abnormality judgment module, and a processing effect analysis module; wherein, the data acquisition module is used to acquire the image change data of the traditional Chinese medicine decoction piece processing process, and at the same time acquire the component composition data of the traditional Chinese medicine decoction piece during the processing process; the image change feature acquisition module acquires the image change features of the traditional Chinese medicine decoction piece during the processing process based on the image change data of the traditional Chinese medicine decoction piece processing process; the image change abnormality evaluation module performs an abnormality evaluation of the image change during the processing process based on the image change features of the traditional Chinese medicine decoction piece; the component change abnormality judgment module performs a component change abnormality judgment based on the acquired component composition data of the traditional Chinese medicine decoction piece during the processing process; the processing effect analysis module performs a processing effect analysis based on the image change abnormality evaluation result and the component change abnormality judgment result during the processing process.
[0030] Third aspect, the present application provides an electronic device, including: a processor and a memory, wherein, a computer program that can be called by the processor is stored in the memory;
[0031] The processor executes the above-mentioned traditional Chinese medicine decoction piece processing process analysis method based on image recognition by calling the computer program stored in the memory.
[0032] Fourth aspect, the present application provides a computer-readable storage medium, storing instructions, when the instructions run on a computer, enabling the computer to execute the traditional Chinese medicine decoction piece processing process analysis method based on image recognition as described above.
[0033] At the same time, compared with the prior art, the technical effects and advantages of the present application are:
[0034] The first advantage of the present application is that: the present application performs an abnormality evaluation of the image change during the processing process based on the image change features of the traditional Chinese medicine decoction piece, performs a component change abnormality judgment based on the acquired component composition data of the traditional Chinese medicine decoction piece during the processing process, performs a processing effect analysis based on the image change abnormality evaluation result and the component change abnormality judgment result during the processing process, and comprehensively evaluates the processing effect based on the image and component changes during the processing, improving the accuracy of the processing effect analysis.
[0035] The second advantage of the present application is that: during the process of analyzing the component change, the present application comprehensively analyzes the component change in consideration of the component change, the difficulty of retaining the active ingredient, and the difficulty of removing the toxic ingredient, further improving the accuracy of the processing effect analysis. Description of the Drawings
[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings;
[0037] Figure 1 It is a schematic diagram of the overall process of the method for analyzing the processing process of traditional Chinese medicine decoction pieces based on image recognition;
[0038] Figure 2 It is a schematic diagram of the specific process of step 3 of the method for analyzing the processing process of traditional Chinese medicine decoction pieces based on image recognition;
[0039] Figure 3 It is a schematic diagram of the specific process of step 4 of the method for analyzing the processing process of traditional Chinese medicine decoction pieces based on image recognition;
[0040] Figure 4 It is a schematic diagram of the module composition of the system for analyzing the processing process of traditional Chinese medicine decoction pieces based on image recognition. Detailed implementation manners
[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. The description of at least one exemplary embodiment is actually only illustrative and in no way limits the present application and its application or use.
[0042] In addition, the accompanying drawings are only schematic diagrams of the present invention and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor methods and / or microcontroller methods.
[0043] It should be understood that although the terms "first", "second", etc. may be used here to describe various units, these units should not be limited by these terms. These terms are only used to distinguish one unit from another. For example, without departing from the scope of the exemplary embodiments, the first unit can be called the second unit, and similarly, the second unit can be called the first unit. The term "and / or" used here includes any and all combinations of one or more of the listed related items.
[0044] To solve the technical problems raised in the background art, the present application provides a preferred embodiment: as Figures 1 - 3 shown, an analysis method for the processing process of traditional Chinese medicine decoction pieces based on image recognition, which includes the following specific steps:
[0045] Step 1, obtain the image change data of the processing process of traditional Chinese medicine decoction pieces, and at the same time obtain the component composition data of the traditional Chinese medicine decoction pieces during the processing process;
[0046] In this embodiment, the image change data of the processing process of traditional Chinese medicine decoction pieces includes the image acquisition video data of the image acquisition terminal during the processing process, and the component composition data of the traditional Chinese medicine decoction pieces is the component composition data of the traditional Chinese medicine decoction pieces collected after processing and before processing. Among them, the component composition data is collected by the component composition acquisition terminal, and the component composition data includes the types and contents of effective components and the types and contents of toxic components in the medicinal materials. Among them, the effective components include components beneficial to the body, and the toxic components include some alkaloids or sulfides and other components harmful to the body;
[0047] Step 2, obtain the image change characteristics of the traditional Chinese medicine decoction pieces during the processing process based on the image change data of the processing process of the traditional Chinese medicine decoction pieces;
[0048] In this embodiment, obtaining the image change characteristics of the traditional Chinese medicine decoction pieces during the processing process based on the image change data of the processing process of the traditional Chinese medicine decoction pieces includes the following specific steps:
[0049] Step 201, obtain the image data during the processing process of the traditional Chinese medicine decoction pieces, and obtain the change data of the size, shape and pixel values of each pixel point on the surface of the image of the traditional Chinese medicine decoction pieces during the processing process from the image data during the processing process;
[0050] Step 202, obtain the standard size, shape and change data of the pixel values of each pixel point on the surface of the corresponding traditional Chinese medicine decoction piece processing as comparison data, and this group of data is obtained manually from the traditional Chinese medicine decoction pieces with the best historical judgment of processing;
[0051] Step 203, store the obtained data separately in the corresponding storage components after extraction;
[0052] Step 3, perform an abnormal assessment of the image change during the processing process based on the image change characteristics of the traditional Chinese medicine decoction pieces;
[0053] In this embodiment, the abnormal assessment of the image change includes the following specific steps:
[0054] Step 301, obtain the size and shape data after processing, and at the same time obtain the standard size and shape data of the corresponding traditional Chinese medicine decoction piece processing, and import the obtained data into the image abnormality analysis formula to analyze the image abnormality value. Among them, the image abnormality analysis formula can be the reciprocal of the shape data similarity calculated by the shape data similarity calculation formula, or it can be: wherein, Vz is the volume of the processed medicinal material, Vm is the standard volume of traditional Chinese medicine decoction pieces processing, V() is the volume of the image in the brackets, fz is the shape after processing, fc is the standard shape of traditional Chinese medicine decoction pieces processing, is the intersection of the two shapes, is the union of the two images;
[0055] Step 302: Obtain the pixel values of each area pixel points on the surface of the processed medicinal material, and at the same time obtain the standard pixel values of each area pixel points of traditional Chinese medicine decoction pieces processing, and analyze the pixel anomalies of the processed medicinal material. The calculation formula for pixel anomalies can be: wherein, n is the number of area pixel points, xi is the pixel value of the i-th pixel point, and xim is the standard pixel value of the area pixel points;
[0056] Step 303: Based on the image anomaly analysis result and the pixel anomaly result of the medicinal material, perform weighted addition to obtain the image change anomaly analysis result, so as to perform image change anomaly analysis on the processing process through the image anomaly and pixel anomaly after processing;
[0057] Step 4: Based on the obtained data of the component composition of traditional Chinese medicine decoction pieces in the processing process, perform component change anomaly judgment;
[0058] In this embodiment, the component change anomaly judgment includes the following specific contents: Step 401: Obtain the component change information in the historical processing process, and analyze the difficulty of maintaining active ingredients and the difficulty of removing toxic ingredients based on the component change information in the same historical processing process;
[0059] Among them, the analysis of the difficulty of maintaining active ingredients includes the following specific steps: Step 4011: Obtain the active ingredient change information in the historical processing process, and obtain the content of various active ingredients before historical processing and the content of various active ingredients after historical processing from it;
[0060] Step 4012: Based on the content of various active ingredients before historical processing and the content of various active ingredients after historical processing, obtain the change amount of the content of various active ingredients during processing, and import the change amount of the content of various active ingredients and the content of various active ingredients before processing into the calculation formula for the difficulty of retaining active ingredients to calculate the difficulty of retaining various active ingredients. Among them, the calculation formula for the difficulty of retaining the j-th active ingredient is: wherein, Rj is the average value of the change amount of the content of the j-th historical active ingredient, Rjm is the average value of the content of the j-th active ingredient before historical processing, and J is the type of active ingredient;
[0061] Step 4013: Obtain the information on the changes in toxic components during the historical processing, and from it, obtain the contents of various toxic components before historical processing and the contents of various toxic components after historical processing;
[0062] Step 4014: Import the contents of various toxic components before historical processing and the contents of various toxic components after historical processing into the calculation formula for the difficulty of removing toxic components to calculate the difficulty of removing toxic components. Among them, the calculation formula for the difficulty of removing the c-th toxic component is: , where V is the type of toxic components, Zc is the average content of the c-th toxic component after historical processing, and Zcm is the average content of the c-th toxic component before historical processing;
[0063] Step 402: Conduct an analysis of the retention effect of active ingredients based on the calculated difficulty of maintaining active ingredients and the corresponding changes in active ingredients;
[0064] Among them, the method of analyzing the retention effect of active ingredients is: obtain the calculated difficulties of maintaining various active ingredients and the corresponding changes in active ingredients, and weight the changes in active ingredients based on the difficulties of maintaining various active ingredients to obtain the retention effect of active ingredients. Among them, the calculation formula for the retention effect of active ingredients is: , where Gjh is the content of the j-th active ingredient after processing, and Gjq is the content of the j-th active ingredient before processing; in this way, analyze the retention effect of active ingredients through the difficulties of maintaining various active ingredients and the corresponding retention situations of active ingredients;
[0065] Step 403: Conduct an analysis of the removal effect of toxic components based on the calculated difficulty of removing toxic components and the corresponding changes in toxic components; among them, the method of analyzing the removal effect of toxic components is: obtain the calculated difficulties of removing various toxic components and the proportion of the removal amount of various toxic components, and import them into the calculation formula for the removal effect of toxic components to calculate the removal effect of toxic components. Among them, the calculation formula for the removal effect of toxic components is: , where fc is the removed content of the c-th toxic component during processing, and fcm is the content of the c-th toxic component before processing;
[0066] Step 404: Conduct a judgment on abnormal component changes based on the analysis results of the retention effect of active ingredients and the analysis results of the removal effect of toxic components. The method of judging abnormal component changes can be to obtain the reciprocal of the weighted sum of the analysis results of the retention effect of active ingredients and the analysis results of the removal effect of toxic components to obtain the abnormal component change value;
[0067] Step 5: Conduct an analysis of the processing effect based on the evaluation result of abnormal changes in the processing process image and the judgment result of abnormal component changes;
[0068] In this embodiment, the analysis of the processing effect includes the following specific steps: obtaining the calculated abnormal evaluation result of the image change during the processing and the abnormal judgment result of the component change, multiplying the abnormal evaluation result of the image change during the processing and the abnormal judgment result of the component change to obtain a product, and obtaining the processing effect by taking the reciprocal after standardization. It should be noted here that the formula for calculating the processing effect can be: , where Pt is the abnormal evaluation result of the image change during the processing, and Pc is the abnormal judgment result of the component change. Compare the processing effect with the set processing effect threshold. If the processing effect is greater than or equal to the set processing effect threshold, it indicates that the processing effect is good and there is no need to change the processing parameters. If the processing effect is less than the set processing effect threshold, it indicates that the processing effect is poor and the processing parameters need to be changed.
[0069] At the same time, it should be noted in this embodiment that the value-taking method of the set parameters (such as thresholds, various proportion influences, or weights) in this application is as follows: obtaining the image change data of the historical traditional Chinese medicine decoction pieces during the processing and the component composition data of the traditional Chinese medicine decoction pieces during the processing, and at the same time obtaining the judgment result of whether the processing requirements are met manually. Substitute the obtained historical data into the final calculation results and judgment results of each step of this embodiment and import them into the fitting software for data fitting iteration to obtain the value-taking of the set parameters (such as thresholds, various proportion influences, or weights) that meets the highest judgment result accuracy.
[0070] Here, the advantages of this embodiment are described. The abnormal evaluation of the image change during the processing is carried out based on the image change characteristics of the traditional Chinese medicine decoction pieces. The abnormal judgment of the component change is carried out based on the obtained component composition data of the traditional Chinese medicine decoction pieces during the processing. The processing effect analysis is carried out based on the abnormal evaluation result of the image change during the processing and the abnormal judgment result of the component change. The processing effect is comprehensively evaluated based on the image and component changes during the processing, which improves the accuracy of the processing effect analysis. During the process of analyzing the component change, the component change, the difficulty of retaining the active ingredients, and the difficulty of removing the toxic ingredients are taken into account for comprehensive analysis of the component change, further improving the accuracy of the processing effect analysis.
[0071] Secondly, as Figure 4As shown in the figure, this embodiment also provides a traditional Chinese medicine decoction piece processing process analysis system based on image recognition, which is implemented based on the above-mentioned traditional Chinese medicine decoction piece processing process analysis method based on image recognition. Specifically, it includes a data acquisition module, an image change feature acquisition module, an image change abnormality evaluation module, a component change abnormality judgment module, and a processing effect analysis module. Among them, the data acquisition module is used to acquire the image change data of the traditional Chinese medicine decoction piece processing process, and at the same time acquire the component composition data of the traditional Chinese medicine decoction piece during the processing process. The image change feature acquisition module acquires the image change features of the traditional Chinese medicine decoction piece during the processing process based on the image change data of the traditional Chinese medicine decoction piece processing process. The image change abnormality evaluation module performs an abnormality evaluation on the image change during the processing process based on the image change features of the traditional Chinese medicine decoction piece. The component change abnormality judgment module judges the abnormality of the component change based on the acquired component composition data of the traditional Chinese medicine decoction piece during the processing process. The processing effect analysis module performs a processing effect analysis based on the image change abnormality evaluation result and the component change abnormality judgment result. At the same time, it should be noted that Figure 4 the arrow direction in represents the data transmission direction, that is, the data acquired by the data acquisition module is correspondingly transmitted to the image change feature acquisition module and the component change abnormality judgment module for data analysis. The output of the image change feature acquisition module is transmitted to the image change abnormality evaluation module for abnormality evaluation. The data of the image change abnormality evaluation module and the component change abnormality judgment module are transmitted to the processing effect analysis module.
[0072] Then, this embodiment also provides an electronic device, including: a processor and a memory. Among them, a computer program that can be called by the processor is stored in the memory;
[0073] The processor executes the above-mentioned traditional Chinese medicine decoction piece processing process analysis method based on image recognition by calling the computer program stored in the memory.
[0074] This electronic device may have relatively large differences due to different configurations or performances, and can include one or more processors and one or more memories. Among them, at least one computer program is stored in the memory, and this computer program is loaded and executed by the processor to implement the traditional Chinese medicine decoction piece processing process analysis method provided by the above method embodiment. This electronic device can also include other components for realizing the functions of the device. For example, this electronic device can also have components such as a wired or wireless network interface and an input / output interface for data input and output. This embodiment will not be elaborated here.
[0075] Finally, this embodiment proposes a computer-readable storage medium, on which a rewritable computer program is stored;
[0076] When the computer program runs on a computer device, it causes the computer device to execute the above-mentioned method for analyzing the processing of traditional Chinese medicine decoction pieces based on image recognition.
[0077] For example, the computer-readable storage medium can be a read-only memory, a random access memory, a compact disc read-only memory, magnetic tapes, floppy disks, and optical data storage devices, etc.
[0078] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of an all-hardware embodiment, an all-software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0079] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the specified functions in one Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0080] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means implements the specified functions in one Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0081] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide steps for implementing the specified functions in one Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0082] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0083] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0084] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0085] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0086] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A method for analyzing the processing of Chinese herbal medicine pieces based on image recognition, characterized in that: It includes the following specific steps: Acquire the image change data of the processing process of Chinese herbal medicine pieces, and at the same time acquire the component composition data of the Chinese herbal medicine pieces during the processing process; Based on the image change data of the processing process of Chinese herbal medicine pieces, the image change characteristics of the Chinese herbal medicine pieces in the processing process are obtained; Based on the image change characteristics of Chinese herbal medicine pieces, abnormal image changes in the processing process are evaluated; Based on the obtained data of the composition of the Chinese herbal medicine pieces during the processing, abnormal changes in the composition are judged; The abnormal component change judgment includes the following specific contents: Obtain information on ingredient changes during historical processing, and analyze the difficulty of maintaining effective ingredients and removing toxic ingredients based on the ingredient change information during the same historical processing; Based on the calculated difficulty of maintaining the active ingredients and the corresponding changes in the active ingredients, the effective ingredient retention effect is analyzed; The toxic component removal effect is analyzed based on the calculated toxic component removal difficulty and the corresponding toxic component changes; Based on the analysis results of effective ingredient retention and toxic ingredient removal, abnormal ingredient changes are judged; The processing effect analysis is performed based on the abnormal image change assessment results and abnormal component change judgment results during the processing process.
2. The method for analyzing the processing process of Chinese herbal medicine pieces based on image recognition according to claim 1, characterized in that: The abnormal image change assessment comprises the following specific steps: The size and shape data after processing are obtained, and the standard size and shape data of the corresponding Chinese herbal medicine pieces are obtained at the same time. The obtained data are imported into the image anomaly analysis formula to analyze the image anomaly value, where the image anomaly analysis formula is: , where Vz is the volume of the processed medicinal material, Vm is the standard size of the processed Chinese herbal medicine pieces, V() is the volume of the image in brackets, fz is the shape after processing, and fc is the standard shape of the corresponding processed Chinese herbal medicine pieces. is the intersection of two shapes, is the union of two images; Obtain pixel values of pixel points in each area of the surface of the processed medicinal material, and at the same time obtain standard pixel values of pixel points in each area of the processed Chinese herbal medicine slices, and analyze pixel anomalies of the processed medicinal material; The image abnormality analysis results and the pixel abnormality results of the medicinal materials are weighted and added together to obtain the image change abnormality analysis results.
3. The method for analyzing the processing process of Chinese herbal medicine pieces based on image recognition according to claim 2, characterized in that: The analysis of the difficulty of maintaining the active ingredient includes the following specific steps: Obtain information on changes in active ingredients during historical processing, from which the contents of various active ingredients before historical processing and the contents of various active ingredients after historical processing are obtained; Based on the contents of various active ingredients before and after historical processing, the changes in the contents of various active ingredients during processing are obtained, and the changes in the contents of various active ingredients and the contents of various active ingredients before processing are introduced into the calculation formula for the difficulty of retaining active ingredients to calculate the difficulty of retaining various active ingredients. Among them, the calculation formula for the difficulty of retaining the jth active ingredient is: , where Rj is the average value of the change in the content of the jth active ingredient in history, Rjm is the average value of the content of the jth active ingredient before historical processing, and J is the type of active ingredient; Obtain information on changes in toxic components during the historical processing, and obtain the content of various toxic components before and after the historical processing; Based on the contents of various toxic components before historical processing and the contents of various toxic components after historical processing, the difficulty of removing toxic components is calculated by introducing the calculation formula of the difficulty of removing toxic components. Among them, the calculation formula of the difficulty of removing the cth toxic component is: , where V is the type of toxic ingredient, Zc is the average content of the cth toxic ingredient after historical processing, and Zcm is the average content of the cth toxic ingredient before historical processing.
4. The method for analyzing the processing process of Chinese herbal medicine pieces based on image recognition according to claim 3, characterized in that: The method of analyzing the effective component retention effect is as follows: obtaining the calculated difficulties of maintaining various effective components and the corresponding changes in effective components, and weighting the changes in effective components based on the difficulties of maintaining various effective components to obtain the effective component retention effect. The method of analyzing the toxic component removal effect is as follows: obtaining the calculated difficulties of removing various toxic components and the removal ratios of various toxic components, and introducing them into the calculation formula of the toxic component removal effect to calculate the toxic component removal effect, wherein the calculation formula of the toxic component removal effect is: , where fc is the content of the cth toxic component removed during the processing, fcm is the content of the cth toxic component before processing, and V is the type of toxic component.
5. The method for analyzing the processing process of Chinese herbal medicine pieces based on image recognition according to claim 4, characterized in that: The processing effect analysis includes the following specific steps: obtaining the calculated processing process image change abnormality assessment results and component change abnormality judgment results, multiplying the processing process image change abnormality assessment results and component change abnormality judgment results to obtain the product, normalizing and then taking the inverse to obtain the processing effect, comparing the processing effect with the set processing effect threshold, if the processing effect is greater than or equal to the set processing effect threshold, it means that the processing effect is good and the processing parameters do not need to be changed, if the processing effect is less than the set processing effect threshold, it means that the processing effect is poor and the processing parameters need to be changed.
6. The method for analyzing the processing process of Chinese herbal medicine pieces based on image recognition according to claim 5, characterized in that: The method of obtaining the image change characteristics of the Chinese herbal medicine pieces during the processing process based on the image change data of the Chinese herbal medicine pieces during the processing process comprises the following specific steps: Acquire image data of the Chinese herbal medicine pieces during the processing process, and acquire data on the change of the size, shape and pixel value of each pixel point on the image surface of the Chinese herbal medicine pieces during the processing process from the image data during the processing process; Obtain the standard size and shape of the corresponding Chinese herbal medicine pieces and the change data of the pixel value of each pixel point on the image surface; The acquired data are extracted and stored in corresponding storage components respectively.
7. The method for analyzing the processing process of Chinese herbal medicine pieces based on image recognition according to claim 6, characterized in that: The image change data of the Chinese herbal medicine preparation process includes image acquisition image data of the image acquisition terminal during the preparation process, and the component composition data of the Chinese herbal medicine is the component composition data of the Chinese herbal medicine collected before and after preparation, wherein the component composition data is collected by the component composition collection terminal, and the component composition data includes the types and contents of effective ingredients and the types and contents of toxic ingredients in the medicinal materials.
8. A Chinese herbal medicine preparation process analysis system based on image recognition, which is implemented based on the Chinese herbal medicine preparation process analysis method based on image recognition as claimed in any one of claims 1 to 7, characterized in that: It specifically includes a data acquisition module, an image change feature acquisition module, an image change abnormality assessment module, an ingredient change abnormality judgment module and a processing effect analysis module; wherein the data acquisition module is used to acquire the image change data of the processing process of Chinese herbal medicine pieces, and simultaneously acquire the ingredient composition data of the Chinese herbal medicine pieces during the processing process; the image change feature acquisition module acquires the image change features of the Chinese herbal medicine pieces during the processing process based on the image change data of the Chinese herbal medicine pieces during the processing process; the image change abnormality assessment module performs image change abnormality assessment during the processing process based on the image change features of the Chinese herbal medicine pieces; the ingredient change abnormality judgment module performs ingredient change abnormality judgment based on the acquired ingredient composition data of the Chinese herbal medicine pieces during the processing process; the processing effect analysis module performs processing effect analysis based on the image change abnormality assessment result and the ingredient change abnormality judgment result of the processing process.
9. An electronic device, comprising: A processor and a memory, wherein the memory stores a computer program that can be called by the processor; It is characterized in that the processor executes the method for analyzing the preparation process of Chinese herbal medicine pieces based on image recognition as described in any one of claims 1 to 7 by calling the computer program stored in the memory.
Citation Information
Patent Citations
Visual detection and analysis system for quality of traditional Chinese medicine decoction pieces
CN116862911A
Medicinal material production quality detection method based on image recognition
CN119091259A