Snack commodity information processing method and system based on AI and readable storage medium

The AI ​​model is used to identify the production date and shelf life of snack products, which solves the problem of difficulty in obtaining information in online sales, enables accurate information display and food safety management of snack products, and improves consumer experience and merchant decision-making basis.

CN118608252AInactive Publication Date: 2024-09-06SHENZHEN AIQIAO NETWORK CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410824983.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In online sales of snack products, it is difficult for consumers to obtain accurate production date and shelf life information, resulting in a poor shopping experience and increased difficulty in food safety management.

Method used

Use an AI-based method to obtain the production date and shelf life information of snack products. Use the AI ​​model to perform text recognition on the outer packaging image, automatically extract the target information, and display it in real time on the sales interface. Use the back-end API to calculate the shelf life information, and update it regularly to facilitate merchants. Adjust prices.

Benefits of technology

It improves the accuracy and efficiency of information acquisition, promotes food safety management, enhances consumer shopping experience, and ensures fair transaction of snack products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608252A
    Figure CN118608252A
Patent Text Reader

Abstract

The invention relates to an AI-based snack commodity information processing method and system and a readable storage medium, and belongs to the technical field of commodity information processing. The method is technically characterized by comprising the following steps: acquiring target information of snack commodities based on an AI model, wherein the target information comprises production date information and shelf life information; establishing a commodity label according to the target information and the commodity information of the snack commodity, and associating the commodity label with the snack commodity; storing the target information and the commodity label; and calling the target information and displaying the target information on a sales interface related to the commodity label. The production date and the shelf life of the snack commodity are acquired by using the AI model, so that the accuracy of extracting the target information can be improved, and the information acquisition efficiency can also be improved. Commodity labels are convenient for merchants to classify and manage snack commodities, and food safety management is promoted. And displaying the target information on a sales interface of the snack commodity, so that a consumer can know the production date and the shelf life of the snack commodity, and the consumer can conveniently judge whether the snack commodity needs to be purchased or not.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of commodity information processing, and in particular to an AI-based snack commodity information processing method, system and readable storage medium. Background Art

[0002] In the current digital age, most commodities have been sold online. From daily necessities to high-end electronic products, from fashion apparel to gourmet food, consumers can browse and purchase high-quality goods from all over the world with just a click of the mouse or a swipe of the phone screen. Taking snack sales as an example, consumers can enjoy a more convenient and fast shopping experience. Online platforms provide a rich selection of goods.

[0003] At present, for online sales of snack products, the information and prices of snack products are generally posted on e-commerce platforms. Consumers can learn about the information and prices of snack products through e-commerce platforms and choose whether to buy them. However, in general, only the outer packaging, flavor, net content, manufacturer and shelf life of snack products are displayed. For food such as snack products, the production date and shelf life are particularly important. Since there are many types of snack products sold by merchants, the production date of the same snack may vary. It is also difficult for merchants to regularly update the production date of the snack products on e-commerce platforms. When consumers purchase on e-commerce platforms, it is difficult to know how long the shelf life of the snack products they choose is. Therefore, there is still room for improvement. Summary of the invention

[0004] The present application provides an AI-based snack product information processing method, system and readable storage medium, which is beneficial for merchants to manage snack products in batches, and is also beneficial for consumers to understand the shelf life of snack products.

[0005] In the first aspect, the present application provides a method for processing snack commodity information based on AI, which adopts the following technical solution:

[0006] An AI-based snack commodity information processing method, comprising:

[0007] Acquire target information of snack products based on the AI ​​model, wherein the target information includes production date information and shelf life information;

[0008] Establishing a product label according to the target information and product information of the snack product, and associating the product label with the snack product;

[0009] storing the target information and the product label;

[0010] The target information is called and displayed on a sales interface associated with the product tag.

[0011] In the above technical solution, the AI ​​model is used to obtain the production date and shelf life of snack products, which can not only improve the accuracy of extracting target information, but also improve the efficiency of information acquisition. Product labels are used to facilitate merchants to classify and manage snack products and promote food safety management. The target information is displayed on the sales interface of snack products so that consumers can know the production date and shelf life of the snack products and judge whether they need to buy them.

[0012] Preferably, the step of acquiring target information of snack products based on the AI ​​model includes:

[0013] Collecting image information associated with the outer packaging of snack products;

[0014] Preprocessing the image information to obtain image data;

[0015] Using an AI model to perform image segmentation and text positioning on the image data to obtain several groups of target image data;

[0016] Perform text recognition on several groups of target image data to obtain target information.

[0017] The above solution uses an AI model to perform text recognition on the outer packaging of snack products to obtain production date information and shelf life information without manual entry, thereby improving the accuracy and efficiency of target information collection.

[0018] Preferably, the step of calling the target information and displaying it on a sales interface related to the product tag includes:

[0019] Acquire the target information based on the backend API;

[0020] Parsing the target information and calculating shelf life information;

[0021] updating and storing the shelf life information in the target information;

[0022] Monitor the update of the target information in real time;

[0023] The updated target information is rendered in a template and displayed on the sales interface.

[0024] In the above technical solution, the production date information and shelf life information of the snack products are obtained through the back-end API, and then the production date information and shelf life information are parsed, such as converting the date string into a date object, and then calculating the shelf life information of the product based on the current date and shelf life, and storing the shelf life information in the target information, providing consumers with a more intuitive shelf life of snack products, which is conducive to providing consumers or merchants with more useful decision-making basis. After calculating the shelf life information, monitor the target information in real time to see if there is an update. When the target information is monitored to be updated, fill the parsed production date information, shelf life information and calculated shelf life information into a pre-designed template, and then render this template into HTML content and display it on the sales interface, which is conducive to the real-time nature of the information seen by consumers and enhances the consumer's online shopping experience.

[0025] Preferably, the step of parsing the target information and calculating the shelf life information includes:

[0026] Get the current date information;

[0027] Convert the string format of the production date information into a date object to obtain the target production date data;

[0028] Convert the string or value of the shelf life information into a computable object to obtain the target shelf life data;

[0029] Determining expiration date data based on the target production date data and the target shelf life data;

[0030] Compare the expiration date data with the date information to obtain a calculation result;

[0031] The calculation result is formatted and output in date and time to obtain shelf life information.

[0032] Preferably, after the step of calculating the shelf life information and before the step of rendering the template and displaying it on the sales interface, the method includes:

[0033] updating the shelf life information regularly to obtain updated shelf life information, and updating the updated shelf life information to the target information;

[0034] Calculating a ratio of the updated shelf life information to the shelf life information;

[0035] Input the ratio into the AI ​​model to obtain updated price data;

[0036] storing the updated price data into the target information;

[0037] Monitor the update of the target information in real time;

[0038] The updated target information is rendered in a template and displayed on the sales interface.

[0039] In the above scheme, the shelf life information is updated regularly to facilitate monitoring of the shelf life information of snack products. For snack products, when the shelf life is close to the expiration date, the merchant hopes to sell them as soon as possible. Therefore, the AI ​​model can be used to update the price according to the updated shelf life information to attract consumers. At the same time, the updated shelf life information and updated price data are displayed on the sales interface, so that consumers can clearly know the shelf life of the snack product and the corresponding price data before deciding whether to buy it, thereby promoting fairness in snack product transactions.

[0040] In the second aspect, the present application provides an AI-based snack commodity information processing system, which adopts the following technical solutions:

[0041] An AI-based snack commodity information processing system, including

[0042] Acquisition module: used to acquire target information of snack products based on the AI ​​model, wherein the target information includes production date information and shelf life information;

[0043] Establishing module: used to establish a product label according to the target information and the product information of the snack product, and associate the product label with the snack product;

[0044] Storage module: used to store the target information and the product label;

[0045] Display module: used to call the target information and display it on the sales interface related to the product label.

[0046] In the above technical solution, the acquisition module is used to obtain the production date and shelf life of snack products, which can not only improve the accuracy of extracting target information, but also improve the efficiency of information acquisition. The establishment module establishes product labels based on the target information, and then stores the target information and product labels through the storage module. The product labels facilitate merchants to classify and manage snack products and promote food safety management. The display module displays the target information on the sales interface of the snack products so that consumers can know the production date and shelf life of the snack products, so that consumers can judge whether they need to buy them.

[0047] In a third aspect, the present application provides an electronic device, which is implemented by the following technical solutions:

[0048] An electronic device includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute the above-mentioned AI-based snack product information processing method.

[0049] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, which is executed by any of the above-mentioned AI-based snack product information processing methods.

[0050] In summary, the present application includes at least one of the following beneficial technical effects:

[0051] 1. Using AI models to obtain the production date and shelf life of snack products can not only improve the accuracy of extracting target information, but also improve the efficiency of information acquisition. Product labels make it easier for merchants to classify and manage snack products and promote food safety management. Display the target information on the sales interface of snack products so that consumers can know the production date and shelf life of the snack products and decide whether to buy them.

[0052] 2. Obtain the production date and shelf life information of snack products through the back-end API, and then parse the production date and shelf life information, such as converting the date string into a date object, and then calculating the shelf life information of the product based on the current date and shelf life, and storing the shelf life information in the target information, providing consumers with a more intuitive shelf life of snack products, which is conducive to providing consumers or merchants with more useful decision-making basis. After calculating the shelf life information, monitor the target information in real time to see if there is an update. When the target information is updated, fill the parsed production date information, shelf life information and calculated shelf life information into the pre-designed template, and then render this template into HTML content and display it on the sales interface, which is conducive to the real-time nature of the information seen by consumers and improves the consumer's online shopping experience.

[0053] 3. Update shelf life information regularly to facilitate monitoring of the shelf life information of snack products. For snack products, when the shelf life is close to the expiration date, merchants hope to sell them as soon as possible. Therefore, the AI ​​model can be used to update the price according to the updated shelf life information to attract consumers. At the same time, the updated shelf life information and updated price data are displayed on the sales interface, so that consumers can clearly know the shelf life of the snack product and the corresponding price data before deciding whether to buy it, thereby promoting fairness in snack product transactions. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a flowchart of the AI-based snack product information processing method in this application.

[0055] Figure 2 It is a specific flow chart of step S4 in the AI-based snack product information processing method of the present application.

[0056] Figure 3 It is a structural block diagram of an AI-based snack product information processing system in one of the embodiments of the present application.

[0057] Figure 4 It is a structural block diagram of an electronic device in one embodiment of the present application.

[0058] Description of reference numerals:

[0059] 10. Acquisition module; 20. Creation module; 30. Storage module; 40. Display module. DETAILED DESCRIPTION

[0060] The following combination Figure 1-Figure 4 This application is described in further detail.

[0061] The embodiment of the present application provides an AI-based snack product information processing method, which is applied to online sales scenarios such as e-commerce platforms. It can display the production date and shelf life of snack products in the sales interface. On the one hand, it is convenient for merchants to manage snack products, and on the other hand, it is convenient for consumers to check the production date and shelf life of snack products, which is convenient for consumers to make decisions when making online purchases.

[0062] See also Figure 1 , the AI-based snack product information processing method includes:

[0063] S1. Obtain target information of snack products based on the AI ​​model. The target information includes production date information and shelf life information.

[0064] Step S1 specifically includes:

[0065] S11. Collect image information associated with the outer packaging of snack products.

[0066] Specifically, when the merchant receives the snack products, the snack products are placed on the automatic conveyor belt for automatic counting. At the same time, an image acquisition device is set up above the entrance of the automatic conveyor belt, and the snack products are placed at the entrance of the automatic conveyor belt, with the location where the production date and shelf life are displayed on the outer packaging of the snack products facing the image acquisition device. When the automatic conveyor belt conveys the snack products, the image acquisition device acquires image information, and then the image acquisition device feeds back the image information to the electronic device, thereby enabling the electronic device to execute step S11.

[0067] S12, pre-processing the image information to obtain image data.

[0068] Specifically, the preprocessing steps include but are not limited to image grayscale, binarization, contrast adjustment and other processing steps.

[0069] S13. Use an AI model to perform image segmentation and text positioning on the image data to obtain several groups of target image data.

[0070] Among them, the edge detection algorithm is used to locate the text.

[0071] S14, performing text recognition on several groups of target image data to obtain target information.

[0072] Among them, the AI ​​model used has the function of text recognition.

[0073] The AI ​​model construction process is as follows:

[0074] 1. Data collection: Collect a large amount of text image data.

[0075] 2. Data preprocessing: Preprocess the collected images, including denoising, binarization, image enhancement and other operations to improve the accuracy of text recognition.

[0076] 3. Text detection: Locating text areas in an image. This usually involves using deep learning models to identify areas in an image that may contain text.

[0077] 4. Text segmentation: Segment the detected text area into individual characters or words for subsequent recognition.

[0078] 5. Feature extraction: Use convolutional neural network (CNN) to extract text features.

[0079] 6. Sequence Modeling: Use Recurrent Neural Networks (RNNs) to process sequence data.

[0080] 7. Connectionist Temporal Classification (CTC): The CTC algorithm is a method for dealing with sequence recognition problems that can align the output sequence with the input sequence even if they are of different lengths.

[0081] 8. Training model: Use labeled data sets to train the model and adjust model parameters to obtain an AI model.

[0082] AI models are used to perform text recognition on the outer packaging of snack products to obtain production date information and shelf life information, reducing manual entry and thereby improving the accuracy and efficiency of target information collection.

[0083] S2. Create a product label based on the target information and the product information of the snack product, and associate the product label with the snack product.

[0084] A data structure of product labels is established in the database for storing and managing product labels.

[0085] When associating product labels with snack products, the name, net content, outer packaging image and other information of the snack product are associated, and the merchant will subsequently ship the products according to the product labels.

[0086] S3. Store target information and product labels.

[0087] S4. Call the target information and display it on the sales interface related to the product tag.

[0088] When the snack product is sold online, the electronic device calls up the target information related to the snack product and displays it on the sales interface so that consumers can clearly know the relevant information of the snack product.

[0089] For details, see Figure 2 , step S4 comprises:

[0090] S41, obtaining target information based on backend API. Backend API refers to Application Programming Interface.

[0091] S42. Analyze the target information and calculate the shelf life information.

[0092] Wherein, step S42 includes:

[0093] S421. Get current date information.

[0094] For example, assuming that today is January 1, 2020, the current date information is "2020-01-01".

[0095] S422. Convert the string format of the production date information into a date object to obtain target production date data.

[0096] S423: Convert the character string or numerical value of the shelf life information into a computable object to obtain target shelf life data.

[0097] The shelf life information is generally a time period, for example: the shelf life information is 3 years, the shelf life information is 365 days, and the shelf life information is 30 days.

[0098] S424. Determine the expiration date data based on the target production date data and the target shelf life data.

[0099] For example, assuming that the date is January 1, 2020, and the shelf life information is 30 days, the expiration date data is January 31, 2020.

[0100] S425: Compare the expiration date data with the date information to obtain a calculation result.

[0101] For example, assuming that the expiration date data is: January 31, 2020; the current date information is January 15, 2020, then the calculation result is: 16. The calculation result indicates the remaining time (expressed in days or months) until the expiration date data. It should be noted that the calculation result (i.e., the shelf life information) is generally represented by a string, so step S426 needs to be executed.

[0102] S426. Format the calculation result in date and time and output it to obtain shelf life information.

[0103] Date and time formatting refers to converting date and time objects into readable string form. For example, converting a datetime object into "YYYY-MM-DD" or "DD / MM / YYYY HH:MM:SS" format.

[0104] S43, updating and storing the shelf life information in the target information.

[0105] S44. Monitor the update of target information in real time.

[0106] When it is detected that the target information is updated, step S45 is executed; when it is detected that the target information is not updated, the monitoring step is continued.

[0107] S45, rendering the updated target information into a template and displaying it on the sales interface.

[0108] Specifically, when the target information is monitored to be updated, the parsed production date information, shelf life information and calculated shelf life information are filled into a pre-designed template, and then the template is rendered into HTML content and displayed on the sales interface, which is conducive to making the information seen by consumers real-time and improving consumers' online shopping experience.

[0109] In one possible implementation, in order to improve the convenience of consumers purchasing snack products online, after the step of calculating the shelf life information and before the step of rendering the template and displaying it on the sales interface, the method includes:

[0110] (1) Regularly update the shelf life information to obtain updated shelf life information, and update the updated shelf life information to the target information.

[0111] Generally, the shelf life is updated regularly according to a certain number of days (e.g., every day or every two days) so as to determine the shelf life more accurately. When the shelf life is shorter (i.e., the remaining shelf life is shorter), the merchant hopes to sell the snack product as soon as possible, so the price can be adjusted to attract consumers. Therefore, the following step (2) is performed at this time.

[0112] (2) Calculate the ratio of the updated shelf life information to the shelf life information.

[0113] For example, when the expiration date information is 5 days and the shelf life information is 30 days, the ratio of the expiration date information to the shelf life information is 16.7%.

[0114] (3) Input the ratio into the AI ​​model to obtain updated price data.

[0115] Among them, the AI ​​model is formed by the integration of the text recognition sub-model and the price prediction sub-model.

[0116] In the AI ​​model, various ratio ranges and related price ranges are pre-set. For example: if the shelf life information is 30 days, the shelf life information is 30 days, the ratio range is 100%, and the price is the original price. Another example: if the shelf life information is 10 days, the shelf life information is 30 days, the ratio range is 33%, and the price is one-third of the original price.

[0117] The ratio and price can be set by the merchant himself. After setting, the electronic device can regularly update the price and display it on the sales interface, further reducing manual intervention and making it easier for merchants to manage the shelf life, price and sales of snack products.

[0118] (4) Store the updated price data into the target information.

[0119] (5) Monitor the update of target information in real time.

[0120] In a possible implementation, the WebSocket protocol is used to establish full-duplex communication between the front end and the server to achieve real-time push and update of data.

[0121] In another possible implementation, the functions provided by cloud services and the Serverless architecture are used to implement real-time monitoring and response to database changes.

[0122] (6) The updated target information is rendered into a template and displayed on the sales interface.

[0123] It should be noted that when the shelf life of a snack product is ≤ 0, that is, the shelf life of the snack product has exceeded the expiration date data, the target information and the snack product information associated with it cannot be displayed on the sales interface, which helps to prevent consumers from purchasing. At the same time, the electronic device sends a text message to the merchant based on the target information, reminding the merchant to deal with expired snack products in a timely manner.

[0124] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0125] The present application also provides an AI-based snack commodity information processing system, such as Figure 3 As shown, the AI-based snack commodity information processing system includes an acquisition module 10, a creation module 20, a storage module 30 and a display module 40, and each functional module is described in detail as follows:

[0126] Acquisition module 10: used to obtain target information of snack products based on the AI ​​model, the target information includes production date information and shelf life information.

[0127] Establishment module 20: used to establish a product label according to the target information and the product information of the snack product, and associate the product label with the snack product.

[0128] Storage module 30: used to store target information and product labels.

[0129] Display module 40: used to call target information and display it on a sales interface related to the product label.

[0130] The acquisition module 10 is used to obtain the production date and shelf life of snack products, which can not only improve the accuracy of extracting target information, but also improve the efficiency of information acquisition. The establishment module 20 establishes product labels according to the target information, and then stores the target information and product labels through the storage module 30. The product labels facilitate merchants to classify and manage snack products and promote food safety management. The display module 40 displays the target information on the sales interface of the snack products so that consumers can know the production date and shelf life of the snack products, so that consumers can judge whether they need to buy them.

[0131] The present application also provides an electronic device. Figure 4 As shown, it includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and execute the AI-based snack commodity information processing method:

[0132] S1. Obtain target information of snack products based on the AI ​​model. The target information includes production date information and shelf life information.

[0133] S2. Create a product label based on the target information and the product information of the snack product, and associate the product label with the snack product.

[0134] S3. Store target information and product labels.

[0135] S4. Call the target information and display it on the sales interface related to the product tag.

[0136] Wherein, the electronic device is a server, and its internal structure diagram can be as follows Figure 4 As shown. The electronic device includes a processor, a memory, a network interface and a database connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the electronic device is used to store target information, product labels, image information, etc. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an AI-based snack product information processing method is implemented.

[0137] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0138] S1. Obtain target information of snack products based on the AI ​​model. The target information includes production date information and shelf life information.

[0139] S2. Create a product label based on the target information and the product information of the snack product, and associate the product label with the snack product.

[0140] S3. Store target information and product labels.

[0141] S4. Call the target information and display it on the sales interface related to the product tag.

[0142] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0143] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0144] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A snack commodity information processing method based on AI, characterized in that: include Acquire target information of snack products based on the AI ​​model, wherein the target information includes production date information and shelf life information; Establishing a product label according to the target information and product information of the snack product, and associating the product label with the snack product; storing the target information and the product label; The target information is called and displayed on a sales interface associated with the product tag.

2. The method for processing snack commodity information based on AI according to claim 1, characterized in that: The step of obtaining target information of snack products based on the AI ​​model includes: Collecting image information associated with the outer packaging of snack products; Preprocessing the image information to obtain image data; Using an AI model to perform image segmentation and text positioning on the image data to obtain several groups of target image data; Perform text recognition on several groups of target image data to obtain target information.

3. The AI-based snack commodity information processing method according to claim 1 is characterized in that: The step of calling the target information and displaying it on a sales interface related to the product tag includes: Acquire the target information based on the backend API; Parsing the target information and calculating shelf life information; updating and storing the shelf life information in the target information; Monitor the update of the target information in real time; The updated target information is rendered in a template and displayed on the sales interface.

4. The method for processing snack commodity information based on AI according to claim 3, characterized in that: The step of parsing the target information and calculating the shelf life information includes: Get the current date information; Convert the string format of the production date information into a date object to obtain the target production date data; Convert the string or value of the shelf life information into a computable object to obtain the target shelf life data; Determining expiration date data based on the target production date data and the target shelf life data; Compare the expiration date data with the date information to obtain a calculation result; The calculation result is formatted and output in date and time to obtain shelf life information.

5. The method for processing snack commodity information based on AI according to claim 3, characterized in that: After the step of calculating the shelf life information and before the step of rendering the template and displaying it on the sales interface, the method includes: updating the shelf life information regularly to obtain updated shelf life information, and updating the updated shelf life information to the target information; Calculating a ratio of the updated shelf life information to the shelf life information; Input the ratio into the AI ​​model to obtain updated price data; storing the updated price data into the target information; Monitor the update of the target information in real time; The updated target information is rendered in a template and displayed on the sales interface.

6. An AI-based snack commodity information processing system, characterized in that: include An acquisition module (10): used to acquire target information of snack products based on an AI model, wherein the target information includes production date information and shelf life information; Establishing module (20): used to establish a product label according to the target information and product information of the snack product, and associate the product label with the snack product; Storage module (30): used for storing the target information and the commodity label; Display module (40): used to call the target information and display it on a sales interface related to the product label.

7. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes the AI-based snack product information processing method as described in any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that: A computer program is stored which can be loaded by a processor and execute the AI-based snack product information processing method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Selling system and method for preventing the sales or warehouse-out of commodities about to pass the shelf-time or already out of the shelf-time

    CN107239958A

  • Commodity expiry reminding method and system

    CN112200589A

  • Commodity shelf life monitoring method and system and electronic equipment

    CN115392922A

  • Article settlement cashier system based on AI intelligent identification

    CN117315863A

  • Commodity shelf life intelligent identification and reminding method and system

    CN117690136A