Disclosure of Invention
The invention mainly aims to provide a learning method and a learning system for medical analysis by utilizing an algorithm model, so as to solve the problem that the distribution ratio and the drug-taking mode of the traditional Chinese medicine and the western medicine are difficult to analyze at present.
In order to achieve the above object, the present invention provides the following techniques:
a learning method for medical analysis by using an algorithm model comprises the following steps:
s1, inquiring the names of Chinese and western medicines for treatment according to the diseases;
s2, searching the components and the proportions of the medicines in a national medicine database through the names of Chinese and western medicines;
s3, finding out components with higher specific gravity and higher occurrence frequency from the components of the medicine through a traversal algorithm;
s4, analyzing which drug-taking mode has the heaviest proportion and which proportion and drug-taking mode have the best treatment effect through a traversing algorithm.
Further, in step S1, when the name of the drug for treating the disease is queried, the drug corresponding to the drug for treating the disease should be the main treatment efficacy, excluding the auxiliary treatment efficacy.
Further, in step S2, the steps include:
s20, judging whether the medicine is a traditional Chinese medicine or a western medicine according to the medicine name and the medicine category inquired in the association database;
s21, if the medicine is a traditional Chinese medicine, further judging whether the formula composition form of the medicine is a combination of a plurality of medicines in gram units or recording the components of the medicine in percentage form; if the combination is a combination of a plurality of medicines in gram units, the form needs to be converted into a percent form to record each component of the medicine;
s22, if western medicines are adopted, the Chinese names or the chemical formula names in the medicine components are required to be converted into the same form.
Further, in the step S3 and the step S4, the formulas of the medicines are analyzed, and when the weights are summarized, the traditional Chinese medicines and the western medicines are respectively counted.
Further, the traversal algorithm adopted in steps S3 and S4 is a multi-tree analysis method.
Further, in step S3, the medicine is a parent node, and the composition is a child node, and the node with the highest specific gravity and the node with the highest occurrence frequency are counted by traversing the entire multi-tree node.
Further, in step S4, the medicine is a parent node, the medicine-taking mode is a child node, and the node with the highest specific gravity and the node with the highest occurrence frequency are counted by traversing the whole multi-tree node.
Further, step S5 is also included, training is carried out by using a recursion deep neural network model, so that a plurality of medicines with the best curative effect for treating a certain disease, and medicinal materials or chemical components with the highest specific gravity of the medicine formula are obtained, and the best medicine-taking mode is obtained.
A learning system for medical analysis by utilizing an algorithm model comprises a medicine inquiry module, a medicine component analysis module, a calculation and statistics module and a neural network model training module;
the medicine inquiry module is used for inquiring the names of the Chinese and western medicines for treatment according to the diseases;
the medicine component analysis module is used for searching the composition components and the proportion of the medicines in the national medicine database through the medicine names;
the calculation and statistics module is used for calculating or counting the composition components and the proportion of the whole medicine through a traversal algorithm to obtain the component with the heaviest specific gravity and the component with the highest occurrence frequency; meanwhile, the mode with the heaviest specific gravity and the highest occurrence frequency in the drug feeding mode is counted;
the neural network model training module is used for obtaining a plurality of medicines with the best curative effect for treating a certain disease, and medicinal materials or chemical components with the highest specific gravity of the medicine formula, and simultaneously obtaining the best medicine-taking mode.
Further, the medicine analysis and statistics system also comprises a storage module which is used for storing the whole medicine analysis and statistics process and forming an analysis and statistics model.
Compared with the prior art, the invention can bring the following technical effects:
1. not only the analysis of the prescription proportion and the drug feeding mode of the traditional Chinese medicine is realized, but also the analysis of the prescription proportion and the drug feeding mode of the western medicine field is realized;
2. according to the occurrence frequency and specific gravity of each component of the medicine variety, distinguishing the proportion of main medicinal materials or chemical substances for treating the disease from the curative effect;
3. meanwhile, the medicinal materials or chemical components with the highest specific gravity in the prescription are trained through a neural network model, and a plurality of groups of medicaments with the best curative effect for treating a certain disease are obtained through analysis.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the invention herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the present invention, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal" and the like indicate an azimuth or a positional relationship based on that shown in the drawings. These terms are only used to better describe the present invention and its embodiments and are not intended to limit the scope of the indicated devices, elements or components to the particular orientations or to configure and operate in the particular orientations.
Also, some of the terms described above may be used to indicate other meanings in addition to orientation or positional relationships, for example, the term "upper" may also be used to indicate some sort of attachment or connection in some cases. The specific meaning of these terms in the present invention will be understood by those of ordinary skill in the art according to the specific circumstances.
In addition, the term "plurality" shall mean two as well as more than two.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other. The invention will be described in detail below with reference to the drawings in connection with embodiments.
Example 1
As shown in fig. 1 and 2, a learning method for medical analysis using an algorithm model includes the steps of:
s1, inquiring the names of Chinese and western medicines for treatment according to the diseases;
in step S1, when the name of the drug for treating the disease is queried, the drug corresponding to the drug for treating the disease should be the main treatment efficacy, excluding the drug with the auxiliary treatment efficacy.
S2, searching the components and the proportions of the medicines in a national medicine database through the names of Chinese and western medicines;
in step S2, the steps include:
s20, judging whether the medicine is a traditional Chinese medicine or a western medicine according to the medicine name and the medicine category inquired in the association database;
s21, if the medicine is a traditional Chinese medicine, further judging whether the formula composition form of the medicine is a combination of a plurality of medicines in gram units or recording the components of the medicine in percentage form; if the combination is a combination of a plurality of medicines in gram units, the form needs to be converted into a percent form to record each component of the medicine;
s22, if western medicines are adopted, the Chinese names or the chemical formula names in the medicine components are required to be converted into the same form.
S3, finding out components with higher specific gravity and higher occurrence frequency from the components of the medicine through a traversal algorithm;
in step S3, the medicine is a parent node, and the composition is a child node, and the node with the highest specific gravity and the node with the highest occurrence frequency are counted by traversing the whole multi-tree node.
S4, analyzing which drug-taking mode has the heaviest proportion and which proportion and drug-taking mode have the best treatment effect through a traversing algorithm.
In step S4, the medicine is a father node, the medicine-taking mode is a child node, and the node with the heaviest specific gravity and the node with the highest occurrence frequency are counted by traversing the whole multi-tree node.
And S3 and S4, analyzing the formula of the medicine, and respectively counting the traditional Chinese medicine and the western medicine when the weights are counted and summarized.
The traversal algorithm adopted in steps S3 and S4 is a multi-way tree analysis method.
And step S5, training by using a recurrent deep neural network model to obtain a plurality of medicines with the best curative effect for treating a certain disease, and medicinal materials or chemical components with the highest specific gravity of the medicine formula, and simultaneously obtaining the best medicine-taking mode.
A learning system for medical analysis by using an algorithm model comprises a medicine inquiry module M10, a medicine component analysis module M20, a calculation and statistics module M30 and a neural network model training module M40;
the medicine inquiry module M10 is used for inquiring the names of the Chinese and western medicines for treatment according to the diseases;
the medicine component analysis module M20 is used for searching the composition components and the proportion of the medicine in the national medicine database through the medicine name;
the calculation and statistics module M30 is used for calculating or counting the composition components and the proportion of the whole medicine through a traversal algorithm to obtain the component with the heaviest proportion and the component with the highest occurrence frequency; meanwhile, the mode with the heaviest specific gravity and the highest occurrence frequency in the drug feeding mode is counted;
the neural network model training module M40 is used for obtaining a plurality of groups of medicines with the best curative effect for treating a certain disease, and medicinal materials or chemical components with the highest specific gravity of the medicine formula, and simultaneously obtaining the best medicine-taking mode.
The system also comprises a storage module M50 for storing the whole drug analysis and statistics process to form an analysis and statistics model.
Example 2
As shown in fig. 1 and 2, a learning method for medical analysis using an algorithm model includes the steps of:
s1, inquiring the names of Chinese and western medicines for treatment according to the diseases;
in step S1, when the name of the drug for treating the disease is queried, the drug corresponding to the drug for treating the disease should be the main treatment efficacy, excluding the drug with the auxiliary treatment efficacy. The medicine for preventing excessive adjuvant treatment efficacy increases the calculation amount for the subsequent steps, affecting the accuracy of the calculation result, because the main component of the medicine for adjuvant treatment is not the composition of the important component for treating the disease.
S2, searching the components and the proportions of the medicines in a national medicine database through the names of Chinese and western medicines;
in step S2, the steps include:
s20, judging whether the medicine is a traditional Chinese medicine or a western medicine according to the medicine name and the medicine category inquired in the association database;
s21, if the medicine is a traditional Chinese medicine, further judging whether the formula composition form of the medicine is a combination of a plurality of medicines in gram units or recording the components of the medicine in percentage form; if the combination is a combination of a plurality of medicines in gram units, the form needs to be converted into a percent form to record each component of the medicine; the method is convenient for the subsequent algorithm statistical calculation, eliminates various metering modes and influences the final drug analysis result.
S22, if western medicines are adopted, the Chinese names or the chemical formula names in the medicine components are required to be converted into the same form. Preventing the error of the specific gravity metering statistics of the same substance due to the influence of various names of the same substance, and leading to the error of the final result.
S3, finding out components with higher specific gravity and higher occurrence frequency from the components of the medicine through a traversal algorithm;
in step S3, the medicine is a parent node, and the composition is a child node, and the node with the highest specific gravity and the node with the highest occurrence frequency are counted by traversing the whole multi-tree node. When the best curative effect of the mixture ratio of the substances (namely, the best curative effect of the medicines) is required to be evaluated, the maximum value of the comprehensive value can be obtained through an assignment method by the proportion (namely, specific gravity) of the substances in the components of the medicines for treating certain diseases and the occurrence frequency of the substances in the medicines for treating certain diseases, wherein the occurrence frequency of the substances is 50%, and finally, the specific medicine is obtained.
S4, analyzing which drug-taking mode has the heaviest proportion and which proportion and drug-taking mode have the best treatment effect through a traversing algorithm.
In step S4, the medicine is a father node, the medicine-taking mode is a child node, and the node with the heaviest specific gravity and the node with the highest occurrence frequency are counted by traversing the whole multi-tree node. When the treatment effect of which drug administration mode is the best to be assessed in the same step S3, the maximum value of the comprehensive value is finally obtained by an assignment method according to the proportion of the drug in the drug administration mode for treating a certain disease and the occurrence frequency of the drug in the drug administration mode for treating a certain disease, wherein the frequency is 50% respectively.
And S3 and S4, analyzing the formula of the medicine, and respectively counting the traditional Chinese medicine and the western medicine when the weights are counted and summarized. The traditional Chinese medicine is different from western medicine in that only a few medicinal materials of the traditional Chinese medicine can treat diseases, and other medicinal materials are auxiliary curative effects; the western medicines are more severely proportioned, and the fatal result is probably brought by excessive substances or different proportions of the western medicines, so that the western medicines are quite a lot of substances proved by experiments, are more difficult to calculate and count and have larger calculated amount. Preventing the core substances or medicinal materials in western medicines or Chinese medicines from being buried by big data statistics due to mixed statistics of the Chinese medicines and the western medicines.
The traversal algorithm adopted in steps S3 and S4 is a multi-way tree analysis method.
And step S5, training by using a recurrent deep neural network model to obtain a plurality of medicines with the best curative effect for treating a certain disease, and medicinal materials or chemical components with the highest specific gravity of the medicine formula, and simultaneously obtaining the best medicine-taking mode. And (3) integrating the steps S3 and S4 to obtain the medicine with the best final treatment effect, wherein the curative effect of the mixture ratio of the substances is the best (namely, the curative effect of the medicine is the best), the curative effect of the administration mode is the best, and the administration modes respectively account for 70% and 30% by an assignment method to obtain the best administration mode and medicine for treating the diseases. The method comprises the following steps: western medicine with rapid effect for treating symptoms and slow effect for treating root causes.
A learning system for medical analysis by using an algorithm model comprises a medicine inquiry module M10, a medicine component analysis module M20, a calculation and statistics module M30 and a neural network model training module M40;
the medicine inquiry module M10 is used for inquiring the names of the Chinese and western medicines for treatment according to the diseases;
the medicine component analysis module M20 is used for searching the composition components and the proportion of the medicine in the national medicine database through the medicine name;
the calculation and statistics module M30 is used for calculating or counting the composition components and the proportion of the whole medicine through a traversal algorithm to obtain the component with the heaviest proportion and the component with the highest occurrence frequency; meanwhile, the mode with the heaviest specific gravity and the highest occurrence frequency in the drug feeding mode is counted;
the neural network model training module M40 is used for obtaining a plurality of groups of medicines with the best curative effect for treating a certain disease, and medicinal materials or chemical components with the highest specific gravity of the medicine formula, and simultaneously obtaining the best medicine-taking mode.
The system also comprises a storage module M50 for storing the whole drug analysis and statistics process to form an analysis and statistics model.
Compared with the prior art, the invention can bring the following technical effects:
1. not only the analysis of the prescription proportion and the drug feeding mode of the traditional Chinese medicine is realized, but also the analysis of the prescription proportion and the drug feeding mode of the western medicine field is realized;
2. according to the occurrence frequency and specific gravity of each component of the medicine variety, distinguishing the proportion of main medicinal materials or chemical substances for treating the disease from the curative effect;
3. meanwhile, the medicinal materials or chemical components with the highest specific gravity in the prescription are trained through a neural network model, and a plurality of groups of medicaments with the best curative effect for treating a certain disease are obtained through analysis.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.