Recipe recommendation method, computer program implementing recipe recommendation method and recipe recommendation device
Patent Information
- Application Number
- JP2024049087
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-30
- Filing Date
- 2024-03-26
- Publication Date
- 2024-10-11
AI Technical Summary
【0026】 本開示のレシピの推薦方法,レシピの推薦方法を実行するコンピュータプログラム,及びレシピ推薦装置によれば,食材購入コストなどの経済的な視点や,食品ロスの視点,そしてヘルスケアの視点,これら全てを考慮したレシピの推薦を行うことができる。 本開示のレシピの推薦方法,レシピの推薦方法を実行するコンピュータプログラム,及びレシピ推薦装置によれば,ユーザの有する食材の状況が変化した際にいち早くその変化後の食材に対応したレシピの推薦を行うことができる。
Smart Images

Figure 2024144304000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a recipe recommendation method that recommends recipes taking into consideration ingredients possessed by a user, a computer program used in the recipe recommendation method, and a recipe recommendation device. [Background technology]
[0002] There have been many studies on the recommendation of cooking recipes (hereafter referred to as "recipe") from a health care perspective. For example, many recipes that take health into consideration are introduced on recipe sites on the Internet. In the field of mathematical engineering, there has been much research into recipe recommendations based on a healthcare perspective. Karimae et al. (Non-Patent Document 1) recommend a nutritionally balanced menu (a combination of multiple recipes), while Mino et al. (Non-Patent Document 2) consider recipe recommendations that also take into account calorie consumption in daily schedules. Hanai et al. (Non-Patent Document 3) and Maeda (Non-Patent Document 4) consider the generation of healthier recipes than the original recipe by substituting other ingredients for ingredients in the recipe. However, these conventional studies only consider the healthcare perspective and do not consider the purchase of ingredients or the effective use of surplus ingredients. As a result, there is a possibility that the cost of purchasing ingredients for recommended recipes will be high and a lot of food loss (food waste) will occur.
[0003] Some previous research has taken into account the purchasing of ingredients and the effective use of surplus ingredients in addition to a health care perspective. Hayashi et al. (Non-Patent Document 5) recommends menus based on a daily ingredient purchasing cost limit. Zheng et al. (Non-Patent Document 6) recommends recipes that make effective use of surplus ingredients. However, as Hayashi et al. and Zheng et al. do not take into account the expiration date of the ingredients, it is difficult to apply them when there are surplus ingredients with only a short time left until the expiration date. Furthermore, optimization in terms of nutrition and food waste has not been examined.
[0004] Regarding recipe recommendations from the perspective of food waste, Kihara et al. (Non-Patent Document 7), Maeda (Non-Patent Document 8), Maeda (Non-Patent Document 9), and Maeda (Non-Patent Document 10) consider recipe recommendations that utilize surplus ingredients while taking into account expiration dates. Maeda (Non-Patent Document 9) and Maeda (Non-Patent Document 10) consider products with the same ingredients but different weights and prices, and consider recipe recommendations and ingredient purchasing methods to minimize the total of food waste and ingredient purchasing costs, minimize food waste under ingredient purchasing limits, and minimize purchasing costs with minimum food waste. However, Kihara et al. and Maeda (Non-Patent Documents 8-10) do not consider healthcare. [Prior art documents] [Non-patent literature]
[0005] [Non-Patent Document 1] S. Karikome and A. Fujii: “A Retrieval System for Cooking Recipes Considering Nutritional Intake Balance”, IEICE Transaction on Information and Systems, Vol.J92-D, No.7, pp.975-983 (2009) (in Japanese) [Non-Patent Document 2] Y. MINO and I. KOBAYASHI: “Flexible Recommendation of Cooking Recipes for a Diet”, Journal of Japan Society for Fuzzy Theory and Intelligent Informatics, Vol.24, No.1, pp.616-626 (2012) (in Japanese) [Non-Patent Document 3] Shunsuke Hanai, Hidetsugu Namba, and Akiyo Nadamoto: "Methods for discovering alternative ingredients with health in mind", DEIM2015, G6-6 (2015) [Non-Patent Document 4] Y. Maeda: “A Note on Supporting Method for Making Recipes with Control of Nutritional Elements”, IEEJ Trans.EIS, Vol.131, No.9, pp.1654-1655 (2011) (in Japanese) [Non-Patent Document 5] Y. Hayashi, R. Oku, H. Takenouchi and M. Tokumaru: “Consideration of Ingredient Purchases Using the Healthy Eating Habits Support System”, 31st Fuzzy System Symposium, TE1-3 (2015) (in Japanese) [Non-Patent Document 6] M. Zheng, E. Inoue and M. Nakagawa: “Recommending Cooking Recipes Considering the Amount of Ingredients”, DEIM2011, E3-4 (2011) (inJapanese) [Non-Patent Document 7] H. Kihara, M. Ueda and S. Nakajima: “Proposal of recipe recommendation method for using up surplus ingredients”, DEIM2011, E3-3 (2011) (inJapanese) [Non-Patent Document 8] Y. Maeda: “A Note on Recommendation Method for Recipes Considering Expiration Date”, IEICE Transaction on Information and Systems, Vol.J103-D, No.11, pp.849-852 (2020) (in Japanese) [Non-Patent Document 9] Y. Maeda: “Recommendation of Recipes and Additional Purchase of Ingredients Considering Expiration Date”, Journal of Biomedical Fuzzy Systems Association, Vol.23, No.1, pp.9-16 (2021) (in Japanese) [Non-Patent Document 10] Y. Maeda: “Minimizing Food Loss under the Limit on Cost of Purchasing Additional Ingredients”, IEEJ Trans.EIS, Vol.142, No.8, pp.877-883 (2022) (in Japanese) Summary of the Invention [Problem to be solved by the invention]
[0006] Even when recommending recipes from a healthcare perspective, if we assume that the recommendations will be applied to actual eating habits, it is necessary to take into account economic aspects such as the cost of purchasing ingredients and food waste, and it is preferable to recommend recipes taking all of these into consideration. Alternatively, when the ingredients available to a user change, it is desirable to quickly recommend recipes that correspond to the new ingredients. [Means for solving the problem]
[0007] In order to solve the above problems, the present disclosure has the following configuration. [1] The present disclosure relates to a recipe recommendation method that uses dynamic programming to maximize profit or minimize loss of a recommended recipe when recommending recipes T times (1≦t≦T, where T is an integer greater than or equal to 2, and t is an integer), wherein the maximization of profit or minimization of loss is maximization of a score defined from a healthcare perspective or minimization of loss defined from a healthcare perspective, and the score or loss is determined based on whether or not the recommended intake of nutrients contained in the recipe is met.
[0008] The present disclosure relates to a recipe recommendation method that uses dynamic programming to maximize the profit or minimize the loss of a recommended recipe when recommending recipes T times (1≦t≦T, where T is an integer equal to or greater than 2, and t is an integer), where the maximization of profit or minimization of loss is the maximization of a score defined from a healthcare perspective or the minimization of a loss defined from a healthcare perspective, and the score or loss is determined based on whether or not the recommended intake amount of nutrients contained in the recipe is met. Therefore, the method processes the recipe from the Tth recipe recommendation back to the first recommendation, and the maximum total score from the t+1th recommendation onwards can be used recursively. This look-ahead makes it possible to realize planned recipe recommendation that maximizes the score or minimizes the loss of a recommended recipe from a healthcare perspective.
[0009] [2] The present disclosure relates to a method for determining whether the score is a number of nutrients contained in the recipe that are within the range of the upper and lower limits of the recommended intake amount of the nutrients, and the maximization of the score is a maximization of the score over the T rounds or a maximization of the score for each round, If the loss meets the recommended intake amount for the nutrient contained in the recipe, it is set to 0, and if it does not meet the recommended intake amount, it is set to a percentage of the difference from the standard (upper or lower limit) of the recommended intake amount, and this is a method for recommending a recipe in which the minimization of loss is the minimization of loss over all T times or the minimization of loss in each time.
[0010] The present disclosure is that the score is the number of nutrients contained in the recipe that are within the range of the upper and lower limits of the recommended intake amount, and the maximization of the score is the maximization of the score over the entire T times or the maximization of the score for each time, If the loss meets the recommended intake amount for the nutrients contained in the recipe, it is set to 0; if it does not meet the recommended intake amount, it is set to the percentage of the difference from the standard (upper or lower limit) of the recommended intake amount.Since this recipe recommendation method involves minimizing the loss over the entire T times or minimizing the loss in each time, it is possible to focus on the nutrients contained in the ingredients and recommend the best recipe from the perspective of the nutrients to be ingested.
[0011] [3] The present disclosure relates to a recipe recommendation method that executes the dynamic programming method described above to recommend T recipes and recommend additional ingredients to be purchased within T times, based on the weight of surplus ingredients, a budget for additional ingredients that can be purchased, and the weight that is acceptable when discarding the surplus ingredients or the purchased ingredients, and using data on the number of days remaining until the expiration date of the surplus ingredients or the purchased ingredients, and the nutrients and their amounts contained in the surplus ingredients, the purchased ingredients, and the recipes that are candidates for recommendation.
[0012] The present disclosure provides a recipe recommendation method that executes the dynamic programming method, which uses the number of days remaining until the expiration date of the surplus ingredients or purchased ingredients, and data on the nutrients and their contents contained in the surplus ingredients, the purchased ingredients, and the recommended recipes, based on conditions set as the weight of surplus ingredients, the budget for additional purchased ingredients, and the acceptable weight when discarding the surplus ingredients or purchased ingredients, to recommend the recipes T times and to recommend additional purchased ingredients within T times, thereby making it possible to execute an experimental planning method under specified assumptions and to recommend the best recipe under those assumptions.
[0013] [4] The present disclosure relates to the dynamic programming method, When changing from t times to t+1 times, follow steps 1 to 6. Step 1: Subtract the number of days remaining until the expiration date of the food ingredient from the tth time to the t+1th time. Step 2: subtract the weight of the ingredient used in the recipe recommended in the tth time from the weight of the ingredient, and add the weight of any additional ingredient recommended in the tth time, if any; Step 3: Calculate the weight of food ingredients to be discarded when the remaining days until the expiration date becomes 0 after the tth recipe recommendation, and subtract it from the allowable weight. Step 4: From the budget, subtract the cost of any additional ingredients recommended in the tth time. Step 5: Updating the remaining allowable weight of the food ingredient up to the weight at which the food ingredient can be discarded; Step 6: Add the recipe recommended in the tth recipe recommendation to the recipe history information. This is a method for recommending recipes.
[0014] The present disclosure relates to the dynamic programming method, When changing from t times to t+1 times, follow steps 1 to 6. Step 1: Subtract the number of days remaining until the expiration date of the food ingredient from the tth time to the t+1th time. Step 2: subtract the weight of the ingredient used in the recipe recommended in the tth time from the weight of the ingredient, and add the weight of any additional ingredient recommended in the tth time, if any; Step 3: Calculate the weight of food ingredients to be discarded when the remaining days until the expiration date becomes 0 after the tth recipe recommendation, and subtract it from the allowable weight; Step 4: From the budget, subtract the cost of any additional ingredients recommended in the tth time. Step 5: Updating the remaining allowable weight of the food ingredient up to the weight at which the food ingredient can be discarded; Step 6: Add the recipe recommended in the tth recipe recommendation to the recipe history information. This method of recipe recommendation performs the above steps, and the process is performed by going back from the Tth recipe recommendation and additional purchase amount of ingredients to the first time, and the maximum score or minimum loss from the t+1th time onwards can be used recursively. This look-ahead method makes it possible to realize planned recipe recommendations and suggestions for additional purchase amounts of ingredients that maximize the score of the recommended recipe or minimize loss from a healthcare perspective.
[0015] [5] The present disclosure may be a method for recommending a recipe as described in claim 4, in which information about ingredients is obtained through an electronic receipt. The present disclosure provides a recipe recommendation method as described in claim 4 in which information regarding the ingredients is obtained through an electronic receipt, so that information regarding purchased ingredients can be received as electronic information from the issuer of the electronic receipt, eliminating the need for the user to input information regarding purchased ingredients one by one.
[0016] [6] The present disclosure may be a computer program product that executes any of the recipe recommendation methods described above. Since the present disclosure is embodied as a computer program for executing any one of the recipe recommendation methods, any one of the recipe recommendation methods can be executed on a computer.
[0017] [7] The present disclosure may be a recipe recommendation device that has a control means, a storage means, and a communication means, and executes any of the recipe recommendation methods described above. The present disclosure provides a recipe recommendation device that has a control means, a storage means, and a communication means and executes any one of the recipe recommendation methods described above, and therefore the recipe recommendation method can be executed by this recipe recommendation device.
[0018] TIFF2024144304000002.tif78166
[0019] TIFF2024144304000003.tif83166
[0020] TIFF2024144304000004.tif57166
[0021] TIFF2024144304000005.tif63166
[0022] TIFF2024144304000006.tif98166
[0023] TIFF2024144304000007.tif111166
[0024] The present disclosure can be a recipe recommendation method in which, after the t-th recipe recommendation, new ingredient information is added, such as ingredients that exceed the additional purchase amount of ingredients recommended at the t-th recipe recommendation or ingredients other than the recommended ingredients, and a new dynamic programming is performed to recommend a recipe.If new ingredient information that was not originally planned is added, a new recipe and additional ingredient purchase amounts that take that ingredient information into consideration can be proposed.
[0025] The present disclosure can be a recipe recommendation method that does not recommend the remaining number of recipes if, after the tth recipe recommendation, information is not received that an additional amount of an ingredient recommended at the time of the tth recipe recommendation has been purchased, thereby eliminating the waste of receiving the remaining number of recipe recommendations that would have been proposed under the initial conditions. Effect of the Invention
[0026] According to the recipe recommendation method, the computer program for executing the recipe recommendation method, and the recipe recommendation device disclosed herein, it is possible to recommend recipes that take into consideration economic aspects such as the cost of purchasing ingredients, food waste, and healthcare aspects. According to the recipe recommendation method, the computer program for executing the recipe recommendation method, and the recipe recommendation device disclosed herein, when the availability of ingredients in the user's possession changes, a recipe that corresponds to the changed ingredients can be quickly recommended. [Brief description of the drawings]
[0027] [Figure 1] FIG. 1 is a block diagram of a recipe providing system. [Diagram 2] FIG. 1 is a block diagram of a recipe recommendation device. [Diagram 3] FIG. 1 is an explanatory diagram for explaining processing of a dynamic programming algorithm. [Figure 4] 1 is a flowchart illustrating the process of a dynamic programming algorithm. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0028] The recipe recommendation method of the present disclosure will be described based on the embodiment. Note that in the following description, even if the embodiment is different, if there are overlapping parts regarding the same operation method, various conditions, actions, effects, etc., the description thereof will be omitted.
[0029] [System configuration of recipe recommendation system] An embodiment of a recipe providing system 1 (hereinafter also referred to as "the system") that executes the recipe recommendation method according to the present disclosure is shown in the block diagram of Figure 1. The recipe providing system 1 is a system including a recipe recommendation device 10, a user terminal 20, and a network 50 that connects them so that they can communicate with each other.
[0030] The user terminal 20 is a mobile information terminal such as a smartphone, tablet, or PDA used by a user, a wearable computer, or a personal computer. The hardware constituting the user terminal 20 has a processor such as a CPU that performs various calculations and serves as a control means, and has a communication interface as a communication means for transmitting the recorded data to the recipe recommendation device 10, such as a ROM that records data such as information recorded on electronic receipts that can be issued at online supermarkets or supermarkets with physical stores, a RAM used to execute the programs, and a HDD that serves as an auxiliary storage means for recording large amounts of data. In addition, the user terminal 20 has a display unit that displays various data and images received from the recipe recommendation device 10, and an input unit for performing user operations such as keys, a touch sensor, and a scanner.
[0031] When the user inputs the ingredients, their prices, quantities, etc. shown on the paper receipt through the input unit, the data can be transmitted to the recipe recommendation device 10, which will be described later, through the communication means. Alternatively, when the user inputs data such as an image of the inside of the refrigerator through the input unit, the data can be transmitted to an external server, which will be described later, through the communication means, and the data converted into the names of ingredients, etc. can be received from the external server through the communication means and recorded in the storage means.
[0032] 2 shows a block diagram showing the system configuration of the recipe recommendation device 10. The recipe recommendation device 10 is a main management server device of the recipe providing system 1, and has a control means 11, a main memory means 12, an auxiliary memory means 13, a communication means 14, and other means 15. The main memory means 12 and the auxiliary memory means 13 are collectively referred to as a memory means. The control means 11 is a calculation unit that performs various calculations, and is a processor such as a CPU or GPU. The main memory means 12 is a storage unit that records programs and data, and is composed of a ROM, RAM, etc. The auxiliary memory means 13 is a storage unit that records large amounts of data, and is a device such as an HDD, SSD, or flash memory. The communication means 14 is a communication unit that performs data communication with the user terminal 20 or with other computers via the network 50, and can be executed using a network card, a wireless communication module, etc. In addition to these configurations, it has other means 15 including a display means, an input means, etc.
[0033] In addition to the above, the recipe provision system 1 may also have store servers used by online supermarkets and supermarkets with physical stores, receipt servers used by electronic receipt providers, external servers capable of managing and recording various information and data such as user-related information and recipe information, and various other servers, and these servers are also configured to be able to send and receive information and data via the network 50.
[0034] [Functions of recipe recommendation device] Next, we will explain the functions of the recipe recommendation device 10. Note that the following functions are realized by a control means such as a CPU of the recipe recommendation device 10 executing a program.
[0035] Storage: The storage unit is a part for recording various information and data, and can be provided in storage means such as the main storage means 12 and the auxiliary storage means 13. Alternatively, the information and data may be recorded in a storage device (not shown) managed by an external server separate from the recipe recommendation device 10.
[0036] Recipe Database (Recipe DB): Recipe database 16 is a database that records recipes recommended to users. Information included in each recipe includes the name of the recipe, such as salmon stewed in tomato sauce or beef thigh stewed in beef sukiyaki, the names of ingredients used in the recipe, such as onion and tomato, and the numbers of the ingredients in the recipe, the amount (g) of the ingredients used in the recipe, the nutrients contained in the recipe and their contents, a score from a health care perspective, and other information necessary to prepare the dish provided as a recipe. In addition to the ingredients such as meat, fish, or vegetables, seasonings may also be included.
[0037] Nutrient Database (Nutrient DB): Nutrient database 17 is a database that records information and data about nutrients contained in food ingredients. Information about nutrients includes the name (type) of the nutrient, for example, vitamin A, calcium, phosphorus, etc., and energy (calories) can also be included in the name of the nutrient. Information about nutrients also includes the upper limit of the nutrient that a person may ingest in a day, the lower limit of the nutrient that a person must ingest in a day, etc.
[0038] Food Database (Food DB): Ingredient database 18 is a database that records information about various ingredients. Information about various ingredients includes the name of the ingredient, such as onion or tomato, and the amount of the ingredient (g). The purchase amount of an ingredient that is not used at all after purchase, or the amount that remains when some of the ingredient is used after purchase, can also be referred to as the surplus amount. Further information about ingredients can include the number of days (days) remaining until the ingredient's expiration date (here, the last day of the expiration date is counted as day 1, and when day 0 is reached, the ingredient has passed the expiration date and cannot be consumed), the nutrients contained in the ingredient and their content, other information necessary for ingredients used in recipes, etc. The food ingredient information may also include information about the food ingredient, such as the place of origin of the food ingredient, the time of arrival of the food ingredient, etc. This information may also include information stored as image information.
[0039] Food product database (Food product DB): The food product database 19 is a database that contains information on the quantity (g), price, number of days remaining until the expiration date of food products (here, a food product is defined as a group of the same food ingredients that have different weights or prices at the time of purchase), and other products if the food ingredients are considered to be some kind of grouped product.
[0040] User Database (User DB): The user database 20 is a database that records information about a user who receives recipe recommendations. The user database 20 is a database that records information that identifies the user, such as the user's name, age, address, sex, and user number, as well as history information about products purchased by the user, such as information about ingredients acquired by the user, such as information on electronic receipts and information obtained by photographing paper receipts and then converting them into text data, ingredient information processed from an image of the inside of the user's refrigerator, and ingredient weight information obtained from a weighing means installed in the refrigerator. In addition to these, the amount of the budget for additional purchase of ingredients desired by the user, such as the limit on the amount of additional purchase of ingredients that must be purchased in order to receive T recipe recommendations in T days and create those recipes, and the waste limit amount of ingredients that can be discarded, such as the remaining amount (g) of ingredients that can be allowed to remain after receiving T recipe recommendations in T days and creating those recipes, or the waste limit amount in the case where those ingredients are discarded. In addition, the database also includes various information desired by the user, such as recipe recommendation history information, i.e., the names and number of times of recipes that have been recommended so far.
[0041] Other databases (Other DB): The other database 21 is a database that records various data generated during the calculation process, temporarily stored data, and other information and data other than the information and data recorded in the various databases 16, 17, 18, 19, and 20 mentioned above.
[0042] External information database (External Information DB): The external information database 22 is a database that records information and data obtained by sending and receiving information and data other than from the user terminal 30, such as information and data sent from store servers of online supermarkets or supermarkets with physical stores, and information and data sent from receipt servers used by electronic receipt companies.
[0043] [How to recommend recipes] Next, a method for recommending recipes will be described together with the operation of the recipe recommendation device 10. In response to a request for a recipe recommendation from a user, the recipe recommendation device 10 recommends an appropriate recipe. Note that in the specification and claims, "recommending a recipe" is synonymous with providing a recipe.
[0044] Get the data: The control means 11 functioning as a data acquisition unit 22 acquires from the recipe DB 16, nutrient DB 17, ingredient DB 18, ingredient product DB 19, etc., initial data relating to the initial amount of surplus ingredients before the recipe is recommended, the number of days remaining until the expiration date, the number of recommendations, the limit on additional ingredient purchases, and the maximum amount of ingredients that may be discarded, as well as recipe information, nutrient information, ingredient information, and ingredient product information that are information necessary for recipe recommendation related to the initial data.
[0045] Information regarding newly purchased ingredients by the user can be input by the user from the user terminal 30 and recorded in the storage means 12, 13, and information from the electronic receipt can be imported into the recipe recommendation device 10 in cooperation with the receipt server of an electronic receipt provider, or data can be imported into the recipe recommendation device 10 in cooperation with an ingredient detection system in the user's refrigerator.
[0046] Healthcare score calculation: The health care perspective is to consider the nutritional value of the ingredients used in the recipe, and the score from the health care perspective is calculated based on the ingredients and nutrients contained in the recipe. There are two methods for calculating this score: one is to evaluate the recipe based on the food group evaluation and the other is to calculate the nutrient content of all the ingredients in the recipe and evaluate the recipe based on the recommended intake for each nutrient. In the following, the nutrient evaluation is used. More specifically, for each nutrient contained in the recipe, whether it is within the lower and upper limits of the recommended intake is considered, and the number of nutrients within that range is used as the score. For example, recipe A contains vitamin A, vitamin B, protein, lipid, etc. as nutrients, and while vitamin A and vitamin B are within the recommended intake range, protein is less than the recommended intake range and deviates from it, lipids are more than the recommended intake range and deviates from it, and other nutrients are also outside the recommended intake range. In this case, the nutrients contained in recipe A that are within the recommended intake range are vitamin A and vitamin B, so the score for recipe A was calculated as 2. The control means 11, functioning as the score calculation unit 24, calculates a score for each recipe based on the ingredient information of the recipe. Note that it is possible to calculate a score for each recipe in advance and record the recipe name and score at the same time.
[0047] Calculating losses from a healthcare perspective: In addition to the above scores, we define losses using the ratio of deficiency / excess of each nutrient content compared to the standard intake amount, and propose ways to minimize losses from a healthcare perspective. More specifically, we propose recipes that minimize each loss by defining two patterns of loss: loss evaluated for one recipe recommendation and loss evaluated over the entire period (T times), based on evaluation based on the ratio of deviation from the standard intake amount of each nutrient. The control means 11, which functions as the score calculation unit 24, calculates the loss for each recipe based on the ingredient information of the recipe. Note that the loss can be calculated in advance for each recipe and the recipe name and loss can be recorded at the same time.
[0048] Recommended recipes and additional ingredient purchase suggestions: Within the limits of the maximum amount of additional purchases of ingredients and the maximum amount of ingredients to be discarded, dynamic programming is used to plan T recipe recommendations (1≦t≦T, where T is an integer equal to or greater than 2, t is an integer) at time intervals, and after the tth recipe recommendation, a process is carried out in which a certain state before the recommendation is updated and changed to the state for the t+1th time, and a recipe and additional purchase amount of ingredients that maximizes the score for the final recipe recommendation up to the Tth recipe recommendation are derived. Alternatively, a recipe and additional purchase amount of ingredients that minimizes the loss for the final recipe recommendation up to the Tth recipe recommendation are derived.
[0049] Here, the above-mentioned state is defined as the elements consisting of the number of days remaining until the expiration date of the ingredients, the surplus amount of ingredients, the remaining budget for the limit on additional purchases of ingredients, the remaining allowable amount for the limit on the amount of ingredients to be discarded, and the history information of the recommended recipe.Then, by carrying out the processes in steps 1 to 6 below, the state at the time of the tth recipe recommendation is changed to the state at the time of the t+1th recipe recommendation.
[0050] Step 1: Subtract the number of days that have elapsed from the tth recipe recommendation to the t+1th recipe recommendation from the number of remaining days until the expiration date of the ingredients. Step 2: From the surplus amount of ingredients, subtract the amount of ingredients used in the tth recommended recipe and add the additional purchase amount of the recommended ingredients, if any. Step 3: Calculate the amount of food to be wasted when the number of days remaining until the expiration date becomes 0 after the t-th recipe recommendation, and subtract this amount from the surplus amount. Step 4: Regarding the remaining budget for the limit on additional food ingredient purchases, if an additional purchase is required for the t-th recipe recommendation, the cost is deducted. Step 5: Subtract the calculated waste amount of food ingredients from the remaining allowable amount relative to the waste limit amount of food ingredients. Step 6: Add the recipe recommended in the t-th recipe recommendation to the history information of the recommended recipes.
[0051] TIFF2024144304000008.tif80166
[0052] TIFF2024144304000009.tif61166
[0053] First embodiment: In one embodiment of recipe recommendation, the system predetermines the maximum amount of additional ingredients to be purchased in order to receive a recipe recommendation and the maximum amount of ingredients to be discarded after receiving all recipe recommendations, based on the ingredients owned by the user, and provides recipes and the amount of additional ingredients to be purchased as output for T days, one recipe per day, under those conditions.The recommended recipe is the one with the highest score from a health care perspective. <Definition / Preparation> First, symbols used in this embodiment will be defined.
[0054] TIFF2024144304000010.tif49166
[0055] TIFF2024144304000011.tif69166
[0056] TIFF2024144304000012.tif70166
[0057] TIFF2024144304000013.tif50166
[0058] TIFF2024144304000014.tif57166
[0059] TIFF2024144304000015.tif37166
[0060] TIFF2024144304000016.tif74166
[0061] TIFF2024144304000017.tif57166
[0062] TIFF2024144304000018.tif49166
[0063] TIFF2024144304000019.tif76166
[0064] TIFF2024144304000020.tif26166
[0065] TIFF2024144304000021.tif38166
[0066] TIFF2024144304000022.tif43166
[0067] TIFF2024144304000023.tif49166
[0068] TIFF2024144304000024.tif43166
[0069] TIFF2024144304000025.tif82166
[0070] TIFF2024144304000026.tif91166
[0071] TIFF2024144304000027.tif113166
[0072] TIFF2024144304000028.tif77166
[0073] TIFF2024144304000029.tif47166
[0074] TIFF2024144304000030.tif46166
[0075] Table 6 shows the amount of ingredients (grams, 4 servings) used in each recipe. Here, we consider 4 servings. In this example, seasonings etc. are omitted. i Nutrients in 1 gram of j Content of gi (i,j) are shown in Tables 7 and 8(16). Food product (weight, price, number of days remaining until expiration date) is shown in Table 9. Food product prices were based on the Ministry of Agriculture, Forestry and Fisheries' Food Price Trend Survey and prices from online supermarkets. Initial surplus food products (surplus amount, number of days remaining until expiration date) are shown in Table 10. The initial surplus amount of food products not listed in Table 10 is 0. The number of times (number of days) the recipe is recommended is T = 4 times, and one recipe for a main dish for dinner once a day and the purchase of food products for that day are recommended (calculated).
[0076] TIFF2024144304000031.tif110166
[0077] TIFF2024144304000032.tif122166
[0078] TIFF2024144304000033.tif120166
[0079] TIFF2024144304000034.tif235166
[0080] TIFF2024144304000035.tif40166
[0081] TIFF2024144304000036.tif87166
[0082] TIFF2024144304000037.tif138166
[0083] TIFF2024144304000038.tif43166
[0084] TIFF2024144304000039.tif43166
[0085] TIFF2024144304000040.tif130166
[0086] TIFF2024144304000041.tif43166
[0087] Also, the food waste of 100 grams in Table 13 is less than the 200 grams in Table 11. However, the additional purchase cost of 3,572 yen in Table 13 is 50 yen higher than in Table 11. Tables 11 and 13 have the same four recommended recipes, but the order is different. Due to the difference in order, Table 11 discards 200 grams of cabbage, while Table 13 discards 100 grams of cucumber. The initial surplus food ingredient of 200 grams of cabbage is 40 grams short of the amount required for r8 Stir-fried chicken thighs without skin, so even in Table 13, where no cabbage is discarded, additional cabbage is purchased. Therefore, the additional purchase cost of Table 13 is higher than that of Table 11, due to the 50 yen for 100 grams of cucumber.
[0088] TIFF2024144304000042.tif136166
[0089] In this way, by changing the limits L1 and L2 for additional purchases and food waste, it is possible to improve additional purchase costs and food waste under the same maximum score. However, the appropriate degree of change for each limit is unclear. The above algorithm only maximizes the score, but when considering the economic perspective and food waste perspective of the household, smaller purchase costs and food waste are preferable, even within the limits.
[0090] <Algorithm of Improvement Proposal Method 1 of the First Embodiment (Algorithm 1-2)> We considered improvements to the basic proposed method of the first embodiment. We determined the method of minimizing the additional purchase cost under the maximum score of the basic proposed method and further minimizing food waste under the minimum additional purchase cost as the improved proposed method 1.
[0091] TIFF2024144304000043.tif69166
[0092] TIFF2024144304000044.tif56166
[0093] <Example 2 (Application example of algorithm 1-2)> An application example using the algorithm of the improvement proposal method 1 of the first embodiment will be shown below. Table 14 shows the results of the improved proposed method 1 for the same settings as Table 11 for the basic proposed method (Tables 1 to 10, number of times T = 4, additional purchase limit L1 = 5,000 yen, food waste limit L2 = 1,000 yen per gram).
[0094] TIFF2024144304000045.tif132166
[0095] Table 14 shows the same results as Table 12 for the basic proposed method. In the basic proposed method, the additional purchase cost was reduced to 3162 yen by changing the additional purchase limit L1 from 5000 yen to 3200 yen. On the other hand, in the improved proposed method 1, the optimal solution was calculated for an additional purchase cost of 3162 yen under the additional purchase limit of 5000 yen by minimizing the additional purchase cost under the maximum score using equation (14).
[0096] <Algorithm of Improvement Proposal Method 2 in the First Embodiment (Algorithm 1-3)> An improvement to the basic proposed method was considered separately from the improved proposed method 1. The method of minimizing food waste under the maximum score of the basic proposed method and further minimizing additional purchase costs under the minimum food waste was defined as the improved proposed method 2 of the first embodiment. In other words, improvement proposal method 2 is an improvement method in which the priorities of additional purchasing costs and food waste are reversed from those in improvement proposal method 1.
[0097] TIFF2024144304000046.tif61166
[0098] TIFF2024144304000047.tif56166
[0099] <Example 3 (Application of Algorithm 1-3)> An application example using the algorithm of the improvement proposal method 2 in the first embodiment will be shown below. Table 15 shows the results of the improved proposed method 2 for the same settings as Table 11 for the basic proposed method (Tables 1 to 10, number of times T = 4, additional purchase limit L1 = 5,000 yen, food waste limit L2 = 1,000 grams).
[0100] TIFF2024144304000048.tif131166
[0101] The food loss in Table 15 is 100 grams, the same as in Table 13 for the basic proposed method. In the basic proposed method, food loss was reduced to 100 grams by changing the food loss limit L2 from 1000 grams to 100 grams. On the other hand, the improved proposed method 2 calculated an optimal solution of 100 grams of food loss under a food loss limit of 1000 grams by minimizing food loss under the maximum score using equation (16). In addition, the additional purchase cost for the basic proposed method is 3572 yen, while that for the improved proposed method 2 is 3212 yen. This is because the additional purchase cost is further minimized under the minimum food loss under the maximum score using equation (17). In addition, the combinations of recommended recipes in Table 14 of improvement proposal method 1 and Table 15 of improvement proposal method 2 are the same but in different orders, and the ingredients to be discarded and the ingredients to be additionally purchased are also different. This difference is due to the difference in the priorities of additional purchase costs and food waste in the two methods.
[0102] <Comparison between the method proposed in the first embodiment and empirical rules> Improvement proposal method 1 or improvement proposal method 2 was compared with a simple rule of thumb. It is self-evident that the optimal solution of the proposed method of the first embodiment for solving the optimization problem is superior to the solution of the rule of thumb in any aspect (score / additional purchase cost / food waste) due to the nature of the optimization problem, but the proposed method of the first embodiment was compared with the rule of thumb to specifically confirm the difference.
[0103] Rule of thumb 1: Do not recommend duplicate recipes, and recommend recipes with higher scores. For ingredients that are in short supply, purchase the product with the lowest additional purchase cost for the day. If the scores are the same, recommend the recipe with the lowest additional purchase cost for the day. Rule of thumb 2: Recommend recipes with the highest priority on consuming surplus ingredients with one day left until the expiration date. Others are the same as rule of thumb 1. However, if there are multiple surplus ingredients with one day left, recommend the recipe with the smallest amount of waste on that day. If the amount of waste on that day is the same, recommend the recipe with the smallest additional purchase cost on that day. Rule of thumb 3: Do not recommend duplicate recipes, and recommend the recipe with the lowest additional purchase cost on the day. Rule of thumb 4: Recommend recipes with the highest priority on consuming surplus ingredients with one day left until the expiration date. Others are the same as rule of thumb 3. However, if there are multiple surplus ingredients with one day left, recommend the recipe with the smallest amount of waste on that day. If the amount of waste on that day is the same, recommend the recipe with the smallest additional purchase cost on that day. Rule of thumb 5: The additional purchase limit on the day is 2,000 yen, and everything else is the same as rule of thumb 1. Rule of thumb 6: The additional purchase limit on the day is 2,000 yen, and everything else is the same as rule of thumb 2.
[0104] Table 16 shows the recipe scores, food waste, and additional purchase costs from the comparison results between the proposed method of the first embodiment and empirical rules. The common settings are Tables 1 to 10, and the number of times T=4. IP1_5000 is a re-listing of Table 14 of improvement proposal method 1 (additional purchase limit 5000 yen, food waste limit 1000 grams), and IP2_5000 is a re-listing of Table 15 of improvement proposal method 2 (additional purchase limit 5000 yen, food waste limit 1000 grams). IP1_6000 and IP2_6000 are the cases where the additional purchase limit is 6000 yen for improvement proposal method 1 and improvement proposal method 2. EM1 to EM6 are empirical rules 1 to 6.
[0105] TIFF2024144304000049.tif92166
[0106] First, we confirm the results of empirical rule 3 (EM3), which only aims to minimize the additional purchasing cost on the day, and empirical rule 4 (EM4), which adds a priority rule when there is only 1 day left until the expiration date to empirical rule 3. Since there is no healthcare perspective, the recipe score is clearly lower than the other empirical rules and the proposed method. In addition, a comparison of empirical rules 3 and 4 shows that empirical rule 3 has lower additional purchasing costs and empirical rule 4 has less food waste, depending on whether or not there is a priority rule when there is only 1 day left until the expiration date.
[0107] Next, we confirm the results of empirical rule 1 (EM1), which prioritizes the health care perspective and aims only to maximize the score, and empirical rule 2 (EM2), which adds a priority rule for when the number of remaining days is 1 to empirical rule 1. Both empirical rules 1 and 2 have a score of 34, which is higher than the application examples of improvement proposal method 1 or improvement proposal method 2. Specifically, by recommending recipe r7 Tomato sukiyaki with egg (beef fillet), which has a score of 10, a total score of 34 is achieved. Compared to the additional purchase limit of 5,000 yen for the application examples of the above proposed methods, the additional purchase costs of both empirical rules 1 and 2 are greater than 5,000 yen. Therefore, when we check IP1_6000 and IP2_6000, which have a limit of 6,000 yen for improvement proposal method 1 or improvement proposal method 2, the scores for both are 34. In addition, the additional purchase cost of IP1_6000, which prioritizes minimizing additional purchase costs over food waste under the maximum score, is 5,400 yen, which is lower than the 5,500 yen of empirical rule 1. The food waste of 100 grams of IP2_6000, which prioritizes minimizing food waste over additional purchase costs under the maximum score, is the same as empirical rule 2. However, the improvement proposal method 2 also minimizes additional purchase costs under the maximum score while minimizing food waste, so the additional purchase cost of IP2_6000, 5,502 yen, is 140 yen lower than the 5,642 yen of empirical rule 2.
[0108] Finally, we look at empirical rules 5 and 6 (EM5,6), which add an additional purchase limit of 2,000 yen for the day to empirical rules 1 and 2. Both scores are 32, the same as IP1_5000 and IP2_5000 for improvement proposal method 1 and improvement proposal method 2. Food waste is 200 grams for empirical rule 5 and IP1_5000, which prioritizes additional purchase costs, and 100 grams for empirical rule 6, which prioritizes food consumption with 1 remaining day, and IP2_5000, which prioritizes food waste. On the other hand, the additional purchase costs are IP1_5000 (3,162 yen) 100 yen lower than empirical rule 5, and IP2_5000 (3,212 yen) 170 yen lower than empirical rule 6.
[0109] In the above comparison, the main difference between improvement proposal method 1 or improvement proposal method 2 and the empirical rules seems to be only the additional purchase cost. However, it can also be interpreted that there is a difference in the score from the healthcare perspective. The additional purchase limit for the day in empirical rules 5 and 6 is 2000 yen, and a maximum expenditure of 8000 yen over 4 days is allowed. However, the empirical rules are simply processed on a day-by-day basis, and there is no planning like improvement proposal method 1 or improvement proposal method 2. If a high expenditure (about 3000 yen) is allowed only for one day, a score of 34 is possible with an additional purchase cost of less than 8000 yen by recommending recipe r7 beef fillet tomato sukiyaki (with warm egg) as with empirical rules 1 and 2 (EM1,2), improvement proposal method 1 or improvement proposal method 2's IP1_6000 and IP2_6000. However, in empirical rules 5 and 6 (EM5,6), due to the simple processing of the additional purchase limit of 2000 yen for the day, the actual score is 32, which is lower than 34.
[0110] As mentioned above, when comparing Improvement Proposal Method 1 or Improvement Proposal Method 2 for solving optimization problems with empirical rules, it is obvious that there will be differences in the solutions. Improvement Proposal Method 1 or Improvement Proposal Method 2 uses dynamic programming to look ahead and systematically optimize the score / additional purchase cost / food waste. Since empirical rules do not involve optimization processing, differences in the solutions may occur.
[0111] <Consideration> Since the priorities of additional purchase costs and food waste are different in improvement proposal method 1 and improvement proposal method 2, which method is preferable depends on the user's values. The method of weighting additional purchase costs and food waste according to values and minimizing the weighted sum can be considered as a compromise between improvement proposal method 1 and improvement proposal method 2.
[0112] Next, we considered the nutrients contained in the recommended recipes in the basic proposal method, the improved proposal method 1, and the improved proposal method 2 of the first embodiment. Specific application examples of the basic proposal method, the improved proposal method 1, and the improved proposal method 2 are shown in Tables 11 to 15. From the results, we focused on the combination of recipes, although the order of the recipe recommendations and the purchased products in each table are different. The combination of recommended recipes is (r2, r3, r6, r8) and (r2, r3, r8, r 10 ) The score for nutrients is 32 for both sets. In both sets, of the 15 nutrients in Table 3, the same 12 nutrients are found to satisfy the conditions in at least one recipe. However, for the remaining three nutrients calcium, magnesium, and vitamin A, for which no recipes that satisfy the conditions are recommended, there are no recipes in Table 2 that satisfy the conditions.
[0113] For the 12 nutrients with recipes that satisfy the conditions, the number of recipes that satisfy the conditions in Table 2 is a maximum of 9 for 1 nutrient, 8 for 1 nutrient, 7 for 3 nutrient, 5 for 1 nutrient, 4 for 3 nutrients, 3 for 2 nutrients, and a minimum of 2 for 1 nutrient. On the other hand, for the same 12 nutrients, the number of recipes that satisfy the conditions in the two sets of four recipes above is 4 for 3 nutrients, 3 for 3 nutrients, 2 for 5 nutrients, and 1 for 1 nutrient. These numbers are the same for both sets. The only difference between the two sets is the swapping of the nutrient in recipe number 2 with the nutrient in recipe number 1.
[0114] Given the above problem setting and application example settings such as the recipe set, the combination of the two recommended recipes is considered appropriate from a healthcare perspective. However, depending on the application example settings, there is a possibility that nutrients may be biased in order to maximize the score. In other words, even if there are recipes in the recipe set that satisfy the conditions for the nutrient, there is a possibility that an optimal solution may be calculated that does not recommend any recipes that satisfy the conditions for the nutrient. Therefore, it is necessary to consider ways to avoid the occurrence of such bias.
[0115] Next, we considered three nutrients for which there are no recipes in Table 2 that meet the conditions. Of the three nutrients, the calcium and magnesium contents are insufficient relative to the conditions in all recipes in Table 2. On the other hand, there are recipes that both deficiency and excess of vitamin A. Therefore, depending on how the recipe is selected (recommended), even if the conditions are not met in one go (one day), it is possible that the conditions will be met on average over several times (several days). According to the Ministry of Health, Labor and Welfare's Dietary Reference Intakes for Japanese (2020 edition), the period required for the onset of health problems varies greatly depending on the type of nutrient, and daily assessments of nutrient intake status in health guidance are inappropriate.
[0116] In this disclosure, we considered the evaluation of the target period by accumulating evaluations for each time (each day) using formula (2) and formula (3). Considering the example of vitamin A above and the indications in the Dietary Reference Intakes for Japanese (2020 edition), it is necessary to evaluate the average nutrient intake over the entire target period. For example, the recipe evaluation mechanism based on formula (2) and formula (3) in this disclosure can be expanded to an evaluation mechanism based on the cumulative value (or average value) of nutrient intake over the entire period.
[0117] In the above embodiment, the setting was such that shopping could be done for each day of the target period (shopping can be done every day), but a setting where shopping is only possible on limited days during the target period (when shopping is not possible every day) is also possible. For example, no shopping is done on day t, and the immediately preceding shopping day is day t-2. In this case, this can be handled by setting a food product that is two days less than the number of days remaining until the expiration date of the original food product as an option for additional purchases on day t. In other words, the food product selected as an additional purchase on day t is actually purchased on day t-2, and on day t, the product is used (opened) two days after purchase.
[0118] Second embodiment: In the first embodiment, we proposed a basic proposal method that recommends recipes and additional ingredients for purchase that maximize the evaluation score from a healthcare perspective, subject to limits (constraints) on additional ingredient purchase costs and food waste (disposal), and improved proposal method 1 and improved proposal method 2 that minimize additional purchase costs and food waste among optimal solution candidates when there are multiple optimal solutions with the maximum evaluation scores.
[0119] In real life, shopping is not always possible every day, and recipe recommendations are not always necessary every day. Therefore, a recommendation method that allows the additional ingredient purchase date and recipe recommendation date to be set arbitrarily is desirable. However, in the method of the first embodiment, every day of a finite continuous T-day period is set as an additional ingredient purchase date (a day when shopping is possible) and a recipe recommendation date, so it is not possible to accommodate arbitrary purchase dates or recommendation dates. Therefore, in this embodiment, the method of the first embodiment is expanded to propose a recommendation method that allows the purchase date and recommendation date to be set arbitrarily.
[0120] Furthermore, in the first embodiment, the recipe evaluation from a healthcare perspective uses a simple score definition in which if the content of each nutrient is within the range of the standard intake amount, etc., it is given 1 point, and if it is outside the range, it is given 0 point. As a result, multiple examples of combinations of T recipes with the same maximum total score were presented in T recipe recommendations. If evaluated more strictly from a healthcare perspective, the optimal combination of recipes may be fewer than the multiple combinations. Therefore, in this embodiment, a loss is defined that uses the ratio of the shortage / excess amount relative to the standard intake amount, etc., and a method is proposed to minimize the loss from a healthcare perspective.
[0121] The method of this embodiment corresponds to an extension of the method of the first embodiment, and similarly to the method of the first embodiment, loss is minimized using dynamic programming. In this embodiment, one recipe is recommended at a time on the recipe recommendation date, and only main ingredients are targeted as ingredients, omitting seasonings, etc.
[0122] As in the first embodiment, we propose a basic proposed method, an improved proposed method 1, and an improved proposed method 2. The basic proposed method simply calculates the optimal solution from a healthcare perspective. The improved proposed method 1 and the improved proposed method 2 are methods for cases where there are multiple optimal solution candidates from a healthcare perspective. The improved proposed method 1 prioritizes reducing additional purchasing costs, and also minimizes additional purchasing costs and food waste among the optimal solution candidates. The improved proposed method 2 prioritizes reducing food waste, and also minimizes food waste and additional purchasing costs among the optimal solution candidates.
[0123] TIFF2024144304000050.tif56166
[0124] TIFF2024144304000051.tif39166
[0125] TIFF2024144304000052.tif85166
[0126] TIFF2024144304000053.tif47166
[0127] TIFF2024144304000054.tif52166
[0128] TIFF2024144304000055.tif87166
[0129] TIFF2024144304000056.tif27166
[0130] TIFF2024144304000057.tif62166
[0131] TIFF2024144304000058.tif53166
[0132] TIFF2024144304000059.tif73166
[0133] TIFF2024144304000060.tif66166
[0134] TIFF2024144304000061.tif53166
[0135] TIFF2024144304000062.tif66166
[0136] TIFF2024144304000063.tif88166
[0137] TIFF2024144304000064.tif62166
[0138] TIFF2024144304000065.tif38166
[0139] TIFF2024144304000066.tif55166
[0140] TIFF2024144304000067.tif51166
[0141] <Omission of Application Example of Algorithm 2-1> In the basic proposal method of the second embodiment, a recommended recipe and additional purchase ingredient products that minimize loss from a healthcare perspective are calculated, but there may be multiple optimal solution candidates (combinations of ingredient products to purchase, etc.) for the minimum loss value. Since the argmin function in NumPy of the Python language was used for the calculation, which solution is output from the multiple optimal solution candidates depends on the specifications of Python and the order of data, etc. Therefore, we will omit an application example of algorithm 2-1 here, giving way to the output of solutions that prioritize the reduction of additional purchase costs by improvement proposal method 1 of the second embodiment, which will be described later, and the reduction of food loss by improvement proposal method 2 of the second embodiment.
[0142] TIFF2024144304000068.tif71166
[0143] TIFF2024144304000069.tif53166
[0144] TIFF2024144304000070.tif55166
[0145] TIFF2024144304000071.tif62166
[0146] TIFF2024144304000072.tif84166
[0147] TIFF2024144304000073.tif59166
[0148] TIFF2024144304000074.tif66166
[0149] TIFF2024144304000075.tif90166
[0150] TIFF2024144304000076.tif164166
[0151] TIFF2024144304000077.tif57166
[0152] TIFF2024144304000078.tif46166
[0153] TIFF2024144304000079.tif33166
[0154] TIFF2024144304000080.tif118166
[0155] The combination of recommended recipes is the same in Table 23 and Table 24 described later. In the improvement proposal method 1 (Table 23) of the second embodiment, which prioritizes reducing additional purchase costs over food waste while minimizing loss from a health care perspective, a large, inexpensive salmon m(2,2) with one day left until the expiration date is purchased in the first shopping trip (first day). As a result, the additional purchase cost of this improvement proposal method 1 is 100 yen less than that of the improvement proposal method 2 (Table 24) of the second embodiment described later. Instead, in this improvement proposal method 1, the remaining 300 grams of salmon are discarded. On the other hand, in the improvement proposal method 2 (Table 24) described later, since reducing food waste is prioritized, only the required amount (two small salmon m(2,1)) is purchased in the first shopping trip (first day). For the purchase for the third recipe recommendation (5th day) in this improvement proposal method 1, a small weight salmon m(2,1) is purchased, just like improvement proposal method 2. This is because the most recent purchase for the third recipe recommendation is the second purchase (4th day), and there are not enough days left until the expiration date to purchase a large weight salmon. In this way, the number of days remaining until the expiration date can be appropriately taken into account for any setting of the purchase date and recommendation date.
[0156] TIFF2024144304000081.tif74166
[0157] TIFF2024144304000082.tif51166
[0158] TIFF2024144304000083.tif96166
[0159] TIFF2024144304000084.tif119166
[0160] In Table 24 and the above Table 23, the combinations of recommended recipes are the same. In the proposed improvement method 1 in Example 4, the remaining 300 grams of salmon were discarded, whereas in the proposed improvement method 2 in this Example 5 (Table 24), in order to prioritize reducing food waste, only the required amount (two small pieces of salmon m(2,1)) is purchased during the first shopping trip (first day).
[0161] Third embodiment: The third embodiment is also an extension of the method of the first embodiment, in that the purchase date or recommendation date can be set arbitrarily, and the loss is minimized from a healthcare perspective by defining the loss using the ratio of the deficiency / excess amount to the standard intake amount, etc. In this respect, it is similar to the method of the second embodiment. In the second embodiment, the evaluation is based on the rate of deviation from the standard intake amount, etc., and the loss to be evaluated per recipe recommendation is defined, and the minimization of each loss is considered. However, the period required for the occurrence of health problems differs depending on the type of nutrient, and the evaluation of the nutrient intake status per one time is not necessarily appropriate. Therefore, in the third embodiment, the minimization of the loss over the entire period (T times) is considered, and the loss to be evaluated in the recipe recommendation over the entire period (T times) is defined. In the third embodiment, similarly to the first and second embodiments, a basic proposed method, an improvement proposed method 1, and an improvement proposed method 2 are proposed.
[0162] TIFF2024144304000085.tif65166
[0163] TIFF2024144304000086.tif63166
[0164] TIFF2024144304000087.tif18166
[0165] TIFF2024144304000088.tif73166
[0166] TIFF2024144304000089.tif85166
[0167] <Omission of application example of Algorithm 3-1> In the basic proposal method of the third embodiment, a recommended recipe and additional purchase ingredient products that minimize loss from a healthcare perspective are calculated, but there may be multiple optimal solution candidates (combinations of ingredient products to purchase, etc.) for the minimum loss value. Since the argmin function in NumPy of the Python language was used for the calculation, which solution is output from the multiple optimal solution candidates depends on the specifications of Python and the order of data, etc. Therefore, we will omit an application example of algorithm 3-1 here, giving way to the output of solutions that prioritize the reduction of additional purchase costs by improvement proposal method 1 of the third embodiment, which will be described later, and the reduction of food loss by improvement proposal method 2 of the third embodiment.
[0168] TIFF2024144304000090.tif74166
[0169] TIFF2024144304000091.tif51166
[0170] TIFF2024144304000092.tif43166
[0171] TIFF2024144304000093.tif45166
[0172] TIFF2024144304000094.tif115166
[0173] Similar to the case of loss evaluated on a recipe recommendation basis in the second embodiment, in the loss improvement proposal method 1 in which loss is evaluated over an entire period (T times) in the third embodiment, by appropriately taking into account the number of days remaining until the expiration date, a small weight of salmon m(2,1) is purchased for the third recipe recommendation (5th day).
[0174] TIFF2024144304000095.tif73166
[0175] TIFF2024144304000096.tif50166
[0176] TIFF2024144304000097.tif86166
[0177] TIFF2024144304000098.tif115166
[0178] The combination of recommended recipes is the same in improvement suggestion method 1 and improvement suggestion method 2 of the third embodiment, but the difference between the two methods is whether, on the first shopping trip (first day), a large weight salmon product is purchased to prioritize reducing purchase costs, or a small weight product is purchased to prioritize reducing food waste.
[0179] TIFF2024144304000099.tif59166
[0180] TIFF2024144304000100.tif110166
[0181] The maximum score for each iteration was the same for both methods, 32, and the score for the entire T iterations was the same for both methods, 10, but the combination of recommended recipes differed due to the difference in the priorities of purchasing costs and reducing food waste. In previous research, the score was simply defined as 1 if the nutrient content was within the standard and 0 if it was outside the standard, so multiple recipe combinations tended to have the same score. Because the definition of loss from a healthcare perspective in the proposed methods of the second and third embodiments is detailed, the combination of recipes that corresponds to the optimal solution is one (in this setting). Therefore, the only difference in the solution between the two proposed methods is the combination of additional purchase items due to the difference in the priority of suppression. This difference causes a difference in the additional purchase cost and food loss. On the other hand, in the case of the score of the first embodiment, since there are multiple combinations of recipes (in the current setting) among the solution candidates with the same score, the number of solution candidates is greater than that of the proposed methods of the second and third embodiments due to the difference in the combinations of both recipes and additional purchased products. As a result, in the application examples of the second and third embodiments, the purchase cost of the improvement proposal method 1 that prioritizes reducing purchase costs and the food waste of the improvement proposal method 2 that prioritizes reducing food waste are smaller in the case of the score of the first embodiment than in the proposed methods of the second and third embodiments.
[0182] Observations and conclusions: In application examples of the proposed methods of the second and third embodiments, in both the case of loss per trip and the case of loss over the entire T trips, a comparison of the proposed improvement method 1 and the proposed improvement method 2 confirmed examples in which the purchase costs and food loss differed between the two methods due to differences in the priorities of reducing purchase costs and food loss. There is no superiority or inferiority between the two methods, and it is believed that the appropriate method differs depending on the values of the user of the recommendation method. When comparing the loss per serving with the loss over T servings, examples were confirmed in which the optimal recipe combination was different. Depending on the nature of each nutrient and the situation, such as when the recipe recommendation user has restrictions on the intake of a particular nutrient, it is possible that nutrients may be classified into multiple patterns, such as one day, several days, or long term, for the period during which the intake amount should be evaluated. In such cases, it is considered necessary to expand the losses in the second and third embodiments and consider comprehensive loss minimization by defining losses for each nutrient pattern.
[0183] In the second and third embodiments, the loss based on the percentage of difference from the standard intake of each nutrient is used as the scale. On the other hand, in the first embodiment, a simple discrete score of 1 if the standard intake is satisfied and 0 if not is used as the scale. Due to the difference in scale, in the application example, the proposed methods of the second and third embodiments tend to determine one optimal recipe combination, whereas the score of the first embodiment for comparison tends to result in multiple optimal recipe combinations. For this reason, in the improvement proposal method 1 and improvement proposal method 2, which further minimize purchase costs and food waste among the optimal solution candidates from a healthcare perspective, it was confirmed that the application of the score of the first embodiment resulted in smaller purchase costs and smaller food waste than the proposed methods of the second and third embodiments.
[0184] In other words, the loss in the second and third embodiments can more precisely evaluate the difference between recipes (or combinations of recipes) from a healthcare perspective than the discrete, simple score in the first embodiment. Also, due to the difference in the definition of the loss in the second and third embodiments and the score in the first embodiment, in the application example, the optimal recipe combination in the proposed method of the second and third embodiments is not included in the optimal solution candidates to be compared when the score in the first embodiment is applied. There is no superiority or inferiority between the loss in the second and third embodiments and the score in the first embodiment, and it is considered that the appropriate scale is determined by the values of the user of the recipe recommendation method.
[0185] In the first to third embodiments, a simple problem setting such as recommending one recipe once a day was targeted. Also, in the application example, a small set of recipes was targeted to make it easier to interpret the results. To get closer to reality, it is necessary to expand to recommending menus, which are combinations of multiple recipes, and to apply a larger set of recipes. However, this embodiment solves an optimization problem, and there is a possibility that the processing time will become enormous if the problem is expanded to menus or a larger set of recipes is applied. To deal with this within a realistic processing time, an approximate solution method that randomly extracts a subset of the recipe set (or menu set) rather than optimizing the entire recipe set (or menu set) can be considered.
[0186] In the first embodiment, the evaluation score from a healthcare perspective is maximized under the limits of additional purchase costs and food waste, and when there are multiple optimal solution candidates, the purchase costs and food waste are also minimized among the solution candidates. However, there is room for improvement, such as the inability to accommodate arbitrary settings of additional purchase dates and recommended dates, and the fact that there are often multiple optimal recipe combinations due to the simple discrete score definition. In the second and third embodiments, the first embodiment is expanded to provide a recipe recommendation method that can accommodate arbitrary setting of additional purchase dates and recommendation dates, and can evaluate recipes more strictly than the first embodiment by using losses based on the percentage of difference from the standard nutrient intake amount, etc. Specifically, in the second embodiment, two types of loss are defined: a loss for evaluating each recommended recipe, and in the third embodiment, a loss for evaluating recipes over all T recommendations. A recommendation method (basic proposal method) is proposed for each loss, and, as in the first embodiment, when there are multiple solution candidates corresponding to the optimal recipe combination, a recommendation method (improvement proposal method) is proposed that minimizes additional purchasing costs and food waste among the solution candidates.
[0187] In an application example for verifying the proposed method, it was confirmed that it is possible to appropriately recommend recipes and additionally purchased food products by considering the number of days remaining until the expiration date of surplus food ingredients and food products for any setting of additional purchase date or recommendation date. In addition, in comparison with a comparison subject in which the score of the first embodiment was applied, the loss of the proposed method of the second and third embodiments was only one optimal combination of recipes because the recipes were strictly evaluated from a health care perspective. On the other hand, since there are multiple optimal combinations of recipes in the discrete simple score of the first embodiment, the number of solution candidates including the options for additionally purchased food products was greater than in the second and third embodiments, and as a result, it was confirmed that there was a greater effect of suppressing additional purchase costs and food waste than in the second and third embodiments. It is considered that whether the strict evaluation from a health care perspective of the second and third embodiments or the greater effect of suppressing additional purchase costs and food waste by the score of the first embodiment is more desirable depends on the values of the user of the recommendation method.
[0188] <Modifications of the embodiment> The above-described embodiment is one example of the present invention, and the present invention is not limited to this form. Various modifications and substitutions can be made without departing from the spirit of the present invention. For example, food waste that is discarded may be evaluated based on the value of the food at the time of purchase instead of the weight of the food discarded. The recommended recipes are derived by taking into consideration three perspectives: health care, economics, and food waste. However, it is also possible to recommend recipes by taking into consideration one or two of these three perspectives.
[0189] In the proposed method of the above embodiment, seasonings, etc. are not included in the ingredients and are omitted, and the recommendation target at one time is limited to one recipe, and in the application example, a small set of recipes / ingredients / products is targeted. However, it is also possible to set a problem closer to reality, for example, using ingredients that include seasonings, etc., recommend multiple recipes at one time, or recommend recipes within a larger set of recipes / ingredients / products, and in addition to this, approximate solutions and empirical rules may be applied. In addition, instead of using the entire recipe set as recommendation candidates, randomly extracted recipes may be used to avoid an increase in the number of recommendation candidates. This makes it possible to avoid an increase in the number of recommendation candidates (an increase in the problem scale) even when expanding the recipe set. Alternatively, if the amounts of ingredients in a recipe are strictly adhered to, but there is no surplus of an ingredient in the recipe, the conventional method of substituting other surplus ingredients can be applied. [Explanation of symbols]
[0190] 1. Recipe provision system 10 Recipe recommendation device 11 Control Means 12 Main memory means 13 Auxiliary storage means 14 Means of communication 15 Other measures 16 Recipe Database 17 Nutrient Database 18 Food Database 19 Food product database 20 User Database 21 Other Databases 22 External information database 23 Data Acquisition Section 24 Score Calculation Section 30 User terminals 50 Network
Claims
1. A recipe recommendation method that uses dynamic programming to maximize the profit or minimize the loss of a recipe recommended T times (1≦t≦T, where T is an integer equal to or greater than 2, and t is an integer), The maximization of profits or minimization of losses is maximization of scores defined from a healthcare perspective or minimization of losses defined from a healthcare perspective, A method for recommending recipes, in which the score or loss is determined based on whether or not the recommended intake of nutrients contained in the recipe is met.
2. The score is the number of nutrients contained in the recipe that are within the range of the upper and lower limits of the recommended intake amount of the nutrients, The maximization of the score is a maximization of the score over the T times or a maximization of the score for each time, If the loss meets the recommended intake of the nutrient contained in the recipe, it is set to 0, and if it does not meet the recommended intake, it is set to a ratio of the difference between the recommended intake standard (upper or lower limit) and the standard, The minimization of the loss may be the minimization of the loss over the entire T times or the minimization of the loss for each time. The recipe recommendation method according to claim 1.
3. The weight of the surplus food, the budget for additional food purchases, and the weight of the surplus food or the purchased food that can be discarded are set as conditions. The number of days remaining until the expiration date of the surplus food ingredients or the purchased food ingredients; The recipe recommendation method according to claim 2, further comprising the step of executing the dynamic programming method using data on the nutrients and their contents contained in the surplus ingredients, the purchased ingredients, and the recipes that are candidates for recommendation, to recommend the recipes T times and to recommend additional ingredients for purchase within T times.
4. In the dynamic programming, When changing from t times to t+1 times, the following steps 1 to 6 are performed. Step 1: Subtract the number of days remaining until the expiration date of the food ingredient from the tth time to the t+1th time; Step 2: subtract the weight of the ingredient used in the recipe recommended in the tth time from the weight of the ingredient, and add the weight of any additional ingredient recommended in the tth time; Step 3: Calculating the weight of ingredients to be discarded when the remaining days until the expiration date becomes 0 after the tth recipe recommendation, and subtracting this weight from the allowable weight; Step 4: From the budget, subtract the cost of additional ingredients recommended at the tth time, if any; Step 5: Updating the remaining allowable weight of the food material up to the weight at which the food material can be discarded; Step 6: Add the recipe recommended in the t-th recipe recommendation to the recipe history information. The method for recommending recipes according to claim 3, further comprising:
5. 5. The method for recommending recipes according to claim 4, wherein the information about the ingredients is obtained through an electronic receipt.
6. A computer program for executing the recipe recommendation method according to any one of claims 1 to 5.
7. A recipe recommendation device comprising a control means, a storage means, and a communication means, and which executes the recipe recommendation method according to any one of claims 1 to 5.
