Prediction device and prediction method
The prediction device enhances accuracy by determining and excluding non-influential variables, addressing the challenge of data management and effort in logistics prediction systems.
Patent Information
- Application Number
- JP2019192833
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2019-10-23
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2039-10-23
AI Technical Summary
Existing prediction systems struggle with improving accuracy while minimizing the effort and cost associated with data management and selection of explanatory variables, particularly in logistics where data is difficult to obtain and manage due to geographical and contractual issues.
A prediction device that calculates the degree of contribution of each explanatory variable on the prediction result and excludes variables with minimal influence, reducing the need for extensive data management and input, using methods like autoregression and multiple regression analysis to enhance accuracy.
Improves prediction accuracy by selectively using only influential variables, reducing data management effort and time, and enabling more efficient warehouse operations.
Smart Images

Figure 0007532707000001 
Figure 0007532707000006 
Figure 0007532707000007
Abstract
Description
[Technical field]
[0001] The present invention relates to a prediction device and a prediction method for predicting data. [Background technology]
[0002] Prediction technologies that predict future figures from past numerical data have been developed and are being applied in various fields. For example, in the logistics field, prediction technologies are used to predict the volume of goods that will be sent and received at each warehouse, and to estimate the number of workers and storage space required within the warehouse. These volume predictions are mainly performed manually by veteran workers with many years of experience (for example, on-site leaders), and there is a demand for automation and improved accuracy.
[0003] To improve prediction accuracy, it is desirable to make predictions by taking into account as comprehensively as possible the variable factors (explanatory variables) that affect the prediction results. However, when making predictions at logistics sites such as logistics warehouses, if it is too much work to obtain, manage, and use the data (explanatory variables) required for prediction, it places a burden on users of the prediction system. Therefore, there is a demand to carefully select explanatory variables and make highly accurate predictions using the minimum number of explanatory variables necessary.
[0004] This is because, for example, when a 3PL (Third Party Logistics) company that undertakes logistics operations for a shipper forecasts warehouse shipping volumes and the like, there are cases where it is not easy to obtain data from the shipper due to contractual or geographical issues (such as the warehouse being geographically far from the store selling the goods.) Even if the data is available, if there are many types of data and each piece of data is large in volume, the cost (effort) of managing that data and the effort required to input the data into the forecasting system will increase, which can make users of the forecasting system hesitant to use the system.
[0005] Patent Document 1 also discloses a system for predicting a shipment forecast of a practical product. This system includes an information input means for inputting past shipment volume results and weather conditions, a data series creation means for setting a data series of a dependent variable and a data series of an explanatory variable from information from the information input means, a multiple regression analysis means for generating a multiple regression model that fits the dependent variable data series and the explanatory variable data series and outputting a shipment volume result theoretical value and a shipment volume forecast value using the multiple regression model, and a correction means for taking a rejection value of the shipment volume result value as a corrected shipment volume result value, calculating a ratio between the corrected shipment volume result value and the shipment volume result theoretical value as a correction value, and correcting the shipment volume forecast value using the correction value. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2005-78277 A Summary of the Invention [Problem to be solved by the invention]
[0007] In Patent Document 1, shipment volumes are predicted using a set of data on various variable factors such as weather and the number of business days, as well as past shipment volumes. However, the system does not allow users of the system to determine the degree of contribution of the data sets used for the prediction to the predicted results.
[0008] An object of the present invention is to improve prediction accuracy. [Means for solving the problem]
[0009] A prediction device according to one aspect of the invention disclosed in the present application is a prediction device that predicts a predicted value of a prediction target based on an actual value of the prediction target and time-series data of each of a plurality of explanatory variables, the prediction device having a processor that executes a program and a storage device that stores the program, wherein the processor calculates prediction accuracy based on the actual value and the predicted value, calculates a first predicted value predicted using time-series data of a first explanatory variable among the plurality of explanatory variables and a second predicted value predicted using time-series data of a second explanatory variable among the plurality of explanatory variables different from the first explanatory variable, based on the prediction accuracy, a first contribution degree that is a degree of influence that the first explanatory variable has on the predicted value and a second contribution degree that is a degree of influence that the second explanatory variable has on the predicted value, and Effect of the Invention
[0010] According to the representative embodiment of the present invention, it is possible to improve prediction accuracy. Problems, configurations and effects other than those described above will become apparent from the following description of the embodiments. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a block diagram illustrating an example of a hardware configuration of a prediction device. [Diagram 2] FIG. 2 is a block diagram illustrating a first example of a functional configuration of the prediction device. [Diagram 3] FIG. 3 is a flowchart illustrating a first example of a prediction process procedure performed by the prediction device. [Figure 4] FIG. 4 is an explanatory diagram illustrating an example of input data to the prediction device. [Diagram 5] FIG. 5 is an explanatory diagram illustrating an example of the first output data output from the prediction device. [Figure 6] FIG. 6 is a flowchart illustrating a detailed example of a procedure of the prediction process by the prediction unit in step S303. [Figure 7]FIG. 7 is an explanatory diagram illustrating an example of the second output data output by the information output unit. [Figure 8] FIG. 8 is a block diagram illustrating a second example of a functional configuration of the prediction device. [Figure 9] FIG. 9 is a flowchart illustrating a second example of a prediction process procedure performed by the prediction device. [Figure 10] FIG. 10 is an explanatory diagram showing an example of a method for determining the number of shift days by the correlation calculation unit. [Figure 11] FIG. 11 is a graph showing the effect of a user's selection of candidates for shifting. [Figure 12] FIG. 12 is an explanatory diagram showing an example of presentation of explanatory variables to be excluded (or shifted). DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS EXAMPLES
[0012] Example 1 shows an example of application to prediction of the shipment volume of goods at a logistics warehouse. In Example 1, an example is described in which the contribution level is output as the importance of the explanatory variables used in the prediction, and when the contribution level of any explanatory variable is lower than a predetermined value throughout the actual period and the prediction period, the explanatory variable is output as an excluded target. Here, it is assumed that a user of the prediction device periodically predicts the shipment volume at any frequency (for example, once a day or once a week) using the prediction device. The configuration and processing flow of the prediction device are described below.
[0013] <Example of hardware configuration of prediction device> FIG. 1 is a block diagram showing an example of a hardware configuration of a prediction device. The prediction device 100 includes a processor 101, a storage device 102, an input device 103, an output device 104, and a communication interface (communication IF) 105. The processor 101, the storage device 102, the input device 103, the output device 104, and the communication IF 105 are connected by a bus 106. The processor 101 controls the prediction device 100. The storage device 102 serves as a working area for the processor 101. The storage device 102 is a non-transient or temporary recording medium that stores various programs and data. Examples of the storage device 102 include a ROM (Read Only Memory), a RAM (Random Access Memory), a HDD (Hard Disk Drive), and a flash memory. The input device 103 is a device that inputs data. Examples of the input device 103 include a keyboard, a mouse, a touch panel, a numeric keypad, and a scanner. The output device 104 is a device that outputs data. The output device 104 may be, for example, a display or a printer. The communication IF 105 is connected to a network 110 and transmits and receives data.
[0014] Connected to the network 110 is, for example, a warehouse management system (WMS) 120, from which shipping records of the product to be predicted can be obtained. However, the prediction device 100 does not necessarily need to be connected to the network 110 as long as necessary data can be input. Furthermore, the prediction device 100 may be implemented, for example, as an application on the WMS.
[0015] <Functional configuration example 1 of prediction device 100> 2 is a block diagram showing a functional configuration example 1 of the prediction device 100. The actual value 221 and the explanatory variable 222 are stored in the storage device 102. In addition, the predicted value 231, the prediction accuracy 232, the contribution degree 233, and the excluded target 234 can be displayed on a display, which is an example of the output device 104. Note that the prediction target is one type of data. In this case, for example, all the products handled in the warehouse may be collectively treated as one prediction target, or only a specific product may be treated as a prediction target.
[0016] Here, the predicted value 231, the prediction accuracy 232, the contribution 233, and the excluded targets 234 do not necessarily need to be displayed on the output device 104. For example, if the predicted value 231, the prediction accuracy 232, the contribution 233, and the excluded targets 234 are transmitted as data to the WMS 120 via the network 110, the WMS 120 can use this data to create work plans and personnel allocation within the warehouse. This can improve the efficiency of work within the warehouse.
[0017] The prediction device 100 has a performance value input unit 211, an explanatory variable input unit 212, a prediction unit 213, a predicted value output unit 214, and an information output unit 215. Specifically, these are functions realized by, for example, having the processor 101 execute a program stored in the storage device 102 shown in FIG.
[0018] <Example of prediction process> 3 is a flowchart showing a first example of a prediction process procedure by the prediction device 100. When the prediction device 100 starts a prediction process, the prediction device 100 takes in the result value 221 through the result value input unit 211 (step S301). Next, the prediction device 100 takes in the explanatory variable 222 used for prediction through the explanatory variable input unit 212 (step S302). Details of the result value 221 and the explanatory variable 222 will be described later with reference to FIG. 4.
[0019] Next, the prediction device 100 executes prediction of the shipment volume of the prediction target using the actual value 221 and the explanatory variable 222 by the prediction unit 213, and calculates the predicted value 231 (step S303). Here, the prediction unit 213 predicts the shipment volume, but is not necessarily limited to the shipment volume. In addition, the prediction device 100 calculates the prediction accuracy 232 and the contribution degree 233 of each explanatory variable 222 by the prediction unit 213.
[0020] Next, the prediction device 100 causes the predicted value output unit 214 to display the predicted value 231 and the prediction accuracy 232 calculated by the prediction unit 213 on a display, which is an example of the output device 104 (step S304).
[0021] Next, the prediction device 100 outputs the contribution 233 of each explanatory variable 222 calculated by the prediction unit 213 through the information output unit 215. Furthermore, the prediction device 100 refers to the contribution 233 of all explanatory variables 222 through the information output unit 215, and if the contribution 233 of each explanatory variable 222 is 0 or extremely close to 0 on any date in the prediction period, regards the explanatory variable 222 as an exclusion target 234, and outputs that the explanatory variable 222 is an exclusion target (step S305).
[0022] <Example of input data> 4 is an explanatory diagram showing an example of input data to the prediction device 100. The input data 400 has a performance value (objective variable) 221 and explanatory variables 222 as time-series data. As an example, the variable name 401 of the performance value 221 is the shipping amount of a certain product in a warehouse per day, and the variable name 401 of the explanatory variable 222 is the business days and weather of a shipping destination store. In addition, the date 402 is 1 / 1 to 2 / 4. The performance period is from 1 / 1 to 1 / 30, and the prediction period is from 1 / 31 to 2 / 4. The current date is 1 / 31.
[0023] Here, as an example, the prediction device 100 uses the actual values 221 of the actual period (from 1 / 1 to 1 / 30) to perform prediction for the prediction period (from 1 / 31 to 2 / 4) on 1 / 31. Note that the explanatory variables 222 are not limited to business days and weather. Also, the number of explanatory variables 222 used is arbitrary. Here, the explanatory variables 222 are set for both the actual period and the prediction period. Note that in FIG. 4, the date 402 in one-day units is used as an example of the period, but it is not limited to the date 402, and may be a predetermined time in one day or multiple consecutive dates.
[0024] <An example of the first output data> FIG. 5 is an explanatory diagram showing an example of the first output data output from the prediction device 100. The first output data 500 is the predicted value 231 and the prediction accuracy 232 output from the predicted value output unit 214. In FIG. 5 and FIG. 7 described later, the actual value 221, the predicted value 231, and the prediction accuracy 232 from 1 / 1 to 1 / 28 are omitted for the sake of explanation. The prediction device 100 outputs the predicted value 231 for both the actual period and the prediction period (from 1 / 1 to 2 / 4). The prediction device 100 outputs the prediction accuracy 232 by the prediction unit 213 based on the deviation between the actual value 221 and the predicted value 231 for each date in the actual period. The prediction accuracy 232 may be evaluated by any known method.
[0025] In the example of FIG. 5, the prediction unit 213 calculates the prediction accuracy and the prediction error according to the following equations (1) and (2). Prediction accuracy = 1 - prediction error (1) Forecast error = |Forecast value - Actual value| / Actual value (2) Here, the process (step S303) executed by the prediction unit 213 will be described with reference to FIG.
[0026] <Prediction process (step S303)> 6 is a flowchart showing a detailed example of the process procedure of the prediction process by the prediction unit 213 in step S303. The prediction device 100 calculates the predicted value 231 by the prediction unit 213 by setting the contribution 233 of each explanatory variable 222 for each date in the performance period so that the daily prediction accuracy 232 is maximized (step S601). The contribution 233 is the degree of influence on the predicted value 231 for the performance period.
[0027] Next, the prediction device 100 sets the contribution degree 233 determined in step S601 based on the explanatory variables 222 set for each date in the prediction period by the prediction unit 213, and calculates the prediction value 231. Next, the prediction device 100 outputs, by the prediction unit 213, the prediction value 231 of the performance period and the prediction period, the contribution degree 233, and the prediction accuracy 232 of the performance period.
[0028] The processes executed by the prediction unit 213 in steps S601 and S602 may be any prediction method using the explanatory variables 222 input by the explanatory variable input unit 212. For example, the prediction device 100 generates a prediction model by applying a combination of the actual value 221 and the explanatory variables 222 as a learning data set to an autoregression analysis, a multiple regression analysis, or deep learning. Then, the prediction device 100 may calculate a predicted value 231 of the shipment volume in the prediction period by providing the explanatory variables 222 for the prediction period to the prediction model.
[0029] The predicted value P is calculated by combining a prediction result P1 calculated from an arbitrary prediction method 1 (e.g., autoregression) with a prediction result P2 calculated using a prediction method 2 different from prediction method 1 (e.g., linear regression as shown in the following formula (4)) using the following formula (3), where α and β are weighting coefficients (where α+β=1).
[0030] P = α × P1 + β × P2 (3)
[0031] For example, in step S601, the prediction unit 213 applies combinations of α and β (including β1 and β2 when applying the following formula (4)) in a round-robin manner to calculate the contribution degree 233 so as to maximize the daily prediction accuracy 232 using the above formulas (1) and (2). Here, the contribution degree 233 of the prediction result P1 is α at which the prediction accuracy 232 is maximized, and the contribution degree 233 of the prediction result P2 is β at which the prediction accuracy 232 is maximized.
[0032] In addition, it is sufficient that one or both of the prediction results P1 and P2 are prediction results using the explanatory variables 222. For example, assuming that only the prediction result P2 is a prediction result using the explanatory variables 222, specifically, for example, assuming that P21 is a prediction value using the business days shown in Fig. 4 and P22 is a prediction value using the weather shown in Fig. 4, the prediction result P2 can be calculated by the following formula (4).
[0033] P2 = β1 × P21 + β2 × P22 (4)
[0034] Here, β1 and β2 are weighting coefficients, and β1+β2=1. In this case, the prediction unit 213 can calculate the contribution degree 233 of each business day and the contribution degree 233 of the weather as β×β1 and β×β2, respectively.
[0035] <An example of the second output data> Fig. 7 is an explanatory diagram showing an example of second output data output by the information output unit 215. The second output data 700 is data showing the contribution 233 and the exclusion target 234 output by the information output unit 215. In Fig. 7, as an example, the daily contribution 233 is displayed in % using a table 701 and a graph 702, and the "weather" of the explanatory variable 222, which is the exclusion target 234, is displayed using a notification column 703. The prediction method 1 of the table 701 and the graph 702 is P1 in the above formula (3).
[0036] From table 701, it can be seen that the contribution 233 of weather is 0% for both the dates of the forecast period and the actual period, and in this case, it is understood that the weather is unrelated to the forecast value 231 of the shipment amount (does not affect the forecast result). This applies, for example, to daily necessities that are shipped regularly without being affected by the weather. Therefore, the information output unit 215 regards the weather as an exclusion target 234, and notifies the user by, for example, displaying the words "Weather is a candidate for exclusion" in the notification field 703.
[0037] Here, any method may be used to notify the exclusion target 234. For example, in the table 701 of Fig. 7, the information output unit 215 may display the weather row in a color different from the colors of the other rows.
[0038] Furthermore, the criteria by which the information output unit 215 identifies the exclusion target 234 are not necessarily limited to the contribution 233 being 0% for all dates in the prediction period and the actual period. For example, a method is conceivable in which a threshold (a value greater than 0) is set in advance, and a case in which the contribution 233 is smaller than the threshold for any date is regarded as an exclusion target. Furthermore, the information output unit 215 may regard as an exclusion target 234 an explanatory variable 222 in which the contribution 233 is greater than 0 only for several dates (any period) in the first half of the actual period, and the contribution 233 is 0 in the actual period and prediction period thereafter.
[0039] According to the first embodiment, when the prediction device 100 periodically predicts the shipment amount, the user can determine that the explanatory variable 222 does not contribute to the prediction result by looking at the explanatory variable 222 designated as the excluded variable 234. The prediction device 100 performs prediction without using the excluded explanatory variable 222 from the next time onwards, so that the user can reduce the effort (man-hours) of obtaining and managing the data of the explanatory variable 222 at the time of the next prediction onwards, and the effort (man-hours) of inputting the data (explanatory variable 222) when using the prediction device 100. In addition, since the prediction device 100 can perform prediction with a small number of explanatory variables 222, the time required for the prediction unit 213 to perform prediction can be reduced.
[0040] Here, as a usage form of the prediction device 100, for example, when the prediction device 100 performs a first prediction, it may perform a prediction using a prediction method that is not very accurate but has a short processing time to obtain the excluded target 234, and then perform a prediction using a prediction method that is more accurate than the first prediction but has a long processing time, using new explanatory variables 222 that exclude the excluded target 234. This makes it possible to reduce the prediction time required for the first prediction.
[0041] Alternatively, for example, the excluded targets 234 for each product identified using the prediction device 100 in a certain warehouse may be stored in a database available from another warehouse of the logistics company. Then, when making a prediction using the prediction device 100 in another warehouse, the prediction device 100 may refer to the excluded targets 234 for the same product or similar products (e.g., the same product from a different manufacturer) stored in the database.
[0042] 3, when the explanatory variable input unit 212 performs the process of importing the explanatory variables 222, the prediction device 100 may notify the user of the excluded targets 234 (or the explanatory variables 222 that affect the prediction and are not the excluded targets 234) via the output device 104. This makes it possible to make predictions using appropriate explanatory variables 222 even when it is not known which explanatory variables 222 affect the prediction results in another warehouse.
[0043] Furthermore, the explanatory variable input unit 212 may store the explanatory variable 222 designated as the exclusion target 234, and when the prediction device 100 performs the next prediction, if the user inputs this exclusion target 234 to the prediction device 100, notify the output device 104 that the explanatory variable 222 was the exclusion target 234 at the time of the previous prediction. This makes it possible to prevent the user from inputting the explanatory variable 222 that was the exclusion target at the time of the previous prediction. EXAMPLES
[0044] Next, a second embodiment will be described. Except for the differences described below, each unit of the prediction device 100 of the second embodiment has the same function as each unit of the first embodiment with the same reference numerals shown in Figs. 1 to 7, and therefore the description thereof will be omitted. In addition to the first embodiment, the second embodiment will describe an embodiment having a process for appropriately evaluating, when any of the explanatory variables 222 is a fluctuation factor for the prediction result, how many days after the occurrence of the fluctuation factor the influence of the fluctuation factor appears in the shipping amount. In the second embodiment, the prediction target is one type of data. In this case, for example, all the products handled in the warehouse may be collectively treated as one prediction target, or only a specific product may be treated as the prediction target.
[0045] <Functional Configuration Example 2 of Prediction Device 100> 8 is a block diagram showing a second functional configuration example of the prediction device 100. In the second embodiment, in addition to the first embodiment, a shift target 801 is added to the input data, and a shift number of days 802 is added to the second output data 700. In addition, a correlation calculation unit 800 is added as a program module.
[0046] <Example of prediction process> Fig. 9 is a flowchart showing a second example of a prediction process procedure by the prediction device 100. Only steps that differ from the first example (Fig. 3) will be described. After step S301, the prediction device 100 inputs the explanatory variables 222 and the shift target 801 by the explanatory variable input unit 212 (step S901). Next, the prediction device 100 calculates a correlation coefficient between the actual value 221 and each explanatory variable 222 of the shift target 801 by the correlation calculation unit 800, and determines the number of shift days 802 for the explanatory variables 222 specified as the shift target (step S902).
[0047] Next, the prediction device 100 performs prediction using the actual value 221 and the explanatory variable 222 by the prediction unit 213, and calculates the predicted value 231, the prediction accuracy 232, and the contribution degree 233 (step S903). Here, as for the explanatory variable 222, the explanatory variable 222 designated as the shift target 801 is used for prediction after shifting the number of days by the shift number of days 802 calculated by the correlation calculation unit 800.
[0048] Next, the prediction device 100 outputs the contribution 233 of each explanatory variable 222, the number of shift days 802, and the excluded target 234 by the information output unit 215 after step S304. Here, a method of specifying the explanatory variable 222 of the shift target 801 will be described with reference to FIG. 4. For example, the information output unit 215 specifies the explanatory variable 222 of the shift target 801 in a form that can be processed by the prediction device 100 in a specification field of the variable name 401 of the explanatory variable 222. For example, the information output unit 215 may add a symbol (such as @) to the end of the variable name 401 of the explanatory variable 222 of the shift target 801 (not shown).
[0049] Next, a method for outputting the number of shift days 802 by the information output unit 215 will be described with reference to Fig. 7. Any output method can be used, but for example, a column for the number of shift days 802 can be added to the right end of the table 701 in Fig. 7 to display the number of shift days 802 for each explanatory variable 222 (not shown).
[0050] <How to determine the number of shift days 802> FIG. 10 is an explanatory diagram showing an example of a method for determining the number of shift days 802 by the correlation calculation unit 800. The contents of FIG. 10 can be displayed on a display. As an example, a case where a commercial (CM) is aired on television or the like is explained as a factor in fluctuations in the shipment volume of a certain product. In each of graphs (a) to (c) in FIG. 10, the horizontal axis indicates date 402, the left direction indicates the past, and the right direction indicates the future. Furthermore, in graph (a), the vertical axis indicates shipment performance, and in graphs (b) and (c), the vertical axis indicates the number of times a commercial was aired.
[0051] In Figure 10, (a) shows the actual shipments, and (b) shows the time series (daily series) data for the commercial airing date. Looking at these, we can see that the actual shipments rose sharply (pulse-like) on the +1 day after the commercial airing date.
[0052] 10, (c) is a diagram explaining how to shift the explanatory variable 222 of the commercial airing 1001 in the correlation calculation unit 800. The correlation calculation unit 800 shifts the time series data of the commercial airing by one day at a time from the number of days 0, calculates the correlation with the shipping record, and finds, for example, the number of days of shift with the highest correlation coefficient.
[0053] In the example of Fig. 10(c), the correlation calculation unit 800 determines that the explanatory variable 222 of commercial airing becomes the highest correlation coefficient with the time series data of the shipping record when the explanatory variable 222 of commercial airing is shifted by +1 day. In other words, the explanatory variable 222 of commercial airing is judged to have the highest correlation with the shipping record one day (+1 day) after the commercial airing (explanatory variable), and the correlation calculation unit 800 determines the number of days to shift 802 of the explanatory variable 222 of commercial airing to be +1 day. In this way, the correlation calculation unit 800 compares each of the explanatory variables 222 designated as the shift target 801 with the shipping record one by one to evaluate the correlation, calculates the number of days shift between the date of the shipping record where the correlation is the highest and the date of the explanatory variable event, and determines the number of days to shift 802 for each explanatory variable 222.
[0054] For the sake of explanation, Fig. 10 shows a simple example in which even a human can easily understand the number of shift days 802. However, in an actual logistics warehouse, the shipping volume is constantly fluctuating daily due to various (multiple) fluctuating factors (explanatory variables 222), so there are only a limited number of examples in which the correlation (number of shift days 802) between each explanatory variable 222 and shipping volume as shown in Fig. 10 can be determined at a glance.
[0055] By performing the shift number of days evaluation method of the second embodiment, even if the shift number of days 802 cannot be determined at a glance, it is possible to appropriately take into account the number of days on which the influence of each explanatory variable 222 (variation factor) appears relative to the shipping performance and shipping forecast. Here, the shift evaluation period 1002 may be any number of days. Although FIG. 10 shows an example in which the date is shifted only in the positive direction (future) of the time direction of the date 402, it may be shifted in the negative direction (past). When determining the number of days of shift with the highest correlation coefficient, it is unlikely that the maximum value occurs, for example, about one month (+about 30 days) after the event date of the explanatory variable 222, and it is reasonable to consider that the period in which a high correlation is obtained is somewhat limited. In addition, when the explanatory variable is a CM viewing rate or number of views, it is also possible to set a threshold value for the correlation based on the performance. Therefore, if the correlation exceeds a threshold value, it is determined that this is the maximum correlation, and the shift amount can be calculated by using the date closest to the event, or a maximum shift amount can be set for each explanatory variable, and the date within that range for which the correlation is maximum can be used to calculate the shift amount.
[0056] Weather forecast data is one of the fluctuation factors that should be shifted in the negative direction. For example, the shipment volume of snow removal equipment and boots increases several days before snow is forecast, so the number of days to shift 802 can be calculated by negatively correlating the snowy weather record data with the shipment record. Here, the method of outputting the exclusion target 234 in the second embodiment will be described with reference to FIG. 7 again.
[0057] In the second embodiment, the prediction device 100 specifies the exclusion target 234 based on the same criteria as in the first embodiment (such as the contribution degree 233 being 0 or less than a threshold). However, the notification content in the notification field 701 shown in FIG. 7 differs depending on whether the user has specified the exclusion target 234 as the shift target 801.
[0058] First, if the explanatory variable 222 has not been designated as a shift target 801, there is a possibility that the prediction result will be affected if the explanatory variable 222 is designated as a shift target 801. Therefore, the information output unit 215 displays, for example, "Explanatory variable z is a candidate for shift target or exclusion" in the notification field 703 to urge the user to designate it as a shift target 801 or to exclude it from the next prediction onwards (z is an explanatory variable 222). Next, if the explanatory variable 222 has been designated as a shift target 801, there is no possibility that the prediction result will be affected. Therefore, the information output unit 215 displays, for example, "Explanatory variable z is a candidate for exclusion" in the notification field 703 to urge the user to exclude it from the explanatory variables 222 from the next prediction onwards.
[0059] By the above method, the prediction device 100 can perform highly accurate prediction even in a situation where it is unknown how many days after the influence of the variable factor appears on the predicted value. Furthermore, the information output unit 215 displays the explanatory variables 222 whose contribution degree 233 is lower than a predetermined value on the output device 104. Therefore, when making predictions next time or later, the user can perform highly accurate predictions with fewer explanatory variables 222 by excluding the explanatory variables 222 or changing the settings of the shift target. Furthermore, as in the first embodiment, when making predictions next time or later, the effort (man-hours) of obtaining and managing the data of the explanatory variables 222 that have been excluded and the effort (man-hours) of inputting the data (explanatory variables 222) when using the prediction device 100 can be reduced.
[0060] <Effect of selecting candidates for shifting> FIG. 11 is a graph showing the effect of a user's selection of candidates for shifting. Graph 1100 in FIG. 11 can be displayed on a display. Graph 1100 is an example assuming a case where shipment prediction is performed for a seasonal product whose shipping performance gradually decreases from the first shipment of each year. In this case, for example, three explanatory variables 222 are used for prediction: the first week W1, the second week W2, and the third week W3 of shipment. Note that the user can select the candidates for shifting from a selection screen (not shown) for selecting the candidates for shifting.
[0061] In this example, when the correlation calculation unit 800 calculates the number of shift days 802 for each explanatory variable 222 (W1 to W3) using step S902 in Fig. 9, depending on how the correlation is calculated, all explanatory variables 222 for W1 to W3 may be deemed to have the highest correlation with the shipping record for the first week (2 / 4 to 2 / 10), making it impossible to perform appropriate prediction. Therefore, if the user does not specify each of the explanatory variables 222 for W1 to W3 as the shift target 801, the prediction device 100 can perform prediction that appropriately takes into account the influence of W1 to W3. EXAMPLES
[0062] Next, a third embodiment will be described. In the first and second embodiments, the case where one prediction target is used has been described. However, since a wide variety of products are handled in a logistics warehouse, there are cases where predictions are required to be made separately for each product type. For example, in the case of cosmetics, the shipping tendency differs between cosmetics destined for high-end stores (specialty stores, department stores, etc.) and cosmetics destined for mass retailers. In the third embodiment, an example where multiple types of data are used as prediction targets will be described. Note that, except for the differences described below, the same components as those in the first and second embodiments are given the same reference numerals and their description will be omitted.
[0063] The prediction process of the third embodiment will be described with reference to Fig. 9. In the following description, an example of performing the process of shifting the date of the explanatory variable 222 described in the second embodiment will be described, but the third embodiment can be implemented even when the explanatory variable 222 is not shifted as in the first embodiment.
[0064] When the prediction device 100 starts processing, the result value input unit 211 imports the result values 221 of multiple prediction targets (step S301). Next, the prediction device 100 imports the explanatory variables 222 and the shift target 801 by the explanatory variable input unit 212 (step S901). Here, the explanatory variable input unit 212 may specify the shift target 801 for each of the result values 221 imported in step S301.
[0065] Next, the prediction device 100 uses the correlation calculation unit 800 to obtain a correlation between each actual value 221 and the explanatory variable 222 of the shift target 801, and determines the number of shift days 802 for each actual value 221 (step S902). Next, the prediction device 100 uses the prediction unit 213 to perform prediction using each explanatory variable 222 shifted by the number of shift days 802 for each actual value 221 determined in step S902 for each prediction target, and calculates the predicted value 231, prediction accuracy 232, and contribution degree 233 of each explanatory variable 222 to each prediction target (step S903).
[0066] Next, the prediction device 100 outputs the predicted value 231 and the prediction accuracy 232 of each prediction target through the predicted value output unit 214 (step S304). Finally, the prediction device 100 outputs the contribution degree 233 of each explanatory variable 222 to each prediction target, the number of shift days 802, and the excluded targets 234 through the information output unit 215 (step S904).
[0067] Here, the predicted value output unit 214 may output the predicted value 231 and the prediction accuracy 232 of each prediction target in a separate table for each prediction target, for example, in the method shown in Fig. 5. Furthermore, the information output unit 215 may display the contribution 233 of each explanatory variable 222, the number of shift days 802, and the excluded targets 234 for each prediction target, for example, as second output data 700 as shown in Fig. 7.
[0068] According to the third embodiment, the prediction device 100 can perform prediction for each product category, and the user can understand which explanatory variables 222 contribute to the prediction result for each product category. As a result, when the prediction result is utilized for personnel planning in a logistics warehouse, for example, the user can appropriately set personnel to be allocated for each product category. Furthermore, when making predictions next time and thereafter, the prediction device 100 can make predictions excluding unnecessary explanatory variables 222, thereby reducing the user's effort in obtaining, managing, and inputting the explanatory variables 222 into the prediction device 100. EXAMPLES
[0069] In the first to third embodiments, examples have been described in which the explanatory variables 222 of the exclusion target 234 (or the shift target 801) are presented to the user by outputting the contribution 233 as the importance of the explanatory variables 222. In a fourth embodiment, an example will be described in which the prediction device 100 adds and outputs other information to improve prediction accuracy.
[0070] In a logistics warehouse, as mentioned above, the number of personnel that can be secured is limited, so there is a need to avoid an event in which the predicted value falls short of the actual value (this is called "undersizing"). When undersizing occurs in personnel allocation, there is a shortage of personnel by the amount obtained by subtracting the actual value from the predicted value. In addition, it is required to make the daily prediction error 321 as small as possible (to make the prediction accuracy 232 as high as possible). To achieve this, it is required to use an appropriate prediction method and to take into account the necessary explanatory variables 222 without deficiencies.
[0071] Therefore, in addition to the contribution 233 of each explanatory variable 222 described in the first to third embodiments, the prediction device 100 displays on the display whether or not there is a downward deviation in the prediction result for the performance period, and also displays days in the performance period when the daily prediction error 321 is particularly large (for example, days above a threshold value). This makes it possible to present to the user the validity of the prediction method used for prediction and the possibility of a shortage of explanatory variables 222.
[0072] Fig. 12 is an explanatory diagram showing an example of the presentation of explanatory variables 222 of the exclusion target 234 (or the shift target 801). In Fig. 12, (a) shows the predicted value 231 and actual value 221 of the shipment volume in the actual period (1 / 1 to 1 / 7). (b) shows the explanatory variable 222 (here, CM airing 1201 (times / day)) used in the prediction. Here, the prediction device 100 performs prediction using an arbitrary prediction method 1 and a prediction method 2 in which the CM airing 1201 is used as the explanatory variable 222.
[0073] The table in (c) shows, from the top row, the date 402, the prediction error 1202, the contribution 233 of prediction method 1, and the contribution 233 of commercial airing 1201, which is the explanatory variable 222 of prediction method 2. Here, on a day when the prediction result falls short, "Falling Short" is displayed in the row of the prediction error 1202. Furthermore, if the daily prediction error 1202 exceeds a threshold (prediction error threshold 1203. In the example of FIG. 12, it is evaluated using equation (2) and set to 0.5. However, the value of the prediction error threshold 1203 is arbitrary), the prediction device 100 changes the color of the table in (c).
[0074] From (c), it can be seen that the contribution 233 of commercial airing 1201 is low throughout the prediction period, and has almost no impact on the prediction results. On the other hand, it can be seen that the days when the downturn occurred (1 / 2 to 1 / 4) or the days when the prediction error 1202 is equal to or greater than the prediction error threshold 1203 account for more than half of the actual period. In such a case, as shown in (c), if the contribution 233 of prediction method 1 is high and the contribution 233 of commercial airing 1201, which is the explanatory variable 222 of prediction method 2, is both lower than a predetermined value, it is possible that either or both of the prediction methods 1 and CM airing 1201 used in the prediction are inappropriate.
[0075] Here, for example, the information output unit 215 displays in the notification field 703 the total number of days during the performance period when a downturn occurred or when the forecast error 1202 was equal to or greater than the forecast error threshold 1203. If this total accounts for a predetermined number of days (e.g., half) or more of the number of days in the performance period, a notification is displayed (not shown) encouraging the user to change the forecast method, add or change the explanatory variables 222 used in the forecast, or change the shift target 801 of each explanatory variable 222. This allows the user to become aware of the need to change the forecast method, as well as the need to change the explanatory variables 222 used in the forecast and the shift target 801.
[0076] Furthermore, the prediction device 100 may re-predict the shipment volume for the day when the forecast fell short, and set the contribution 233 so that the prediction error is minimized (the prediction accuracy is maximized). If the contribution 233 has decreased by a predetermined value or more before and after the re-prediction, the prediction device 100 may notify the user of the adverse effect by highlighting the prediction method 1 or the explanatory variable 222.
[0077] Although the fourth embodiment has described a downswing, the same applies to an event in which a predicted value exceeds a performance value (this is called an "upswing"). That is, in addition to the contribution 233 of each explanatory variable 222 described in the first to third embodiments, the prediction device 100 displays on the display whether or not there is an upswing in the prediction result for the performance period, and also displays days in which the daily prediction error 321 for the performance period is particularly large (above a specific error). This makes it possible to present to the user the validity of the prediction method used for prediction and the possibility of a shortage of explanatory variables 222.
[0078] Moreover, the embodiments to the fourth embodiment can be applied not only to logistics sites but also to other sites. For example, even in production sites, it is required to predict demand with as few explanatory variables 222 as possible due to the difficulty in obtaining consumer data. If the embodiments to the fourth embodiment are applied to the production site, the prediction device 100 can perform highly accurate prediction by excluding unnecessary explanatory variables 222 when making predictions from the second time onwards, and it is possible to reduce the effort required for the user to manage and obtain the explanatory variables 222.
[0079] The present invention is not limited to the above-described embodiments, and includes various modified examples and equivalent configurations within the spirit of the appended claims. For example, the above-described embodiments have been described in detail to clearly explain the present invention, and the present invention is not necessarily limited to those having all of the configurations described. Also, a part of the configuration of one embodiment may be replaced with a configuration of another embodiment. Also, a configuration of another embodiment may be added to a configuration of one embodiment. Also, a part of the configuration of each embodiment may be added, deleted, or replaced with another configuration.
[0080] In addition, each of the configurations, functions, processing units, processing means, etc. described above may be realized in hardware, for example by designing some or all of them as an integrated circuit, or may be realized in software by processor 101 interpreting and executing a program that realizes each function.
[0081] Information such as programs, tables, files, etc. that realize each function can be stored in a storage device such as a memory, a hard disk, or an SSD (Solid State Drive), or in a recording medium such as an IC (Integrated Circuit) card, an SD card, or a DVD (Digital Versatile Disc).
[0082] In addition, the control lines and information lines shown are those considered necessary for the explanation, and do not necessarily show all the control lines and information lines necessary for implementation. In reality, it can be considered that almost all components are connected to each other. [Explanation of symbols]
[0083] 100 Prediction Device 101 Processor 102 Storage Devices 211 Actual value input section 212 Explanatory variable input section 213 Prediction Department 214 Prediction value output section 215 Information Output Section 221 Actual value 222 Explanatory variables 231 Predicted value 232 Prediction Accuracy 233 Contribution 234 Exclusions 321 Prediction Error 800 Correlation calculation unit 1202 Forecast Error 1203 Prediction Error Threshold
Claims
1. A prediction device that predicts a predicted value of a prediction target based on an actual value of the prediction target and time series data of each of a plurality of explanatory variables, comprising: A processor for executing a program and a storage device for storing the program, The processor, Calculating prediction accuracy based on the actual value and the predicted value; calculating a first contribution degree, which is a degree of influence that the first explanatory variable has had on the predicted value, and a second contribution degree, which is a degree of influence that the second explanatory variable has had on the predicted value, based on a first predicted value predicted using time-series data of a first explanatory variable among the plurality of explanatory variables, a second predicted value predicted using time-series data of a second explanatory variable among the plurality of explanatory variables different from the first explanatory variable, and the prediction accuracy; determining an explanatory variable to be excluded from the plurality of explanatory variables based on the first contribution degree and the second contribution degree; Outputting the excluded object; re-predicting the first predicted value using time-series data of the first explanatory variable so as to maximize the prediction accuracy at a time point when an event occurs in which the first predicted value falls below the actual value; re-predicting the second predicted value using time-series data of the second explanatory variable so as to maximize the prediction accuracy at a time point when an event occurs in which the second predicted value falls below the actual value; calculating the first contribution and the second contribution based on the prediction accuracy, the re-predicted first predicted value, and the re-predicted second predicted value; A prediction device comprising:
2. A prediction device that predicts a predicted value of a prediction target based on an actual value of the prediction target and time series data of each of a plurality of explanatory variables, comprising: A processor for executing a program and a storage device for storing the program, The processor, Calculating prediction accuracy based on the actual value and the predicted value; calculating a first contribution degree, which is a degree of influence that the first explanatory variable has had on the predicted value, and a second contribution degree, which is a degree of influence that the second explanatory variable has had on the predicted value, based on a first predicted value predicted using time-series data of a first explanatory variable among the plurality of explanatory variables, a second predicted value predicted using time-series data of a second explanatory variable among the plurality of explanatory variables different from the first explanatory variable, and the prediction accuracy; determining an explanatory variable to be excluded from the plurality of explanatory variables based on the first contribution degree and the second contribution degree; predicting a predicted value of the prediction target using time series data of remaining explanatory variables excluding the excluded variable from among the plurality of explanatory variables; re-predicting the first predicted value using time-series data of the first explanatory variable so as to maximize the prediction accuracy at a time point when an event occurs in which the first predicted value falls below the actual value; re-predicting the second predicted value using time-series data of the second explanatory variable so as to maximize the prediction accuracy at a time point when an event occurs in which the second predicted value falls below the actual value; calculating the first contribution and the second contribution based on the prediction accuracy, the re-predicted first predicted value, and the re-predicted second predicted value; A prediction device comprising:
3. The prediction device according to claim 2, The processor, Calculating the first predicted value and the second predicted value by a first prediction method; predicting a predicted value of the prediction target using time-series data of the remaining explanatory variables by a second prediction method that has a longer processing time than the first prediction method but has higher prediction accuracy than the first prediction method; A prediction device comprising:
4. The prediction device according to claim 1 , The processor, The time series data of the first explanatory variable is designated as a shift target; determining a shift direction and a shift amount of the time series data of the first explanatory variable based on a correlation between the performance value and the time series data of the first explanatory variable; calculating the first contribution degree and the second contribution degree after the shift based on a first predicted value after the shift, which is predicted using the time series data of the first explanatory variable after shifting the time series data of the first explanatory variable by the shift amount in the shift direction, and a second predicted value after the shift, which is predicted using the time series data of the second explanatory variable; determining explanatory variables to be excluded based on the first contribution degree and the second contribution degree after the shift; A prediction device comprising:
5. The prediction device according to claim 4, The processor, determining the shift direction and the shift amount that maximize the correlation; A prediction device comprising:
6. The prediction device according to claim 1, The processor, Calculating the contribution of the first explanatory variable and the contribution of the second explanatory variable for each prediction target; determining explanatory variables for the excluded objects for each of the prediction objects; outputting the excluded object for each of the predicted objects; A prediction device comprising:
7. The prediction device according to claim 1, The processor, outputting a period during which the difference between the actual value and the predicted value falls outside a first allowable range; A prediction device comprising:
8. The prediction device according to claim 1, The processor, outputting a period during which the prediction accuracy falls outside a second acceptable range; A prediction device comprising:
9. A prediction method executed by a prediction device that predicts a predicted value of a prediction target based on an actual value of the prediction target and time-series data of each of a plurality of explanatory variables, comprising: A processor for executing a program and a storage device for storing the program, The prediction method includes: The processor, Calculating prediction accuracy based on the actual value and the predicted value; calculating a first contribution degree, which is a degree of influence that the first explanatory variable has had on the predicted value, and a second contribution degree, which is a degree of influence that the second explanatory variable has had on the predicted value, based on a first predicted value predicted using time-series data of a first explanatory variable among the plurality of explanatory variables, a second predicted value predicted using time-series data of a second explanatory variable among the plurality of explanatory variables different from the first explanatory variable, and the prediction accuracy; determining an explanatory variable to be excluded from the plurality of explanatory variables based on the first contribution degree and the second contribution degree; Outputting the excluded object; re-predicting the first predicted value using time-series data of the first explanatory variable so as to maximize the prediction accuracy at a time point when an event occurs in which the first predicted value falls below the actual value; re-predicting the second predicted value using time-series data of the second explanatory variable so as to maximize the prediction accuracy at a time point when an event occurs in which the second predicted value falls below the actual value; calculating the first contribution and the second contribution based on the prediction accuracy, the re-predicted first predicted value, and the re-predicted second predicted value; A prediction method comprising:
10. A prediction method executed by a prediction device that predicts a predicted value of a prediction target based on an actual value of the prediction target and time-series data of each of a plurality of explanatory variables, comprising: A processor for executing a program and a storage device for storing the program, The processor, Calculating prediction accuracy based on the actual value and the predicted value; calculating a first contribution degree, which is a degree of influence that the first explanatory variable has had on the predicted value, and a second contribution degree, which is a degree of influence that the second explanatory variable has had on the predicted value, based on a first predicted value predicted using time-series data of a first explanatory variable among the plurality of explanatory variables, a second predicted value predicted using time-series data of a second explanatory variable among the plurality of explanatory variables different from the first explanatory variable, and the prediction accuracy; determining an explanatory variable to be excluded from the plurality of explanatory variables based on the first contribution degree and the second contribution degree; predicting a predicted value of the prediction target using time series data of remaining explanatory variables excluding the excluded variable from among the plurality of explanatory variables; re-predicting the first predicted value using time-series data of the first explanatory variable so as to maximize the prediction accuracy at a time point when an event occurs in which the first predicted value falls below the actual value; re-predicting the second predicted value using time-series data of the second explanatory variable so as to maximize the prediction accuracy at a time point when an event occurs in which the second predicted value falls below the actual value; calculating the first contribution and the second contribution based on the prediction accuracy, the re-predicted first predicted value, and the re-predicted second predicted value; A prediction method comprising:
Citation Information
Patent Citations
Water quality-monitoring system
JP2001027634A
Shipping quantity predicting system
JP2005078277A
Demand forecast device
WO2018207878A1
