Food life cycle digital management method and system

Through the digital management system, receive food management requests from the user, obtain food images and attributes, generate edible planning data, and update the quality management chain, solving the problem of low efficiency in food shelf life management and improving food safety.

CN118674415BActive Publication Date: 2025-02-28GUANGZHOU YUXIANG AUTOMATION EQUIP CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410878895.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2025-02-28
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively manage the shelf life of food, which leads to users who may purchase a variety of foods, and the shelf life date of each food is different, which may cause food expiration, affecting food safety.

Method used

Provide a digital management method and system for food life cycle. By receiving food management requests from the user, obtaining food images to determine quality shelf life information, generating food planning data, and updating the quality shelf life management chain according to the user's consumption record needs to realize food shelf life management.

Benefits of technology

It improves the efficiency of food shelf life management, ensures that users can timely understand the shelf quality information of food, eat and consume food reasonably, and reduces food expiration and safety risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The present invention provides a food life cycle digital management method and system, which receive a food management request from a user end, determine the shelf life information of the designated food according to a food image uploaded by the user end to a record node in a shelf life management chain corresponding to the designated food, obtain the food attributes of the designated food, generate consumption planning data according to the food attributes and the shelf life information, update the planning nodes in the shelf life management chain, retrieve an elimination interface and send it to the user end according to the consumption record requirements of the user end, the elimination interface includes a full elimination interface and a half elimination interface, update the elimination node in the shelf life management chain based on the food consumption information input by the user end to the elimination interface, and obtain the food management data corresponding to the designated food according to the updated shelf life management chain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to data monitoring technology, and in particular to a food life cycle digital management method and system. Background Art

[0002] With the improvement of people's living standards and the diversification of dietary needs, food safety issues have received increasing attention. Among them, the shelf life management of food is one of the important links to ensure that consumers eat safe food.

[0003] At present, information corresponding to the shelf life of food, such as the shelf life date, is usually printed on the food packaging. Users usually need to check the shelf life date on the food packaging to know whether the food is still edible. However, since users may purchase a variety of foods and the shelf life of each food may be different, the user may not eat the food for a long time and the food may expire. If the expired food is eaten, it may affect the user's health and reduce food safety.

[0004] Therefore, how to manage the shelf life of food and improve food safety has become an urgent problem that needs to be solved today. Summary of the invention

[0005] The present invention provides a food life cycle digital management method and system, which can manage the shelf life of food and improve food safety.

[0006] A first aspect of the present invention provides a method for digital management of food life cycle, comprising:

[0007] Receive a food management request from a user terminal, and determine the shelf life information of the designated food according to a food image uploaded by the user terminal to a recording node in a shelf life management chain corresponding to the designated food;

[0008] Acquire the food attributes of the designated food, generate consumption planning data according to the food attributes and the shelf life information, and update the planning nodes in the shelf life management chain;

[0009] According to the consumption record requirements of the user terminal, a cancellation interface is retrieved and sent to the user terminal, wherein the cancellation interface includes a full cancellation interface and a half cancellation interface;

[0010] Based on the food consumption information input by the user end to the elimination interface, the elimination node in the shelf life management chain is updated, and the food management data corresponding to the designated food is obtained according to the updated shelf life management chain.

[0011] Optionally, in a possible implementation of the first aspect, receiving a food management request from a user terminal, and determining the shelf life information of the specified food according to a food image uploaded by the user terminal to a record node in a shelf life management chain corresponding to the specified food, includes:

[0012] In response to the food management request, a record interface corresponding to a record node in an initial management chain is retrieved and sent to the user terminal, and a food image uploaded by the user terminal based on the record interface is obtained;

[0013] Extracting the date keyword and the name keyword in the food image, obtaining the center points of the first character and the last character in the date keyword and the name keyword, and connecting the two center points to obtain a traversal direction;

[0014] Traverse the characters after the date keyword and the name keyword according to the traversal direction, and obtain characters whose interval distance is less than the character spacing threshold as target characters corresponding to the date keyword or the name keyword;

[0015] Based on the target character, the shelf life period corresponding to the date keyword and the food name corresponding to the name keyword are obtained, and the food name and the initial management chain are bound to obtain the shelf life management chain corresponding to the specified food, and the shelf life information includes the shelf life period.

[0016] Optionally, in a possible implementation manner of the first aspect, obtaining the food attributes of the designated food, generating consumption planning data according to the food attributes and the shelf life information to update the planning nodes in the shelf life management chain includes:

[0017] Determine the food attributes of the designated food, the food attributes including fast consumption attributes and slow consumption attributes, and obtain the planned time interval for configuring the food attributes;

[0018] Determine the expiration time point of the designated food based on the shelf life information, and perform reverse time calculation according to the expiration time point and the planned time interval to obtain the planned time point;

[0019] Acquire a planned time period corresponding to the planned time point to the expiration time point, and generate consumption planning data corresponding to the planned time period according to the remaining amount of the designated food at the planned time point;

[0020] Determining a reminder time point corresponding to the designated food according to the reminder time interval corresponding to the food attribute and the actual consumption of the designated food;

[0021] The planning interface corresponding to the planning node is retrieved, the edible reference area in the planning interface is updated according to the edible planning data, and the dynamic reminder area in the planning interface is updated according to the reminder time point.

[0022] Optionally, in a possible implementation manner of the first aspect, obtaining a planned time period corresponding to the planned time point to the expiration time point, and generating consumption planning data corresponding to the planned time period according to a remaining amount of the designated food corresponding to the planned time point, includes:

[0023] Determine the planned number of days corresponding to the planned time period, and obtain the unit consumption amount according to the ratio of the remaining amount of food to the planned number of days;

[0024] Obtaining a consumption measurement type of the designated food, the consumption measurement type including a counting type and a proportion type, performing consumption analysis and processing on a food model corresponding to the designated food according to the consumption measurement type, obtaining a plurality of planning lines, and updating the food model to obtain a planning model;

[0025] Determine the identities of multiple persons who consume the designated food, obtain the actual consumption of the designated food by each of the persons, and obtain the consumption ratio corresponding to each of the persons according to the ratio of the actual consumption;

[0026] The unit consumption amount is divided according to the consumption proportion to obtain the unit reference amount corresponding to each personnel identity, a personnel planning list is generated based on the personnel identity and the unit reference amount, and the personnel planning list and the planning model are bound to obtain consumption planning data.

[0027] Optionally, in a possible implementation of the first aspect, performing consumption analysis processing on the food model corresponding to the designated food according to the consumption measurement type to obtain a plurality of planning lines to update the food model to obtain a planning model includes:

[0028] Retrieving the food model corresponding to the designated food, and when the consumption measurement type is a proportion type, obtaining the remaining proportion according to the ratio of the remaining amount of the food to the total amount of the food corresponding to the designated food, and generating a remaining line corresponding to the remaining proportion on the proportion scale axis of the food model;

[0029] Acquire multiple planned remaining amounts obtained by decreasing the remaining amount of the food and the unit consumption amount, and obtain the planned proportion according to the ratio of each planned remaining amount to the total amount of food;

[0030] Generating planning lines corresponding to the planning proportions on the scale axis of the food model, and updating the food model according to the planning lines to obtain a planning model;

[0031] When the consumption measurement type is a counting type, the food model is copied according to the remaining amount of the food, and multiple food models are divided according to the unit consumption to obtain multiple planning combinations;

[0032] The planning combinations are arranged according to an arrangement direction, a bottom line corresponding to each planning combination is constructed as a planning line, the planning combinations are updated according to the planning lines to obtain an integrated model, and a planning model is obtained based on the integrated model.

[0033] Optionally, in a possible implementation manner of the first aspect, determining the reminder time point corresponding to the designated food according to the reminder time interval corresponding to the food attribute and the actual consumption of the designated food includes:

[0034] Perform reverse time calculation based on the expiration time point and the reminder time interval to obtain the reminder time point;

[0035] Determine a monitoring time point based on the current time point and the update time interval, and obtain the actual consumption of the specified food from the current time point to the monitoring time point;

[0036] According to the comparison result of the actual consumption and the consumption threshold corresponding to the food attribute, the adjustment type of the reminder time point is determined, and the adjustment type includes a pre-type and a post-type, and the adjustment time point is obtained according to the adjustment type and the reminder time point;

[0037] Obtain the interval duration between the current time point and the adjusted time point. If the interval duration is greater than or equal to the interval duration threshold, determine the adjusted time point as the updated reminder time point. If the interval duration is less than the interval duration threshold, do not update the reminder time point.

[0038] Optionally, in a possible implementation manner of the first aspect, determining an adjustment type of the reminder time point according to a comparison result between the actual consumption and a consumption threshold corresponding to the food attribute, the adjustment type including a pre-type and a post-type, and obtaining the adjustment time point according to the adjustment type and the reminder time point includes:

[0039] If the actual consumption is less than the consumption threshold corresponding to the food attribute, determining the adjustment type of the reminder time point to be a pre-adjustment type;

[0040] Acquire a first quantity difference between the actual consumption and the consumption threshold based on the preconditioning type, and obtain a preconditioning coefficient according to a ratio of the first quantity difference to a difference reference value;

[0041] A lead time interval is obtained according to the product of the lead coefficient and the reference lead time interval corresponding to the food attribute, and a reverse time calculation is performed based on the reminder time point and the lead time interval to obtain an adjustment time point;

[0042] If the actual consumption is greater than the consumption threshold corresponding to the food attribute, determining the adjustment type of the reminder time point to be a post-adjustment type;

[0043] Acquire the consumption threshold and the second quantity difference of the actual consumption based on the post-type, and obtain the post-coefficient according to the ratio of the second quantity difference to the difference reference value;

[0044] The post-time interval is obtained according to the product of the post-coefficient and the reference post-time interval corresponding to the food attribute, and the adjustment time point is obtained by performing forward time calculation based on the reminder time point and the post-time interval.

[0045] Optionally, in a possible implementation of the first aspect, according to the consumption record requirement of the user terminal, a deletion interface is retrieved and sent to the user terminal, and the deletion interface includes a full deletion interface and a half deletion interface, including:

[0046] The consumption record requirement includes a full consumption requirement and a half consumption requirement. The full elimination interface is called according to the full consumption requirement, and the half elimination interface is called according to the half consumption requirement.

[0047] Based on the food consumption information input by the user end to the elimination interface, the elimination node in the shelf life management chain is updated, including:

[0048] The full elimination interface is updated according to the food elimination list, the elimination confirmation information of the designated food by the user end based on the food elimination list is obtained, and the designated food in the food elimination list is deleted to obtain food consumption information; or,

[0049] Acquire the current consumption input by the user terminal based on the semi-consumption interface, and when the designated food is of the counting type, copy the food model in the semi-consumption interface according to the total amount of the designated food;

[0050] Determine a number of food models corresponding to the current consumption as a target model, retrieve the consumption pixel value to update the target model to obtain food consumption information;

[0051] When the designated food is of the proportion type, the consumption proportion is obtained according to the ratio of the current consumption amount to the total amount of the food, and a consumption line corresponding to the consumption proportion is generated on the proportion scale axis of the food model;

[0052] The consumption pixel value is retrieved to update the model portion corresponding to the consumption line in the food model to obtain food consumption information.

[0053] Optionally, in a possible implementation of the first aspect, a purchase planning request sent by the user terminal based on a purchase node in the shelf life management chain is received, a purchase interface is retrieved and sent to the user terminal, and an estimated number of days of consumption input by the user terminal based on the purchase interface is obtained;

[0054] Obtaining the historical consumption amount and historical consumption days of the designated food, and obtaining the historical consumption average amount according to the ratio of the historical consumption amount to the historical consumption days;

[0055] A purchase reference amount is obtained according to the product of the estimated consumption days and the historical average consumption amount, and a purchase reference area in the purchase interface is updated based on the purchase reference amount to obtain a purchase reference interface and send it to the user terminal.

[0056] A second aspect of the present invention provides a food life cycle digital management system, comprising:

[0057] A receiving module, used to receive a food management request from a user terminal, and determine the shelf life information of the specified food according to the food image uploaded by the user terminal to the recording node in the shelf life management chain corresponding to the specified food;

[0058] An acquisition module, used for acquiring the food attributes of the designated food, generating consumption planning data according to the food attributes and the shelf life information, and updating the planning nodes in the shelf life management chain;

[0059] A calling module, used for calling a deletion interface and sending it to the user terminal according to the consumption record requirements of the user terminal, wherein the deletion interface includes a full deletion interface and a half deletion interface;

[0060] An updating module is used to update the elimination node in the shelf life management chain based on the food consumption information input by the user terminal to the elimination interface, and obtain the food management data corresponding to the designated food according to the updated shelf life management chain.

[0061] The beneficial effects of the present invention are as follows:

[0062] 1. The present invention can manage the shelf life of food and improve food safety. Specifically, the present invention manages the shelf life data of food through a shelf life management chain, which includes a recording node, a planning node, an elimination node, and a purchase node. Among them, the recording node can be used to quickly obtain the shelf life information of food and improve the efficiency of data management. The planning node can make reasonable consumption plans for food in combination with the user's consumption situation, provide a consumption reference for the user, and can also promptly remind the user of expiration to improve the food safety. The elimination node can record the consumption of food and provide users with intuitive food consumption display data. The purchase node can plan the purchase data of food in combination with the user's consumption of food and provide a purchase reference for the user.

[0063] 2. When planning the consumption of food, the present invention will determine the time period for consumption planning based on the consumption properties of the food, so that reasonable consumption planning can be carried out before the food expires, providing a consumption reference for the user. The present invention will also remind the food of its expiration, so that the user can finish consuming the food as soon as possible before the expiration, thereby improving the safety of food consumption. Specifically, the present invention will dynamically adjust the time of the expiration reminder based on the properties of the food and the actual consumption, so that the user can be reminded of the expiration in a timely manner based on the actual situation.

[0064] 3. When recording the consumption of food, the present invention will perform one-time or non-one-time elimination processing on the food according to the needs of the user, so that the consumption of food can be recorded and updated in a timely manner, so that the user can view the consumption of food. For food that is not eliminated once, the present invention will display the consumption data of each time through the virtual model corresponding to the food, so that the user can intuitively view the consumption information of the corresponding food. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 It is a flow chart of a method for digital management of food life cycle provided by an embodiment of the present invention;

[0066] Figure 2 is a schematic diagram of a planning model of a designated food of a proportion type provided by an embodiment of the present invention;

[0067] Figure 3 is a schematic diagram of a planning model for a designated food of a counting type provided by an embodiment of the present invention;

[0068] Figure 4 It is a structural schematic diagram of a food life cycle digital management system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0069] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0070] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0071] See also Figure 1 , is a flow chart of a method for digital management of food life cycle provided by an embodiment of the present invention, Figure 1 The execution subject of the method shown may be a software and / or hardware device. The execution subject of the present application may include but is not limited to at least one of the following: user equipment, network equipment, etc. Among them, user equipment may include but is not limited to computers, smart phones, personal digital assistants (PDA) and the electronic devices mentioned above. Network equipment may include but is not limited to a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of computers or network servers, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computers. This embodiment does not limit this. It includes steps S1 to S4, as follows:

[0072] S1, receiving a food management request from a user terminal, and determining the shelf life information of the designated food according to a food image uploaded by the user terminal to a record node in a shelf life management chain corresponding to the designated food.

[0073] It is understandable that in order to manage the shelf life of the designated food selected by the user, the shelf life information of the designated food can be managed accordingly through the shelf life management chain. Specifically, when the user wants to manage the shelf life of the purchased food, he can first send a food management request to the server, and then upload the food image corresponding to the designated food to be managed based on the recording node, and the server can extract the shelf life information of the corresponding designated food from the food image.

[0074] It is worth noting that the food images uploaded by users need to include the name of the food and the shelf life information. If one image cannot include both the name of the food and the shelf life information at the same time, multiple food images can be uploaded to facilitate the server to extract the food information later.

[0075] Among them, the user end refers to the terminal held by the user, such as a mobile phone, the designated food refers to the food for which the user wants to manage the shelf life, the shelf life management chain refers to the data chain for managing the shelf life of the food, including a recording node for entering food information, a planning node for planning the consumption of the designated food, an elimination node for eliminating the record of the designated food, and a purchase node for planning the purchase of the designated food with purchase demand, the food image refers to the captured image of the designated food, and the shelf life information refers to the time period from the production date of the food to the expiration date of the food.

[0076] Based on the above embodiment, the specific implementation of step S1 may be:

[0077] S11, responding to the food management request, calling up a record interface corresponding to a record node in an initial management chain and sending it to the user end, and obtaining a food image uploaded by the user end based on the record interface.

[0078] After receiving the user's food management request, the server will retrieve the initial management chain according to the user's request. After the user clicks on the record node in the initial management chain, the server can extract the record interface corresponding to the record node and send it to the user. After the user clicks the upload button on the record interface, he can take a photo of the specified food and then upload the captured food image to the server.

[0079] Among them, the initial management chain refers to a benchmark management chain that does not contain any information. The chain can be subsequently updated in combination with the relevant information of the specified food to obtain the shelf life management chain corresponding to the specified food. It can be understood that in order to standardize the management of the shelf life of food, the node types of the shelf life management chains corresponding to different foods are the same, for example, they all include the recording nodes, planning nodes, elimination nodes and purchase nodes mentioned above, but because the food information corresponding to different foods is different, the storage information of the shelf life management chains corresponding to different foods is different, and corresponds to the corresponding food. Therefore, the initial management chain can be bound and updated according to the food information corresponding to the specified food to obtain the shelf life management chain corresponding to the specified food.

[0080] S12, extracting the date keyword and the name keyword in the food image, obtaining the center points of the first character and the last character in the date keyword and the name keyword, and connecting the two center points to obtain a traversal direction.

[0081] It can be understood that after the server obtains the food image of the specified food, it can extract the date keywords and name keywords of the food from the food image of the specified food. In actual applications, the date keywords can include production date and expiration date, and the name keywords can be the name of the food. The traversal direction refers to the extraction direction of the server when extracting keywords from the image.

[0082] It is also understandable that when a user takes a photo of a specified food, the resulting food image may be slanted. Therefore, in order to accurately extract the food name and shelf life in the food image, the traversal direction can be obtained first, and then the corresponding content after the keyword in the food image can be extracted based on the traversal direction.

[0083] Specifically, the server will first determine the center point of the first character and the center point of the last character in the date keyword, and connect these two center points to get the traversal direction when extracting the date. When the server connects the center points, the connection direction can be from the center point of the first character to the center point of the last character. Similarly, determine the center point of the first character and the center point of the last character in the name keyword, and connect these two center points to get the traversal direction when extracting the name.

[0084] S13, traversing the characters after the date keyword and the name keyword according to the traversal direction, and acquiring characters whose interval distance is less than a character spacing threshold as target characters corresponding to the date keyword or the name keyword.

[0085] It can be understood that after obtaining the traversal direction, the server will traverse the characters after the date keyword and after the name keyword according to the traversal direction. Since the phrases corresponding to the date content and the food name content are closely related in semantics, the interval between them is generally not large. Therefore, the server will obtain the interval distance between the characters after the date keyword, select the characters with an interval distance less than the character interval threshold as the target characters corresponding to the date keyword, obtain the interval distance between the characters after the name keyword, and select the characters with an interval distance less than the character interval threshold as the target characters corresponding to the name keyword. Among them, the character interval threshold refers to the preset threshold used to determine the interval distance between characters, which can determine whether the characters after the keyword are characters related to the date and name that need to be extracted, and the target characters refer to the characters corresponding to the date content or food name content extracted by the server.

[0086] S14, based on the target character, obtain the shelf life period corresponding to the date keyword and the food name corresponding to the name keyword, bind the food name and the initial management chain to obtain the shelf life management chain corresponding to the designated food, and the shelf life information includes the shelf life period.

[0087] It can be understood that after the server extracts the target characters corresponding to the date keyword according to the traversal direction, the shelf life period from the production date to the expiration date corresponding to the date keyword can be obtained. After extracting the target characters corresponding to the name keyword, the food name of the specified food can be obtained. Then, the obtained food name is bound to the initial management chain to obtain the shelf life management chain corresponding to the specified food, wherein the shelf life period refers to the time period from the production date to the expiration date of the food.

[0088] Through the above implementation, the server can quickly extract the food name and shelf life information of the specified food, thereby improving the efficiency and accuracy of obtaining food information.

[0089] S2, obtaining the food attributes of the designated food, generating consumption planning data according to the food attributes and the shelf life information, and updating the planning nodes in the shelf life management chain.

[0090] In actual applications, if users eat expired food by mistake, the food safety will be reduced. Therefore, in order to improve the food safety, the present invention will plan the consumption of designated food before the designated food expires, and can provide a consumption reference for users. Due to the different consumption types of food, some foods are consumed quickly and some foods are consumed slowly. Therefore, when planning the consumption of food, this solution will plan the consumption of food in different ways based on the food attributes, wherein the food attributes include fast consumption attributes with fast consumption speed and slow consumption attributes with slow consumption speed.

[0091] Specifically, after the server obtains the food attributes of the specified food, it can generate food consumption planning data to update the planning nodes in the shelf life management chain based on the food attributes and shelf life information, where the consumption planning data refers to the user's daily reference consumption of the specified food within the planning time.

[0092] In some embodiments, step S2 includes steps S21 to S25, which are specifically as follows:

[0093] S21, determining the food attributes of the designated food, the food attributes including fast consumption attributes and slow consumption attributes, and obtaining the planned time interval for configuring the food attributes.

[0094] Food attributes include fast consumption attributes and slow consumption attributes. Fast consumption attributes refer to food attributes that are consumed quickly. The food corresponding to this food attribute may be milk and other foods that are consumed quickly. Slow consumption attributes refer to food attributes that are consumed slowly. The food corresponding to this food attribute may be cooking oil and other foods that are consumed slowly. Since fast consumption foods can be consumed in a short time, while slow consumption foods cannot be consumed in a short time, the planned time interval corresponding to the fast consumption attribute may be shorter than the planned time interval corresponding to the slow consumption attribute.

[0095] Among them, the planning time interval refers to the duration of consumption planning for designated food. It can be understood that when this plan plans the consumption of designated food, it plans the consumption of the designated food for a period of time before it expires. Therefore, for foods with different food attributes, the planned time duration in this plan is also different. Through consumption planning, users can be provided with consumption references, so that users can consume the food before it expires, thereby improving the safety of food consumption.

[0096] For example, the planning time interval corresponding to the fast consumption attribute may be 3 days, and the planning time interval corresponding to the slow consumption attribute may be 15 days, so that the consumption of food can be planned in advance for the corresponding time period to provide a consumption reference for the user.

[0097] S22, determining the expiration time point of the designated food based on the shelf life information, and performing reverse time calculation according to the expiration time point and the planned time interval to obtain the planned time point.

[0098] It is understandable that after obtaining the expiration date of the specified food, the server can reversely calculate from the expiration time point according to the planning time interval to obtain the date when planning for the specified food begins, that is, the planning time point. For example, if the expiration time point is June 24, 2024, and the planning time interval is 20 days, then the planning time point is June 4, 2024, where the expiration time point refers to the time when the food expires, and the planning time point refers to the time when planning for the specified food begins.

[0099] S23, obtaining a planned time period corresponding to the planned time point to the expiration time point, and generating consumption planning data corresponding to the planned time period according to the remaining amount of the designated food corresponding to the planned time point.

[0100] It is understandable that when the server is planning the consumption of a specified food, part of the food may have been consumed, and the remaining part needs to be planned during the planning. Therefore, the server can obtain a time period from the planning time point to the expiration time point, that is, the planning time period. When the planning time point is reached, the server will obtain the remaining amount of food corresponding to the time point, and plan the consumption of the remaining amount of food according to the planning time period to obtain the consumption planning data. Among them, the remaining amount of food refers to the remaining amount of the specified food corresponding to the planning time point.

[0101] In some embodiments, the consumption planning data may be generated by the following steps:

[0102] S231, determining the planned days corresponding to the planned time period, and obtaining the unit consumption amount according to the ratio of the remaining amount of food to the planned days.

[0103] It is understandable that when planning, what is planned is the daily consumption within the planning time period. Therefore, the corresponding planning days can be determined by the planning time period, and the unit consumption per day can be obtained by calculating the ratio of the remaining food amount and the planning days, wherein the unit consumption refers to the daily consumption reference amount within the planning time period.

[0104] S232, obtaining the consumption measurement type of the designated food, the consumption measurement type including a counting type and a proportion type, performing consumption analysis and processing on the food model corresponding to the designated food according to the consumption measurement type, obtaining multiple planning lines, and updating the food model to obtain a planning model.

[0105] In actual applications, different designated foods correspond to different consumption metering types. When making consumption plans, this solution can use different planning methods according to the different consumption metering types. Specifically, each designated food has a corresponding food model in the database, and each food has a corresponding consumption metering type. When obtaining consumption planning data, the server will retrieve the food model corresponding to the designated food according to the consumption metering type of the designated food. The consumption metering types include counting type and proportion type. The counting type is a type that directly measures food consumption by quantity, such as how many eggs and apples a user consumes every day. The proportion type is a type that determines food consumption by calculating the proportion of food consumption. After the server obtains the consumption metering type corresponding to the designated food, it can plan and display the consumption of the food model corresponding to the designated food according to the above-mentioned planned unit consumption. Specifically, multiple planning lines can be generated on the food model to update the food model to obtain the planning model.

[0106] Among them, the food model refers to a virtual model corresponding to the specified food, the planning line refers to the line of the daily reference amount of consumption within the planned time period of the planning user, and the planning model refers to the food model obtained after the consumption planning of the specified food.

[0107] Based on the above embodiment, the specific implementation of step S232 may be:

[0108] S2321, calling up the food model corresponding to the designated food, when the consumption measurement type is a proportion type, obtaining the remaining proportion according to the ratio of the remaining amount of the food and the total amount of food corresponding to the designated food, and generating a remaining line corresponding to the remaining proportion on the proportion scale axis of the food model.

[0109] Specifically, when the consumption measurement type corresponding to the specified food is a proportion type, there will be a proportion scale axis on the food model of the specified food retrieved by the server, and there will be multiple proportion scale values ​​on the proportion scale axis. By calculating the ratio of the remaining food amount of the specified food to the total food amount of the specified food, the remaining proportion of the remaining food can be obtained. At the proportion scale value corresponding to the remaining proportion on the proportion scale axis of the food model, a remaining line representing the remaining food amount can be generated. For example, if the specified food is 1 / 5 remaining, a remaining line can be generated at the proportion scale value corresponding to 1 / 5 in the proportion scale axis.

[0110] Among them, the remaining proportion refers to the ratio of the remaining amount of a specified food to the total amount of food of the specified food, and the proportion scale axis refers to the axis used to indicate the proportion of food remaining in the food model.

[0111] S2322, obtaining a plurality of planned remaining quantities obtained by decreasing the remaining quantity of the food and the unit consumption, and obtaining a planned proportion according to the ratio of each planned remaining quantity to the total quantity of the food.

[0112] After obtaining the food surplus and unit consumption, you can subtract the unit consumption from the food surplus to get the first planned surplus, and then subtract the unit consumption from the first planned surplus to get the second planned surplus, and so on. By subtracting the unit consumption from the planned surplus obtained each time, you can get multiple planned surpluses, and then calculate the ratio of the multiple planned surpluses to the total food amount of the specified food to get the planned proportion corresponding to each planned surplus, where the planned surplus refers to the surplus corresponding to each day within the planning time period, and the planned proportion refers to the ratio of the planned surplus to the total food amount.

[0113] S2323, generating planning lines corresponding to the planned proportions on the proportion scale axis of the food model, and updating the food model according to the planning lines to obtain a planning model.

[0114] After obtaining the planned proportions corresponding to multiple planned surpluses, a planning line corresponding to each planned proportion can be generated in the proportion scale axis on the food model. Since multiple planned proportions are obtained, multiple planning lines can be obtained. The planning lines can provide a reference for how much specified food the user consumes every day. By updating the food model through the planning lines, the planning model corresponding to the specified food of the proportion type can be obtained.

[0115] See also Figure 2 , which is a schematic diagram of a planning model for a designated food of a proportion type provided in an embodiment of the present invention, such as Figure 2 As shown in , when the remaining food proportion is 40%, the line segment generated at 40% on the food model's proportion scale axis is the remaining line. When the first planned proportion obtained by the server is 30%, the line segment generated at 30% on the food model's proportion scale axis is planning line 1. When the first planned proportion obtained by the server is 20%, the line segment generated at 20% on the food model's proportion scale axis is planning line 2. When the first planned proportion obtained by the server is 10%, the line segment generated at 10% on the food model's proportion scale axis is planning line 3.

[0116] S2324: When the consumption measurement type is a counting type, the food model is copied according to the remaining amount of the food, and multiple food models are divided according to the unit consumption to obtain multiple planning combinations.

[0117] It can be understood that when the consumption measurement type corresponding to the specified food is the counting type, the server can copy the food model according to the remaining amount of food to obtain multiple food models. The food model can be copied as many times as the remaining amount of the specified food, and then the multiple consumption models can be divided according to the unit consumption amount to obtain multiple planning combinations. For example, the remaining amount of a specified food is 9 and the unit consumption amount is 3, then the server will first copy the food model into 9, and then divide the 9 food models into groups of 3 to obtain 3 planning combinations.

[0118] S2325, arranging each of the planning combinations according to an arrangement direction, constructing a bottom line corresponding to each of the planning combinations as a planning line, updating the planning combinations according to the planning lines to obtain an integrated model, and obtaining a planning model based on the integrated model.

[0119] It can be understood that after obtaining multiple planning combinations, the server will arrange the multiple planning combinations according to the arrangement direction, and then the server will construct corresponding bottom lines for the multiple planning combinations as planning lines. Multiple integrated models can be obtained by updating the multiple planning combinations according to the planning lines. Multiple integrated models can form a planning model corresponding to the specified food of the counting type.

[0120] See also Figure 3 , which is a schematic diagram of a planning model for a designated food of a counting type provided by an embodiment of the present invention, such as Figure 3 As shown in , when the remaining food quantity of the specified food of the counting type is 9 and the unit consumption is 3, the server will divide the 9 food models into planning combination 1, planning combination 2, and planning combination 3. The bottom line below planning combination 1 is planning line 1, the bottom line below planning combination 2 is planning line 2, and the bottom line below planning combination 3 is planning line 3. Planning combination 1 and planning line 1 can constitute integrated model 1, planning combination 2 and planning line 2 can constitute integrated model 2, and planning combination 3 and planning line 3 can constitute integrated model 3.

[0121] The arrangement direction can be as follows Figure 3 Shown from left to right, the integrated model refers to a model that combines multiple food models into a combined model, and the number of food models and unit consumption in the integrated model are equal.

[0122] Through the above implementation, the user can obtain the daily reference amount of consumption of the specified food within the planned time period.

[0123] S233, determining the identities of multiple persons who consume the designated food, obtaining the actual consumption of the designated food by each of the identities, and obtaining the consumption proportion corresponding to each of the identities based on the ratio of the actual consumption.

[0124] It is understandable that when there are multiple users who jointly manage food, for example, there may be multiple family members who manage and register, each person can view and manage the corresponding information of the food. For example, each person can record the consumption of designated food. The server can determine the identities of multiple people based on the login information of multiple user terminals. The consumption of designated food by each person may be different. According to the historical consumption data of each person for the designated food, the actual consumption of the designated food by each person can be obtained. By calculating the ratio of each person's actual consumption, the corresponding consumption ratio of each person can be obtained. For example, the actual consumption of person 1 accounts for 10% of the total food, the actual consumption of person 2 accounts for 30% of the total food, and the actual consumption of person 3 accounts for 10% of the total food. Then the consumption ratio of person 1, person 2, and person 3 is 1:3:1.

[0125] Among them, the actual consumption refers to the total amount of designated food consumed by each person, and the consumption ratio refers to the ratio between the consumption amounts of each person.

[0126] S234, dividing the unit consumption amount according to the consumption proportion to obtain the unit reference amount corresponding to each personnel identity, generating a personnel planning list based on the personnel identity and the unit reference amount, and binding the personnel planning list and the planning model to obtain consumption planning data.

[0127] It can be understood that after obtaining the reference amount of daily consumption during the planning time period, the unit consumption amount can be divided according to the consumption ratio, that is, the consumption ratio of each person is multiplied by the unit consumption amount, and the reference amount of daily consumption for each person can be obtained, that is, the unit reference amount of each person. After obtaining the unit reference amount, a personnel planning list can be generated according to the identity of the personnel and the unit reference amount. Each person can clearly see the daily reference amount of consumption for each person from the planning list. The server binds the planning list and the planning model to obtain the consumption planning data. When the user clicks on the planning model based on the user end, the personnel planning list corresponding to the planning model can be retrieved and sent to the user end.

[0128] The unit reference quantity is the reference quantity of the specified food that each person needs to eat every day during the planned time period, and the personnel planning list refers to a list containing the personnel identity and the unit reference quantity of each person.

[0129] S24, determining a reminder time point corresponding to the designated food according to the reminder time interval corresponding to the food attribute and the actual consumption of the designated food.

[0130] In order to allow users to finish consuming food before it expires, the server can remind users when the food is about to expire. Since the food properties of designated foods are different, the time taken to consume the designated food is also different. Therefore, the reminder time intervals configured for designated foods with different properties will also be different. Since the actual consumption of different designated foods is different, the server can dynamically adjust the reminder time point according to the actual consumption of the designated food when reminding the user.

[0131] Specifically, for designated foods with fast consumption attributes, since this type of food is consumed quickly, the remaining designated food can be consumed in a short time, so the reminder time interval configured by the server for this type of food can be shorter. For designated foods with slow consumption attributes, since this type of food is consumed slowly, the remaining designated food cannot be consumed in a short time, so the reminder time interval configured by the server for this type of food can be longer.

[0132] Among them, the reminder time interval is the time interval for expiration reminders that is pre-configured based on the food attributes, the actual consumption refers to the actual consumption of the specified food, and the reminder time point refers to the time point when the reminder information is sent to the user.

[0133] Based on the above embodiment, the specific implementation of step S24 may be:

[0134] S241, performing reverse time calculation according to the expiration time point and the reminder time interval to obtain the reminder time point.

[0135] It is understandable that after obtaining the reminder time interval of the specified food, the server can reversely calculate from the expiration time point of the specified food according to the reminder time interval to obtain the benchmark reminder time point. When the reminder time point is reached, the server can send a reminder message to the user to remind the user that the specified food is about to expire. For example, for fast-moving consumables, the reminder time interval can be 3 days, and the server will remind the user 3 days before the expiration time point of the fast-moving consumables. For slow-moving consumables, the reminder time interval can be 10 days, and the server will remind the user 10 days before the expiration time point of the fast-moving consumables.

[0136] S242, determining a monitoring time point based on the current time point and the update time interval, and obtaining the actual consumption of the designated food from the current time point to the monitoring time point.

[0137] In order to dynamically adjust the reminder time point so that the user can be reminded of the expiration time in a timely manner, this solution will obtain the actual consumption of the specified food once every specific time period, and dynamically adjust the reminder time point based on the actual consumption obtained.

[0138] Among them, the current time point refers to the current time point, the update time interval refers to the time interval for updating the actual consumption of the specified food, for example, the actual consumption can be monitored once every 3 days, and the monitoring time point refers to the time point when the actual consumption is monitored. The present invention will obtain the actual consumption of the specified food at the monitoring time point, and dynamically adjust the reminder time point according to the actual consumption.

[0139] S243, determining the adjustment type of the reminder time point according to the comparison result of the actual consumption and the consumption threshold value corresponding to the food attribute, the adjustment type including the pre-type and the post-type, and obtaining the adjustment time point according to the adjustment type and the reminder time point.

[0140] Since the actual consumption of different foods is different, in order to determine the actual consumption speed of a specified food, the actual consumption speed of the specified food can be determined by a preset consumption threshold. The consumption threshold refers to a preset standard value for measuring the consumption of a specified food. Since the food attributes corresponding to the specified food are different, the consumption threshold corresponding to the specified food is also different. For specified foods with fast consumption attributes, the consumption threshold can be set larger, and for specified foods with slow consumption attributes, the consumption threshold can be set smaller.

[0141] Among them, the pre-setting type refers to the adjustment type of advancing the reminder time point, the post-setting type refers to the adjustment type of delaying the reminder time point, and the adjustment time point refers to the time point after the reminder time point is adjusted.

[0142] Based on the above embodiment, the specific implementation of step S243 may be:

[0143] S2431: If the actual consumption is less than the consumption threshold corresponding to the food attribute, determining the adjustment type of the reminder time point as a pre-adjustment type.

[0144] It can be understood that if the actual consumption of a specified food from the current time point to the monitoring time point is greater than the consumption threshold corresponding to the food attribute, it can be considered that the consumption speed of the specified food is slow. When the food is consumed very slowly, it means that the risk of expiration is relatively high because the food may not be consumed before the expiration date. Therefore, a time point for early expiration reminder can be selected so that users can consume the food as soon as possible.

[0145] S2432: Obtain a first quantity difference between the actual consumption and the consumption threshold based on the preconditioning type, and obtain a preconditioning coefficient according to a ratio of the first quantity difference to a difference reference value.

[0146] It can be understood that when the adjustment type of the reminder time point is the pre-set type, the server will obtain the difference between the actual consumption of the specified food and the consumption threshold. The difference is the first quantity difference. The larger the first quantity difference, the slower the consumption speed of the specified food, and the larger the adjustment range of the corresponding reminder time point can be. By calculating the ratio of the first quantity difference to the difference reference value, the pre-set coefficient corresponding to the pre-set type can be obtained.

[0147] The first quantity difference refers to the difference between the actual consumption of the specified food of the pre-set type and the consumption threshold, and the difference reference value is a preset value that can measure the size of the quantity difference.

[0148] S2433, obtaining a lead time interval according to the product of the lead coefficient and a reference lead time interval corresponding to the food attribute, and performing reverse time calculation based on the reminder time point and the lead time interval to obtain an adjustment time point.

[0149] In some embodiments, different baseline lead intervals may be set corresponding to different food attributes. The baseline lead interval corresponding to fast-consumption foods may be smaller than the baseline lead interval corresponding to slow-consumption foods. The lead time interval can be obtained by multiplying the lead coefficient and the baseline lead interval, and a lead time interval can be reversely calculated from the reminder time point to obtain an adjustment time point for the lead type.

[0150] The reference lead interval refers to a preset lead interval, and the lead time interval refers to the time interval for moving the reminder time point forward.

[0151] S2434: If the actual consumption is greater than the consumption threshold corresponding to the food attribute, determining that the adjustment type of the reminder time point is a post-adjustment type.

[0152] It can be understood that if the actual consumption of a specified food from the current time point to the monitoring time point is greater than the consumption threshold corresponding to the food attribute, it can be considered that the specified food is consumed quickly. When the food is consumed very quickly, it means that the risk of expiration is relatively low because the food may have been consumed before it expires. Therefore, you can choose to postpone the time point of the expiration reminder, and the adjustment type is the postponing type.

[0153] S2435: Obtain the consumption threshold and the second quantity difference of the actual consumption based on the post-type, and obtain the post-coefficient according to the ratio of the second quantity difference to the difference reference value.

[0154] It can be understood that when the adjustment type of the reminder time point is a post-type, the difference between the actual consumption of the specified food and the consumption threshold can be obtained. The difference is the second quantity difference. By calculating the ratio of the second quantity difference to the difference reference value, the post-type corresponding post-type coefficient can be obtained.

[0155] The second quantity difference refers to the difference between the actual consumption of the designated food of the subsequent type and the consumption threshold.

[0156] S2436, obtaining a post-time interval according to the product of the post-coefficient and a reference post-time interval corresponding to the food attribute, and performing forward time calculation based on the reminder time point and the post-time interval to obtain an adjustment time point.

[0157] In some embodiments, different food attributes may correspond to different configured baseline post-intervals. The baseline post-interval corresponding to foods with fast consumption attributes may be smaller than the baseline post-interval corresponding to foods with slow consumption attributes. The post-interval can be obtained by multiplying the post-interval coefficient and the baseline post-interval. The time distance of a post-interval can be calculated forward from the reminder time point to obtain the adjustment time point of the post-type.

[0158] The reference post-interval refers to a preset post-interval, and the post-interval refers to the time interval for postponing the reminder time point.

[0159] S244, obtaining the interval duration between the current time point and the adjusted time point. If the interval duration is greater than or equal to the interval duration threshold, determining the adjusted time point as the updated reminder time point. If the interval duration is less than the interval duration threshold, not updating the reminder time point.

[0160] After obtaining the adjustment time point, the server can obtain the interval duration from the current time point to the adjustment time point, and compare the interval duration with the interval duration threshold. If the interval duration is greater than the interval duration threshold, it means that there is a certain time interval between the current time point and the adjustment time point. The benchmark reminder time point can be adjusted and updated to the adjustment time point, so that the user can be reminded of the expiration in a timely manner. If the interval duration is less than the interval duration threshold, it means that the time distance between the current time point and the adjustment time point is relatively small. At this time, the reminder time point does not need to be updated, and the benchmark reminder time point can still provide the user with a timely expiration reminder. Among them, the interval duration refers to the duration from the current time point to the adjustment time point, and the interval duration threshold refers to the preset duration threshold for measuring the size of the interval duration.

[0161] Through the above implementation, the reminder time can be dynamically adjusted according to the actual consumption of the specified food, so that the user can be reminded of food expiration in time. S25, calling the planning interface corresponding to the planning node, updating the consumption reference area in the planning interface according to the consumption planning data, and updating the dynamic reminder area in the planning interface according to the reminder time point.

[0162] Among them, the consumption reference area is an area used to display consumption planning data, and the dynamic reminder area is an area used to display reminder time points.

[0163] Through the above implementation methods, the consumption data can be reasonably planned to provide consumption references for users.

[0164] S3, according to the consumption record requirement of the user terminal, calling up a deletion interface and sending it to the user terminal, wherein the deletion interface includes a full deletion interface and a half deletion interface.

[0165] In actual applications, the elimination node can be configured with a corresponding elimination interface, and the elimination interface includes a full elimination interface and a half elimination interface, wherein the full elimination interface refers to an interface for performing elimination operations on food that is consumed all at once, and the half elimination interface refers to an interface for performing elimination operations on food that is not consumed all at once.

[0166] When the user needs to record the consumption of a specified food, a request for consumption record will be sent to the server. The server will retrieve the corresponding deletion interface and send it to the user according to the user's consumption record requirements.

[0167] Based on the above embodiment, the specific implementation of step S3 may be:

[0168] S31, the consumption record requirement includes a full consumption requirement and a half consumption requirement, the full elimination interface is called according to the full consumption requirement, and the half elimination interface is called according to the half consumption requirement.

[0169] It is understandable that for a specified food, when the user wants to consume it all at once, the corresponding consumption record requirement is a full consumption requirement, and the server will call up the full elimination interface and send it to the user. The user may not consume it all at once, then the user's consumption record requirement is a half consumption requirement, and the server will call up the half elimination interface and send it to the user.

[0170] S4, based on the food consumption information input by the user terminal to the elimination interface, the elimination node in the shelf life management chain is updated, and the food management data corresponding to the designated food is obtained according to the updated shelf life management chain.

[0171] It is understandable that after obtaining the food consumption information, the server will display the consumed food in the elimination interface in different ways, thereby updating the elimination node in the shelf life management chain.

[0172] Among them, food consumption information is information used to display food consumption, and food management data refers to data on users' management of designated foods.

[0173] Based on the above embodiment, the specific implementation of step S4 may be:

[0174] S41, updating the full elimination interface according to the food elimination list, obtaining the elimination confirmation information of the designated food by the user terminal based on the food elimination list, deleting the designated food in the food elimination list to obtain food consumption information.

[0175] The food elimination list refers to a list of all foods uploaded by the user, from which the user can select the specified food, and the elimination confirmation information refers to the information that the user needs to confirm the elimination of the specified food.

[0176] It can be understood that the food elimination list includes all foods managed by the user. When the user's consumption record requirement is a full consumption requirement, the server will call out the full elimination interface and update the food elimination list to the full elimination interface. The user can select the specified food to be eliminated in the food elimination list on the full elimination interface. After the server obtains the information of the specified food to be eliminated by the user, it can pop up a message on the full elimination interface to confirm the elimination. After the user clicks to confirm the elimination, the server can eliminate the specified food in the food elimination list that the user has confirmed to eliminate, and then obtain the food consumption information.

[0177] S42, or, obtaining the current consumption input by the user terminal based on the semi-consumption interface, and when the designated food is of the counting type, copying the food model in the semi-consumption interface according to the total amount of the designated food.

[0178] It can be understood that when the user's consumption demand is a semi-consumption demand, the server can call out the semi-elimination interface, and the user can input the consumption of the specified food based on the semi-elimination interface. When the measurement type of the specified food is a counting type, the food model of the specified food can be copied. When copying, it is copied according to the total amount of food of the specified food, so that the current consumption of the specified food can be displayed according to the multiple copied models in the future.

[0179] S43, determining a food model whose quantity corresponds to the current consumption as a target model, retrieving the consumption pixel value to update the target model to obtain food consumption information.

[0180] It is understandable that after determining the current consumption of the designated food, the server will determine the food model with the same number as the current consumption as the target model, and highlight it through the consumption pixel value, so that the consumption of the designated food can be intuitively displayed. For example, the consumption pixel value can be a gray pixel value. When the number of designated food is 8 and the current consumption is 4, then the 4 food models can be displayed using gray pixel values.

[0181] S44, when the designated food is of the proportion type, the consumption proportion is obtained according to the ratio of the current consumption and the total amount of the food, and a consumption line corresponding to the consumption proportion is generated on the proportion scale axis of the food model.

[0182] When the measurement type of the specified food is a proportion type, the current consumption and the total amount of food can be ratio calculated to obtain the consumption proportion, and a consumption line corresponding to the consumption proportion is generated at the corresponding scale value of the proportion scale axis on the food model. It can be understood that since the consumption of the specified food will change with the user's consumption, the consumption line can be dynamically adjusted according to the change in consumption.

[0183] Among them, consumption proportion refers to the ratio of current consumption to the total food amount, and consumption line is a line used to represent food consumption.

[0184] S45, retrieving the consumption pixel value to update the model portion corresponding to the consumption line in the food model to obtain food consumption information.

[0185] It can be understood that for specified foods of proportion type, when displayed in the semi-elimination interface, the model part between the line corresponding to the total amount of food and the consumption line can be displayed through the consumption pixel value, so as to obtain the food consumption information of the specified foods of proportion type.

[0186] Through the above implementation, the food consumption situation can be updated in a timely manner in combination with the needs of the user, so that the user can intuitively see the food consumption data.

[0187] Based on the above steps, this solution also includes the following embodiments:

[0188] A1, receiving a purchase planning request sent by the user terminal based on a purchase node in the shelf life management chain, retrieving a purchase interface and sending it to the user terminal, and obtaining the estimated number of days of consumption input by the user terminal based on the purchase interface.

[0189] It is understandable that when a user has a need to purchase a specified food in the future, he can click on the purchase node in the shelf life management chain and send a purchase plan request to the server. After the server receives the user's purchase plan request, it will retrieve the purchase interface corresponding to the purchase node and send it to the user. The user can enter the number of days expected to consume a certain specified food on the purchase interface.

[0190] A2, obtaining the historical consumption amount and the historical consumption days of the designated food, and obtaining the historical consumption average amount according to the ratio of the historical consumption amount to the historical consumption days.

[0191] When the server receives a purchase plan request for a specified food from a user, it will obtain the historical consumption and historical consumption days of the specified food. By calculating the ratio of the historical consumption and the historical consumption days, the historical average consumption of the specified food can be obtained, that is, the average daily consumption of the specified food in the historical time.

[0192] Among them, historical consumption refers to the total historical consumption of the specified food, and historical consumption days refers to the days corresponding to the historical consumption.

[0193] A3, obtaining a purchase reference amount according to the product of the estimated consumption days and the historical average consumption amount, updating a purchase reference area in the purchase interface based on the purchase reference amount, and obtaining a purchase reference interface to send to the user terminal.

[0194] In actual applications, a purchase reference area for displaying purchase reference data may be pre-configured in the purchase interface corresponding to the purchase node, and the server may update the generated purchase reference data to the purchase reference area and send it to the user.

[0195] Among them, the purchase reference quantity refers to the purchase quantity of designated food that can be used for reference.

[0196] Through the above implementation, a planning reference for the purchase of designated food can be provided in combination with the actual consumption of the user.

[0197] See also Figure 4 , is a schematic diagram of the structure of a food life cycle digital management system provided by an embodiment of the present invention. The data processing system based on the food life cycle digital management system includes:

[0198] A receiving module, used to receive a food management request from a user terminal, and determine the shelf life information of the specified food according to the food image uploaded by the user terminal to the recording node in the shelf life management chain corresponding to the specified food;

[0199] An acquisition module, used for acquiring the food attributes of the designated food, generating consumption planning data according to the food attributes and the shelf life information, and updating the planning nodes in the shelf life management chain;

[0200] A calling module, used for calling a deletion interface and sending it to the user terminal according to the consumption record requirements of the user terminal, wherein the deletion interface includes a full deletion interface and a half deletion interface;

[0201] An updating module is used to update the elimination node in the shelf life management chain based on the food consumption information input by the user terminal to the elimination interface, and obtain the food management data corresponding to the designated food according to the updated shelf life management chain.

[0202] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for digital management of food life cycle, characterized in that: include: Receive a food management request from a user terminal, and determine the shelf life information of the designated food according to a food image uploaded by the user terminal to a recording node in a shelf life management chain corresponding to the designated food; Acquire the food attributes of the designated food, generate consumption planning data according to the food attributes and the shelf life information, and update the planning nodes in the shelf life management chain; According to the consumption record requirements of the user terminal, a cancellation interface is retrieved and sent to the user terminal, wherein the cancellation interface includes a full cancellation interface and a half cancellation interface; Based on the food consumption information input by the user end to the elimination interface, the elimination node in the shelf life management chain is updated, and the food management data corresponding to the designated food is obtained according to the updated shelf life management chain; Acquiring the food attributes of the designated food, generating consumption planning data according to the food attributes and the shelf life information to update the planning nodes in the shelf life management chain, including: Determine the food attributes of the designated food, the food attributes including fast consumption attributes and slow consumption attributes, and obtain the planned time interval for configuring the food attributes; Determine the expiration time point of the designated food based on the shelf life information, and perform reverse time calculation according to the expiration time point and the planned time interval to obtain the planned time point; Acquire a planned time period corresponding to the planned time point to the expiration time point, and generate consumption planning data corresponding to the planned time period according to the remaining amount of the designated food at the planned time point; Determining a reminder time point corresponding to the designated food according to the reminder time interval corresponding to the food attribute and the actual consumption of the designated food; Retrieving a planning interface corresponding to the planning node, updating a consumption reference area in the planning interface according to the consumption planning data, and updating a dynamic reminder area in the planning interface according to the reminder time point; Acquiring a planned time period corresponding to the planned time point to the expiration time point, and generating consumption planning data corresponding to the planned time period according to the remaining amount of the designated food corresponding to the planned time point, including: Determine the planned number of days corresponding to the planned time period, and obtain the unit consumption amount according to the ratio of the remaining amount of food to the planned number of days; Obtaining a consumption measurement type of the designated food, the consumption measurement type including a counting type and a proportion type, performing consumption analysis and processing on a food model corresponding to the designated food according to the consumption measurement type, obtaining a plurality of planning lines, and updating the food model to obtain a planning model; Determine the identities of multiple persons who consume the designated food, obtain the actual consumption of the designated food by each of the persons, and obtain the consumption ratio corresponding to each of the persons according to the ratio of the actual consumption; Dividing the unit consumption amount according to the consumption proportion to obtain the unit reference amount corresponding to each of the personnel identities, generating a personnel planning list based on the personnel identities and the unit reference amount, and binding the personnel planning list and the planning model to obtain consumption planning data; According to the consumption measurement type, the food model corresponding to the designated food is analyzed and processed for consumption, and a plurality of planning lines are obtained to update the food model to obtain a planning model, including: Retrieving the food model corresponding to the designated food, and when the consumption measurement type is a proportion type, obtaining the remaining proportion according to the ratio of the remaining amount of the food to the total amount of the food corresponding to the designated food, and generating a remaining line corresponding to the remaining proportion on the proportion scale axis of the food model; Acquire multiple planned remaining amounts obtained by decreasing the remaining amount of the food and the unit consumption amount, and obtain the planned proportion according to the ratio of each planned remaining amount to the total amount of food; Generating planning lines corresponding to the planning proportions on the scale axis of the food model, and updating the food model according to the planning lines to obtain a planning model; When the consumption measurement type is a counting type, the food model is copied according to the remaining amount of the food, and multiple food models are divided according to the unit consumption to obtain multiple planning combinations; Arrange the planning combinations according to the arrangement direction, construct the bottom line corresponding to each planning combination as the planning line, update the planning combinations according to the planning line to obtain an integrated model, and obtain a planning model based on the integrated model. Determining a reminder time point corresponding to the designated food according to the reminder time interval corresponding to the food attribute and the actual consumption of the designated food includes: Perform reverse time calculation based on the expiration time point and the reminder time interval to obtain the reminder time point; Determine a monitoring time point based on the current time point and the update time interval, and obtain the actual consumption of the specified food from the current time point to the monitoring time point; According to the comparison result of the actual consumption and the consumption threshold corresponding to the food attribute, the adjustment type of the reminder time point is determined, and the adjustment type includes a pre-type and a post-type, and the adjustment time point is obtained according to the adjustment type and the reminder time point; Obtaining the interval duration between the current time point and the adjusted time point, and if the interval duration is greater than or equal to an interval duration threshold, determining the adjusted time point as the updated reminder time point; and if the interval duration is less than the interval duration threshold, not updating the reminder time point; According to the comparison result of the actual consumption and the consumption threshold corresponding to the food attribute, the adjustment type of the reminder time point is determined, and the adjustment type includes a pre-type and a post-type. The adjustment time point is obtained according to the adjustment type and the reminder time point, including: If the actual consumption is less than the consumption threshold corresponding to the food attribute, determining the adjustment type of the reminder time point to be a pre-adjustment type; Acquire a first quantity difference between the actual consumption and the consumption threshold based on the preconditioning type, and obtain a preconditioning coefficient according to a ratio of the first quantity difference to a difference reference value; A lead time interval is obtained according to the product of the lead coefficient and the reference lead time interval corresponding to the food attribute, and a reverse time calculation is performed based on the reminder time point and the lead time interval to obtain an adjustment time point; If the actual consumption is greater than the consumption threshold corresponding to the food attribute, determining the adjustment type of the reminder time point to be a post-adjustment type; Acquire the consumption threshold and the second quantity difference of the actual consumption based on the post-type, and obtain the post-coefficient according to the ratio of the second quantity difference to the difference reference value; The post-time interval is obtained according to the product of the post-coefficient and the reference post-time interval corresponding to the food attribute, and the adjustment time point is obtained by performing forward time calculation based on the reminder time point and the post-time interval.

2. The method according to claim 1, characterized in that Receiving a food management request from a user terminal, and determining the shelf life information of the designated food according to a food image uploaded by the user terminal to a record node in a shelf life management chain corresponding to the designated food, including: In response to the food management request, a record interface corresponding to a record node in an initial management chain is retrieved and sent to the user terminal, and a food image uploaded by the user terminal based on the record interface is obtained; Extracting the date keyword and the name keyword in the food image, obtaining the center points of the first character and the last character in the date keyword and the name keyword, and connecting the two center points to obtain a traversal direction; Traverse the characters after the date keyword and the name keyword according to the traversal direction, and obtain characters whose interval distance is less than the character spacing threshold as target characters corresponding to the date keyword or the name keyword; Based on the target character, the shelf life period corresponding to the date keyword and the food name corresponding to the name keyword are obtained, and the food name and the initial management chain are bound to obtain the shelf life management chain corresponding to the specified food, and the shelf life information includes the shelf life period.

3. The method according to claim 1, characterized in that According to the consumption record requirements of the user terminal, a deletion interface is retrieved and sent to the user terminal, wherein the deletion interface includes a full deletion interface and a half deletion interface, including: The consumption record requirement includes a full consumption requirement and a half consumption requirement. The full elimination interface is called according to the full consumption requirement, and the half elimination interface is called according to the half consumption requirement. Based on the food consumption information input by the user end to the elimination interface, the elimination node in the shelf life management chain is updated, including: The full elimination interface is updated according to the food elimination list, the elimination confirmation information of the designated food by the user end based on the food elimination list is obtained, and the designated food in the food elimination list is deleted to obtain food consumption information; or, Acquire the current consumption input by the user terminal based on the semi-consumption interface, and when the designated food is of the counting type, copy the food model in the semi-consumption interface according to the total amount of the designated food; Determine a number of food models corresponding to the current consumption as a target model, retrieve the consumption pixel value to update the target model to obtain food consumption information; When the designated food is of the proportion type, the consumption proportion is obtained according to the ratio of the current consumption amount to the total amount of the food, and a consumption line corresponding to the consumption proportion is generated on the proportion scale axis of the food model; The consumption pixel value is retrieved to update the model portion corresponding to the consumption line in the food model to obtain food consumption information.

4. The method according to claim 1, characterized in that: Also includes: Receiving a purchase planning request sent by the user terminal based on a purchase node in the shelf life management chain, retrieving a purchase interface and sending it to the user terminal, and obtaining an estimated number of days of consumption input by the user terminal based on the purchase interface; Obtaining the historical consumption amount and historical consumption days of the designated food, and obtaining the historical consumption average amount according to the ratio of the historical consumption amount to the historical consumption days; A purchase reference amount is obtained according to the product of the estimated consumption days and the historical average consumption amount, and a purchase reference area in the purchase interface is updated based on the purchase reference amount to obtain a purchase reference interface and send it to the user terminal.

5. A system corresponding to the food life cycle digital management method as claimed in claim 1, characterized in that: include: A receiving module, used to receive a food management request from a user terminal, and determine the shelf life information of the specified food according to the food image uploaded by the user terminal to the recording node in the shelf life management chain corresponding to the specified food; An acquisition module, used for acquiring the food attributes of the designated food, generating consumption planning data according to the food attributes and the shelf life information, and updating the planning nodes in the shelf life management chain; A calling module, used for calling a deletion interface and sending it to the user terminal according to the consumption record requirements of the user terminal, wherein the deletion interface includes a full deletion interface and a half deletion interface; An updating module is used to update the elimination node in the shelf life management chain based on the food consumption information input by the user terminal to the elimination interface, and obtain the food management data corresponding to the designated food according to the updated shelf life management chain.

Citation Information

Patent Citations

  • Method for automatically correcting error of character recognition result

    CN114495115A

  • Generation method and generation device of healthy diet plan, equipment and medium

    CN115274055A

  • Method and Device for Expiration Date Weighted Food Inventory System and Meal Planner

    US20130138656A1