Time sequence prediction method and system based on ARIMA order optimization
Through the combination of sliding window and kernel density probability function, the order selection of ARIMA model is optimized, which solves the problems of over-fitting and under-fitting in time series data prediction, and achieves more accurate tunnel structure settlement prediction.
Patent Information
- Application Number
- CN202410757672.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-18
AI Technical Summary
The selection of ARIMA model order has a significant impact on the prediction effect and generalization ability of time series data, and is prone to overfitting or underfitting. Existing methods are limited by the data requirements and linear assumptions of the model and cannot effectively handle multivariate factors.
A sliding window is used to globally scan the training set data, and the error index is estimated using the kernel density probability function. The predictive capabilities of different order combination models are compared, and the optimal (p, d, q) parameters are selected to construct the autoregressive differential movement. The platform model is used to predict the settlement of tunnel structures.
Through quantitative comparison methods, we avoid judgments based on empirical factors, provide a more accurate model construction solution, solve the optimization problem of ARIMA model order selection, and improve the accuracy and generalization ability of time series prediction.
Smart Images

Figure CN118797567A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of structural engineering, and in particular relates to a time series prediction method and system based on ARIMA order optimization. Background Art
[0002] Underwater tunnels are affected by complex underwater geological conditions, and their load-structure system has relatively active initial adaptive adjustments, which are prone to uneven longitudinal settlement. By building an underwater tunnel structural health monitoring system, the process and laws of uneven settlement of tunnel structures can be grasped in real time, and abnormal information can be promptly warned. Fully tapping the value of massive monitoring data, using advanced data-driven models to learn knowledge and predict trends from historical data, and effectively supporting the evaluation of tunnel structure service performance status is one of the important means to achieve preventive maintenance and smart decision-making.
[0003] At present, the analysis and prediction methods for time series data of structural settlement monitoring are divided into two directions: qualitative analysis and quantitative analysis. Quantitative prediction models based on statistical theory have been rapidly developed, among which the representative one is the ARIMA model. The ARIMA model is a classic model for time series prediction in the engineering field.
[0004] However, the selection of ARIMA model order: p, d, q, represents the order of autoregressive (AR) model, difference (I) operation and moving average (MA) part, which has a significant impact on the prediction effect and generalization ability of time series data, and is prone to overfitting or underfitting. Common ARIMA model order adjustment methods include grid search method, observation autocorrelation function (ACF) and partial autocorrelation function (PACF), use of information criterion, etc., which can preliminarily determine the values of p and q. However, due to the model's requirements on data, linear assumptions, and inability to handle multivariate factors, it is still necessary to weigh and select according to the actual situation. Summary of the invention
[0005] Purpose of the invention: In order to solve the above problems, the present invention provides a time series prediction method and system based on ARIMA order optimization.
[0006] Technical solution: A time series forecasting method based on ARIMA order optimization includes the following steps:
[0007] Acquire tunnel structure settlement data according to the monitoring time series, pre-process the tunnel structure settlement data and decompose it according to trend, seasonality and residual; determine the stability of the tunnel structure settlement data to obtain stable time series data and non-stationary time series data; perform the following steps on the stable time series data:
[0008] Create an autoregressive differential moving platform model, and determine the autoregressive order p0, the moving average order q0, and the differential order d0 of the autoregressive differential moving platform model;
[0009] Delimiting test set data from the stationary time series data using the autoregressive differential moving platform model; performing motion detection on the test set data based on a moving window of a predetermined time length to obtain a predicted data set; performing error comparison between the predicted data set and the actual data set to obtain an evaluation index;
[0010] Performing kernel density probability estimation on the evaluation index and integrating probability values in a predetermined interval to select a model order;
[0011] Based on the model order, the tunnel structure settlement is predicted using the autoregressive difference moving platform model.
[0012] In a further embodiment, the determination of the difference order d0 includes the following process:
[0013] The non-stationary time series data is subjected to difference processing, and a unit root test method is used to perform a stationarity test on the difference-processed data to determine the difference order d0.
[0014] In a further embodiment, the predetermined time length is t, t=γ*T, T represents the predicted time step, and γ is a coefficient.
[0015] In a further embodiment, performing kernel density probability estimation on the evaluation indicator includes the following process:
[0016] The Gaussian kernel function is used to make a smooth estimate of the evaluation index, and the probability value distribution corresponding to the evaluation index is obtained under the moving detection of the moving window;
[0017] For any set of evaluation indicators X = {x1, x2, ..., x n}, its kernel density estimate at any point x Calculated by the following formula:
[0018]
[0019] In the formula, n represents the number of samples, h is the smoothing parameter, and x i is the i-th observation value, K represents the kernel function;
[0020] The expression of K is: Where u is the offset.
[0021] In a further embodiment, the evaluation index includes at least mean square error, mean absolute error, and root mean square error.
[0022] In a further embodiment, the moving window detects the entire historical duration of the collected time series data in sequence to obtain a sequence of evaluation indicators of the autoregressive difference moving platform model ARIMA (q0, d0, q0) on the global data.
[0023] In another technical solution, a time series prediction system based on ARIMA order optimization is provided, which is used for the above-mentioned time series prediction method based on ARIMA order optimization, and the system includes:
[0024] The first module is configured to obtain tunnel structure settlement data according to the monitoring time series, pre-process the tunnel structure settlement data and decompose it according to trend, seasonality and residual; determine the stability of the tunnel structure settlement data, and obtain stable time series data and non-stationary time series data;
[0025] The second module is configured to perform the following steps on the stationary time series data: create an autoregressive difference moving platform model, determine the autoregressive order p0, the moving average order q0, and the difference order d0 of the autoregressive difference moving platform model;
[0026] The third module is configured to use the autoregressive difference moving platform model to delineate test set data from the stationary time series data; perform motion detection on the test set data based on a moving window of a predetermined time length to obtain a predicted data set; perform error comparison between the predicted data set and the actual data set to obtain an evaluation index;
[0027] A fourth module is configured to perform kernel density probability estimation on the evaluation index and integrate probability values in a predetermined interval to select a model order;
[0028] The fifth module is configured to predict the settlement of the tunnel structure based on the model order using an autoregressive difference moving platform model.
[0029] In another technical solution, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the time series prediction method based on ARIMA order optimization as described above is implemented.
[0030] Beneficial effects:
[0031] (1) The present invention combines the characteristics of underwater tunnel structure settlement time series data, proposes to use a sliding window to continuously scan the training set data (the global historical data of tunnel structure settlement) to obtain global evaluation indicators, innovatively introduces the kernel density function to quantitatively analyze the probability value of the same error interval, selects the optimal (p, d, q) parameter model to predict the tunnel structure settlement, and constructs a complete process of time series prediction system, so that when technicians analyze and predict time series data, they avoid the empirical factor judgment in the conventional selection method, determine the optimal model in a quantitative comparison method, and provide a more accurate model construction scheme;
[0032] (2) The present invention provides a method for solving the problem of optimizing the optimal order (p, d, q) of the AR and MA parts of the ARIMA model; a sliding window is introduced into the prediction system to perform a global scan of the training set data, and a kernel density probability function is proposed to estimate the error index reflecting the global prediction ability of the model, and calculate the probability value of a specified interval; thereby, the prediction abilities of combined models of different orders are compared, and the optimal model is selected for system prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a framework flow chart of the present invention;
[0034] Figure 2 It is the settlement monitoring data;
[0035] Figure 3 It is the decomposition of data components;
[0036] Figure 4 are the autocorrelation and partial autocorrelation plots;
[0037] Figure 5 It is a timing diagram after first-order difference processing;
[0038] Figure 6 This is a schematic diagram of the global historical data time window monitoring principle;
[0039] Figure 7 is the indicator sequence and probability distribution obtained by the mobile detection window;
[0040] Figure 8 It is a comparison chart of two groups of order probability distribution curves;
[0041] Fig. 9 This is a comparison of the prediction effects of the ARIMA(3,1,4) and ARIMA(5,1,4) models. DETAILED DESCRIPTION
[0042] Example 1
[0043] In order to build the optimal ARIMA model, we sorted out the following Figure 1The prediction algorithm framework process shown in the figure is used to determine the appropriate combination (p, d, q). A sliding window is added to the prediction algorithm framework process to continuously scan the training set data in sequence, and the evaluation indicators (MSE, RMSE, MAE) of the predicted data and the actual data are obtained. The initial ARIMA (p0, d0, q0) is changed once, and the corresponding evaluation indicators are calculated. Specifically, this embodiment - a time series prediction method based on ARIMA order optimization is proposed, including the following steps:
[0044] S100, acquiring tunnel structure settlement data according to the monitoring time series, preprocessing the tunnel structure settlement data and decomposing the data according to trend, seasonality and residual; judging the stability of the tunnel structure settlement data to obtain stable time series data and non-stationary time series data.
[0045] like Figure 2 The following figure shows the settlement data of a tunnel structure (time series continuous data of civil engineering structure status monitoring, acquired through monitoring sensor system). The monitored time series data is preprocessed and its trend, seasonality and residual components are decomposed, as shown in Figure 1. Figure 3 As shown. A preliminary visual observation of the data shows that the data contains trends and seasonal components, and a preliminary judgment is made on the stability of the tunnel structure settlement data. The judgment is based on the fact that if the time series value only changes randomly around a certain constant and there is no trend of periodic regularity, the data is stable and stable time series data is obtained; otherwise, the data is non-stationary and non-stationary time series data is obtained.
[0046] The following steps are performed on the stationary time series data:
[0047] S200, creating an autoregressive differential moving platform model, and determining the autoregressive order p0, the moving average order q0, and the differential order d0 of the autoregressive differential moving platform model.
[0048] The common method is used to draw the autocorrelation and partial autocorrelation images, and the autoregressive order and moving average order of the autoregressive difference moving platform model ARIMA (p0, d0, q0) are preliminarily determined. Figure 4 As shown, p0=5 and q0=3 are initially determined.
[0049] The determination of the difference order d0 includes the following process: performing difference processing on the non-stationary time series data, and using the unit root test method to perform a stationarity test on the differenced data to determine the difference order d0. Figure 5 Shown is the timing diagram after first-order difference processing.
[0050] S300, using the autoregressive differential moving platform model to define test set data from the stationary time series data; performing motion detection on the test set data based on a moving window of a predetermined time length to obtain a predicted data set; performing error comparison between the predicted data set and the actual data set to obtain an evaluation index.
[0051] The predetermined time length is t, t=γ*T, T represents the predicted time step, and γ is a coefficient.
[0052] In this example, a fixed-length moving window is designed, and the window length t=20*T is selected to meet the requirements of the model for short-term prediction. The initial model ARIMA(p0,d0,q0) is used to predict the test data in the window. The moving window performs movement detection on the test set data, and the error between the predicted data set generated by the movement and the actual data set is compared to obtain the overall evaluation index of the test set, such as Figure 6 As shown, a schematic diagram of the principle of using a time window to detect global historical data and obtain evaluation indicators.
[0053] The moving window detects the entire historical duration of the collected time series data in turn, and obtains a sequence of evaluation indicators of the autoregressive difference mobile platform model ARIMA (p0, d0, q0) on the global data. The evaluation indicators include at least the mean square error (MSE), mean absolute error (MAE), and root mean square error (RMSE). The smaller the value, the higher the model accuracy.
[0054] S400, performing kernel density probability estimation on the evaluation index, and performing integral operation on probability values in a predetermined interval to select a model order.
[0055] Furthermore, performing kernel density probability estimation on the evaluation index includes the following process:
[0056] The Gaussian kernel function is used to make a smooth estimate of the evaluation index, and the probability value distribution corresponding to the evaluation index is obtained under the moving detection of the moving window;
[0057] For any set of evaluation indicators X = {x1, x2, ..., x n}, its kernel density estimate at any point x Calculated by the following formula:
[0058]
[0059] In the formula, n represents the number of samples, h is the smoothing parameter, and x i is the i-th observation value, K represents the kernel function;
[0060] The expression of K is: Where u is the offset.
[0061] The mobile detection method can obtain the error data series under specific model parameter conditions, namely MSE, RMSE and MAE, such as Figure 7 shown.
[0062] After calculating the kernel density probability estimation function (curve) of the three evaluation indicators, the probability values within the specified interval are integrated and compared and analyzed. Figure 8 Shown is a comparison of two groups of order MSE probability distribution curves.
[0063] S500: Based on the model order, predict the tunnel structure settlement using an autoregressive difference moving platform model.
[0064] As shown in the following table, the values of the autoregressive and moving average parts were adjusted based on the initial order (5,1,3), and the probability values of the evaluation indicators in the interval [0,0.1] were obtained. It was found that (3,1,4) had a higher probability value and should be selected as the prediction model order to support the effective operation of this time series prediction system.
[0065] like Fig. 9 As shown in the figure, the prediction effects of ARIMA (3,1,4) and ARIMA (5,1,4) models are shown. It can be seen intuitively that the former has a good consistent trend with the actual data, which shows that the comparison and selection of model orders by this method has a better practical effect.
[0066] Table 1 Probability values of evaluation indicators (calculation interval: [0,0.1])
[0067]
[0068] Example 2
[0069] This embodiment provides a time series prediction system based on ARIMA order optimization, which is used to implement the time series prediction method based on ARIMA order optimization described in Embodiment 1. The system includes:
[0070] The first module is configured to obtain tunnel structure settlement data according to the monitoring time series, pre-process the tunnel structure settlement data and decompose it according to trend, seasonality and residual; determine the stability of the tunnel structure settlement data, and obtain stable time series data and non-stationary time series data;
[0071] The second module is configured to perform the following steps on the stationary time series data: create an autoregressive difference moving platform model, determine the autoregressive order p0, the moving average order q0, and the difference order d0 of the autoregressive difference moving platform model;
[0072] The third module is configured to use the autoregressive difference moving platform model to delineate test set data from the stationary time series data; perform motion detection on the test set data based on a moving window of a predetermined time length to obtain a predicted data set; perform error comparison between the predicted data set and the actual data set to obtain an evaluation index;
[0073] A fourth module is configured to perform kernel density probability estimation on the evaluation index and integrate probability values in a predetermined interval to select a model order;
[0074] The fifth module is configured to predict the settlement of the tunnel structure based on the model order using an autoregressive difference moving platform model.
[0075] Example 3
[0076] This embodiment provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the time series prediction method based on ARIMA order optimization as described in Example 1 is implemented.
Claims
1. A time series forecasting method based on ARIMA order optimization is characterized by: The following steps are involved: Acquire tunnel structure settlement data according to the monitoring time series, pre-process the tunnel structure settlement data and decompose it according to trend, seasonality and residual; determine the stability of the tunnel structure settlement data to obtain stable time series data and non-stationary time series data; perform the following steps on the stable time series data: Create an autoregressive differential moving platform model, and determine the autoregressive order p0, the moving average order q0, and the differential order d0 of the autoregressive differential moving platform model; Delimiting test set data from the stationary time series data using the autoregressive differential moving platform model; performing motion detection on the test set data based on a moving window of a predetermined time length to obtain a predicted data set; performing error comparison between the predicted data set and the actual data set to obtain an evaluation index; Performing kernel density probability estimation on the evaluation index and integrating probability values in a predetermined interval to select a model order; Based on the model order, the tunnel structure settlement is predicted using the autoregressive difference moving platform model.
2. The time series forecasting method based on ARIMA order optimization according to claim 1, characterized in that: The determination of the difference order d0 includes the following process: The non-stationary time series data is subjected to difference processing, and a unit root test method is used to perform a stationarity test on the difference-processed data to determine the difference order d0.
3. The time series forecasting method based on ARIMA order optimization according to claim 1, characterized in that: The predetermined time length is t, t=γ*T, T represents the predicted time step, and γ is a coefficient.
4. The time series forecasting method based on ARIMA order optimization according to claim 1, characterized in that: The kernel density probability estimation of the evaluation index includes the following process: The Gaussian kernel function is used to make a smooth estimate of the evaluation index, and the probability value distribution corresponding to the evaluation index is obtained under the moving detection of the moving window; For any set of evaluation indicators X = {x1, x2, ..., x n }, its kernel density estimate at any point x Calculated by the following formula: In the formula, n represents the number of samples, h is the smoothing parameter, and x i is the i-th observation value, K represents the kernel function; The expression of K is: Where u is the offset.
5. The time series forecasting method based on ARIMA order optimization according to claim 1, characterized in that: The evaluation indicators include at least mean square error, mean absolute error, and root mean square error.
6. The time series forecasting method based on ARIMA order optimization according to claim 1, characterized in that: The moving window detects the entire historical duration of the collected time series data in turn, and obtains a sequence of evaluation indicators of the autoregressive difference moving platform model ARIMA (p0, d0, q0) on the global data.
7. A time series forecasting system based on ARIMA order optimization, characterized in that: The system is used to implement the time series prediction method based on ARIMA order optimization according to any one of claims 1 to 6, and comprises: The first module is configured to obtain tunnel structure settlement data according to the monitoring time series, pre-process the tunnel structure settlement data and decompose it according to trend, seasonality and residual; determine the stability of the tunnel structure settlement data, and obtain stable time series data and non-stationary time series data; The second module is configured to perform the following steps on the stationary time series data: create an autoregressive difference moving platform model, determine the autoregressive order p0, the moving average order q0, and the difference order d0 of the autoregressive difference moving platform model; The third module is configured to use the autoregressive difference moving platform model to delineate test set data from the stationary time series data; perform motion detection on the test set data based on a moving window of a predetermined time length to obtain a predicted data set; perform error comparison between the predicted data set and the actual data set to obtain an evaluation index; A fourth module is configured to perform kernel density probability estimation on the evaluation index and integrate probability values in a predetermined interval to select a model order; The fifth module is configured to predict the settlement of the tunnel structure based on the model order using an autoregressive difference moving platform model.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the time series forecasting method based on ARIMA order optimization according to any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Intelligent analysis method for corrugated paper packaging data
CN120124390A
An intelligent analysis method for corrugated paper packaging data
CN120124390B
Foundation pit adjacent operation tunnel state prediction method based on space-time decoupling network
CN121071565A
A foundation pit adjacent to an operating tunnel state prediction method based on a space-time decoupling network
CN121071565B
