CN115325768A - Method and device for determining freshness of food, electronic equipment and storage medium - Google Patents

Method and device for determining freshness of food, electronic equipment and storage medium Download PDF

Info

Publication number
CN115325768A
CN115325768A CN202210824630.5A CN202210824630A CN115325768A CN 115325768 A CN115325768 A CN 115325768A CN 202210824630 A CN202210824630 A CN 202210824630A CN 115325768 A CN115325768 A CN 115325768A
Authority
CN
China
Prior art keywords
food
determining
freshness
storage type
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210824630.5A
Other languages
Chinese (zh)
Inventor
武亚转
唐鹰
巩庆东
王志松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haier Smart Home Co Ltd
Qingdao Haier Wisdom Kitchen Appliance Co Ltd
Original Assignee
Haier Smart Home Co Ltd
Qingdao Haier Wisdom Kitchen Appliance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haier Smart Home Co Ltd, Qingdao Haier Wisdom Kitchen Appliance Co Ltd filed Critical Haier Smart Home Co Ltd
Priority to CN202210824630.5A priority Critical patent/CN115325768A/en
Publication of CN115325768A publication Critical patent/CN115325768A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F25REFRIGERATION OR COOLING; COMBINED HEATING AND REFRIGERATION SYSTEMS; HEAT PUMP SYSTEMS; MANUFACTURE OR STORAGE OF ICE; LIQUEFACTION SOLIDIFICATION OF GASES
    • F25DREFRIGERATORS; COLD ROOMS; ICE-BOXES; COOLING OR FREEZING APPARATUS NOT OTHERWISE PROVIDED FOR
    • F25D29/00Arrangement or mounting of control or safety devices
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F25REFRIGERATION OR COOLING; COMBINED HEATING AND REFRIGERATION SYSTEMS; HEAT PUMP SYSTEMS; MANUFACTURE OR STORAGE OF ICE; LIQUEFACTION SOLIDIFICATION OF GASES
    • F25DREFRIGERATORS; COLD ROOMS; ICE-BOXES; COOLING OR FREEZING APPARATUS NOT OTHERWISE PROVIDED FOR
    • F25D2500/00Problems to be solved
    • F25D2500/06Stock management
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F25REFRIGERATION OR COOLING; COMBINED HEATING AND REFRIGERATION SYSTEMS; HEAT PUMP SYSTEMS; MANUFACTURE OR STORAGE OF ICE; LIQUEFACTION SOLIDIFICATION OF GASES
    • F25DREFRIGERATORS; COLD ROOMS; ICE-BOXES; COOLING OR FREEZING APPARATUS NOT OTHERWISE PROVIDED FOR
    • F25D2600/00Control issues
    • F25D2600/02Timing
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F25REFRIGERATION OR COOLING; COMBINED HEATING AND REFRIGERATION SYSTEMS; HEAT PUMP SYSTEMS; MANUFACTURE OR STORAGE OF ICE; LIQUEFACTION SOLIDIFICATION OF GASES
    • F25DREFRIGERATORS; COLD ROOMS; ICE-BOXES; COOLING OR FREEZING APPARATUS NOT OTHERWISE PROVIDED FOR
    • F25D2600/00Control issues
    • F25D2600/06Controlling according to a predetermined profile
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F25REFRIGERATION OR COOLING; COMBINED HEATING AND REFRIGERATION SYSTEMS; HEAT PUMP SYSTEMS; MANUFACTURE OR STORAGE OF ICE; LIQUEFACTION SOLIDIFICATION OF GASES
    • F25DREFRIGERATORS; COLD ROOMS; ICE-BOXES; COOLING OR FREEZING APPARATUS NOT OTHERWISE PROVIDED FOR
    • F25D2700/00Means for sensing or measuring; Sensors therefor
    • F25D2700/14Sensors measuring the temperature outside the refrigerator or freezer

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Physics & Mathematics (AREA)
  • Mechanical Engineering (AREA)
  • Thermal Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Cold Air Circulating Systems And Constructional Details In Refrigerators (AREA)

Abstract

The application discloses a method and a device for determining food freshness, electronic equipment and a storage medium, and relates to the technical field of artificial intelligence. Wherein, the method comprises the following steps: when detecting that the food is stored in the preservation equipment, acquiring the main storage type of the preservation equipment; determining a sub-storage type of the food under the main storage type; determining the shelf life of the food according to the sub-storage type, and determining the time for the preservation equipment to enter the refrigerator; the freshness of the food product is determined based on time and shelf life. The application provides a technical scheme, can convenience of customers carry out classified storage to food, can help the new freshness of user's record food, avoid rotting the waste that causes because of food is rotten, can be so that the user obtains the guarantee in the aspect of the safety and sanitation quality.

Description

Method and device for determining freshness of food, electronic equipment and storage medium
Technical Field
The application relates to the technical field of artificial intelligence, in particular to a method and a device for determining food freshness, electronic equipment and a storage medium.
Background
With the improvement of living standard of people, people pay more attention to the freshness and nutrition of food in life. At present, after the foods are bought home from the market, the foods are rarely stored in different categories and can go bad or even rot for a long time, and the nutritional ingredients of the foods are further influenced. Aiming at the general phenomenon, how to help people to record the freshness of food and avoid unnecessary waste caused by loss of food nutrient components becomes a problem to be solved urgently.
Disclosure of Invention
The application provides a food freshness determining method, a food freshness determining device, electronic equipment and a storage medium, which can facilitate users to store food in a classified manner, help users to record the freshness of the food, avoid waste caused by rotten food, and ensure the safety and health quality of the users.
In a first aspect, the present application provides a method for determining freshness of a food product, the method comprising:
when detecting that the food is stored in the preservation equipment, acquiring the main storage type of the preservation equipment;
determining a sub-storage type to which the food belongs under the main storage type;
determining the shelf life of the food according to the sub-storage type, and determining the time for the preservation equipment to enter a refrigerator;
determining the freshness of the food product based on the time and the shelf life.
The embodiment of the application provides a method for determining food freshness, which comprises the following steps: when detecting that the food is stored in the preservation equipment, acquiring the main storage type of the preservation equipment; determining a sub-storage type of the food under the main storage type; determining the shelf life of the food according to the sub-storage type, and determining the time for the freshness keeping equipment to enter the refrigerator; the freshness of the food product is determined based on time and shelf life. According to the method, different types of food are stored by adopting different types of preservation equipment, and when the preservation equipment is detected to store the food, the sub-storage type of the food is further determined, so that the classified storage of the food can be conveniently carried out by a user; in addition, the shelf life is determined according to the sub-storage type, the time for putting food into the refrigerator is determined by a user, the freshness of the food is further obtained, the user can be helped to record the freshness of the food, waste caused by deterioration and decay of the food is avoided, and the safety and sanitation quality of the user can be guaranteed.
Further, the determining the sub-storage type to which the food belongs under the main storage type includes:
displaying each candidate sub-storage type under the main storage type;
determining a sub-storage type to which the food product belongs under the main storage type based on a selection operation of the respective candidate sub-storage types presented.
Further, a temperature sensor is arranged on the fresh-keeping equipment; the determining the time when the preservation apparatus enters the refrigerator includes:
detecting the temperature value of the environment where the preservation equipment is located at the current moment and the temperature difference change between the current moment and the previous moment through the temperature sensor;
and when the temperature difference change is larger than a preset value and the temperatures detected at a preset number of moments after the current moment are constant at the temperature value, determining the current moment as the time when the preservation equipment enters the refrigerator.
Further, the freshness keeping apparatus is provided with a humidity sensor, and the method further comprises:
detecting the humidity value in the preservation equipment through the humidity sensor;
obtaining the storage duration of the food based on the time when the preservation equipment enters the refrigerator and the current time;
calculating a nutrient loss value of the food according to the humidity value, the temperature value and the storage time;
obtaining an initial nutritional value for the food item based on a child storage type and the freshness of the food item;
calculating the current nutritional value of the food product according to the initial nutritional value and the nutritional loss value, and displaying the current nutritional value of the food product.
Further, the method further comprises:
determining a cutoff point of time for consumption of the food product based on the freshness of the food product;
and generating prompt information at the deadline time point and displaying the prompt information.
Further, the generating a prompt message and displaying the prompt message at the deadline time includes:
generating eating prompt information according to the deadline point and displaying the eating prompt information, wherein the eating prompt information is used for prompting eating before the deadline point;
or generating expiration prompt information at the deadline point and displaying the expiration prompt information, wherein the expiration prompt information is used for prompting that the food is not to be eaten any more.
Further, the freshness keeping device is provided with an odor sensor; the determining the freshness of the food product based on the time and the shelf life comprises:
detecting, by the odor sensor, an odor concentration within the freshness device;
determining the freshness of the food product based on the odor concentration, the time, and the shelf life.
In a second aspect, the present application provides a device for determining freshness of food, the device comprising:
the main type determining module is used for acquiring the main storage type of the fresh-keeping equipment when detecting that the fresh-keeping equipment stores food;
the subtype determining module is used for determining a sub-storage type to which the food belongs under the main storage type;
the time determining module is used for determining the quality guarantee period of the food according to the sub-storage type and determining the time when the preservation equipment enters the refrigerator;
a freshness determination module to determine a freshness of the food product based on the time and the shelf life.
In a third aspect, the present application provides an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method of determining freshness of food products according to any embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium storing computer instructions for causing a processor to implement a method for determining freshness of a food product according to any embodiment of the present application when the computer instructions are executed.
It should be noted that all or part of the computer instructions may be stored on the computer readable storage medium. The computer readable storage medium may be packaged with the processor of the food freshness determination apparatus or packaged separately from the processor of the food freshness determination apparatus, which is not limited in this application.
For the descriptions of the second, third and fourth aspects in this application, reference may be made to the detailed description of the first aspect; in addition, for the beneficial effects described in the second aspect, the third aspect and the fourth aspect, reference may be made to the beneficial effect analysis of the first aspect, and details are not repeated here.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present application, nor are they intended to limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a first schematic flow chart of a method for determining freshness of food provided in an embodiment of the present application;
fig. 2 is a second flow chart of a method for determining freshness of food provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of a device for determining freshness of food provided by an embodiment of the present application;
fig. 4 is a block diagram of an electronic device for implementing a method for determining food freshness according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," "target," and "original" and the like in the description and the claims of the invention and the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a first flowchart of a method for determining freshness of food provided by an embodiment of the present application, which can be applied to determining freshness of food stored in a refrigerator. The method for determining food freshness provided by the embodiment of the present application can be performed by a device for determining food freshness provided by the embodiment of the present application, which can be implemented by software and/or hardware and is integrated in an electronic device executing the method. Preferably, the electronic device in the embodiment of the present application may be a mobile terminal, the mobile terminal is connected to the freshness keeping device, and application software for determining freshness of food is configured in the mobile terminal.
Referring to fig. 1, the method of the present embodiment includes, but is not limited to, the following steps:
s110, when the food is detected to be stored in the preservation device, the main storage type of the preservation device is obtained.
The preservation device is a device for preserving food, and may be a preservation clip, a preservation box, a preservation bag, or the like, which is not limited herein. The main storage type refers to the major information of food, such as fruits, vegetables, meat, etc., and besides the main storage type set in the mobile terminal, the user can define the main storage type of the preservation device according to the living hobbies.
In this embodiment, the fresh-keeping device may be configured with a buckle, and the state information of the buckle may indicate the working state of the fresh-keeping device, for example: when the state information of the buckle is 1, the working state of the preservation equipment is that food is stored; when the state information of the buckle is 0, the working state of the fresh-keeping equipment is that no food is stored. The mobile terminal can detect the state information of the buckle on the preservation device in real time so as to detect whether the preservation device stores food. In addition, the mobile terminal can detect the working state of the fresh-keeping equipment in other modes.
In an alternative embodiment, an association table of the identification information and the main storage type is configured in advance in the mobile terminal. When the mobile terminal detects that the working state of the fresh-keeping equipment is that food is stored, the identification information (such as ID code) of the fresh-keeping equipment is obtained firstly, the association relation table is called from the storage unit for storing the association relation table firstly, and the main storage type of the fresh-keeping equipment is searched in the association relation table based on the identification information.
Illustratively, the ID code of the freshness keeping device is a, and the main storage type corresponding to the ID code is vegetables; the ID code of the fresh-keeping equipment is b, and the main storage type corresponding to the ID code is fruit.
In an alternative embodiment, the identification information of the freshness device is the primary storage type. When the mobile terminal detects that the working state of the preservation device is that food is stored, the identification information of the preservation device is directly acquired, so that the main storage type of the preservation device is obtained.
S120, determining the sub-storage type of the food under the main storage type.
In the embodiment of the present application, after the main storage type of the fresh food apparatus is determined in step S110, the sub-storage type of the food under the main storage type is determined. Wherein, the sub-storage type refers to the subclass information of the food. For example: if the main storage type is fruit, the sub-storage types are banana, cherry tomato, litchi, etc.; if the main storage type is meat, the sub-storage type is shrimp, mutton, pork, etc. Besides the sub-storage type set in the mobile terminal, the user can also define the sub-storage type of the refreshing equipment according to the living hobbies.
Specifically, determining the sub-storage type to which the food belongs under the main storage type includes: displaying each candidate sub-storage type under the main storage type in an interactive interface of the mobile terminal so that a user can select a target sub-storage type from the candidate sub-storage types; and responding to the selection operation of the user, and determining the target sub-storage type as the sub-storage type to which the food belongs under the main storage type based on the selection operation of each displayed candidate sub-storage type.
Optionally, the sub-storage type may be represented in a form of a pattern, a text, or a combination of texts and images, which is not limited herein. The candidate sub-storage types can be displayed in an interactive interface of the mobile terminal by adopting the existing display mode.
And S130, determining the shelf life of the food according to the sub-storage type, and determining the time when the preservation device enters the refrigerator.
In the embodiment of the application, the shelf life of each food is different, and a shelf life document needs to be configured in the mobile terminal in advance for recording the shelf life of each food. After the sub-storage type of the food is determined in step S120, the shelf-life document is retrieved from the storage unit storing the shelf-life document, and then the shelf life of the food is searched from the shelf-life document based on the sub-storage type. Optionally, the user may modify the shelf-life document according to living preferences, which only shortens the shelf life but does not lengthen the shelf life. When the shelf life is shortened, the shelf life is the latest eating date set by the user.
In the embodiment of the present application, in this step, the food is stored in the preservation apparatus, and the time when the preservation apparatus enters the refrigerator, that is, the time when the food enters the refrigerator, is determined.
The fresh-keeping equipment is provided with a temperature sensor for detecting the temperature of the environment where the fresh-keeping equipment is located. The type of temperature sensor is not limited in this application. Specifically, the method for determining the time when the preservation apparatus enters the refrigerator may be: detecting the temperature value of the environment where the preservation equipment is located at the current moment through a temperature sensor, and calculating the temperature difference change between the current moment and the previous moment; when the temperature difference change is larger than the preset value, the freshness retaining device is indicated to enter another environment (a refrigerator) from the current environment. In order to avoid detection errors of the temperature sensor, the temperatures of the environments where the preservation device is located at a preset number of times after the current time are detected, and when the temperatures are constant at the temperature values, the preservation device can be determined to be actually in another environment (a refrigerator), and the current time is determined as the time when the preservation device enters the refrigerator.
It should be noted that, in the present application, the preservation apparatus is considered to be placed in an external environment outside the refrigerator when not in use, and therefore, the temperature sensor may be used to determine the time when the preservation apparatus enters the refrigerator. In addition, if the safety device of the present application is also placed in a refrigerator when not in use, the method of determining when the refreshing device enters the refrigerator may be: the mobile terminal is provided with a virtual operation key for acquiring time, and when a user triggers the virtual operation key in the mobile terminal, the mobile terminal can determine the current moment as the time when the preservation equipment enters the refrigerator.
And S140, determining the freshness of the food based on the time and the shelf life.
In the embodiment of the present application, after the shelf life of the food is determined in step S130, and the time when the preservation apparatus enters the refrigerator is determined, the deadline time of the food from the end of the shelf life is calculated based on the time and the shelf life, and then the deadline time is classified into different grades, where the deadline times of different grades correspond to different freshness degrees. For example: the rating of the deadline time may be high, medium and low, and the corresponding freshness may be fresh, fresher and stale.
Optionally, the freshness may be expressed as a score, with a full score of 10 or 100.
Further, the freshness keeping device is provided with an odor sensor for detecting the concentration of odor in the freshness keeping device. The present application is not limited as to the type of odor sensor. The method for determining the freshness of the food can also comprise the following steps: firstly, detecting the odor concentration in the preservation equipment through an odor sensor to determine whether the food is rotten or not; when the food is not rotten, determining the freshness of the food through time and shelf life based on the method; when the food has started to decay, the food is directly judged to be stale.
Further, determining a cut-off time point for eating the food based on the freshness of the food; and generating prompt information and displaying the prompt information at the time point of the deadline. The method specifically comprises the following steps: when food enters the refrigerator, after the freshness of the food is determined, a time point corresponding to the freshness of the food being not fresh is calculated according to the water loss rule of the food, and the time point is used as a cut-off time point. It will be appreciated that the water loss profile varies from food product to food product.
Wherein, generating the prompt message and displaying the prompt message when the time point is expired comprises: generating eating prompt information according to the deadline point and displaying the eating prompt information, wherein the eating prompt information is used for prompting that the food is eaten before the deadline point; or generating expiration prompt information at the expiration time point and displaying the expiration prompt information, wherein the expiration prompt information is used for prompting that the food is not eaten any more.
Illustratively, if the determined time of entering the refrigerator of the cherry tomatoes is 2022-7-1, the shelf life of the cherry tomatoes is 7 days, and the freshness of the cherry tomatoes when entering the refrigerator is determined to be fresh. Then, based on the freshness of the cherry tomatoes, the cut-off time point 2022-7-4 corresponding to the freshness of the cherry tomatoes being stale can be calculated according to the water loss rule of the cherry tomatoes. Thus, during periods 2022-7-1 to 2022-7-3, an eating cue is generated; at the day 2022-7-4, an expiration prompt is generated. The display frequency of the eating prompt information or the overdue prompt information is that the eating prompt information or the overdue prompt information is displayed in the interactive interface of the mobile terminal at intervals, and the eating prompt information or the overdue prompt information can be set by default or user-defined.
Optionally, in the mobile terminal, the user may check the shelf life, time of entering the refrigerator, freshness and expiration time point of the food in any fresh-keeping device.
According to the technical scheme provided by the embodiment, when the food is detected to be stored in the preservation equipment, the main storage type of the preservation equipment is obtained; determining a sub-storage type of the food under the main storage type; determining the shelf life of the food according to the sub-storage type, and determining the time for the preservation equipment to enter the refrigerator; the freshness of the food product is determined based on time and shelf life. According to the method, different types of food are stored by adopting different types of preservation equipment, and when the preservation equipment is detected to store the food, the sub-storage type of the food is further determined, so that the classified storage of the food can be conveniently carried out by a user; in addition, the shelf life is determined according to the sub-storage type, the time for putting food into the refrigerator is determined by a user, the freshness of the food is further obtained, the user can be helped to record the freshness of the food, waste caused by deterioration and decay of the food is avoided, and the safety and sanitation quality of the user can be guaranteed.
The method for determining freshness of food provided by the embodiment of the present invention is further described below, and fig. 2 is a second flow chart of the method for determining freshness of food provided by the embodiment of the present invention. The embodiment of the application is optimized on the basis of the embodiment, and specifically optimized as follows: this example explains the process of determining the nutritional value of a food in detail.
Referring to fig. 2, the method of the present embodiment includes, but is not limited to, the following steps:
s210, when the food is detected to be stored in the preservation device, the main storage type of the preservation device is obtained.
The explanation of this step refers to step S110 in fig. 1, and is not repeated here.
S220, determining the sub-storage type of the food under the main storage type.
The explanation of this step refers to step S120 in fig. 1, which is not described herein again.
And S230, obtaining the storage time of the food based on the time when the preservation equipment enters the refrigerator and the current time.
In the embodiment of the application, the storage duration of the food can be obtained by subtracting the current time from the time when the preservation equipment enters the refrigerator. The process of determining the time when the preservation apparatus enters the refrigerator refers to step S130 in the embodiment of fig. 1, and is not described herein again.
S240, detecting a humidity value in the preservation equipment through a humidity sensor; and detecting the temperature value of the environment where the preservation equipment is located through a temperature sensor.
In the embodiment of the application, the freshness preservation device is provided with a humidity sensor for detecting the humidity value of the food in the freshness preservation device at the current time in real time. The present application does not limit the type of humidity sensor. The fresh-keeping equipment is also provided with a temperature sensor for detecting the temperature of the environment where the fresh-keeping equipment is located at the current time in real time. The present application does not limit the type of the temperature sensor.
And S250, calculating the nutrient loss value of the food according to the humidity value, the temperature value and the storage duration.
In the embodiment of the application, after the humidity value of the food in the preservation equipment, the temperature of the environment where the preservation equipment is located and the storage time length of the food are calculated through the steps, the food nutrition loss function is called, and the nutrition loss value of the food at the current time is calculated. Wherein existing food nutrition loss functions can be employed.
S260, acquiring an initial nutrition value of the food based on the sub-storage type and the freshness of the food.
In the embodiment of the application, the nutrition value of each food is different at different stages, and a nutrition value document is pre-configured in the mobile terminal and used for recording the nutrition value of each food under different freshness. After the sub-storage type and the freshness of the food are determined, the nutrition value document is called from the storage unit for storing the nutrition value document, and then the corresponding initial nutrition value of the food entering the refrigerator is searched from the nutrition value document based on the sub-storage type and the freshness.
And S270, calculating the current nutrition value of the food according to the initial nutrition value and the nutrition loss value, and displaying the current nutrition value of the food.
In the embodiment of the application, the initial nutrition value of the food entering the refrigerator and the nutrition loss value of the food entering the refrigerator after the food is stored for the storage time are calculated through the steps, the initial nutrition value and the nutrition loss value are subtracted to obtain the current nutrition value of the food at the current time, and the current nutrition value of the food is displayed in an interactive interface of the mobile terminal.
Optionally, in the mobile terminal, the user may view the current nutritional value of the food in any fresh-keeping device.
According to the technical scheme provided by the embodiment, the main storage type of the preservation equipment is obtained by detecting that the preservation equipment stores food; determining a sub-storage type of the food under the main storage type; obtaining the storage duration of the food based on the time when the preservation equipment enters the refrigerator and the current time; detecting the humidity value in the preservation equipment through a humidity sensor; detecting the temperature value of the environment where the preservation equipment is located through a temperature sensor; calculating the nutrient loss value of the food according to the humidity value, the temperature value and the storage time; obtaining an initial nutritional value for the food based on the sub-storage type and the freshness of the food; and calculating the current nutrition value of the food according to the initial nutrition value and the nutrition loss value, and displaying the current nutrition value of the food. According to the method, different types of food are stored by adopting different types of preservation equipment, and when the preservation equipment is detected to store the food, the sub-storage type of the food is further determined, so that the classified storage of the food can be conveniently carried out by a user; in addition, the initial nutrition value of the food and the nutrition loss value of the food are calculated, so that the current nutrition value of the food is obtained, the user can be helped to record the nutrition of the food, the waste caused by the deterioration and the decay of the food is avoided, and the safety and the sanitation quality of the user can be guaranteed.
Fig. 3 is a schematic structural diagram of an apparatus for determining freshness of food according to an embodiment of the present application, the apparatus is integrated in a mobile terminal, the mobile terminal is connected to a freshness keeping device, as shown in fig. 3, the apparatus 300 may include:
a main type determining module 310, configured to obtain a main storage type of the fresh-keeping apparatus when detecting that the fresh-keeping apparatus stores food;
a sub-type determination module 320 for determining a sub-storage type to which the food item belongs under the main storage type;
the time determining module 330 is used for determining the shelf life of the food according to the sub-storage type and determining the time when the preservation device enters the refrigerator;
a freshness determination module 340 for determining the freshness of the food product based on the time and the shelf life.
Further, the subtype determining module 320 may be specifically configured to: showing each candidate sub-storage type under the main storage type; determining a sub-storage type to which the food product belongs under the main storage type based on a selection operation of the respective candidate sub-storage types presented.
Optionally, a temperature sensor is configured on the preservation device;
further, the time determining module 330 may be specifically configured to: detecting the temperature value of the environment where the preservation equipment is located at the current moment and the temperature difference change between the current moment and the previous moment through the temperature sensor; and when the temperature difference change is larger than a preset value and the temperatures detected at a preset number of moments after the current moment are constant at the temperature value, determining the current moment as the time when the preservation equipment enters the refrigerator.
Optionally, the fresh-keeping device is provided with a humidity sensor;
further, the above apparatus for determining freshness of food may further include: a nutritional value determination module;
the nutrition value determining module is used for detecting the humidity value in the preservation equipment through the humidity sensor; obtaining the storage duration of the food based on the time when the preservation equipment enters the refrigerator and the current time; calculating a nutrient loss value of the food according to the humidity value, the temperature value and the storage time; obtaining an initial nutritional value for the food item based on a child storage type and the freshness of the food item; calculating the current nutritional value of the food product according to the initial nutritional value and the nutritional loss value, and displaying the current nutritional value of the food product.
Further, the above apparatus for determining freshness of food may further include: a message prompt module;
the message prompting module is used for determining a deadline point for eating the food based on the freshness of the food; and generating prompt information at the deadline time point and displaying the prompt information.
Further, the message prompt module may be specifically configured to: generating eating prompt information according to the deadline point and displaying the eating prompt information, wherein the eating prompt information is used for prompting that the food is eaten before the deadline point; or generating expiration prompt information at the expiration time point and displaying the expiration prompt information, wherein the expiration prompt information is used for prompting that the food is not to be eaten any more.
Optionally, the freshness preservation apparatus is provided with an odor sensor;
further, the freshness degree determination module 340 may be specifically configured to: detecting, by the odor sensor, an odor concentration within the freshness apparatus; determining the freshness of the food product based on the odor concentration, the time, and the shelf life.
The device for determining the freshness of the food provided by the embodiment can be applied to the method for determining the freshness of the food provided by any embodiment, and has corresponding functions and beneficial effects.
Fig. 4 is a block diagram of an electronic device for implementing a display method according to an embodiment of the present application. The electronic device 10 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein. Preferably, the electronic device in the embodiment of the present application may be a mobile terminal, the mobile terminal is connected to the freshness keeping device, and application software for determining freshness of food is configured in the mobile terminal.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as a determination of food freshness.
In some embodiments, the method of determining freshness of food products may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the above described determination method of freshness of food products may be performed. Alternatively, in other embodiments, the processor 11 may be configured by any other suitable means (e.g., by means of firmware) to perform a method of determining freshness of food products.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a computer readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution of the present application can be achieved, and the present invention is not limited thereto.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for determining food freshness is applied to a mobile terminal, wherein the mobile terminal is connected with a freshness keeping device, and the method comprises the following steps:
when detecting that the food is stored in the preservation equipment, acquiring the main storage type of the preservation equipment;
determining a sub-storage type to which the food belongs under the main storage type;
determining the shelf life of the food according to the sub-storage type, and determining the time when the preservation equipment enters a refrigerator;
determining the freshness of the food product based on the time and the shelf life.
2. The method for determining freshness of food items according to claim 1, wherein said determining a sub-storage type to which the food items belong under the main storage type comprises:
showing each candidate sub-storage type under the main storage type;
determining a sub-storage type to which the food product belongs under the main storage type based on a selection operation of the respective candidate sub-storage types presented.
3. The method for determining the freshness of food according to claim 1, wherein a temperature sensor is provided on said freshness keeping device; the determining the time when the preservation apparatus enters the refrigerator includes:
detecting the temperature value of the environment where the preservation equipment is located at the current moment and the temperature difference change between the current moment and the previous moment through the temperature sensor;
and when the temperature difference change is larger than a preset value and the temperatures detected at a preset number of moments after the current moment are constant at the temperature value, determining the current moment as the time when the preservation equipment enters the refrigerator.
4. The method of determining food freshness of claim 3, wherein the freshness keeping device is configured with a humidity sensor, the method further comprising:
detecting the humidity value in the preservation equipment through the humidity sensor;
obtaining the storage duration of the food based on the time when the preservation equipment enters the refrigerator and the current time;
calculating a nutrient loss value of the food according to the humidity value, the temperature value and the storage time;
obtaining an initial nutritional value for the food item based on a child storage type and the freshness of the food item;
calculating the current nutritional value of the food product according to the initial nutritional value and the nutritional loss value, and displaying the current nutritional value of the food product.
5. The method of determining food freshness of claim 1, further comprising:
determining a cutoff point of time for consumption of the food product based on the freshness of the food product;
and generating prompt information at the deadline time point and displaying the prompt information.
6. The method for determining food freshness according to claim 5, wherein said generating a prompt message at said expiration time point and presenting said prompt message comprises:
generating eating prompt information according to the deadline point and displaying the eating prompt information, wherein the eating prompt information is used for prompting that the food is eaten before the deadline point;
or generating expiration prompt information at the expiration time point and displaying the expiration prompt information, wherein the expiration prompt information is used for prompting that the food is not to be eaten any more.
7. The method of determining food freshness of claim 1, wherein said freshness keeping apparatus is provided with an odor sensor; the determining the freshness of the food product based on the time and the shelf life comprises:
detecting, by the odor sensor, an odor concentration within the freshness device;
determining the freshness of the food product based on the odor concentration, the time, and the shelf life.
8. An apparatus for determining freshness of food, integrated in a mobile terminal, said mobile terminal being connected to a freshness keeping device, said apparatus comprising:
the main type determining module is used for acquiring the main storage type of the fresh-keeping equipment when detecting that the fresh-keeping equipment stores food;
the subtype determining module is used for determining a sub-storage type to which the food belongs under the main storage type;
the time determining module is used for determining the shelf life of the food according to the sub-storage type and determining the time when the preservation equipment enters the refrigerator;
a freshness determination module to determine a freshness of the food product based on the time and the shelf life.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of determining freshness of food products of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions for causing a processor to implement the method for determining freshness of food items according to any one of claims 1 to 7 when executed.
CN202210824630.5A 2022-07-13 2022-07-13 Method and device for determining freshness of food, electronic equipment and storage medium Pending CN115325768A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210824630.5A CN115325768A (en) 2022-07-13 2022-07-13 Method and device for determining freshness of food, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210824630.5A CN115325768A (en) 2022-07-13 2022-07-13 Method and device for determining freshness of food, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115325768A true CN115325768A (en) 2022-11-11

Family

ID=83916613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210824630.5A Pending CN115325768A (en) 2022-07-13 2022-07-13 Method and device for determining freshness of food, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115325768A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115902129A (en) * 2022-11-14 2023-04-04 深圳中检联检测有限公司 Food shelf life detection method, device, equipment and medium based on time sequence analysis

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115902129A (en) * 2022-11-14 2023-04-04 深圳中检联检测有限公司 Food shelf life detection method, device, equipment and medium based on time sequence analysis

Similar Documents

Publication Publication Date Title
US11181515B2 (en) Scent-based spoilage sensing refrigerator
US10281200B2 (en) Image-based spoilage sensing refrigerator
US20180053140A1 (en) Food storage method and apparatus with sensors
US10408748B2 (en) System and method for evaluating fruits and vegetables
US11244280B2 (en) Reducing food waste by using a machine learning model
CN104835295B (en) A kind of shelf life prompting method and system
CN111896694A (en) Food storage equipment and food fresh state judging method, device and medium thereof
CN109345317B (en) Method and device for determining taste preference information of user
CN115325768A (en) Method and device for determining freshness of food, electronic equipment and storage medium
US11313820B2 (en) Methods and systems for determining an internal property of a food product
CN110874751A (en) Supermarket replenishment method and system
CN109214956B (en) Meal pushing method and device
WO2021159004A1 (en) Automated temperature logging and predictive alerting system with timed logs
WO2017160499A2 (en) Scent-based spoilage sensing refrigerator
WO2017097683A1 (en) A system and method for determining the freshness of a food item, and a configuration method
Hsiao et al. Deteriorating inventory model for ready-to-eat food under fuzzy environment
CN110019983B (en) Expansion method and device of label structure and electronic equipment
CN112598342B (en) Alarm control method, device, equipment and medium for data display equipment
WO2022138829A1 (en) Freshness estimation device, freshness estimation method, freshness estimation program, and data structure
CN113592412A (en) Fresh food distribution method, device, equipment and storage medium
CN111241680B (en) Frozen article quality analysis method and device based on temperature change of refrigeration house
CN112883283A (en) Information processing method, information processing device, electronic equipment and computer readable storage medium
CN110766512A (en) Order processing method and device, electronic equipment and storage medium
CN111354128A (en) Self-service sale method, device, equipment and computer readable storage medium
JP2015028767A (en) Recipe recommendation device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication