A method and system for reverse verification of traditional Chinese medicine prescriptions based on a label system

Through the reverse verification method of TCM prescriptions based on the label system, the problem of difficulty in assessing the accuracy of TCM prescriptions is solved, intelligent matching of TCM prescriptions and multi-disciplinary collaborative diagnosis and treatment are realized, and the pertinence and accuracy of prescriptions are improved.

CN116525100BActive Publication Date: 2024-08-23ZHONGJIN MAIJING MEDICAL TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310479272.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2024-08-23
Estimated Expiration
2043-04-26

AI Technical Summary

Technical Problem

The existing technology lacks reverse verification research on TCM prescriptions, making it difficult to evaluate a priori the accuracy and effectiveness of recommended prescriptions.

Method used

The TCM prescription reverse verification method based on the label system is used to evaluate the quality of the prescription to be tested by determining the prescription label, training the multi-dimensional TCM label prediction model, receiving the model results to be tested and the prediction model results for similarity calculation. This method includes collecting medical record data, cleaning and labeling, using the EfficientNet model for training and verification, and combining the patient's basic information, tongue surface pictures and other information to calculate the label score and similarity to verify the accuracy of the prescription.

Benefits of technology

It realizes intelligent matching of TCM prescriptions and multi-disciplinary collaborative diagnosis and treatment under actual clinical conditions, provides more targeted prescriptions, improves the practicability and accuracy of algorithm testing, and can effectively test prediction tasks in the field of TCM diagnosis and treatment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116525100B
    Figure CN116525100B
Patent Text Reader

Abstract

The present invention provides a method and system for reverse verification of TCM prescriptions based on a label system. The method comprises: S1, determining the prescription labels that need to be labeled; S2, training a multidimensional TCM label prediction model, the multidimensional TCM label prediction model outputting a target label; S3, receiving the results of the model to be tested and the results of the multidimensional TCM label prediction model, and performing similarity calculation on the results; S4, evaluating the quality of the results of the prescription to be tested based on the similarity calculation results. The present invention cross-validates the prescription elements of the prescription recommended by the existing intelligent auxiliary diagnosis engine based on the pathogenesis information clustered by known clinical symptoms, so as to reversely verify the accuracy of the recommended prescription and provide confidence evaluation for the selection of prescriptions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent auxiliary diagnosis and treatment of traditional Chinese medicine, and in particular to a method, system, electronic device and computer storage medium for reverse verification of traditional Chinese medicine prescriptions based on a label system. Background Art

[0002] The two basic theories of TCM are holistic concept and syndrome differentiation and treatment. TCM focuses on the holistic concept of the five internal organs. All physiological activities of human beings depend on the internal organs, and various pathological changes are also closely related to the internal organs. Therefore, the occurrence and development of diseases will mostly affect the internal organs, resulting in abnormal changes in the functions of the internal organs.

[0003] Classical syndrome differentiation methods of TCM include eight-category syndrome differentiation, viscera syndrome differentiation, triple-burner syndrome differentiation, Wei-Qi-Ying-Xue syndrome differentiation, six-channel syndrome differentiation, and disease differentiation and treatment. Each theory represents the objective understanding of natural laws by TCM practitioners based on historical contexts, and is mainly a systematic exposition of the causes, properties, and mechanisms of diseases. Accurate syndrome differentiation is the key to reflecting the characteristics and advantages of TCM syndrome differentiation and treatment.

[0004] Current technologies are all based on conventional diagnosis and treatment pathways, all of which provide positive auxiliary diagnosis and recommend appropriate prescriptions. However, there is a lack of research on reverse verification of TCM prescriptions, making it difficult to a priori evaluate the accuracy and effectiveness of recommended prescriptions. Summary of the invention

[0005] In order to solve the technical problems involved in the above-mentioned background technology, the present invention provides a method, system, electronic device and computer storage medium for reverse verification of TCM prescriptions based on a label system.

[0006] A first aspect of the present invention provides a method for reverse verification of a TCM prescription based on a label system, comprising the following steps:

[0007] S1, determine the prescription labels that need to be marked;

[0008] S2, training a multi-dimensional TCM label prediction model, wherein the multi-dimensional TCM label prediction model outputs a target label;

[0009] S3, receiving the result of the model to be tested and the result of the multi-dimensional TCM label prediction model, and performing similarity calculation on the results;

[0010] S4, evaluating the quality of the prescription results to be tested based on the similarity calculation results.

[0011] Furthermore, the prescription labels determined in step S1 include six meridians, eight principles, internal organs, triple energizer, Wei Qi Ying Xue, pathogenesis, location of disease, course of disease, etiology, and efficacy.

[0012] Furthermore, in step S2, a multi-dimensional TCM label prediction model is trained, and the multi-dimensional TCM label prediction model outputs a target label, including:

[0013] S21: Collect medical record data;

[0014] S22: Clean up the collected medical records and remove junk medical records;

[0015] S23: Medical experts will give medical labels to all medical records;

[0016] S24: Based on the annotation results, merge the labels with repeated meanings;

[0017] S25: A third-party medical expert extracts information from various dimensions of the medical records and examines the rationality of the labels;

[0018] S26: Combined with the review results of third-party medical experts, repeat steps S21-S25 to generate a reliable label training data set and labels corresponding to various downstream task output results;

[0019] S27: Use the multi-classification EfficientNet model to train the multi-dimensional TCM label prediction model.

[0020] Furthermore, step S3 includes the downstream task prediction process:

[0021] S311: Collect various information such as basic information of patients, tongue surface pictures, symptoms, diseases, etc.;

[0022] S312: The information collected in step S311 is transmitted to the label prediction system to obtain multi-dimensional label scores;

[0023] S313: Obtain labels corresponding to all possible output results of downstream tasks;

[0024] S314: Based on the label scores obtained in step S312, the scores of all output results are calculated, the results are sorted from large to small, and the results with scores less than the threshold are eliminated; and the filtered downstream task results are output.

[0025] Furthermore, step S3 also includes a model verification process:

[0026] S321: Collect various information such as basic information of patients, tongue surface pictures, symptoms, diseases, etc.;

[0027] S322: Obtain the output result of the model to be tested;

[0028] S323: Obtaining qualitative labels corresponding to model results;

[0029] S324: transferring the information collected in step S321 to the multi-dimensional TCM label prediction model to obtain the scores of all labels;

[0030] S325: Calculate the utility cosine similarity of the result of step S323 and the result of step S324. If the similarity result is greater than a preset threshold, the verification is successful and the confidence of the model result is given. Otherwise, the verification fails. According to the verification result, the model to be tested is adjusted to improve performance.

[0031] Furthermore, the multi-dimensional TCM label prediction model is trained through the following steps:

[0032] 1: Collect high-quality medical record data, structure it, and perform one-hot encoding on the label of each medical record;

[0033] One-hot: In digital circuits, one-hot is a group of bits, each bit represents a logical high or low position; in machine learning, it is usually used as an encoding for discrete data.

[0034] 2: One-hot discrete encoding of basic information involved in medical records, such as age and gender;

[0035] 3: The one-hot output of the basic information is passed into a multi-layer perceptron (MLP), which outputs the feature vector of the basic information; MLP is a type of fully connected feedforward neural network. An MLP consists of at least 3 layers of nodes, an input layer, a hidden layer, and an output layer; except for the input node, each node uses a neuron with a nonlinear activation function; MLP is trained through the supervised machine learning technique of back-propagation.

[0036] info_features=MLP(one_h ot(input_info))

[0037] input_info is the basic information of the input, such as age, gender, region, time, etc., one-hot is the one-hot encoding layer, MLP is the multi-layer perceptron, and info_features is the feature vector corresponding to the basic information;

[0038] 4: The symptoms involved in the medical record data are passed through the embedding layer to output the feature vector of each disease; the Embedding layer is a word vector layer, which is usually used to encode inputs with a large vocabulary.

[0039] 5: Sum the feature vectors as the output of embedding, which is the feature vector of the overall disease; expand the embedding output

[0040] sym_features=sum(embedding(input_symptom))

[0041] input_symptomtom is the symptom information, such as headache, fever, chills, no sweating, fear of wind, etc., embedding is the word vector layer, sum is the sum operation, and sym_features is the symptom feature vector;

[0042] 6: Collect the tongue surface and other image information through the CLIP layer to obtain the feature vector of the image, sum the feature vectors of the image, and obtain the image feature vector;

[0043] CLIP (Constrastive Language-Iage Pre-Training) is a neural network based on text and image pair training. It has strong expressive ability for image information and has achieved excellent results in various zero-shot prediction tasks.

[0044] image_features=sum(CLIP(input_image))

[0045] input_image is the input image, such as tongue image, face image, sublingual collateral image, etc., image_features is the image feature vector;

[0046] 7: Expand the feature vectors of basic information, disease and image into a vector by row as the input of the EfficientNet layer;

[0047] input_features=concat([info_features,sym_features,image_features],axis=0)

[0048] concat is a concatenation function, which is used to concatenate basic information features, disease features, and image features into an input feature vector. input_features is the input feature vector.

[0049] 8: The EfficientNet model framework is a multi-classification task, and the final output layer has the same number of labels;

[0050] 9: Calculate the CrossEntropy loss together with the output of EfficientNet and the medical record label;

[0051] output=EfficientNet(input_features)

[0052] Output is the final output of the model.

[0053] The second aspect of the present invention provides a reverse verification system for Chinese medicine prescriptions based on a label system, comprising an acquisition module, a processing module, and a storage module; the processing module is connected to the acquisition module and the storage module;

[0054] The storage module is used to store executable computer program code;

[0055] The acquisition module is used to acquire medical record data and basic information of patients, and transmit them to the processing module;

[0056] The processing module is used to execute the method as described in any of the preceding items by calling the executable computer program code in the storage module.

[0057] The third aspect of the present invention provides an electronic device, comprising: a memory storing executable program code; a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the method as described in any of the preceding items.

[0058] A fourth aspect of the present invention provides a computer storage medium having a computer program stored thereon, and the computer program, when executed by a processor, executes any of the methods described above.

[0059] The beneficial effects of the present invention are:

[0060] 1) Adapt to the actual clinical situation

[0061] In clinical practice, more experienced doctors usually skip the stage of syndrome identification and directly consider the correspondence between prescription and syndrome before prescribing. Intelligent matching based on the label system can strongly associate the actual and complex real-world symptom information with more suitable prescription information, which is consistent with the conventional clinical diagnosis and treatment ideas;

[0062] 2) Establish a multidisciplinary collaboration (MDT) diagnosis and treatment model

[0063] In actual clinical settings, patients may have multiple past medical histories or be in complex situations with a certain disease, and it is almost impossible to treat illness according to textbooks. The TCM treatment algorithm based on the label system can integrate multiple diagnosis and treatment information. As long as there is a matching label cluster, a more targeted TCM prescription or even a Western medicine prescription will be given.

[0064] 3) The test algorithm is highly practical and can test a large number of models.

[0065] The algorithm can theoretically test various prediction tasks involved in the field of TCM diagnosis and treatment. For example: syndrome prediction, disease prediction, chief complaint prediction, consultation guidance, knowledge question and answer, intelligent prescription, etc. The test algorithm can provide objective similarity indicators for the algorithm to be tested. Based on statistical analysis, it helps to find problems in the algorithm to be tested and provide ideas for further optimization of the algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0067] Figure 1 It is a schematic diagram of a reverse verification method of a TCM prescription based on a label system disclosed in an embodiment of the present invention;

[0068] Figure 2 It is a schematic diagram describing the process of a reverse verification method of a traditional Chinese medicine prescription based on a label system disclosed in an embodiment of the present invention;

[0069] Figure 3 It is a model framework diagram of the tag recommendation system disclosed in the embodiment of the present invention;

[0070] Figure 4 It is a schematic diagram of some labels about the six meridians and eight principles disclosed in an embodiment of the present invention;

[0071] Figure 5 is a schematic diagram of a portion of a label regarding the efficacy of a prescription disclosed in an embodiment of the present invention;

[0072] Figure 6 is a schematic diagram of a TCM syndrome recommendation interface disclosed in an embodiment of the present invention;

[0073] Figure 7 It is a structural schematic diagram of a reverse verification system for traditional Chinese medicine prescriptions based on a label system disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0074] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0075] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.

[0076] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0077] It should be understood that although the terms first, second, third, etc. may be used to describe ... in the embodiments of the present application, these ... should not be limited to these terms. These terms are only used to distinguish .... For example, without departing from the scope of the embodiments of the present application, the first ... may also be referred to as the second ..., and similarly, the second ... may also be referred to as the first ....

[0078] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0079] 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 product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. 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 product or system including the elements.

[0080] The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0081] See also Figure 1-6 As shown, the embodiment of the present invention provides a method for reverse verification of a TCM prescription based on a label system, comprising the following steps:

[0082] S1, determine the prescription labels that need to be marked;

[0083] S2, training a multi-dimensional TCM label prediction model, wherein the multi-dimensional TCM label prediction model outputs a target label;

[0084] S3, receiving the result of the model to be tested and the result of the multi-dimensional TCM label prediction model, and performing similarity calculation on the results;

[0085] S4, evaluating the quality of the prescription results to be tested based on the similarity calculation results.

[0086] Classical syndrome differentiation methods of TCM include eight-category syndrome differentiation, viscera syndrome differentiation, triple-burner syndrome differentiation, Wei-Qi-Ying-Xue syndrome differentiation, six-channel syndrome differentiation, and disease differentiation and treatment. Each theory represents the objective understanding of natural laws by TCM practitioners based on historical contexts, and is mainly a systematic exposition of the causes, properties, and mechanisms of diseases. Accurate syndrome differentiation is the key to reflecting the characteristics and advantages of TCM syndrome differentiation and treatment.

[0087] Each theory will propose different TCM terms. In the current big data language, each theory is a subjective abstraction of a large amount of data, reflecting the unique attributes of things. In the Eight-Principle Syndrome Differentiation, labels such as Yin, Yang, Exterior, Interior, Half Exterior and Half Interior, Deficiency, Excess, Mixed Deficiency and Excess, Cold, Heat, Mixed Cold and Heat, Upper Cold and Lower Heat, Upper Heat and Lower Cold are extracted; in the Six-Channel Syndrome Differentiation, labels such as Taiyang, Shaoyang, Yangming, Jueyin, Taiyin, and Shaoyin are proposed; in the Zang-Fu Syndrome Differentiation, labels such as the five Zang-Fu organs of the heart, liver, spleen, lung, and kidney and labels such as the six fu organs of the large intestine, small intestine, stomach, gallbladder, bladder, and triple energizer are proposed; in the Qi, Blood, and Body Fluid Syndrome Differentiation, multiple labels such as Qi Deficiency, Qi Deficiency, Qi Deprivation, Qi Stagnation, Qi Sinking, Blood Deficiency, Blood Heat, Blood Heat, Water Drink, Phlegm Drink, Branch Drink, and Water Stagnation are proposed.

[0088] In 2008, Zhao Qianlong et al. proposed the concept of "prescription elements", believing that "prescription elements are the basic elements of drug prescription, and their specific contents include the efficacy, nature and taste, meridians, rising and falling, etc. of the drugs. The purpose is to select appropriate drugs according to the pathological elements to combine them into prescriptions, so that the synthesis of the prescription elements of each drug in the prescription can just cover the patient's pathological elements."

[0089] Therefore, the present invention proposes the prescription composition principle of "prescription-syndrome label correspondence" based on the principle of syndrome differentiation and treatment of "prescription-syndrome correspondence". "Prescription-syndrome correspondence" is the principle of prescription selection, and "prescription-syndrome element correspondence" belongs to the principle of prescription composition. Later generations of doctors used the method of "using prescription to test syndrome" to study classical prescriptions, which made use of the chain correspondence relationship between "medicine-method-syndrome". The present invention cross-validates the prescription elements of the prescription recommended by the existing intelligent auxiliary diagnosis engine based on the pathogenesis information clustered by known clinical symptoms, so as to reversely verify the accuracy of the recommended prescription and provide confidence evaluation for prescription selection.

[0090] It should be noted that the model to be tested refers to the existing auxiliary models, such as prescription recommendation models, chief complaint prediction models, syndrome models, etc., and there is no specific limitation.

[0091] Furthermore, the prescription labels determined in step S1 include six meridians, eight principles, internal organs, triple energizer, Wei Qi Ying Xue, pathogenesis, location of disease, course of disease, etiology, efficacy and other aspects.

[0092] In this embodiment, the TCM label system not only includes the terms proposed by the above-mentioned dialectical theory, but also includes information such as the cause of disease, disease state and prescription efficacy that are highly recognized by TCM. The causes of disease include the six exogenous pathogens: wind, cold, heat, dampness, dryness and fire; the seven internal emotions: joy, anger, worry, thinking, sadness, fear and shock; other causes: unclean diet, fatigue, poison and pus. The disease state includes two labels: slow and urgent. The efficacy of prescriptions is divided into primary efficacy and secondary efficacy. The first-level effects of the prescription include reconciliation, dispelling heat, calming the nerves, regulating qi, treating dryness, expelling parasites, vomiting, digesting food, treating wind, purging, clearing away heat, warming the interior, tonic, astringent, regulating blood, promoting diuresis and removing dampness, removing phlegm, opening the orifices, and treating carbuncles; the second-level effects of the prescription include the labels warming, cooling, moistening, expelling water, clearing away real heat, clearing virtual heat, clearing heat and detoxifying, clearing heat and cooling blood, warming the middle and removing cold, restoring yang and rescuing adverse conditions, warming the meridians and dispersing cold, tonifying qi, tonifying blood, tonifying yang, tonifying yin, tonifying internal organs, stopping sweating, stopping cough, stopping diarrhea, stopping nocturnal emission, stopping enuresis, stopping spermatorrhea, stopping leukorrhea, stopping dysentery, stopping diarrhea, activating blood circulation, stopping bleeding, cooling blood, promoting diuresis and removing dampness, clearing heat and removing dampness, warming and transforming cold and dampness, dispelling wind and dampness, warming and transforming cold phlegm, clearing heat and resolving phlegm, drying dampness and resolving phlegm, dispelling wind and resolving phlegm, warming and opening, cooling and opening, softening and dispersing nodules, returning milk, promoting lactation, relieving pain, stopping vomiting, and stopping hiccups.

[0093] Furthermore, in step S2, a multi-dimensional TCM label prediction model is trained, and the multi-dimensional TCM label prediction model outputs a target label, including:

[0094] S21: Collect medical record data;

[0095] S22: Clean up the collected medical records and remove junk medical records;

[0096] S23: Medical experts will give medical labels to all medical records;

[0097] S24: Based on the annotation results, merge the labels with repeated meanings;

[0098] S25: A third-party medical expert extracts information from various dimensions of the medical records and examines the rationality of the labels;

[0099] S26: Combined with the review results of third-party medical experts, repeat steps S21-S25 to generate a reliable label training data set and labels corresponding to various downstream task output results;

[0100] S27: Use the multi-classification EfficientNet model to train the multi-dimensional TCM label prediction model.

[0101] In this embodiment, the medical case data in the present invention mainly comes from the medical cases of famous experts, classic books, and high-quality medical cases collected by the medical case database of the present invention. First, based on the word segmentation technology combined with the importance of the word, all possible tags are extracted from the medical case, and a medical expert conducts a preliminary review. The initial tags should be generated by the machine, and the subsequent merging and elimination are determined by experts in multiple rounds of discretion.

[0102] After collecting a large number of high-quality TCM label names, the present invention uses TCM experts to remove duplicates and classify the labels, and divides the labels into a four-level structure. Figure 4 and Figure 5 For some of the level 4 tags of the present invention, 136 high-quality tags were finally determined.

[0103] Furthermore, step S3 includes the downstream task prediction process:

[0104] S311: Collect various information such as the patient's basic information (e.g. age, gender), tongue surface pictures, symptoms, diseases, etc.;

[0105] S312: The information collected in step S311 is transmitted to the label prediction system to obtain multi-dimensional label scores;

[0106] S313: Obtain labels corresponding to all possible output results of downstream tasks;

[0107] S314: Based on the label scores obtained in step S312, the scores of all output results are calculated, the results are sorted from large to small, and the results with scores less than the threshold are eliminated; and the filtered downstream task results are output.

[0108] In this embodiment, the tags in step S313 include predicted main symptoms, disease prediction, dietary therapy suggestions, prescription recommendations, etc.

[0109] Furthermore, step S3 also includes a model verification process:

[0110] S321: Collect various information such as basic information of the patient (e.g. age, gender), tongue surface pictures, symptoms, diseases, etc.;

[0111] S322: Obtain the output result of the model to be tested;

[0112] S323: Obtaining qualitative labels corresponding to model results;

[0113] S324: transferring the information collected in step S321 to the multi-dimensional TCM label prediction model to obtain the scores of all labels;

[0114] S325: Calculate the utility cosine similarity of the result of step S323 and the result of step S324. If the similarity result is greater than a preset threshold, the verification is successful and the confidence of the model result is given. Otherwise, the verification fails. According to the verification result, the model to be tested is adjusted to improve performance.

[0115] Furthermore, the multi-dimensional TCM label prediction model is trained through the following steps:

[0116] 1: Collect high-quality medical record data, structure it, and perform one-hot encoding on the label of each medical record;

[0117] One-hot: In digital circuits, one-hot is a group of bits, each bit represents a logical high or low position; in machine learning, it is usually used as an encoding for discrete data.

[0118] 2: One-hot discrete encoding of basic information involved in medical records, such as age and gender;

[0119] 3: The one-hot output of the basic information is passed into a multi-layer perceptron (MLP), which outputs the feature vector of the basic information; MLP is a type of fully connected feedforward neural network. An MLP consists of at least 3 layers of nodes, an input layer, a hidden layer, and an output layer; except for the input node, each node uses a neuron with a nonlinear activation function; MLP is trained through the supervised machine learning technique of back-propagation.

[0120] info_features=MLP(one_h ot(input_info))

[0121] input_info is the basic information of the input, such as age, gender, region, time, etc., one-hot is the one-hot encoding layer, MLP is the multi-layer perceptron, and info_features is the feature vector corresponding to the basic information;

[0122] 4: Pass the symptoms involved in the medical record data through the embedding layer and output the feature vector of each disease;

[0123] The Embedding layer is a word vector layer, which is usually used to encode input with a large vocabulary.

[0124] 5: Sum the feature vectors as the output of embedding, which is the feature vector of the overall disease;

[0125] Extending embedding output

[0126] sym_features=sum(embedding(input_symptom))

[0127] input_symptomtom is the symptom information, such as headache, fever, chills, no sweating, fear of wind, etc., embedding is the word vector layer, sum is the sum operation, and sym_features is the symptom feature vector;

[0128] 6: Collect the tongue surface and other image information through the CLIP layer to obtain the feature vector of the image, sum the feature vectors of the image, and obtain the image feature vector;

[0129] CLIP (Constrastive Language-Iage Pre-Training) is a neural network based on text and image pair training. It has strong expressive ability for image information and has achieved excellent results in various zero-shot prediction tasks.

[0130] image_features=sum(CLIP(input_image))

[0131] input_image is the input image, such as tongue image, face image, sublingual collateral image, etc., image_features is the image feature vector;

[0132] 7: Expand the feature vectors of basic information, disease and image into a vector by row as the input of the EfficientNet layer;

[0133] input_features=concat([info_features,sym_features,image_features],axis=0)

[0134] concat is a concatenation function, which is used to concatenate basic information features, disease features, and image features into an input feature vector. input_features is the input feature vector.

[0135] 8: The EfficientNet model framework is a multi-classification task, and the final output layer has the same number of labels;

[0136] 9: Calculate the CrossEntropy loss together with the output of EfficientNet and the medical record label;

[0137] output=EfficientNet(input_features)

[0138] Output is the final output of the model.

[0139] See also Figure 7 , the embodiment of the present invention also discloses a reverse verification system of TCM prescription based on a label system, including an acquisition module, a processing module, and a storage module; the processing module is connected to the acquisition module and the storage module;

[0140] The storage module is used to store executable computer program code;

[0141] The acquisition module is used to acquire medical record data and basic information of patients, and transmit them to the processing module;

[0142] The processing module is used to execute the method as described in any of the preceding items by calling the executable computer program code in the storage module.

[0143] An embodiment of the present invention further discloses an electronic device, comprising: a memory storing executable program code; a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the method described in the above embodiment.

[0144] The embodiment of the present invention further discloses a computer storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in the above embodiment is executed.

[0145] The device / system according to an embodiment of the present disclosure may include a processor, a memory for storing program data and executing the program data, a permanent memory such as a disk drive, a communication port for processing communication with an external device, and a user interface device, etc. The method is implemented as a software module or can be stored on a computer-readable recording medium as a computer-readable code or program command that can be executed by a processor. Examples of computer-readable recording media may include magnetic storage media (e.g., read-only memory (ROM), random access memory (RAM), floppy disk, hard disk, etc.), optical reading media (e.g., CD-ROM, digital versatile disk (DVD), etc.), etc. The computer-readable recording medium may be distributed in a computer system connected in a network, and the computer-readable code may be stored and executed in a distributed manner. The medium may be computer-readable, stored in a memory and executed by a processor.

[0146] The embodiments of the present disclosure may be indicated as function block components and various processing operations. Function blocks may be implemented as various numbers of hardware and / or software components that perform specific functions. For example, the embodiments of the present disclosure may implement direct circuit components that can perform various functions under the control of one or more microprocessors or other control devices, such as memory, processing circuits, logic circuits, lookup tables, etc. The components of the present disclosure may be implemented by software programming or software components. Similarly, the embodiments of the present disclosure may include various algorithms implemented by a combination of data structures, processes, routines, or other programming components, and may be implemented by programming or scripting languages ​​(such as C, C++, Java, assemblers, etc.). Functional aspects may be implemented by algorithms executed by one or more processors. In addition, the embodiments of the present disclosure may implement related technologies for electronic environment settings, signal processing, and / or data processing. Terms such as "mechanism", "element", "unit", etc. may be used extensively and are not limited to mechanical and physical components. These terms may represent a series of software routines associated with a processor, etc.

[0147] Specific embodiments are described in the present disclosure as examples, and the scope of the embodiments is not limited thereto.

[0148] Although the embodiments of the present disclosure have been described, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the present disclosure as defined by the appended claims. Therefore, the above embodiments of the present disclosure should be interpreted as examples and do not limit the embodiments in all aspects. For example, each component described as a single unit may be performed in a distributed manner, and similarly, components described as distributed may be performed in a combined manner.

[0149] All examples or exemplary terms (for example, etc.) used in the embodiments of the present disclosure are for the purpose of describing the embodiments of the present disclosure, but are not intended to limit the scope of the embodiments of the present disclosure.

[0150] Furthermore, unless explicitly stated otherwise, expressions such as “essential,” “important,” etc., associated with certain components may not indicate that the components are absolutely required.

[0151] It will be appreciated by those skilled in the art that the embodiments of the present disclosure may be implemented in modified forms without departing from the spirit and scope of the present disclosure.

[0152] Since the present disclosure allows various changes to the embodiments of the present disclosure, the present disclosure is not limited to specific embodiments, and it will be understood that all changes, equivalents and substitutes that do not depart from the spirit and technical scope of the present disclosure are included in the present disclosure. Therefore, the embodiments of the present disclosure described herein should be understood as examples in all aspects and should not be interpreted as limitations.

[0153] In addition, terms such as "unit", "module", etc. represent a unit that can be implemented as hardware or software or a combination of hardware and software to process at least one function or operation. "Units" and "modules" can be stored in a storage medium to be addressed, and can be implemented as a program that can be executed by a processor. For example, "units" and "modules" can refer to components such as software components, object-oriented software components, class components, and task components, and can include processes, functions, properties, procedures, subroutines, program code segments, drivers, firmware, microcodes, circuits, data, databases, data structures, tables, arrays, or variables.

[0154] In the present disclosure, the expression "A may include one of a1, a2, and a3" may broadly indicate that examples that may be included in element A include a1, a2, or a3. The expression should not be interpreted as being limited to the meaning that examples included in element A must be limited to a1, a2, and a3. Therefore, as examples included in element A, it should not be interpreted as excluding elements other than a1, a2, and a3. In addition, the expression indicates that element A may include a1, a2, or a3. The expression does not mean that the elements included in element A must be selected from a specific set of elements. That is, the expression should not be restrictively understood as indicating that a1, a2, or a3 that must be selected from the set including a1, a2, and a3 is included in element A.

[0155] Furthermore, in the present disclosure, the expression “at least one of a1, a2, and / or a3” means one of “a1,” “a2,” “a3,” “a1 and a2,” “a1 and a3,” “a2 and a3,” and “a1, a2, and a3.” Therefore, it should be noted that the expression “at least one of a1, a2, and / or a3” should not be interpreted as “at least one of a1,” “at least one of a2,” and “at least one of a3,” unless explicitly described as “at least one of a1, at least one of a2, and at least one of a3.”

Claims

1. A reverse verification method for TCM prescriptions based on a label system, characterized in that: The steps include: S1, determine the prescription labels that need to be marked; S2, training a multi-dimensional TCM label prediction model, wherein the multi-dimensional TCM label prediction model outputs a target label; S3, receiving the result of the model to be tested and the result of the multi-dimensional TCM label prediction model, and performing similarity calculation on the results; S4, evaluating the quality of the prescription results to be tested based on the similarity calculation results; In step S2, a multi-dimensional TCM label prediction model is trained, and the multi-dimensional TCM label prediction model outputs a target label, including: S21: Collect medical record data; wherein the medical record data comes from medical records of famous experts and classic books; S22: Clean up the collected medical records and remove junk medical records; S23: Medical experts will label all medical records; S24: Based on the annotation results, merge the labels with repeated meanings; S25: A third-party medical expert extracts information from various dimensions of the medical records and examines the rationality of the labels; S26: Combined with the review results of third-party medical experts, repeat steps S21-S25 to generate a reliable label training data set and labels corresponding to various downstream task output results; S27: Using the multi-classification EfficientNet model, training the multi-dimensional TCM label prediction model; Step S3 includes the downstream task prediction process: S311: Collect basic information of patients, tongue surface pictures, symptoms, and disease information; S312: The information collected in step S311 is transmitted to the label prediction system to obtain multi-dimensional label scores; S313: Obtain labels corresponding to all possible output results of downstream tasks; S314: Based on the label scores obtained in step S312, the scores of all output results are calculated, the results are sorted from large to small, and the results with scores less than the threshold are eliminated; and the filtered downstream task results are output; The multi-dimensional TCM label prediction model is trained through the following steps: 1) Collect medical record data, structure it, and perform one-hot encoding on the label of each medical record; 2) One-hot discrete encoding of basic information involved in medical records, including age and gender; 3) The one-hot output of the basic information is passed into a multi-layer perceptron MLP, which outputs the feature vector of the basic information; the multi-layer perceptron MLP is a type of fully connected feedforward neural network; a multi-layer perceptron MLP consists of at least 3 layers of nodes, an input layer, a hidden layer, and an output layer; except for the input node, each node uses a neuron with a nonlinear activation function; the multi-layer perceptron MLP is trained through the supervised machine learning technique of back-propagation; info_features=MLP(one_hot(input_info)) In the formula, input_info is the basic information of the input, including age, gender, region, and time, one-hot is the one-hot encoding layer, MLP is the multi-layer perceptron, and info_features is the feature vector corresponding to the basic information; 4) The symptoms involved in the medical record data are passed through the embedding layer to output the feature vector of each disease; the embedding layer is a word vector layer, which is usually used to encode input with a large vocabulary; 5) Sum the feature vectors as the output of embedding, which is the feature vector of the overall disease; Expand the embedding output sym_features=sum(embedding(input_symptom)) In the formula, input_symptomtom is the symptom information, including headache, fever, chills, no sweating, and fear of wind, embedding is the word vector layer, sum is the sum operation, and sym_features is the symptom feature vector; 6) Pass the collected tongue surface image information through the CLIP layer to obtain the feature vector of the image, sum the feature vectors of the image, and obtain the image feature vector; image_features=sum(CLIP(input_image)) input_image is the input image, including tongue image, face image, and sublingual collateral image; image_features is the image feature vector; 7) Expand the feature vectors of basic information, disease and image into a vector by row as the input of the EfficientNet layer; input_features=concat([info_features,sym_features,image_features],axis=0) In the formula, concat is a concatenation function, which is used to concatenate basic information features, disease features, and image features into an input feature vector, and input_features is the input feature vector; 8) The EfficientNet model framework is a multi-classification task, and the final output layer has the same number as all labels; 9) Calculate the CrossEntropy loss together with the output of EfficientNet and the medical record label; output=EfficientNet(input_features) In the formula, output is the final output of the model; The prescription labels determined in step S1 include six meridians, eight principles, viscera, triple energizer, Wei Qi Ying Xue, pathogenesis, disease location, disease course, etiology, and efficacy; Step S3 also includes a model verification process: S321: Collect basic information of patients, tongue surface pictures, symptoms, and disease information; S322: Obtain the output result of the model to be tested; S323: Obtaining qualitative labels corresponding to model results; S324: transferring the information collected in step S321 to the multi-dimensional TCM label prediction model to obtain the scores of all labels; S325: Calculate the utility cosine similarity of the result of step S323 and the result of step S324. If the similarity result is greater than a preset threshold, the verification is successful and the confidence of the model result is given. Otherwise, the verification fails. According to the verification result, the model to be tested is adjusted to improve performance.

2. A TCM prescription reverse verification system based on a label system, comprising an acquisition module, a processing module, and a storage module; the processing module is electrically connected to the acquisition module and the storage module; the storage module is used to store executable computer program codes; the acquisition module is used to acquire medical record data and basic information of patients, and transmit them to the processing module; characterized in that: The processing module is used to execute the method according to claim 1 by calling the executable computer program code in the storage module.

3. An electronic device, comprising: A memory storing executable program code; A processor coupled to the memory; characterized in that: the processor calls the executable program code stored in the memory to execute the method as claimed in claim 1.

4. A computer storage medium having a computer program stored thereon, wherein the computer program executes the method according to claim 1 when executed by a processor.