Traditional Chinese medicine prescription recommendation system and method based on big data

Through the combination of big data and traditional Chinese medicine knowledge graph, convolutional neural network is used to identify tongue and body constitution, and optimize the traditional Chinese medicine prescription recommendation system, which solves the problem in the existing technology of being unable to accurately determine the user's physical condition and recommend matching prescriptions, achieving a more accurate and personalized TCM prescription recommendations.

CN118609762APending Publication Date: 2024-09-06FOSHAN YANGBOCHENG TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410230820.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-29
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing TCM automatic prescription assistance system cannot obtain the user's physical condition information in an objective and accurate manner, and cannot recommend the most suitable TCM prescription plan based on the user's own condition.

Method used

A traditional Chinese medicine prescription recommendation system based on big data is adopted, including a data acquisition module, a tongue quality judgment module, a constitution judgment module, a preliminary recommendation module and an optimization module. It collects the user's tongue image data and constitution identification data through sensor technology, and uses convolutional neural The network identifies the type of tongue, combines it with the traditional Chinese medicine knowledge map to match the conditioning plan, and adjusts the prescription based on personalized body condition data.

Benefits of technology

It improves the accuracy and applicability of prescription recommendations, detects user health status in multiple dimensions, introduces massive knowledge of traditional Chinese medicine, and optimizes plans based on individual differences to ensure the accuracy and applicability of conditioning plans.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609762A
    Figure CN118609762A
Patent Text Reader

Abstract

The invention discloses a traditional Chinese medicine prescription recommendation system and method based on big data. The system actively collects tongue image data of a user through a data acquisition module; identifying the tongue type of the user by using a preset tongue image identification model based on a convolutional neural network through a tongue judgment module, and obtaining tongue diagnosis information according to the tongue type; determining the main body quality type of the user according to the body quality identification data by utilizing a preset body quality evaluation method through a body quality judgment module; health state information of a user is determined through a preliminary recommendation module according to tongue quality diagnosis information and a subject quality type, the health state information of the user is detected in multiple dimensions, an accurate data basis is provided for prescription recommendation, a preliminary conditioning scheme is adjusted through an optimization module according to personalized body condition data, a personalized recommendation prescription is generated, and the user experience is improved. Therefore, the accuracy of traditional Chinese medicine prescription recommendation is improved, and the precision and applicability of the conditioning scheme are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of TCM auxiliary diagnosis and treatment systems, and specifically to a TCM prescription recommendation system and method based on big data. Background Art

[0002] Traditional Chinese medicine is widely used around the world and is recognized by more and more people. The development of modern medical technology has enabled us to collect and store a large amount of medical data. The intelligent Chinese medicine prescription library is a database in which the diagnostician uses the methods of observation, smell, questioning, and palpation to collect the user's representation information, and then dialectically analyzes the user's constitution and regularity based on traditional Chinese medicine knowledge, and then calls the prescription data stored under each symptom to generate a conditioning plan. This method not only generates data with a low degree of personalization, but is also often affected by the diagnostician's subjective experience, knowledge, and stereotypes, thereby reducing accuracy. With the continuous advancement of artificial intelligence technology, the development of Chinese medicine has also encountered new opportunities.

[0003] At present, there is already a computer-based TCM automatic prescription assistance system based on big data technology. The Chinese medicine prescriptions for treating various diseases are loaded into the computer, and the content is input in the format of "main condition, brief examination, important examination, physical classification, current goal, specific countermeasures, prescription name, prescription lineup" of the patient, and the corresponding symptomatic prescription can be called up from the computer. However, this technology still relies on the subjective judgment of the physician to select specific Chinese medicine prescriptions, which only solves the problem of misidentification and difficulty in recognizing prescription names. It cannot automatically provide the best prescription based on objective data, and can only provide problems related to the disease, and cannot provide improvement and conditioning plans based on the user's physical condition. In addition, when recommending prescriptions, it mainly relies on the patient to provide information on the condition and physical condition, and cannot obtain the user's physical condition information in an objective and accurate manner, and cannot adjust the most suitable prescription according to the user's own situation.

[0004] Therefore, it is necessary to propose a TCM prescription recommendation system and method based on big data, which can combine the user's various objective conditions and data in a more accurate and objective way, automatically match the optimal conditioning plan, form more accurate auxiliary diagnosis results, and then recommend more reasonable TCM prescriptions to users. Summary of the invention

[0005] The present invention provides a TCM prescription recommendation system and method based on big data, which is used to solve the technical problems that the existing TCM automatic prescription auxiliary system cannot obtain the user's physical condition information in an objective and accurate manner and cannot recommend the most suitable TCM prescription plan according to the user's own condition.

[0006] In order to solve the above problems, the present invention provides a TCM prescription recommendation system based on big data, comprising a data acquisition module, a tongue quality judgment module and a constitution judgment module connected to the data acquisition module, a preliminary recommendation module connected to the tongue quality judgment module and the constitution judgment module, and an optimization module connected to the preliminary recommendation module and the data acquisition module;

[0007] A data acquisition module, used to acquire the user's tongue image data, physical identification data and personalized physical condition data;

[0008] A tongue quality judgment module, which is used to obtain the user's tongue quality type according to the tongue image data using a preset tongue image recognition model based on a convolutional neural network, and obtain tongue quality diagnosis information according to the tongue quality type;

[0009] A physical constitution determination module is used to determine the user's main physical constitution type according to the physical constitution identification data using a preset physical constitution evaluation method;

[0010] The preliminary recommendation module is used to determine the user's health status information based on the tongue quality diagnosis information and the main body type, and to match the health status information in the preset TCM knowledge graph to obtain a preliminary conditioning plan;

[0011] The optimization module is used to adjust the preliminary conditioning plan according to the personalized physical condition data and generate a personalized recommended prescription.

[0012] Furthermore, the preset tongue image recognition model includes a plurality of convolutional layers, a plurality of pooling layers, a flattening layer, a plurality of fully connected layers and an output layer connected in sequence, and each convolutional layer is connected to a pooling layer;

[0013] The convolution layer is used to extract tongue quality features of multiple dimensions of the tongue image, and perform nonlinear transformation on the tongue quality features of each dimension using an activation function;

[0014] The pooling layer is used to reduce the dimension of tongue quality features and reduce the amount of calculation of the model;

[0015] The flattening layer is used to flatten the output of the pooling layer into a one-dimensional vector;

[0016] The fully connected layer is used to determine feature mapping parameters according to the one-dimensional vector using a preset weight matrix and a bias;

[0017] The output layer is used to determine the tongue quality type corresponding to the tongue image according to the feature mapping parameters.

[0018] Furthermore, the tongue quality characteristics include tongue color characteristics, tongue shape characteristics and tongue coating color characteristics;

[0019] The loss function of the tongue image recognition model is the sum of the tongue color feature loss function, the tongue shape feature loss function and the moss color feature loss function; the color feature loss function, the tongue shape feature loss function and the moss color feature loss function are all cross entropy loss functions. The loss function of the tongue image recognition model is expressed by the formula:

[0020]

[0021] Wherein, k1, k2 and k3 represent the influence weights of tongue color feature loss function, tongue shape feature loss function and moss color feature loss function respectively, M1, M2 and M3 represent the total number of categories of tongue color feature, tongue shape feature and moss color feature respectively, y c1 ,y c2 and c3 They represent the unique hot encoding of the true label, p c1 、p c2 and p c3 They represent the probability that sample i belongs to category c1, c2 and c3 respectively.

[0022] Furthermore, the tongue quality judgment module obtains tongue quality diagnosis information according to the tongue quality type, including:

[0023] Based on a preset tongue image-physique correspondence table, the user's tongue quality diagnosis information is determined according to tongue color characteristics, tongue shape characteristics and tongue coating color characteristics, and the tongue quality diagnosis information includes physical constitution information.

[0024] Furthermore, the physical condition determination module determines the user's main physical condition type according to the physical condition identification data using a preset physical condition evaluation method, including:

[0025] Based on the characteristics of different physical constitution types, physical constitution diagnosis questions are configured; each type of physical constitution includes several targeted questions, each question has multiple alternative answers, and each alternative answer has a corresponding score; the physical constitution types include peaceful physical constitution and non-peaceful physical constitution;

[0026] Record the scores of each constitution of the user respectively, and judge whether the user has a peaceful constitution according to the score of the peaceful constitution;

[0027] If it is not a peaceful constitution, the highest score among the non-peaceful constitutions is taken as the user's main constitution type.

[0028] Furthermore, the step of recording the scores of each physical constitution of the user respectively and judging whether the user has a peaceful constitution according to the score of the peaceful constitution includes:

[0029] The score for each constitution is calculated according to the following formula:

[0030] Physical fitness score = (total score of physical fitness questions - number of physical fitness questions) / (number of physical fitness questions * k) * 100, where k is the number of alternative answers for each question;

[0031] If the constitution scores other than the peaceful constitution are greater than the first preset threshold, the user is determined to have a non-peaceful constitution; if the user does not have a non-peaceful constitution, and the peaceful constitution score is greater than the second preset threshold, the user's main constitution and secondary constitution are determined to be both peaceful constitutions.

[0032] Furthermore, the preliminary recommendation module determines the user's health status information according to the tongue quality diagnosis information and the main body constitution type, including:

[0033] The physical information in the tongue quality diagnosis information is matched with the main body physical type by cosine similarity, and the physical information with a similarity result greater than a preset matching threshold is determined as the verified physical information, and the verified physical information and the tongue quality diagnosis information are used as health status information.

[0034] Furthermore, the preset TCM knowledge graph is obtained based on a medical ancient book database consisting of a variety of ancient medical books, specifically:

[0035] According to the ancient medical book database, the preset TCM knowledge graph is obtained by training using a natural language processing method; the TCM knowledge graph is used to match a variety of TCM conditioning methods and conditioning prescription plans according to different physical constitution types.

[0036] Furthermore, the personalized physical condition includes: surgical condition, medication condition, physiological condition and living climate;

[0037] The preliminary conditioning plan is adjusted according to the personalized physical condition data to generate a personalized recommended prescription, including:

[0038] The TCM conditioning method is determined according to the physiological condition and surgical condition, and the conditioning prescription plan is selected according to the medication condition and living climate.

[0039] The present invention also provides a method for recommending traditional Chinese medicine prescriptions based on big data, comprising:

[0040] Obtain the user's tongue image data, physical identification data and personalized physical condition data;

[0041] Using a preset tongue image recognition model based on a convolutional neural network to obtain the user's tongue quality type according to the tongue image data, and obtaining tongue quality diagnosis information according to the tongue quality type;

[0042] Determine the user's main physical type based on the physical identification data using a preset physical evaluation method;

[0043] Determine the user's health status information based on the tongue quality diagnosis information and the main body constitution type, and match the health status information in the preset TCM knowledge map to obtain a preliminary conditioning plan;

[0044] The preliminary conditioning plan is adjusted according to the personalized physical condition data to generate a personalized recommended prescription.

[0045] Compared with the prior art, the beneficial effects of the present invention include: actively collecting user body representation images through the data acquisition module using sensor technology; identifying the user's tongue quality type through the tongue quality judgment module using a preset tongue image recognition model based on a convolutional neural network, and obtaining tongue quality diagnosis information based on the tongue quality type; determining the user's main constitution type according to the constitution identification data through the constitution judgment module using a preset constitution evaluation method; determining the user's health status information according to the tongue quality diagnosis information and the main constitution type through the preliminary recommendation module, which can detect the user's health status information in multiple dimensions, provide an accurate data basis for prescription recommendations, obtain a preliminary conditioning plan based on the health status information by matching in the preset traditional Chinese medicine knowledge graph, and use the traditional Chinese medicine knowledge graph containing massive data to match user data to improve the accuracy of prescription recommendations; adjusting the preliminary conditioning plan according to the personalized physical condition data through the optimization module, generating a personalized recommended prescription, optimizing the plan according to individual differences, and ensuring the accuracy and applicability of the conditioning plan. The system of the present invention actively identifies the user's physique through sensor technology and big data matching solutions, and introduces multiple influencing factors such as physique identification data and personalized body condition data to determine the final prescription recommendation and improve the accuracy of the prescription recommendation. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A schematic diagram of the structure of an embodiment of a TCM prescription recommendation system based on big data provided by the present invention;

[0047] Figure 2 A schematic diagram of the structure of an embodiment of a preset tongue image recognition model provided by the present invention;

[0048] Figure 3 A schematic flow chart of an embodiment of a method for recommending traditional Chinese medicine prescriptions based on big data provided by the present invention. DETAILED DESCRIPTION

[0049] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.

[0050] The embodiment of the present invention provides a TCM prescription recommendation system based on big data, which mainly collects the user's objective physical measurement data and constitution identification data, and recommends personalized conditioning plans in combination with the user's personalized physical condition data, thereby ensuring the applicability and accuracy of the conditioning prescription.

[0051] Combine the following Figure 1 To explain, Figure 1 As shown, Figure 1 1 is a schematic diagram of the structure of the TCM prescription recommendation system 100 based on big data, wherein the system comprises a data acquisition module 101, a tongue quality judgment module 102 and a constitution judgment module 103 connected to the data acquisition module 101, a preliminary recommendation module 104 connected to the tongue quality judgment module 102 and the constitution judgment module 103, and an optimization module 105 connected to the preliminary recommendation module 104 and the data acquisition module 101;

[0052] The data acquisition module 101 is used to acquire the user's tongue image data, physical identification data and personalized physical condition data;

[0053] The tongue quality judgment module 102 is used to obtain the user's tongue quality type according to the tongue image data using a preset tongue image recognition model based on a convolutional neural network, and obtain tongue quality diagnosis information according to the tongue quality type;

[0054] The physical constitution determination module 103 is used to determine the main physical constitution type of the user according to the physical constitution identification data using a preset physical constitution evaluation method;

[0055] The preliminary recommendation module 104 is used to determine the user's health status information based on the tongue quality diagnosis information and the main body constitution type, and to obtain a preliminary conditioning plan by matching the health status information in the preset TCM knowledge map;

[0056] The optimization module 105 is used to adjust the preliminary conditioning plan according to the personalized physical condition data and generate a personalized recommended prescription.

[0057] The big data-based TCM prescription recommendation system provided in this embodiment actively identifies the user's physique through sensor technology and big data matching solutions, and introduces multiple influencing factors such as physique identification data and personalized physical condition data to determine the final prescription recommendation and improve the accuracy of the prescription recommendation.

[0058] In some embodiments, in order to further improve the comprehensiveness of data acquisition, in addition to tongue image data, the user's in vivo microcurrent information can also be obtained as needed, and the in vivo microcurrent information can be used to assist the system in determining the physical type through an identification model.

[0059] As a preferred embodiment, Figure 2As shown, the preset tongue image recognition model includes a plurality of convolutional layers, a plurality of pooling layers, a flattening layer, a plurality of fully connected layers and an output layer connected in sequence, and each convolutional layer is connected to a pooling layer;

[0060] The convolution layer is used to extract tongue quality features of multiple dimensions of the tongue image, and perform nonlinear transformation on the tongue quality features of each dimension using an activation function;

[0061] The pooling layer is used to reduce the dimension of tongue quality features and reduce the amount of calculation of the model;

[0062] The flattening layer is used to flatten the output of the pooling layer into a one-dimensional vector;

[0063] The fully connected layer is used to determine feature mapping parameters according to the one-dimensional vector using a preset weight matrix and a bias;

[0064] The output layer is used to determine the tongue quality type corresponding to the tongue image according to the feature mapping parameters.

[0065] The following is a detailed description of the working process of the tongue image recognition model using a specific embodiment. Assume that there are three convolutional layers and three pooling layers, and a multi-layer structure of the fully connected layer. Then:

[0066] A 224x224x3 (width x height x color channel) color tongue image is input to the input layer of the model, and image features are extracted through multiple convolutional layers. Each convolutional layer contains a convolution kernel and an activation function to better help the network learn complex features.

[0067] The first convolutional layer contains 32 3x3 convolution kernels with a stride of 1. The output size is still 224x224, but the depth is changed to 32, so the output is 224x224x32. The activation function of the first convolutional layer uses the ReLU activation function, which does not change the size of the data, and the output is still 224x224x32. The first pooling layer uses 2x2 maximum pooling with a stride of 2 to halve the image width and height, and the output becomes 112x112x32.

[0068] The second convolutional layer contains 64 3x3 convolution kernels, and the input is the output of the previous layer 112x112x32, and the output size is 112x112x64. The activation function is also ReLU, and the output size remains unchanged, which is 112x112x64. The second pooling layer also uses 2x2 maximum pooling with a stride of 2, and the output size becomes 56x56x64.

[0069] The third convolutional layer contains 128 3x3 convolution kernels with a stride of 1. The input is 56x56x64 from the previous layer, and the output size is 56x56x128. The ReLU activation function is used, and the output size remains unchanged at 56x56x128. The third pooling layer uses 2x2 maximum pooling with a stride of 2, and the output size becomes 28x28x128.

[0070] Flatten is connected to the 3rd convolutional layer, flattening the 28x28x128 three-dimensional output into a one-dimensional vector, with a total of 28x28x128=100,352 elements.

[0071] In practice, we need to evaluate physical fitness through multiple tongue quality features, including tongue color, tongue shape, and tongue coating color. Therefore, we need to perform task learning for each dimension of tongue quality features, and each task has its own fully connected layer series to learn the features of the task. For example, the first fully connected layer series has 512 nodes, uses the ReLU activation function, and has an output size of 512. Another fully connected layer has 256 nodes, and also uses the ReLU activation function.

[0072] It should be noted that more fully connected layers can be added, for example, another fully connected layer with 256 nodes, also using the ReLU activation function. The tongue color path, tongue shape path, and moss color path correspond to multiple fully connected layers respectively, and the output of each connection layer is connected to the output layer.

[0073] The output layer uses a softmax output layer to predict the classification results of each task. Assuming that there are C1 categories for tongue color, C2 categories for tongue shape, and C3 categories for moss color, there will be three output layers, each with C1, C2, and C3 output nodes. Each softmax layer will output a probability distribution for its corresponding classification task, so that the prediction results of tongue color, tongue shape, and moss color can be obtained respectively.

[0074] As a preferred embodiment, the tongue quality characteristics include tongue color characteristics, tongue shape characteristics and tongue coating color characteristics;

[0075] The loss function of the tongue image recognition model is the sum of the tongue color feature loss function, the tongue shape feature loss function and the moss color feature loss function; the color feature loss function, the tongue shape feature loss function and the moss color feature loss function are all cross entropy loss functions. The loss function of the tongue image recognition model is expressed by the formula:

[0076]

[0077] Wherein, k1, k2 and k3 represent the influence weights of tongue color feature loss function, tongue shape feature loss function and moss color feature loss function respectively, M1, M2 and M3 represent the total number of categories of tongue color feature, tongue shape feature and moss color feature respectively, y c1 ,y c2 and c3 They represent the unique hot encoding of the true label, p c1 、p c2 and p c3 They represent the probability that sample i belongs to category c1, c2 and c3 respectively.

[0078] In this way, the model can simultaneously learn the tasks of classifying tongue color, tongue shape, and tongue coating, which generally improves the model's generalization ability for each task. The loss of each task contributes to the total loss, guiding the training direction of the model, and characterizing the importance of the impact of different dimensions on the connection through weight setting, further improving the accuracy of classification.

[0079] In a specific embodiment, the data model is developed and trained based on machine learning technology that learns visual features from a large number of images labeled with categories and deep learning technology based on convolutional neural networks. By recording 21 typical tongue photos, 100 of each type are trained to form image recognition models of pale tongue, pale red tongue, red tongue, crimson tongue, cyanotic tongue, fat tongue, thin tongue, tooth-marked tongue, tongue edge prickles, tongue tip prickles, cracked tongue, smooth tongue, old tongue, tender tongue, white tongue coating, yellow tongue coating, gray-black tongue coating, flaking tongue coating, thin tongue coating, slippery tongue coating, and thick and greasy tongue coating. The tongue quality results of tongue diagnosis are obtained through model matching.

[0080] As a preferred embodiment, the tongue quality judgment module obtains tongue quality diagnosis information according to the tongue quality type, including:

[0081] Based on a preset tongue image-physique correspondence table, the user's tongue quality diagnosis information is determined according to tongue color characteristics, tongue shape characteristics and tongue coating color characteristics, and the tongue quality diagnosis information includes physical constitution information.

[0082] As a specific embodiment, the tongue quality result may match one or more tongue qualities to obtain the user's tongue quality type. Each tongue quality type corresponds to a different physical condition from the six Chinese medicine dialectical perspectives of wind, cold, heat, dampness, dryness, and fire, thereby obtaining the user's physical condition diagnosis result. The tongue image-physique correspondence table is shown in Table 1:

[0083] Table 1 Tongue image-physique correspondence table

[0084] Tongue color tongue shape Moss Tongue quality diagnostic information Blue tongue dentate tongue white moss Cold stagnates the blood, spleen and qi deficiency. Blue tongue dentate tongue Yellow Moss Cold and dampness Blue tongue Fat tongue Exfoliating moss Cold stagnation and blood stasis, spleen dampness, stomach qi and yin deficiency Blue tongue dentate tongue Gray black moss Weak body, heat entering the blood, spleen deficiency and dampness pale tongue dentate tongue white moss Spleen deficiency and dampness pale tongue dentate tongue Yellow Moss Exogenous wind-heat, wind-cold turning into heat, spleen deficiency and dampness pale tongue dentate tongue Gray black moss Extreme heat, severe cold, spleen deficiency and excessive dampness Pale red tongue dentate tongue white moss Spleen deficiency, Qi deficiency Pale red tongue dentate tongue Yellow Moss Spleen deficiency, Qi deficiency, exogenous wind-heat, wind-cold turning into heat Pale red tongue dentate tongue Gray black moss Excessive heat syndrome, cold and dampness syndrome, spleen deficiency, qi deficiency Red tongue Fat tongue white moss Internal heat with dampness, yang deficiency and dampness Red tongue dentate tongue Gray black moss Damp-heat in the spleen and stomach, deficiency of both stomach qi and yin Red tongue dentate tongue Yellow Moss Qi and Ying are both in disarray, Yin deficiency leads to Ying heat, spleen deficiency leads to dampness Red tongue Fat tongue Gray black moss Deficiency and cold syndrome Red tongue Fat tongue white moss Yin deficiency and excessive fire in the body, combined with wind and cold, the external evil has not been resolved, and the heat enters the blood. Red tongue Fat tongue Yellow Moss Phlegm-heat and damp-heat Red tongue Fat tongue Gray black moss Extreme heat, spleen deficiency and excessive dampness

[0085] As a preferred embodiment, the physical constitution determination module determines the user's main physical constitution type according to the physical constitution identification data using a preset physical constitution evaluation method, including:

[0086] Based on the characteristics of different physical constitution types, physical constitution diagnosis questions are configured; each type of physical constitution includes several targeted questions, each question has multiple alternative answers, and each alternative answer has a corresponding score; the physical constitution types include peaceful physical constitution and non-peaceful physical constitution;

[0087] Record the scores of each constitution of the user respectively, and judge whether the user has a peaceful constitution according to the score of the peaceful constitution;

[0088] If it is not a peaceful constitution, the highest score among the non-peaceful constitutions is taken as the user's main constitution type.

[0089] As a preferred embodiment, the step of recording the scores of each physical constitution of the user respectively and judging whether the user has a peaceful constitution according to the score of the peaceful constitution includes:

[0090] The score for each constitution is calculated according to the following formula:

[0091] Physical fitness score = (total score of physical fitness questions - number of physical fitness questions) / (number of physical fitness questions * k) * 100, where k is the number of alternative answers for each question;

[0092] If the constitution scores other than the peaceful constitution are greater than the first preset threshold, the user is determined to have a non-peaceful constitution; if the user does not have a non-peaceful constitution, and the peaceful constitution score is greater than the second preset threshold, the user's main constitution and secondary constitution are determined to be both peaceful constitutions.

[0093] As a specific embodiment, in practice, answers to constitution identification questions, as well as data such as the user's gender, age, and weight are usually collected from users through questionnaires. Based on the score of each question and the constitution characteristics indicated by different questions, the constitution categories are divided into nine types: balanced, special, blood stasis, damp-heat, phlegm and dampness, qi stagnation, qi deficiency, yin deficiency, and yang deficiency. The user's constitution is classified into one of the nine constitutions based on the different score ranges of the user's scores.

[0094] The specific calculation method is as follows:

[0095] The questionnaire consists of 60 questions, each of which corresponds to a diagnostic constitution. Each question is scored from 1 to 5 points. The sum of the scores for each constitution is recorded. The number of answers for each constitution is recorded.

[0096] Calculate the score of each constitution: score = (constitution score - number of constitution questions) / (number of constitution questions * 4) * 100. For example, Qi deficiency is 24 points, and 8 questions are answered, the score = (24-8) / (8*4) * 100 = 50. The equivalent formula is: (score of each question - 1) * number of questions / (number of questions * (highest score of each question - 1)). This algorithm can make the median closer to 50%;

[0097] If the score of any constitution except the peaceful constitution is greater than 30, the constitution is not a peaceful constitution; if the constitution is a peaceful constitution, then see if the score of the peace item is greater than or equal to 60. If so, both the main constitution and the partial constitution are peaceful; otherwise, find the highest score from each constitution other than the peaceful constitution as the main constitution type.

[0098] The specific questionnaire questions (part) are shown in Table 2:

[0099] Table 2 Constitution identification questionnaire

[0100]

[0101]

[0102] Based on the results of the constitution identification questions, the user's constitution is classified into 9 types: balanced, special, blood stasis, damp-heat, phlegm-dampness, qi stagnation, qi deficiency, yin deficiency, and yang deficiency. It should be noted that the questionnaire here is filled out subjectively by the user, so there may be subjective errors, which need to be compared with the constitution characteristics represented by tongue characteristics to determine the user's true health status.

[0103] Since tongue diagnosis information includes the constitution information of the four major health indexes of internal organs, qi and blood, meridians, and spine, as mentioned above, there may be more than one constitution obtained through tongue diagnosis, and the main constitution type also corresponds to the health of the above four indicators. Therefore, the accuracy of judging the user's constitution can be improved through the correlation between constitution information and main constitution type.

[0104] In order to judge the correlation between the physical constitution information and the main physical constitution type, as a preferred embodiment, the preliminary recommendation module determines the user's health status information according to the tongue quality diagnosis information and the main physical constitution type, including:

[0105] The physical information in the tongue quality diagnosis information is matched with the main body physical type by cosine similarity, and the physical information with a similarity result greater than a preset matching threshold is determined as the verified physical information, and the verified physical information and the tongue quality diagnosis information are used as health status information.

[0106] As a specific embodiment, it is assumed that there are two physical characteristics inferred from the tongue quality diagnosis information, which are represented by vectors A=(cold stagnation and blood stasis, spleen deficiency) and B=(cold stagnation and blood stasis, stomach qi and yin deficiency), and the physical characteristic measured by the questionnaire physical score is C=(spleen deficiency and dampness, coldness). Then, the most similar physical characteristics are determined by calculating the cosine similarity between A and C and between B and C, such as: the calculation formula of the cosine similarity between A and C is:

[0107]

[0108] Among them, A i is the i-th feature information corresponding to the physical score in the tongue quality diagnosis information, C i is the i-th feature information corresponding to the tongue quality diagnosis information in the tongue quality diagnosis information.

[0109] Physical characteristics with cosine similarity greater than the preset threshold are retained as health status information. If the cosine similarities are not greater than the preset threshold, the one with the largest cosine similarity is retained as the judgment standard; if the cosine similarities are equal, all health conditions are retained, and feature matching is performed according to the TCM knowledge graph in the next step.

[0110] As a preferred embodiment, the preset TCM knowledge graph is obtained based on a medical ancient book database composed of a variety of ancient medical books, specifically:

[0111] According to the ancient medical book database, the preset TCM knowledge graph is obtained by training using a natural language processing method; the TCM knowledge graph is used to match a variety of TCM conditioning methods and conditioning prescription plans according to different physical constitution types.

[0112] As a specific embodiment, the preset TCM knowledge graph is obtained by training using a natural language processing method, specifically: using the Named Entity Recognition (NER) technology in NLP to identify key entities in the text, such as drug names, disease names, symptom descriptions, etc. Through natural language processing technology, especially dependency syntax analysis and relationship extraction technology, the relationship between entities is identified from the text, such as "a certain drug can treat a certain disease." A knowledge graph is constructed based on the identified entities and the relationships between them. In the graph, entities are represented as nodes and relationships are represented as edges. Since the same entity may have different names in different documents, knowledge fusion is required to ensure the consistency and accuracy of the information in the graph. The knowledge graph is optimized and expanded according to actual application needs for use in prescription recommendation scenarios.

[0113] The knowledge graph (excerpt) is shown in Table 3:

[0114] Table 3. TCM knowledge graph

[0115]

[0116] As a preferred embodiment, the personalized physical condition includes: surgical condition, medication condition, physiological condition and living climate;

[0117] The preliminary conditioning plan is adjusted according to the personalized physical condition data to generate a personalized recommended prescription, including:

[0118] The TCM conditioning method is determined according to the physiological condition and surgical condition, and the conditioning prescription plan is selected according to the medication condition and living climate.

[0119] Specifically, by combining the user's age, gender, physical type and the user's own conditions, such as whether they have undergone major surgery, whether they have taken long-term medications, whether they are menstruating, whether they have implanted devices in the body, etc., the conditioning plan is adjusted in a targeted manner, and unsuitable conditioning items are eliminated. Combined with the user's personal preferences, the final personalized conditioning prescription is generated, which further optimizes the accuracy and applicability of the recommended prescription.

[0120] It should be noted that, through the above analysis, it can be seen that it is possible to obtain a variety of physical information of the user in the aforementioned judgment process, so in some cases a plurality of matching schemes can be generated to provide reference for the user.

[0121] This embodiment also provides a method for recommending TCM prescriptions based on big data. As shown in the figure, the method for recommending TCM prescriptions based on big data includes:

[0122] Step S101: Obtaining the user's tongue image data, physical identification data and personalized physical condition data;

[0123] Step S102: using a preset tongue image recognition model based on a convolutional neural network to obtain the user's tongue quality type according to the tongue image data, and obtaining tongue quality diagnosis information according to the tongue quality type;

[0124] Step S103: using a preset physical evaluation method to determine the user's main physical type according to the physical identification data;

[0125] Step S104: determining the user's health status information according to the tongue quality diagnosis information and the main body constitution type, and obtaining a preliminary conditioning plan by matching the health status information in the preset TCM knowledge graph;

[0126] Step S105: adjusting the preliminary conditioning plan according to the personalized physical condition data to generate a personalized recommended prescription.

[0127] The present invention discloses a TCM prescription recommendation system and method based on big data. The system uses sensor technology to actively collect user body representation images through a data acquisition module; uses a preset tongue image recognition model based on a convolutional neural network to identify the user's tongue quality type through a tongue quality judgment module, and obtains tongue quality diagnosis information according to the tongue quality type; uses a preset constitution evaluation method through a constitution judgment module to determine the user's main constitution type according to constitution identification data; uses a preliminary recommendation module to determine the user's health status information according to the tongue quality diagnosis information and the main constitution type, and can detect the user's health status information in multiple dimensions to provide an accurate data basis for prescription recommendation, and obtains a preliminary conditioning plan according to the health status information by matching in a preset TCM knowledge graph, and uses the TCM knowledge graph containing massive data to match user data to improve the accuracy of prescription recommendation; uses an optimization module to adjust the preliminary conditioning plan according to the personalized physical condition data, generates a personalized recommended prescription, and optimizes the plan according to individual differences to ensure the accuracy and applicability of the conditioning plan. The system of the present invention actively identifies the user's physique through sensor technology and big data matching solutions, and introduces multiple influencing factors such as physique identification data and personalized body condition data to determine the final prescription recommendation and improve the accuracy of the prescription recommendation.

[0128] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A TCM prescription recommendation system based on big data, characterized in that: It includes a data acquisition module, a tongue quality judgment module and a constitution judgment module connected to the data acquisition module, a preliminary recommendation module connected to the tongue quality judgment module and the constitution judgment module, and an optimization module connected to the preliminary recommendation module and the data acquisition module; A data acquisition module, used to acquire the user's tongue image data, physical identification data and personalized physical condition data; A tongue quality judgment module, which is used to obtain the user's tongue quality type according to the tongue image data using a preset tongue image recognition model based on a convolutional neural network, and obtain tongue quality diagnosis information according to the tongue quality type; A physical constitution determination module is used to determine the user's main physical constitution type according to the physical constitution identification data using a preset physical constitution evaluation method; The preliminary recommendation module is used to determine the user's health status information based on the tongue quality diagnosis information and the main body type, and to match the health status information in the preset TCM knowledge graph to obtain a preliminary conditioning plan; The optimization module is used to adjust the preliminary conditioning plan according to the personalized physical condition data and generate a personalized recommended prescription.

2. The TCM prescription recommendation system based on big data according to claim 1 is characterized in that: The preset tongue image recognition model includes a plurality of convolutional layers, a plurality of pooling layers, a flattening layer, a plurality of fully connected layers and an output layer connected in sequence, and each convolutional layer is connected to a pooling layer; The convolution layer is used to extract tongue quality features of multiple dimensions of the tongue image, and perform nonlinear transformation on the tongue quality features of each dimension using an activation function; The pooling layer is used to reduce the dimension of tongue quality features and reduce the amount of calculation of the model; The flattening layer is used to flatten the output of the pooling layer into a one-dimensional vector; The fully connected layer is used to determine feature mapping parameters according to the one-dimensional vector using a preset weight matrix and a bias; The output layer is used to determine the tongue quality type corresponding to the tongue image according to the feature mapping parameters.

3. The TCM prescription recommendation system based on big data according to claim 1 is characterized in that: The tongue quality characteristics include tongue color characteristics, tongue shape characteristics and tongue coating color characteristics; The loss function of the tongue image recognition model is the sum of the tongue color feature loss function, the tongue shape feature loss function and the moss color feature loss function; the color feature loss function, the tongue shape feature loss function and the moss color feature loss function are all cross entropy loss functions. The loss function of the tongue image recognition model is expressed by the formula: Wherein, k1, k2 and k3 represent the influence weights of tongue color feature loss function, tongue shape feature loss function and moss color feature loss function respectively, M1, M2 and M3 represent the total number of categories of tongue color feature, tongue shape feature and moss color feature respectively, y c1 ,y c2 and c3 They represent the unique hot encoding of the true label, p c1 、p c1 and p c3 They represent the probability that sample i belongs to category c1, c2 and c3 respectively.

4. The TCM prescription recommendation system based on big data according to claim 3 is characterized in that: The tongue quality judgment module obtains tongue quality diagnosis information according to the tongue quality type, including: Based on a preset tongue image-physique correspondence table, the user's tongue quality diagnosis information is determined according to tongue color characteristics, tongue shape characteristics and tongue coating color characteristics, and the tongue quality diagnosis information includes physical constitution information.

5. The TCM prescription recommendation system based on big data according to claim 1 is characterized in that: The physical fitness determination module determines the user's main physical fitness type according to the physical fitness identification data using a preset physical fitness evaluation method, including: Based on the characteristics of different physical constitution types, physical constitution diagnosis questions are configured; each type of physical constitution includes several targeted questions, each question has multiple alternative answers, and each alternative answer has a corresponding score; the physical constitution types include peaceful physical constitution and non-peaceful physical constitution; Record the scores of each constitution of the user respectively, and judge whether the user has a peaceful constitution according to the score of the peaceful constitution; If it is not a peaceful constitution, the highest score among the non-peaceful constitutions is taken as the user's main constitution type.

6. The TCM prescription recommendation system based on big data according to claim 5 is characterized in that: The step of recording the scores of each constitution of the user respectively and judging whether the user has a peaceful constitution according to the score of the peaceful constitution comprises: The score for each constitution is calculated according to the following formula: Physical fitness score = (total score of physical fitness questions - number of physical fitness questions) / (number of physical fitness questions * k) * 100, where k is the number of alternative answers for each question; If the constitution scores other than the peaceful constitution are greater than the first preset threshold, the user is determined to have a non-peaceful constitution; if the user does not have a non-peaceful constitution, and the peaceful constitution score is greater than the second preset threshold, the user's main constitution and secondary constitution are determined to be both peaceful constitutions.

7. The TCM prescription recommendation system based on big data according to claim 3 is characterized in that: The preliminary recommendation module determines the user's health status information according to the tongue quality diagnosis information and the main body constitution type, including: The physical information in the tongue quality diagnosis information is matched with the main body physical type by cosine similarity, and the physical information with a similarity result greater than a preset matching threshold is determined as the verified physical information, and the verified physical information and the tongue quality diagnosis information are used as health status information.

8. The TCM prescription recommendation system based on big data according to claim 1 is characterized in that: The preset TCM knowledge graph is obtained based on a database of ancient medical books consisting of a variety of ancient medical books, specifically: According to the ancient medical book database, the preset TCM knowledge graph is obtained by training using a natural language processing method; the TCM knowledge graph is used to match a variety of TCM conditioning methods and conditioning prescription plans according to different physical constitution types.

9. The TCM prescription recommendation system based on big data according to claim 8 is characterized in that: The personalized physical condition includes: surgical condition, medication condition, physiological condition and living climate; The preliminary conditioning plan is adjusted according to the personalized physical condition data to generate a personalized recommended prescription, including: The TCM conditioning method is determined according to the physiological condition and surgical condition, and the conditioning prescription plan is selected according to the medication condition and living climate.

10. A method for recommending traditional Chinese medicine prescriptions based on big data, characterized in that: include: Obtain the user's tongue image data, physical identification data and personalized physical condition data; Using a preset tongue image recognition model based on a convolutional neural network to obtain the user's tongue quality type according to the tongue image data, and obtaining tongue quality diagnosis information according to the tongue quality type; Determine the user's main physical type based on the physical identification data using a preset physical evaluation method; Determine the user's health status information based on the tongue quality diagnosis information and the main body constitution type, and match the health status information in the preset TCM knowledge map to obtain a preliminary conditioning plan; The preliminary conditioning plan is adjusted according to the personalized physical condition data to generate a personalized recommended prescription.

Citation Information

Cited By

  • Health guidance report generation method, system and terminal based on traditional Chinese medicine constitution identification

    CN119851851A