Product oil consumption prediction method and device, equipment and storage medium

Through independent variable correlation analysis and time series modeling of refined oil consumption, the problem of insufficient data mining and information overlap in the existing technology is solved, the accuracy and interpretability of refined oil consumption forecasting are improved, and a more accurate prediction is achieved. Accurate prediction results.

CN118710322APending Publication Date: 2024-09-27PETROCHINA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310306620.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-27
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing refined oil demand forecasting methods suffer from insufficient data feature mining and information overlap, resulting in poor forecasting accuracy and a lack of interpretability and systematicity.

Method used

Through correlation analysis of independent variables, significantly correlated independent variables are screened out, and time series models and prediction models are constructed. Combining the characteristics of nonlinear and seasonal changes, the impact of multiple independent variables is quantified and human judgment errors are reduced.

Benefits of technology

It improves the accuracy and interpretability of refined oil consumption forecasts, avoids the problems of insufficient data mining and overlapping information, and provides more accurate and systematic forecast results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710322A
    Figure CN118710322A
Patent Text Reader

Abstract

The invention relates to a prediction method and device for consumption of product oil, equipment and a storage medium. The method comprises the following steps: according to the correlation between each independent variable and the product oil consumption, screening out an independent variable obviously related to the product oil consumption from a plurality of preset independent variables; constructing a time sequence model corresponding to the product oil consumption and a time sequence model corresponding to each screened independent variable; constructing a product oil consumption prediction model according to the time sequence model corresponding to the product oil consumption and each screened independent variable; and predicting the product oil consumption in a specified period in the future based on historical data of the product oil consumption, the time sequence model corresponding to each screened independent variable and the product oil consumption prediction model. The prediction result accords with the nonlinear change characteristic of the dependent variable, and the influence of the multivariate independent variable is quantified through the model by combining the seasonal change characteristic of the dependent variable, so that the error caused by manual judgment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method and device, equipment and storage medium for predicting refined oil consumption. Background Art

[0002] The current mainstream domestic refined oil demand forecasting methods are:

[0003] 1) Elasticity coefficient method. This method is based on the ratio of the historical growth rate of refined oil consumption to the growth rate of GDP, and uses the GDP growth rate as the input condition to predict the growth rate of demand. The advantage of this method is that it is simple and easy to use, and the calculation process only involves multiplication and division. The disadvantage is that the prediction results lack interpretability and the prediction accuracy is poor.

[0004] 2) Trend prediction model. According to the trend characteristics of the historical data of refined oil consumption changing over time or the absolute value of GDP or the number of cars, single variable regression models such as linear, quadratic curve, Gomperz curve, "S" curve, exponential growth, etc. are used to predict future consumption values. The above models are all trend fitting models that come with Excel software, that is, trend line fitting function. The advantage of this method is that it is simple and easy to use, and a small amount of data can be used to build a model. The disadvantage is that only a single variable is used, there is a lack of understanding of the mechanism of oil consumption, and only extensive predictions can be made based on existing trends, which cannot reflect the impact of changes in the external environment. This trend prediction model is often used together with the expert opinion method. Experts make subjective corrections based on the results calculated by the trend prediction model and their personal views on changes in market demand.

[0005] 3) Location quotient method. This method assumes that gasoline consumption and per capita gasoline consumption are similar between regions. Based on the relative levels of gasoline consumption per unit of output value and per capita gasoline consumption in the region compared with the national level, given the future growth rate of gasoline consumption in each region, the demand in each region is calculated, and adjusted proportionally based on the national total forecast results. The advantage of this model is that it is simple and easy to use, and the model only contains division operations. The disadvantage is that it can only calculate the relative proportion of each province in the country, and the specific value depends on the predicted value of the national model, which has great limitations in use.

[0006] 4) Multiple regression method. Multiple linear regression is an improvement over the elasticity coefficient method and trend forecasting model. It selects as many explanatory factors as possible and determines the impact of each factor on demand through regression methods. However, due to the strong collinearity between a large number of independent variables, most variables will be filtered out, leaving only two or three independent variables in the final equation. In this case, the prediction of the dependent variable is almost equivalent to the prediction of the independent variable, which is a very difficult task, and the prediction accuracy cannot be guaranteed at all. More importantly, there is no systematic explanatory power.

[0007] The reasons why the existing methods have unsatisfactory prediction effects are mainly due to the following two aspects:

[0008] 1) Insufficient data feature mining. Methods such as elasticity coefficient and location quotient seek the direct relationship between economic growth and oil consumption growth, but do not analyze the impact of economic structure and industrial development on the demand for refined oil. Therefore, they are similar to black boxes; there is information overflow and poor accuracy.

[0009] 2) Information loss problem. Multiple linear regression is an improvement over the elasticity coefficient method and trend forecasting model. It selects as many explanatory factors as possible and determines the impact of each factor on demand through regression methods. However, this method cannot solve the problem of information overlap. For example, the destination of fixed asset investment includes the purchase of industrial products, transportation of industrial products, and personnel expenses. Among them, the purchase cost of industrial products will be converted into industrial added value. This causes the two variables to have information overlap. This cannot be solved by the multiple regression method. Only one variable can be eliminated, resulting in information loss. Summary of the invention

[0010] The present application provides a method and device for predicting the consumption of refined oil products, equipment and storage medium. The method for predicting the consumption of refined oil products of the present application avoids the shortcomings of insufficient data mining and information overlap by analyzing the correlation of independent variables. The prediction result conforms to the nonlinear change characteristics of the dependent variable itself, combines the seasonal change characteristics of the dependent variable, and quantifies the influence of multivariate independent variables through the model, reducing the error caused by human judgment.

[0011] In a first aspect, the present application provides a method for predicting refined oil consumption, the method comprising:

[0012] According to the correlation between each independent variable and the consumption of refined oil, the independent variable significantly correlated with the consumption of refined oil is screened out from the preset multiple independent variables;

[0013] Construct a time series model corresponding to the consumption of refined oil and a time series model corresponding to each selected independent variable;

[0014] Construct a prediction model for refined oil consumption based on the time series model corresponding to refined oil consumption and each selected independent variable;

[0015] Based on the historical data of refined oil consumption, the time series model corresponding to each screened independent variable and the refined oil consumption prediction model, the refined oil consumption in the specified future period is predicted.

[0016] In an embodiment of the present application, the method of predicting the consumption of refined oil in a future specified period based on the historical data of refined oil consumption and the time series model corresponding to each screened independent variable and the refined oil consumption prediction model includes:

[0017] Based on the time series model corresponding to the consumption of refined oil, the initial consumption of refined oil in the future specified period is predicted according to the historical data of refined oil consumption;

[0018] Based on the time series model corresponding to each selected independent variable, the value of each independent variable in the future specified period is predicted according to the historical data of each selected independent variable;

[0019] Based on the refined oil consumption prediction model, the refined oil consumption in the future specified period is calculated according to the initial refined oil consumption in the future specified period and the value of each independent variable.

[0020] In an embodiment of the present application, the correlation between each independent variable and the consumption of refined oil is tested by a first-order moving average model.

[0021] In an embodiment of the present application, the method of constructing a refined oil consumption prediction model according to the time series model corresponding to the refined oil consumption and each screened independent variable includes:

[0022] Pre-build the initial refined oil consumption forecast model;

[0023] The initial consumption of refined oil in a specified period is obtained according to the time series model corresponding to the consumption of refined oil;

[0024] Input the values ​​of the selected independent variables in the specified period and the initial refined oil consumption in the specified period into the initial refined oil consumption prediction model to obtain the predicted value of refined oil consumption in the specified period;

[0025] According to the predicted value of refined oil consumption in the specified period and the actual value of refined oil consumption, it is judged whether the initial refined oil consumption prediction model passes the white noise test:

[0026] When the initial refined oil consumption prediction model passes the white noise test, the initial refined oil consumption prediction model is deemed feasible;

[0027] When the initial refined oil consumption prediction model fails to pass the white noise test, the model parameters of the initial refined oil consumption prediction model are modified until the white noise test is passed.

[0028] In an embodiment of the present application, after determining that the initial refined oil consumption prediction model is feasible, the method further includes:

[0029] For each independent variable, test the correlation between the independent variable and the residual, and determine whether each independent variable passes the chi-square test:

[0030] When each independent variable passes the chi-square test, it is further determined that the initial refined oil consumption forecasting model is feasible;

[0031] When there is an independent variable that fails the chi-square test, the initial refined oil consumption prediction model is corrected, and the step of inputting the values ​​of the screened independent variables in the specified period and the initial refined oil consumption in the specified period into the initial refined oil consumption prediction model is returned until the independent variable passes the chi-square test.

[0032] In an embodiment of the present application, the initial refined oil consumption prediction model is the following expression:

[0033] y=y0+f(x1)+f(x2)+……f(x n )

[0034] Among them, y is the predicted value of refined oil consumption in the specified period, y0 is the initial refined oil consumption in the specified period, x1, x2, ..., x n are the values ​​of each independent variable in the specified period, f(x1), f(x2), ..., f(x n ) is the impact value of each independent variable on the consumption of refined oil.

[0035] In the embodiment of the present application, when x n For emergencies, x n The value is set to 0 or 1. n When the value is set to zero, f(x n ) is zero; when x n When the value is set to 1, f(x n ) is a preset value corresponding to the emergency event and determined by historical data.

[0036] In a second aspect, the present application relates to a device for predicting refined oil consumption, comprising:

[0037] A screening module, which is used to screen out the independent variables significantly correlated with the consumption of refined oil from the preset multiple independent variables according to the correlation between each independent variable and the consumption of refined oil;

[0038] The first construction module is used to construct a time series model corresponding to the consumption of refined oil and a time series model corresponding to each selected independent variable;

[0039] The second construction module is used to construct a refined oil consumption prediction model based on the time series model corresponding to the refined oil consumption and the selected independent variables;

[0040] The prediction module is used to predict the consumption of refined oil in a specified future period based on the historical data of refined oil consumption and the time series model corresponding to each screened independent variable and the refined oil consumption prediction model.

[0041] In a third aspect, the present application relates to an electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store computer programs; and the processor implements the above-mentioned method for predicting refined oil consumption when used to execute the program stored in the memory.

[0042] In a fourth aspect, the present application relates to a computer-readable storage medium on which a computer program is stored, characterized in that the computer program implements the above-mentioned method for predicting refined oil consumption when executed by a processor.

[0043] The above technical solution provided by the embodiment of the present application has at least some or all of the following advantages compared with the prior art:

[0044] The method for predicting refined oil consumption described in the embodiment of the present application selects independent variables significantly correlated with refined oil consumption from multiple preset independent variables based on the correlation between each independent variable and refined oil consumption; constructs a time series model corresponding to refined oil consumption and each selected independent variable; constructs a refined oil consumption prediction model based on the time series model of refined oil consumption and the selected independent variables; predicts refined oil consumption in a specified future period based on historical data of refined oil consumption and the time series model corresponding to each selected independent variable and the refined oil consumption prediction model, avoids the shortcomings of insufficient data mining and information overlap through correlation analysis of independent variables, conforms to the characteristics of nonlinear changes of the dependent variable itself, combines the characteristics of seasonal changes of the dependent variable, and quantifies the influence of multiple independent variables through the model, reducing errors caused by human judgment. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0047] Figure 1The flowchart of the method for predicting the consumption of refined oil according to the embodiment of the present application is schematically shown;

[0048] Figure 2 The following is a schematic diagram showing the application process of the method for predicting the consumption of refined oil according to an embodiment of the present application;

[0049] Figure 3 A schematic diagram of a method for predicting the consumption of refined oil according to another embodiment of the present application is shown;

[0050] Figure 4 Schematically shows a correlation coefficient diagram and a test schematic diagram of gasoline consumption and travel frequency index according to an embodiment of the present application;

[0051] Figure 5 A schematic diagram schematically shows the correlation between independent variables and residuals according to an embodiment of the present application;

[0052] Figure 6 A schematic diagram showing a comparison between a predicted value and an actual value of gasoline consumption according to an embodiment of the present application is shown;

[0053] Figure 7 A block diagram schematically shows a structure of a device for predicting refined oil consumption according to an embodiment of the present application; and

[0054] Figure 8 The structural block diagram of an electronic device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0056] See also Figure 1 , the present application provides a method for predicting the consumption of refined oil products, including:

[0057] S1, based on the correlation between each independent variable and the consumption of refined oil, select the independent variable significantly correlated with the consumption of refined oil from the preset multiple independent variables;

[0058] In practical applications, the method for predicting the consumption of refined oil products in this application is applied to the monthly and quarterly demand forecasting methods for refined oil products.

[0059] S2, construct the time series model corresponding to the consumption of refined oil and the time series model corresponding to each selected independent variable;

[0060] In practical applications, the dual-cycle dynamic model, which is at the forefront of forecasting science, is used for modeling, which combines the advantages of time series analysis models and multivariate regression analysis models; it can consider both the explanatory power of causal relationships and the seasonal and cyclical effects of demand changes.

[0061] For monthly and quarterly demand forecasts, demand has the characteristics of seasonal fluctuations, and the impact of time series is more prominent. Relying on SAS software (full name statistical analysis system, referred to as SAS, statistical analysis software), a transfer function model (ARIMAX model) is established. Figure 2 , the technical path is mainly divided into three steps: the first step is to build an ARIMA model (Autoregressive Integrated Moving Average model) of refined oil consumption, and observe its own time change law; the second step is to build an ARIMAX model for macroeconomic data and industry data that can be collected using refined oil, and then conduct a correlation analysis with refined oil consumption, and select other variables that meet the correlation test as independent variables; the third step is to conduct ARIMAX modeling on the dependent variable and independent variable composed of refined oil consumption, and predict the monthly and quarterly national refined oil demand with a prediction accuracy of more than 95%. First, the monthly and quarterly consumption of gasoline, kerosene and diesel are predicted respectively, and the total consumption of the three varieties is the refined oil consumption.

[0062] Among them, the ARIMA model is a differential integrated moving average autoregression model, also known as an integrated moving average autoregression model, which is one of the time series prediction and analysis methods; the ARIMAX model is a multivariate time series analysis, which refers to a model based on the ARIMA model and introduces other dependent variables. It is one of the time series prediction and analysis methods.

[0063] S3, constructing a refined oil consumption prediction model based on the time series model corresponding to the refined oil consumption and each selected independent variable;

[0064] S4, based on the historical data of refined oil consumption and the time series model corresponding to each screened independent variable and the refined oil consumption prediction model, predict the refined oil consumption in a future specified period, wherein the future specified period can be the next and the next two time periods (T+1 and T+2), or more time periods.

[0065] In this embodiment, in step S4, the refined oil consumption in a future specified period is predicted based on the historical data of refined oil consumption and the time series model corresponding to each screened independent variable and the refined oil consumption prediction model, including:

[0066] Based on the time series model corresponding to the consumption of refined oil, the initial consumption of refined oil in the future specified period is predicted according to the historical data of refined oil consumption;

[0067] Based on the time series model corresponding to each selected independent variable, the value of each independent variable in the future specified period is predicted according to the historical data of each selected independent variable;

[0068] Based on the refined oil consumption prediction model, the refined oil consumption in the future specified period is calculated according to the initial refined oil consumption in the future specified period and the value of each independent variable.

[0069] In this embodiment, in step S1, the correlation between each independent variable and the consumption of refined oil is tested by a first-order moving average model.

[0070] In this embodiment, in step S3, the refined oil consumption prediction model is constructed according to the time series model corresponding to the refined oil consumption and each screened independent variable, including:

[0071] Pre-build the initial refined oil consumption forecast model;

[0072] The initial consumption of refined oil in a specified period is obtained according to the time series model corresponding to the consumption of refined oil;

[0073] Input the values ​​of the selected independent variables in the specified period and the initial refined oil consumption in the specified period into the initial refined oil consumption prediction model to obtain the predicted value of refined oil consumption in the specified period;

[0074] According to the predicted value of refined oil consumption in the specified period and the actual value of refined oil consumption, it is judged whether the initial refined oil consumption prediction model passes the white noise test:

[0075] When the initial refined oil consumption prediction model passes the white noise test, the initial refined oil consumption prediction model is deemed feasible;

[0076] When the initial refined oil consumption prediction model fails to pass the white noise test, the model parameters of the initial refined oil consumption prediction model are modified until the white noise test is passed.

[0077] In this embodiment, after determining that the initial refined oil consumption prediction model is feasible, the method further includes:

[0078] For each independent variable, test the correlation between the independent variable and the residual, and determine whether each independent variable passes the chi-square test:

[0079] When each independent variable passes the chi-square test, it is further determined that the initial refined oil consumption forecasting model is feasible;

[0080] When there is an independent variable that fails the chi-square test, the initial refined oil consumption prediction model is corrected, and the step of inputting the values ​​of the screened independent variables in the specified period and the initial refined oil consumption in the specified period into the initial refined oil consumption prediction model is returned until the independent variable passes the chi-square test.

[0081] In this embodiment, the initial refined oil consumption prediction model is expressed as follows:

[0082] y=y0+f(x1)+f(x2)+……f(x n )

[0083] Among them, y is the predicted value of refined oil consumption in the specified period, y0 is the initial refined oil consumption in the specified period, x1, x2, ..., x n are the values ​​of each independent variable in the specified period, f(x1), f(x2), ..., f(x n ) is the impact of each independent variable on the consumption of refined oil. n For emergencies, at x n The value is set to 0 or 1, in x n When the value is set to zero, f(x n ) is zero; at x n When the value is set to 1, f(x n ) is a preset value corresponding to the emergency and determined by historical data. For example, when the emergency is to waive the highway toll, n When the value is set to zero, f(x n ) is zero; at x n When the value is set to 1, f(x n ) is the value taken when there has been a situation where highway tolls have been waived.

[0084] like Figure 3 As shown, an exemplary embodiment is provided to explain the method for predicting the consumption of refined oil products of the present application, including:

[0085] A brainstorming method was used to frame 107 macroeconomic and oil industry indicators as candidate independent variables. By consulting authoritative experts in the fields of economy, automobile, transportation, electricity, etc. at home and abroad, more than 100 indicators that can represent the changing trends of the economy and oil industry were initially selected.

[0086] Virtual variables are set to solve the problem of singular values ​​of the dependent variable (special, temporary, occasional, and irregular problems in statistics). In accordance with the principle of not artificially adjusting individual abnormal values ​​of the dependent variable, virtual variables of "0" and "1" are set to reflect the impact of abnormal emergencies such as "public health safety incidents", "free highway tolls", and "financial crisis" on the value of the dependent variable at a certain time point, avoiding the destruction of the inherent rules of the dependent variable by singular values, and also providing a basis for judgment when similar emergencies occur in the future.

[0087] Separately model each dependent variable (monthly gasoline consumption, quarterly gasoline consumption, monthly kerosene consumption, quarterly kerosene consumption, monthly diesel consumption, quarterly diesel consumption) to extract regularity (ARIMA model). Taking the monthly gasoline demand forecast model (ARIMA model) as an example, in the event of a public health and safety incident, the travel frequency of gasoline vehicles has a greater impact on gasoline consumption. In order to verify the correlation between the travel frequency of gasoline vehicles and gasoline consumption, the following specific screening process was carried out: the independent variable was named cxpl, the independent variable modeling program, and the independent variable model was a first-order sliding average model (screening independent variables). The cross-correlation test with the dependent variable (gasoline consumption) is as follows:

[0088] Cross-correlation test procedure with the dependent variable:

[0089] identify var=yfq crosscorr=(cxpl)nlag=48;

[0090] See also Figure 4 From the correlation coefficient diagram CCF and test, we can see that the Chi-Square test is greater than 0.05, that is, the residual is white noise and the model is correct. cxpl is correlated with gasoline consumption, that is, the new variable can be introduced into the gasoline model.

[0091] After the correlation analysis of other independent variables with the dependent variable, the independent variables finally selected to enter the model include local refinery gasoline output (idqc), national gasoline output (iqc), gasoline imports (iqi), travel frequency (cxpl) and gasoline vehicle ownership (cqb0a) (for each independent variable, a prediction model is established). Establish an ARIMAX model.

[0092] identify var=yfq crosscorr=(idqc cqb0a cqx0a iqks iqc iqi hgzj hgzbhsxl pqcj jan feb mar apr may jun jul aug sep oct nov dec t2102 t2002)nlag=48;

[0093] estimate p=(1)input=((1)cqb0a,idqc,iqc,iqi,(1)cxpl)plot;

[0094] forecast id=date lead=4interval=month printall out=work.yfq;

[0095] Run the ARIMAX model and perform a white noise test (Chi-Square test greater than 0.05). After passing the white noise test, it can be preliminarily determined that the model is feasible. If it fails the white noise test, the relevant parameters of the ARIMAX model need to be modified again until it passes the white noise test.

[0096] See also Figure 5 Taking the chi-square test results of the two independent variables, gasoline vehicle ownership (cqboa) and local refinery gasoline output (idqc), as an example, the correlation between the independent variables and the residuals is tested.

[0097] A chi-square test is performed on each independent variable. If all the independent variables pass the chi-square test, it means that all the independent variables have no correlation with the residuals and the model is feasible. If some independent variables fail the chi-square test, the ARIMAX model needs to be revised until it passes the chi-square test.

[0098] After passing the chi-square test, running the ARIMAX model, we can get the forecast values ​​of gasoline demand for T+1 (the next month) and T+2 (the next two months). Compare the forecast values ​​of gasoline demand with the actual values ​​to get the model prediction accuracy. The higher the model prediction accuracy, the higher the credibility of the model. Figure 6 , Taking the monthly gasoline demand model as an example, the average forecast accuracy for 24 months from January 2020 to December 2021 was 96%.

[0099] The method for predicting refined oil consumption in the present application utilizes time series prediction technology to screen independent variables. Only independent variables that pass the correlation test can enter the model, thus avoiding the lack of effective independent variables and the interference of invalid independent variables, and can improve the prediction accuracy of refined oil consumption. For example, in the gasoline demand prediction model, the sales volume of gasoline vehicles fails the correlation test, while the ownership shows a strong correlation, indicating that the sales volume data does not have a direct impact on gasoline consumption.

[0100] The method for predicting the consumption of refined oil in this application can find the delayed effect of the independent variable on the dependent variable by analyzing the correlation of the independent variable, and improve the logic of explaining the change in demand. For example, in the diesel demand prediction model, the economic comparison index of the price of automotive LNG and automotive diesel is introduced. The correlation analysis of this index shows that the index affects diesel consumption 2 months in advance, that is, after the price ratio of automotive LNG to automotive diesel decreases, drivers are more willing to drive LNG trucks with lower fuel costs. Since trucks have the characteristics of long-distance operation, the diesel consumption will show a downward trend two months later.

[0101] The prediction method of refined oil consumption in the present application introduces virtual variable settings, such as the impact of public health and safety incidents, so as to more comprehensively reflect the impact of changes in external laws on refined oil consumption, so that the prediction accuracy can reach more than 95%.

[0102] See also Figure 7 The present application provides a device for predicting the consumption of refined oil, comprising:

[0103] A screening module 11 is used to screen out the independent variables significantly correlated with the consumption of refined oil from the preset multiple independent variables according to the correlation between each independent variable and the consumption of refined oil;

[0104] A first construction module 12 is used to construct a time series model corresponding to the consumption of refined oil and a time series model corresponding to each selected independent variable;

[0105] The second construction module 13 is used to construct a refined oil consumption prediction model according to the time series model corresponding to the refined oil consumption and each screened independent variable;

[0106] The prediction module 14 is used to predict the consumption of refined oil in a specified future period based on the historical data of refined oil consumption and the time series model corresponding to each screened independent variable and the refined oil consumption prediction model.

[0107] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0108] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can be referred to the description in the method embodiment. The device embodiment described above is only schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of this application. Ordinary technicians in this field can understand and implement it without paying creative work.

[0109] In the above second embodiment, any two or more of the screening module 11, the first building module 12, the second building module 13 and the prediction module 14 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. At least one of the screening module 11, the first building module 12, the second building module 13 and the prediction module 14 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the screening module 11, the first building module 12, the second building module 13 and the prediction module 14 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be performed.

[0110] See also Figure 8 The fourth exemplary embodiment of the present application provides an electronic device, including a processor 1110, a communication interface 1120, a memory 1130 and a communication bus 1140, wherein the processor 1110, the communication interface 1120, and the memory 1130 communicate with each other through the communication bus 1140; the memory 1130 is used to store computer programs; when the processor 1110 is used to execute the program stored in the memory 1130, the method for predicting the consumption of refined oil is implemented as follows:

[0111] According to the correlation between each independent variable and the consumption of refined oil, the independent variable significantly correlated with the consumption of refined oil is screened out from the preset multiple independent variables;

[0112] Construct a time series model corresponding to the consumption of refined oil and a time series model corresponding to each selected independent variable;

[0113] Construct a prediction model for refined oil consumption based on the time series model corresponding to refined oil consumption and each selected independent variable;

[0114] Based on the historical data of refined oil consumption, the time series model corresponding to each screened independent variable and the refined oil consumption prediction model, the refined oil consumption in the specified future period is predicted.

[0115] The communication bus 1140 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0116] The communication interface 1120 is used for communication between the above electronic device and other devices.

[0117] The memory 1130 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk storage. Optionally, the memory 1130 may also be at least one storage device located away from the processor 1110.

[0118] The above-mentioned processor 1110 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0119] The present application also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the method for predicting the consumption of refined oil as described above is implemented.

[0120] The computer-readable storage medium may be included in the device / apparatus described in the above embodiment; or it may exist independently without being assembled into the device / apparatus. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method for predicting the consumption of refined oil according to the embodiment of the present application is implemented.

[0121] According to an embodiment of the present application, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0122] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0123] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A method for predicting the consumption of refined oil, characterized in that: The method comprises: According to the correlation between each independent variable and the consumption of refined oil, the independent variable significantly correlated with the consumption of refined oil is screened out from the preset multiple independent variables; Construct a time series model corresponding to the consumption of refined oil and a time series model corresponding to each selected independent variable; Construct a prediction model for refined oil consumption based on the time series model corresponding to refined oil consumption and each selected independent variable; Based on the historical data of refined oil consumption, the time series model corresponding to each screened independent variable and the refined oil consumption prediction model, the refined oil consumption in the specified future period is predicted.

2. The method according to claim 1, wherein: The method of predicting the consumption of refined oil in a future specified period based on the historical data of refined oil consumption and the time series model corresponding to each screened independent variable and the refined oil consumption prediction model comprises: Based on the time series model corresponding to the consumption of refined oil, the initial consumption of refined oil in the future specified period is predicted according to the historical data of refined oil consumption; Based on the time series model corresponding to each selected independent variable, the value of each independent variable in the future specified period is predicted according to the historical data of each selected independent variable; Based on the refined oil consumption prediction model, the refined oil consumption in the future specified period is calculated according to the initial refined oil consumption in the future specified period and the value of each independent variable.

3. The method according to claim 1, wherein: The correlation between each independent variable and the consumption of refined oil is tested by a first-order moving average model.

4. The method according to claim 1, wherein: The method of constructing a refined oil consumption prediction model based on the time series model corresponding to the refined oil consumption and each screened independent variable includes: Pre-build the initial refined oil consumption forecast model; The initial consumption of refined oil in a specified period is obtained according to the time series model corresponding to the consumption of refined oil; Input the values ​​of the selected independent variables in the specified period and the initial refined oil consumption in the specified period into the initial refined oil consumption prediction model to obtain the predicted value of refined oil consumption in the specified period; According to the predicted value of refined oil consumption in the specified period and the actual value of refined oil consumption, it is judged whether the initial refined oil consumption prediction model passes the white noise test: When the initial refined oil consumption prediction model passes the white noise test, the initial refined oil consumption prediction model is deemed feasible; When the initial refined oil consumption prediction model fails to pass the white noise test, the model parameters of the initial refined oil consumption prediction model are modified until the white noise test is passed.

5. The method according to claim 4, wherein: After determining that the initial refined oil consumption forecasting model is feasible, the method further includes: For each independent variable, test the correlation between the independent variable and the residual, and determine whether each independent variable passes the chi-square test: When each independent variable passes the chi-square test, it is further determined that the initial refined oil consumption forecasting model is feasible; When there is an independent variable that fails the chi-square test, the initial refined oil consumption prediction model is corrected, and the step of inputting the values ​​of the screened independent variables in the specified period and the initial refined oil consumption in the specified period into the initial refined oil consumption prediction model is returned until the independent variable passes the chi-square test.

6. The method according to claim 4, wherein: The initial refined oil consumption prediction model is expressed as follows: y=y0+f(x1)+f(x2)+……f(x n ) Among them, y is the predicted value of refined oil consumption in the specified period, y0 is the initial refined oil consumption in the specified period, x1, x2, ..., x n are the values ​​of each independent variable in the specified period, f(x1), f(x2), ..., f(x n ) is the impact value of each independent variable on the consumption of refined oil.

7. The method according to claim 6, wherein: When x n For emergencies, x n The value is set to 0 or 1. n When the value is set to zero, f(x n ) is zero; when x n When the value is set to 1, f(x n ) is a preset value corresponding to the emergency event and determined by historical data.

8. A device for predicting the consumption of refined oil, characterized in that: include: A screening module, which is used to screen out the independent variables significantly correlated with the consumption of refined oil from the preset multiple independent variables according to the correlation between each independent variable and the consumption of refined oil; The first construction module is used to construct a time series model corresponding to the consumption of refined oil and a time series model corresponding to each selected independent variable; The second construction module is used to construct a refined oil consumption prediction model based on the time series model corresponding to the refined oil consumption and the selected independent variables; The prediction module is used to predict the consumption of refined oil in a specified future period based on the historical data of refined oil consumption and the time series model corresponding to each screened independent variable and the refined oil consumption prediction model.

9. An electronic device, characterized in that: The method comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store computer programs; and the processor, when used to execute the program stored in the memory, implements the method for predicting the consumption of refined oil according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the method for predicting the consumption of refined oil according to any one of claims 1 to 7.