Method for generating rehabilitation prescription after weight loss metabolism surgery based on artificial intelligence

Through association rule mining and natural language processing technology, combined with GA and Tabu-Search algorithms, personalized rehabilitation recipes for post-bariatric metabolic surgery are generated, which solves the problem of failure to consider patients' allergies and eating habits in traditional methods and ensures privacy Protection, achieving efficient recovery recipe generation.

CN118609760AInactive Publication Date: 2024-09-06THE SECOND HOSPITAL OF SHANDONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410775674.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional method of generating prescriptions for rehabilitation after bariatric metabolic surgery lacks pertinence, fails to effectively consider the patient's allergies, eating habits and preferences, and fails to ensure the protection of patient privacy when integrating multiple data sources, relying on data cleaning methods that lead to privacy The protection algorithm is not reliable enough.

Method used

The association rule mining method is combined with the GA algorithm and Tabu-Search algorithm, and natural language processing and knowledge graph technology are used to generate personalized rehabilitation recipe prescriptions to ensure privacy protection and targeted recommendations.

Benefits of technology

It is possible to generate personalized rehabilitation recipes for post-bariatric metabolic surgery without leaking patient privacy, which improves the reliability of weight loss results and patient satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609760A
    Figure CN118609760A
Patent Text Reader

Abstract

The invention belongs to the field of weight loss metabolism rehabilitation, and particularly relates to a weight loss metabolism operation postoperative rehabilitation prescription generation method based on artificial intelligence, and the method comprises the steps: extracting an association rule, optimizing the association rule, creating and training a QA model, carrying out the personalized customization of a patient, and outputting a rehabilitation recipe prescription. According to the scheme, an association rule mining method is adopted, and potential association rules of a weight loss patient information database and a rehabilitation recipe prescription database are learned; a cooperative computing association rule mining method based on a combined database is adopted, the support degree of a frequent item set is effectively calculated while data dispersion is kept and patient privacy is protected, and the possibility of leaking the patient privacy is reduced; according to the scheme, the GA algorithm and the Tabu-Search algorithm are combined, so that the possibility of ghost rules and losing hidden rules is reduced to the greatest extent; and searching related information from a large-scale knowledge graph by adopting natural language processing and knowledge graph technologies, and carrying out personalized recipe recommendation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of weight loss metabolic rehabilitation, and specifically refers to a method for generating a postoperative rehabilitation prescription for weight loss metabolic surgery based on artificial intelligence. Background Art

[0002] Bariatric surgery is an effective method for treating severe obesity, but patients often experience unsatisfactory weight loss and weight rebound due to nutritional deficiencies or overnutrition. Traditional methods for generating rehabilitation prescriptions have the problem of not generating rehabilitation recipe prescriptions specifically for bariatric surgery; the problem of not considering the sensitivity of patient confidentiality when integrating patient information and rehabilitation recipe prescriptions and integrating data from multiple data sources; the problem of privacy protection algorithms heavily relying on data cleaning methods to obtain reliable association rules; and the problem of not considering patient allergies, dietary habits, and preferences. Summary of the invention

[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides a method for generating postoperative rehabilitation prescriptions for weight loss metabolic surgery based on artificial intelligence. In view of the problem that there is no method for generating rehabilitation recipe prescriptions specifically for weight loss metabolic surgery in traditional rehabilitation prescription generation methods, this scheme adopts an association rule mining method; in view of the problem that the sensitivity of patient confidentiality is not taken into account when integrating patient information and rehabilitation recipe prescriptions and integrating data from multiple data sources, this scheme adopts a collaborative computing association rule mining method based on a combined database to reduce the possibility of leaking patient privacy; in view of the problem that privacy protection algorithms heavily rely on data cleaning methods to obtain reliable association rules, this scheme combines the GA algorithm and the Tabu-Search algorithm; in view of the problem that patient allergies, eating habits and preferences are not taken into consideration, this scheme adopts natural language processing and knowledge graph technology to make personalized recipe recommendations.

[0004] The technical solution adopted by the present invention is as follows: The present invention provides a method for generating a postoperative rehabilitation prescription for weight loss metabolic surgery based on artificial intelligence, the method comprising the following steps:

[0005] Step S1: extracting association rules, collecting the weight loss patient information database and the rehabilitation recipe prescription database, and using the Apriori algorithm to extract association rules;

[0006] Step S2: Optimizing association rules, using Tabu-Genetic algorithm and GA algorithm to optimize association rules;

[0007] Step S3: Create and train a QA model, use association rules as constraints, use the FoodKG knowledge graph to create a benchmark question-answering dataset, create a QA model, and train the QA model using the benchmark question-answering dataset;

[0008] Step S4: Patient personalization: input the patient's basic medical information and historical dietary records into the QA model, the QA model outputs candidate answers, and calculates the comprehensive score of the candidate answers;

[0009] Step S5: Output the rehabilitation recipe prescription, and output the candidate answer with the highest comprehensive score, that is, the rehabilitation recipe prescription.

[0010] Furthermore, in step S1, the association rules are extracted, and the specific method includes the following steps:

[0011] Step S11: collecting the weight loss patient information database and the rehabilitation recipe prescription database, using the Apriori algorithm to extract the attributes in the weight loss patient information database and the rehabilitation recipe prescription database as an item set, and all the item sets constitute the candidate item set C;

[0012] Step S12: Calculate the support count of candidate item set C, record the weight loss patient information database as participant A, record the rehabilitation recipe prescription database as participant B, and traverse candidate item set C. The specific operations are as follows:

[0013] Step S121: If all candidate item sets C come from participant A, participant A independently calculates the support count of candidate item set C;

[0014] Step S122: If all candidate item sets C come from participant B, participant B independently calculates the support count of candidate item set C;

[0015] Step S123: Otherwise, the support count calculation formula of candidate item set C is as follows: ; ; ;

[0016] In the formula, represents the code of participant A, represents the code of participant B, represents the number of candidate item sets C included by participant A, represents the number of candidate item sets C included by participant B, Indicates that the first The value of the candidate item set C, Indicates that the first The value of the candidate item set C, represents the product of the values ​​of all candidate item sets C in participant A, The product of the values ​​of all candidate item sets C in participant B, represents the support count of candidate item set C, Indicates the total number of transactions;

[0017] Step S13: Pruning, presetting a minimum support count threshold, filtering out candidate item sets C whose support counts are lower than the minimum support count threshold, and obtaining frequent item sets L;

[0018] Step S14: Connect the frequent item sets L to generate a new candidate item set C;

[0019] Step S15: If the new candidate item set C is an empty set, execute the following steps, otherwise repeat steps S12 to S14;

[0020] Step S16: extract association rules, extract association rules from the frequent item set L.

[0021] Furthermore, in step S2, the association rules are optimized, and the specific method includes the following steps:

[0022] Step S21: Calculate the fitness of all association rules, use the Tabu-Genetic algorithm to create and maintain the taboo table, locally search for the association rule with the highest fitness, use the GA algorithm to select the association rule with the lowest fitness for crossover and mutation operations, modify and generate new association rules, the distortion is the ratio of the number of frequent item sets L containing medical sensitive information in the association rule to the total number of frequent item sets L in the association rule, and preset the minimum distortion. If the distortion of the association rule is greater than or equal to the minimum distortion, the fitness calculation formula is as follows: ; ;

[0023] In the formula, Indicates The support count of association rules, It is the first The value of the frequent itemset L, It is The number of frequent item sets L in the association rules, represents the number of frequent item sets L with a value of 1 in the association rule, Indicates Whether there is medical sensitive information in the association rule, if yes, it is 1, otherwise it is 0. It is the fitness when the distortion of the association rule is greater than or equal to the minimum distortion;

[0024] Step S22: If the distortion of the association rule is less than the minimum distortion, the fitness calculation formula is as follows: ; ; ;

[0025] In the formula, represents the support of the frequent item set L containing medical sensitive information, Indicates medically sensitive information, represents the total number of association rules containing medical sensitive information, represents the support of the frequent item set L that does not contain medical sensitive information, It indicates the fitness when the distortion of the association rule is less than or equal to the minimum distortion. represents the weight coefficient of the frequent item set L containing medical sensitive information, Represents the weight coefficient of the frequent item set L that does not contain medical sensitive information and satisfies the condition .

[0026] Furthermore, in step S3, a QA model is created and trained. The specific method includes the following steps:

[0027] Step S31: Create a benchmark question-answering dataset, generate a series of question templates and corresponding standard recipe prescriptions for postoperative rehabilitation of bariatric metabolic surgery based on the bariatric patient information database and the rehabilitation recipe prescription database, record the standard recipe prescription as the standard answer, and the question template and the corresponding standard answer constitute the benchmark question-answering dataset;

[0028] Step S32: Create a QA model, use the FoodKG knowledge graph, and use the association rules as constraints to expand the FoodKG knowledge graph. The QA model extracts candidate answers from the FoodKG knowledge graph according to the question template, and uses the benchmark question-answering dataset to train the QA model. The specific steps are as follows:

[0029] Step S321: Calculate the matching score, the formula is as follows: ; ;

[0030] In the formula, A sequence of words representing the question template, represents the dot product operation, Indicates that the QA model is The candidate answers extracted from the FoodKG knowledge graph in the h-hop neighborhood expanded by the center are recorded as the negative answer set. represents the candidate answer randomly selected by the QA model from the negative answer set, represents the standard answer, recorded as the correct answer set, represents the standard answer randomly selected by the QA model from the positive answer set, express and The matching score between express and The matching score between

[0031] Step S322: rank candidate answers according to matching scores;

[0032] Step S323: Calculate the hinge loss function, the formula is as follows: ;

[0033] In the formula, represents the hinge loss function, represents the maximum value function;

[0034] Step S324: Calculate the total loss function, as shown below: ;

[0035] In the formula, represents the total loss function, represents the cumulative sum of all hinge loss functions.

[0036] Furthermore, in step S4, the patient is personalized, and the specific method includes the following steps:

[0037] Step S41: input the basic medical information of the patient to be diagnosed, use natural language processing technology to perform lexical, grammatical and semantic analysis on the basic medical information, map it into a structured query language, and input it into the QA model as a question template, and the QA model outputs candidate answers;

[0038] Step S42: input the patient's historical dietary record, use knowledge graph embedding technology to represent all recipes in the FoodKG knowledge graph as distributed vectors, construct a k-nearest neighbor graph for the recipes in the historical dietary record, calculate the cosine similarity between the recipes in the historical dietary record and all recipes in the FoodKG knowledge graph, output the k recipes most similar to the historical dietary record, and add the k most similar recipes to the candidate answers;

[0039] Step S43: normalizing the matching score and the cosine similarity;

[0040] Step S44: Combine the matching score and cosine similarity to calculate the comprehensive score of the candidate answer. The formula is as follows: ;

[0041] In the formula, represents the weight parameter, Indicates the comprehensive rating. Indicates historical dietary records. represents the matching score after normalization operation, Represents the maximum cosine similarity after normalization.

[0042] The beneficial effects achieved by the present invention using the above scheme are as follows:

[0043] (1) In view of the problem that the traditional rehabilitation prescription generation method does not have a method specifically for generating rehabilitation recipe prescriptions for weight loss metabolic surgery, this scheme adopts an association rule mining method to learn the potential association rules between the weight loss patient information database and the rehabilitation recipe prescription database;

[0044] (2) In order to address the problem of not considering the sensitivity of patient confidentiality when integrating patient information and rehabilitation recipe prescriptions and integrating data from multiple data sources, this solution adopts a collaborative computing association rule mining method based on a combined database. While maintaining data dispersion and protecting patient privacy, it effectively calculates the support of frequent itemsets. Each database only needs to care about the attribute set it owns, avoiding direct sharing of sensitive information and reducing the possibility of leaking patient privacy.

[0045] (3) To address the problem that privacy-preserving algorithms rely heavily on data cleaning methods to obtain reliable association rules, this solution combines the GA algorithm with the Tabu-Search algorithm to find hidden rules without changing the original database in any way, thereby minimizing the possibility of ghost rules and missing hidden rules;

[0046] (4) For questions that do not take into account patients’ allergies, dietary habits, and preferences, this solution uses natural language processing and knowledge graph technology to understand the semantic relationships in the patient’s question template, retrieve relevant information from the large-scale knowledge graph, and convert it into understandable answers to make personalized recipe recommendations. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of a process for generating a postoperative rehabilitation prescription for weight loss metabolic surgery based on artificial intelligence provided by the present invention;

[0048] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION

[0049] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. 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 making creative work are within the scope of protection of the present invention.

[0050] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.

[0051] Example 1, see Figure 1 The present invention provides a method for generating a postoperative rehabilitation prescription for weight loss metabolic surgery based on artificial intelligence, the method comprising the following steps:

[0052] Step S1: extracting association rules, collecting the weight loss patient information database and the rehabilitation recipe prescription database, and using the Apriori algorithm to extract association rules;

[0053] Step S2: Optimizing association rules, using Tabu-Genetic algorithm and GA algorithm to optimize association rules;

[0054] Step S3: Create a QA model, use association rules as constraints, use the FoodKG knowledge graph to create a benchmark question-answering dataset, create a QA model, and train the QA model using the benchmark question-answering dataset;

[0055] Step S4: Patient personalization: input the patient's basic medical information and historical dietary records into the QA model, the QA model outputs candidate answers, and calculates the comprehensive score of the candidate answers;

[0056] Step S5: Output the rehabilitation recipe prescription, and output the candidate answer with the highest comprehensive score, that is, the rehabilitation recipe prescription.

[0057] Example 2, see Figure 1 This embodiment is based on the above embodiment. In step S1, the association rules are extracted, which specifically includes the following steps:

[0058] Step S11: collecting the weight loss patient information database and the rehabilitation recipe prescription database, using the Apriori algorithm to extract the attributes in the weight loss patient information database and the rehabilitation recipe prescription database as an item set, and all the item sets constitute the candidate item set C;

[0059] Step S12: Calculate the support count of candidate item set C, record the weight loss patient information database as participant A, record the rehabilitation recipe prescription database as participant B, and traverse candidate item set C. The specific operations are as follows:

[0060] Step S121: If all candidate item sets C come from participant A, participant A independently calculates the support count of candidate item set C;

[0061] Step S122: If all candidate item sets C come from participant B, participant B independently calculates the support count of candidate item set C;

[0062] Step S123: Otherwise, the support count calculation formula of candidate item set C is as follows: ; ; ;

[0063] In the formula, represents the code of participant A, represents the code of participant B, represents the number of candidate item sets C included by participant A, represents the number of candidate item sets C included by participant B, Indicates that the first The value of the candidate item set C, Indicates that the first The value of the candidate item set C, represents the product of the values ​​of all candidate item sets C in participant A, The product of the values ​​of all candidate item sets C in participant B, represents the support count of candidate item set C, Indicates the total number of transactions;

[0064] Step S13: Pruning, presetting a minimum support count threshold, filtering out candidate item sets C whose support counts are lower than the minimum support count threshold, and obtaining frequent item sets L;

[0065] Step S14: Connect the frequent item sets L to generate a new candidate item set C;

[0066] Step S15: If the new candidate item set C is an empty set, execute the following steps, otherwise repeat steps S12 to S14;

[0067] Step S16: extract association rules, extract association rules from the frequent item set L.

[0068] Example 3, see Figure 1 Based on the above embodiment, this embodiment optimizes the association rules in step S2, specifically including the following steps:

[0069] Step S21: Calculate the fitness of all association rules, use the Tabu-Genetic algorithm to create and maintain the taboo table, locally search for the association rule with the highest fitness, use the GA algorithm to select the association rule with the lowest fitness for crossover and mutation operations, modify and generate new association rules, the distortion is the ratio of the number of frequent item sets L containing medical sensitive information in the association rule to the total number of frequent item sets L in the association rule, and preset the minimum distortion. If the distortion of the association rule is greater than or equal to the minimum distortion, the fitness calculation formula is as follows: ; ;

[0070] In the formula, Indicates The support count of association rules, It is the first The value of the frequent itemset L, It is The number of frequent item sets L in the association rules, represents the number of frequent item sets L with a value of 1 in the association rule, Indicates Whether there is medical sensitive information in the association rule, if yes, it is 1, otherwise it is 0. It is the fitness when the distortion of the association rule is greater than or equal to the minimum distortion;

[0071] Step S22: If the distortion of the association rule is less than the minimum distortion, the fitness calculation formula is as follows: ; ; ;

[0072] In the formula, represents the support of the frequent item set L containing medical sensitive information, Indicates medically sensitive information, represents the total number of association rules containing medical sensitive information, represents the support of the frequent item set L that does not contain medical sensitive information, It indicates the fitness when the distortion of the association rule is less than or equal to the minimum distortion. represents the weight coefficient of the frequent item set L containing medical sensitive information, Represents the weight coefficient of the frequent item set L that does not contain medical sensitive information and satisfies the condition .

[0073] Example 4, see Figure 1This embodiment is based on the above embodiment. In step S3, a QA model is created and trained, which specifically includes the following steps:

[0074] Step S31: Create a benchmark question-answering dataset, generate a series of question templates and corresponding standard recipe prescriptions for postoperative rehabilitation of bariatric metabolic surgery based on the bariatric patient information database and the rehabilitation recipe prescription database, record the standard recipe prescription as the standard answer, and the question template and the corresponding standard answer constitute the benchmark question-answering dataset;

[0075] Step S32: Create a QA model, use the FoodKG knowledge graph, and use the association rules as constraints to expand the FoodKG knowledge graph. The QA model extracts candidate answers from the FoodKG knowledge graph according to the question template, and uses the benchmark question-answering dataset to train the QA model. The specific steps are as follows:

[0076] Step S321: Calculate the matching score, the formula is as follows: ; ;

[0077] In the formula, A sequence of words representing the question template, represents the dot product operation, Indicates that the QA model is The candidate answers extracted from the FoodKG knowledge graph in the h-hop neighborhood expanded by the center are recorded as the negative answer set. represents the candidate answer randomly selected by the QA model from the negative answer set, represents the standard answer, recorded as the correct answer set, represents the standard answer randomly selected by the QA model from the positive answer set, express and The matching score between express and The matching score between

[0078] Step S322: rank candidate answers according to matching scores;

[0079] Step S323: Calculate the hinge loss function, the formula is as follows: ;

[0080] In the formula, represents the hinge loss function, represents the maximum value function;

[0081] Step S324: Calculate the total loss function, as shown below: ;

[0082] In the formula, represents the total loss function, represents the cumulative sum of all hinge loss functions.

[0083] Example 5, see Figure 1 This embodiment is based on the above embodiment. In step S4, the patient is personalized, which specifically includes the following steps:

[0084] Step S41: input the basic medical information of the patient to be diagnosed, use natural language processing technology to perform lexical, grammatical and semantic analysis on the basic medical information, map it into a structured query language, and input it into the QA model as a question template. The QA model outputs candidate answers for the rehabilitation recipe prescription;

[0085] Step S42: input the patient's historical dietary record, use knowledge graph embedding technology to represent all recipes in the FoodKG knowledge graph as distributed vectors, construct a k-nearest neighbor graph for the recipes in the historical dietary record, calculate the cosine similarity between the recipes in the historical dietary record and all recipes in the FoodKG knowledge graph, output the k recipes most similar to the historical dietary record, and add the k most similar recipes to the candidate answers;

[0086] Step S43: normalizing the matching score and the cosine similarity;

[0087] Step S44: Combine the matching score and cosine similarity to calculate the comprehensive score of the candidate answer. The formula is as follows: ;

[0088] In the formula, represents the weight parameter, Indicates the comprehensive rating. Indicates historical dietary records. represents the matching score after normalization operation, Represents the maximum cosine similarity after normalization.

[0089] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0090] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

[0091] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims

1. A method for generating postoperative rehabilitation prescriptions for weight loss and metabolic surgery based on artificial intelligence. Features: The method comprises the following steps: Step S1: extracting association rules, collecting the weight loss patient information database and the rehabilitation recipe prescription database, and using the Apriori algorithm to extract association rules; Step S2: Optimizing association rules, using Tabu-Genetic algorithm and GA algorithm to optimize association rules; Step S3: Create and train a QA model, use association rules as constraints, use the FoodKG knowledge graph to create a benchmark question-answering dataset, create a QA model, and train the QA model using the benchmark question-answering dataset; Step S4: Patient personalization: input the patient's basic medical information and historical dietary records into the QA model, the QA model outputs candidate answers, and calculates the comprehensive score of the candidate answers; Step S5: Output the rehabilitation recipe prescription, and output the candidate answer with the highest comprehensive score, that is, the rehabilitation recipe prescription.

2. The method for generating a postoperative rehabilitation prescription for weight loss metabolic surgery based on artificial intelligence according to claim 1, Features: In step S1, extracting association rules specifically includes the following steps: Step S11: collecting the weight loss patient information database and the rehabilitation recipe prescription database, using the Apriori algorithm to extract the attributes in the weight loss patient information database and the rehabilitation recipe prescription database as an item set, and all the item sets constitute the candidate item set C; Step S12: Calculate the support count of candidate item set C, record the weight loss patient information database as participant A, record the rehabilitation recipe prescription database as participant B, and traverse candidate item set C. The specific operations are as follows: Step S121: If all candidate item sets C come from participant A, participant A independently calculates the support count of candidate item set C; Step S122: If all candidate item sets C come from participant B, participant B independently calculates the support count of candidate item set C; Step S123: Otherwise, the support count calculation formula of candidate item set C is as follows: ; ; ; In the formula, represents the code of participant A, represents the code of participant B, represents the number of candidate item sets C included by participant A, represents the number of candidate item sets C included by participant B, Indicates that the first The value of the candidate item set C, Indicates that the first The value of the candidate item set C, represents the product of the values ​​of all candidate item sets C in participant A, The product of the values ​​of all candidate item sets C in participant B, represents the support count of candidate item set C, Indicates the total number of transactions; Step S13: Pruning, presetting a minimum support count threshold, filtering out candidate item sets C whose support counts are lower than the minimum support count threshold, and obtaining frequent item sets L; Step S14: Connect the frequent item sets L to generate a new candidate item set C; Step S15: If the new candidate item set C is an empty set, execute the following steps, otherwise repeat steps S12 to S14; Step S16: extract association rules, extract association rules from the frequent item set L.

3. The method for generating a postoperative rehabilitation prescription for weight loss metabolic surgery based on artificial intelligence according to claim 2, Features: In step S2, the optimization of association rules specifically includes the following steps: Step S21: Calculate the fitness of all association rules, use the Tabu-Genetic algorithm to create and maintain the taboo table, locally search for the association rule with the highest fitness, use the GA algorithm to select the association rule with the lowest fitness for crossover and mutation operations, modify and generate new association rules, the distortion is the ratio of the number of frequent item sets L containing medical sensitive information in the association rule to the total number of frequent item sets L in the association rule, and preset the minimum distortion. If the distortion of the association rule is greater than or equal to the minimum distortion, the fitness calculation formula is as follows: ; ; In the formula, Indicates The support count of association rules, It is the first The value of the frequent itemset L, It is The number of frequent item sets L in the association rules, represents the number of frequent item sets L with a value of 1 in the association rule, Indicates Whether there is medical sensitive information in the association rule, if yes, it is 1, otherwise it is 0. It is the fitness when the distortion of the association rule is greater than or equal to the minimum distortion; Step S22: If the distortion of the association rule is less than the minimum distortion, the fitness calculation formula is as follows: ; ; ; In the formula, represents the support of the frequent item set L containing medical sensitive information, Indicates medically sensitive information, represents the total number of association rules containing medical sensitive information, represents the support of the frequent item set L that does not contain medical sensitive information, It indicates the fitness when the distortion of the association rule is less than or equal to the minimum distortion. represents the weight coefficient of the frequent item set L containing medical sensitive information, Represents the weight coefficient of the frequent item set L that does not contain medical sensitive information and satisfies the condition .

4. The method for generating a postoperative rehabilitation prescription for weight loss metabolic surgery based on artificial intelligence according to claim 3, Features: In step S3, the QA model is created and trained, specifically including the following steps: Step S31: Create a benchmark question-answering dataset, generate a series of question templates and corresponding standard recipe prescriptions for postoperative rehabilitation of bariatric metabolic surgery based on the bariatric patient information database and the rehabilitation recipe prescription database, record the standard recipe prescription as the standard answer, and the question template and the corresponding standard answer constitute the benchmark question-answering dataset; Step S32: Create a QA model, use the FoodKG knowledge graph, and use the association rules as constraints to expand the FoodKG knowledge graph. The QA model extracts candidate answers from the FoodKG knowledge graph according to the question template, and uses the benchmark question-answering dataset to train the QA model. The specific steps are as follows: Step S321: Calculate the matching score, the formula is as follows: ; ; In the formula, A sequence of words representing the question template, represents the dot product operation, Indicates that the QA model is The candidate answers extracted from the FoodKG knowledge graph in the h-hop neighborhood expanded by the center are recorded as the negative answer set. represents the candidate answer randomly selected by the QA model from the negative answer set, represents the standard answer, recorded as the correct answer set, represents the standard answer randomly selected by the QA model from the positive answer set, express and The matching score between express and The matching score between Step S322: rank candidate answers according to matching scores; Step S323: Calculate the hinge loss function, the formula is as follows: ; In the formula, represents the hinge loss function, It represents the maximum value function; Step S324: Calculate the total loss function, as shown below: ; In the formula, represents the total loss function, represents the cumulative sum of all hinge loss functions.

5. The method for generating a postoperative rehabilitation prescription for weight loss metabolic surgery based on artificial intelligence according to claim 4, Features: In step S4, the patient personalized customization specifically includes the following steps: Step S41: input the basic medical information of the patient to be diagnosed, use natural language processing technology to perform lexical, grammatical and semantic analysis on the basic medical information, map it into a structured query language, and input it into the QA model as a question template, and the QA model outputs candidate answers; Step S42: input the patient's historical dietary record, use knowledge graph embedding technology to represent all recipes in the FoodKG knowledge graph as distributed vectors, construct a k-nearest neighbor graph for the recipes in the historical dietary record, calculate the cosine similarity between the recipes in the historical dietary record and all recipes in the FoodKG knowledge graph, output the k recipes most similar to the historical dietary record, and add the k most similar recipes to the candidate answers; Step S43: normalizing the matching score and the cosine similarity; Step S44: Combine the matching score and cosine similarity to calculate the comprehensive score of the candidate answer. The formula is as follows: ; In the formula, represents the weight parameter, Indicates the comprehensive rating. Indicates historical dietary records. represents the matching score after normalization operation, Represents the maximum cosine similarity after normalization.