School dietary nutrition recommendation analysis method and system

Through a dietary recommendation model based on the basic food raw material library and collaborative filtration algorithm, combined with the nutritional analysis database, the dietary calculation error and personalized recommendation problems in the existing technology are solved, and scientific and personalized dietary recommendations are realized to meet students' nutritional needs. and allergic conditions.

CN119069076APending Publication Date: 2024-12-03上海昊育信息技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411100680.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the prior art, there are errors in schools' nutritional indicators of food raw materials by manually calculating, and it is difficult to achieve personalized dietary recommendations, which cannot effectively meet students' special nutritional needs and allergies.

Method used

A dietary recommendation model based on the basic food raw material library and collaborative filtration algorithm is adopted, and comprehensive calculations are combined with environmental factors to generate personalized diets, and fine-tune them through the nutritional analysis database to ensure that the diet meets preset requirements and students' allergic information.

Benefits of technology

It improves teachers' work efficiency and accuracy, and the recommended diet is more scientific and personalized. It can provide targeted recommendations based on students' allergies and picky eating conditions, enhancing the comprehensiveness of nutritional intake.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119069076A_ABST
    Figure CN119069076A_ABST
Patent Text Reader

Abstract

The invention provides a school diet nutrition recommendation analysis method and system. The method comprises the following steps: S1, generating school diet based on a diet recommendation model; s2, performing personalized adjustment on the generated school diet according to a preset requirement to obtain an adjusted school diet; s3, performing nutrition analysis on the adjusted school diet based on the nutrition analysis database, and performing fine adjustment on the current school diet according to a nutrition analysis result; wherein the diet recommendation model is based on a food raw material basic library, environmental factors are combined, and dietary nutrition personalized recommendation is realized by performing comprehensive measurement and calculation through a collaborative filtering algorithm; the nutrition analysis database comprises basic nutritional ingredients corresponding to the food, special nutritional ingredients which correspond to the food and meet preset requirements, and categories corresponding to the food.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of dietary nutrition intervention and management, and in particular to a school dietary nutrition recommendation analysis method and system. Background Art

[0002] In the prior art, schools manually calculate some nutritional indicators of food ingredients using Excel.

[0003] Since there are nearly 3,000 kinds of daily food ingredients, although there are books to record the ingredients, every time a nutritional analysis is done, dozens of ingredients need to be found and recorded in Excel. This process may have manual errors. When performing nutritional analysis calculations, the process involves many calculations and is prone to errors.

[0004] Patent document CN115292607A (application number: 202211033351.3) discloses a nutritional compliance judgment and dietary recommendation system based on an open personalized dietary database, which includes: a user information input module, which collects and records the user's basic personal information; a dietary intake entry module, which records or updates the user's dietary intake data for several consecutive days; an energy standard calculation module, which calculates the user's daily dietary energy requirement and the corresponding acceptable range of the three major macronutrient energy supply percentages; an actual energy intake calculation module, which calculates the user's actual daily average total energy intake and the actual three major macronutrient energy supply ratio; a compliance judgment module, which determines whether the user's diet complies with the standards; a dietary adjustment and recommendation module, which proposes multiple adjustment plans for the original dietary types and quantities for users to choose from. Summary of the invention

[0005] In view of the defects in the prior art, the object of the present invention is to provide a school meal nutrition recommendation analysis method and system.

[0006] A school dietary nutrition recommendation analysis method provided by the present invention comprises:

[0007] Step S1: Generate school meals based on the meal recommendation model;

[0008] Step S2: performing personalized adjustments to the generated school meals according to preset requirements to obtain adjusted school meals;

[0009] Step S3: Performing a nutritional analysis on the adjusted school meals based on the nutritional analysis database, and fine-tuning the current school meals according to the nutritional analysis results;

[0010] The dietary recommendation model is based on the basic library of food raw materials, combined with environmental factors, and uses collaborative filtering algorithms to perform comprehensive calculations to achieve personalized dietary nutrition recommendations;

[0011] The nutrition analysis database includes: basic nutritional components corresponding to foods, special nutritional components corresponding to foods that meet preset requirements, and categories corresponding to foods.

[0012] Preferably, step S1 comprises: initializing the school meal, and scoring each dish in the initialized school meal, retaining the dishes that meet the preset requirements, and replacing the dishes that do not meet the preset requirements, until each dish in the school meal meets the preset requirements;

[0013] X is the category of dishes, Y is the cardinality corresponding to different influencing factors, X Y +X Y +X Y +X Y +...=The rating of the dish in the current environment; among them, different influencing factors include meal cost, season and age group;

[0014] Set A as the peak value of the nutritional analysis value, Z as the bottom value of the nutritional analysis value, A-the nutrient of the dish = N, and determine whether N is less than Z. If it is less than Z, change the current dish, and if it is greater than Z, temporarily retain it; calculate N / Z, retain the dishes with N / Z values ​​greater than the preset value, and then make the final dish selection based on the score of the currently retained dishes.

[0015] Preferably, the step S2 adopts: performing personalized adjustment on the generated school meals according to the student allergy information to obtain adjusted school meals.

[0016] Preferably, the student allergy information includes: based on the student's historical allergy information, using a collaborative filtering algorithm to measure the allergy change process and regularly update the student's allergy information;

[0017] Represents the n-dimensional vector of student A to be updated; represents the n-dimensional vector of reference student B; wherein the n-dimensional vector includes n factors that affect allergy changes, including: age, birthday month, environment, other allergens, similar allergens, and whether it is a hereditary allergen;

[0018]

[0019] Among them, m represents the similarity; when the similarity m is within the preset range, it means that the reference student B is of reference value; when the similarity m is not within the preset range, it means that the reference student B has no reference value, and the reference student B is updated, and the trigger execution is repeated until the similarity m is within the preset range; and the allergy information of the student A to be updated is updated based on the reference student B.

[0020] Preferably, step S3 comprises:

[0021] Step S3.1: querying the nutrition information of the food in the current school meals based on the nutrition analysis database;

[0022] Step S3.2: Calculate the corresponding equivalent number of man-days according to the number of dining man-days;

[0023] Step S3.3: Calculate the dietary nutrition analysis data based on the queried food nutrition information in the school meals and the equivalent number of person-days;

[0024] Step S3.4: Compare the calculated dietary nutrition analysis data with the preset index range. If the dietary nutrition analysis data is not within the preset index range, adjust the current school diet;

[0025] The dietary nutrition analysis data include: daily consumption per person, average daily protein intake per person, average daily calorie intake per person, percentage of protein in the recommended intake, and percentage of calories in the recommended intake.

[0026] Preferably, the method further comprises: displaying in real time on a display screen the dietary nutrition analysis data calculated based on the current school diet.

[0027] A school dietary nutrition recommendation and analysis system provided by the present invention comprises:

[0028] Module M1: Generate school meals based on the dietary recommendation model;

[0029] Module M2: Personalize the generated school meals according to preset requirements to obtain adjusted school meals;

[0030] Module M3: Conduct nutritional analysis on the adjusted school meals based on the nutritional analysis database, and make fine adjustments to the current school meals according to the nutritional analysis results;

[0031] The dietary recommendation model is based on the basic library of food raw materials, combined with environmental factors, and uses collaborative filtering algorithms to perform comprehensive calculations to achieve personalized dietary nutrition recommendations;

[0032] The nutrition analysis database includes: basic nutritional components corresponding to foods, special nutritional components corresponding to foods that meet preset requirements, and categories corresponding to foods.

[0033] Preferably, the module M1 comprises: initializing the school meal, and scoring each dish in the initialized school meal, retaining the dishes that meet the preset requirements, and replacing the dishes that do not meet the preset requirements, until each dish in the school meal meets the preset requirements;

[0034] X is the category of dishes, Y is the cardinality corresponding to different influencing factors, X Y+X Y +X Y +X Y +...=The rating of the dish in the current environment; among them, different influencing factors include meal cost, season and age group;

[0035] Set A as the peak value of the nutritional analysis value, Z as the bottom value of the nutritional analysis value, A-the nutrient of the dish = N, and determine whether N is less than Z. If it is less than Z, change the current dish, and if it is greater than Z, temporarily retain it; calculate N / Z, retain the dishes with N / Z values ​​greater than the preset value, and then make the final dish selection based on the score of the currently retained dishes.

[0036] Preferably, the module M2 adopts: performing personalized adjustment on the generated school meals according to the student allergy information to obtain the adjusted school meals;

[0037] The student allergy information includes: based on the student's historical allergy information, using collaborative filtering algorithm to calculate the allergy change process, and regularly updating the student's allergy information;

[0038] Represents the n-dimensional vector of student A to be updated; represents the n-dimensional vector of reference student B; wherein the n-dimensional vector includes n factors that affect allergy changes, including: age, birthday month, environment, other allergens, similar allergens, and whether it is a hereditary allergen;

[0039]

[0040] Among them, m represents the similarity; when the similarity m is within the preset range, it means that the reference student B is of reference value; when the similarity m is not within the preset range, it means that the reference student B has no reference value, and the reference student B is updated, and the trigger execution is repeated until the similarity m is within the preset range; and the allergy information of the student A to be updated is updated based on the reference student B.

[0041] Preferably, the module M3 comprises:

[0042] Module M3.1: Query the nutritional information of foods in current school meals based on the nutrition analysis database;

[0043] Module M3.2: Calculate the corresponding equivalent man-days based on the number of dining man-days;

[0044] Module M3.3: Calculate dietary nutrition analysis data based on the queried food nutrition information in school meals and the equivalent number of person-days;

[0045] Module M3.4: Compare the calculated dietary nutrition analysis data with the preset indicator range. If the dietary nutrition analysis data is not within the preset indicator range, adjust the current school diet;

[0046] The dietary nutrition analysis data include: daily consumption per person, average daily protein intake per person, average daily calorie intake per person, percentage of protein in the recommended intake, and percentage of calories in the recommended intake.

[0047] Compared with the prior art, the present invention has the following beneficial effects:

[0048] 1. The present invention can improve teachers' work efficiency and accuracy, and the recommended diet is more scientific and targeted;

[0049] 2. The dietary nutrition analysis chart recommended by the present invention can help parents find problems more intuitively, and the dietary recipes are not only reasonable but also have the possibility of selection, and targeted recommendations can be made according to the students' allergies and picky eating conditions;

[0050] 3. The purpose of the present invention is to help teachers provide school nutrition analysis data and recommend meals at home based on school meals, so as to improve the comprehensiveness of students' nutrition intake. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0052] Figure 1 Flowchart of recommended analytical methods for school meal nutrition.

[0053] Figure 2 Schematic diagram of the base protein and calorie intake for different age groups.

[0054] Figure 3 A schematic diagram showing the calculation of differences, coefficients, etc. for different age groups and different nutrients. DETAILED DESCRIPTION

[0055] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0056] Example 1

[0057] According to the school dietary nutrition recommendation analysis method provided by the present invention, Figure 1 As shown, the following steps are included:

[0058] Step S1: Generate school meals based on the meal recommendation model;

[0059] Step S2: performing personalized adjustments to the generated school meals according to preset requirements to obtain adjusted school meals;

[0060] Step S3: Performing a nutritional analysis on the adjusted school meals based on the nutritional analysis database, and fine-tuning the current school meals according to the nutritional analysis results;

[0061] The dietary recommendation model is based on the basic library of food raw materials, combined with environmental factors, and uses collaborative filtering algorithms to perform comprehensive calculations to achieve personalized dietary nutrition recommendations;

[0062] The nutrition analysis database includes: basic nutritional components corresponding to foods, special nutritional components corresponding to foods that meet preset requirements, and categories corresponding to foods.

[0063] Specifically, the step S1 includes:

[0064] We recommend dietary nutrition based on season, evaluation, age group, ease of preparation, meal type, meal cost, nutritional analysis, etc. Specifically, we push dishes in different seasons based on the ingredients used to ensure that students do not eat out-of-season vegetables. We recommend suitable recipes for schools based on the children of different ages. For example, in kindergartens, we recommend different styles or different ingredients of the same ingredients for nursery classes, small classes, and medium classes, such as shredded rice and rice tubes. We will push dish information to schools every week, and try to avoid having more than 10 repeated dishes in a month.

[0065] The following calculation formula will be used in the recommendation:

[0066] X is the current category, Y is the base number, X Y +X Y +X Y +X Y +...=The rating of the dish in the current environment.

[0067] The base of Y is configured with 50% for food expenses, 20% for season, 40% for age group, etc.

[0068] Set A as the peak value of a nutritional analysis value, Z as the bottom value of a nutritional analysis value, A-dish (the dish will be brought into the current environment as a parameter for scoring and sorting, and the current dish will be given from high to low) this nutrient = N, determine whether N is less than Z, if it is less than Z, the dish will be replaced, if it is greater than Z, it will be temporarily retained, and the value of N / Z will be calculated. Different nutritional analysis results have different ranges. When there are multiple dishes to compare, the higher the value, the more suitable the current dish is, and the lower the value, the less suitable the current dish is. Generally, when launching a dish, there will be 5-10 dishes for comparison, and the final choice will be determined based on the ratio of the values.

[0069] Specifically, the step S2 includes: performing personalized adjustments to the generated school meals according to the student allergy information to obtain adjusted school meals.

[0070] First of all, for children with allergies, their allergens need to be identified and managed; mainly manage their food allergy information and automatically classify it; and record the historical record information of allergens in the students' annual files.

[0071] Students' allergens often change according to the environment and age. When parents check the allergen information of students, teachers need to update it in real time in the system. Specifically, based on the history of the development of students' allergens, the teacher can calculate the next allergy change of the child and the approximate time of the change, so as to inform parents and schools so that students can recheck their allergen information. This is to prevent students from accidentally coming into contact with new allergens and triggering allergic reactions, which can cause itching and redness of the skin at the mildest, or severe anaphylactic shock at the worst, threatening life safety.

[0072] Specifically, based on the students' historical allergy information, collaborative filtering algorithms are used to calculate the allergy change process and regularly update the students' allergy information;

[0073] Represents the n-dimensional vector of student A to be updated; represents the n-dimensional vector of reference student B; wherein the n-dimensional vector includes n factors that affect allergy changes, including: age, birthday month, environment, other allergens, similar allergens, and whether it is a hereditary allergen;

[0074]

[0075] Among them, m represents the similarity; when the similarity m is within the preset range, it means that the reference student B is of reference value; when the similarity m is not within the preset range, it means that the reference student B has no reference value, and the reference student B is updated, and the trigger execution is repeated until the similarity m is within the preset range; and the allergy information of the student A to be updated is updated based on the reference student B.

[0076] When the similarity result is 1, it means that the direction of the allergen is completely consistent; when the result is 0, it means that the allergen and the current historical allergen information have no reference; when the result is -1, it means that the historical data is completely opposite to the current data. Take the data between 0.7-1, and take the value from high to low, and push the relevant allergen development data to students.

[0077] Changes in allergens involve age, birthday month, environment, other allergens, similar allergens, whether it is a hereditary allergen, etc., which can be configured later. Currently, we use whether it is a hereditary allergen and age as examples for calculation.

[0078] In this embodiment, the child currently to be calculated is set to Set the comparison child to It is a hereditary allergy source, age 36 months; Infants are not genetic allergens, 50 months old;

[0079] Then i=0 indicates whether it is a hereditary allergen, i=1 indicates age, and i=2 indicates birth month.

[0080] Is it a genetic allergy source: If yes, score 0, if not, score 10. Current

[0081] Age score calculation: if the child is 0-7 years old (including 7 years old), then age in months*0.119=score (based on the result calculated by the system, and the coefficient can be adjusted according to the new calculation result later); if the child is 7-11 years old (including 11 years old), then age in months*0.1667=score (based on the result calculated by the system, and the coefficient can be adjusted according to the new calculation result later); if the child is 11~, then age in months*0.1041=score (based on the result calculated by the system, and the coefficient can be adjusted according to the new calculation result later); current

[0082] A's vector = [0, 4.284]; B's vector = [10, 5.95]

[0083]

[0084]

[0085]

[0086] Similarity = 25.4898 / (10*7.33)≈0.35, which is not between 0.7 and 1, so it has no reference value and continues to cycle to the next acquaintance.

[0087] Specifically, the step S3 adopts:

[0088] Step S3.1: querying the nutrition information of the food in the current school meals based on the nutrition analysis database;

[0089] Step S3.2: Calculate the corresponding equivalent number of man-days according to the number of dining man-days;

[0090] Step S3.3: Calculate the dietary nutrition analysis data based on the queried food nutrition information in the school meals and the equivalent number of person-days;

[0091] Step S3.4: Compare the calculated dietary nutrition analysis data with the preset index range. If the dietary nutrition analysis data is not within the preset index range, adjust the current school diet;

[0092] The dietary nutrition analysis data include: daily consumption per person, average daily protein intake per person, average daily calorie intake per person, percentage of protein in the recommended intake, and percentage of calories in the recommended intake.

[0093] In this embodiment, the nutrition analysis database includes:

[0094] The original resource of the detailed nutritional analysis database of more than 4,000 food ingredients is of inestimable value to food industry professionals, nutritionists, health consultants, and individual users who have high requirements for dietary health. Some key information that may be included in this database:

[0095] Basic nutrients: calories (kcal / KJ), protein (g), fat (g), carbohydrates (g), including sugars and dietary fiber, vitamins (such as vitamin A, C, D, E, K and B vitamins), minerals (calcium, iron, zinc, magnesium, potassium, etc.).

[0096] Special nutrients: antioxidants such as beta-carotene, selenium, omega-3 fatty acid content, cholesterol (mg), sodium (mg), etc.

[0097] Food categories: cereals and products, potatoes, starch and products, dry beans and products, dark vegetables and products, fungi and algae, fruits and products, nuts and seeds, livestock meat and products, poultry meat and products, dairy products, eggs and products, fish, shrimp, crab and shellfish, snacks, biscuits, fast food, beverages, alcoholic beverages, dried fruits and candied fruits, oils and fats, condiments, light vegetables and products, sugar, honey, etc.

[0098] The data on raw materials can not only support the system to make scientific and effective nutritional analysis of dishes and school meals, but school teachers can also use this information to develop personalized diet plans to meet the nutritional needs of different groups of people and customize them beyond the recipes pushed by the system.

[0099] When you need to query the nutritional information of a specific food, just enter the food name and the system will quickly provide a detailed data report.

[0100] In this embodiment, the corresponding equivalent man-days are generated according to the number of person-days with meals. When calculating the equivalent man-days, the calorie distribution ratio for one day is calculated according to the type of school and the stage of study, as 20% for breakfast, 5% for early morning, 35% for lunch, 10% for midday, 30% for dinner and 0% for dinner.

[0101] The calculation formula for the equivalent number of man-days is as follows. For example, if there are 10 people eating breakfast, 20 people eating lunch, and 10 people eating midday, then the equivalent number of man-days for that day is 10*5%+20*35%+10*10%=8.5 people;

[0102] Based on the above data, the school's dietary nutrition analysis data is calculated and a range indicator is given to help the school identify deficiencies in the menu and make timely adjustments.

[0103] The dietary nutrition analysis report provided includes the following data and the calculation method of the data (reference values ​​are from "Chinese Diet"):

[0104] Daily consumption per person: total amount / converted number of person-days

[0105] Average daily protein intake per person: total protein of all raw materials in this period / equivalent number of person-days

[0106] Average daily calorie intake per person: total calorie intake of all raw materials in this period / converted to number of person-days

[0107] The basic values ​​of protein and calorie intake for different age groups are as follows Figure 2 As shown in the figure, the calculation formulas for the difference and coefficient of different nutrients for children of different age groups from birth to 7 years old are as follows Figure 3 As shown, the values ​​in the boxes are standard values, with examples for children from birth to 7 years old.

[0108] The percentage of protein in the recommended intake (RNI) is calculated based on the common difference, and a calculated ratio of more than 80% is acceptable.

[0109] For example, the formula for calculating the percentage of protein intake (RNI) for 10 children aged 3-4 years and 10 children aged 4-5 years is:

[0110] (average daily protein intake per person / ((((10*0.7)+(10*0.5)) / 20)*10+40))*100

[0111] The percentage of recommended calorie intake (RNI) is calculated based on the common difference. A ratio of 85% to 90% is moderate, and above 90% is good.

[0112] For example, the formula for calculating the percentage of the recommended calorie intake (RNI) for 10 children aged 3-4 and 10 children aged 4-5 is:

[0113] (average daily calorie intake per person / ((((10*3)+(10*2)) / 20)*100+1200))*100

[0114] The ratio of protein, fat and carbohydrates should be 1:1:4-5, and the heat produced by the three major nutrients should account for the total heat: protein 12-15%, fat 25-30%, carbohydrates 50-60%. The calculation formula is: protein is 1, fat is the average daily fat intake per person / the average daily protein intake per person, and carbohydrates are the average daily carbohydrate intake per person / the average daily protein intake per person.

[0115] Based on the above nutritional analysis and other nutritional analysis data, the school’s daily, weekly and monthly nutritional analysis reports are composed.

[0116] It records children's absence information and supports various third-party docking modes to reduce teachers' workload. The third-party docking modes include the third party actively calling our interface for data transmission and our active calling the third-party data interface for data acquisition and storage.

[0117] Generate an absence report for children based on the third-party data called or the absence information filled in by yourself. If a child takes sick leave, the system will push personalized recipes to the child at home based on the corresponding disease.

[0118] Based on the school's absence data and the children's date of birth, the corresponding number of meal-days is generated, and the number of people eating in different age groups each day is counted.

[0119] The present invention also provides a school diet nutrition recommendation analysis system, which can be implemented by executing the process steps of the school diet nutrition recommendation analysis method, that is, technical personnel in this field can understand the school diet nutrition recommendation analysis method as a preferred implementation of the school diet nutrition recommendation analysis system.

[0120] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.

[0121] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A method for analyzing school dietary nutrition recommendations, characterized in that: include: Step S1: Generate school meals based on the meal recommendation model; Step S2: performing personalized adjustments to the generated school meals according to preset requirements to obtain adjusted school meals; Step S3: Performing a nutritional analysis on the adjusted school meals based on the nutritional analysis database, and fine-tuning the current school meals according to the nutritional analysis results; The dietary recommendation model is based on the basic library of food raw materials, combined with environmental factors, and uses collaborative filtering algorithms to perform comprehensive calculations to achieve personalized dietary nutrition recommendations; The nutrition analysis database includes: basic nutritional components corresponding to foods, special nutritional components corresponding to foods that meet preset requirements, and categories corresponding to foods.

2. The method for analyzing school dietary nutrition recommendations according to claim 1, characterized in that: The step S1 includes: initializing the school meal, and scoring each dish in the initialized school meal, retaining the dishes that meet the preset requirements, and replacing the dishes that do not meet the preset requirements, until each dish in the school meal meets the preset requirements; X is the category of dishes, Y is the cardinality corresponding to different influencing factors, X Y +X Y +X Y +X Y +...=The rating of the dish in the current environment; among them, different influencing factors include meal cost, season and age group; Set A as the peak value of the nutritional analysis value, Z as the bottom value of the nutritional analysis value, A-the nutrient of the dish = N, and determine whether N is less than Z. If it is less than Z, change the current dish, and if it is greater than Z, temporarily retain it; calculate N / Z, retain the dishes with N / Z values ​​greater than the preset value, and then make the final dish selection based on the score of the currently retained dishes.

3. The method for analyzing school dietary nutrition recommendations according to claim 1, characterized in that: The step S2 adopts: personalizing the generated school meals according to the student allergy information to obtain the adjusted school meals.

4. The method for analyzing school dietary nutrition recommendations according to claim 3, characterized in that: The student allergy information includes: based on the student's historical allergy information, using collaborative filtering algorithm to calculate the allergy change process, and regularly updating the student's allergy information; Represents the n-dimensional vector of student A to be updated; represents the n-dimensional vector of reference student B; wherein the n-dimensional vector includes n factors that affect allergy changes, including: age, birthday month, environment, other allergens, similar allergens, and whether it is a hereditary allergen; Among them, m represents the similarity; when the similarity m is within the preset range, it means that the reference student B is of reference value; when the similarity m is not within the preset range, it means that the reference student B has no reference value, and the reference student B is updated, and the trigger execution is repeated until the similarity m is within the preset range; and the allergy information of the student A to be updated is updated based on the reference student B.

5. The method for analyzing school dietary nutrition recommendations according to claim 1, characterized in that: The step S3 comprises: Step S3.1: querying the nutrition information of the food in the current school meals based on the nutrition analysis database; Step S3.2: Calculate the corresponding equivalent number of man-days according to the number of dining man-days; Step S3.3: Calculate the dietary nutrition analysis data based on the queried food nutrition information in the school meals and the equivalent number of person-days; Step S3.4: Compare the calculated dietary nutrition analysis data with the preset index range. If the dietary nutrition analysis data is not within the preset index range, adjust the current school diet; The dietary nutrition analysis data include: daily consumption per person, average daily protein intake per person, average daily calorie intake per person, percentage of protein in the recommended intake, and percentage of calories in the recommended intake.

6. The method for analyzing school dietary nutrition recommendations according to claim 5, characterized in that: The method further comprises: displaying the dietary nutrition analysis data calculated based on the current school diet in real time through a display screen.

7. A school dietary nutrition recommendation and analysis system, characterized in that: include: Module M1: Generate school meals based on the dietary recommendation model; Module M2: Personalize the generated school meals according to preset requirements to obtain adjusted school meals; Module M3: Conduct nutritional analysis on the adjusted school meals based on the nutritional analysis database, and make fine adjustments to the current school meals according to the nutritional analysis results; The dietary recommendation model is based on the basic library of food raw materials, combined with environmental factors, and uses collaborative filtering algorithms to perform comprehensive calculations to achieve personalized dietary nutrition recommendations; The nutrition analysis database includes: basic nutritional components corresponding to foods, special nutritional components corresponding to foods that meet preset requirements, and categories corresponding to foods.

8. The school dietary nutrition recommendation and analysis system according to claim 7, characterized in that: The module M1 includes: initializing the school meal, and scoring each dish in the initialized school meal, retaining the dishes that meet the preset requirements, and replacing the dishes that do not meet the preset requirements, until each dish in the school meal meets the preset requirements; X is the category of dishes, Y is the cardinality corresponding to different influencing factors, X Y +X Y +X Y +X Y +...=The rating of the dish in the current environment; among them, different influencing factors include meal cost, season and age group; Set A as the peak value of the nutritional analysis value, Z as the bottom value of the nutritional analysis value, A-the nutrient of the dish = N, and determine whether N is less than Z. If it is less than Z, change the current dish, and if it is greater than Z, temporarily retain it; calculate N / Z, retain the dishes with N / Z values ​​greater than the preset value, and then make the final dish selection based on the score of the currently retained dishes.

9. The school dietary nutrition recommendation and analysis system according to claim 7, characterized in that: The module M2 adopts: personalizing the generated school meals according to the student allergy information to obtain the adjusted school meals; The student allergy information includes: based on the student's historical allergy information, using collaborative filtering algorithm to calculate the allergy change process, and regularly updating the student's allergy information; Represents the n-dimensional vector of student A to be updated; represents the n-dimensional vector of reference student B; wherein the n-dimensional vector includes n factors that affect allergy changes, including: age, birthday month, environment, other allergens, similar allergens, and whether it is a hereditary allergen; Among them, m represents the similarity; when the similarity m is within the preset range, it means that the reference student B is of reference value; when the similarity m is not within the preset range, it means that the reference student B has no reference value, and the reference student B is updated, and the trigger execution is repeated until the similarity m is within the preset range; and the allergy information of the student A to be updated is updated based on the reference student B.

10. The school dietary nutrition recommendation and analysis system according to claim 7, characterized in that: The module M3 comprises: Module M3.1: Query the nutritional information of foods in current school meals based on the nutrition analysis database; Module M3.2: Calculate the corresponding equivalent man-days based on the number of dining man-days; Module M3.3: Calculate dietary nutrition analysis data based on the queried food nutrition information in school meals and the equivalent number of person-days; Module M3.4: Compare the calculated dietary nutrition analysis data with the preset indicator range. If the dietary nutrition analysis data is not within the preset indicator range, adjust the current school diet; The dietary nutrition analysis data include: daily consumption per person, average daily protein intake per person, average daily calorie intake per person, percentage of protein in the recommended intake, and percentage of calories in the recommended intake.