Multi-mode-oriented product sales prediction method and system

By using three models and baseline moving technology in product sales forecasts, the problem of differences in product forecast accuracy in different regions and categories is solved, the accuracy and coverage of sales forecasts are improved, and the stability of inventory management is ensured.

CN118710326AInactive Publication Date: 2024-09-27HENAN DIGITAL ZHONGYUAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410972701.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-09-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing product sales forecasting methods have different forecast accuracy in different regions and product categories, and it is difficult to evaluate the accuracy of sales forecasts, leading to inventory backlogs or out-of-stock problems.

Method used

Three prediction models are used to calculate the predicted sales volume respectively, and the best prediction time period and model are determined by moving the baseline left and right, and the model with the highest prediction accuracy is selected as the preferred model to predict future sales.

Benefits of technology

It improves the accuracy of product sales forecast, ensures that the most appropriate forecast model and time period can be selected under different scenarios, covers multiple forecast scenarios, and reduces the risk of inventory management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710326A
    Figure CN118710326A
Patent Text Reader

Abstract

The invention relates to the field of data processing, in particular to a multi-mode-oriented product sales volume prediction method and system, and the method comprises the steps: obtaining the actual sales volume of a product in a first time period, building a curve coordinate system of the actual sales volume along with the time, and calculating the actual sales volume of the product based on different parameters in the actual sales volume information; the method comprises the following steps: establishing a first prediction model, a second prediction model and a third prediction model, setting a reference line, determining a movement interval of the reference line, defining the interval, calculating each predicted sales volume in the interval by using the prediction models, selecting the predicted sales volume with the highest prediction accuracy from each predicted sales volume, and obtaining the corresponding prediction model. And predicting the future sales volume of the product by using the prediction model. The invention provides a multi-mode-oriented product sales volume prediction method and system, and aims to improve the accuracy of product sales volume prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and more specifically to a multi-modal product sales forecasting method and system. Background Art

[0002] The accuracy of product sales forecasts is crucial for merchants. For example, if merchants make inaccurate forecasts of product sales, they may suffer from large inventory backlogs, shortages, or out-of-stock problems.

[0003] In order to solve this problem, a method for product sales prediction is proposed in the prior art. For example, the Chinese invention patent application "CN113256007B" records a new product sales prediction method and device for multimodal, including: first obtaining the product attributes, product images, and multi-dimensional time characteristics of the target sales time of the target product; then inputting the obtained content into the sales prediction device for sales prediction; through the fusion layer, a fusion process is performed according to multiple coding vectors determined by multiple coding layers to obtain a fusion vector; through the decoder, according to the fusion vector, the predicted sales of the target product at the target sales time is output. However, this method only predicts product sales through three dimensions: product attributes, product images, and sales time, and the accuracy of product sales prediction is difficult to evaluate; for example, the Chinese invention patent application "CN113610575A" records a product sales prediction method and prediction system, including establishing a sales prediction model to predict the sales value of the product, and subtracting it from the actual sales value to obtain a sales error value, analyzing the sales error value, fitting the distribution function of the sales error value, and using the parameters of each distribution function to construct a random number generator to generate random numbers, thereby correcting the predicted sales value, and then forming the final predicted sales value. This method can use a unified sales forecasting model to predict the sales value of each product category in each region. However, this method uses a unified sales forecasting model for predictions of different regions and different categories of products. Considering the different situations in each region, there will be a problem that the sales forecast accuracy of different regions or different categories of products is different. In order to solve the above problems, the present invention provides a multi-modal product sales forecasting method and system to improve the accuracy of product sales forecasting. Summary of the invention

[0004] The present invention aims to solve the problem of how to improve the accuracy of product sales forecasting.

[0005] In order to better solve the above problems, the present invention provides a multi-modal product sales forecasting method, comprising the following steps: Step S1: obtaining the actual sales volume of the product in the first time period, establishing a coordinate system with time as the horizontal axis and the actual sales volume as the vertical axis, and plotting an actual sales volume curve of the actual sales volume of the product in the first time period changing with time in the coordinate system; Step S2: establishing a first prediction model, a second prediction model and a third prediction model, wherein the first prediction model, the second prediction model and the third prediction model all include extracting a plurality of different parameters from the actual sales information of the product, and different weights associated with the plurality of different parameters; Step S3: setting a baseline 1 in the coordinate system, defining the interval between the baseline 1 and the vertical axis of the coordinate system as a first interval, using the first prediction model, the second prediction model and the third prediction model to respectively predict the sales volume of the products in the first interval, obtaining predicted sales volume 1, predicted sales volume 2 and predicted sales volume 3, determining a moving interval of the baseline 1, and within the moving interval, moving the position of the baseline 1 to the left side of the coordinate system, using the first prediction model, the second prediction model and the third prediction model to respectively predict the sales volume of the products in the first interval after the movement, obtaining predicted sales volume 4, predicted sales volume 5 and predicted sales volume 6, moving the position of the baseline 1 to the right side of the coordinate system, using the first prediction model, the second prediction model and the third prediction model to respectively predict the sales volume of the products in the first interval after the movement, obtaining predicted sales volume 7, predicted sales volume 8 and predicted sales volume 9; Step S4: Calculate the prediction accuracy of each predicted sales volume of the first prediction model, the second prediction model and the third prediction model, select the predicted sales volume with the highest prediction accuracy, obtain its corresponding prediction model, and define the prediction model as the preferred model 1. The preferred model 1 is used to predict the future sales volume of the product in a scenario similar to the first interval scenario.

[0006] As a preferred technical solution of the present invention, after step S4, the following steps are also included: Step S41: obtaining the position of the baseline 1 corresponding to the preferred model 1, fixing the position of the baseline 1, setting a baseline 2 on the right side of the baseline 1 in the coordinate system, and defining the interval between the baseline 1 and the baseline 2 as a second interval; Step S42: based on the steps S3 and S4, obtaining the preferred model 2 of the second interval, obtaining the position of the baseline 2 corresponding to the preferred model 2, fixing the position of the baseline 2, setting a baseline 3 on the right side of the baseline 2 in the coordinate system, defining the interval between the baseline 2 and the baseline 3 as a third interval, and obtaining the preferred model 3 of the third interval based on the steps S3 and S4; Step S43: repeating the step S41, defining the nth interval, and obtaining the preferred model n of the nth interval based on the step S3 and the step S4, where n is a positive integer greater than or equal to 1; Step S44: From the preferred models in each interval, select the prediction model that has been determined as the preferred model the most times as the target prediction model; if the number of the preferred models that have been determined as the preferred models the most times is the same, then on this basis, select the preferred model with the highest priority among the preferred models as the target prediction model; the target prediction model is used to predict the future sales volume of the product.

[0007] As a preferred technical solution of the present invention, the moving interval of the baseline is determined based on the following steps: Step S411: before drawing the baseline 1, locate the base point in the actual sales curve, the base point is the extreme point in the actual sales curve, and the extreme point is smaller than the ordinate value of the coordinate points on both sides thereof, and the obtained base points are numbered in sequence from left to right; Step S412: intercepting the curve between the base point No. 1 and the base point No. 2 in the actual sales curve, selecting multiple test points on the curve from left to right, with the test points separated by a preset first distance, obtaining the ordinate value of each test point, arranging them into a first data group, continuing to intercept the curve between the base point No. 2 and the base point No. 3, calculating and obtaining the corresponding second data group, repeating this step until the J-1th data group corresponding to the Jth base point is obtained, where J is the last base point in the actual sales curve; Step S413: Calculate the average value of the vertical coordinate values ​​in each data group and set a first threshold value. If the difference between the average values ​​of the vertical coordinate values ​​of two adjacent data groups is greater than the first threshold value, set the starting point of the moving interval to the test point in the two compared data groups, where the vertical coordinate in the previous data group overlaps with the vertical coordinate in the latter data group, and set the end point of the moving interval to the test point in the latter data group with the largest vertical coordinate value.

[0008] As a preferred technical solution of the present invention, after determining the moving interval of the baseline, the baseline is moved based on the following steps: Step S421: The ordinate value corresponding to the starting point of the moving interval is taken as the first sales value d1, and the ordinate value corresponding to the end point of the moving interval is taken as the second sales value h1, and the average value of the first sales value d1 and the second sales value h1 is calculated as the first average value. , the first average value The expression of is shown in Formula 1 below: ; The reference line n is set in the moving interval, the reference line n is perpendicular to the horizontal axis of the coordinate, and the reference line n intersects with the actual sales curve at a first intersection point, and the vertical coordinate of the first intersection point is ; Step S422: Based on the first sales value d1 and the first average value , calculate the first sales value d1 and the first average value The average value of , the second average The expression of is shown in Formula 2 below: ; The reference line n is moved horizontally to the left so that the reference line n intersects with the actual sales curve at a second intersection point. The ordinate of the second intersection point is ; Step S423: Based on the second sales value h1 and the first average value , calculate the second sales value h1 and the first average value The average value of , the third average value The expression of is shown in Formula 3 below: ; The reference line n is moved horizontally to the right so that the reference line n intersects with the actual sales curve at a third intersection point. The ordinate of the third intersection point is .

[0009] As a preferred technical solution of the present invention, the predicted sales volume with the highest prediction accuracy is selected, including: The average absolute error between each predicted sales volume in the nth interval and the actual sales volume is calculated, and according to the corresponding relationship that the smaller the average absolute error, the higher the prediction accuracy, the predicted sales volume with the smallest average absolute error between the predicted sales volume and the actual sales volume is determined as the predicted sales volume with the highest prediction accuracy.

[0010] The present invention also provides a multi-modal product sales forecasting system as described above, comprising the following units: A drawing unit, used to obtain the actual sales volume of the product in the first time period, establish a coordinate system with time as the horizontal axis and the actual sales volume as the vertical axis, and draw an actual sales volume curve of the actual sales volume of the product in the first time period changing with time in the coordinate system; A model building unit is used to build a first prediction model, a second prediction model and a third prediction model, wherein the first prediction model, the second prediction model and the third prediction model all include extracting a plurality of different parameters from actual sales information of the product, and different weights associated with the plurality of different parameters; an acquisition unit, for setting a baseline 1 in a coordinate system, defining the interval between the baseline 1 and the vertical axis of the coordinate system as a first interval, using the first prediction model, the second prediction model and the third prediction model to respectively predict the sales of products in the first interval, obtaining predicted sales 1, predicted sales 2 and predicted sales 3, determining a moving interval of the baseline 1, moving the position of the baseline 1 to the left of the coordinate system within the moving interval, using the first prediction model, the second prediction model and the third prediction model to respectively predict the sales of products in the first interval after the movement, obtaining predicted sales 4, predicted sales 5 and predicted sales 6, moving the position of the baseline 1 to the right of the coordinate system, using the first prediction model, the second prediction model and the third prediction model to respectively predict the sales of products in the first interval after the movement, obtaining predicted sales 7, predicted sales 8 and predicted sales 9; A determination unit is used to calculate the prediction accuracy of each predicted sales volume of the first prediction model, the second prediction model and the third prediction model, select the predicted sales volume with the highest prediction accuracy, obtain the corresponding prediction model, and define the prediction model as the preferred model 1. The preferred model 1 is used to predict the future sales volume of products with scenarios similar to the first interval scenarios.

[0011] Compared with the prior art, the beneficial effects of the present invention are at least as follows: 1. The technical solution of the present invention calculates each predicted sales volume respectively through three different prediction models, moves the baseline left and right within a determined baseline moving interval, and then calculates each predicted sales volume respectively. The reason for moving the baseline left and right here is that due to the many factors that affect sales volume, we cannot know which model to use and which time period to predict to obtain the most accurate prediction effect. Therefore, in order to solve this problem, the above technical solution is used to move the baseline left and right to change the predicted time period, and then the three models are used to perform prediction tests respectively, and the predicted sales volume with the highest prediction accuracy is selected to obtain the best prediction time period and the best prediction model. For example, after calculation, the first prediction model is used to predict Monday to Wednesday, and Monday to Wednesday is the first interval after division. Therefore, the most suitable prediction model and the best time period for prediction using the model can be obtained through the above steps.

[0012] 2. The technical solution of the present invention selects the prediction model that is determined as the preferred model the most times from a large number of prediction models. The prediction model can be used to better predict a variety of different sales curves. For example, there are five intervals, that is, five prediction scenarios. The first prediction model can better predict four of the scenarios. Therefore, when making future sales forecasts, if the scenario cannot be confirmed, this prediction model can be used for sales forecasting in priority, because this prediction model can cover most of the prediction scenarios, thereby ensuring the prediction effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A flowchart of the steps of a multi-modal product sales forecasting method of the present invention; Figure 2 It is a principle schematic diagram of the actual sales volume curve of the present invention; Figure 3 This is a structural diagram of a multi-modal product sales forecasting system of the present invention; Figure 2 As shown in: 1, base point No. 1; 2, base point No. 2; 3, base point No. 3; 4, base point No. 4; a, test point a; b, test point b; c, test point c; d, test point d; e, test point e; f, test point f; g, test point g; L1, baseline 1; L2, baseline 2; L, starting point of the moving interval of baseline 2; R, end point of the moving interval of baseline 2; d1, first sales value; h1, second sales value; Figure 3 As shown in: 100, a multi-modal product sales forecasting system; 101, a drawing unit; 102, a model building unit; 103, an acquisition unit; 104, a determination unit. DETAILED DESCRIPTION

[0014] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0015] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these modules are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.

[0016] The accuracy of product sales forecast is very important to merchants. For example, if merchants make inaccurate forecasts of product sales, they may cause a large backlog of inventory or out-of-stock or out-of-stock problems. As mentioned above, for product sales, how to make a more accurate forecast based on historical sales data is the problem to be solved by the present invention.

[0017] In view of the above technical problems, the inventors proposed Figure 1 A multi-modal product sales forecasting method is shown, comprising the following steps: Step S1: Obtain the actual sales volume of the product in the first time period, establish a coordinate system with time as the horizontal axis and the actual sales volume as the vertical axis, and draw an actual sales volume curve of the product in the first time period changing with time in the coordinate system.

[0018] Specifically, Figure 2 The figure shows a curve chart of actual sales volume in the first time period of this embodiment, in which the horizontal axis represents time and the vertical axis represents actual sales volume.

[0019] Step S2: Establish a first prediction model, a second prediction model and a third prediction model. The first prediction model, the second prediction model and the third prediction model all include extracting multiple different parameters from the actual sales information of the product, and different weights related to the multiple different parameters.

[0020] Specifically, the prediction model is a sales forecast value based on one or more parameters of the actual sales data. It uses different parameters in the actual sales data as parameters used by the prediction model, and the weights corresponding to different parameters are also different in different prediction models. For example, the parameters can be the sales volume in the most recent month, whether it is a weekend, whether it is a holiday, whether it is raining / snowing, the highest temperature, the lowest temperature, whether there are activities at nearby businesses, whether there are exhibitions, the business district to which the exhibitions belong, the number of residents within a 2-kilometer radius, and the age level of residents within a 2-kilometer radius; the weights corresponding to the parameters, for example, if the sales volume of umbrellas is to be predicted, then the weather conditions on the predicted date must be obtained from a third party first, and the weight corresponding to the weather will account for a large proportion. If the sales volume of milk powder is to be predicted, then the weights of the number of residents and the age level of residents within a 2-kilometer radius will account for a large proportion. Different parameters and their corresponding weights are combined to establish the first prediction model, the second prediction model and the third prediction model. For example, the first prediction model = 0.1 * sales volume in the most recent month + 0.5 * whether it is raining / snowing + 0.3 * whether it is the weekend + 0.1 * the number of residents within a radius of 2 kilometers; the second prediction model = 0.2 * sales volume in the most recent month + 0.1 * whether it is raining / snowing + 0.4 * the number of residents within a radius of 2 kilometers + 0.3 * whether there are activities at nearby businesses; in particular, for whether it is raining / snowing, if it is raining, the corresponding value is set to 1, if it is not raining, the corresponding value is set to 0; for whether it is the weekend, if it is the weekend (including Saturday and Sunday), the corresponding value is set to 1, if it is not the weekend, the corresponding value is set to 0; for whether there are activities at nearby businesses, if there are activities, the corresponding value is set to 1, if there are no activities, the corresponding value is set to 0, and other similar parameters are set in the same way, which will not be repeated here.

[0021] Step S3: Set a baseline 1 (L1) in the coordinate system, define the interval between the baseline 1 (L1) and the vertical axis of the coordinate system as the first interval, use the first prediction model, the second prediction model and the third prediction model to predict the sales of the products in the first interval respectively, and obtain predicted sales 1, predicted sales 2 and predicted sales 3, determine the moving interval of the baseline 1 (L1), and within the moving interval, move the position of the baseline 1 (L1) to the left side of the coordinate system, use the first prediction model, the second prediction model and the third prediction model to predict the sales of the products in the first interval after the movement, and obtain predicted sales 4, predicted sales 5 and predicted sales 6, move the position of the baseline 1 (L1) to the right side of the coordinate system, use the first prediction model, the second prediction model and the third prediction model to predict the sales of the products in the first interval after the movement, and obtain predicted sales 7, predicted sales 8 and predicted sales 9.

[0022] Step S4: Calculate the prediction accuracy of each predicted sales volume of the first prediction model, the second prediction model and the third prediction model, select the predicted sales volume with the highest prediction accuracy, obtain its corresponding prediction model, and define the prediction model as the preferred model 1. The preferred model 1 is used to predict the future sales volume of products with scenarios similar to the first interval scenario.

[0023] Specifically, Figure 2 As shown, by setting a baseline in the coordinate system, an interval is formed. The reason for dividing the interval here is that since the sales volume of the product is affected by many factors, when the first time period is long, its actual sales curve may be constantly fluctuating. For example, in the first five days of a week, since they are working days, its sales curve may be relatively stable. In the last two days of a week, since they are rest days, its sales curve may rise, which will divide it into intervals. For example, the sales curve of the first time period is divided into two sections. When dividing, since it is impossible to know at which position of the curve the best prediction result is obtained after the division, it is necessary to determine the moving interval in advance, and move the baseline multiple times in the moving interval to try to calculate to obtain the best baseline position; in addition, when there are three prediction models, the three prediction models are used to predict each first interval formed after the movement, and the optimal model is obtained according to the prediction results. The optimal model is a model with better prediction effect on working days under the optimal division interval; after obtaining the optimal model, if it is necessary to predict sales for future working days, the model is used.

[0024] The predicted sales volume is calculated respectively by three different prediction models, and the baseline is moved left and right within the determined baseline moving range, and then the predicted sales volume is calculated respectively. The reason for moving the baseline left and right here is that due to the many factors that affect the sales volume, we cannot know which model to use and which time period to predict to obtain the most accurate prediction effect. Therefore, to solve this problem, the above technical solution is used to move the baseline left and right to change the predicted time period, and then the three models are used to perform prediction tests respectively, and the predicted sales volume with the highest prediction accuracy is selected to obtain the best prediction time period and the best prediction model. For example, after calculation, the first prediction model is used to predict Monday to Wednesday, and Monday to Wednesday is the first interval after division. Therefore, the most suitable prediction model and the best time period for prediction using the model can be obtained through the above steps.

[0025] In fact, if a prediction model is assigned to each interval separately, the more intervals are divided, the more corresponding models there are. When making predictions in the future, it is necessary to select the corresponding model from the numerous models according to the actual situation for prediction. Sometimes it is impossible to know what kind of scenario will appear in the future, which makes it impossible to know which model is needed for prediction, which brings inconvenience to the work. Therefore, the present invention also proposes the following steps to summarize the prediction models.

[0026] Furthermore, after the above step S4, the following steps are also included: Step S41: obtaining the position of the baseline 1 corresponding to the preferred model 1, fixing the position of the baseline 1, setting the baseline 2 on the right side of the baseline 1 in the coordinate system, and defining the interval between the baseline 1 and the baseline 2 as the second interval; Step S42: based on step S3 and step S4, obtain the preferred model 2 of the second interval, obtain the position of the baseline 2 corresponding to the preferred model 2, fix the position of the baseline 2, set the baseline 3 on the right side of the baseline 2 in the coordinate system, define the interval between the baseline 2 and the baseline 3 as the third interval, and obtain the preferred model 3 of the third interval based on step S3 and step S4; Step S43: repeat step S41, define the nth interval, and obtain the optimal model n of the nth interval based on step S3 and step S4, where n is a positive integer greater than or equal to 1; Step S44: From the preferred models in each interval, select the prediction model that has been determined as the preferred model the most times as the target prediction model. If the number of preferred models that have been determined as the preferred models the most times is the same, then on this basis, select the preferred model with the highest priority among the preferred models as the target prediction model. The target prediction model is used to predict the future sales of the product.

[0027] Specifically, to make the predicted future sales more accurate, such as Figure 2As shown, multiple baselines are set in the coordinate system to form multiple intervals. First, the previous baseline 1 (L1) is fixed, and then a new baseline 2 (L2) is set. The baseline 2 (L2) moves left and right within the determined baseline moving interval (L and R). A preferred model can be selected from the prediction models corresponding to all predicted sales in the new interval (the second interval). Repeat this step and continue to set multiple baselines to obtain multiple intervals. Then, a preferred model can be selected from each interval. The preferred model with the most times of being the preferred model will be determined as the target prediction model. If the number of preferred models determined as the most times of being the preferred model is the same, then on this basis, the preferred model with the highest priority among the preferred models will be selected as the target prediction model. The target prediction model will be used to predict the future sales of the product. The parameters of the prediction model include priority. The priority of the prediction model increases once it is trained with actual sales data. The more times a prediction model is trained with actual sales data, the higher the priority of the prediction model. Therefore, the prediction model with the most times of being trained with actual sales data has a higher prediction accuracy. By dividing the data into multiple intervals, we can determine which prediction model has a higher prediction accuracy in which interval under various scenarios. For different prediction scenarios, we use different prediction models to further improve the accuracy of product sales forecasts.

[0028] Through the above technical scheme, the prediction model that has been determined as the preferred model the most times is selected, which means that the prediction model can be used to better predict a variety of different sales curves. For example, there are five intervals, that is, five prediction scenarios. The first prediction model can make better predictions for four of the scenarios. Therefore, when making future sales forecasts, if the scenario cannot be confirmed, this prediction model can be used for sales forecasting in priority, because this prediction model can cover most of the prediction scenarios, thereby ensuring the prediction effect.

[0029] Furthermore, the moving interval of the baseline is determined based on the following steps: Step S411: Before drawing the baseline 1, Figure 2 Draw baseline 2 (L2) in the figure to locate the base point in the actual sales curve. The base point is the extreme point in the actual sales curve, and the extreme point is smaller than the ordinate value of the coordinate points on both sides of it. The obtained base points are numbered from left to right. Step S412: intercept the curve between the base point numbered 1 (1) and the base point numbered 2 (2) in the actual sales curve, select multiple test points on the curve from left to right, and the test points are separated by a preset first distance, obtain the vertical coordinate value of each test point, and arrange them into a first data group, and continue to intercept the curve between the base point numbered 2 (2) and the base point numbered 3 (3), calculate and obtain the corresponding second data group, and repeat this step until the J-1th data group corresponding to the Jth base point is obtained, where J is the last base point in the actual sales curve; Step S413: Calculate the average value of the ordinate value in each data group, set a first threshold value, and if the difference between the average values ​​of the ordinate values ​​of two adjacent data groups is greater than the first threshold value, set the starting point (L) of the moving interval to the test point where the ordinate in the previous data group overlaps with the ordinate in the next data group in the two compared data groups, and set the end point (R) of the moving interval to the test point with the largest ordinate value in the next data group.

[0030] Specifically, the more reasonable the position of the baseline is, the more accurate the predicted sales will be. To determine the position of the baseline, you need to first determine the moving range of the baseline. In the actual sales curve, when the waveform of the actual sales curve changes suddenly compared with the previous one, it indicates that the sales scenario has changed. The base point is set where the inflection point appears in the actual sales curve. The inflection point here is also called the extreme point, and this extreme point is smaller than the value of the ordinate of the coordinate points on both sides of it, that is, all the low sales points of the actual sales curve in the interval, such as Figure 2 The positions shown as 1, 2, 3, and 4 are the base points. These base points are numbered in order from left to right, number 1, number 2, ..., number J. In the line segment between number 1 (1) and number 2 (2), multiple test points are selected from left to right, such as Figure 2In the positions shown by a, b, c, d, e, f, g, etc., the distance between each adjacent test point (a and b or b and c, etc.) is determined according to a preset value, and the distance between the test points is equal. The ordinate corresponding to each test point is obtained respectively, and the obtained ordinate values ​​are arranged according to the test point position and stored as the first data group. In the same way, the second data group is obtained, and the variance of the difference between the corresponding values ​​of the first data group and the second data group is obtained. If the variance is less than the first threshold, it indicates that the curve shapes corresponding to the two data groups are close, and it also indicates that the sales curve has not undergone a sudden change. If it is greater than the first threshold, it indicates that a sudden change has occurred. In this way, a baseline needs to be selected to segment the actual sales curve; then the test point corresponding to the last ordinate value in the previous data group is the starting point (L) of the moving interval of the baseline, and the test point corresponding to the largest ordinate value in the next data group is the end point (R) of the moving interval, wherein the starting test point and the ending test point selected in each interval coincide with the base point. Through the above technical solution, the shapes of two adjacent waveforms can be quickly compared, so as to find the waveform in which a sudden change has occurred.

[0031] Further, after determining the moving range of the baseline, the baseline is moved based on the following steps: Step S421: The ordinate value corresponding to the starting point of the moving interval is taken as the first sales value d1, and the ordinate value corresponding to the end point of the moving interval is taken as the second sales value h1, and the average value of the first sales value d1 and the second sales value h1 is calculated as the first average value. , the first average The expression of is shown in Formula 1 below: ; A baseline n is set in the moving range. The baseline n is perpendicular to the horizontal axis of the coordinate. The baseline n intersects the actual sales curve at the first intersection point. The vertical coordinate of the first intersection point is ; Step S422: Based on the first sales value d1 and the first average value , calculate the first sales value d1 and the first average value The average value of , the second average The expression of is shown in Formula 2 below: ; Move the baseline n horizontally to the left so that the baseline n intersects the actual sales curve at the second intersection point. The ordinate of the second intersection point is ; Step S423: Based on the second sales value h1 and the first average value , calculate the second sales value h1 and the first average The average value of , the third average The expression of is shown in Formula 3 below: ; Move the baseline n horizontally to the right so that the baseline n intersects the actual sales curve at the third intersection point. The ordinate of the third intersection point is .

[0032] Specifically, Figure 2 As shown, the ordinate value corresponding to the starting point of the moving interval determined in the above step is taken as the first sales value d1, and the ordinate value corresponding to the end point of the moving interval determined in the above step is taken as the second sales value h1, and the average value of the first sales value d1 and the second sales value h1 is calculated. , then the baseline can be moved to The coordinate position of and Move the baseline to the position and By moving the position of the baseline left and right in a determined moving interval and calculating the predicted sales, a more accurate prediction model can be found. This moving method of taking the average value is only one example. In fact, a distance can be set and the distance can be moved evenly multiple times to adjust the position of the baseline.

[0033] Furthermore, the predicted sales volume with the highest prediction accuracy is selected, including: The average absolute error between each predicted sales volume and the actual sales volume in the nth interval is calculated. According to the corresponding relationship that the smaller the average absolute error, the higher the prediction accuracy, the predicted sales volume with the smallest average absolute error between the predicted sales volume and the actual sales volume is determined to be the predicted sales volume with the highest prediction accuracy.

[0034] Specifically, three different prediction models are used to calculate the predicted sales volume for the current interval. Of course, this also includes the predicted sales volume calculated at other positions of the current baseline within the determined moving interval. The average absolute error between each predicted sales volume and the actual sales volume is calculated. The curve of the predicted sales volume with the smallest average absolute error is closest to the curve of the actual sales volume. Then the predicted sales volume with the smallest average absolute error is the predicted sales volume with the highest prediction accuracy in the current interval.

[0035] The present invention also provides a Figure 3 The multi-modal product sales forecasting system 100 shown includes the following modules: The drawing unit 101 is used to obtain the actual sales volume of the product in the first time period, establish a coordinate system with time as the horizontal axis and the actual sales volume as the vertical axis, and draw the actual sales volume curve of the actual sales volume of the product in the first time period over time in the coordinate system, such as Figure 2 As shown; A model building unit 102 is used to build a first prediction model, a second prediction model and a third prediction model, wherein the first prediction model, the second prediction model and the third prediction model all include extracting a plurality of different parameters from actual sales information of the product, and different weights associated with the plurality of different parameters; The acquisition unit 103 is used to set a reference line 1 (L1) in the coordinate system, define the interval between the reference line 1 (L1) and the vertical axis of the coordinate system as a first interval, use the first prediction model, the second prediction model and the third prediction model to respectively predict the sales volume of products in the first interval to obtain predicted sales volume 1, predicted sales volume 2 and predicted sales volume 3, determine the moving interval of the reference line 1 (L1), move the position of the reference line 1 (L1) to the left side of the coordinate system within the moving interval, use the first prediction model, the second prediction model and the third prediction model to respectively predict the sales volume of products in the first interval after the movement to obtain predicted sales volume 4, predicted sales volume 5 and predicted sales volume 6, move the position of the reference line 1 (L1) to the right side of the coordinate system, use the first prediction model, the second prediction model and the third prediction model to respectively predict the sales volume of products in the first interval after the movement to obtain predicted sales volume 7, predicted sales volume 8 and predicted sales volume 9; Determination unit 104 is used to calculate the prediction accuracy of each predicted sales volume of the first prediction model, the second prediction model and the third prediction model, select the predicted sales volume with the highest prediction accuracy, obtain its corresponding prediction model, and define the prediction model as the preferred model 1. The preferred model 1 is used to predict the future sales volume of products with scenarios similar to the first interval scenario.

[0036] To summarize, the technical solution of the present invention calculates each predicted sales volume through three different prediction models, moves the baseline left and right within a determined baseline moving interval, and then calculates each predicted sales volume. The reason for moving the baseline left and right here is that due to the many factors that affect sales volume, we cannot know which model to use and which time period to predict to obtain the most accurate prediction effect. Therefore, to solve this problem, the above-mentioned technical solution is used to change the predicted time period by moving the baseline left and right, and then the three models are used to perform prediction tests respectively, and the predicted sales volume with the highest prediction accuracy is selected to obtain the best prediction time period and the best prediction model. For example, after calculation, the first prediction model is used to predict Monday to Wednesday, and Monday to Wednesday is the first interval after division. Therefore, the most suitable prediction model and the best time period for prediction using the model can be obtained through the above steps. The technical solution of the present invention also selects the prediction model that is determined as the preferred model the most times from a large number of prediction models. The prediction model can be used to better predict a variety of different sales curves. For example, there are five intervals, that is, five prediction scenarios. The first prediction model can better predict four of the scenarios. Therefore, when making future sales forecasts, if the scenario cannot be confirmed, this prediction model can be used for sales forecasting in priority, because this prediction model can cover most of the prediction scenarios, thereby ensuring the prediction effect.

[0037] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0038] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0039] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

[0040] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A multi-modal product sales forecasting method, characterized in that: The method comprises the following steps: Step S1: obtaining the actual sales volume of the product in the first time period, establishing a coordinate system with time as the horizontal axis and the actual sales volume as the vertical axis, and plotting an actual sales volume curve of the actual sales volume of the product in the first time period changing with time in the coordinate system; Step S2: establishing a first prediction model, a second prediction model and a third prediction model, wherein the first prediction model, the second prediction model and the third prediction model all include extracting a plurality of different parameters from the actual sales information of the product, and different weights associated with the plurality of different parameters; Step S3: setting a baseline 1 in the coordinate system, defining the interval between the baseline 1 and the vertical axis of the coordinate system as a first interval, using the first prediction model, the second prediction model and the third prediction model to respectively predict the sales volume of the products in the first interval, obtaining predicted sales volume 1, predicted sales volume 2 and predicted sales volume 3, determining a moving interval of the baseline 1, and within the moving interval, moving the position of the baseline 1 to the left side of the coordinate system, using the first prediction model, the second prediction model and the third prediction model to respectively predict the sales volume of the products in the first interval after the movement, obtaining predicted sales volume 4, predicted sales volume 5 and predicted sales volume 6, moving the position of the baseline 1 to the right side of the coordinate system, using the first prediction model, the second prediction model and the third prediction model to respectively predict the sales volume of the products in the first interval after the movement, obtaining predicted sales volume 7, predicted sales volume 8 and predicted sales volume 9; Step S4: Calculate the prediction accuracy of each predicted sales volume of the first prediction model, the second prediction model and the third prediction model, select the predicted sales volume with the highest prediction accuracy, obtain its corresponding prediction model, and define the prediction model as the preferred model 1. The preferred model 1 is used to predict the future sales volume of the product in a scenario similar to the first interval scenario.

2. A multi-modal product sales forecasting method according to claim 1, characterized in that: After step S4, the following steps are also included: Step S41: obtaining the position of the baseline 1 corresponding to the preferred model 1, fixing the position of the baseline 1, setting a baseline 2 on the right side of the baseline 1 in the coordinate system, and defining the interval between the baseline 1 and the baseline 2 as a second interval; Step S42: based on the steps S3 and S4, obtaining the preferred model 2 of the second interval, obtaining the position of the baseline 2 corresponding to the preferred model 2, fixing the position of the baseline 2, setting a baseline 3 on the right side of the baseline 2 in the coordinate system, defining the interval between the baseline 2 and the baseline 3 as a third interval, and obtaining the preferred model 3 of the third interval based on the steps S3 and S4; Step S43: repeating the step S41, defining the nth interval, and obtaining the preferred model n of the nth interval based on the step S3 and the step S4, where n is a positive integer greater than or equal to 1; Step S44: From the preferred models in each interval, select the prediction model that has been determined as the preferred model the most times as the target prediction model; if the number of the preferred models that have been determined as the preferred models the most times is the same, then on this basis, select the preferred model with the highest priority among the preferred models as the target prediction model; the target prediction model is used to predict the future sales volume of the product.

3. The multi-modal product sales forecasting method according to claim 2, characterized in that: The moving interval of the baseline is determined based on the following steps: Step S411: before drawing the baseline 1, locate the base point in the actual sales curve, the base point is the extreme point in the actual sales curve, and the extreme point is smaller than the ordinate value of the coordinate points on both sides thereof, and the obtained base points are numbered in sequence from left to right; Step S412: intercepting the curve between the base point No. 1 and the base point No. 2 in the actual sales curve, selecting multiple test points on the curve from left to right, with the test points separated by a preset first distance, obtaining the ordinate value of each test point, arranging them into a first data group, continuing to intercept the curve between the base point No. 2 and the base point No. 3, calculating and obtaining the corresponding second data group, repeating this step until the J-1th data group corresponding to the Jth base point is obtained, where J is the last base point in the actual sales curve; Step S413: Calculate the average value of the vertical coordinate values ​​in each data group and set a first threshold value. If the difference between the average values ​​of the vertical coordinate values ​​of two adjacent data groups is greater than the first threshold value, set the starting point of the moving interval to the test point in the two compared data groups, where the vertical coordinate in the previous data group overlaps with the vertical coordinate in the latter data group, and set the end point of the moving interval to the test point in the latter data group with the largest vertical coordinate value.

4. The multi-modal product sales forecasting method according to claim 3, characterized in that: After determining the moving interval of the baseline, the baseline is moved based on the following steps: Step S421: The ordinate value corresponding to the starting point of the moving interval is taken as the first sales value d1, and the ordinate value corresponding to the end point of the moving interval is taken as the second sales value h1, and the average value of the first sales value d1 and the second sales value h1 is calculated as the first average value. , the first average value The expression of is shown in Formula 1 below: ; The reference line n is set in the moving interval, the reference line n is perpendicular to the horizontal axis of the coordinate, and the reference line n intersects with the actual sales curve at a first intersection point, and the vertical coordinate of the first intersection point is ; Step S422: Based on the first sales value d1 and the first average value , calculate the first sales value d1 and the first average value The average value of , the second average The expression of is shown in Formula 2 below: ; The reference line n is moved horizontally to the left so that the reference line n intersects with the actual sales curve at a second intersection point. The ordinate of the second intersection point is ; Step S423: Based on the second sales value h1 and the first average value , calculate the second sales value h1 and the first average value The average value of , the third average value The expression of is shown in Formula 3 below: ; The reference line n is moved horizontally to the right so that the reference line n intersects with the actual sales curve at a third intersection point. The ordinate of the third intersection point is .

5. The multi-modal product sales forecasting method according to claim 1, characterized in that: Select the sales forecast with the highest forecast accuracy, including: The average absolute error between each predicted sales volume in the nth interval and the actual sales volume is calculated, and according to the corresponding relationship that the smaller the average absolute error, the higher the prediction accuracy, the predicted sales volume with the smallest average absolute error between the predicted sales volume and the actual sales volume is determined as the predicted sales volume with the highest prediction accuracy.

6. A multi-modal product sales forecasting system, used to implement the method according to any one of claims 1 to 5, characterized in that: The system comprises the following units: A drawing unit, used to obtain the actual sales volume of the product in the first time period, establish a coordinate system with time as the horizontal axis and the actual sales volume as the vertical axis, and draw an actual sales volume curve of the actual sales volume of the product in the first time period changing with time in the coordinate system; A model building unit is used to build a first prediction model, a second prediction model and a third prediction model, wherein the first prediction model, the second prediction model and the third prediction model all include extracting a plurality of different parameters from actual sales information of the product, and different weights associated with the plurality of different parameters; an acquisition unit, for setting a baseline 1 in a coordinate system, defining the interval between the baseline 1 and the vertical axis of the coordinate system as a first interval, using the first prediction model, the second prediction model and the third prediction model to respectively predict the sales of products in the first interval, obtaining predicted sales 1, predicted sales 2 and predicted sales 3, determining a moving interval of the baseline 1, moving the position of the baseline 1 to the left of the coordinate system within the moving interval, using the first prediction model, the second prediction model and the third prediction model to respectively predict the sales of products in the first interval after the movement, obtaining predicted sales 4, predicted sales 5 and predicted sales 6, moving the position of the baseline 1 to the right of the coordinate system, using the first prediction model, the second prediction model and the third prediction model to respectively predict the sales of products in the first interval after the movement, obtaining predicted sales 7, predicted sales 8 and predicted sales 9; A determination unit is used to calculate the prediction accuracy of each predicted sales volume of the first prediction model, the second prediction model and the third prediction model, select the predicted sales volume with the highest prediction accuracy, obtain the corresponding prediction model, and define the prediction model as the preferred model 1. The preferred model 1 is used to predict the future sales volume of products with scenarios similar to the first interval scenarios.

Citation Information

Patent Citations

  • A method and apparatus for predicting new product sales in a multimodal context

    CN113256007B

  • Product sales prediction method and prediction system

    CN113610575A