Traditional Chinese medicine decoction piece processing process analysis system and method based on image recognition
Through the analysis system of Chinese herbal medicine preparation process based on image recognition, combined with image changes and component changes data, the problem of poor accuracy of preparation effect analysis in the prior art is solved, and a comprehensive evaluation and optimization of the preparation process is achieved.
Patent Information
- Application Number
- CN202510317925.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2045-03-18
AI Technical Summary
The prior art cannot comprehensively evaluate the preparation effect based on the prepared image and component changes, resulting in poor accuracy of the preparation effect analysis and cannot take into account the ingredient changes, the difficulty of retaining effective ingredients and the difficulty of removing toxic ingredients.
A system and method for the preparation process of traditional Chinese herbal medicines based on image recognition was designed. By obtaining the image change data and component composition data of the preparation process of traditional Chinese herbal medicines, extracting image change characteristics and component change information, performing image change abnormality evaluation and judging component change abnormality, and finally performing preparation effect analysis based on these results.
The accuracy of preparation effect analysis was improved, and the preparation process was comprehensively analyzed taking into account the ingredient changes, the difficulty of retaining effective ingredients and the difficulty of removing toxic ingredients.
Smart Images

Figure CN119832001A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of image recognition, and more specifically, is a system and method for analyzing the preparation process of Chinese herbal medicines based on image recognition. Background Art
[0002] The preparation of Chinese herbal medicine slices is a continuous production process. The judgment of the processing endpoint is directly related to the quality of the slices and affects the clinical efficacy. The surface color of the slices is an important indicator of significant changes in the preparation process of bran-fried slices. It is also the "gold standard" for experienced pharmacists to evaluate the quality of bran-fried slices. In current production, the initial evaluation still mainly relies on the production experience of the operator, which is highly subjective and has inconsistent standards, resulting in low stability and poor uniformity of the slice quality. In the automated production process, the existing technology cannot comprehensively evaluate the processing effect based on the processing image and component changes, resulting in poor accuracy in the processing effect analysis. At the same time, it cannot comprehensively analyze the component changes in the processing process taking into account the component changes, the difficulty in retaining the effective components and the difficulty in removing the toxic components, further resulting in poor accuracy in the processing effect analysis. Most of the existing technologies have the above problems. In order to improve the accuracy of processing effect analysis, this application designs a Chinese herbal medicine processing process analysis system and method based on image recognition. Summary of the invention
[0003] In order to address the deficiencies in the prior art mentioned in the background technology, the present application proposes a Chinese herbal medicine preparation process analysis system and method based on image recognition.
[0004] To achieve the above objectives, the present application provides the following technical solutions: In the first aspect, the present application provides a method for analyzing the processing of Chinese herbal medicine pieces based on image recognition, which comprises the following specific steps: Step 1, obtaining image change data of the processing process of Chinese herbal medicine pieces, and simultaneously obtaining component composition data of the Chinese herbal medicine pieces in the processing process; Step 2, obtaining 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; Step 3, evaluating abnormal image changes during the processing process based on the image change characteristics of the Chinese herbal medicine pieces; Step 4: judging abnormal changes in components based on the obtained component composition data of the Chinese herbal medicine pieces during the processing process; Step 5: Analyze the processing effect based on the abnormal image change assessment results and the abnormal component change judgment results during the processing.
[0005] Preferably, based on the above scheme, the image change data of the preparation process of the Chinese herbal medicine slices includes image acquisition image data of the image acquisition terminal during the preparation process, and the component composition data of the Chinese herbal medicine slices is the component composition data of the Chinese herbal medicine slices collected before and after preparation, wherein the component composition data is collected by a 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.
[0006] Preferably, based on the above scheme, the method of acquiring 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: Step 201, obtaining image data of the Chinese herbal medicine pieces during the processing process, and obtaining the size, shape and pixel value change data 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; Step 202, obtaining 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; Step 203: extract the acquired data and store them in corresponding storage components respectively.
[0007] Preferably, based on the above scheme, the image change abnormality assessment includes the following specific steps: Step 301, obtaining the size and shape data after processing, and obtaining the corresponding standard size and shape data of the processed Chinese herbal medicine pieces, and importing the obtained data into the image abnormality analysis formula to analyze the image abnormality value; Step 302, obtaining pixel values of pixel points in each region of the surface of the processed medicinal material, and obtaining standard pixel values of pixel points in each region of the processed Chinese herbal medicine slices; Step 303: weighting and adding the image abnormality analysis result and the pixel abnormality result of the medicinal material to obtain the image change abnormality analysis result.
[0008] Preferably, based on the above scheme, the abnormal component change judgment includes the following specific contents: Step 401, obtaining the component change information in the historical processing process, and analyzing the difficulty of maintaining the effective components and the difficulty of removing the toxic components based on the component change information in the same historical processing process; The analysis of the difficulty of maintaining the active ingredients includes the following specific steps: Step 4011, obtaining the active ingredient change information during the historical processing, and obtaining the contents of various active ingredients before the historical processing and the contents of various active ingredients after the historical processing; Step 4012: based on the historical contents of various active ingredients before processing and the historical contents of various active ingredients after processing, obtain the changes in the contents of various active ingredients during processing, and introduce the changes in the contents of various active ingredients and the contents of various active ingredients before processing into the calculation formula for the difficulty of retaining the active ingredients to calculate the difficulty of retaining the various active ingredients; Step 4013, obtaining information on changes in toxic components during the historical processing, and obtaining the contents of various toxic components before the historical processing and the contents of various toxic components after the historical processing; Step 4014, calculating the difficulty of removing toxic components by introducing the contents of various toxic components before historical processing and the contents of various toxic components after historical processing into a calculation formula for difficulty of removing toxic components; Step 402: analyzing the effective ingredient retention effect based on the calculated effective ingredient retention difficulty and the corresponding effective ingredient change; Step 403, analyzing the toxic component removal effect based on the calculated difficulty of toxic component removal and the corresponding toxic component changes; Step 404, judging abnormal component changes based on the effective component retention effect analysis results and the toxic component removal effect analysis results. The abnormal component change judgment method can be to obtain the component change abnormal value by taking the inverse of the weighted sum of the effective component retention effect analysis results and the toxic component removal effect analysis results.
[0009] Preferably, based on the above scheme, 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.
[0010] In the second aspect, the present application provides a Chinese herbal medicine preparation process analysis system based on image recognition, which is implemented based on the above-mentioned Chinese herbal medicine preparation process analysis method based on image recognition, and 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 preparation effect analysis module; wherein, the data acquisition module is used to acquire image change data of the Chinese herbal medicine preparation process, and simultaneously acquire ingredient composition data of the Chinese herbal medicine preparation process; the image change feature acquisition module acquires image change features of the Chinese herbal medicine preparation process based on the image change data of the Chinese herbal medicine preparation process; the image change abnormality assessment module performs image change abnormality assessment of the preparation process based on the image change features of the Chinese herbal medicine; the ingredient change abnormality judgment module performs ingredient change abnormality judgment based on the acquired ingredient composition data of the Chinese herbal medicine preparation process; the preparation effect analysis module performs preparation effect analysis based on the image change abnormality assessment result and the ingredient change abnormality judgment result of the preparation process.
[0011] In a third aspect, the present application provides an electronic device, comprising: a processor and a memory, wherein the memory stores a computer program that can be called by the processor; The processor executes the above-mentioned Chinese herbal medicine preparation process analysis method based on image recognition by calling the computer program stored in the memory.
[0012] In a fourth aspect, the present application provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above-mentioned method for analyzing the preparation process of Chinese herbal medicines based on image recognition.
[0013] At the same time, compared with the prior art, the technical effects and advantages of this application are: The first advantage of the present application is that the present application evaluates abnormal image changes in the processing process based on the image change characteristics of the Chinese herbal medicines, judges abnormal component changes based on the component composition data of the Chinese herbal medicines in the processing process, analyzes the processing effect based on the abnormal image change evaluation results and the abnormal component change judgment results of the processing process, and comprehensively evaluates the processing effect based on the processed images and component changes, thereby improving the accuracy of the processing effect analysis.
[0014] The second advantage of the present application is that in the process of analyzing component changes, the present application takes into account the component changes, the difficulty of retaining effective components and the difficulty of removing toxic components to conduct a comprehensive analysis of the component changes, thereby further improving the accuracy of the processing effect analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. Figure 1 It is a schematic diagram of the overall process of the analysis method of the preparation process of Chinese herbal medicine pieces based on image recognition; Figure 2 It is a specific flow chart of step 3 of the method for analyzing the processing process of Chinese herbal medicine pieces based on image recognition; Figure 3 It is a specific flow chart of step 4 of the method for analyzing the processing process of Chinese herbal medicine pieces based on image recognition; Figure 4 This is a schematic diagram of the module composition of the Chinese herbal medicine preparation process analysis system based on image recognition. DETAILED DESCRIPTION
[0016] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present application and its application or use.
[0017] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying 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 implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.
[0018] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, a first unit may be referred to as a second unit, and a similar second unit may be referred to as a first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0019] In order to solve the technical problems raised in the background technology, the present application provides a preferred embodiment: Figure 1-Figure 3As shown, the method for analyzing the processing process of Chinese herbal medicine pieces based on image recognition includes the following specific steps: Step 1, obtaining image change data of the processing process of Chinese herbal medicine pieces, and simultaneously obtaining component composition data of the Chinese herbal medicine pieces in the processing process; In this embodiment, the image change data of the processing process of the Chinese herbal medicine slices includes the image acquisition image data of the image acquisition terminal during the processing process, and the component composition data of the Chinese herbal medicine slices is the component composition data of the Chinese herbal medicine slices collected before and after processing, 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 components and the types and contents of toxic components in the medicinal materials, wherein the effective components include components that are beneficial to the body, and the toxic components include some alkaloids or sulfides and other components that are harmful to the body; Step 2, obtaining 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; In this embodiment, obtaining 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 includes the following specific steps: Step 201, obtaining image data of the Chinese herbal medicine pieces during the processing process, and obtaining the size, shape and pixel value change data 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; Step 202, obtaining the standard size, shape and pixel value change data of each pixel point on the image surface of the corresponding Chinese herbal medicine pieces as comparison data, this set of data is manually obtained from the best processed Chinese herbal medicine pieces in history; Step 203, extracting the acquired data and storing them in corresponding storage components; Step 3, evaluating abnormal image changes during the processing process based on the image change characteristics of the Chinese herbal medicine pieces; In this embodiment, the image change abnormality assessment includes the following specific steps: Step 301, obtain the size and shape data after processing, and simultaneously obtain the standard size and shape data of the corresponding Chinese herbal medicine pieces, and import the obtained data into the image abnormality analysis formula to analyze the image abnormality value, wherein the image abnormality analysis formula can be the inverse of the shape data similarity calculated by the shape data similarity calculation formula, or it can be: , 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; Step 302: Obtain pixel values of pixel points in each region of the surface of the processed medicinal material, and simultaneously obtain standard pixel values of pixel points in each region of the processed Chinese herbal medicine slices, and analyze pixel anomalies of the processed medicinal material. The calculation formula of pixel anomalies may be: , where n is the number of pixels in the region, xi is the pixel value of the i-th pixel, and xim is the standard pixel value of the pixel in the region; Step 303: weighting and adding the image abnormality analysis result and the pixel abnormality result of the medicinal material to obtain the image change abnormality analysis result, so as to perform the image change abnormality analysis of the processing process through the image abnormality and pixel abnormality after processing; Step 4: judging abnormal changes in components based on the obtained component composition data of the Chinese herbal medicine pieces during the processing process; In this embodiment, the abnormal component change judgment includes the following specific contents: Step 401, obtaining the component change information in the historical processing process, and analyzing the difficulty of maintaining the effective components and removing the toxic components based on the component change information in the same historical processing process; The analysis of the difficulty of maintaining the active ingredients includes the following specific steps: Step 4011, obtaining the active ingredient change information during the historical processing, and obtaining the contents of various active ingredients before the historical processing and the contents of various active ingredients after the historical processing; Step 4012: based on the historical contents of various active ingredients before processing and the historical contents of various active ingredients after processing, obtain the changes in the contents of various active ingredients during processing, and introduce the changes in the contents of various active ingredients and the contents of various active ingredients before processing into the calculation formula for the difficulty of retaining the active ingredients to calculate the difficulties of retaining the active ingredients, wherein 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; Step 4013, obtaining information on changes in toxic components during the historical processing, and obtaining the contents of various toxic components before the historical processing and the contents of various toxic components after the historical processing; Step 4014: Calculate the difficulty of removing toxic components by importing the toxic component removal difficulty calculation formula based on the content of various toxic components before historical processing and the content of various toxic components after historical processing, wherein the calculation formula for the difficulty of removing the cth toxic component is: , where V is the type of toxic component, Zc is the average content of the cth toxic component after historical processing, and Zcm is the average content of the cth toxic component before historical processing; Step 402: analyzing the effective ingredient retention effect based on the calculated effective ingredient retention difficulty and the corresponding effective ingredient change; The method of analyzing the effective ingredient retention effect is as follows: obtaining the calculated retention difficulties of various effective ingredients and the corresponding changes in the effective ingredients, and weighting the changes in the effective ingredients based on the various effective ingredient retention difficulties to obtain the effective ingredient retention effect. The calculation formula for the effective ingredient retention effect is: , where Gjh is the content of the jth active ingredient after processing, and Gjq is the content of the jth active ingredient before processing; in this way, the active ingredient retention effect is analyzed through the difficulty of maintaining various active ingredients and the corresponding active ingredient retention conditions; Step 403: Analyze the toxic component removal effect based on the calculated toxic component removal difficulty and the corresponding toxic component change; wherein, the toxic component removal effect analysis method is: obtain the calculated various toxic component removal difficulties and the removal amount ratios of various toxic components, import them into the toxic component removal effect calculation formula to calculate the toxic component removal effect, wherein the toxic component removal effect calculation formula is: , where fc is the content of the cth toxic component removed during the processing, and fcm is the content of the cth toxic component before processing; Step 404: judging abnormal component changes based on the analysis results of the effective component retention effect and the analysis results of the toxic component removal effect. The abnormal component change judgment method may be to obtain an abnormal component change value by taking the inverse of the weighted sum of the analysis results of the effective component retention effect and the analysis results of the toxic component removal effect; Step 5: Analyze the processing effect based on the abnormal evaluation results of the processing image changes and the abnormal judgment results of the component changes; In this embodiment, the processing effect analysis includes the following specific steps: obtaining the calculated processing process image change abnormality assessment result and component change abnormality judgment result, multiplying the processing process image change abnormality assessment result and the component change abnormality judgment result to obtain the product, and normalizing and calculating the inverse to obtain the processing effect. It should be noted that the processing effect calculation formula can be: Among them, Pt is the abnormal evaluation result of the image change in the processing process, and Pc is the abnormal judgment result of the component change. The processing effect is compared 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.
[0020] At the same time, it should be noted in this embodiment that the setting parameters (such as thresholds, influences of each proportion or weights) in this application are determined in the following manner: image change data of the historical processing process of Chinese herbal medicines and component composition data of the processing process of Chinese herbal medicines are obtained, and at the same time, the results of manual judgment on whether the processing requirements are met are obtained, and the obtained historical data are substituted into the final calculation results and judgment results of each step of this embodiment, and then imported into the fitting software for data fitting iteration to obtain the values of the setting parameters (such as thresholds, influences of each proportion or weights) that meet the maximum judgment result accuracy.
[0021] The benefits of this embodiment are explained here. Abnormal image change evaluation of the processing process is performed based on the image change characteristics of the Chinese herbal medicines. Abnormal component change judgment is performed based on the component composition data of the Chinese herbal medicines during the processing process. Processing effect analysis is performed based on the abnormal image change evaluation results and the abnormal component change judgment results of the processing process. The processing effect is comprehensively evaluated based on the processed images and component changes, thereby improving the accuracy of the processing effect analysis. In the process of component change analysis, the component changes, the difficulty of retaining effective ingredients and the difficulty of removing toxic ingredients are taken into consideration for a comprehensive analysis of the component changes, thereby further improving the accuracy of the processing effect analysis.
[0022] Secondly, if Figure 4 As shown, the present embodiment also provides a Chinese herbal medicine preparation process analysis system based on image recognition, which is implemented based on the above-mentioned Chinese herbal medicine preparation process analysis method based on image recognition, and 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 preparation effect analysis module; wherein the data acquisition module is used to acquire image change data of the Chinese herbal medicine preparation process, and simultaneously acquire ingredient composition data of the Chinese herbal medicine preparation process; the image change feature acquisition module acquires image change features of the Chinese herbal medicine preparation process based on the image change data of the Chinese herbal medicine preparation process; the image change abnormality assessment module performs image change abnormality assessment of the preparation process based on the image change features of the Chinese herbal medicine preparation process; the ingredient change abnormality judgment module performs ingredient change abnormality judgment based on the acquired ingredient composition data of the Chinese herbal medicine preparation process; the preparation effect analysis module performs preparation effect analysis based on the image change abnormality assessment result and the ingredient change abnormality judgment result of the preparation process. At the same time, it should be noted that Figure 4 The direction of the arrow in represents the direction of data transmission, that is, the data acquired by the data acquisition module is 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 assessment module for abnormality assessment, and the data of the image change abnormality assessment module and the component change abnormality judgment module are transmitted to the processing effect analysis module.
[0023] Then, this embodiment further provides an electronic device, comprising: a processor and a memory, wherein the memory stores a computer program that can be called by the processor; The processor executes the above-mentioned Chinese herbal medicine preparation process analysis method based on image recognition by calling the computer program stored in the memory.
[0024] The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors and one or more memories, wherein the memory stores at least one computer program, which is loaded and executed by the processor to implement the method for analyzing the preparation process of Chinese herbal medicine pieces based on image recognition provided by the above method embodiment. The electronic device may also include other components for realizing the functions of the device, for example, the electronic device may also have components such as a wired or wireless network interface and an input and output interface, so as to input and output data. This embodiment will not be described in detail here.
[0025] Finally, this embodiment provides a computer-readable storage medium having a rewritable computer program stored thereon; When the computer program runs on a computer device, the computer device executes the above-mentioned Chinese herbal medicine preparation process analysis method based on image recognition.
[0026] For example, the computer readable storage medium can be a read-only memory, a random access memory, a read-only CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0027] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may 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.
[0028] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.
[0029] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0030] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0031] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0032] 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.
[0033] 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.
[0034] 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.
[0035] 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 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: Obtain the size and shape data after processing, and at the same time obtain the standard size and shape data of the corresponding Chinese herbal medicine pieces, and import the obtained data into the image abnormality analysis formula to analyze the image abnormality value; 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 abnormal component change judgment includes the following specific contents: obtaining the component change information in the historical processing process, and analyzing the difficulty of maintaining the effective components and the difficulty of removing the toxic components based on the component change information in the same historical processing process; 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; Abnormal changes in ingredients are judged based on the analysis results of the effective ingredient retention effect and the toxic ingredient removal effect.
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 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 historical processing and the contents of various active ingredients 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 the active ingredients to calculate the difficulty of retaining the various active ingredients; 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; The difficulty of removing toxic components is calculated based on the content of various toxic components before historical processing and the content of various toxic components after historical processing, which are introduced into the calculation formula of the difficulty of removing toxic components.
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 method for analyzing the effective ingredient retention effect is as follows: obtaining the calculated difficulties of maintaining various effective ingredients and the corresponding changes in the effective ingredients, and weighting the changes in the effective ingredients based on the difficulties of maintaining various effective ingredients to obtain the effective ingredient retention effect. The method for analyzing the toxic ingredient removal effect is as follows: obtaining the calculated difficulties of removing various toxic ingredients and the removal ratios of various toxic ingredients, and introducing them into the toxic ingredient removal effect calculation formula to calculate the toxic ingredient removal effect.
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 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 there is no need to change the processing parameters, 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.
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 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.
8. The method for analyzing the processing process of Chinese herbal medicine pieces based on image recognition according to claim 7, 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.
9. 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 8, 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.
10. 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 Chinese herbal medicine preparation process analysis method based on image recognition as described in any one of claims 1 to 8 by calling the computer program stored in the memory.
Citation Information
Patent Citations
Processing method of radix sophorae flavescentis
CN107137452A
Visual detection and analysis system for quality of traditional Chinese medicine decoction pieces
CN116862911A
Automatic identification method and device for traditional Chinese medicine decoction piece image
CN118657990A
Intelligent screening method for traditional Chinese medicine decoction pieces
CN118964873A
Medicinal material production quality detection method based on image recognition
CN119091259A