key: cord-1029323-4nj90q7z authors: Kodors, Sergejs; Zvaigzne, Anda; Litavniece, Lienite; Lonska, Jelena; Silicka, Inese; Kotane, Inta; Deksne, Juta title: Plate Waste Forecasting Using the Monte Carlo Method for Effective Decision Making in Latvian Schools date: 2022-01-28 journal: Nutrients DOI: 10.3390/nu14030587 sha: 57645c1e2b2a6019d6be6317d22b73b0e3420c2c doc_id: 1029323 cord_uid: 4nj90q7z Food waste is a global problem, which becomes apparent at various stages of the food supply chain. The present research study focuses on the optimization of food consumption in schools and effective food management through data-driven decision making within the trends: zero food waste and digital transformation. The paper presents a plate waste forecasting system based on mathematical modeling and simulation using the Monte Carlo method, which showed an RMSE equal to ±3% and a MAPE of 10.15%. The solution based on the simulator provides a possibility to better understand the relationship between the parameters investigated through data visualization and apply this knowledge to train managers to make decisions that are more effective. The developed system has multi-disciplinary application: forecasting, education and decision making targeted to reduce food waste and improve public health and food management in schools. According to the Food and Agriculture Organization of the United Nations (FAO), onethird of the world's food output-approximately 1.3 billion tons a year-is discarded [1]. Food waste and its reduction is an increasingly important problem for local, national and European policymakers, as well as for international organizations and researchers of various fields [2] . Some researchers such as Cattaneoa, Sánchez, Torero and Vos (2021) [3] emphasize that, despite the current public policies analyzed in a number of research studies in various countries aimed at reducing food waste and wastage, there were still gaps in information, e.g., regarding how food waste is measured and monitored, gains from reducing food waste, etc. Owing to a number of research studies by Thyberg and Tonjes [4, 5] , the problem of food waste and the reduction in its impact gains attention among the public and policymakers. Research shows that large amounts of food waste are generated during the consumption phase, which includes both eating meals out and at home [6] . Households mostly consume food at home, while the catering sector represents households eating meals out. The catering services sector includes both non-commercial and commercial establishments [7] , e.g., restaurants, educational institution canteens, etc. Researchers Yui and Biltekoff [8] emphasize that food waste is a significant problem at educational institutions. It should be noted; however, that school canteens are a controlled environment where educational campaigns could be conducted to reduce food waste [9] . Schools can help The simulation approach is mostly applied to investigate the global strategies related to food supply chain organization, policies and other logistic problems by using an agentbased model. For example, Craven and Krejci [13] developed a simulator to investigate producer disintermediation from a food hub in the regional food supply system. This simulator was developed with consideration to be a decision support tool for food hub managers; however, Van Voorn et al. [14] assessed efficiency and resilience in stylized food supply chains by using the simulation approach. Scalco et al. [15] applied the agent-based model to meat consumption by the population in Britain to investigate various marketing campaigns and price impacts on meat consumption. Nowadays, many research studies focus on the COVID-19 pandemic in relation to food supply chains. For example, Achmad et al. [16] studied robust food supply chain strategies by determining the optimum food hub location and food network to maintain food security, which is robust against disruptions and uncertainties during the COVID-19 pandemic. Considering the plate waste subject, Ravandi and Jovanovic [17] applied the agentbased model to capture the dynamics between plate waste, food surplus and the facility organization setup. They measured the impact of plate size on food waste, indicating the need for optimizing food preparation along with designing choice environments that encourage guests to avoid taking more food than they need. The plate waste is more studied through other approaches, for example, the modeling approach. Dolnicar and Juvan [18] developed a model of "Drivers of plate waste" based on an interview with hotel staff. This model was extended and supported with statistical data later [19] . In addition, the authors investigated a relationship of plate waste with some impact factors by using statistical analysis, as was conducted by Anderson et al. [20] , who researched a portion plate impact on food waste. The primary objective of our research study is related to the prediction of food waste in schools. Traditionally, data-based methods are applied to make predictions, as was studied by Malefors et al. [21] , who experimented with different forecasting models to predict guest Nutrients 2022, 14, 587 3 of 19 attendance in school catering. As a result, they achieved an average percentage error of 2-3%. Lately, Malefors et al. [22] completed similar research on guest prediction during the COVID-19 pandemic; however, it was impossible to collect sufficient statistical data due to the restrictions related to COVID-19; therefore, it was required to find some feature-based solution, and the approach with modeling and simulation was an effective decision to overcome a problem with restricted data because scientific databases provided quantitative data and information on impact factors and eating models. Several comprehensive studies are provided by Fagerberg et al. [23] , Martins et al. [24] and Zandian et al. [25] . Additionally, a simulation approach is a white-box solution, which provides the possibility to explain a relationship between parameters, while a simulator can be applied for decision making and education that opens multi-directional application for the presented solution, considering the target group-the school administration. The Monte Carlo model was developed using the synergy of many different methods. Statistical data for the simulator were collected using the following methods: (1) an anonymous survey of parents; (2) literature review; (3) observations of schools. The business logic of the simulator was developed using the following methods: prototyping and experimental development. The first version of the prototype was presented at an international scientific conference and contained a minimal set of properties, which was based on expert assumptions [26] . This simulation model was extended with new parameters and based on statistical data. To collect statistical data for the simulator, an anonymous survey of parents was conducted from 7 June 2021 to 7 July 2021. The questionnaire obtained ethical approval from the Scientific Council of Rezekne Academy of Technologies on 18 May 2021 (No. 16.1/12). All the participants were fully informed that anonymity is assured, why the research is being conducted, how their data will be used and about any associated risks. Only 24 responses were received back, yet it was a sufficient number to develop a conceptual model for the simulator and test it. To develop the simulation model, a field study was conducted in schools of Rezekne city, Latgale region of the Republic of Latvia. Rezekne is the seventh-largest city in the Republic of Latvia and the largest eastern border city of the European Union ( Figure 1 ). The field study was conducted in seven secondary schools of Rezekne. During the observations, the emphasis was put on quantitative measurements of uneaten food (plate waste) by examining at least 7000 school lunch plates. To measure food intake duration and path time, not influencing children and excluding them from observations, the FIFO (first in, first out) method was applied, recording only the time when the first and last child entered and left the canteen. Various parameters were investigated to improve our Monte Carlo model. Each parameter is described in a separate subchapter: (1) a portion size (Section 3.2.1); (2) an eating rate (Section 3.2.2); (3) eating habits (Section 3.2.3); (4) children's preferences (Section The business logic of the Monte Carlo model was described using a flowchart and pseudocodes (see Section 3.3) based on the experimental development of the simulator by using Python and Jupyter Notebook. Various parameters were investigated to improve our Monte Carlo model. Each parameter is described in a separate subchapter: (1) a portion size (Section 3.2.1); (2) an eating rate (Section 3.2.2); (3) eating habits (Section 3.2.3); (4) children's preferences (Section 3.2.4). The nutritional norms for Latvian schools are defined in regulation No. 172 "Regulations Regarding Nutritional Norms for Educatees of Educational Institutions, Clients of Social Care and Social Rehabilitation Institutions and Patients of Medical Treatment Institutions". According to the version of 28 August 2020, which was in force when the study was completed, three types of menu had to be provided at school: (1) the main dish and soup (MS); (2) the main dish and dessert (MD); (3) or soup and dessert (SD). The main nutritional norms for educatees of general primary and secondary education institutions are defined by the following parameters (using minimal and maximal values): energy value (kcal), proteins (g), fats (g) and carbohydrates (g); which are grouped by grades 1-4, 5-9 and 10-12; however, the quality of nutrition is defined by many parameters, e.g., another food product must be included in the meal each day: (1) food products rich in complex carbohydrates; (2) vegetables, fruit or berries (including in fresh form); (3) food products rich in proteins; (4) milk or dairy or cultured products. At the same time, the weekly menu must contain: (1) at least 200 g (net) of lean meat or fish (fillet); (2) at least 225 g (net) of potatoes; (3) at least 450 g of dairy, cultured products or products rich in milk proteins (cottage cheese, cheese); (4) at least 700 g (net) of vegetables (except for potatoes) and fruit or berries, of which at least 250 g in fresh form. Further, the legislation defines many other requirements and restrictions, which must be considered when developing a menu. The integration of all these requirements into the simulator is a challenging task; therefore, the review of online published menus was completed to simplify a portion generation model by developing a special classification system applicable to the simulator. The resulting model is depicted in Figure 2 . The portion is expressed by Equation (1), but their probability distributions are depicted in Table 1 . where p-a portion size (g), m-a main dish (g), s-a soup (g), sd-a solid dessert (g), ld-a liquid dessert (g) such as a juice or a tea with sugar, b-bread (g), fp-a fresh product (g), mk-milk (g). Additionally, the review showed that each type of menu has its own probability: (a) the main dish and a soup-65%; (b) the main dish and a dessert-30%; (c) a soup and a dessert-5%. Fruits belong to categories "solid dessert" (Sd) or "fresh products" (Fp). This relation was described as a logical condition AND. The review of the menu showed that a combination of fresh products and solid desserts belongs to the range of 100-200 g. The content of lunch portions, which were monitored during the observation time, are depicted in Table 2 considering Equation (1). Fruits belong to categories "solid dessert" (Sd) or "fresh products" (Fp). This relation was described as a logical condition AND. The review of the menu showed that a combination of fresh products and solid desserts belongs to the range of 100-200 g. The content of lunch portions, which were monitored during the observation time, are depicted in Table 2 considering Equation (1). m-a main dish, s-a soup, sd-a solid dessert, ld-a liquid dessert, b-bread, fp-a fresh product, mk-milk, p-a portion size. A literature analysis identified a paper by Zandian et al. [25] , which provides measurements of a school lunch eating rate. They modeled cumulative food mass intake using Equation (2): where k-is the degree of eating rate acceleration over the course of the meal, and the v 0 -is the initial speed of eating. According to Zandian et al. [25] measurements, girls had the initial eating rate equal to 34(5) g/min and the deceleration −2.6(1.4) g/min 2 , while boys −42(7) g/min and −2.7(1.1) g/min 2 , respectively; however, considering the integration of the food mass intake function (see Equation (3)), the declared deceleration must be doubled. As a result, the eating rate deceleration of girls was −5.2(2.8) g/min 2 and −5.4(2.2) g/min 2 for boys. Finding the extremum time (Equation (4)), it is possible to find the maximal food mass intake (Equation (3)) until the eating rate achieves zero. Nutrients 2022, 14, 587 6 of 19 Using the average initial speed and the average deceleration, the maximal intake must be 111.15 (g) within 6.5 (min) for girls and 163.3 (g) within 7.7 (min) for boys. That is strongly smaller than the declared average food intake and lunch duration: (a) girls-258(38) g and 10.7(2.1) min; (b) boys-289(73) g and 8.8(1.8) min. According to the conclusions of experts, children are eating at a decelerating speed in the first part of a lunch, then maintain a constant speed of eating [26] ; therefore, the food intake model with eating speed deceleration could be applied to correct the previous calculation differences (see Equation (5)): where a 0 -is the initial eating speed acceleration, but x-the eating speed acceleration. Recalculation provided the following values: (a) girls-0.55 g/min 3 ; (b) boys-0.56 g/min 3 . This new model is depicted in Figure 3 . must be 111.15 (g) within 6.5 (min) for girls and 163.3 (g) within 7.7 (min) for boy is strongly smaller than the declared average food intake and lunch duration: (a) 258(38) g and 10.7(2.1) min; (b) boys-289(73) g and 8.8(1.8) min. According to the conclusions of experts, children are eating at a decelerating in the first part of a lunch, then maintain a constant speed of eating [26] ; theref food intake model with eating speed deceleration could be applied to correct the p calculation differences (see Equation (5)): where -is the initial eating speed acceleration, but x-the eating speed accel Recalculation provided the following values: (a) girls-0.55 g/min 3 ; (b) boys-0.56 This new model is depicted in Figure 3 . However, Fagerberg et al. [23] applied a more simple model for food intak calculation-constant average speed (see Equation (6)): where E-food mass intake during time t. The research study by Fagerberg et al. [23] has shown that there is a strong cor (Pearson's r = 0.667, p < 0.001) between the objective eating rate (g/min) and foo intake (g) during school lunch. Additionally, the correlation between the BMI z-sc eating speed: "a BMI z-score below 0 had a significantly lower eating rate (g/min) dents who had a BMI z-score equal to or above 0 (28.2 g/min vs. 35.9 g/min, respec the mean difference = −7.7 g/min, p = 0.012, 95% CI −14 g/min to −1.8 g/min" [23] ; ho "slow eaters" have smaller food mass intake than "fast eaters". Comparing the speed between Swedish and Greek students, a significant difference was not fou descriptive statistics of the mentioned study were presented as a scatterplot. The m However, Fagerberg et al. [23] applied a more simple model for food intake speed calculation-constant average speed (see Equation (6) where E-food mass intake during time t. The research study by Fagerberg et al. [23] has shown that there is a strong correlation (Pearson's r = 0.667, p < 0.001) between the objective eating rate (g/min) and food mass intake (g) during school lunch. Additionally, the correlation between the BMI z-score and eating speed: "a BMI z-score below 0 had a significantly lower eating rate (g/min) vs. students who had a BMI z-score equal to or above 0 (28.2 g/min vs. 35.9 g/min, respectively), the mean difference = −7.7 g/min, p = 0.012, 95% CI −14 g/min to −1.8 g/min" [23] ; however, "slow eaters" have smaller food mass intake than "fast eaters". Comparing the eating speed between Swedish and Greek students, a significant difference was not found. The descriptive statistics of the mentioned study were presented as a scatterplot. The minimal speed was near 10 g/min and the maximal-95 g/min (in the case of the 1st observation). The linear function is approximately equal to Equation (7): Nutrients 2022, 14, 587 Therefore, the average speed depending on food mass intake can be found by Equation (8): v(E) = E − 125 6.8 (8) It is possible to find the average speed of the model proposed by Zandian et al. [25] using Equation (9): the results are as follows: (a) the average eating speed of girls is 27.16 g/min; (b) boys-32.7 g/min, which are comparable with the values mentioned by Fagerberg et al. [23] . Zandian et al. [25] and Fagerberg et al. [23] conducted their study on the main dish. A soup is a liquid substance; therefore, the eating rate of soup must be higher. Ferriday et al. [27] proposed a study on tomato soup (400 mL) consumed through tubing: (a) slow rate-30 mL/min; (b) fast rate-118 mL/min; in other words, approximately 30 g/min and 118 g/min. Traditionally, a soup contains some solid mass; the normal rate can be a doubled eating rate of the main dish. To measure food intake duration and path time, not influencing children and excluding them from observations, the FIFO (first in, first out) method was applied, recording only the time when the first and last child entered (T = {t min ; t max }) and left the canteen (T = t min ; t max ). The path time was calculated as a mean of means (µ T and µ T respectively); however, the food intake duration was calculated as a mean of means (µ T −T ) after subtracting the entering time from the leaving time. The observations at the schools showed the average lunch consumption time was equal to 8.1 min. It must be considered that children did not eat the whole portion, and plate waste was produced; however, the average eating rate was 47 g/min. Considering the portion mass without drinking (390-540 g) and Equation (7), the eating rate must belong to the range [39; 61]. Additionally, Zandian et al. [25] mention that boys and girls eat faster in restricted time, 166% and 183%, respectively; therefore, the observed eating rate satisfies the ranges investigated by other authors. Therefore, the eating rate of 35(5) g/min and a linear model can be a compromise for the simulator because the ideal conditions cannot always be provided, and children can feel some internal or external stress; however, the model with a decreasing speed (Equation (5)) can obtain the characteristics of a linear model for a restricted lunch time frame ( a 0 → 0 and x → 0 ). Food preferences are the product of an interplay between genetic and environmental factors that result in substantial individual differences to the extent to which children are suspicious and fussy about food in general and in their likes and dislikes for specific foods [28] . De Cosmi et al. [29] provided a comprehensive review of children's eating and activity behaviors influenced by both intrinsic (genetics, age, gender) and extrinsic (family, peers, community, and society) factors. Eating habits influence children's decision making; therefore, the objectives of our survey were to identify children's decisions related to hated food and their frequency (see Figure 4 ), as well as to investigate how children meet their satiation and the competitive food impact on school lunches (see Tables 3 and 4 ). The competitive food probability was calculated, adding up the answers of subcategories. Somewhere 30% of children eat competitive food; however, 67% of children decide to stop eating if time is not sufficient to return to a classroom. Children from different socioeconomic regions have differ e.g., Ragelienė [31] discussed the differences between the food p and Danish children. It means that local data must be applied fo Our survey investigated three categories of food: (1) soup; (2 drinks (see Table 5 ). Children from different socioeconomic regions have different food preferences [30] , e.g., Ragelienė [31] discussed the differences between the food preferences of Lithuanian and Danish children. It means that local data must be applied for the simulation. Our survey investigated three categories of food: (1) soup; (2) the main dish; (3) sweet drinks (see Table 5 ). If a whole list of food products and recipes is applied for a survey to investigate children's preferences, it is a time-consuming process; children also cannot have gastronomic experience or cannot know their titles. Additionally, these preferences can be impacted and modeled; however, a restricted list minimizes the school freedom related to menu development; therefore, it was decided to leave only one parameter for input-the number of children unsatisfied with the school meal. Investigating how frequently children are not satisfied with school food (Figure 5) , the survey showed two peaks, which can relate to two groups: "satisfied children" and "unsatisfied children". Of course, the sample population must be increased; however, this principle can be applied to generate the frequency of hated food based on selected assumptions: (a) 0(0.5) days for satisfied children; (b) 3(0.5) days-for unsatisfied children. Of the total children, 27% were unsatisfied with school food for more than one day. The observations at the schools showed that the largest food waste, 37%, related to liquid desserts (sweet tea, juice and lemon water); however, the total plate waste was 27.63%, and 23.28%, excluding the liquid dessert. All the categories are depicted in Figure 6 . These distributions of food waste amount can be considered for rejected food: The observations at the schools showed that the largest food liquid desserts (sweet tea, juice and lemon water); however, the 27.63%, and 23.28%, excluding the liquid dessert. All the categories 6. These distributions of food waste amount can be considered f norm(0. 30 The observations at the schools showed that the largest food waste, 37%, related to liquid desserts (sweet tea, juice and lemon water); however, the total plate waste was 27.63%, and 23.28%, excluding the liquid dessert. All the categories are depicted in Figure 6 . These distributions of food waste amount can be considered for rejected food: The time unit of the simulation model is a week. Each week the menu is presented by a set of package menus ⃗ = ( ⃗ , ⃗ , ⃗ , ⃗ , ⃗ ), where each package menu ( ) is described by Equation (1). Each menu w is generated considering the scheme depicted in Figure 2 and the distributions described in Table 1 , where each type of menu has its own probability: (a) the main dish and a soup-65%; (b) the main dish and a dessert-30%; (c) a soup and a dessert-5%. Bread is added with a probability of 50%. Fresh products and milk are added with a probability of 33% for each; however, the type of dessert (solid, liquid or both) is selected with a uniform probability (33%). The related pseudocode is depicted in Table 6 . The time unit of the simulation model is a week. Each week the menu is presented by a set of package menus where each package menu (w) is described by Equation (1). Each menu w is generated considering the scheme depicted in Figure 2 and the distributions described in Table 1 , where each type of menu has its own probability: (a) the main dish and a soup-65%; (b) the main dish and a dessert-30%; (c) a soup and a dessert-5%. Bread is added with a probability of 50%. Fresh products and milk are added with a probability of 33% for each; however, the type of dessert (solid, liquid or both) is selected with a uniform probability (33%). The related pseudocode is depicted in Table 6 . The core logic of the Monte Carlo model relates to plate waste calculation. It was decided to represent a lunch portion as Equation (10): where w t -plate waste (g) impacted by insufficient time, w h -impacted by rejected food, w e f -impacted by competitive food. If e(t) and w t (t) depend on time, w h and w e f Produces constant plate waste; however, the rejected food amount depends on the competitive food impact because children are already overfilled (Equation (11)). Mathematically, the rejected food can be calculated using Equation (12): Sddistribution "solid dessert"; Lddistribution "liquid dessert"; Ddistribution "solid & liquid desserts"; sdsolid dessert (g); ld-liquid dessert (g). Generate a dessert: otype of optional part; Bdistribution "bread"; Fpdistribution "fresh products"; Mkdistribution "milk"; f pfresh products (g); mk-milk (g). Generate an optional part: prprobability that a child is unsatisfied with school food; v s eating rate of solid food (g/min); v l eating rate of liquid food (g/min); e f user of competitive food; u-child unsatisfied with school food. Generate days of rejected food(u) : The related pseudocodes are depicted in Tables 8 and 9 . The results in the form of a flowchart for plate waste simulation are depicted in Figure 7 . The simulation was repeated 10,000 times to investigate the impacts of parameters. The root mean square error (RMSE) was applied to measure the forecasting error o the developed simulator. Some schools had different lunch lengths for different classes therefore, the forecasting result was compared with observed plate waste per week, con sidering the lunch duration (see Equation (13)). The root mean square error (RMSE) was applied to measure the forecasting error of the developed simulator. Some schools had different lunch lengths for different classes; therefore, the forecasting result was compared with observed plate waste per week, considering the lunch duration (see Equation (13)). where N-number of observations, t-lunch length corrected considering the walking time (min), s-school, w t -forecasted plate waste per week (g/week), w s, t -observed plate waste per week for school s, for a child group restricted by lunch duration t. Additionally, a mean average percentage error was applied (see Equation (14)): Next, assumptions were applied for the simulation based on the previous analysis: external food probability-0.3, the probability of children unsatisfied with the school meal-0.27 and the compromise eating rate-35(5) g/min. The simulation model has two input parameters (see Figure 7) : lunch duration and a percentage of children unsatisfied with school food. The results of simulations are depicted in Figure 8 ; however, Figure 9 depicts surface tomograms to easier understand the impact of each input parameter on plate waste. Figure 10 depicts the intersection of real data with the simulated data to validate the model. The schools had lunch durations of 15, 20, 25 and 30 min. The observed plate waste at the schools was intersected with the simulation results adjusted for walking time. The children come into the canteen with a delay of approximately up to 3 min-the same time was considered for a return path; therefore, the total delay was equal to 6 min. The comparison of the forecasting results with the observed plate waste showed an RMSE equal to 0.03. This section may be divided into subsections. It should provide a concise and precise description of the experimental results, their interpretation, as well as the experimental conclusions that can be drawn. (1 Next, assumptions were applied for the simulation based on the previous analys external food probability-0.3, the probability of children unsatisfied with the scho meal-0.27 and the compromise eating rate-35(5) g/min. The simulation model has two input parameters (see Figure 7) : lunch duration and percentage of children unsatisfied with school food. The results of simulations are d picted in Figure 8 ; however, Figure 9 depicts surface tomograms to easier understand t impact of each input parameter on plate waste. Figure 10 depicts the intersection of r data with the simulated data to validate the model. The schools had lunch durations of 15, 20, 25 and 30 min. The observed plate wa at the schools was intersected with the simulation results adjusted for walking time. T children come into the canteen with a delay of approximately up to 3 min-the same tim was considered for a return path; therefore, the total delay was equal to 6 min. The comparison of the forecasting results with the observed plate waste showed RMSE equal to 0.03. This section may be divided into subsections. It should provide a concise and prec description of the experimental results, their interpretation, as well as the experimen conclusions that can be drawn. In spite of the fact that many parameters of the Monte Carlo model were based o the statistical data of the survey with only 24 responses, the quality control of the dev oped model showed sufficiently good results-an RMSE was equal to ±3%. The minim and maximal absolute errors were 0.55% and 5.84% (the square errors-2.97 × 10 an 3. 41 × 10 , respectively); however, it must be considered that the RMSE was calculat considering the average values for all the observed schools; therefore, the error related the prediction for a city or a region and not for each school individually. In addition, t statistical data applied for the simulator represented a summary for a city. As regards t precision, Malefors et al. [21] mention: "The past year was used for testing the mode against real observations. The current business as usual scenario results in an average pe centage error of 20-40%, whereas the best forecasting case has an error of around 2-3% The developed simulator obtained a MAPE of 10.15%. If considering each class individually, it is possible to see large dispersion of the pla In spite of the fact that many parameters of the Monte Carlo model were based o the statistical data of the survey with only 24 responses, the quality control of the deve oped model showed sufficiently good results-an RMSE was equal to ±3%. The minim and maximal absolute errors were 0.55% and 5.84% (the square errors-2.97 × 10 an 3. 41 × 10 , respectively); however, it must be considered that the RMSE was calculate considering the average values for all the observed schools; therefore, the error related the prediction for a city or a region and not for each school individually. In addition, t statistical data applied for the simulator represented a summary for a city. As regards th precision, Malefors et al. [21] mention: "The past year was used for testing the mode against real observations. The current business as usual scenario results in an average pe centage error of 20-40%, whereas the best forecasting case has an error of around 2-3% The developed simulator obtained a MAPE of 10.15%. If considering each class individually, it is possible to see large dispersion of the pla In spite of the fact that many parameters of the Monte Carlo model were based on the statistical data of the survey with only 24 responses, the quality control of the developed model showed sufficiently good results-an RMSE was equal to ±3%. The minimal and maximal absolute errors were 0.55% and 5.84% (the square errors-2.97 × 10 −5 and 3.41 × 10 −3 , respectively); however, it must be considered that the RMSE was calculated considering the average values for all the observed schools; therefore, the error related to the prediction for a city or a region and not for each school individually. In addition, the statistical data applied for the simulator represented a summary for a city. As regards the precision, Malefors et al. [21] mention: "The past year was used for testing the models against real observations. The current business as usual scenario results in an average percentage error of 20-40%, whereas the best forecasting case has an error of around 2-3%". The developed simulator obtained a MAPE of 10.15%. If considering each class individually, it is possible to see large dispersion of the plate waste in Figure 10 . At this moment, schools do not perform the monitoring of children's satisfaction with school lunch. If schools survey children and collect data on unsatisfied children and the probability of competitive food for each class, it is possible to obtain precise forecasting results for each school. Additionally, the project group did not have a possibility to collect a comprehensive statistic related to path time; therefore, the samples of bounding boxes have left and right movement allowances, which increases the dispersion. Speaking about the plate waste, Martins et al. [24] summarized the information about the plate waste, mentioning the following statistical values: 2-49% for primary school lunches in the United States of America, 23%-in Swedish school canteens and 20-29% of prepared meal in Italian schools. Figure 10 depicts comparable simulated and observed values; however, other regions must tune the developed model using local statistical data on school meals. The developed Monte Carlo model applies two parameters for the simulation: lunch duration and the number of unsatisfied children with school meals. That does not require some complex data monitoring for plate waste forecasting. In addition, considering the relationship depicted in Figure 9 , the input list of the developed model must be extended with the parameter "Competitive food probability". It must be mentioned that the parameterscompetitive food and a number of unsatisfied children-can have a strong correlation that must be studied in the future to simplify the developed model considering its practical usability for schools. Additionally, it can be time consuming for schools to complete a continuous survey of children's preferences; therefore, it is important to consider automatization using digital tools, which can be connected to a system for menu generation to increase children's satisfaction with school meals. The real parameters of schools can be applied for plate waste forecasting. The mathematical models constructed in Figures 9 and 10 can be used to train managers of canteens. Our simulation results precisely show that schools must primarily schedule lunch duration correctly because insufficient time provides the exponential increase in the plate waste amount (see . Additionally, schools must teach children about healthy food importance and monitor food preferences to minimize the rejected food amount and competitive food impact because the competitive and rejected food provides a linear increase in food waste proportional to the number of unsatisfied children (see Figure 9 ). In addition, it is possible to calculate the optimal lunch duration for the ideal conditions when all children are satisfied with school food and do not buy competitive food. Figure 11 depicts the plate waste amount depending on lunch duration, considering the linear model and the recalculated eating rate of 27(2) g/min mentioned by Zandian et al. [25] for girls because the eating rate of girls was lower than the eating rate of boys. Considering the obtained results, the minimal meal duration must be 20 min, excluding walking time and other external factors, which can cause food intake delay. This duration is longer than our previously proposed lunch duration (15 min) based on smaller data amount [26] , which is more consistent with the durations found by Cohen et al. [32] and Hamdi et al. [33] , 20 min and 17/18 min, respectively. It is possible to construct a model for effective decision making to minimize the plate waste of schools based on the simulation results and the developed simulator itself. The capability model for effective decision making on food management in schools is depicted in Figure 12 , where the developed simulator is one of the services, which can be applied to correctly schedule lessons and lunchtime and to train school managers; however, a menu optimization tool must be developed to personalize a menu for children to reduce the number of kids who are not satisfied with school meals and eat competitive food. In addition, measurable properties of children's satisfaction with school meals can be monitored by some IoT solution or data can be collected through mobile application/surveys. The simulator developed by using the Monte Carlo method showed an RMS to ±3% and a MAPE of 10.15%, which represents the best forecasting case menti Malefors et al. [21] ; however, many parameters of the Monte Carlo model applie experiment were based on 24 responses. The practical usage of the developed si requires a larger sample, and the target population must be the educatees of th where the forecasting tool (simulator) will be applied. An RMSE was calculate schools; however, the absolute error for each school obtained a maximal value o which can be reduced using the data on the target school. At the same time, the code for child generation (Table 7) is based on the distribution depicted in Figure 5 The simulator developed by using the Monte Carlo method showed an RMSE equal to ±3% and a MAPE of 10.15%, which represents the best forecasting case mentioned by Malefors et al. [21] ; however, many parameters of the Monte Carlo model applied in the experiment were based on 24 responses. The practical usage of the developed simulator requires a larger sample, and the target population must be the educatees of the school where the forecasting tool (simulator) will be applied. An RMSE was calculated for all schools; however, the absolute error for each school obtained a maximal value of 5.84%, which can be reduced using the data on the target school. At the same time, the pseudocode for child generation (Table 7) is based on the distribution depicted in Figure 5 , which showed two peaks, but it can have an exponential distribution; however, it is not very important because each school can have its own specific distribution. It is more important to mention the limitation of the developed simulator-data updating-therefore, the developed simulator must be supported by the periodical surveys completed by schools; additionally, these surveys can tune the simulator for another target region or school. Further, the developed simulator can be applied as a decision-making tool and a training tool. The simulator developed by using the Monte Carlo method showed an RMSE equal to ±3% and a MAPE of 10.15%, which represents the best forecasting case mentioned by Malefors et al. [21] ; however, many parameters of the Monte Carlo model applied in the experiment were based on 24 responses. The practical usage of the developed simulator requires a larger sample, and the target population must be the educatees of the school where the forecasting tool (simulator) will be applied. An RMSE was calculated for all schools; however, the absolute error for each school obtained a maximal value of 5.84%, which can be reduced using the data on the target school. At the same time, the pseudocode for child generation (Table 7) is based on the distribution depicted in Figure 5 , which showed two peaks, but it can have an exponential distribution; however, it is not very important because each school can have its own specific distribution. It is more important to mention the limitation of the developed simulator-data updating-therefore, the developed simulator must be supported by the periodical surveys completed by schools; additionally, these surveys can tune the simulator for another target region or school. Further, the developed simulator can be applied as a decision-making tool and a training tool. The Monte Carlo method identified that schools must primarily correctly schedule lunch duration because insufficient time leads to an exponential increase in plate waste amount. In the ideal conditions, the simulator showed that the minimal meal duration must be 20 min, excluding walking time. After that, schools must teach children about healthy food importance and negative food waste impacts and monitor food preferences to minimize the rejected food amount and decrease the competitive food probability. The continuous monitoring of children's preferences and their surveys are time-consuming processes that could be automated by digital tools connected to a menu generation system. The developed capability model for effective decision making on food management in schools (Figure 12 ) considers the plate waste only. It does not consider the quality of the meal intake; however, the system could be extended in the future if a computer vision system is developed to measure plate waste components, as well as an ontology, which matches a product with macro and micronutrients. As a result, it will be possible to recalculate the plate waste into insufficient meal intake expressed in macro and micronutrients. However, if a school meal is developed considering nutrition recommendations for a healthy lifestyle, it is a challenge to join these data with data on a competitive food; it can be achieved if children have a personalized health monitoring system, which can import school data and information from their private monitoring systems. Institutional Review Board Statement: The study was exempt by the Scientific Council of Rezekne Academy of Technologies (protocol code 16.1/12 on 18 May 2021) due to not collecting information about the students' parents. Data Availability Statement: All datasets generated during the current study are available from the corresponding author upon reasonable request. Agriculture Organization of the United Nations. The State of Food Agriculture. Moving Forward on Food Loss and Waste Reduction Food waste matters-A systematic review of household food waste practices and their policy implications Reducing food loss and waste: Five challenges for policy and research A Management Framework for Municipal Solid Waste Systems and Its Application to Food Waste Prevention Drivers of food waste and their implications for sustainable policy development Food waste management innovations in the foodservice industry Food waste in the Swiss food service industry-Magnitude and potential for reduction How Food Becomes Waste: Students as "Carriers of Practice" in the UC Davis Dining Commons Food Waste Auditing at Three Florida Schools An optimal plan for food consumption with minimal environmental impact: The case of school lunch menus Measurement of children's food intake with digital photography and the effects of second servings upon food intake 2-Model Development and Data Proto-Col An agent-based model of regional food supply chain disintermediation An agent based model representation to assess resilience and efficiency of food supply chains An Agent-Based Model to Simulate Meat Consumption Behaviour of Consumers in Britain Designing a food supply chain strategy during COVID-19 pandemic using an integrated Agent-Based Modelling and Robust Optimization Impact of plate size on food waste: Agent-based simulation of food consumption Drivers of plate waste: A mini theory of action based on staff observations Drivers of plate waste at buffets: A comprehensive conceptual model based on observational data and staff insights The Impact of a Portion Plate on Plate Waste in a University Dining Hall Potential for using guest attendance forecasting in Swedish public catering to reduce overcatering Food waste reduction and economic savings in times of crisis: The potential of machine learning methods to plan guest attendance in Swedish public catering during the COVID-19 pandemic Fast Eating Is Associated with Increased BMI among High-School Students Factors influencing food waste during lunch of fourth-grade school children Children eat their school lunch too quickly: An exploratory study of the effect on food intake Simulation of a school canteen to understand meal duration impact on food waste Effects of eating rate on satiety: A role for episodic memory? Determinants of children's eating behavior Early Taste Experiences and Later Food Choices Factors Influencing Children's Eating Behaviours Do children favor snacks and dislike vegetables? Exploring children's food preferences using drawing as a projective technique. A cross-cultural study Amount of Time to Eat Lunch Is Associated with Children's Selection and Consumption of School Meal Entrée, Fruits, Vegetables, and Milk Implementation of a Multi-Component School Lunch Environmental Change Intervention to Improve Child Fruit and Vegetable Intake: A Mixed-Methods Study We would like to thank Arnolds Dreilings, the head of the Education Department of the Rezekne State City, Rita Deksne, the chief catering specialist, the principals of the participated schools and the heads of the school canteens, as well as volunteer students and colleagues from Rezekne Academy of Technologies for assistance in sorting plate waste at the schools' canteens. The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.