A smart canteen management method and system
By collecting window information and diners' dietary needs in the smart canteen, optimizing the queuing order solves the problem of long window queuing time in the smart canteen, realizes the output of the shortest queuing path, and improves the dining experience.
Patent Information
- Application Number
- CN202310975200.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-04
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-08-04
AI Technical Summary
In the smart canteen, although the self-service format reduces the use of staff, there are still long queues at the window during peak dining periods, and students need to queue multiple times when choosing dishes, and it is impossible to predict the queue at the next window. This results in long queuing times and lack of optimal queuing order.
By collecting the food type corresponding to the window and the queuing time in the recent period, the diners' diet recipes are obtained, the windows to be queued are found and arranged, a number of queuing paths are formed, the total queuing time of each path is calculated, and the shortest total queuing time is finally output. path.
It shortens the queuing time of diners and improves the dining experience. Through real-time statistics of window queuing time and diners’ dietary needs, the queuing order is optimized and the queuing time is reduced.
Smart Images

Figure CN117095490B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of canteen management, and in particular to a smart canteen management method and system. Background Art
[0002] Food is usually composed of carbohydrates, fats, proteins, and water. It is a substance that can provide nutrition or pleasure to humans or organisms through eating or drinking. It is the most basic material condition for human production and development. Food information has always been closely watched by all sectors of society. In various schools, most of them have canteens for students to solve their daily eating problems. Traditional canteens require students to line up at designated windows according to their dietary preferences, and then the staff inside the window will serve the dishes according to the students' needs. After the dishes are served, the staff will set the price based on their understanding of the prices of the dishes, and finally the students will complete the entire serving process after paying the bill. The traditional method will result in long queues at some windows, and in the hot summer, the food may also be spoiled.
[0003] With the development of Internet technology, the model of intelligence + Internet + products has been applied in all walks of life. The smart canteen combines the traditional canteen with the Internet and adopts a self-service form. Students select their meals and automatically weigh them for settlement, reducing the use of staff and thus shortening the waiting time. However, during peak dining times, there will still be long queues at some windows, and students often choose multiple dishes when choosing dishes, so they will have to queue at multiple windows. When students queue at the current window, they cannot predict the queue situation at the next window, so the queue time will be long. However, the current smart canteen cannot provide students with the optimal queuing order when serving multiple dishes. Summary of the invention
[0004] In view of this, the present invention proposes a smart canteen management method and system, which can provide a queuing path with the shortest queuing time based on the diners' dietary recipes, thereby improving the diners' dining experience and reducing the queuing time.
[0005] The technical solution of the present invention is achieved in this way:
[0006] A smart canteen management method comprises the following steps:
[0007] Step S1, collecting the food types corresponding to the window and the queue duration at each moment in recent time;
[0008] Step S2, obtaining the diet menu of the diners;
[0009] Step S3, finding the corresponding queuing window according to the food types in the diet recipe;
[0010] Step S4, arranging the queuing windows in different orders to form several queuing paths;
[0011] Step S5: Calculate the total queuing time of each queuing path, and output the queuing path with the shortest total queuing time.
[0012] Preferably, the food types in step S1 include cereals and potatoes, animal foods, vegetables and fruits, bean products, and pure energy foods.
[0013] Preferably, the specific steps of step S2 are:
[0014] Step S21, obtaining edible food for diners, and dividing it into several food databases according to different food types;
[0015] Step S22, calculating the essential nutrient content of each food in the food database, wherein the essential nutrients include protein, carbohydrates, fiber and fat;
[0016] Step S23, obtaining the physical condition data of the diners, selecting corresponding food from the food database according to the physical condition data and the content of necessary nutrients, and obtaining an initial recipe;
[0017] Step S24: obtaining the diners' taste change requirements, filtering food from the initial recipes according to the taste change requirements, and obtaining a diet recipe.
[0018] Preferably, the specific steps of step S21 are:
[0019] Step S211, obtaining all edible foods, and querying the direct allergy foods and direct conflicting foods input by the diner;
[0020] Step S212: Obtain the diner's hospital medical records and takeout order details, and extract the diner's potential allergic foods and potential incompatible foods from the hospital medical records and takeout order details;
[0021] Step S213, removing directly allergenic foods, directly conflicting foods, potentially allergenic foods, and potentially conflicting foods from the overall food list;
[0022] Step S214: Divide the discarded food into several food databases according to different food types.
[0023] Preferably, the specific steps of step S23 are:
[0024] Step S231, obtaining the physical examination data of the diner, wherein the physical examination data includes height, weight, body fat percentage, blood sugar, blood lipids and blood pressure;
[0025] Step S232, inputting the physical examination data into the trained neural network, and the neural network processes the data to obtain the nutrient requirements of the diner;
[0026] Step S233: Select multiple food combinations from the food database according to the nutrient requirements and the necessary nutrient content of each food item, and output them as an initial recipe.
[0027] Preferably, the specific steps of step S24 are:
[0028] Step S241, obtaining the takeaway order information and canteen dining information of the diners in the recent period, and extracting the dietary preferences and the types of food in the recent period according to the takeaway order information and canteen dining information;
[0029] Step S242: searching the initial recipes for food combinations that are the same or similar to the food types consumed recently according to dietary preferences;
[0030] Step S243: output the found food combination as a diet recipe.
[0031] Preferably, the specific steps of step S4 are: randomly selecting a queuing window as the first queuing window, selecting the remaining queuing windows, forming a queuing path in the order of selection, and performing iterative selection until all the queuing windows are selected as the first queuing window.
[0032] Preferably, the specific steps of step S5 are:
[0033] Step S51, obtaining the historical queuing time of the first queuing window at the current moment;
[0034] Step S52, obtaining the historical queuing time of the previous queuing window of the current queuing window in the queuing path at the end of queuing;
[0035] Step S53, adding up the historical queuing time of all queuing windows in the queuing path, and obtaining the total queuing time;
[0036] Step S54: output the queuing path with the shortest total queuing time.
[0037] Preferably, the queuing path is provided with a queuing time threshold, and the food in the diet recipe is provided with a priority. When the total queuing time of the queuing path with the shortest total queuing time outputted in step S5 is greater than the queuing time threshold, the food with the lowest priority in the diet recipe is deleted from the queuing path, and step S5 is re-executed.
[0038] A smart canteen management system, comprising:
[0039] A collection unit, used to collect the food types corresponding to the window and the queue duration at each moment in recent time;
[0040] An acquisition unit, used for acquiring a diet recipe of a diner;
[0041] A search unit, used to search for corresponding queuing windows according to the food types in the diet recipe;
[0042] An arranging unit, used to arrange the queuing windows in different orders to form several queuing paths;
[0043] A queue path output unit is used to calculate the total queue time of each queue path and output the queue path with the shortest total queue time;
[0044] The search unit is connected to the data of the collection unit, the acquisition unit and the arrangement unit respectively, and the queue path output unit is connected to the data of the arrangement unit and the collection unit respectively.
[0045] Compared with the prior art, the present invention has the following beneficial effects:
[0046] A smart canteen management method and system of the present invention counts the queuing time of the canteen windows in recent period, and then after finding the corresponding window according to the diet recipe of the diners, arranges the queuing order of the found windows to form a plurality of queuing paths, wherein the queuing path includes the queuing order of the windows where each food in the diet recipe is located, and the queuing time of each window is different at different time points. In the process of queuing for one window, the queuing time of other windows will also change in real time. Therefore, after calculating the total queuing time of all queuing paths, the fastest queuing path can be obtained, thereby shortening the queuing time of diners and improving the dining experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only preferred embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0048] Figure 1 A flow chart of a smart canteen management method of the present invention;
[0049] Figure 2 This is a flow chart of step S2 of a smart canteen management method of the present invention;
[0050] Figure 3 This is a flow chart of step S21 of a smart canteen management method of the present invention;
[0051] Figure 4 This is a flow chart of step S23 of a smart canteen management method of the present invention;
[0052] Figure 5 This is a flow chart of step S24 of a smart canteen management method of the present invention;
[0053] Figure 6 This is a flow chart of step S5 of a smart canteen management method of the present invention;
[0054] Figure 7 This is a schematic diagram of a smart canteen management system of the present invention;
[0055] In the figure, 1 is a collection unit, 2 is an acquisition unit, 3 is a search unit, 4 is an arrangement unit, and 5 is a queue path output unit. DETAILED DESCRIPTION
[0056] In order to better understand the technical content of the present invention, a specific embodiment is provided below, and the present invention is further described in conjunction with the accompanying drawings.
[0057] See also Figures 1 to 6 The present invention provides a smart canteen management method, comprising the following steps:
[0058] Step S1, collecting the food types corresponding to the window and the queue duration at each moment in recent time, the food types include cereals and potatoes, animal foods, vegetables and fruits, bean products, and pure energy foods;
[0059] In the smart canteen, a self-service food serving method is adopted. Diners will move to the window where the corresponding food is located, take out the whole dish for evaluation, or weigh and evaluate the price after taking the dish by themselves. The windows in the canteen are mostly divided according to the type of food, and the same type of dishes are placed in the same window area, which is convenient for diners to take food according to their type requirements and also can avoid the odor of different foods. For this reason, in the smart canteen management of the present invention, the food types contained in each window will be collected, and the queue time of each window at each moment in the recent period will be collected. The queue time refers to the total time to reach the window when queuing at a certain moment, that is, the waiting time of the diners. A smart canteen management method of the present invention is to manage the total waiting time of the diners and provide the diners with the shortest queue order to improve the dining experience of the diners.
[0060] Since each diner has different tastes and their tastes change, the dishes that diners buy each time they go to the cafeteria are different. When calculating the queuing time of diners, it is necessary to know what the diners eat. Therefore, the diners' diet recipes are obtained through step S2. The present invention provides a diet recipe recommendation function for diners. The diet recipes of diners are obtained through the diners' preferences, physical conditions, and taste changes, and then the queuing time is calculated according to the diet recipes. When recommending the recipes, first, step S21 is performed to obtain the edible food of the diners, and the edible food is divided into several food categories according to the different types of food. Since it is necessary to recommend suitable food to diners, before making recommendations, it is necessary to obtain all the food that diners can eat, and then classify the food according to the type of food and divide it into several databases. When recommending recipes later, you can choose food from multiple food categories for recommendation. However, not all foods are edible for diners. Due to individual tastes, preferences and genes, there will be some foods that diners will not eat. Therefore, these foods must not appear in the recommended recipes and need to be eliminated. The specific steps for elimination are:
[0061] Step S211, obtaining the total of all edible foods, querying the direct allergy foods and direct incompatible foods input by the diner, the direct allergy foods and direct incompatible foods are the names of foods directly input by the diner in the method and system, and can be used for direct elimination, but not all diners will directly input, so it is necessary to potentially obtain the diner's allergy foods and incompatible foods through other means;
[0062] Step S212: Obtain the diner's hospital medical records and takeout order details, and extract the diner's potential allergic foods and potential incompatible foods from the hospital medical records and takeout order details;
[0063] Since allergic foods can cause allergic symptoms in diners, and in severe cases can be life-threatening, allergic foods need to be eliminated from the overall food. For example, some diners are allergic to seafood, mangoes, etc., so they need to be eliminated from the overall food in advance. Based on the diners' preferences, incompatible foods can be obtained, such as coriander, water celery, etc., which also need to be eliminated from the overall food. The diners' allergic foods and incompatible foods can be potentially obtained through hospital medical records and takeout orders.
[0064] Step S213, removing directly allergenic foods, directly conflicting foods, potentially allergenic foods, and potentially conflicting foods from the overall food list;
[0065] Step S214: divide the eliminated food into several food databases according to different food types. At this time, the food database will not contain food that diners cannot eat. By eliminating such food, the amount of calculation can be reduced and the calculation efficiency can be improved.
[0066] Step S22, calculating the essential nutrient content of each food in the food database, wherein the essential nutrients include protein, carbohydrates, fiber and fat;
[0067] When recommending recipes to diners, the recommended foods need to contain the necessary energy required for human life. Therefore, after obtaining the food database, it is necessary to calculate the content of necessary nutrients contained in each food item, including protein, carbohydrates, fiber and fat. Protein can help the body repair itself, carbohydrates can provide energy to the body and brain, fiber can promote gastrointestinal motility, and fat can increase satiety. Therefore, when making subsequent recipe recommendations, the recommended food combinations should contain a certain amount of necessary nutrients to provide diners with the energy needed for daily activities.
[0068] Since the physical condition of the diner is not static, with the changes in body functions and various body indicators, the requirements for food digestion and the content of necessary nutrients are different. Therefore, before recommending a recipe, it is necessary to evaluate the physical condition data of the diner. In step S23, the physical condition data of the diner is obtained, and the corresponding food is selected from the food database according to the physical condition data and the content of necessary nutrients to obtain an initial recipe. The specific steps are as follows:
[0069] Step S231, obtaining the physical examination data of the diners, wherein the physical examination data includes height, weight, body fat percentage, blood sugar, blood lipids and blood pressure. The physical condition of the diners can be known based on the physical examination data, so that a corresponding menu suitable for their physical condition can be recommended later to prevent unhealthy diners from overeating or improper diet, which will lead to decreased physical function and affect their health.
[0070] Step S232, input the physical examination data into the trained neural network, and the neural network processes the data to obtain the nutrient requirements of the diner. The neural network is trained by collecting data from other human bodies, and its output is the physical examination data, and the output is the nutrient requirements. The nutrient requirements of the diner can be quickly obtained by adopting machine learning and historical data. However, the above-mentioned neural network is suitable for the needs of normal diners. For diners with special needs, the neural network needs to be adjusted accordingly. After obtaining the physical examination data of the diner over a period of time, it can be used to determine whether the diner is in a state of weight loss or fitness. When the diner is in a state of weight loss or fitness, his nutrient requirements for each food will decrease. At this time, it is necessary to adjust the parameters of the neural network to reduce the nutrient requirements of the diner obtained by the neural network processing, so that the obtained nutrient requirements can be suitable for diners in a state of weight loss or fitness.
[0071] Step S233, select multiple food combinations from the food database according to the nutrient requirement and the necessary nutrient content of each food, and output them as the initial recipe. After obtaining the nutrient requirement of the diner, it is necessary to select the corresponding food from the food database, and the sum of the necessary nutrient content of the selected food needs to be equal to or slightly greater than the nutrient requirement of the diner. Since the quantity of food is varied, there will be multiple food combinations in the obtained initial recipe, and all food combinations are output as the initial recipe.
[0072] The initial recipe contains a large number of food combinations. Although these food combinations can meet the energy needs of diners, they may not necessarily meet the taste needs of diners. In addition, the taste of diners may change after a period of time. Therefore, step S24 obtains the taste change needs of diners, selects food from the initial recipe according to the taste change needs, and obtains a diet recipe. The specific steps are:
[0073] Step S241, obtaining the takeaway order information and canteen dining information of the diners in the recent period, and extracting the dietary preferences and the types of food in the recent period according to the takeaway order information and canteen dining information;
[0074] The canteen dining information and takeaway order information will include the types of food purchased by the diners, such as whether they like beef, pork, fish, etc. In addition, the canteen dining information and takeaway order information can also be used to obtain the diners' dietary preferences, such as whether they like meat / vegetarianism / fruits, etc.
[0075] Different dietary preferences and recent food types will have a certain impact on the final food combination. For this reason, step S242 will search the initial recipe for a food combination that is the same or similar to the recent food types based on the dietary preferences. The corresponding food combination can be selected according to the diners' dietary preferences, and the selected food combination will include the food types that the diners have eaten recently. If the food combination does not include the food types that the diners have eaten recently, similar foods can be selected instead. For example, when the food that the diners have eaten recently is beef, but the food combination does not include beef, pork can be selected as a substitute.
[0076] Since dietary preferences and recent food types are added as restrictions, food combinations that do not meet the requirements in the initial recipe can be filtered out, and then the found food combinations are output as dietary recipes by step S243. At this time, the food combinations in the dietary recipes can not only meet the diners' energy needs, but also meet the diners' taste needs.
[0077] Step S3, find the corresponding queuing window according to the food types in the diet recipe. The obtained diet recipe may contain multiple foods. After extracting the food types in the diet recipe, find the windows corresponding to the food in the diet recipe according to the food types corresponding to the canteen windows. Use these windows as windows where diners need to queue and output them as queuing windows.
[0078] Step S4, arranging the queuing windows in different orders to form several queuing paths, among which one queuing window needs to be randomly selected as the first queuing window, and then the remaining queuing windows are randomly selected to form a queuing path in the selected order, and iterative selection is performed until all the queuing windows are selected as the first queuing window. Since there are multiple foods in the diet recipe, the queuing paths formed are obtained through permutations and combinations, so the number of queuing paths will be much greater than the number of foods in the diet recipe.
[0079] After all queuing paths are obtained, the total queuing time of each queuing path is calculated through step S5, and the queuing path with the shortest total queuing time is output. The specific steps are:
[0080] Step S51, obtaining the historical queuing time of the first queuing window at the current moment, taking the current moment as the queuing time of the first queuing window, then searching the queuing time at the same moment as the current moment from the historical data, and taking the average value, the historical queuing time of the first queuing window at the current moment can be obtained, and then the queuing time of subsequent queuing windows is calculated in sequence according to the queuing path. When calculating, it is necessary to use the moment when the queuing of the previous queuing window ends as the moment when the queuing of the next queuing window starts, so step S52 is used to obtain the historical queuing time of the moment when the queuing of the previous queuing window of the current queuing window in the queuing path ends, and the historical queuing time of all queuing windows can be obtained by analogy, and then step S53 is used to add the historical queuing time of all queuing windows in the queuing path to obtain the total queuing time; finally step S54 outputs the queuing path with the shortest total queuing time, and diners can select the corresponding window in order according to the output queuing path to queue up, with the shortest queuing time, which can improve the dining experience of diners.
[0081] Preferably, the queuing path is provided with a queuing time threshold, and the food in the diet recipe is provided with a priority. When the total queuing time of the queuing path with the shortest total queuing time outputted in step S5 is greater than the queuing time threshold, the food with the lowest priority in the diet recipe is deleted from the queuing path, and step S5 is re-executed.
[0082] In addition, if the final calculated total queue time of the queue path is still long, you can consider deleting the food with the lowest priority in the diner's diet menu and recalculating the total queue time of the queue path, in order to save the diner's queue time.
[0083] Reference Figure 7 A smart canteen management system shown includes:
[0084] Collection unit 1, used to collect the food types corresponding to the window and the queue duration at each moment in recent time;
[0085] An acquisition unit 2, used for acquiring a diet recipe of a diner;
[0086] A search unit 3 is used to search for a corresponding queuing window according to the food types in the diet recipe;
[0087] Arrangement unit 4, used to arrange the queuing windows in different orders to form several queuing paths;
[0088] The queue path output unit 5 is used to calculate the total queue time of each queue path and output the queue path with the shortest total queue time;
[0089] The search unit 3 is data-connected with the collection unit 1 , the acquisition unit 2 and the arrangement unit 4 , respectively. The queue path output unit 5 is data-connected with the arrangement unit 4 and the collection unit 1 , respectively.
[0090] The collection unit 1 sends the food types of the collected windows to the search unit 3, and the acquisition unit 2 sends the diners' diet recipes to the search unit 3. The search unit 3 searches the diet recipes and the food types of the windows one by one, determines the window where the food in the diet recipe is located, and outputs the determined window as a window to be queued to the arrangement unit 4. The arrangement unit 4 arranges and combines the windows to be arranged to form a queue path, and sends the queue path to the queue path output unit 5. The queue path output unit 5 receives the queue time of each window at each moment in the recent period collected by the collection unit 1, and then calculates the queue time of each window in the queue path to obtain the total queue time of the queue path, and finally outputs the queue path with the shortest total queue time, so that diners can queue according to the output queue path, shortening the diners' queue time and improving the diners' dining experience.
[0091] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A smart canteen management method, characterized in that: The following steps are involved: Step S1, collecting the food types corresponding to the window and the queue duration at each moment in recent time; Step S2, obtaining the diet menu of the diners; Step S3, finding the corresponding queuing window according to the food types in the diet recipe; Step S4, arranging the queuing windows in different orders to form several queuing paths; Step S5, calculating the total queuing time of each queuing path, and outputting the queuing path with the shortest total queuing time; The specific steps of step S4 are: randomly selecting a window to be queued as the first window to be queued, selecting the remaining windows to be queued, forming a queue path in the order of selection, and performing iterative selection until all the windows to be queued are selected as the first window to be queued; The specific steps of step S5 are: Step S51, obtaining the historical queuing time of the first queuing window at the current moment; Step S52, obtaining the historical queuing time of the previous queuing window of the current queuing window in the queuing path at the end of queuing; Step S53: add up the historical queuing time of all queuing windows in the queuing path to obtain the total queuing time; Step S54, outputting the queue path with the shortest total queue time; The specific steps of step S2 are: Step S21, obtaining edible food for diners, and dividing it into several food databases according to different food types; Step S22, calculating the essential nutrient content of each food in the food database, wherein the essential nutrients include protein, carbohydrates, fiber and fat; Step S23, obtaining the physical condition data of the diners, selecting corresponding food from the food database according to the physical condition data and the content of necessary nutrients, and obtaining an initial recipe; Step S24, obtaining the taste change requirements of the diners, screening food from the initial recipes according to the taste change requirements, and obtaining a diet recipe; The specific steps of step S21 are: Step S211, obtaining all edible foods, and querying the direct allergy foods and direct conflicting foods input by the diner; Step S212: Obtain the diner's hospital medical records and takeout order details, and extract the diner's potential allergic foods and potential incompatible foods from the hospital medical records and takeout order details; Step S213, removing directly allergenic foods, directly conflicting foods, potentially allergenic foods, and potentially conflicting foods from the overall food list; Step S214: Divide the discarded food into several food databases according to different food types.
2. A smart canteen management method according to claim 1, characterized in that: The food types in step S1 include cereals and potatoes, animal foods, vegetables and fruits, bean products, and pure energy foods.
3. A smart canteen management method according to claim 1, characterized in that: The specific steps of step S23 are: Step S231, obtaining the physical examination data of the diner, wherein the physical examination data includes height, weight, body fat percentage, blood sugar, blood lipids and blood pressure; Step S232, inputting the physical examination data into the trained neural network, and the neural network processes the data to obtain the nutrient requirements of the diner; Step S233: Select multiple food combinations from the food database according to the nutrient requirements and the necessary nutrient content of each food item, and output them as an initial recipe.
4. A smart canteen management method according to claim 1, characterized in that: The specific steps of step S24 are: Step S241, obtaining the takeaway order information and canteen dining information of the diners in the recent period, and extracting the dietary preferences and the types of food in the recent period according to the takeaway order information and canteen dining information; Step S242: searching the initial recipes for food combinations that are the same or similar to the food types consumed recently according to dietary preferences; Step S243: output the found food combination as a diet recipe.
5. A smart canteen management method according to claim 1, characterized in that: The queuing path is set with a queuing time threshold, and the food in the diet recipe is set with a priority. When the total queuing time of the queuing path with the shortest total queuing time output by step S5 is greater than the queuing time threshold, the food with the lowest priority in the diet recipe is deleted from the queuing path, and step S5 is re-executed.
6. A system according to any one of claims 1 to 5, characterized in that: include: A collection unit, used to collect the food types corresponding to the window and the queue duration at each moment in recent time; An acquisition unit, used for acquiring a diet recipe of a diner; A search unit, used to search for corresponding queuing windows according to the food types in the diet recipe; An arranging unit, used to arrange the queuing windows in different orders to form several queuing paths; A queue path output unit is used to calculate the total queue time of each queue path and output the queue path with the shortest total queue time; The search unit is respectively connected to the data of the collection unit, the acquisition unit and the arrangement unit, and the queue path output unit is respectively connected to the data of the arrangement unit and the collection unit; The specific steps of the arrangement unit are: randomly selecting a window to be queued as the first window to be queued, selecting the remaining windows to be queued, forming a queue path according to the selected order, and iterating the selection until all the windows to be queued are selected as the first window to be queued; The specific steps of the queuing path output unit are: Step S51, obtaining the historical queuing time of the first queuing window at the current moment; Step S52, obtaining the historical queuing time of the previous queuing window of the current queuing window in the queuing path at the end of queuing; Step S53, adding up the historical queuing time of all queuing windows in the queuing path, and obtaining the total queuing time; Step S54, outputting the queue path with the shortest total queue time; The specific steps of the acquisition unit are: Step S21, obtaining edible food for diners, and dividing it into several food databases according to different food types; Step S22, calculating the essential nutrient content of each food in the food database, wherein the essential nutrients include protein, carbohydrates, fiber and fat; Step S23, obtaining the physical condition data of the diners, selecting corresponding food from the food database according to the physical condition data and the content of necessary nutrients, and obtaining an initial recipe; Step S24, obtaining the taste change requirements of the diners, screening food from the initial recipes according to the taste change requirements, and obtaining a diet recipe; The specific steps of step S21 are: Step S211, obtaining all edible foods, and querying the direct allergy foods and direct conflicting foods input by the diner; Step S212: Obtain the diner's hospital medical records and takeout order details, and extract the diner's potential allergic foods and potential incompatible foods from the hospital medical records and takeout order details; Step S213, removing directly allergenic foods, directly conflicting foods, potentially allergenic foods, and potentially conflicting foods from the overall food list; Step S214: Divide the discarded food into several food databases according to different food types.
