CN110931108A - Recipe recommendation system based on micro-service architecture - Google Patents

Recipe recommendation system based on micro-service architecture Download PDF

Info

Publication number
CN110931108A
CN110931108A CN201911174353.2A CN201911174353A CN110931108A CN 110931108 A CN110931108 A CN 110931108A CN 201911174353 A CN201911174353 A CN 201911174353A CN 110931108 A CN110931108 A CN 110931108A
Authority
CN
China
Prior art keywords
information
dish
food material
recipe
meal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911174353.2A
Other languages
Chinese (zh)
Inventor
崔凌云
武军辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201911174353.2A priority Critical patent/CN110931108A/en
Publication of CN110931108A publication Critical patent/CN110931108A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/60ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to nutrition control, e.g. diets

Landscapes

  • Health & Medical Sciences (AREA)
  • Nutrition Science (AREA)
  • Engineering & Computer Science (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The invention discloses a recipe recommendation system based on a micro-service architecture, which comprises: a food material standard term information system for providing nutrient content information of various food materials; the dish information management system is used for providing food material codes of one or more food materials contained in each dish; the diner information acquisition system is used for acquiring the content information of various nutrients required by the diner diet; the recipe information generation system is used for inquiring the nutrient content information of various food materials contained in each dish according to the food material codes of one or more food materials contained in each dish, calculating the content information of various nutrients contained in each dish, determining one or more dishes meeting the meal requirements of the diners according to the content information of various nutrients required by the diners for meals and the content information of various nutrients contained in each dish, and generating the recipe information of the diners. The invention can provide individual recipes meeting the dietary requirements of a large number of diners.

Description

Recipe recommendation system based on micro-service architecture
Technical Field
The invention relates to the field of data processing, in particular to a recipe recommendation system based on a micro-service architecture.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
It is known that a human body needs to take sufficient amounts of nutrients every day in order to maintain physiological normality. The dietary standards of human bodies set by some organizations stipulate the information range of the nutrient content ingested by the human bodies every day, for example, the daily salt intake of the human bodies does not exceed 6 g, and the safe sodium intake of the human bodies is 1000-2500 mg. If the human body is lower or higher than the nutrient content information range specified by the human body dietary standard for a long time, the physiological state of the human body can be influenced, and the health is threatened.
Traditional personalized recipe customization schemes usually rely on professional dieticians to formulate corresponding recipes according to health information of diners (such as infants, old people, patients and the like) by combining nutritional standards and dietary standards. The method for artificially making the personalized recipes has high requirements on the professional level of the nutritionists, and cannot meet the personalized recipe customization requirements of a large number of diners due to the limited number of the nutritionists.
Although the existing electronic recipe recommendation system can provide personalized recipes for a large number of diners, the existing electronic recipe recommendation system only recommends matched dishes roughly according to health data or diner preference of the diners, and then recipe information of the diners is generated. Because each dish usually comprises a plurality of food materials, and the content of nutrients and nutrient contents in each food material are different, the scheme of generating the recipe of the diners by matching each dish probably leads the content of certain nutrient in the recipe to exceed the content of the nutrient required by the human body, and the long-term standard exceeding easily influences the health of the human body.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The invention provides a micro-service architecture-based recipe recommendation system, which is used for solving the technical problem that the content of nutrients in the recipe information recommended to diners exceeds the standard due to the fact that the content information of various nutrients in each dish cannot be measured in the conventional recipe recommendation system, and comprises the following components: the system comprises a food material standard term information system, a dish information management system, a diner information acquisition system and a recipe information generation system; the food material standard term information system is used for providing nutrient content information of various food materials; a dish information management system for providing food material information of each dish, the food material information of each dish comprising: each dish comprises food material codes of one or more food materials; the meal staff information acquisition system is used for acquiring meal demand information of meal staff, and the meal demand information at least comprises: the content information of various nutrients required by the meal of the diners; the recipe information generation system is communicated with the food material standard term information system, the dish information management system and the meal staff information acquisition system respectively, and is used for inquiring the nutrient content information of various food materials contained in each dish from the food material standard term information system according to food material codes of one or more food materials contained in each dish in the dish information management system, calculating the content information of various nutrients contained in each dish, determining one or more dishes meeting the meal requirements of the meal staff according to the content information of various nutrients required by the meal of the meal staff acquired by the meal staff information acquisition system and the content information of various nutrients contained in each dish in the dish information management system, and generating the recipe information of the meal staff.
The second aspect of the present invention provides a recipe information generation method, which is used to solve the technical problem that the content of nutrients in the recipe information recommended to diners may exceed standard due to the fact that the content information of various nutrients contained in each dish cannot be measured in the existing recipe recommendation system, and the method includes: obtaining meal demand information of the diner, wherein the meal demand information at least comprises: the content information of various nutrients required by the meal of the diners; acquiring content information of various nutrients contained in each dish, wherein each dish contains one or more food materials, and each food material contains one or more nutrients; screening one or more dishes meeting the dietary requirements of the diners according to the content information of various nutrients required by the diners for diet and the content information of various nutrients contained in each dish; and generating the recipe information of the diner according to the screened one or more dishes.
According to a preferred embodiment of the second aspect of the present invention, the obtaining of meal need information of the diner comprises: acquiring health information of diners; determining meal demand information of the diner according to the health information of the diner and pre-configured meal standard information, wherein the meal standard information comprises: dining preference information of diners and standard content information of various nutrients required by human bodies.
According to a preferred embodiment of the second aspect of the present invention, the obtaining of the content information of each dish containing various nutrients comprises: acquiring food material information of each dish, wherein the food material information at least comprises the following components: each dish comprises food material codes of one or more food materials; traversing each food material contained in each dish, and inquiring content information of various nutrients contained in each food material from a food material information base based on the food material code of each food material, wherein the food material information base contains the content information of various nutrients contained in different pre-configured food materials; and determining the content information of the various nutrients contained in each dish according to the content information of the various nutrients contained in each food material.
According to a preferred embodiment of the second aspect of the present invention, the food material information further comprises: the weight of each dish and the weight ratio of various food materials contained in each dish; the method for determining the content information of the various nutrients contained in each dish according to the content information of the various nutrients contained in each food material comprises the following steps: and calculating content information of various nutrients contained in each dish according to the weight of each dish, the weight ratio of various food materials contained in each dish and the content information of various nutrients contained in each food material.
According to a preferred embodiment of the second aspect of the present invention, one or more dishes meeting the meal needs of the diner are selected according to the content information of various nutrients required by the diner for meal and the content information of various nutrients contained in each dish, and the method comprises the following steps: traversing each nutrient element contained in each dish, comparing the content information of each nutrient element with the content information of corresponding nutrients required by the meal of the diner, and screening out one or more dishes of which the content information of the nutrients does not exceed the content information of the nutrients required by the meal of the diner.
According to a preferred embodiment of the second aspect of the present invention, after obtaining the content information of the various nutrients contained in each dish, the method further comprises: acquiring a dish selection instruction, wherein the dish selection instruction is used for selecting one or more dishes; and generating the recipe information of the diner according to one or more dishes selected by the dish selection instruction.
According to a third aspect of the present invention, there is provided a recipe information generating device for solving a technical problem that, in an existing recipe recommending system, since content information of various nutrients contained in each dish cannot be measured, the content of the nutrients in the recipe information recommended to a diner may exceed a standard, the device comprising: the meal demand acquisition module is used for acquiring meal demand information of diners, wherein the meal demand information at least comprises: the content information of various nutrients required by the meal of the diners; the food information acquisition module is used for acquiring content information of various nutrients contained in each food, wherein each food contains one or more food materials, and each food material contains one or more nutrients; the dish screening module is used for screening one or more dishes meeting the meal requirements of the diners according to the content information of various nutrients required by the diners for meals and the content information of various nutrients contained in each dish; and the recipe information generating module is used for generating the recipe information of the diner according to the screened one or more dishes.
According to a fourth aspect of the present invention, a computer device is provided to solve the technical problem that the content of nutrients in the recipe information recommended to a diner may exceed the standard due to the fact that the content information of various nutrients contained in each dish cannot be measured in the existing recipe recommendation system, the computer device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the method for generating the recipe information according to the second aspect of the present invention when executing the computer program.
According to a fifth aspect of the present invention, a computer-readable storage medium is provided to solve the technical problem that, in the existing recipe recommendation system, since content information of various nutrients contained in each dish cannot be measured, the content of the nutrients in the recipe information recommended to a diner may exceed the standard, and the computer-readable storage medium stores a computer program for executing the method for generating the recipe information according to the second aspect of the present invention.
In the embodiment of the invention, based on a micro-service architecture, a recipe recommendation system is provided, and nutrient content information of various food materials is provided through a food material standard term information system; food material information of each dish is provided through a dish information management system; acquiring meal demand information of the diners through a diner information acquisition system; the food material information of each dish at least comprises the food material codes of one or more food materials contained in each dish; therefore, through the recipe information generation system which is respectively communicated with the food material standard term information system, the dish information management system and the meal-taking person information acquisition system, the nutrient content information of various food materials contained in each dish can be inquired from the food material standard term information system according to the food material codes of one or more food materials contained in each dish in the dish information management system, the content information of various nutrients contained in each dish is further calculated, one or more dishes meeting the meal requirements of meal-taking persons are screened from the dish information management system by combining the content information of various nutrients required by meal-taking persons contained in the meal requirement information of the meal-taking persons, and the recipe information of the meal-taking persons is generated.
It should be noted that, since each dish includes one or more food materials, each food material includes one or more nutrients, and content information of each nutrient included in each food material can be obtained based on statistical data, content information of each nutrient included in each dish can be determined according to each food material included in each dish.
According to the embodiment of the invention, the personalized recipes meeting the dietary requirements of a large number of diners can be provided, the generation efficiency of the personalized recipes is improved, and the operation and maintenance cost is effectively reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic diagram of a recipe recommendation system based on a microservice architecture according to an embodiment of the present invention;
fig. 2 is a flowchart of a recipe information generation method provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
In the description of the present specification, the terms "comprising," "including," "having," "containing," and the like are used in an open-ended fashion, i.e., to mean including, but not limited to. Reference to the description of the terms "one embodiment," "a particular embodiment," "some embodiments," "for example," etc., means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. The sequence of steps involved in the embodiments is for illustrative purposes to illustrate the implementation of the present application, and the sequence of steps is not limited and can be adjusted as needed.
The embodiment of the invention provides a diet recommendation system based on a micro-service architecture, which can be applied to but not limited to an elderly people community system and is used for automatically generating personalized diet information for each elderly person according to diet demand information (health information, dining preference information and diet standard information) of each elderly person in an elderly people community, so that the operation and maintenance cost of the elderly people community is reduced.
Fig. 1 is a schematic diagram of a recipe recommendation system based on a microservice architecture according to an embodiment of the present invention, as shown in fig. 1, the system includes: the food material standard term information system 10, the dish information management system 20, the diner information acquisition system 30 and the recipe information generation system 40;
wherein, the food material standard term information system 10 is used for providing nutrient content information of various food materials; a recipe information management system 20 configured to provide food material information of each recipe, the food material information of each recipe including: each dish comprises food material codes of one or more food materials; the diner information collection system 30 is used for collecting meal demand information of diners, and the meal demand information at least comprises: the content information of various nutrients required by the meal of the diners; the recipe information generating system 40 is in communication with the food material standard term information system 10, the dish information management system 20 and the meal staff information collecting system 30, and is configured to query, from the food material standard term information system 10, content information of various food materials contained in each dish according to a food material code of one or more food materials contained in each dish in the dish information management system 20, further calculate content information of various nutrients contained in each dish, and screen, from the dish information management system 20, one or more dishes meeting meal requirements of the meal staff according to the content information of various nutrients required by meal of the meal and the content information of various nutrients contained in each dish in the dish information management system 20, which are collected by the meal staff information collecting system 30, so as to generate recipe information of the meal staff.
It should be noted that, because each dish includes one or more food materials, each food material includes one or more nutrients, and content information of various nutrients included in each food material can be obtained based on statistical data, the embodiment of the present invention provides nutrient content information of various food materials by using the food material standard term information system 10 as a sub-service system based on a micro-service architecture; the recipe information generation system 40 or the dish information management system 20 is enabled to determine content information of various nutrients contained in each dish from various food materials contained in each dish.
As can be seen from the above, the recipe recommendation system based on the micro-service architecture provided by the embodiment of the invention provides the nutrient content information of various food materials through the food material standard term information system 10; providing food material information of each dish through the dish information management system 20; acquiring meal demand information of the diners through a diner information acquisition system 30; the food material information of each dish at least comprises the food material codes of one or more food materials contained in each dish; therefore, by the recipe information generating system 40 respectively communicating with the food material standard term information system 10, the dish information management system 20 and the meal taker information collecting system 30, the nutrient content information of each food material contained in each dish can be queried from the food material standard term information system 10 according to the food material code of one or more food materials contained in each dish in the dish information management system 20, and then the content information of each nutrient contained in each dish can be calculated, and one or more dishes meeting the meal demand of the meal taker can be screened from the dish information management system 20 by combining the content information of each nutrient required for the meal of the meal taker contained in the meal demand information of the meal taker, and the recipe information of the meal taker can be generated.
The recipe recommendation system based on the micro-service architecture can provide personalized recipes meeting the dietary requirements of a large number of diners, improve the generation efficiency of the personalized recipes and effectively reduce the operation and maintenance cost.
In an optional embodiment, in the recipe recommendation system based on the micro service architecture provided in the embodiment of the present invention, the diner information collecting system 30 includes: the health information acquisition module is used for acquiring the health information of the diners; the meal standard information configuration module is used for configuring meal standard information of diners, wherein the meal standard information comprises: dining preference information of diners and standard content information of various nutrients required by human bodies; the first information processing module is communicated with the health information acquisition module and the meal standard information configuration module respectively and used for determining meal demand information of the diners according to the health information of the diners and the pre-configured meal standard information.
It should be noted that the embodiment of the present invention does not limit the specific way of acquiring health information, and taking the example of generating personalized diet information for the elderly in the community of the nursing home, heart rate information, body temperature information, etc. of the elderly during sleep can be acquired through various sensing devices in the bed of the community of the nursing home; the daily activity condition of the old can be collected through a camera arranged in the community of the nursing home; the health information of the old people can also be recorded by inquiring the body state of the old people every day by community staff.
It should be noted that the meal preference information of the diner may be information predicted by the system according to the historical meal information of the diner, or may be information manually input by the diner. The standard content information of various nutrients required by the human body can be standard content information of various nutrients required by the human body, which is extracted from the human body meal standard information of general crowds issued by some authority organization structures, or standard content information of various nutrients required by meals, which is personalized for diners by professional dieticians or doctors. For example, the daily salt intake of a human body is not more than 6 g, the safe sodium intake of the human body is 1000-2500 mg, and if the sodium content of the dietary intake of diners is lower or higher than the range for a long time, the physiological state of the human body can be influenced, and the health is influenced.
Table 1 shows quantized meal demand information of the diners in structured processing, and as shown in table 1, health information and meal preference information (personal taste preference) of the diners are quantized, content information of various nutrients required for meals of the diners is obtained, and meal demand information of the diners is generated.
TABLE 1 quantified meal demand information for diners
Figure BDA0002289576090000071
It should be noted that, in the embodiment of the present invention, content information of various nutrients included in each dish is determined according to various food materials included in each dish, and may be executed by the recipe information generation system 40, or may be executed by the dish information management system 20, and if the content information is the former, the dish information management system 20 does not need to communicate with the food material standard term information system 10, and only needs to provide food material information of each dish to the recipe information generation system 40; if the food item standard term information system 10 is the latter, the dish information management system 20 needs to communicate with the food material standard term information system 10, determine content information of various nutrients contained in each dish according to various food materials contained in each dish, and transmit the content information of various nutrients contained in each dish to the recipe information generation system 40.
In the case where the content information of various nutrients contained in each dish is determined by the dish information management system 20, the dish information management system 20 may include: the second food material nutrient content inquiry module is communicated with the food material standard term information system and used for traversing each food material contained in each dish and inquiring content information of various nutrients contained in each food material from the food material standard term information system based on the food material code of each food material; and the third information processing module is communicated with the second food material nutrient content query module and used for calculating the content information of various nutrients contained in each dish according to the content information of various nutrients contained in each food material.
In the case where the recipe information generation system 40 determines content information of various nutrients included in each dish, the recipe information generation system 40 may specifically include: the dish food material information inquiry module is communicated with the dish information management system and used for inquiring the food material information of each dish, wherein the food material information at least comprises: each dish comprises food material codes of one or more food materials; the first food material nutrient content inquiry module is communicated with the food material standard term information system and used for traversing each food material contained in each dish and inquiring content information of various nutrients contained in each food material from the food material standard term information system based on the food material code of each food material; and the second information processing module is respectively communicated with the dish food material information query module and the first food material nutrient content query module and is used for calculating the content information of various nutrients contained in each dish according to the content information of various nutrients contained in each food material.
It should be noted that, since each dish includes one or more food materials, each food material includes one or more nutrients, and content information of each nutrient included in each food material can be obtained based on statistical data (for example, an average value of a certain nutrient included in each food material is taken as a content of the nutrient included in each food material), content information of each nutrient included in each dish can be determined according to the various food materials included in each dish.
For example, table 2 shows the content information of various nutrients contained in potatoes based on data statistics.
TABLE 2 content information of various nutrients contained in potatoes
Nutrient Content (per 100 g) Unit of
Heat quantity 86 Big card
Carbohydrate compound 20.01 Keke (Chinese character of 'Keke')
Fat 0.1 Keke (Chinese character of 'Keke')
Protein 1.71 Keke (Chinese character of 'Keke')
Cellulose, process for producing the same, and process for producing the same 1.8 Keke (Chinese character of 'Keke')
Sodium salt 5 Milligrams of
Alternatively, each food material contains nutrients including, but not limited to, protein, fat, sugar, vitamins, sodium, cellulose, etc., and thus, the food material information description for each food material may be as shown in table 3.
TABLE 3 description of food material information
Figure BDA0002289576090000081
Figure BDA0002289576090000091
It should be noted that the nutrients contained in each food material listed in table 3 are only examples, and in practical application, the nutrients contained in each food material can be increased or decreased.
After the content information of the various nutrients contained in the different food materials is obtained based on data statistics, the content information of the various nutrients contained in the different food materials can be stored in a database, so that the content information of the various nutrients contained in each dish can be determined according to one or more food materials contained in each dish.
Further, the recipe information generation system 40 may further include: and the dish screening module is respectively communicated with the dish information management system and the diner information acquisition system and is used for traversing each nutrient element contained in each dish in the dish information management system, comparing the content information of each nutrient element with the content information of corresponding nutrients required by diners for meal, and screening one or more dishes of which the nutrient content information does not exceed the nutrient content information required by diners for meal.
Still further, the recipe information generation system 40 may further include: the dish selecting module is used for selecting one or more dishes according to the dish selecting instruction; and the recipe generating module is communicated with the instruction receiving module and is used for generating the recipe information of the diner according to one or more dishes selected by the dish selection instruction. The order receiving module receives the dish selection order of the dietician or the diner, so that the aim of generating the recipe information by user definition can be achieved, and the user experience is enhanced.
In an optional embodiment, in the recipe recommendation system based on the micro service architecture provided in the embodiment of the present invention, the food material standard term information system 10 may include: the food material standard term information acquisition module is used for acquiring standard term information describing various food materials, wherein the standard term information contains nutrient content information of the various food materials; or the food material nutrient content information configuration module is used for configuring the nutrient content information of various food materials.
As an alternative embodiment, the food material standard term set can be obtained from the medical term standard center system, and then the content information of various nutrients in the food material can be determined. An example xml of a food material standard term set obtained from a medical term standard center is as follows:
Figure BDA0002289576090000092
Figure BDA0002289576090000101
Figure BDA0002289576090000111
Figure BDA0002289576090000121
Figure BDA0002289576090000131
Figure BDA0002289576090000141
Figure BDA0002289576090000151
the content information of various nutrients in the food materials is determined through the food material standard term set provided by the medical care term standard central system, so that the data quality is ensured, and the data standardization is favorably realized.
It should be noted that before determining the content information of each nutrient contained in each dish, the dish of each dish needs to be structured, and for each dish, the information shown in table 4 can be used to record the content of each nutrient contained in each dish.
Table 4 description of the various nutrients each dish contained
Figure BDA0002289576090000152
Figure BDA0002289576090000161
It should be noted that, in the actual application process, custom fields may be added as needed. In addition, in order to improve the efficiency of automatically generating recipes, all configuration data needs to be preloaded into a memory.
Therefore, as an optional implementation manner, the food material information of each dish may further include: the weight of each dish and the weight ratio of various food materials contained in each dish; therefore, the second information processing module can be further used for calculating the content information of various nutrients contained in each dish according to the weight of each dish, the weight ratio of various food materials contained in each dish and the content information of various nutrients contained in each food material.
Hereinafter, the embodiment of the present invention will be described in detail by taking the aged people in the nursing home community as an example.
When the identification of the old people (such as community resident ID, for example) is obtained, the old people's dietary requirement information (including but not limited to the health information of the old people, dining preference information and content information of various nutrients required for diet) can be inquired from the old people database of the elderly care community system, the content information of various nutrients contained in each dish is calculated based on the content information of various nutrients contained in the food materials in the medical care term standard center system, and finally, the recipe information of the old people is automatically generated according to the health information of the old people and the content information of various nutrients contained in each dish. The detailed process can be decomposed as follows:
assume that ID is used to identify the identity information of an elderly person:
(1) for each ID identification, acquiring meal demand information of the old from the old health database, and setting the old list as LP ═ P1,P2P3…};
(2) Acquiring a nutrient standard term set and a food material standard term set from a medical care term standard center system;
(3) generating a dish list according to the nutrient standard term set and the food material standard term set; set the list of dishes as LSP1 ═ CP1,CP2CP3…};
(4) Traversing the dish list, and calculating the nutrient content and the proportion of each dish;
taking the calculation of the sodium (Na) content in the dish a as an example:
①, acquiring the weight of dish A as W and the error range as e according to the food material information of dish A, and then acquiring the actual weight of dish A as RW ═ Wx (1 +/-e%);
② the food materials contained in dish A are obtained according to the food material information of dish A, and the food materials are expressed as SLS ═ S1,S2S3… }. Setting food material S in the dish AiIn a weight ratio of wpiTraversing each food material contained in the dish A, inquiring the content information of sodium contained in each food material from the food material information base according to the food material code of each food material, and setting the food material SiThe content of sodium is aiIn mg/100 g; the quality of sodium in the dish A is as follows:
Figure BDA0002289576090000171
in addition, in actual dish preparation, the dish may contain seasoning in addition to the food material. In contrast, in the embodiment of the invention, the seasoning of each dish can be abstracted into one food material, and the food material has the related attributes of the food material. In this way, the seasoning contained in the dish can be treated like common food materials.
Through the steps, the sodium content in the dish A is calculated.
Similarly, the content of other nutrients in the dish A is calculated by the method.
Assuming that the final calculated nutrient content of dish a is:
LSP2={CP1,CP2CP3…};
wherein, CPi={(c1:n1),(c2:n2),(c31:n3)...};
Wherein, ciDenotes the i-th nutrient, n, contained in dish AiIndicating the quality of the ith nutrient contained in dish a.
(5) According to the meal demand information of the old and the content information of various nutrients contained in various dishes, automatically generating an alternative dish list of the old;
① old people PiFor example, traverse the elderly PiEach nutrient required for the diet:
A. obtaining Elder PiThe diet of (a) requires an ith nutrient (e.g., sodium) content of R; assuming that the initial content of the ith nutrient required by the diet of the elderly is N-0;
B. traverse each dish CP in the dish list LSP2i
I. Obtaining the dishes CPiContains n-th nutrient (e.g. sodium)i
II. determination of niIf R is exceeded, if niAnd if the number of the dishes exceeds R, the old people with improper dishes are indicated, and the next dish is continuously traversed.
Returning to step I until the content of the ith nutrient (e.g., sodium) in a dish is niIf the number of the dishes exceeds R, the dishes meet the dietary requirements of the old, and the dishes are placed in an alternative dish list LSP3 of the old.
The content of the ith nutrient required by the diet of the old is N ═ N + Ni
And IV, continuing the steps I to III until N is less than or equal to R. At this point, LSP3 is the list of dishes that meet the sodium content requirement, ending the cycle.
V. let I be 2 and continue the above steps I to IV to determine the content of other nutrients.
② calculating the optional dishes list satisfying the content of each nutrient such as protein, saccharide, fat, etc. and getting the intersection, the dish list satisfying the requirements of each nutrient of the old can be obtained.
③ according to the above steps, a dish list conforming to the dietary needs of each elderly person is generated.
④ the dietary records of each senior citizen are archived as part of the health records of each senior citizen in the community of the nursing home.
(6) When the manual selection option is configured, one or more dishes can be manually selected from the list of the alternative dishes, and the recipe information of each old man is generated.
Through the scheme provided by the steps (1) - (6), the personalized recipe can be generated for each old man in the elderly community quickly, the recipe generation efficiency is improved, and the operation and maintenance cost is reduced. In addition, the dietary records of the old people are filed, so that the dietary history of the old people can be conveniently tracked, and the health management of the old people is enhanced.
In an optional embodiment, the recipe recommendation system based on the micro service architecture provided in the embodiment of the present invention may further include: and the catering system 50 is communicated with the recipe information generating system 40 and used for determining the catering information of each diner according to the recipe information of each diner generated by the recipe information generating system. This embodiment can be applicable to the staff in the asylum for the aged community and arrange the information of having dinner for each old man, also can be applicable to enterprise or school's dining room etc. and provide corresponding dishes according to the individualized recipe that provides for staff or student.
In another optional embodiment, the recipe recommendation system based on the micro service architecture provided in the embodiment of the present invention may further include: and the recipe pushing system 60 is in communication with the recipe information generating system 40 and is used for pushing the recipe information of each diner generated by the recipe information generating system to the user terminal of each diner. After the recipe information that satisfies the meal demand of each diner is generated by the recipe information generation system 40, the personalized recipe information of each diner can be pushed to each diner.
The embodiment of the invention also provides a method for generating recipe information, which can be applied to but not limited to the recipe information generation system shown in fig. 1.
Fig. 2 is a flowchart of a method for generating recipe information according to an embodiment of the present invention, and as shown in fig. 2, the method may include the following steps:
s201, obtaining meal demand information of the diners, wherein the meal demand information at least comprises: the content information of various nutrients needed by the meal of the diners.
Specifically, the above S201 may be implemented by the following steps: acquiring health information of diners; determining meal demand information of the diner according to the health information of the diner and pre-configured meal standard information, wherein the meal standard information comprises: dining preference information of diners and standard content information of various nutrients required by human bodies.
S202, content information of various nutrients contained in each dish is obtained, wherein each dish contains one or more food materials, and each food material contains one or more nutrients.
Specifically, the above 202 may be implemented by the following steps: acquiring food material information of each dish, wherein the food material information at least comprises the following components: each dish comprises food material codes of one or more food materials; traversing each food material contained in each dish, and inquiring content information of various nutrients contained in each food material from a food material information base based on the food material code of each food material, wherein the food material information base contains the content information of various nutrients contained in different pre-configured food materials; and determining the content information of the various nutrients contained in each dish according to the content information of the various nutrients contained in each food material.
It should be noted that the food material information base in the embodiment of the present invention may be a pre-constructed database for storing various food materials and content information of various nutrients contained in each food material, after content information of various nutrients contained in different food materials is obtained based on a data statistics manner, a food material code is created for each food material, and the food material code and the content information of various nutrients contained in each food material are stored in an associated manner.
Optionally, the food material information of each dish may further include: the weight of each dish and the weight ratio of various food materials contained in each dish; when the content information of the various nutrients contained in each dish is determined according to the content information of the various nutrients contained in each food material, the content information of the various nutrients contained in each dish can be calculated according to the weight of each dish, the weight ratio of the various food materials contained in each dish and the content information of the various nutrients contained in each food material.
S203, screening one or more dishes meeting the meal requirements of the diners according to the content information of various nutrients required by the diners for meals and the content information of various nutrients contained in each dish.
Specifically, in S203, each nutrient element included in each dish may be traversed, content information of each nutrient element is compared with content information of corresponding nutrients required by the meal of the diner, and one or more dishes whose nutrient content information does not exceed the nutrient content information required by the meal of the diner are screened.
And S204, generating the recipe information of the diner according to the screened one or more dishes.
The recipe information generating method provided by the embodiment of the present invention may be used for generating, but is not limited to, recipe information for three dinners each day. In addition, after one or more dishes meeting the meal demand of the diner are screened out, in a manual or automatic manner, in step S204, the recipe information of the diner can be generated according to the screened out one or more dishes. When the recipe information of the diner is generated in an automatic mode, the recipe information of the diner can be generated according to pre-collected historical diner information, diner preference information, dish evaluation information and the like of the diner; when the recipe information of the diner is generated in a manual mode, a professional dietician or the diner can manually select dishes suitable for the diner from the screened dishes, and then the recipe information of the diner is generated.
As can be seen from the above, by performing structural processing on the meal demand information of the meal staff and the food material information of the dishes in advance, content information of various nutrients required by the meal of the meal staff and content information of various nutrients contained in each dish can be obtained, and one or more dishes meeting the meal demand of the meal staff are screened according to the content information of various nutrients required by the meal of the meal staff and the content information of various nutrients contained in each dish; and generating the recipe information of the diner according to the screened one or more dishes. The method for generating the recipe information can improve the efficiency of generating the recipe and effectively reduce the operation and maintenance cost.
The embodiment of the invention also provides a device for generating the recipe information, which solves the problem that the principle of the method is similar to the method for generating the recipe information, and comprises the following steps: the food management system comprises a meal demand acquisition module, a dish information acquisition module, a dish screening module and a recipe information generation module.
The meal demand acquisition module is used for acquiring meal demand information of diners, wherein the meal demand information at least comprises: the content information of various nutrients required by the meal of the diners; the food information acquisition module is used for acquiring content information of various nutrients contained in each food, wherein each food contains one or more food materials, and each food material contains one or more nutrients; the dish screening module is used for screening one or more dishes meeting the meal requirements of the diners according to the content information of various nutrients required by the diners for meals and the content information of various nutrients contained in each dish; and the recipe information generating module is used for generating the recipe information of the diner according to the screened one or more dishes.
As can be seen from the above, by performing structured processing on the meal demand information of the diner and the food material information of the dishes in advance, the device for generating recipe information provided by the embodiment of the present invention can obtain the content information of various nutrients required by the meal of the diner through the meal demand acquisition module, and obtain the content information of various nutrients included in each dish through the dish information acquisition module, and then screen out one or more dishes satisfying the meal demand of the diner through the dish screening module according to the content information of various nutrients required by the meal of the diner and the content information of various nutrients included in each dish; and finally, generating the recipe information of the diner according to the screened one or more dishes through a recipe information generation module.
The device for generating the recipe information provided by the embodiment of the invention can improve the efficiency of generating the recipe and effectively reduce the operation and maintenance cost.
The embodiment of the invention also provides computer equipment for solving the technical problem that the content of nutrients in the recipe information recommended to diners is possibly overproof due to the fact that the content information of various nutrients contained in each dish cannot be measured in the conventional recipe recommendation system.
The embodiment of the invention also provides a computer readable storage medium, which is used for solving the technical problem that the content of nutrients in the recipe information recommended to diners is possibly over-standard due to the fact that the content information of various nutrients contained in each dish cannot be measured in the conventional recipe recommendation system.
In summary, embodiments of the present invention provide a recipe recommendation system based on a microservice architecture, a recipe information generation method, a computer device, and a computer-readable storage medium, which implement a purpose of automatically generating a personalized recipe for a diner according to meal demand information of the diner and food material information of a dish by performing structured processing on the meal demand information of the diner and the food material information of the dish, and can improve efficiency of recipe generation and reduce operation and maintenance costs. In addition, meal demand information of the diners is determined according to the health information of the diners, meal preference, the content of various nutrients required by meals and other dimensional information, and the content of the nutrients contained in each dish is determined according to the content of the nutrients contained in various food materials contained in each dish, so that a personalized recipe can be provided for each diner, and the satisfaction degree of the diners is improved; and scientific proportioning can be realized, and the nutritional level of diners is ensured.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A micro-service architecture based recipe recommendation system, comprising: the system comprises a food material standard term information system, a dish information management system, a diner information acquisition system and a recipe information generation system;
wherein, the food material standard term information system is used for providing nutrient content information of various food materials;
the dish information management system is used for providing food material information of each dish, and the food material information of each dish comprises: each dish comprises food material codes of one or more food materials;
the diner information acquisition system is used for acquiring meal demand information of diners, and the meal demand information at least comprises: the content information of various nutrients required by the meal of the diners;
the recipe information generation system is communicated with the food material standard term information system, the dish information management system and the meal staff information acquisition system respectively, and is used for inquiring the nutrient content information of various food materials contained in each dish from the food material standard term information system according to the food material codes of one or more food materials contained in each dish in the dish information management system, further calculating the content information of various nutrients contained in each dish, screening one or more dishes meeting the meal requirement of the meal staff from the dish information management system according to the content information of various nutrients required by the meal of the meal staff and the content information of various nutrients contained in each dish, and generating the recipe information of the meal staff.
2. The system of claim 1, wherein the dining personnel information collection system comprises:
the health information acquisition module is used for acquiring the health information of the diner;
a meal standard information configuration module, configured to configure meal standard information of the diner, where the meal standard information includes: the dining preference information of the diners and the standard content information of various nutrients required by the human body;
the first information processing module is communicated with the health information acquisition module and the meal standard information configuration module respectively and is used for determining meal demand information of the diner according to the health information of the diner and pre-configured meal standard information.
3. The system of claim 1, wherein the recipe information generation system comprises:
a dish food material information query module, which is communicated with the dish information management system and used for querying food material information of each dish, wherein the food material information at least comprises: each dish comprises food material codes of one or more food materials;
the first food material nutrient content inquiry module is communicated with the food material standard term information system and used for traversing each food material contained in each dish and inquiring content information of various nutrients contained in each food material from the food material standard term information system based on the food material code of each food material;
and the second information processing module is respectively communicated with the dish food material information query module and the first food material nutrient content query module, and is used for calculating the content information of various nutrients contained in each dish according to the content information of various nutrients contained in each food material.
4. The system of claim 3, wherein the food material information further comprises: the weight of each dish and the weight ratio of various food materials contained in each dish; the second information processing module is further used for calculating content information of various nutrients contained in each dish according to the weight of each dish, the weight ratio of various food materials contained in each dish and the content information of various nutrients contained in each food material.
5. The system of claim 3, wherein the recipe information generation system further comprises:
and the dish screening module is respectively communicated with the dish information management system and the diner information acquisition system and used for traversing each nutrient element contained in each dish in the dish information management system, comparing the content information of each nutrient element with the content information of corresponding nutrients required by diner diet, and screening one or more dishes of which the nutrient content information does not exceed the nutrient content information required by diner diet.
6. The system of claim 3, wherein the recipe information generation system further comprises:
the dish selecting module is used for selecting one or more dishes according to the dish selecting instruction;
and the recipe generating module is communicated with the instruction receiving module and is used for generating the recipe information of the diner according to one or more dishes selected by the dish selection instruction.
7. The system of claim 1, wherein the dish information management system comprises:
the second food material nutrient content inquiry module is communicated with the food material standard term information system and used for traversing each food material contained in each dish and inquiring content information of various nutrients contained in each food material from the food material standard term information system based on the food material code of each food material;
and the third information processing module is communicated with the second food material nutrient content query module and used for calculating the content information of various nutrients contained in each dish according to the content information of various nutrients contained in each food material.
8. The system of claim 1, wherein the food material standard term information system comprises:
the food material standard term information acquisition module is used for acquiring standard term information describing various food materials, wherein the standard term information contains nutrient content information of the various food materials; or
And the food material nutrient content information configuration module is used for configuring the nutrient content information of various food materials.
9. The system of any one of claims 1 to 8, further comprising: and the catering system is communicated with the recipe information generating system and is used for determining the catering information of each diner according to the recipe information of each diner generated by the recipe information generating system.
10. The system of any one of claims 1 to 8, further comprising: and the recipe pushing system is communicated with the recipe information generating system and used for pushing the recipe information of each diner generated by the recipe information generating system to the user terminal of each diner.
CN201911174353.2A 2019-11-26 2019-11-26 Recipe recommendation system based on micro-service architecture Pending CN110931108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911174353.2A CN110931108A (en) 2019-11-26 2019-11-26 Recipe recommendation system based on micro-service architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911174353.2A CN110931108A (en) 2019-11-26 2019-11-26 Recipe recommendation system based on micro-service architecture

Publications (1)

Publication Number Publication Date
CN110931108A true CN110931108A (en) 2020-03-27

Family

ID=69852075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911174353.2A Pending CN110931108A (en) 2019-11-26 2019-11-26 Recipe recommendation system based on micro-service architecture

Country Status (1)

Country Link
CN (1) CN110931108A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111785351A (en) * 2020-07-27 2020-10-16 王睿琪 System for prompting weight of taken dishes during dining, method and device thereof
CN112617766A (en) * 2020-12-14 2021-04-09 花巷食新(三明)生物科技有限公司 Personalized work meal catering system based on human health monitoring
CN112820379A (en) * 2021-01-26 2021-05-18 吾征智能技术(北京)有限公司 Intelligent diet recommendation method and system integrating user images
CN113096770A (en) * 2021-04-20 2021-07-09 中国人民解放军陆军勤务学院 Standard recipe generation method, generation system, processing terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107833617A (en) * 2017-11-28 2018-03-23 威海海洋职业学院 A kind of university student nutritious recipe preparation method on the one
CN108630298A (en) * 2018-05-09 2018-10-09 南京邮电大学 Healthy diet management method and system, computer readable storage medium, terminal
CN110148451A (en) * 2019-03-28 2019-08-20 北京康爱营养科技股份有限公司 A kind of recipe recommendation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107833617A (en) * 2017-11-28 2018-03-23 威海海洋职业学院 A kind of university student nutritious recipe preparation method on the one
CN108630298A (en) * 2018-05-09 2018-10-09 南京邮电大学 Healthy diet management method and system, computer readable storage medium, terminal
CN110148451A (en) * 2019-03-28 2019-08-20 北京康爱营养科技股份有限公司 A kind of recipe recommendation method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111785351A (en) * 2020-07-27 2020-10-16 王睿琪 System for prompting weight of taken dishes during dining, method and device thereof
CN112617766A (en) * 2020-12-14 2021-04-09 花巷食新(三明)生物科技有限公司 Personalized work meal catering system based on human health monitoring
CN112820379A (en) * 2021-01-26 2021-05-18 吾征智能技术(北京)有限公司 Intelligent diet recommendation method and system integrating user images
CN112820379B (en) * 2021-01-26 2024-02-02 吾征智能技术(北京)有限公司 Intelligent diet recommendation method and system integrating user images
CN113096770A (en) * 2021-04-20 2021-07-09 中国人民解放军陆军勤务学院 Standard recipe generation method, generation system, processing terminal and storage medium

Similar Documents

Publication Publication Date Title
CN110931108A (en) Recipe recommendation system based on micro-service architecture
CN110135957A (en) A kind of vegetable recommended method, device and the storage medium of intelligent restaurant healthy diet
US8504385B2 (en) Personalized nutrition advisor
CN104809164A (en) Healthy diet recommendation method based on mobile terminal and mobile terminal
US20090275002A1 (en) Nutrition informatics method
US20160225284A1 (en) Intelligent Meal Planning Tool
US20150294593A1 (en) Meal Planning Tool
WO2021120891A1 (en) Diet data generation method and device, and storage medium and electronic device
CN109102860A (en) A kind of Shandong cuisine nutrition formula method of ordering based on wechat platform
CN103940192A (en) Refrigerator food health management system
US20070276618A1 (en) Method for Supporting Dietary Habits, a System and a Computer Program Therefor
CN105868877A (en) Intelligent diet management system and management method
CN109509117A (en) A kind of vegetable recommended method, apparatus and system
CN109064286A (en) A kind of Shandong cuisine nutrition formula food-ordering device based on wechat platform
CN111666893A (en) Ordering processing method and device
CN109461042A (en) Intelligent nutrition food preparation method, apparatus and system
JP3389579B2 (en) Out-of-hospital cooking management method and system
CN110349648A (en) A kind of generation recommending recipes method based on recipe library
CN109461490A (en) The processing method of healthy diet data, apparatus and system
CN108492861A (en) Accurate diet system for prompting and method
CN103870667A (en) System and method for managing food intake dose
CN111128342A (en) Artificial intelligence recommended dish collocation platform and dish collocation customizing method
JP2018010399A (en) Food product information providing system, food product information providing method, and food product information providing program
CN110362739A (en) A kind of recommending recipes method based on big data
CN114974513A (en) Method and system for customizing nutrition package

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200327