A diet monitoring alarm method and system for nephrology patients based on food composition
Through food scanning technology and nutritional tree analysis method, combined with FP-growth algorithm, accurate monitoring of the diet of nephrology patients and multi-level alarm measures are achieved, which solves the problem of inaccurate diet monitoring in the existing technology and improves the scientific management sex and flexibility.
Patent Information
- Application Number
- CN202410797626.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-20
AI Technical Summary
Existing dietary management programs are difficult to achieve accurate and real-time dietary monitoring for patients with kidney disease. In particular, the monitoring of intake of high-sodium, high-potassium or high-phosphorus foods is not precise enough, leading to health risks.
Adopt a dietary monitoring and alarm method for nephrology patients based on food composition, identify ingested food through food scanning technology, determine nutritional components using image recognition and database, and combine FP-growth algorithm and nutritional tree analysis method to evaluate nutritional intake deviations and set up Define multi-level alarm measures.
It achieves personalized, timely and accurate monitoring of the diet of nephrology patients, improves the flexibility and pertinence of management, reduces the influence of subjective factors, and enhances the depth and scientificity of data analysis.
Smart Images

Figure CN118366617B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of diet monitoring and alarm, and in particular to a diet monitoring and alarm method and system for nephrology patients based on food ingredients. Background Art
[0002] Kidney disease is a common and widespread disease. If it is not controlled and managed, it may gradually deteriorate into uremia, posing a serious threat to human health. With the continuous improvement of medical standards, chronic kidney disease has become another major disease that seriously threatens human health after cardiovascular and cerebrovascular diseases, cancer, and diabetes, and has risen to a global public health issue. In this context, it is particularly important for patients with chronic diseases such as diabetes to implement a healthy diet plan. However, for these patients, formulating and strictly adhering to a healthy diet plan is still a huge challenge. They need to have some understanding of the nutritional content and glycemic index of various foods to avoid high-sugar components in food. In addition, frequent dining activities in daily life make it difficult for them to remember the dietary taboos of diabetes at all times, which not only consumes a lot of manpower and material resources, but also brings great mental pressure to patients.
[0003] Existing dietary management programs rely on patient self-reporting or paper diet diaries. These methods often lack accuracy and real-time performance, making it difficult to accurately monitor patients' daily dietary status. This inaccuracy may lead to improper dietary management, which may adversely affect patients' health, especially for kidney patients who need to avoid high-sodium, high-potassium or high-phosphorus foods.
[0004] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention
[0005] In view of this, and in response to the problems in the related art, the present invention provides a method and system for monitoring and alarming the diet of nephrology patients based on food ingredients, so as to solve the above-mentioned problems of lack of accuracy and real-time performance, and difficulty in accurately monitoring the daily diet status of patients.
[0006] In order to solve the above problems, the specific technical solutions adopted by the present invention are as follows:
[0007] According to one aspect of the present invention, a method for monitoring and alarming the diet of a patient in nephrology based on food ingredients is provided. The method for monitoring and alarming the diet of a patient in nephrology based on food ingredients comprises the following steps:
[0008] S1. Obtain the pre-prepared diet plan of the nephrology patients and determine the target values of the daily nutrient composition and nutrient content of the nephrology patients;
[0009] S2, identifying the food consumed by patients in the Department of Nephrology through food scanning technology, and determining the actual nutritional composition and nutritional content consumed by patients in the Department of Nephrology based on the food composition database;
[0010] S3, comparing the deviation between the actual ingested nutrients and nutrient content and the target value, and determining the alarm level based on the nutrient tree analysis method;
[0011] S4. Based on the determined alarm level, execute preset multi-level alarm measures.
[0012] Preferably, identifying the food ingested by the nephrology patient by food scanning technology and determining the nutrient components and nutrient contents actually ingested by the nephrology patient based on the food component database comprises the following steps:
[0013] S21. Collecting image information of food ingested by patients in the Department of Nephrology through intelligent scanning equipment;
[0014] S22, using an image recognition algorithm to analyze and process the collected image information, and identify the type, size, and cooking method of food ingested by the nephrology patient;
[0015] S23, determining the nutritional content of each nutrient component in the food ingested by the nephrology patient by querying the food component database according to the type and size of the food;
[0016] S24, based on the types, sizes and cooking methods of the food ingested by the patients of the Department of Nephrology, performing fluctuation analysis on the nutritional content of each nutritional component in the food ingested by the patients of the Department of Nephrology to obtain fluctuation values;
[0017] S25. Determine the nutrients and nutrient contents actually ingested by the nephrology patients based on the nutrient content of each nutrient in the food ingested by the nephrology patients and the obtained fluctuation value.
[0018] Preferably, based on the type, size and cooking method of the food ingested by the nephrology patients, performing fluctuation analysis on the nutritional content of each nutrient component in the food ingested by the nephrology patients, obtaining the fluctuation value comprises the following steps:
[0019] S241, collecting parameter data of various foods, the parameter data including food type, food size, food cooking method, and fluctuation value of content information of nutrient components of the food before and after cooking;
[0020] S242, classifying and arranging the collected parameter data of the food according to the type and size of the food to obtain a sample data set;
[0021] S243, using the FP-growth algorithm, analyzing the correlation between the food type, food size, food cooking method, and the fluctuation value of the content information of the nutrient components of the food before and after cooking, and establishing an association rule base;
[0022] S244. Based on the types, sizes and cooking methods of food ingested by nephrology patients, the fluctuation value of the nutritional content of each nutrient component in the food ingested by nephrology patients is determined through an association rule base.
[0023] Preferably, using the FP-growth algorithm to analyze the association between food type, food size, food cooking method and the fluctuation value of the content information of the nutrient components of the food before and after cooking, and establishing an association rule base includes the following steps:
[0024] S2431. Taking the fluctuation value of the nutritional content of food before and after cooking as the target item, and setting the minimum support and minimum confidence;
[0025] S2432. According to the obtained sample data set, count the occurrence frequency of each element in the sample data set and construct an FP tree;
[0026] S2433, starting from the root node of the FP tree, recursively search and generate frequent item sets, and determine the confidence of the association rule between each frequent item set and the target item;
[0027] S2434. According to the set minimum support and minimum confidence thresholds, the association rules related to the target item are screened out and an association rule library is constructed.
[0028] Preferably, starting from the root node of the FP tree, recursively searching and generating frequent item sets, and determining the confidence of the association rule between each frequent item set and the target item includes the following steps:
[0029] S24331, create an empty list for storing frequent item sets, and traverse the root node of the FP tree to search for frequent item sets in a recursive manner;
[0030] S24332, for each frequent item set, check whether it contains the target item, if it does, execute step S24333; if it does not, remove the frequent item set;
[0031] S24333. For a frequent item set including a target item, calculate the confidence of the association rule between the frequent item set and the target item.
[0032] Preferably, the calculation formula for calculating the confidence of the association rule between the frequent item set and the target item is:
[0033] ;
[0034] In the formula, C(A→B) represents the confidence of the association rule between the frequent item set A and the target item B;
[0035] P(A|B) represents the probability of the target item B appearing under the premise that the frequent item set A appears;
[0036] num(AB) represents the number of samples where frequent item set A and target item B appear simultaneously;
[0037] num(A) represents the number of samples where frequent itemset A appears.
[0038] Preferably, comparing the deviation between the actual ingested nutrients and nutrient contents and the target values, and determining the alarm level based on the nutrient tree analysis method comprises the following steps:
[0039] S31. Obtain risk factors for nutritional intake deviation in patients in the Department of Nephrology and construct a nutritional risk tree;
[0040] S32. Based on the constructed nutritional risk tree, analyze the impact and probability of different risk factors on nutritional intake deviation, and divide the risk factors into different risk levels;
[0041] S33. According to the risk level, set the alarm level and the alarm measures corresponding to the alarm level;
[0042] S34. Based on the deviation between the actual nutritional components and nutritional content and the target value, the alarm level is determined through risk assessment.
[0043] Preferably, based on the constructed nutritional risk tree, analyzing the influence degree and occurrence probability of different risk factors on nutritional intake deviation, and dividing the risk factors into different risk levels comprises the following steps:
[0044] S321, using the Delphi method to perform fuzzy evaluation on the failure probability of risk factors in the nutrition risk tree to obtain fuzzy probability data;
[0045] S322. Calculate the probability of occurrence of nutritional intake deviation and the probability importance of each risk factor using triangular fuzzy number method;
[0046] S323. Risk factors are classified into different risk levels according to the probability importance and failure probability of the underlying events.
[0047] Preferably, the method of calculating the probability of occurrence of nutritional intake deviation and the probability importance of each risk factor using the triangular fuzzy number method includes the following steps:
[0048] S3221, using a defuzzification method of triangular fuzzy numbers to convert fuzzy probabilities into numerical probabilities;
[0049] S3222. Calculate the probability of occurrence of nutritional intake deviation based on the structure and logical relationship of the nutritional risk tree and the numerical probability of each risk factor;
[0050] S3223. By calculating the partial derivative of the probability of occurrence of nutritional intake deviation, the probability importance of each risk factor is obtained.
[0051] According to another aspect of the present invention, a diet monitoring and alarm system for patients in nephrology based on food ingredients is provided, and the diet monitoring and alarm system for patients in nephrology based on food ingredients comprises: a target value determination module, a food data acquisition module, an alarm level setting module and an alarm measure implementation module, and the target value determination module, the food data acquisition module, the alarm level setting module and the alarm implementation module are connected in sequence;
[0052] A target value determination module is used to obtain a pre-formulated diet plan for a nephrology patient and determine the target values of the nutrient composition and nutrient content of the nephrology patient's daily intake;
[0053] A food data acquisition module is used to identify the food ingested by the nephrology patients through food scanning technology, and determine the nutrients and nutritional content actually ingested by the nephrology patients based on the food composition database;
[0054] An alarm level setting module is used to compare the deviation between the actual ingested nutrients and nutrient content and the target value, and determine the alarm level based on the nutrient tree analysis method;
[0055] The alarm measure implementation module is used to execute preset multi-level alarm measures based on the determined alarm level.
[0056] Compared with the prior art, the present invention provides a method and system for monitoring and alarming the diet of patients in the Department of Nephrology based on food ingredients, which has the following beneficial effects:
[0057] (1) The present invention can realize personalized diet monitoring according to the pre-established diet plan and target value of each nephrology patient. Through food scanning technology, the food ingested by the patient can be identified in real time, so as to timely obtain the actual ingested nutrients and nutritional content, making the monitoring more timely and accurate. By comparing the deviation between the actual ingested nutrients and nutritional content and the target value, the problems and deficiencies in the patient's diet can be quickly identified. Based on the determined alarm level, the preset multi-level alarm measures are executed, and different intervention measures can be taken according to the severity of the deviation, thereby improving the flexibility and pertinence of management.
[0058] (2) The present invention collects image information through intelligent scanning equipment and analyzes food using image recognition algorithms. It can accurately identify the type, size and cooking method of food ingested by patients, thereby accurately obtaining the ingested nutrients and nutritional content. By querying the food ingredient database, the nutritional ingredient information of various foods can be obtained, covering a variety of foods, making monitoring more comprehensive. Through fluctuation analysis, the fluctuation of nutritional ingredients in food before and after cooking can be understood, and the changes in nutritional content of food can be further understood, which is helpful for more accurate evaluation of the ingested nutrients. The FP-growth algorithm is used to analyze the correlation between the type, size and cooking method of food and the fluctuation value of nutritional ingredients, and an association rule base is established, which is helpful for a deeper understanding of the changing law of nutritional content of food and improves the depth and accuracy of data analysis.
[0059] (3) The present invention establishes a nutritional risk tree, comprehensively considers the impact of various risk factors on nutritional intake deviation, uses the Delphi method to evaluate the failure probability of risk factors, and combines the triangular fuzzy number method to calculate the probability importance, thereby improving the objectivity and scientificity of the evaluation and reducing the influence of subjective factors. By using the defuzzification method of triangular fuzzy numbers to convert fuzzy probabilities into numerical probabilities, combined with the structure and logical relationship of the nutritional risk tree, the probability of occurrence of nutritional intake deviation and the probability importance of each risk factor are calculated, which can more accurately evaluate the probability of occurrence of nutritional intake deviation and the importance of each factor. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0061] Figure 1 is a flow chart of a method for monitoring and alarming a diet of a patient in a nephrology department based on food composition according to an embodiment of the present invention;
[0062] Figure 2 is a principle block diagram of a diet monitoring and alarm system for patients in the Department of Nephrology based on food ingredients according to an embodiment of the present invention;
[0063] Figure 3 FIG. 4 is a schematic diagram showing the structure of a computer device according to an embodiment of the present invention.
[0064] In the figure:
[0065] 1. Target value determination module; 2. Food data acquisition module; 3. Alarm level setting module; 4. Alarm measure implementation module. DETAILED DESCRIPTION
[0066] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0067] According to an embodiment of the present invention, a method and system for monitoring and alarming the diet of patients in nephrology based on food composition are provided.
[0068] The present invention is further described with reference to the accompanying drawings and specific embodiments. Figure 1 As shown, according to one embodiment of the present invention, a method for monitoring and alarming the diet of a patient in nephrology based on food ingredients is provided. The method for monitoring and alarming the diet of a patient in nephrology based on food ingredients comprises the following steps:
[0069] S1. Obtain the pre-prepared diet plan of the nephrology patients and determine the target values of the daily nutrient composition and nutrient content of the nephrology patients;
[0070] Specifically, obtaining a pre-prepared diet plan for a nephrology patient and determining the target values for the daily nutrient composition and nutrient content of the nephrology patient include the following steps:
[0071] By collecting the patient's medical history, physical examination results, and laboratory test data (such as blood tests, urine analysis, etc.), the doctor or nutritionist needs to make a detailed assessment of the patient's overall condition, including renal function, nutritional status, complications, etc.;
[0072] The basal metabolic rate (BMR) is used to estimate the total daily energy requirements of nephrology patients, including the intake of protein, carbohydrates, fat, vitamins, and minerals, based on the patient's age, sex, height, weight, and activity level.
[0073] For example, to determine the target values of daily nutrient composition and nutrient content for patients in the Department of Nephrology, the following steps can be followed:
[0074] Assume that Mr. Zhang is a chronic kidney disease patient, aged 55, 170 cm tall, 75 kg in weight, in stage II nephropathy, with mild renal impairment, but overall good nutritional status. He usually has a moderate activity level and no serious complications;
[0075] The doctor or dietitian will collect Mr. Zhang's medical history, physical examination results, and recent blood and urine test reports, which will show his kidney function indicators (such as creatinine clearance), hemoglobin level, electrolyte balance, etc.;
[0076] Based on Mr. Zhang's age, gender, height and weight, the basal metabolic rate formula was used to preliminarily estimate his basic energy needs. Then, adjustments were made based on his moderate activity level to determine his total daily energy needs. At the same time, considering that Mr. Zhang's renal function was slightly impaired, an appropriate amount of high-quality protein was recommended to maintain muscle function and body repair needs.
[0077] S2, identifying the food consumed by patients in the Department of Nephrology through food scanning technology, and determining the actual nutritional composition and nutritional content consumed by patients in the Department of Nephrology based on the food composition database;
[0078] As a preferred embodiment, identifying the food ingested by the nephrology patient by food scanning technology and determining the nutrient composition and nutrient content actually ingested by the nephrology patient based on the food composition database includes the following steps:
[0079] S21. Collecting image information of food ingested by patients in the Department of Nephrology through intelligent scanning equipment;
[0080] It should be noted that for patients in the Department of Nephrology, when eating, they need to place the food on the scanning area of the intelligent scanning device, and the intelligent scanning device will automatically collect the image information of the food, which includes the type, size, shape, color and other characteristics of the food;
[0081] S22, using an image recognition algorithm to analyze and process the collected image information, and identify the type, size, and cooking method of food ingested by the nephrology patient;
[0082] Specifically, using image recognition algorithms to analyze and process the collected image information and identify the type, size, and cooking method of food ingested by patients in the Department of Nephrology includes the following steps:
[0083] Build a large dataset of images of various foods and annotate them in detail. The annotations should include the type of food, size (such as weight or volume), and cooking method;
[0084] Use image recognition algorithms (such as convolutional neural networks (CNNs)) to extract features from images, including color, texture, shape, etc.
[0085] Train a deep learning model, such as a convolutional neural network (CNN), using the labeled dataset to learn the association between image features and food type, size, and cooking method;
[0086] Preprocess the acquired images, including resizing, cropping, denoising, color correction, etc.;
[0087] The preprocessed images are fed into the trained model, which will output predictions about the type, size, and cooking method of the food. At the same time, the size of the food (such as weight or volume) can be further estimated through image segmentation and measurement techniques.
[0088] S23, determining the nutritional content of each nutrient component in the food ingested by the nephrology patient by querying the food component database according to the type and size of the food;
[0089] Specifically, according to the type and size of food, by querying the food composition database, determining the nutritional content of each nutrient in the food consumed by the nephrology patient includes the following steps:
[0090] Establish a comprehensive and accurate food composition database that contains basic information about various foods, such as type, size (e.g. unit weight or volume), and content of various nutrients, such as protein, fat, carbohydrates, vitamins and minerals;
[0091] According to the identified food types and sizes, the corresponding nutritional information is searched in the food composition database. For each food, the total amount of various nutrients contained in the food ingested by the nephrology patient is calculated based on the nutritional content per unit weight or volume and the actual ingested weight or volume;
[0092] The nutritional components of all ingested foods are summarized to obtain the patient's total nutritional intake for one meal or one day.
[0093] S24, based on the types, sizes and cooking methods of the food ingested by the patients of the Department of Nephrology, performing fluctuation analysis on the nutritional content of each nutritional component in the food ingested by the patients of the Department of Nephrology to obtain fluctuation values;
[0094] As a preferred embodiment, based on the type, size and cooking method of the food ingested by the nephrology patients, the fluctuation analysis of the nutritional content of each nutrient component in the food ingested by the nephrology patients is performed to obtain the fluctuation value, including the following steps:
[0095] S241, collecting parameter data of various foods, the parameter data including food type, food size, food cooking method, and fluctuation value of content information of nutrient components of the food before and after cooking;
[0096] Specifically, for example, 100 grams of chicken is collected and the cooking method is stewing. The nutritional content before cooking (raw chicken) is: about 20 grams of protein, about 5 grams of fat, about 0 grams of carbohydrates, about 50 milligrams of sodium, and about 200 milligrams of potassium; the nutritional content fluctuations after cooking (cooked chicken) are: the protein fluctuation range may be smaller because the protein is relatively stable during the cooking process, assuming the fluctuation value is ±1 gram; the fat fluctuation range may be larger due to the possibility of some fat loss during the cooking process, assuming the fluctuation value is ±2 grams; the carbohydrates may increase a small amount due to the addition of seasonings and cooking water, but the fluctuation value is usually small, assuming the fluctuation value is ±0.5 grams; the sodium content will increase significantly due to the addition of seasonings such as salt and soy sauce, and the fluctuation range is larger, assuming the fluctuation value is ±50 milligrams; the potassium content may be relatively stable during the cooking process, with a smaller fluctuation range, assuming the fluctuation value is ±10 milligrams.
[0097] S242, classifying and arranging the collected parameter data of the food according to the type and size of the food to obtain a sample data set;
[0098] S243, using the FP-growth algorithm, analyzing the correlation between the food type, food size, food cooking method, and the fluctuation value of the content information of the nutrient components of the food before and after cooking, and establishing an association rule base;
[0099] It should be noted that the FP-growth algorithm is an efficient data mining algorithm for discovering frequent item sets in databases. It is the abbreviation of "Frequent Pattern Growth" and is mainly used in scenarios such as association rule learning. Compared with other traditional frequent item set mining algorithms (such as the Apriori algorithm), the advantage of the FP-growth algorithm is that it does not require the generation process of candidate sets, thereby greatly reducing the computational complexity and running time.
[0100] As a preferred implementation, the FP-growth algorithm is used to analyze the correlation between food type, food size, food cooking method and the fluctuation value of the content information of the nutrient components of the food before and after cooking, and the establishment of an association rule base includes the following steps:
[0101] S2431. Taking the fluctuation value of the nutritional content of food before and after cooking as the target item, and setting the minimum support and minimum confidence;
[0102] It should be noted that the minimum support refers to the minimum frequency threshold that appears in the sample data set. It is used to filter frequent item sets, that is, those item sets whose frequency of occurrence is not less than the minimum support. The minimum confidence is used to measure the strength of the association rule, that is, the confidence level of the association rule. The minimum confidence refers to the probability threshold that the conclusion item also occurs when the condition item occurs in the association rule. Generally speaking, the higher the minimum confidence, the stricter the credibility requirement of the association rule, and only highly relevant rules will be considered meaningful.
[0103] S2432. According to the obtained sample data set, count the occurrence frequency of each element in the sample data set and construct an FP tree;
[0104] It should be noted that for each element in the data set (including food type, size, cooking method, and target item - nutrient content information fluctuation value), counting its occurrence times can be achieved by using a hash table (or dictionary), where the key is the element and the value is the number of occurrences.
[0105] Then create an empty FP tree, including a root node, sort the item set in descending order according to the global frequency of the element in the data set, start from the root node, traverse down the tree, and if a node on the path matches the current item, increase the count of the node; otherwise, create a new node and update the count. In the FP tree, for each newly added node, if there is a node with the same element prefix, add a link between the new node and the prefix node.
[0106] S2433, starting from the root node of the FP tree, recursively search and generate frequent item sets, and determine the confidence of the association rule between each frequent item set and the target item;
[0107] As a preferred implementation, starting from the root node of the FP tree, recursively searching and generating frequent item sets, and determining the confidence of the association rule between each frequent item set and the target item includes the following steps:
[0108] S24331, create an empty list for storing frequent item sets, and traverse the root node of the FP tree to search for frequent item sets in a recursive manner;
[0109] It should be noted that when traversing the FP tree, a recursive function is used to search for frequent item sets. The recursive function will perform the following steps:
[0110] Check the support of the current node (i.e., the count in the node). If the support is lower than the set minimum support threshold, stop searching the branch because all item sets under the branch cannot meet the minimum support requirement.
[0111] If the support of the current node meets the requirements, add the current item to the item set being constructed;
[0112] For each child node of the current node, recursively call the search function and use the child node as the new current node;
[0113] When recursively returning, the constructed itemsets are added to the list of frequent itemsets and the last item is removed from the itemset if necessary to continue constructing itemsets at the parent node level.
[0114] S24332, for each frequent item set, check whether it contains the target item, if it does, execute step S24333; if it does not, remove the frequent item set;
[0115] S24333. For a frequent item set including a target item, calculate the confidence of the association rule between the frequent item set and the target item.
[0116] Specifically, the calculation formula for calculating the confidence of the association rule between the frequent item set and the target item is:
[0117] ;
[0118] In the formula, C(A→B) represents the confidence of the association rule between the frequent item set A and the target item B;
[0119] P(A|B) represents the probability of the target item B appearing under the premise that the frequent item set A appears;
[0120] num(AB) represents the number of samples where frequent item set A and target item B appear simultaneously;
[0121] num(A) represents the number of samples where frequent itemset A appears.
[0122] S2434. According to the set minimum support and minimum confidence thresholds, the association rules related to the target item are screened out and an association rule library is constructed.
[0123] It should be noted that association rules are generated for each frequent item set according to the set minimum confidence threshold. The form of association rules is usually F→G, where F represents the condition item and G represents the conclusion item. When generating association rules, it is necessary to ensure that the confidence of the rule is not lower than the minimum confidence threshold. Filter out association rules related to the target item. These association rules should involve the target item and have a certain degree of credibility. According to the set minimum confidence threshold, remove rules with confidence lower than the threshold.
[0124] S244. Based on the types, sizes and cooking methods of food ingested by nephrology patients, the fluctuation value of the nutritional content of each nutrient component in the food ingested by nephrology patients is determined through an association rule base.
[0125] It should be noted that, according to the type, size and cooking method of the food, the relevant association rules are retrieved from the association rule library, and the retrieved association rules are applied to the corresponding food. According to the condition items of the rule, the fluctuation value of each nutrient component in the food is determined, and according to the applied association rules, the fluctuation value of each nutrient component in the food is calculated.
[0126] For example, the following is a detailed description of the working principle or operation method of determining the fluctuation value of the nutritional content of each nutrient component in the food consumed by patients in the Department of Nephrology through the association rule base in the actual process, as follows:
[0127] Consider a nephrology patient whose daily diet includes the following foods: stir-fried greens and rice;
[0128] Gather basic information about these foods, including type, size, and cooking method;
[0129] For example, stir-fried vegetables is half a bowl of vegetables, stir-fried in oil; rice is one bowl of cooked rice.
[0130] According to the type, size and cooking method of food, the relevant association rules are retrieved from the association rule library. For example, the carbohydrate content fluctuation value of stir-fried greens is ±5 grams; the carbohydrate content fluctuation value of a bowl of cooked rice is ±40 grams;
[0131] The retrieved association rules are applied to the corresponding foods. For stir-fried vegetables, the fluctuation range of the carbohydrate content is determined to be ±5 grams; for rice, the fluctuation range of the carbohydrate content is determined to be ±40 grams.
[0132] S25. Determine the nutrients and nutrient contents actually ingested by the nephrology patients based on the nutrient content of each nutrient in the food ingested by the nephrology patients and the obtained fluctuation value.
[0133] S3, comparing the deviation between the actual ingested nutrients and nutrient content and the target value, and determining the alarm level based on the nutrient tree analysis method;
[0134] As a preferred embodiment, comparing the deviation between the actual ingested nutrients and nutrient contents and the target values, and determining the alarm level based on the nutrient tree analysis method comprises the following steps:
[0135] S31. Obtain risk factors for nutritional intake deviation in patients in the Department of Nephrology and construct a nutritional risk tree;
[0136] It should be noted that the main idea of the nutritional risk tree using the fault tree analysis method is to analyze the risk factors of nutritional intake deviation, find out the basic events that lead to risks and the logical relationship between events, and then build a comprehensive and accurate nutritional risk tree. The fault tree analysis method is a top-down deductive failure analysis method that uses Boolean logic to combine low-order events and analyze undesirable states. In the construction of the nutritional risk tree, the basic idea of the fault tree analysis method is reflected.
[0137] Specifically, the risk factors for nutritional intake deviation in nephrology patients are dietary factors, including: choice of food types, eating speed, frequency of meals, excess or deficiency of a single food or nutrient, etc.
[0138] In addition, the steps to construct a nutritional risk tree are:
[0139] To determine the top event, the nutritional intake deviation of patients in the Department of Nephrology was taken as the top event;
[0140] Identify intermediate events, starting from the top event, and set the intermediate level as direct dietary factors that affect nutritional status, such as the choice of food types;
[0141] Analyze the underlying risk factors and conduct in-depth analysis of each intermediate event to identify specific eating habits or behaviors, such as eating speed and dining frequency;
[0142] Assessment and ranking: Rank and evaluate each risk factor according to the magnitude of its impact on nutritional status and the probability of its occurrence;
[0143] Construct a risk tree and build a complete nutrition risk tree model based on the hierarchical relationship and impact degree of risk factors.
[0144] S32. Based on the constructed nutritional risk tree, analyze the impact and probability of different risk factors on nutritional intake deviation, and divide the risk factors into different risk levels;
[0145] Based on the constructed nutritional risk tree, analyzing the impact and probability of different risk factors on nutritional intake deviation and dividing the risk factors into different risk levels includes the following steps:
[0146] S321, using the Delphi method to perform fuzzy evaluation on the failure probability of risk factors in the nutrition risk tree to obtain fuzzy probability data;
[0147] Specifically, the Delphi method is used to conduct fuzzy evaluation on the failure probability of risk factors in the nutritional risk tree, and obtaining fuzzy probability data includes the following steps:
[0148] For each risk factor in the nutritional risk tree, a detailed questionnaire is designed, which includes a description of the risk factor, possible failure scenarios, and an evaluation range or fuzzy set of failure probability required of the experts;
[0149] Questionnaires are distributed to the expert team and their feedback is collected. After the first round of feedback is collected, the opinions of the experts are summarized and analyzed to form preliminary results. Then, the preliminary results are fed back to the experts for a second round of survey so that they can adjust their assessments based on the opinions of other experts. This process can be repeated for multiple rounds until the opinions of the experts are consistent.
[0150] Collect experts' feedback on the questionnaire and summarize preliminary fuzzy probability data.
[0151] S322. Calculate the probability of occurrence of nutritional intake deviation and the probability importance of each risk factor using triangular fuzzy number method;
[0152] As a preferred embodiment, the method of calculating the probability of occurrence of nutritional intake deviation and the probability importance of each risk factor using the triangular fuzzy number method includes the following steps:
[0153] S3221, using a defuzzification method of triangular fuzzy numbers to convert fuzzy probabilities into numerical probabilities;
[0154] It should be noted that the defuzzification method of triangular fuzzy numbers to convert fuzzy probability into numerical probability is a key step in processing fuzzy data. Triangular fuzzy numbers are a commonly used fuzzy number representation method, which uses three numerical values (minimum value a, most likely value m, maximum value b) to describe the probability distribution of a fuzzy concept or event.
[0155] Defuzzification refers to the process of extracting precise values from fuzzy information. For triangular fuzzy numbers, a commonly used defuzzification method is the centroid method, which calculates the centroid position of the triangular fuzzy number to obtain a clear probability value. The centroid method is based on the calculation of the central mass point of the triangle. For a triangular fuzzy number (a, m, b), the calculation formula for the numerical probability P after defuzzification is: P=(a+m+b) / 3.
[0156] For example, when there is a fuzzy probability assessment, such as the probability of an event occurring is (0.2, 0.5, 0.8), by calculating (0.2+0.5+0.8) / 3=0.5, the defuzzified numerical probability is 0.5, or in other words, the probability of this event occurring is 50%.
[0157] S3222. Calculate the probability of occurrence of nutritional intake deviation based on the structure and logical relationship of the nutritional risk tree and the numerical probability of each risk factor;
[0158] It should be noted that the nutritional risk tree is usually a tree structure composed of multiple risk factors (bottom events) connected by logical relationships (such as AND, OR, NOT, etc.), in which the root event represents the occurrence of nutritional intake deviation. In order to calculate the probability of occurrence of nutritional intake deviation, the corresponding formula in probability theory is used to calculate the probability of occurrence of the root event based on the logical relationship in the nutritional risk tree.
[0159] For example, suppose there are two risk factors in the nutrition risk tree, denoted as D and E, and their numerical probabilities are P(D) and P(E), respectively. These two risk factors are connected to the nutrition intake deviation (denoted as Q) through an "or" relationship. Under the "or" relationship, the probability of occurrence of nutrition intake deviation P(Q) can be calculated by the following formula: P(Q)=P(D)+P(E)-P(D)*P(E);
[0160] This formula takes into account the probability that D and E do not occur at the same time and avoids double counting;
[0161] If the risk factors are connected by an "and" relationship, then the probability of nutritional intake deviation P(Q) is the product of the probabilities of each risk factor: P(Q)=P(D)*P(E);
[0162] In actual situations, the nutritional risk tree may contain more risk factors and more complex logical relationships. At this time, it is necessary to gradually apply the formulas in probability theory to calculate the probability of occurrence of root events based on the specific structure of the tree.
[0163] S3223. By calculating the partial derivative of the probability of occurrence of nutritional intake deviation, the probability importance of each risk factor is obtained.
[0164] It should be noted that by calculating the partial derivative of the probability of nutritional intake deviation, the probability importance of each risk factor can be obtained. The probability importance measures the marginal impact of each risk factor on the probability of nutritional intake deviation, that is, the degree of change in the probability of nutritional intake deviation when the probability of the risk factor changes. In probability theory, partial derivatives are used to describe the rate of change of a function with respect to one of its variables. For the probability function of nutritional intake deviation, its partial derivative with respect to the probability of each risk factor can be calculated to obtain the probability importance of each risk factor.
[0165] S323. Risk factors are classified into different risk levels according to the probability importance and failure probability of the underlying events.
[0166] Specifically, according to the probability importance and failure probability of the bottom event, the risk factors are divided into different risk levels, including the following steps:
[0167] The probability importance is divided into three levels: high, medium, and low, and the failure probability is also divided into corresponding levels;
[0168] The comprehensive risk index of each risk factor is calculated by weighted summing the probability importance and failure probability;
[0169] According to the value of the comprehensive risk index, risk factors are divided into different risk levels. For example, a threshold can be set to classify risk factors with a comprehensive risk index higher than a certain threshold as a high risk level, risk factors with a comprehensive risk index lower than another threshold as a low risk level, and risk factors between the two as a medium risk level.
[0170] S33. According to the risk level, set the alarm level and the alarm measures corresponding to the alarm level;
[0171] It should be noted that the corresponding alarm level is set based on the risk level:
[0172] For example, a red alarm corresponds to a high risk level, which means immediate action is required; a yellow alarm corresponds to a medium risk level, requiring further assessment and possible preventive measures; and a green alarm corresponds to a low risk level, requiring routine monitoring and management.
[0173] S34. Based on the deviation between the actual nutritional components and nutritional content and the target value, the alarm level is determined through risk assessment.
[0174] It should be noted that based on the deviation between the actual ingested nutrients and nutrient content and the target value, determining the alarm level through risk assessment includes the following steps:
[0175] Determine the deviation value of each nutrient based on the actual nutrient intake and nutrient content and the determined target value;
[0176] Based on the deviation value of each nutrient component, determine the influencing factors that affect the deviation of the nutrient component intake;
[0177] Conduct quantitative assessment on each identified influencing factor and calculate the comprehensive risk index of the influencing factor;
[0178] The risk level of the deviation value is determined based on the comprehensive risk index, and the alarm level of the deviation value of each nutrient component is determined according to the pre-set alarm level.
[0179] S4. Based on the determined alarm level, execute preset multi-level alarm measures.
[0180] Specifically, for each alarm level, set the corresponding alarm measures, for example:
[0181] High-risk levels require immediate action, including urgent notification of medical staff or family members to intervene and adjust the patient's diet to ensure timely supplementation and adjustment of nutritional intake;
[0182] The medium-risk level requires further evaluation and possible preventive measures, through which the system reminds patients and their families to pay attention to their dietary intake and provides appropriate nutritional advice and management measures to reduce the patient's nutritional intake deviation.
[0183] The low-risk level ensures balanced nutritional intake through regular nutritional intake assessments, timely detection of deviations and adjustments.
[0184] It should be noted that once the alarm level is determined, the corresponding actions can be taken according to the preset alarm measures. After the alarm measures are implemented, the patient's nutritional intake needs to be continuously monitored, and the effectiveness of the measures should be adjusted according to the feedback. If the alarm level changes, the alarm measures should be adjusted in time to adapt to the new risk situation. For each alarm and its corresponding measures, detailed records and summaries should be made. This helps to analyze the cause of the alarm, evaluate the effectiveness of the measures, and provide experience and reference for future nutritional intake management.
[0185] like Figure 2 As shown, according to another embodiment of the present invention, a diet monitoring and alarm system for patients in nephrology based on food ingredients is provided, and the diet monitoring and alarm system for patients in nephrology based on food ingredients comprises: a target value determination module 1, a food data acquisition module 2, an alarm level setting module 3 and an alarm measure implementation module 4, and the target value determination module 1, the food data acquisition module 2, the alarm level setting module 3 and the alarm implementation module 4 are connected in sequence;
[0186] The target value determination module 1 is used to obtain the pre-formulated diet plan of the nephrology patient and determine the target value of the daily intake of nutrients and nutrient content of the nephrology patient;
[0187] The food data acquisition module 2 is used to identify the food ingested by the nephrology patients through food scanning technology, and determine the nutrients and nutritional content actually ingested by the nephrology patients based on the food composition database;
[0188] The alarm level setting module 3 is used to compare the deviation between the actual ingested nutrients and nutrient contents and the target values, and determine the alarm level based on the nutrient tree analysis method;
[0189] The alarm measure implementation module 4 is used to execute preset multi-level alarm measures based on the determined alarm level.
[0190] Figure 3An embodiment of a computer device of the present invention is shown. The computer device may be a server, and the computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store static information and dynamic information data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the steps in the above method embodiment are implemented.
[0191] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0192] In addition, the present invention also provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiment when executing the computer program.
[0193] In addition, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiment are implemented.
[0194] In summary, with the help of the above-mentioned technical scheme of the present invention, the present invention can realize personalized diet monitoring according to the pre-formulated diet plan and target value of each nephrology patient. Through food scanning technology, the food ingested by the patient can be identified in real time, so as to timely obtain the actual ingested nutrients and nutritional content, making the monitoring more timely and accurate, and comparing the deviation between the actual ingested nutrients and nutritional content and the target value, the problems and deficiencies in the patient's diet can be quickly identified, and the preset multi-level alarm measures can be executed based on the determined alarm level. Different intervention measures can be taken according to the severity of the deviation, thereby improving the flexibility and pertinence of management; the present invention collects image information through an intelligent scanning device and analyzes food using an image recognition algorithm, so as to accurately identify the type, size and cooking method of food ingested by the patient, so as to accurately obtain the ingested nutrients and nutritional content, and by querying the food ingredient database, the nutritional ingredient information of various foods can be obtained, covering a variety of foods, making the monitoring more comprehensive, and through fluctuation analysis The analysis can understand the fluctuation of the nutritional components of food before and after cooking, further understand the changes in the nutritional content of food, and help to more accurately evaluate the nutritional components ingested. The FP-growth algorithm is used to analyze the correlation between the type, size and cooking method of food and the fluctuation value of the nutritional components, and establish an association rule base, which is helpful to more deeply understand the law of changes in the nutritional content of food, and improve the depth and accuracy of data analysis. The present invention establishes a nutritional risk tree, comprehensively considers the influence of various risk factors on nutritional intake deviation, uses the Delphi method to evaluate the failure probability of risk factors, and combines the triangular fuzzy number method to calculate the probability importance, thereby improving the objectivity and scientificity of the evaluation and reducing the influence of subjective factors. The defuzzification method of triangular fuzzy numbers is used to convert fuzzy probability into numerical probability, and the probability of occurrence of nutritional intake deviation and the probability importance of each risk factor are calculated in combination with the structure and logical relationship of the nutritional risk tree, so as to more accurately evaluate the probability of occurrence of nutritional intake deviation and the importance of each factor.
[0195] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) containing computer-usable program code.
[0196] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A diet monitoring and alarm method for patients in nephrology based on food composition, It is characterized in that The method for monitoring and alarming the diet of patients in the Department of Nephrology based on food composition comprises the following steps: S1. Obtain the pre-prepared diet plan of the nephrology patients and determine the target values of the daily nutrient composition and nutrient content of the nephrology patients; S2, identifying the food consumed by patients in the Department of Nephrology through food scanning technology, and determining the actual nutritional composition and nutritional content consumed by patients in the Department of Nephrology based on the food composition database; S3, comparing the deviation between the actual ingested nutrients and nutrient content and the target value, and determining the alarm level based on the nutrient tree analysis method; S4. Based on the determined alarm level, executing preset multi-level alarm measures; The method of identifying the food ingested by the nephrology patient by using the food scanning technology and determining the nutrient components and nutrient contents actually ingested by the nephrology patient based on the food component database comprises the following steps: S21. Collecting image information of food ingested by patients in the Department of Nephrology through intelligent scanning equipment; S22, using an image recognition algorithm to analyze and process the collected image information, and identify the type, size, and cooking method of food ingested by the nephrology patient; S23, determining the nutritional content of each nutrient component in the food ingested by the nephrology patient by querying the food component database according to the type and size of the food; S24, based on the types, sizes and cooking methods of the food ingested by the patients of the Department of Nephrology, performing fluctuation analysis on the nutritional content of each nutritional component in the food ingested by the patients of the Department of Nephrology to obtain fluctuation values; S25, determining the nutrient components and nutrient contents actually ingested by the nephrology patient based on the nutrient content of each nutrient component in the food ingested by the nephrology patient and the obtained fluctuation value; The method of performing fluctuation analysis on the nutritional content of each nutritional component in the food consumed by the patients of the Department of Nephrology based on the type, size and cooking method of the food consumed by the patients of the Department of Nephrology to obtain the fluctuation value comprises the following steps: S241, collecting parameter data of various foods, wherein the parameter data includes food type, food size, food cooking method, and fluctuation value of content information of nutrient components of the food before and after cooking; S242, classifying and arranging the collected parameter data of the food according to the type and size of the food to obtain a sample data set; S243, using the FP-growth algorithm, analyzing the correlation between the food type, food size, food cooking method, and the fluctuation value of the content information of the nutrient components of the food before and after cooking, and establishing an association rule base; S244, based on the types, sizes and cooking methods of the food ingested by the patients of the Department of Nephrology, determining the fluctuation value of the nutritional content of each nutritional component in the food ingested by the patients of the Department of Nephrology through an association rule base; The method of using the FP-growth algorithm to analyze the correlation between food type, food size, food cooking method and the fluctuation value of the content information of the nutrient components of the food before and after cooking, and establishing an association rule base includes the following steps: S2431. Taking the fluctuation value of the nutritional content of food before and after cooking as the target item, and setting the minimum support and minimum confidence; S2432. According to the obtained sample data set, count the occurrence frequency of each element in the sample data set and construct an FP tree; S2433, starting from the root node of the FP tree, recursively search and generate frequent item sets, and determine the confidence of the association rule between each frequent item set and the target item; S2434, according to the set minimum support and minimum confidence thresholds, filter out association rules related to the target item and build an association rule library; Starting from the root node of the FP tree, recursively searching and generating frequent item sets, and determining the confidence of the association rule between each frequent item set and the target item includes the following steps: S24331, create an empty list for storing frequent item sets, and traverse the root node of the FP tree to search for frequent item sets in a recursive manner; S24332, for each frequent item set, check whether it contains the target item, if it does, execute step S24333; if it does not, remove the frequent item set; S24333. For a frequent item set including a target item, calculating the confidence of the association rule between the frequent item set and the target item; The calculation formula for calculating the confidence of the association rule between the frequent item set and the target item is: ; In the formula, C(A→B) represents the confidence of the association rule between the frequent item set A and the target item B; P(A|B) represents the probability of the target item B appearing under the premise that the frequent item set A appears; num(AB) represents the number of samples where frequent item set A and target item B appear simultaneously; num(A) represents the number of samples where frequent itemset A appears; The method of comparing the deviation between the actual ingested nutrients and nutrient contents and the target values and determining the alarm level based on the nutrient tree analysis method comprises the following steps: S31. Obtain risk factors for nutritional intake deviation in patients in the Department of Nephrology and construct a nutritional risk tree; S32. Based on the constructed nutritional risk tree, analyze the impact and probability of different risk factors on nutritional intake deviation, and divide the risk factors into different risk levels; S33. According to the risk level, set the alarm level and the alarm measures corresponding to the alarm level; S34, determining the alarm level through risk assessment based on the deviation between the actual ingested nutrients and nutrient content and the target value; The method of analyzing the influence degree and occurrence probability of different risk factors on nutritional intake deviation based on the constructed nutritional risk tree and classifying the risk factors into different risk levels includes the following steps: S321, using the Delphi method to perform fuzzy evaluation on the failure probability of risk factors in the nutrition risk tree to obtain fuzzy probability data; S322. Calculate the probability of occurrence of nutritional intake deviation and the probability importance of each risk factor using triangular fuzzy number method; S323. Classify risk factors into different risk levels according to the probability importance and failure probability of the bottom event; The method of calculating the occurrence probability of nutritional intake deviation and the probability importance of each risk factor by using the triangular fuzzy number method comprises the following steps: S3221, using a defuzzification method of triangular fuzzy numbers to convert fuzzy probabilities into numerical probabilities; S3222. Calculate the probability of occurrence of nutritional intake deviation based on the structure and logical relationship of the nutritional risk tree and the numerical probability of each risk factor; S3223. By calculating the partial derivative of the probability of occurrence of nutritional intake deviation, the probability importance of each risk factor is obtained.
2. A diet monitoring and alarm system for nephrology patients based on food ingredients, used to implement the diet monitoring and alarm method for nephrology patients based on food ingredients as described in claim 1, It is characterized in that The food composition-based diet monitoring and alarm system for patients in the Department of Nephrology includes: a target value determination module, a food data acquisition module, an alarm level setting module, and an alarm measure implementation module, and the target value determination module, the food data acquisition module, the alarm level setting module, and the alarm implementation module are connected in sequence; The target value determination module is used to obtain the pre-formulated diet plan of the nephrology patient and determine the target values of the nutrient components and nutrient contents of the nephrology patient's daily intake; The food data acquisition module is used to identify the food ingested by the nephrology patients through food scanning technology, and determine the nutrients and nutritional contents actually ingested by the nephrology patients based on the food composition database; The alarm level setting module is used to compare the deviation between the actual ingested nutrients and nutrient content and the target value, and determine the alarm level based on the nutrient tree analysis method; The alarm measure implementation module is used to execute preset multi-level alarm measures based on the determined alarm level.
