A method and apparatus for autonomous operation of a retail terminal

By acquiring weather and customer flow data locally at retail terminals to predict sales and automatically generate discount and price adjustment plans, the problem of unmanned retail terminal operation relying on manual management is solved, achieving efficient closed-loop control and improved operational efficiency.

CN123160212APending Publication Date: 2026-11-24BEIJING YINGZHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611295969.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

The operation of existing unmanned retail terminals relies on manual management, which leads to low efficiency, difficulty in achieving refined management, and problems such as material backlog or insufficient inventory.

Method used

By acquiring weather and customer flow data locally at retail terminals, sales forecasts are made, and discount adjustment plans are automatically generated when deviations exceed the standard. This enables decision-making capabilities to be decentralized and immediate responses to be made. Combined with forecast deviation monitoring and price adjustment execution, a closed-loop control is formed.

Benefits of technology

It improved the timeliness of decision-making in emergency situations, reduced material waste, enhanced operational efficiency, and reduced reliance on manual labor and response delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160212A_ABST
    Figure CN123160212A_ABST
Patent Text Reader

Abstract

This application discloses an autonomous operation method and device for retail terminals, belonging to the field of artificial intelligence and retail equipment technology. By acquiring weather data, customer flow characteristic data, and terminal operation data, sales volume in a first future time period is predicted to obtain a first predicted sales volume. Combined with the first actual sales volume, a first prediction deviation rate is determined. When the first prediction deviation rate is greater than or equal to a preset deviation threshold, the estimated loss cost and estimated discount revenue are determined. When the estimated discount revenue is greater than the estimated loss cost, a discount adjustment plan is generated and executed in a second future time period after authorization. This achieves localized deployment of sales prediction, deviation monitoring, price adjustment decision-making, and terminal execution, enabling the terminal to respond instantly to changes in the on-site micro-environment, improving decision-making timeliness, automatically triggering price adjustments, avoiding response lag and material loss, and avoiding gross profit loss caused by blindly lowering prices by quantifying losses and revenues before adjusting prices, thus improving operational efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of artificial intelligence and retail equipment technology, specifically relating to a method, device, electronic device and storage medium for autonomous operation of a retail terminal. Background Technology

[0002] With the rapid development of artificial intelligence technology, the integration of embodied intelligence with retail terminals is becoming increasingly widespread. Currently, unmanned retail equipment such as unmanned beverage robots, fresh food vending machines, and self-service pre-prepared meal terminals are gradually being deployed on a large scale in shopping malls, office buildings, transportation hubs, and other similar settings. These devices typically use perishable materials such as fresh milk, fresh fruit, and semi-finished pre-prepared meals as their main raw materials. Their rapid inventory turnover and short shelf-life periods place high demands on the timeliness and accuracy of inventory management and sales decisions.

[0003] However, in actual store operations, existing unmanned retail terminals still heavily rely on manual processes for key aspects such as back-end management, inventory checks, sales forecasting, and marketing pricing. This manual-driven operating model is not only inefficient but also makes it difficult to manage the real-time status of each terminal in a refined manner, easily leading to problems such as expired materials or insufficient inventory, thus hindering the improvement of overall operational efficiency. Summary of the Invention

[0004] The purpose of this application is to provide a method and apparatus for the autonomous operation of retail terminals, which can solve the problem that existing retail terminals still rely heavily on manual processes for back-end management, material inventory, sales forecasting, and marketing pricing decisions in actual operation.

[0005] To solve the above-mentioned technical problems, this application is implemented as follows: In a first aspect, embodiments of this application provide a method for the autonomous operation of a retail terminal, the method comprising: Acquire weather data, as well as customer flow characteristics and terminal operation data at retail outlets; Based on the weather data, the passenger flow characteristic data, and the terminal operation data, the sales volume of goods in the retail terminal in a preset first future time period is predicted to obtain the first predicted sales volume. Obtain the first actual sales volume of the product in the first future time period, and determine the first prediction deviation rate based on the first actual sales volume and the first predicted sales volume; If the first prediction deviation rate is greater than or equal to a preset deviation threshold, the inventory data of the retail terminal is determined, and if the shelf life of the remaining materials in the inventory data is less than or equal to a preset shelf life, the estimated loss cost and estimated discount revenue are determined based on the inventory data. If the estimated discount revenue is greater than the estimated loss cost, a discount adjustment plan is generated and pushed to the maintenance personnel's terminal for authorization. If the discount adjustment scheme is authorized, the discount adjustment scheme will be synchronized to the retail terminal so that the retail terminal will implement the discount adjustment scheme in a preset second future time period.

[0006] Optionally, the step of predicting the sales volume of goods in the retail terminal within a first future time period based on the weather data, the passenger flow characteristic data, and the terminal operation data to obtain the first predicted sales volume includes: The baseline predicted sales volume is determined by using a pre-set baseline prediction model based on the weather data, the passenger flow characteristic data, and the terminal operation data. Identify abnormal and sudden information, and determine the sales correction amount through a preset benchmark correction model; wherein, the abnormal and sudden information includes at least one of the following: sudden weather change information, abnormal change in passenger flow information, temporary promotion information, equipment malfunction information, and raw material shortage information; The first predicted sales volume is determined based on the baseline predicted sales volume and the sales volume correction amount.

[0007] Optionally, determining the estimated loss cost and estimated discount revenue based on the inventory data includes: Based on the aforementioned inventory data and the procurement cost of pre-stored materials, the estimated loss cost is determined; Obtain historical sales records, and based on the historical sales records, determine candidate discount prices and the estimated promotional increments corresponding to the candidate discount prices; The estimated discount revenue is determined based on the estimated promotional increase, the candidate discount price, and the variable cost; wherein the variable cost is the unit cost that increases for each additional item sold.

[0008] Optionally, after synchronizing the discount adjustment plan to the retail terminal so that the retail terminal implements the discount adjustment plan in a preset second future time period, the method further includes: Obtain the second predicted sales volume for the second future time period, and based on the second predicted sales volume and the estimated promotional increase, obtain the promotional predicted sales volume; Obtain the second actual sales volume for the second future time period, and determine the second prediction deviation rate based on the second actual sales volume and the promotional predicted sales volume; Based on the second prediction deviation rate, the sales price for a preset third future time period is determined.

[0009] Optionally, it also includes: If the prediction deviation rate is greater than or equal to a preset deviation threshold for a consecutive preset number of future time periods, incremental update training of the benchmark prediction model and the benchmark correction model is triggered.

[0010] Optionally, the step of pushing the discount adjustment plan to the maintenance personnel's terminal for authorization includes: The discount and price adjustment plan will be pushed to the maintenance personnel's terminal; If authorization is obtained within the preset authorization time, it is determined that authorization has been obtained; If authorization is not obtained within the preset authorization time and the discount rate in the discount adjustment scheme does not exceed the preset discount rate threshold, it is determined that authorization has been obtained. If authorization is not obtained within the preset authorization period and the discount exceeds the preset discount threshold, it is determined that authorization has not been obtained, and the current price will be maintained for continued sales.

[0011] Optionally, the product information includes a product ingredient list. After predicting the sales volume of products in the retail terminal within a preset first future time period based on the weather data, the customer flow characteristic data, and the terminal operation data to obtain the first predicted sales volume, the information further includes: Based on the first predicted sales volume and the product material formula table, determine the raw material consumption corresponding to the product; Based on the raw material consumption, a raw material consumption list is determined and pushed to the maintenance personnel's terminal.

[0012] Optionally, it also includes: Based on the discount range in the discount adjustment scheme, the weather data, the inventory data, and the current time period, a marketing script template is determined from the preset script template library, and voice broadcast text is generated by filling slots. Control the retail terminal to play the voice broadcast text and display the voice broadcast text.

[0013] Optionally, acquiring weather data includes: The retail terminal collects real-time weather data and obtains weather forecast data for the first future time period. The weather data is obtained based on the measured weather data and the weather forecast data.

[0014] Optionally, the passenger flow characteristic data includes passenger flow quantity, passenger flow change information, dwell time distribution, and aggregated sentiment distribution; wherein, the aggregated sentiment distribution includes the proportion of positive sentiment, the proportion of calm sentiment, and the proportion of negative sentiment; The terminal operation data includes at least the retail terminal's historical sales volume by time period, current price information, business hours, date information, and product information.

[0015] Secondly, embodiments of this application provide a self-operating device for a retail terminal, the device comprising: The data acquisition module is used to acquire weather data, as well as customer flow characteristics data and terminal operation data of retail terminals; The prediction module is used to predict the sales volume of goods in the retail terminal within a preset first future time period based on the weather data, the passenger flow characteristic data, and the terminal operation data, so as to obtain the first predicted sales volume. The deviation determination module is used to obtain the first actual sales volume of the product in the first future time period, and determine the first prediction deviation rate based on the first actual sales volume and the first predicted sales volume. The cost-benefit calculation module is used to determine the inventory data of the retail terminal when the first prediction deviation rate is greater than or equal to a preset deviation threshold, and to determine the estimated loss cost and estimated discount revenue based on the inventory data when the shelf life of the remaining materials in the inventory data is less than or equal to a preset shelf life. The authorization module is used to generate a discount adjustment plan when the estimated discount revenue is greater than the estimated loss cost, and push the discount adjustment plan to the operation and maintenance personnel's terminal for authorization judgment; The scheme push module is used to synchronize the discount price adjustment scheme to the retail terminal when the discount price adjustment scheme is authorized, so that the retail terminal executes the discount price adjustment scheme in a preset second future time period.

[0016] Thirdly, embodiments of this application provide an electronic device including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0017] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0018] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0019] In this embodiment, by acquiring weather data, customer flow characteristic data of retail terminals, and terminal operation data, the sales volume of goods in the retail terminal within a preset first future time period is predicted to obtain a first predicted sales volume. The first actual sales volume of the goods in the first future time period is then obtained. Based on the first actual sales volume and the first predicted sales volume, a first prediction deviation rate is determined. If the first prediction deviation rate is greater than or equal to a preset deviation threshold, the inventory data of the retail terminal is determined, and the remaining materials in the inventory data have a shelf life less than or equal to a preset shelf life. In this scenario, based on the inventory data, estimated loss costs and estimated discount revenues are determined. If the estimated discount revenue exceeds the estimated loss costs, a discount adjustment plan is generated and pushed to the maintenance personnel's terminal for authorization. If the discount adjustment plan is authorized, it is synchronized to the retail terminal, enabling the retail terminal to execute the discount adjustment plan within a preset second future time period. This allows sales forecasting, deviation monitoring, price adjustment decisions, and terminal execution to be deployed locally at the retail terminal, enabling the terminal to respond instantly to changes in the local micro-environment and effectively improving the timeliness of decision-making in unexpected scenarios. Furthermore, by directly triggering the generation and execution of the price adjustment plan through prediction deviations, a closed-loop control from prediction to execution is formed, avoiding the problems of response lag and high material loss caused by the fragmentation of various links in traditional solutions.

[0020] Furthermore, by making a quantitative comparison between estimated loss costs and estimated discount revenue before implementing price adjustments, the loss of gross profit caused by blindly lowering prices is avoided, thus achieving effective control over the loss of perishable materials and improving the operational efficiency of retail terminals. Attached Figure Description

[0021] To more clearly illustrate the technical solution of this application, the drawings used in the description of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is a flowchart illustrating the steps of a self-operation method for a retail terminal provided in some embodiments of this application; Figure 2 This is a schematic diagram of the architecture of a self-operating system for a retail terminal provided in some embodiments of this application; Figure 3A This is a flowchart of the first part of an overall operation method for a retail terminal provided by some embodiments of this application; Figure 3BThis is a second part of a flowchart illustrating an overall operation method for a retail terminal provided in some embodiments of this application; Figure 3C This is a flowchart of the third part of an overall operation method for a retail terminal provided in some embodiments of this application; Figure 4 This is a structural block diagram of a self-operating device for a retail terminal provided in some embodiments of this application; Figure 5 This is a schematic diagram of the hardware structure of an electronic device provided in some embodiments of this application. Detailed Implementation

[0023] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0024] Currently, some existing technologies attempt to improve the above-mentioned problems through automation. For example, a dynamic pricing system for vending machines based on cloud server scheduling collects sales data in the cloud, runs a pricing algorithm in the cloud, and then sends price adjustment instructions to the terminal for execution. However, this solution still has the following shortcomings: Firstly, decision-making power is centralized in the cloud, with the terminal merely serving as a price execution node. When sudden surges in customer traffic or rapid weather changes occur at the terminal, the data must go through a round-trip process of uploading to the cloud, algorithm calculation, and result distribution, making it difficult to achieve low-latency, real-time responses within seconds. This results in price adjustment decisions lagging behind changes on-site.

[0025] Secondly, this solution only focuses on changes in price figures, and the forecast results are not directly linked to material consumption calculations and replenishment instruction generation. There is a lack of automated connection between sales forecasting and actual material preparation operations, making it impossible to accurately control the input of perishable materials from the source, and the material loss problem remains unresolved.

[0026] Third, the solution only involves sending price data from the cloud to the terminal. Price adjustment decisions and proactive marketing interactions at the terminal are independent of each other, such as dynamic script generation and screen linkage display. It lacks an integrated closed-loop capability of perception, decision-making and execution, which limits the order conversion efficiency in the event of sudden sluggish sales.

[0027] To address the aforementioned issues, this application provides a method for autonomous operation of retail terminals. This method involves acquiring weather data, customer flow characteristics, and terminal operational data locally at the terminal to predict sales volume. When prediction deviations exceed acceptable limits, it calculates estimated loss costs and discount revenue based on inventory data, automatically generating a discount adjustment plan. Upon authorization, the terminal executes this adjustment plan. This method decentralizes decision-making capabilities to the terminal, achieving low-latency closed-loop operation from sales prediction to terminal execution. Furthermore, by monitoring prediction deviations and automatically generating and pushing adjustment plans, it effectively reduces reliance on manual labor and material waste, improving order conversion efficiency in unexpected situations.

[0028] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0029] The following description, in conjunction with the accompanying drawings, details a method for autonomous operation of a retail terminal provided by the embodiments of this application through specific examples and application scenarios.

[0030] Reference Figure 1 This document illustrates a flowchart of the steps in a self-operation method for a retail terminal according to some embodiments of this application, which may specifically include the following steps: Step 101: Obtain weather data, as well as customer flow characteristics data and terminal operation data of retail terminals.

[0031] In step 101, three types of basic data can be obtained first: weather data, passenger flow characteristic data, and terminal operation data, which can be used as the input basis for subsequent sales forecasting.

[0032] In some embodiments of this application, the passenger flow characteristic data includes passenger flow quantity, passenger flow change information, dwell time distribution, and aggregated sentiment distribution; wherein, the aggregated sentiment distribution includes the proportion of positive sentiment, the proportion of calm sentiment, and the proportion of negative sentiment; The terminal operation data includes at least the retail terminal's historical sales volume by time period, current price information, business hours, date information, and product information.

[0033] Specifically, the customer flow characteristic data is generated by the image acquisition equipment of the retail terminal continuously collecting customer flow images during business hours. Then, the distribution of customer flow quantity, dwell time, and aggregated sentiment distribution are extracted according to a preset rolling time window, and the above statistical characteristics are updated every 5 minutes. The preset rolling time window can be the most recent 15 minutes or the most recent 30 minutes. That is, each time statistics are collected, the customer flow data within 15 or 30 minutes before the current moment is taken, and the calculation is recalculated every 5 minutes, thus forming the current customer flow characteristic data that is updated over time.

[0034] The number of customers can be the statistics of the number of customers within the preset rolling time window. The information on changes in the number of customers can reflect the rate of change or trend of change in the number of customers. The distribution of dwell time can reflect the distribution of the time customers spend in front of the terminal. The aggregated emotion distribution can be the non-identifiable statistical features output by the facial emotion feature extraction model, including the proportion of positive emotion, the proportion of calm emotion, and the proportion of negative emotion, which are used to characterize the overall emotional tendency of the customer group, but do not involve any personal identity information.

[0035] It should be added that the original passenger flow images are destroyed immediately after feature extraction is completed and are not transmitted over the network, thereby ensuring the compliance of personal information.

[0036] Historical sales data for different time periods in terminal operation data are used to reflect sales patterns in different time periods. Current price information is used to determine the current selling price of the product. Business hours are used to determine the time range during which the terminal is in operation. Date information includes the day of the week and whether it is a holiday, which is used to reflect periodic sales patterns. Product information can include product type and corresponding product material formula table, namely SKU (Stock Keeping Unit) formula BOM (Bill of Materials) table, which records the types of raw materials corresponding to the product and their single usage.

[0037] In some embodiments of this application, acquiring weather data includes: Sub-step 11: Collect the current weather measurement data through the retail terminal and obtain the weather forecast data for the first future time period.

[0038] In sub-step 11, real-time weather data can be collected using environmental sensors deployed locally at the retail terminal. This real-time weather data reflects the actual weather conditions at the terminal's location. Simultaneously, weather forecast data for the first future time period can be obtained through a weather service interface. This weather forecast data is used to determine future trends in weather conditions such as temperature, precipitation, and wind speed.

[0039] Sub-step 12: Based on the measured weather data and the forecast weather data, obtain the weather data.

[0040] In sub-step 12, since the weather forecast data reflects the climate prediction results of the macro-regional scope, there is a difference between it and the actual microclimate environment of the specific location of the retail terminal. Therefore, it is necessary to use the current weather measurement data to correct the weather forecast data. That is, the weather data is obtained based on the weather measurement data and the weather forecast data so that the weather data in the future period is closer to the actual microclimate conditions of the retail terminal location.

[0041] As an example, the specific method of correction can be to obtain the forecast value corresponding to the current time from the weather forecast data, compare the forecast value with the actual weather data at the current time to determine the forecast error, and then feed the forecast error back to the forecast value for the future time period. That is, add or subtract the forecast error from the forecast value for the future time period to obtain the corrected forecast value.

[0042] For example, if the actual temperature at the current moment is 26℃, and the forecast value for the corresponding moment is 28℃, then the forecast error is -2℃, meaning the forecast value for the current moment is 2℃ higher than the actual temperature. This forecast error of -2℃ can be fed back into the forecast value for the future time period. If the forecast value for the future time period is 30℃, then the corrected forecast value is 30℃ plus -2℃, which is 28℃.

[0043] Through the above method, retail outlets can obtain corrected weather forecast data for future periods, which will then be used as weather data for subsequent sales forecasting. For current weather data, actual weather measurements will be used without the aforementioned corrections.

[0044] Step 102: Based on the weather data, the passenger flow characteristic data, and the terminal operation data, predict the sales volume of goods in the retail terminal within a preset first future time period to obtain the first predicted sales volume.

[0045] In step 102, based on weather data, passenger flow characteristic data, and terminal operation data, a pre-set prediction model can be used to predict the sales volume of goods in the retail terminal within a preset first future time period, thereby obtaining the first predicted sales volume.

[0046] In some embodiments of this application, the step of predicting the sales volume of goods in the retail terminal within a first future time period based on the weather data, the passenger flow characteristic data, and the terminal operation data to obtain a first predicted sales volume includes: Sub-step 21: Using a preset benchmark prediction model, determine the benchmark predicted sales volume based on the weather data, the passenger flow characteristic data, and the terminal operation data.

[0047] In sub-step 21, the baseline predicted sales volume represents the expected sales value under normal conditions without any unexpected factors. A pre-built baseline prediction model can be used, taking into account structured information including historical sales volume by time period, product type, date information, business hours, weather data, customer traffic, aggregated sentiment characteristics, and current price information, to output the baseline predicted sales volume N_base for the first future time period.

[0048] As an example, the pre-defined baseline prediction model could be the XGBoost model. XGBoost is an ensemble learning algorithm based on a gradient boosting framework. It successively builds multiple decision trees and sums the predictions from each tree to obtain the final prediction. This model exhibits excellent performance in processing structured tabular data, automatically learns the non-linear relationships between features, and incorporates a regularization mechanism to prevent overfitting. It boasts fast training speed and high prediction accuracy, and is widely used in regression and classification scenarios such as sales forecasting and risk control.

[0049] Sub-step 22: Determine abnormal and sudden information, and determine the sales correction amount through a preset benchmark correction model; wherein, the abnormal and sudden information includes at least one of the following: sudden weather change information, abnormal change in passenger flow information, temporary promotion information, equipment abnormality information, and raw material shortage information.

[0050] In sub-step 22, abnormal and sudden information can refer to event information that may cause actual sales to deviate from normal sales patterns. Among them, weather change information can refer to sudden changes between actual weather and forecast weather, abnormal change information in customer flow refers to short-term abnormal changes in the number of customers or the distribution of emotions, temporary promotion information refers to currently effective temporary promotions or price adjustments, equipment abnormal information refers to equipment that is temporarily unavailable, and raw material shortage information refers to temporary shortage of raw materials.

[0051] The baseline correction model can employ an LSTM (Long Short-Term Memory) model. LSTM is a deep learning model suitable for processing time series data. It contains memory units and gating mechanisms, enabling it to capture the dynamic changes in data over time. This model is used to correct the residual of the baseline predicted sales. Specifically, by processing recent continuous time series historical sales records, it identifies the deviation of sales from the normal fluctuation range under corresponding abnormal sudden information, thereby determining the amount of sales change corresponding to the abnormal sudden information. This change is then output as the sales correction amount ΔN.

[0052] For example, when a sudden weather event occurs (such as a heavy rainstorm), the LSTM model analyzes recent continuous time series sales records to identify that sales in recent time windows due to the weather change are significantly lower than sales under normal weather conditions. This decrease is then identified as the sales correction ΔN, which is a negative value. Conversely, when a temporary promotion occurs, the LSTM model analyzes recent continuous time series sales records to identify that sales in recent time windows due to the promotion are significantly higher than sales under normal prices. This increase is identified as the sales correction ΔN, which is a positive value.

[0053] Using the above method, the LSTM model output can reflect the correction amount ΔN, which reflects the direction and degree of the impact of sudden factors on sales.

[0054] Sub-step 23: Determine the first predicted sales volume based on the benchmark predicted sales volume and the sales volume correction amount.

[0055] In sub-step 23, the first predicted sales volume N = N_base + ΔN can be determined based on the baseline predicted sales volume N_base and the sales volume correction amount ΔN. The final first predicted sales volume takes into account both the sales patterns under normal conditions and the impact of unexpected factors on sales volume, thereby improving the accuracy of the prediction.

[0056] In addition, the first future time period can be a configurable business window, specifically the next business hour, the lunch peak period, the evening peak period, or the remaining business hours from the time this replenishment is completed to the time of the next replenishment appointment. The replenishment operation period is marked as a non-sale period or a low confidence period and is not included in the sales forecast of the normal sales window.

[0057] In some embodiments of this application, the product information includes a product ingredient list. After predicting the sales volume of products in the retail terminal within a preset first future time period based on the weather data, the customer flow characteristic data, and the terminal operation data to obtain the first predicted sales volume, the method further includes: Sub-step 31: Determine the raw material consumption of the product based on the first predicted sales volume and the product material formula table.

[0058] In sub-step 31, the raw material consumption can be determined based on the first predicted sales volume N and the corresponding material formula table for the product. The first predicted sales volume N is not a prediction for a single product in the retail terminal. The raw material consumption of the product is obtained by multiplying N by the amount of material used per cup of the product. Therefore, predictions can be made for multiple products in the retail terminal. Based on the corresponding predicted sales volume and the corresponding material formula table for each product, the raw material consumption of each product can be obtained.

[0059] Sub-step 32: Based on the raw material consumption, determine the raw material consumption list and push the raw material consumption list to the maintenance personnel's terminal.

[0060] In sub-step 32, a raw material consumption list expressed in physical units of measurement can be determined based on the raw material consumption of each commodity, and the raw material consumption list can be pushed to the operation and maintenance personnel's terminal so that the operation and maintenance personnel can make precise preparations according to the list and control the input of high-value perishable materials from the source.

[0061] It should be noted that before the next replenishment operation period, the maintenance personnel's terminal may receive multiple raw material consumption lists for future time periods. In this case, multiple raw material consumption lists can be combined to determine the materials to be prepared.

[0062] Step 103: Obtain the first actual sales volume of the product in the first future time period, and determine the first prediction deviation rate based on the first actual sales volume and the first predicted sales volume.

[0063] In step 103, after the first future time period ends, the retail terminal obtains the actual sales quantity of goods within the first future time period, i.e., the first actual sales volume. Then, the retail terminal compares the first actual sales volume with the first predicted sales volume and calculates the first prediction deviation rate.

[0064] Specifically, the prediction deviation rate is calculated as follows: First prediction deviation rate = (First predicted sales volume - First actual sales volume) / First predicted sales volume × 100%. The prediction deviation rate quantifies the degree of deviation between the predicted and actual values, serving as the basis for determining whether a price adjustment plan should be triggered.

[0065] Step 104: If the first prediction deviation rate is greater than or equal to a preset deviation threshold, determine the inventory data of the retail terminal, and if the remaining shelf life of the materials in the inventory data is less than or equal to a preset shelf life, determine the estimated loss cost and estimated discount revenue based on the inventory data.

[0066] In step 104, if the first prediction deviation rate is greater than or equal to the preset deviation threshold, it indicates that the actual sales volume deviates significantly from the predicted value, and there may be a risk of material backlog. At this time, the current inventory data can be determined, and the shelf life of the remaining materials in the inventory data can be determined. When the shelf life is less than or equal to the preset shelf life, the estimated loss cost and estimated discount revenue are calculated based on the inventory data.

[0067] As an example, the preset deviation threshold can be 15%, and the preset shelf life can be 8 hours.

[0068] In some embodiments of this application, determining the estimated loss cost and estimated discount revenue based on the inventory data includes: Sub-step 41: Determine the estimated loss cost based on the inventory data and the pre-stored material procurement cost.

[0069] In sub-step 41, the estimated loss cost can be determined based on the remaining material quantity in the inventory data and the pre-stored material procurement cost. The estimated loss cost is equal to the remaining material quantity multiplied by the unit procurement cost, reflecting the economic loss caused by the expiration and disposal of the remaining perishable materials if no promotional measures are taken.

[0070] Sub-step 42: Obtain historical sales records, and based on the historical sales records, determine candidate discount prices and the estimated promotional increments corresponding to the candidate discount prices.

[0071] In sub-step 42, historical sales records can include historical sales data for the same product, during the same period, under normal circumstances and under different abnormal and sudden information. Then, through the LSTM model, the predicted sales volume increment under different discount rates and different sales prices under temporary promotions can be obtained, thereby determining each candidate discount price and the estimated promotion increment corresponding to each candidate discount price, so as to reflect the additional sales volume expected to be increased under the candidate discount price.

[0072] Sub-step 43: Determine the estimated discount revenue based on the estimated promotional increment, the candidate discount price, and the variable cost; wherein the variable cost is the unit cost that increases for each additional item sold.

[0073] In sub-step 43, the estimated promotional increment corresponding to each candidate discount price, each candidate discount price, and variable costs are used to determine the estimated discount revenue corresponding to each candidate discount price. Estimated discount revenue = estimated promotional increment * (candidate discount price - variable costs). Among them, variable costs are the unit cost increase for each additional item sold, which may include raw material costs, packaging material costs, production consumables, and platform service fees directly related to the order, but excludes fixed costs such as equipment depreciation and site rental.

[0074] The estimated discount revenue reflects the additional gross profit expected from promotions at the candidate discount price, and is used to compare with the estimated loss costs to determine the economic rationale for the price adjustment. Furthermore, to protect the gross profit margin, the candidate discount price is not less than 1.05 times the aforementioned variable costs.

[0075] At the same time, the candidate discount price shall not be less than 1.05 times the variable cost in order to protect the gross profit margin.

[0076] Step 105: If the estimated discount revenue is greater than the estimated loss cost, generate a discount adjustment plan and push the discount adjustment plan to the maintenance personnel's terminal for authorization judgment.

[0077] In step 105, multiple candidate discount prices can be substituted into the calculation to obtain the estimated discount revenue corresponding to each candidate discount price. The estimated discount revenue corresponding to each candidate discount price can be compared with the estimated loss cost in ascending order of discount magnitude. The first candidate discount price that satisfies the condition that the estimated discount revenue is greater than the estimated loss cost is selected as the final discount adjustment plan. Alternatively, if multiple candidate discount prices satisfy the condition that the estimated discount revenue is greater than the estimated loss cost, the one with the largest estimated discount revenue is selected as the final discount adjustment plan. If none of the candidate discount prices meet the above conditions, no discount adjustment plan is generated, and the current price is maintained for continued sales.

[0078] Then, once a discount adjustment plan is generated, it can be pushed to the operations and maintenance personnel's terminal for authorization and verification. If the discount adjustment plan indicates that the revenue from clearing remaining inventory through discount promotions outweighs the material loss costs resulting from inaction, then the price adjustment is economically justified.

[0079] In some embodiments of this application, the step of pushing the discount adjustment scheme to the maintenance personnel's terminal for authorization determination includes: The discount and price adjustment plan will be pushed to the maintenance personnel's terminal; If authorization is obtained within the preset authorization time, it is determined that authorization has been obtained; If authorization is not obtained within the preset authorization time and the discount rate in the discount adjustment scheme does not exceed the preset discount rate threshold, it is determined that authorization has been obtained. If authorization is not obtained within the preset authorization period and the discount exceeds the preset discount threshold, it is determined that authorization has not been obtained, and the current price will be maintained for continued sales.

[0080] Specifically, the discount adjustment plan can be pushed to the operations and maintenance personnel's terminal, awaiting their authorization decision. If the operations and maintenance personnel confirm authorization through the terminal within the preset authorization time, it is considered authorized, and the retail terminal can continue to implement the price adjustment plan. If the operations and maintenance personnel do not respond within the preset authorization time, but the discount in the discount adjustment plan does not exceed the preset discount threshold, such as 10%, the system automatically determines that authorization has been obtained. That is, small discounts can be automatically executed, avoiding missing promotional opportunities due to waiting for authorization.

[0081] If the maintenance personnel do not respond within the preset authorized time and the discount exceeds the preset discount threshold, the system will determine that the authorization has not been obtained, maintain the current price and continue to sell, and wait for manual intervention.

[0082] As an example, the preset authorization time can be thirty minutes. This authorization mechanism ensures human supervision while avoiding response delays caused by authorization waiting through a small discount automatic execution strategy.

[0083] Step 106: If the discount adjustment scheme is authorized, synchronize the discount adjustment scheme to the retail terminal so that the retail terminal executes the discount adjustment scheme in a preset second future time period.

[0084] In step 106, once the discount adjustment scheme is authorized, the discounted prices in the scheme can be synchronized to various sales entry points and back-end systems of the retail terminal. Sales entry points may include the product menu on the terminal itself, on-screen price tags, digital human display interface, user-side mini-programs or QR code ordering pages, and third-party order platforms connected to the retail terminal. After synchronization, each entry point uses the same effective price for the same product and records the price version number and effective time.

[0085] In this way, retail outlets can sell at the discounted price in the pre-set second future time period after the first future time period, i.e., implement the discount price adjustment plan.

[0086] In some embodiments of this application, it also includes: Sub-step 51: Based on the discount range in the discount adjustment scheme, the weather data, the inventory data, and the current time period, determine the marketing script template from the preset script template library, and generate the voice broadcast text by filling the slots.

[0087] In sub-step 51, marketing script templates can be determined from the preset script template library based on the discount price in the discount adjustment plan, weather data, inventory data and the current time period, and voice broadcast text can be generated by filling slots.

[0088] Slot filling refers to filling specific variables such as product type, discount rate, weather conditions, and inventory data into preset slots in a marketing script template to generate a complete broadcast script, i.e., voice broadcast text.

[0089] Sub-step 52: Control the retail terminal to play the voice broadcast text and display the voice broadcast text.

[0090] In sub-step 52, the digital human interaction module of the retail terminal is controlled to play the voice broadcast text and simultaneously display the corresponding promotional information on the screen to attract customers to buy and improve the promotional effect.

[0091] In some embodiments of this application, after synchronizing the discount adjustment scheme to the retail terminal so that the retail terminal executes the discount adjustment scheme in a preset second future time period, the method further includes: Step 107: Obtain the second predicted sales volume for the second future time period, and obtain the promotional predicted sales volume based on the second predicted sales volume and the estimated promotional increment.

[0092] In step 107, after the discount adjustment plan is executed, that is, after the end of the second future time period, the second predicted sales volume for the second future time period before the start of the second future time period can be obtained. The second predicted sales volume is the normal predicted value under the condition of no temporary promotion information (i.e. no abnormal sudden information).

[0093] Then, based on the second projected sales volume and the estimated promotional increase, the promotional projected sales volume can be obtained; that is, the adjusted projected sales volume equals the second projected sales volume plus the estimated promotional increase. This promotional projected sales volume represents the expected sales quantity under promotional conditions.

[0094] Step 108: Obtain the second actual sales volume for the second future time period, and determine the second prediction deviation rate based on the second actual sales volume and the promotional predicted sales volume.

[0095] In step 108, after the second future time period ends, the actual sales quantity of the goods during the second future time period can be obtained, i.e., the second actual sales volume. Then, the second actual sales volume can be compared with the promotional forecast sales volume to calculate the second forecast deviation rate. This second forecast deviation rate is used to assess whether the sales volume under the promotional status has met expectations.

[0096] Step 109: Based on the second prediction deviation rate, determine the sales price for the preset third future time period.

[0097] In step 109, the retail terminal determines the sales price for a preset third future time period based on the second prediction deviation rate.

[0098] Specifically, if the second prediction deviation rate is still greater than or equal to the preset deviation threshold, it indicates that the promotion effect has not met expectations or that inventory pressure still exists. The retail terminal can re-trigger the execution of steps 104 to 106, that is, redetermine the estimated loss cost and the estimated discount revenue, generate a new discount price adjustment plan, and execute it in the third future time period after authorization, thereby achieving continuous price optimization. If not authorized, the current discount price adjustment plan will continue to be used.

[0099] It is understandable that the first predicted sales volume, the second predicted sales volume, the first prediction deviation rate, the second prediction deviation rate, the discount adjustment scheme, and the subsequent incremental update training all apply to the same product within the retail terminal. When the retail terminal includes multiple products, the same steps can be performed independently for each product to obtain its own predicted sales volume and discount adjustment scheme for each product.

[0100] In some embodiments of this application, it also includes: Step 110: If the prediction deviation rate of a consecutive preset number of future time periods is greater than or equal to a preset deviation threshold, trigger incremental update training of the benchmark prediction model and the benchmark correction model.

[0101] In step 110, when the prediction deviation rate for a consecutive preset number of future time periods is greater than or equal to a preset deviation threshold, i.e., when the number of times the prediction deviation rate exceeds the preset number, incremental update training of the benchmark prediction model and the benchmark correction model is triggered immediately. The preset number can be three consecutive comparable sales windows. A comparable sales window refers to a time period with the same price status, which can include normal sales status (sales status without abnormal sudden information) and promotional status at the same price.

[0102] Incremental update training refers to using the current baseline prediction model and baseline correction model as initial versions, and conducting small-batch training with valid sales samples from the most recent time period, rather than training from scratch. Training samples need to be filtered, specifically based on equipment self-check status, external event labels, and statistical outlier rules to identify and filter extreme abnormal passenger flow samples. Extreme abnormal passenger flow samples can include passenger flow statistical anomalies caused by image acquisition equipment obstruction or malfunction, passenger flow data during temporary equipment relocation, maintenance, or downtime, non-routine passenger flow aggregation or clearing data caused by nearby external events, and abnormal passenger flow detection data that does not match actual order volumes.

[0103] After training, the prediction error of the updated model is compared with that of the currently deployed model on the retained validation set. If the increase in the validation error of the updated model compared to the validation error of the currently deployed model reaches a preset rollback threshold, the model is rolled back to the current initial version; otherwise, the updated model is deployed for prediction in subsequent future time periods. The preset rollback threshold can be a 5% increase in the mean absolute percentage error of the validation set compared to the currently deployed model.

[0104] In addition, incremental update training can be performed automatically during daily non-business hours (i.e., when the store is closed) to ensure that the model responds to environmental changes in a timely manner.

[0105] It should be added that the autonomous operation method in this application is accomplished by deploying an AI Agent (Artificial Intelligence Agent) at the retail terminal. The AI ​​Agent can directly connect to the retail terminal's image acquisition equipment, environmental sensors, local database, and network interface to obtain customer flow characteristic data, weather data, and terminal operation data. Based on the above data, it can complete decision-making tasks such as sales forecasting, deviation monitoring, and generation and execution of discount adjustment schemes locally at the terminal, without having to transmit the collected raw data to the cloud for processing, thereby reducing data transmission latency and improving decision-making timeliness.

[0106] Meanwhile, the AI ​​Agent can also be deployed on edge servers, allowing a single edge server to manage multiple retail terminals within the same business district, enabling collaborative management of multiple retail terminals.

[0107] The solution presented in this application has undergone continuous testing on hundreds of commercial retail terminals (including unmanned beverage robots) for three months. Backend monitoring data shows that the local privacy desensitization module operates stably without any leakage of original images. The accuracy of the AI ​​Agent prediction model has steadily improved through incremental training updates. In multiple rounds of tests during sudden severe weather, both the dynamic pricing and digital human dialogue generation modules were able to respond within 5 seconds, verifying the reliability of the solution.

[0108] In this embodiment, by acquiring weather data, customer flow characteristic data of retail terminals, and terminal operation data, the sales volume of goods in the retail terminal within a preset first future time period is predicted to obtain a first predicted sales volume. The first actual sales volume of the goods in the first future time period is then obtained. Based on the first actual sales volume and the first predicted sales volume, a first prediction deviation rate is determined. If the first prediction deviation rate is greater than or equal to a preset deviation threshold, the inventory data of the retail terminal is determined, and the remaining materials in the inventory data have a shelf life less than or equal to a preset shelf life. In this scenario, based on the inventory data, estimated loss costs and estimated discount revenues are determined. If the estimated discount revenue exceeds the estimated loss costs, a discount adjustment plan is generated and pushed to the maintenance personnel's terminal for authorization. If the discount adjustment plan is authorized, it is synchronized to the retail terminal, enabling the retail terminal to execute the discount adjustment plan within a preset second future time period. This allows sales forecasting, deviation monitoring, price adjustment decisions, and terminal execution to be deployed locally at the retail terminal, enabling the terminal to respond instantly to changes in the local micro-environment and effectively improving the timeliness of decision-making in unexpected scenarios. Furthermore, by directly triggering the generation and execution of the price adjustment plan through prediction deviations, a closed-loop control from prediction to execution is formed, avoiding the problems of response lag and high material loss caused by the fragmentation of various links in traditional solutions.

[0109] Furthermore, by making a quantitative comparison between estimated loss costs and estimated discount revenue before implementing price adjustments, the loss of gross profit caused by blindly lowering prices is avoided, thus achieving effective control over the loss of perishable materials and improving the operational efficiency of retail terminals.

[0110] As an example, in practical applications, the architecture of a self-operating system for a retail terminal in this application can be as follows: Figure 2 As shown, the retail terminal is equipped with an AI Agent, which connects to both the external input layer and the embodied execution layer. The AI ​​Agent also includes built-in modules for sales forecasting, intelligent inventory management, deviation monitoring, and dynamic pricing. The external input layer is used to acquire multimodal perception data, including customer flow images captured by customer flow cameras (i.e., image acquisition devices), weather and time-of-day data collected by environmental sensors, and historical sales and real-time inventory data read from a local database.

[0111] Passenger flow images are first processed by the privacy desensitization module of the local NPU (Neural Processing Unit) to de-identify faces, extracting only the number of people and emotional features, and the original images are destroyed immediately. Data acquired from the external input layer is transmitted to the AI ​​Agent, where the sales prediction module performs multi-factor sales prediction using the XGBoost baseline prediction model and the LSTM baseline correction model, outputting the predicted sales volume. The intelligent inventory preparation module performs formula conversion based on the predicted sales volume and the product material formula table, generating replenishment instructions in physical units of measurement (i.e., including a raw material consumption list), which are pushed to the maintenance personnel's terminal for material replenishment. The deviation monitoring module triggers a risk assessment when the deviation rate between the actual sales volume and the predicted sales volume reaches a preset deviation threshold. The dynamic pricing module quantifies the inventory loss risk and generates the optimal discount price. The generated discount adjustment plan is pushed to the manual authorization node, where operations and maintenance personnel can confirm or reject it with one click. After authorization, the discount adjustment plan is synchronized to the execution layer, where the material replenishment module pushes replenishment instructions to the operations and maintenance personnel's terminals. The digital human interaction module automatically updates the price display and provides voice announcements and screen displays to attract users to place orders. After a user places an order, the physical production equipment completes the production and delivery of the goods. At the same time, actual sales and conversion data are written back to the historical database through the data feedback layer for continuous optimization of the predictive model.

[0112] Reference Figure 3A , Figure 3B as well as Figure 3C The diagram illustrates a first part, a second part, and a third part of a flowchart of an overall operation method for a retail terminal provided by some embodiments of this application, which may specifically include the following steps: 1. After the retail terminal starts its operation cycle, it collects customer flow images through image acquisition equipment, obtains real-time weather data through environmental sensors, and reads historical orders and material consumption records (i.e., historical sales data) through a local database.

[0113] 2. The collected passenger flow images are processed locally on the terminal to remove privacy information, and the de-identified human image and emotion feature vectors are extracted. The original images are destroyed in local memory immediately and are not transmitted over the network.

[0114] 3. Input the desensitized passenger flow characteristics, weather data, time period information and historical sales data into the preset XGBoost baseline prediction model and LSTM baseline correction model to perform multi-factor sales prediction and output the predicted sales volume N cups, accurate to the single digit.

[0115] 4. Based on the material formula table for each product, multiply the predicted sales volume N by the material consumption per cup to calculate the precise consumption of raw materials for each product and obtain the physical quantity of material requirements.

[0116] 5. Based on the raw material consumption, generate a replenishment instruction list (i.e., raw material consumption list) expressed in physical units of measurement and push it to the maintenance personnel's terminal.

[0117] 6. After the first future time period ends, obtain the actual sales for that time period, compare the actual sales with the predicted value every hour, and calculate the deviation rate = (predicted - actual) / predicted × 100%.

[0118] 7. When the deviation rate is greater than or equal to 15% and the remaining shelf life of the material is less than or equal to 8 hours, a risk assessment is triggered; otherwise, the current price is maintained and sales continue, and a risk log is recorded.

[0119] 8. Calculate loss cost and discount revenue, where loss cost = remaining material quantity × unit purchase cost, and discount revenue = estimated promotional increase × (discount price) Variable costs).

[0120] 9. When the discount revenue exceeds the loss cost, generate a price adjustment plan; otherwise, maintain the current price and continue selling, and record the risk log.

[0121] 10. Based on the constraint that the discount price is no less than 1.05 times the variable cost, generate the optimal discount price and output the recommended discount price and the corresponding estimated promotion increment.

[0122] 11. Combine weather data, discount rates, remaining inventory, and other information to dynamically generate voice broadcast text from a pre-set script template library.

[0123] 12. Push the price adjustment plan and corresponding wording to the maintenance personnel's terminal for authorization, and wait for one-click confirmation. The preset authorization time can be 30 minutes. If the timeout is exceeded, the fallback strategy will be triggered.

[0124] 13. After obtaining authorization, the discounted price will be updated synchronously to the retail terminal screen, user mini-program and third-party order platform.

[0125] 14. The digital human interaction module of the retail terminal plays the spliced ​​voice broadcast text, and the discount information is displayed on the screen simultaneously.

[0126] 15. After the user places an order, the physical execution equipment completes the production and delivery of the goods.

[0127] 16. Write actual sales, conversion rates, material consumption, and other data back to the historical database to trigger incremental model update training, including daily automatic training or immediate training when the deviation rate exceeds the limit three times consecutively. Filter out abnormal samples before training, and automatically roll back to the previous stable version if the deviation is too large after the update. This operational cycle is complete. In this embodiment, by acquiring weather data, customer flow characteristic data of retail terminals, and terminal operation data, the sales volume of goods in the retail terminal within a preset first future time period is predicted to obtain a first predicted sales volume. The first actual sales volume of the goods in the first future time period is then obtained. Based on the first actual sales volume and the first predicted sales volume, a first prediction deviation rate is determined. If the first prediction deviation rate is greater than or equal to a preset deviation threshold, the inventory data of the retail terminal is determined, and the remaining materials in the inventory data have a shelf life less than or equal to a preset shelf life. In this scenario, based on the inventory data, estimated loss costs and estimated discount revenues are determined. If the estimated discount revenue exceeds the estimated loss costs, a discount adjustment plan is generated and pushed to the maintenance personnel's terminal for authorization. If the discount adjustment plan is authorized, it is synchronized to the retail terminal, enabling the retail terminal to execute the discount adjustment plan within a preset second future time period. This allows sales forecasting, deviation monitoring, price adjustment decisions, and terminal execution to be deployed locally at the retail terminal, enabling the terminal to respond instantly to changes in the local micro-environment and effectively improving the timeliness of decision-making in unexpected scenarios. Furthermore, by directly triggering the generation and execution of the price adjustment plan through prediction deviations, a closed-loop control from prediction to execution is formed, avoiding the problems of response lag and high material loss caused by the fragmentation of various links in traditional solutions.

[0128] Furthermore, by making a quantitative comparison between estimated loss costs and estimated discount revenue before implementing price adjustments, the loss of gross profit caused by blindly lowering prices is avoided, thus achieving effective control over the loss of perishable materials and improving the operational efficiency of retail terminals.

[0129] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this application.

[0130] Reference Figure 4 The diagram illustrates the structure of a self-operating device for a retail terminal according to some embodiments of this application, which may specifically include the following modules: The data acquisition module 401 is used to acquire weather data, as well as customer flow characteristic data and terminal operation data of retail terminals; Prediction module 402 is used to predict the sales volume of goods in the retail terminal within a preset first future time period based on the weather data, the passenger flow characteristic data and the terminal operation data, and obtain the first predicted sales volume. The deviation determination module 403 is used to obtain the first actual sales volume of the product in the first future time period, and determine the first prediction deviation rate based on the first actual sales volume and the first predicted sales volume. The cost-benefit calculation module 404 is used to determine the inventory data of the retail terminal when the first prediction deviation rate is greater than or equal to a preset deviation threshold, and to determine the estimated loss cost and estimated discount revenue based on the inventory data when the shelf life of the remaining materials in the inventory data is less than or equal to a preset shelf life. Authorization module 405 is used to generate a discount adjustment plan when the estimated discount revenue is greater than the estimated loss cost, and push the discount adjustment plan to the operation and maintenance personnel terminal for authorization judgment; The scheme push module 406 is used to synchronize the discount price adjustment scheme to the retail terminal when the discount price adjustment scheme is authorized, so that the retail terminal executes the discount price adjustment scheme in a preset second future time period.

[0131] In one embodiment of this application, the prediction module 402 includes: The benchmark prediction submodule is used to determine the benchmark predicted sales volume based on the weather data, the passenger flow characteristic data, and the terminal operation data using a preset benchmark prediction model. The correction submodule is used to determine abnormal and sudden information and to determine the sales correction amount through a preset benchmark correction model; wherein, the abnormal and sudden information includes at least one of the following: sudden weather change information, abnormal change in passenger flow information, temporary promotion information, equipment malfunction information, and raw material shortage information; The predictor is used to determine the first predicted sales volume based on the baseline predicted sales volume and the sales volume correction amount.

[0132] In one embodiment of this application, the cost-benefit calculation module 404 includes: The loss determination submodule is used to determine the estimated loss cost based on the inventory data and the pre-stored material procurement cost. The incremental determination submodule is used to obtain historical sales records and, based on the historical sales records, determine candidate discount prices and the estimated promotional increments corresponding to the candidate discount prices; The revenue determination submodule is used to determine the estimated discount revenue based on the estimated promotional increment, the candidate discount price, and the variable cost; wherein the variable cost is the unit cost that increases for each additional item sold.

[0133] In one embodiment of this application, after synchronizing the discount adjustment scheme to the retail terminal so that the retail terminal executes the discount adjustment scheme in a preset second future time period, the method further includes: The promotion forecasting module is used to obtain the second predicted sales volume for the second future time period, and to obtain the promotion forecast sales volume based on the second predicted sales volume and the estimated promotion increment. The second deviation rate prediction module is used to obtain the second actual sales volume for the second future time period, and determine the second prediction deviation rate based on the second actual sales volume and the promotional predicted sales volume. The selling price determination module is used to determine the selling price for a preset third future time period based on the second prediction deviation rate.

[0134] In one embodiment of this application, it further includes: The incremental update module is used to trigger incremental update training of the benchmark prediction model and the benchmark correction model when the prediction deviation rate is greater than or equal to a preset deviation threshold for a consecutive preset number of future time periods.

[0135] In one embodiment of this application, the authorization module 405 includes: The push submodule is used to push the discount price adjustment plan to the terminal of the operation and maintenance personnel; The first authorization submodule is used to determine whether authorization has been obtained if authorization is obtained within the preset authorization time. The second authorization submodule is used to determine that authorization has been obtained if authorization is not obtained within the preset authorization time and the discount range in the discount adjustment scheme does not exceed the preset discount range threshold. The rejection submodule is used to determine that authorization has not been obtained if authorization is not obtained within a preset authorization time and the discount exceeds a preset discount threshold, and to maintain the current price to continue selling.

[0136] In one embodiment of this application, the product information includes a product ingredient list. After predicting the sales volume of products in the retail terminal within a preset first future time period based on the weather data, the customer flow characteristic data, and the terminal operation data to obtain the first predicted sales volume, the method further includes: The consumption determination module is used to determine the raw material consumption of the product based on the first predicted sales volume and the product material formula table. The consumption push module is used to determine the raw material consumption list based on the raw material consumption amount and push the raw material consumption list to the maintenance personnel's terminal.

[0137] In one embodiment of this application, it further includes: The sales module is used to determine a marketing script template from a preset script template library based on the discount range in the discount adjustment scheme, the weather data, the inventory data, and the current time period, and generate voice broadcast text by filling slots. The broadcast display module is used to control the retail terminal to play the voice broadcast text and display the voice broadcast text.

[0138] In one embodiment of this application, the data acquisition module 401 includes: The data acquisition submodule is used to collect the current weather measurement data through the retail terminal and obtain the weather forecast data for the first future time period; The weather correction submodule is used to obtain the weather data based on the measured weather data and the weather forecast data.

[0139] In one embodiment of this application, the passenger flow characteristic data includes passenger flow quantity, passenger flow change information, dwell time distribution, and aggregated sentiment distribution; wherein, the aggregated sentiment distribution includes the proportion of positive sentiment, the proportion of calm sentiment, and the proportion of negative sentiment; The terminal operation data includes at least the retail terminal's historical sales volume by time period, current price information, business hours, date information, and product information.

[0140] The self-operating device for a retail terminal in this application embodiment can be a device, or a component, integrated circuit, or chip within the terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network-attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not impose specific limitations.

[0141] The self-operating device for a retail terminal in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.

[0142] The autonomous operation device for a retail terminal provided in this application embodiment can achieve... Figure 1 The various processes of a self-operation method for a retail terminal, as described in the method embodiments, will not be repeated here to avoid duplication.

[0143] In this embodiment, by acquiring weather data, customer flow characteristic data of retail terminals, and terminal operation data, the sales volume of goods in the retail terminal within a preset first future time period is predicted to obtain a first predicted sales volume. The first actual sales volume of the goods in the first future time period is then obtained. Based on the first actual sales volume and the first predicted sales volume, a first prediction deviation rate is determined. If the first prediction deviation rate is greater than or equal to a preset deviation threshold, the inventory data of the retail terminal is determined, and the remaining materials in the inventory data have a shelf life less than or equal to a preset shelf life. In this scenario, based on the inventory data, estimated loss costs and estimated discount revenues are determined. If the estimated discount revenue exceeds the estimated loss costs, a discount adjustment plan is generated and pushed to the maintenance personnel's terminal for authorization. If the discount adjustment plan is authorized, it is synchronized to the retail terminal, enabling the retail terminal to execute the discount adjustment plan within a preset second future time period. This allows sales forecasting, deviation monitoring, price adjustment decisions, and terminal execution to be deployed locally at the retail terminal, enabling the terminal to respond instantly to changes in the local micro-environment and effectively improving the timeliness of decision-making in unexpected scenarios. Furthermore, by directly triggering the generation and execution of the price adjustment plan through prediction deviations, a closed-loop control from prediction to execution is formed, avoiding the problems of response lag and high material loss caused by the fragmentation of various links in traditional solutions.

[0144] Furthermore, by making a quantitative comparison between estimated loss costs and estimated discount revenue before implementing price adjustments, the loss of gross profit caused by blindly lowering prices is avoided, thus achieving effective control over the loss of perishable materials and improving the operational efficiency of retail terminals.

[0145] Optionally, this application embodiment also provides an electronic device, including a processor 510, a memory 509, and a program or instructions stored in the memory 509 and executable on the processor 510. When the program or instructions are executed by the processor 510, they implement the various processes of the above-described autonomous operation method embodiment of the retail terminal and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0146] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0147] Figure 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application. The electronic device 500 includes, but is not limited to, components such as: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510. The user input unit 507 includes a touch panel 5071 and other input devices 5072; the display unit 506 includes a display panel 5061; and the input unit includes a graphics processor 5041 and a microphone 5042.

[0148] Those skilled in the art will understand that the electronic device 500 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 510 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 5 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here. This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement various processes of the autonomous operation method embodiment of the retail terminal and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0149] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0150] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described autonomous operation method embodiment for retail terminals and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0151] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0152] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0153] The passenger flow image information involved in this application (including but not limited to passenger flow quantity, facial emotion features, etc.) will be anonymized for privacy, and will not be used for identity recognition, personal trajectory generation, or saving of facial images and personal emotion profiles. The collection, use and processing of related data must comply with the relevant laws, regulations and standards of relevant countries and regions. Passenger flow image information will be destroyed in local memory immediately and will not be transmitted over the network to ensure the compliance of personal information.

[0154] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0155] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for the autonomous operation of a retail terminal, characterized in that, The method includes: Acquire weather data, as well as customer flow characteristics and terminal operation data at retail outlets; Based on the weather data, the passenger flow characteristic data, and the terminal operation data, the sales volume of goods in the retail terminal in a preset first future time period is predicted to obtain the first predicted sales volume. Obtain the first actual sales volume of the product in the first future time period, and determine the first prediction deviation rate based on the first actual sales volume and the first predicted sales volume; If the first prediction deviation rate is greater than or equal to a preset deviation threshold, the inventory data of the retail terminal is determined, and if the shelf life of the remaining materials in the inventory data is less than or equal to a preset shelf life, the estimated loss cost and estimated discount revenue are determined based on the inventory data. If the estimated discount revenue is greater than the estimated loss cost, a discount adjustment plan is generated and pushed to the maintenance personnel's terminal for authorization. If the discount adjustment scheme is authorized, the discount adjustment scheme will be synchronized to the retail terminal so that the retail terminal will implement the discount adjustment scheme in a preset second future time period.

2. The method according to claim 1, characterized in that, The process of predicting the sales volume of goods in the retail terminal within a first future time period based on the weather data, the passenger flow characteristic data, and the terminal operation data to obtain the first predicted sales volume includes: The baseline predicted sales volume is determined by using a pre-set baseline prediction model based on the weather data, the passenger flow characteristic data, and the terminal operation data. Identify abnormal and sudden information, and determine the sales correction amount through a preset benchmark correction model; wherein, the abnormal and sudden information includes at least one of the following: sudden weather change information, abnormal change in passenger flow information, temporary promotion information, equipment malfunction information, and raw material shortage information; The first predicted sales volume is determined based on the baseline predicted sales volume and the sales volume correction amount.

3. The method according to claim 2, characterized in that, The determination of estimated loss costs and estimated discount revenue based on the inventory data includes: Based on the aforementioned inventory data and the procurement cost of pre-stored materials, the estimated loss cost is determined; Obtain historical sales records, and based on the historical sales records, determine candidate discount prices and the estimated promotional increments corresponding to the candidate discount prices; The estimated discount revenue is determined based on the estimated promotional increase, the candidate discount price, and the variable cost; wherein the variable cost is the unit cost that increases for each additional item sold.

4. The method according to claim 3, characterized in that, After synchronizing the discount adjustment plan to the retail terminal so that the retail terminal implements the discount adjustment plan in a preset second future time period, the method further includes: Obtain the second predicted sales volume for the second future time period, and based on the second predicted sales volume and the estimated promotional increase, obtain the promotional predicted sales volume; Obtain the second actual sales volume for the second future time period, and determine the second prediction deviation rate based on the second actual sales volume and the promotional predicted sales volume; Based on the second prediction deviation rate, the sales price for a preset third future time period is determined.

5. The method according to claim 4, characterized in that, Also includes: If the prediction deviation rate is greater than or equal to a preset deviation threshold for a consecutive preset number of future time periods, incremental update training of the benchmark prediction model and the benchmark correction model is triggered.

6. The method according to claim 1, characterized in that, The step of pushing the discount adjustment plan to the maintenance personnel's terminal for authorization determination includes: The discount and price adjustment plan will be pushed to the maintenance personnel's terminal; If authorization is obtained within the preset authorization time, it is determined that authorization has been obtained; If authorization is not obtained within the preset authorization time and the discount rate in the discount adjustment scheme does not exceed the preset discount rate threshold, it is determined that authorization has been obtained. If authorization is not obtained within the preset authorization period and the discount exceeds the preset discount threshold, it is determined that authorization has not been obtained, and the current price will be maintained for continued sales.

7. The method according to claim 1, characterized in that, The product information includes a product ingredient list. After predicting the sales volume of products within the retail terminal in a preset first future time period based on the weather data, customer flow characteristic data, and terminal operation data, and obtaining the first predicted sales volume, the information further includes: Based on the first predicted sales volume and the product material formula table, determine the raw material consumption corresponding to the product; Based on the raw material consumption, a raw material consumption list is determined and pushed to the maintenance personnel's terminal.

8. The method according to any one of claims 1-7, characterized in that, Also includes: Based on the discount range in the discount adjustment scheme, the weather data, the inventory data, and the current time period, a marketing script template is determined from the preset script template library, and voice broadcast text is generated by filling slots. Control the retail terminal to play the voice broadcast text and display the voice broadcast text.

9. The method according to any one of claims 1-7, characterized in that, The acquisition of weather data includes: The retail terminal collects real-time weather data and obtains weather forecast data for the first future time period. The weather data is obtained based on the measured weather data and the weather forecast data.

10. The method according to any one of claims 1-7, characterized in that, The passenger flow characteristic data includes passenger flow quantity, passenger flow change information, dwell time distribution, and aggregated sentiment distribution; wherein, the aggregated sentiment distribution includes the proportion of positive sentiment, the proportion of calm sentiment, and the proportion of negative sentiment. The terminal operation data includes at least the retail terminal's historical sales volume by time period, current price information, business hours, date information, and product information.

11. A self-operating device for a retail terminal, characterized in that, The device includes: The data acquisition module is used to acquire weather data, as well as customer flow characteristics data and terminal operation data of retail terminals; The prediction module is used to predict the sales volume of goods in the retail terminal within a preset first future time period based on the weather data, the passenger flow characteristic data, and the terminal operation data, so as to obtain the first predicted sales volume. The deviation determination module is used to obtain the first actual sales volume of the product in the first future time period, and determine the first prediction deviation rate based on the first actual sales volume and the first predicted sales volume. The cost-benefit calculation module is used to determine the inventory data of the retail terminal when the first prediction deviation rate is greater than or equal to a preset deviation threshold, and to determine the estimated loss cost and estimated discount revenue based on the inventory data when the shelf life of the remaining materials in the inventory data is less than or equal to a preset shelf life. The authorization module is used to generate a discount adjustment plan when the estimated discount revenue is greater than the estimated loss cost, and push the discount adjustment plan to the operation and maintenance personnel's terminal for authorization judgment; The scheme push module is used to synchronize the discount price adjustment scheme to the retail terminal when the discount price adjustment scheme is authorized, so that the retail terminal executes the discount price adjustment scheme in a preset second future time period.

12. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the method as described in any one of claims 1 to 10.

13. A readable storage medium, characterized in that, A computer program is stored on the readable storage medium, which, when executed by a processor, implements the method as described in any one of claims 1 to 10.