Safety supervision method for campus food and related device

By judging the expired food in the campus food management system and handling it accordingly, the problem of expired food in campus food safety supervision is solved, and food safety and quality are improved.

CN119027142APending Publication Date: 2024-11-26SOYO TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411149199.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

Safety supervision of campus food is difficult to effectively prevent food expiration, which leads to students who may accidentally eat expired food, seriously endangering food safety.

Method used

By obtaining the target batch number, expiration deadline and ingredient information of campus food in the food management system, we can determine whether the current date has exceeded the expiration deadline, and decide whether to add fees or perform discounts based on the date and ingredient information at checkout, so as to avoid Sell ​​expired food.

Benefits of technology

It effectively avoids the sale of expired food, improves the safety of campus food, and reduces the risk of food expiration through analysis and environmental regulation of sensitizers, and improves the safety and quality of food.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119027142A_ABST
    Figure CN119027142A_ABST
Patent Text Reader

Abstract

The invention provides a safety supervision method for campus food and a related device. The method comprises the following steps: acquiring a target batch number, an expiration date and component information corresponding to the campus food; determining a reference cost corresponding to the target batch number according to a preset campus food price list; target sensitization substance information is determined according to the component information, and sensitization prompt information is generated; in response to an instruction of confirming the sensitization prompt information by the checkout personnel, determining that the state of the campus food is safe, and obtaining a current date; judging whether the current date exceeds the expiration date or not; if the current date exceeds the expiration deadline, not adding the reference cost to the checkout bill, and generating expiration prompt information; and if the current date does not exceed the expiration date and a target day number difference value between the expiration date and the current date is smaller than a preset day number threshold value, discounting the reference cost to obtain a discount cost, and adding the discount cost to the checkout bill.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of food supervision, and in particular to a safety supervision method and related devices for campus food. Background Art

[0002] At present, food safety accidents occur frequently, and the food safety of students in school should be taken seriously. The first problem is to supervise the safety of food in the school's campus supermarket or canteen to prevent problems such as expired food and food spoilage. For example, when students buy food, they do not pay attention to the shelf life of the food, which leads to the accidental consumption of expired food, which seriously endangers the food safety of students.

[0003] How to avoid the sale of expired food and improve the safety of campus food is an urgent issue to be addressed. Summary of the invention

[0004] The embodiments of the present application provide a method and related device for the safety supervision of campus food, which avoids the sale of expired food by not adding the cost of expired food to the bill, thereby improving the safety of campus food.

[0005] In a first aspect, an embodiment of the present application provides a method for safety supervision of campus food, which is applied to a food management system, and the method includes:

[0006] When the checkout personnel conduct self-service checkout, the target batch number, expiration date, and ingredient information corresponding to the campus food are obtained from the food management system;

[0007] Determine a reference fee corresponding to the target batch number according to a preset campus food price list, wherein the batch number and the fee in the preset campus food price list correspond one to one;

[0008] Determining target allergen information according to the ingredient information, and generating allergen prompt information according to the target allergen information;

[0009] In response to the checkout staff's instruction to confirm the allergy reminder information, determining that the status of the campus food is safe, and obtaining the current date;

[0010] Determine whether the current date exceeds the expiration deadline;

[0011] If the current date exceeds the expiration deadline, the reference fee is not added to the bill, and an expiration reminder message is generated, and the bill is used to count the total cost of purchasing the campus food;

[0012] If the current date does not exceed the expiration deadline, and the target day difference between the expiration deadline and the current date is less than a preset day threshold, the reference fee is discounted to obtain a discounted fee, and the discounted fee is added to the bill.

[0013] In a second aspect, an embodiment of the present application provides a safety supervision device for campus food, which is applied to a food management system. The device includes an acquisition module, a first determination module, a second determination module, a third determination module, a judgment module, a first control module, and a second control module, wherein:

[0014] An acquisition module, used to acquire the target batch number, expiration date, and ingredient information corresponding to the campus food from the food management system when the checkout personnel perform self-service checkout;

[0015] A first determination module is used to determine the reference fee corresponding to the target batch number according to a preset campus food price list, in which the batch number and the fee correspond one to one;

[0016] A second determination module is used to determine target allergen information according to the component information, and generate allergen prompt information according to the target allergen information;

[0017] A third determination module is used to respond to the instruction of the checkout staff to confirm the allergy prompt information, determine that the status of the campus food is safe, and obtain the current date;

[0018] A judgment module, used to judge whether the current date exceeds the expiration deadline;

[0019] A first control module, configured to not add the reference fee to the bill and generate expiration reminder information when the current date exceeds the expiration deadline, wherein the bill is used to count the total cost of purchasing the campus food;

[0020] The second control module is used to discount the reference fee and obtain the discounted fee when the current date does not exceed the expiration deadline and the target number of days difference between the expiration deadline and the current date is less than a preset day threshold, and add the discounted fee to the bill.

[0021] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps of any method in the first aspect of the embodiment of the present application.

[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in any method of the first aspect of the embodiment of the present application.

[0023] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect of the embodiment of the present application. The computer program product may be a software installation package.

[0024] By implementing the embodiments of the present application, by not adding the cost of expired food to the bill, the sale of expired food is avoided, thereby improving the safety of campus food. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0026] Figure 1 It is a system architecture diagram of a food management system provided by an embodiment of the present application;

[0027] Figure 2 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0028] Figure 3 It is a flow chart of a method for safety supervision of campus food provided in an embodiment of the present application;

[0029] Figure 4 This is a block diagram of the functional modules of a food safety monitoring device for campus provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0031] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0032] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article indicates that the associated objects before and after are in an "or" relationship. The "plurality" appearing in the embodiments of the present application refers to two or more.

[0033] In the embodiments of the present application, "at least one item" or similar expressions refer to any combination of these items, including any combination of single items or plural items, and refer to one or more, and multiple refers to two or more. For example, at least one item of a, b, or c can represent the following seven situations: a, b, c, a and b, a and c, b and c, a, b, and c. Among them, each of a, b, and c can be an element or a set containing one or more elements.

[0034] The "connection" that appears in the embodiments of the present application refers to various connection methods such as direct connection or indirect connection to achieve communication between devices, and the embodiments of the present application do not impose any limitations on this.

[0035] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0036] At present, food safety accidents occur frequently, and the food safety of students in school should be taken seriously. The first problem is to supervise the safety of food in the school's campus supermarket or canteen to prevent problems such as expired food and food spoilage. For example, when students buy food, they do not pay attention to the shelf life of the food, which leads to the accidental consumption of expired food, which seriously endangers the food safety of students.

[0037] To solve the above problems, the embodiments of the present application provide a safety supervision method and related devices for campus food, which are applied to the food management system. First, when the checkout staff performs self-service checkout, the target batch number, expiration date, and ingredient information corresponding to the campus food are obtained from the food management system; then, the reference fee corresponding to the target batch number is determined according to the preset campus food price list, and the batch number and the fee in the preset campus food price list correspond one to one; then, the target allergen information is determined according to the ingredient information, and the allergen prompt information is generated according to the target allergen information; in response to the instruction of the checkout staff to confirm the allergen prompt information, the campus food is determined. The status of the campus food is safe, and the current date is obtained; finally, it is determined whether the current date exceeds the expiration deadline; if the current date exceeds the expiration deadline, the reference fee is not added to the bill, and an expiration reminder message is generated, and the bill is used to count the total cost of purchasing the campus food; if the current date does not exceed the expiration deadline, and the target number of days difference between the expiration deadline and the current date is less than a preset number of days threshold, the reference fee is discounted and a discounted fee is obtained, and the discounted fee is added to the bill to avoid the sale of expired food and improve the safety of campus food.

[0038] Combine the following Figure 1 The system architecture of the food management system for executing the safety supervision method for campus food in the embodiment of the present application is described. Figure 1 This is a system architecture diagram of a food management system provided in an embodiment of the present application. The food management system 110 includes an image recognition device 111, a face recognition device 112, and a temperature and humidity adjustment device 113.

[0039] Among them, the image recognition device 111 is used to identify the packaging conditions and basic information of campus food.

[0040] In one possible embodiment, when campus food is put into storage, the image recognition device 111 can capture image information on the food packaging and analyze features such as color, texture, and shape in the image to find possible damaged areas, for example, it can detect whether there are tears, scratches, or obvious damage; the image recognition device 111 can analyze the shape and outline of the package to detect whether there are obvious deformations, for example, identify whether the package is swollen, dented, or deformed, so as to determine the integrity of the package; the image recognition device 111 can also detect whether there are signs of liquid or gas leakage in the image, and determine whether the package has a leakage problem by analyzing liquid stains, humidity, or traces of gas leakage in the image.

[0041] In a possible embodiment, the image recognition device 111 can be used to manage inventory and conduct campus food inventory and purchase operations. The image recognition device 111 includes but is not limited to a smart phone, a tablet computer, a barcode scanner, and a scanner. When new food arrives, the detailed information of the food can be added to the food management system 110 by simply scanning the product barcode or QR code of the food, wherein the detailed information includes but is not limited to the production date, shelf life, storage conditions, and ingredient information, so as to realize automated management and improve work efficiency.

[0042] Among them, the face recognition device 112 is used to identify and verify the identity of the checkout person.

[0043] In a possible embodiment, the face recognition device 112 automatically collects the face image of the checkout person and compares it with the registered face database. If matching face information is found, the identity of the person is confirmed to be a student, teacher or campus staff. At the same time, for campus food that is about to expire, different identities correspond to different discounts, for example, students correspond to a 30% discount, teachers correspond to a 20% discount, and campus staff correspond to a 10% discount.

[0044] Among them, the temperature and humidity regulating device 113 is used to regulate the temperature and humidity of the storage environment of campus food.

[0045] In one possible embodiment, a desired target temperature value is set, and the temperature and humidity adjustment device 113 detects the current ambient temperature through a temperature sensor and compares it with the target temperature. According to the difference, the temperature and humidity adjustment device 113 takes corresponding control measures, such as starting or shutting down an air conditioner, a heater or a fan, etc., to adjust the ambient temperature to gradually approach the target temperature.

[0046] In one possible embodiment, a desired target humidity value is set, usually expressed as a relative humidity percentage. The temperature and humidity adjustment device 113 detects the current ambient humidity through a humidity sensor and compares it with the target humidity. Based on the difference, the temperature and humidity adjustment device 113 may start or shut down a humidifier or dehumidifier to adjust the ambient humidity to gradually approach the target humidity.

[0047] It can be seen that through the above system architecture, the accuracy and efficiency of campus food management can be improved, the sale of near-expiry food can be promoted, the risk of food expiration can be reduced, and the food quality can be ensured and the food safety can be improved by adjusting the ambient temperature and humidity.

[0048] Combine the following Figure 2 The electronic device in the embodiment of the present application is described. Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 2As shown, the electronic device 20 includes one or more processors 220, a memory 230, a communication interface 240 and one or more programs 231. The processor 220 is communicatively connected with the memory 230 and the communication interface 240 via an internal communication bus.

[0049] The processor 220 is mainly used for:

[0050] When the checkout staff performs self-service checkout, the target batch number, expiration date, and ingredient information corresponding to the campus food are obtained from the food management system;

[0051] Determine the reference fee corresponding to the target batch number according to the preset campus food price list, in which the batch number and the fee correspond one to one;

[0052] Determine the target allergen information based on the ingredient information, and generate allergen prompt information based on the target allergen information;

[0053] In response to an instruction from a checkout staff member to confirm the allergy reminder information, determining that the status of campus food is safe and obtaining the current date;

[0054] Determine whether the current date exceeds the expiration deadline;

[0055] If the current date is beyond the expiration date, the reference fee will not be added to the bill, and an expiration reminder message will be generated. The bill is used to calculate the total cost of purchasing campus food;

[0056] If the current date does not exceed the expiration deadline, and the target day difference between the expiration deadline and the current date is less than the preset day threshold, the reference fee is discounted to obtain the discounted fee, and the discounted fee is added to the bill.

[0057] The one or more programs 231 are stored in the memory 230 and are configured to be executed by the processor 220. The one or more programs 231 include instructions for executing any step in the method embodiment.

[0058] The processor 220 may be, for example, a central processing unit (CPU), a general purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, units and circuits described in conjunction with the disclosure of the present application. The processor 220 may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication unit may be a communication interface 240, a transceiver, a transceiver circuit, and the like, and the storage unit may be a memory 230.

[0059] The memory 230 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).

[0060] It is understood that the electronic device 20 may include more or fewer structural elements than those in the above structural block diagram, for example, including a power module, physical buttons, a Wi-Fi module, a speaker, a Bluetooth module, a sensor, a display module, etc., which are not limited here. It is understood that the electronic device 20 may be equipped with Figure 1 The system architecture described.

[0061] After understanding the software and hardware architecture of this application, Figure 3 A method for safety supervision of campus food in an embodiment of the present application is described. Figure 3 A flow chart of a method for safety supervision of campus food provided in an embodiment of the present application, which is applied to a food management system, specifically includes the following steps:

[0062] Step S301, when the checkout staff performs self-service checkout, the target batch number, expiration date, and ingredient information corresponding to the campus food are obtained from the food management system.

[0063] Specifically, the image recognition device scans the barcode or QR code of campus food to obtain scan information, and obtains the target batch number, expiration date, and ingredient information corresponding to the scan information from the food management system.

[0064] Among them, the food management system includes an image recognition device. Before obtaining the expiration date corresponding to the campus food from the food management system, the packaging identification information of the campus food detected by the image recognition device is obtained; whether the packaging of the campus food is intact is judged according to the packaging identification information; it is determined that the packaging of the campus food is intact, and basic information of the campus food is obtained, and the basic information includes production date, shelf life, storage conditions, and ingredient information; the expiration date is determined according to the production date and the shelf life; the warehousing time of the campus food is obtained, and the target batch number is generated according to the warehousing time; the target batch number, the expiration date, the storage conditions and the ingredient information are stored in the food management system.

[0065] Specifically, the image recognition device scans and analyzes the campus food to obtain the packaging identification information, and determines whether the packaging of the campus food is intact according to the packaging identification information. For example, the packaging can be determined by detecting whether it is damaged, deformed, leaked, etc. If the packaging is intact, the basic information of the campus food is further obtained, and the basic information includes but is not limited to the production date, shelf life, storage conditions, and ingredient information. The basic information is marked on the packaging in the form of text, barcode or QR code. The image recognition device can directly recognize the text information on the packaging to obtain the basic information of the campus food, or scan the barcode or QR code to obtain the basic information of the campus food. Then, according to the obtained production date and shelf life, the expiration deadline of the campus food is calculated. For example, the expiration deadline can be obtained by adding the production date to the number of days of the shelf life, where the shelf life can be days, months or years. Record the storage time of the campus food, and generate the target batch number according to the storage time. For example, if the storage time of the campus food is A year B month C day, the generated target batch number is ABC-001. Finally, the target batch number, expiration date, storage conditions and ingredient information are stored in the food management system.

[0066] In a possible embodiment, the temperature parameter and humidity parameter of the current storage environment of the campus food are obtained by the sensor; the reference temperature range and reference humidity range for storing the campus food are determined according to the storage conditions; the adjustable temperature range and the adjustable humidity range are obtained and determined to be greater than the reference temperature range and the reference humidity range, respectively; it is determined whether the temperature parameter and the humidity parameter are respectively within the adjustable temperature range and the adjustable humidity range; if the temperature parameter is not within the adjustable temperature range, and / or the humidity parameter is not within the adjustable humidity range, a warning notification is sent to the management personnel.

[0067] Among them, the food management system also includes a temperature and humidity adjustment device. If the temperature parameter is not in the reference temperature range but in the adjustable temperature range, the temperature parameter is compared with the reference temperature range to obtain a temperature difference; the temperature adjustment parameter is determined according to the temperature difference; if the humidity parameter is not in the reference humidity range but in the adjustable humidity range, the humidity parameter is compared with the reference humidity range to obtain a humidity difference; the humidity adjustment parameter is determined according to the humidity difference; and the temperature and humidity adjustment device is instructed to adjust according to the temperature adjustment parameter and the humidity adjustment parameter to obtain a target temperature parameter and a target humidity parameter.

[0068] It should be noted that if the current temperature is higher than the upper limit of the reference temperature range, the temperature difference is the current temperature minus the upper limit of the reference temperature; if the current temperature is lower than the lower limit of the reference temperature range, the temperature difference is the lower limit of the reference temperature minus the current temperature. The calculation of the humidity difference is the same as the temperature difference, which will not be repeated here. The temperature adjustment parameters are determined according to the temperature difference. The temperature adjustment parameters include the temperature adjustment amplitude and the temperature adjustment rate, wherein the temperature adjustment amplitude refers to the temperature change size of each adjustment, such as ±0.5°C or ±1°C each adjustment; the temperature adjustment rate refers to the rate of change of temperature per unit time, such as an increase or decrease of 0.2°C per minute. The larger the temperature difference, the larger the corresponding temperature adjustment amplitude and temperature adjustment rate. Finally, the temperature and humidity adjustment device is instructed to adjust according to the temperature adjustment amplitude and the temperature adjustment rate to obtain the target temperature parameter, which is within the reference temperature range. Similarly, the humidity adjustment parameters are determined based on the humidity difference. The humidity adjustment parameters include humidity adjustment amplitude and humidity adjustment rate, wherein the humidity adjustment amplitude refers to the humidity change size of each adjustment, and the humidity adjustment rate refers to the rate of change of humidity per unit time. The temperature and humidity adjustment device is instructed to adjust according to the humidity adjustment amplitude and the humidity adjustment rate to obtain the target humidity parameter, which is within the reference humidity range.

[0069] Step S302, determining the reference fee corresponding to the target batch number according to a preset campus food price list.

[0070] Among them, the batch numbers and fees in the preset campus food price list correspond one to one.

[0071] Specifically, the food management system stores a preset campus food price list, in which different batch numbers correspond to different fees, for example, the fee corresponding to the first batch number is 10 yuan, and the fee corresponding to the second batch number is 20 yuan. The campus food price list is queried according to the target batch number to obtain the reference fee corresponding to the target batch number.

[0072] Step S303: determining target allergen information according to the component information, and generating allergen prompt information according to the target allergen information.

[0073] Among them, determining the target allergen information according to the ingredient information specifically includes: obtaining the raw material information, additive information, and seasoning information in the ingredient information; determining the ingredient composition and ingredient characteristics according to the raw material information, the additive information, and the seasoning information; determining the reference allergen information according to the ingredient composition; determining the allergic cross reaction according to the ingredient characteristics, the allergic cross reaction being an allergic reaction caused by a substance with characteristics similar to those of the allergen; and adjusting the reference allergen information according to the allergic cross reaction to obtain the target allergen information.

[0074] Specifically, according to the obtained ingredient information, the raw material information, additive information, and seasoning information can be extracted, wherein the raw material information includes various raw materials constituting the food, such as flour, sugar, meat, vegetables, etc.; the additive information includes preservatives, thickeners, food coloring, etc., which are used to improve the quality of food, extend the shelf life or increase the taste of food; the seasoning information includes salt, soy sauce, spices, etc., which are used to increase the taste and flavor of food. According to the raw material information, additive information and seasoning information, the ingredient composition and ingredient characteristics of campus food can be determined. Among them, the ingredient composition refers to the proportion and existence form of various ingredients in food, and the ingredient characteristics involve the chemical properties, nutritional value and possible allergenicity of these ingredients. According to the ingredient composition, the reference allergen information contained in the campus food can be determined, wherein the reference allergen refers to substances known to cause allergic reactions, such as peanuts, wheat, shrimp, etc. The possible allergic cross reactions in food are determined based on the characteristics of the ingredients. Allergic cross reactions refer to substances with similar characteristics to known allergens that trigger allergic reactions. For example, fish and shellfish are both seafood, and their protein structures are similar. Therefore, people who are allergic to certain fish may also be allergic to certain shellfish. Therefore, the reference allergen information is adjusted based on the allergic cross reactions to obtain the target allergen information.

[0075] Step S304, in response to the checkout staff's instruction to confirm the allergy warning information, determining that the status of the campus food is safe, and obtaining the current date.

[0076] Specifically, when the food management system receives and responds to the checkout staff's instruction to confirm the allergy warning information, it can determine that the status of the campus food is safe, so as to prevent people with allergies from eating food that may cause allergic reactions. Among them, the allergy warning information is highlighted in bold, italic, bold, warning icons or obvious font size, and special marks and warnings are used to remind people with allergies to pay attention to food safety. At the same time, the next step is to obtain the current date.

[0077] Step S305, determining whether the current date exceeds the expiration deadline.

[0078] Step S306: If the current date exceeds the expiration deadline, the reference fee is not added to the bill, and an expiration reminder message is generated.

[0079] The bill is used to calculate the total cost of purchasing the campus food.

[0080] Specifically, if the current date exceeds the expiration date, the reference fee for the campus food will not be added to the bill, and an expiration reminder message will be generated, which includes information such as the food has expired, is not suitable for consumption, and needs to be replaced.

[0081] In a possible embodiment, the expiration reminder information may be supplemented with some information about alternative campus foods of the same type. For example, when the selected yogurt is expired, the alternative campus food information may be yogurt of the same brand, or yogurt of other flavors, etc. If the price of the alternative campus food is different from that of the original campus food, the price difference may be indicated in the expiration reminder information, so that the checkout personnel can understand the price of the alternative campus food and make corresponding decisions.

[0082] In a possible embodiment, after the expiration reminder information is generated, the location information corresponding to the target batch number is determined according to a preset food shelf table; an expired food notification is generated according to the target batch number, the expiration deadline and the location information, and the expired food notification is used to remind the management personnel to remove expired campus food from the shelves in a timely manner; and the expired food notification is sent to the management personnel.

[0083] It should be noted that in the preset food shelf table, the batch number corresponds to the location information, and the corresponding location information can be queried according to the batch number of campus food, and the location information includes but is not limited to shelf location information and warehouse location information. The generated expired food notification is sent to relevant managers, and the expired food notification can be sent by email, text message, system internal message, etc., to remind managers to remove and handle expired campus food in time to ensure food safety and quality.

[0084] Step S307, if the current date does not exceed the expiration deadline, and the target day difference between the expiration deadline and the current date is less than a preset day threshold, the reference fee is discounted to obtain a discounted fee, and the discounted fee is added to the bill.

[0085] Among them, the food management system also includes facial recognition equipment.

[0086] Specifically, if the current date does not exceed the expiration date, the target day difference between the expiration date and the current date is obtained, and it is determined whether the target day difference is less than the preset day threshold. If the target day difference is less than the preset day threshold, the next step is executed, that is, the reference fee is discounted and the discounted fee is obtained, and the discounted fee is added to the bill. The preset day threshold can be set according to the type of campus food. For example, the day threshold for milk is 3 days, and the day threshold for bread is 5 days; otherwise, no discount is performed.

[0087] Among them, the discounting of the reference fee and obtaining the discounted fee specifically includes: determining the reference discount strength corresponding to the target day difference according to a preset mapping relationship between the day difference and the discount strength; obtaining the identity recognition information of the checkout person by the face recognition device, the identity recognition information including students, teachers, and campus staff; determining the corresponding reference adjustment factor according to the identity recognition information, the students, teachers, and campus staff in the identity recognition information correspond one-to-one to multiple adjustment factors, and the reference adjustment factor is any one of the multiple adjustment factors; adjusting the reference discount strength according to the reference adjustment factor to obtain the target discount strength; discounting the reference fee according to the target discount strength to obtain the discounted fee.

[0088] Specifically, the reference discount strength corresponding to the target day difference is determined according to the preset mapping relationship between the day difference and the discount strength. For example, a day difference of 1-3 days corresponds to a 30% discount, a day difference of 4-7 days corresponds to a 15% discount, and so on. The identity information of the checkout personnel is obtained through a face recognition device, such as a student, teacher or campus staff, and the corresponding reference adjustment factor is determined according to the identity information, wherein the reference adjustment factor is any one of a plurality of adjustment factors, and students, teachers and campus staff correspond to different adjustment factors one by one. The reference discount strength is adjusted according to the reference adjustment factor to obtain the target discount strength. The reference adjustment factor can increase or decrease the discount strength. For example, the reference adjustment factor corresponding to the student is set to +5%, and the reference discount strength is 10%. After adjustment, the target discount strength is obtained, which is 15%. Finally, the reference fee is discounted according to the target discount strength to obtain the discounted fee. For example, the target discount strength is 15%, the reference fee is 10 yuan, and the discounted fee obtained after the discount processing is 8.5 yuan.

[0089] It can be seen that through the above method, the sale of expired food can be avoided by not adding the cost of expired food to the bill, thereby improving the safety of campus food; by analyzing allergens and reminding checkout personnel, people with allergies can be prevented from eating foods that may cause allergic reactions; by discounting and promoting near-expiry foods, it helps to reduce the occurrence of expired food problems; by adjusting the ambient temperature and humidity, food quality can be guaranteed and food safety can be improved.

[0090] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0091] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0092] In the case of dividing each functional module into corresponding functional modules, Figure 4 A functional module composition block diagram of a campus food safety supervision device provided in an embodiment of the present application, a campus food safety supervision device 400, applied to a food management system, and a campus food safety supervision device 400 includes an acquisition module 410, a first determination module 420, a second determination module 430, a third determination module 440, a judgment module 450, a first control module 460 and a second control module 470, wherein:

[0093] The acquisition module 410 is used to obtain the target batch number, expiration date, and ingredient information corresponding to the campus food from the food management system when the checkout personnel perform self-service checkout;

[0094] A first determination module 420, for determining a reference fee corresponding to the target batch number according to a preset campus food price list, wherein the batch number and the fee in the preset campus food price list correspond one to one;

[0095] A second determination module 430 is used to determine target allergen information according to the component information, and generate allergen prompt information according to the target allergen information;

[0096] The third determination module 440 is used to respond to the instruction of the checkout staff to confirm the allergy prompt information, determine that the status of the campus food is safe, and obtain the current date;

[0097] A determination module 450, configured to determine whether the current date exceeds the expiration deadline;

[0098] A first control module 460 is used for not adding the reference fee to the bill and generating an expiration reminder message when the current date exceeds the expiration deadline, and the bill is used to count the total cost of purchasing the campus food;

[0099] The second control module 470 is used to discount the reference fee and obtain the discounted fee when the current date does not exceed the expiration deadline and the target number of days difference between the expiration deadline and the current date is less than a preset number of days threshold, and add the discounted fee to the bill.

[0100] It can be seen that by not adding the cost of expired food to the bill, the sale of expired food can be avoided, thereby improving the safety of campus food.

[0101] It should be noted that the specific implementation of each operation can adopt the corresponding description of the method embodiment shown above. The campus food safety supervision device 400 can be used to execute the above method embodiment of the present application, which will not be repeated here.

[0102] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiment, and the above computer includes an electronic device.

[0103] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.

[0104] It should be noted that, for the above-mentioned various embodiments, for the sake of simple description, they are all expressed as a series of action combinations. Those skilled in the art should be aware that the present application is not limited by the described order of actions, because some steps in the embodiments of the present application can be performed in other orders or simultaneously. In addition, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions, steps, modules or units involved are not necessarily required by the embodiments of the present application.

[0105] In the above embodiments, the embodiments of the present application have different focuses on the description of each embodiment. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0106] In summary, by implementing the embodiments of the present application, the sale of expired food can be avoided by not adding the cost of expired food to the bill, thereby improving the safety of campus food; by analyzing allergenic substances and reminding checkout personnel, people with allergies can be prevented from eating foods that may cause allergic reactions; by discounting and promoting near-expiry foods, it helps to reduce the occurrence of expired food problems; by adjusting the ambient temperature and humidity, food quality can be guaranteed and food safety can be improved.

[0107] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

[0108] The steps of the method or algorithm described in the embodiments of the present application can be implemented in hardware or by executing software instructions by a processor. The software instructions can be composed of corresponding software modules, and the software modules can be stored in RAM, flash memory, ROM, EPROM, electrically erasable programmable read-only memory (electrically EPROM, EEPROM), registers, hard disks, mobile hard disks, read-only compact disks (CD-ROMs) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a terminal device or a management device. Of course, the processor and the storage medium can also be present in a terminal device or a management device as discrete components.

[0109] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiments of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server, or data center to another website site, computer, server, or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0110] The modules / units included in the devices and products described in the above embodiments may be software modules / units or hardware modules / units, or may be partially software modules / units and partially hardware modules / units. For example, for the devices and products applied to or integrated in the chip, the modules / units included therein may all be implemented in the form of hardware such as circuits, or at least some of the modules / units may be implemented in the form of software programs, which run on the processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits; for the devices and products applied to or integrated in the chip module, the modules / units included therein may all be implemented in the form of hardware such as circuits, and different modules / units may be located in the same component (such as a chip, circuit module, etc.) or in different components of the chip module, or at least some of the modules / units may be implemented in the form of software programs. The software programs run on the processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits. It is implemented in the form of a software program, which runs on a processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in hardware such as circuits; for various devices and products applied to or integrated in the terminal equipment, the various modules / units contained therein can be implemented in hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or in different components in the terminal equipment, or, at least some modules / units can be implemented in the form of a software program, which runs on a processor integrated inside the terminal equipment, and the remaining (if any) modules / units can be implemented in hardware such as circuits.

[0111] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the embodiments of the present application. It should be understood that the above description is only the specific implementation method of the embodiments of the present application and is not intended to limit the protection scope of the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.

Claims

1. A method for safety supervision of campus food, characterized in that: Applications in food management systems, including: When the checkout personnel conduct self-service checkout, the target batch number, expiration date, and ingredient information corresponding to the campus food are obtained from the food management system; Determine a reference fee corresponding to the target batch number according to a preset campus food price list, wherein the batch number and the fee in the preset campus food price list correspond one to one; Determining target allergen information according to the ingredient information, and generating allergen prompt information according to the target allergen information; In response to the checkout staff's instruction to confirm the allergy reminder information, determining that the status of the campus food is safe, and obtaining the current date; Determine whether the current date exceeds the expiration deadline; If the current date exceeds the expiration deadline, the reference fee is not added to the bill, and an expiration reminder message is generated, and the bill is used to count the total cost of purchasing the campus food; If the current date does not exceed the expiration deadline, and the target day difference between the expiration deadline and the current date is less than a preset day threshold, the reference fee is discounted to obtain a discounted fee, and the discounted fee is added to the bill.

2. The method according to claim 1, characterized in that The food management system includes an image recognition device. Before obtaining the expiration date corresponding to the campus food from the food management system, the method further includes: Obtaining packaging identification information of the campus food detected by the image recognition device; Determining whether the packaging of the campus food is intact according to the packaging identification information; Determine that the packaging of the campus food is intact and obtain basic information of the campus food, including production date, shelf life, storage conditions, and ingredient information; Determine the expiration date based on the production date and the shelf life; Obtaining the storage time of the campus food, and generating the target batch number according to the storage time; The target batch number, the expiration date, the storage conditions and the ingredient information are stored in the food management system.

3. The method according to claim 1, characterized in that The step of determining target allergen information according to the component information includes: Obtaining raw material information, additive information, and seasoning information from the ingredient information; Determine ingredient composition and ingredient characteristics according to the raw material information, the additive information, and the seasoning information; Determine reference allergenic substance information based on the composition of the ingredients; Determine an allergic cross reaction based on the properties of the ingredients, wherein the allergic cross reaction is an allergic reaction induced by a substance with properties similar to those of the allergenic substance; The reference allergen information is adjusted according to the allergic cross reaction to obtain target allergen information.

4. The method according to claim 1, characterized in that The food management system includes a face recognition device, and the reference fee is discounted to obtain the discounted fee, including: Determine a reference discount strength corresponding to the target day difference according to a preset mapping relationship between the day difference and the discount strength; Obtaining identity information of the checkout person by the face recognition device, wherein the identity information includes students, teachers, and campus staff; Determine a corresponding reference adjustment factor according to the identity identification information, wherein the students, teachers, and campus staff in the identity identification information correspond one-to-one to multiple adjustment factors, and the reference adjustment factor is any one of the multiple adjustment factors; Adjust the reference discount strength according to the reference adjustment factor to obtain a target discount strength; The reference fee is discounted according to the target discount strength to obtain the discounted fee.

5. The method according to claim 2, characterized in that The method further comprises: Acquire temperature parameters and humidity parameters of a current storage environment of the campus food by a sensor; Determining a reference temperature range and a reference humidity range for storing the campus food according to the storage conditions; Acquire and determine that the adjustable temperature range and the adjustable humidity range are respectively greater than the reference temperature range and the reference humidity range; Determining whether the temperature parameter and the humidity parameter are respectively within the adjustable temperature range and the adjustable humidity range; If the temperature parameter is not within the adjustable temperature range, and / or the humidity parameter is not within the adjustable humidity range, a warning notification is sent to the management personnel.

6. The method according to claim 5, characterized in that The food management system further includes a temperature and humidity adjustment device, and the method further includes: If the temperature parameter is not within the reference temperature range but within the adjustable temperature range, comparing the temperature parameter with the reference temperature range to obtain a temperature difference; Determining a temperature adjustment parameter according to the temperature difference; If the humidity parameter is not within the reference humidity range but within the adjustable humidity range, the humidity parameter is compared with the reference humidity range to obtain a humidity difference; Determining a humidity adjustment parameter according to the humidity difference; The temperature and humidity adjustment device is instructed to adjust according to the temperature adjustment parameter and the humidity adjustment parameter to obtain a target temperature parameter and a target humidity parameter.

7. The method according to claim 1, characterized in that After generating the expiration prompt information, the method further includes: Determine the location information corresponding to the target batch number according to a preset food shelf table; generating an expired food notification according to the target batch number, the expiration deadline and the location information, wherein the expired food notification is used to remind the administrator to remove expired campus food from shelves in a timely manner; The expired food notification is sent to management.

8. A safety monitoring device for campus food, characterized in that: Applied to a food management system, the device includes an acquisition module, a first determination module, a second determination module, a third determination module, a judgment module, a first control module and a second control module, wherein: The acquisition module is used to obtain the target batch number, expiration date, and ingredient information corresponding to the campus food from the food management system when the checkout personnel perform self-service checkout; The first determination module is used to determine the reference fee corresponding to the target batch number according to a preset campus food price list, in which the batch number and the fee correspond one to one; The second determination module is used to determine the target allergen information according to the component information, and generate allergen prompt information according to the target allergen information; The third determination module is used to respond to the instruction of the checkout staff to confirm the allergy prompt information, determine that the status of the campus food is safe, and obtain the current date; The judging module is used to judge whether the current date exceeds the expiration deadline; The first control module is used for not adding the reference fee to the bill and generating expiration reminder information when the current date exceeds the expiration deadline, and the bill is used to count the total cost of purchasing the campus food; The second control module is used to discount the reference fee and obtain a discounted fee, and add the discounted fee to the bill when the current date does not exceed the expiration deadline and the target day difference between the expiration deadline and the current date is less than a preset day threshold.

9. An electronic device, characterized in that: include: A processor, a memory, and one or more programs; the one or more programs are stored in the memory and are configured to be executed by the processor, the programs comprising instructions for executing the steps in the method according to any one of claims 1 to 7.

10. A computer storage medium, characterized in that: The computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 7.