Interval prediction method based on time series analysis

By combining the SARIMA model and the distributed interval type II fuzzy prediction model, the problem of predicting linear and nonlinear combinations in time series was solved, and accurate interval prediction of time series was achieved.

CN123158592APending Publication Date: 2026-11-24SHENZHEN YOUKAI COMMUNICATION TECHNOLOGY CO LTD YANTAI BRANCH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611463931.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-20
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies struggle to form effective interval predictions for the combined prediction results of linear variation patterns and nonlinear random fluctuations in time series, especially the nonlinear residuals and uncertainties that linear models fail to characterize, while controlling the scale of fuzzy rules.

Method used

By establishing a SARIMA model to obtain linear predicted values, a residual time series is formed. Then, using a distributed interval type II fuzzy prediction model, the residuals of different lag orders are input into a single-input rule module. The outputs of each single-input rule module are combined with the interval function weights to form a residual prediction interval. Finally, the interval prediction result is obtained by combining the residuals with the SARIMA linear predicted values.

Benefits of technology

It achieves joint prediction of linear patterns and nonlinear residuals and their uncertainties in time series, provides more accurate interval prediction results, and reduces the complexity of rule combination in multi-input fuzzy models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158592A_ABST
    Figure CN123158592A_ABST
Patent Text Reader

Abstract

This invention discloses an interval prediction method based on time series analysis, belonging to the field of time series prediction technology. It obtains the historical time series of the object to be predicted, establishes a SARIMA model to obtain linear prediction values, and forms a residual time series based on the difference between the actual observed values ​​and the corresponding linear prediction values. The residuals are obtained according to different lag orders and input into corresponding single-input rule modules to construct a distributed interval type-II fuzzy prediction model. The uncertainty standard deviation of the interval type-II Gaussian membership function is determined through particle swarm optimization algorithm. The rule consequent parameters and the weight center of the interval function are determined through least squares iterative learning. The width of the interval function weight is determined with the prediction interval coverage and prediction interval width as objectives. The residual prediction interval is obtained using the model with determined parameters, and combined with the SARIMA linear prediction values ​​at the target prediction time to obtain the interval prediction result, achieving joint prediction of linear patterns, nonlinear fluctuations, and uncertainties.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of time series forecasting technology, and in particular to an interval forecasting method based on time series analysis. Background Technology

[0002] As the scale and complexity of time series data increase, existing prediction methods mainly include statistical prediction methods represented by ARIMA and SARIMA, as well as fuzzy prediction methods. Statistical prediction methods are usually used to extract linear change patterns such as trends and cycles in time series, while interval type II fuzzy systems can model nonlinear data with uncertainty and characterize the uncertainty range of the prediction results through interval output.

[0003] However, for time series that simultaneously contain linear variation patterns and nonlinear random fluctuations, existing technologies still struggle to further transform the nonlinear residuals and uncertainties that the linear model fails to characterize into interval prediction results while controlling the scale of fuzzy rules. This results in a lack of an effective combined prediction mechanism between linear prediction results and nonlinear uncertainty predictions. Summary of the Invention

[0004] This invention provides an interval prediction method based on time series analysis, comprising: Obtain the historical time series of the object to be predicted, establish a SARIMA model and obtain linear prediction values, and form a residual time series based on the difference between the actual observed values ​​and the corresponding linear prediction values ​​at each historical moment. Lagged residuals are obtained from the residual time series according to different lag orders, and the lagged residuals of different lag orders are respectively assigned to different single-input rule modules in the distributed interval type II fuzzy prediction model. Each single-input rule module fuzzifies the corresponding lagged residuals through the interval type II Gaussian membership function with upper and lower standard deviations, and obtains local output according to the fuzzy rules. For the target prediction time, the residuals corresponding to each lag order before the target prediction time are input into the corresponding single-input rule module. Based on each lag residual and the interval function weight center parameter and width parameter, the interval function weight center value and half-width value corresponding to each single-input rule module are determined. The residual prediction interval center is formed based on each local output and the corresponding interval function weight center value. The residual prediction interval half-width is formed based on each local output and the corresponding interval function weight half-width value. The residual prediction interval is obtained from the residual prediction interval center and the residual prediction interval half-width. The upper and lower boundaries of the residual prediction interval are added to the linear prediction values ​​obtained by the SARIMA model for the target prediction time, respectively, to obtain the interval prediction results for the target prediction time.

[0005] Preferably, the step of establishing the SARIMA model and obtaining linear prediction values ​​includes: The historical time series is differentially processed. Based on the autocorrelation function and partial autocorrelation function of the differentially processed time series, candidate values ​​for the non-seasonal autoregressive order, non-seasonal moving average order, seasonal autoregressive order, and seasonal moving average order are determined. Based on each candidate value, a SARIMA candidate model is established and the corresponding Akaike information criterion value is calculated. The SARIMA candidate model with the smallest Akaike information criterion value is determined as the target SARIMA model. The linear prediction values ​​corresponding to each historical time and the target prediction time are obtained using the target SARIMA model.

[0006] Preferably, obtaining lagged residuals from the residual time series according to different lag orders includes: For each training time point in the residual time series with four prior residuals, the residuals corresponding to the first to fourth lag orders before the training time point are obtained sequentially. The four obtained residuals are used as the first to fourth input variables, and the residuals corresponding to the training time point are used as the target residuals corresponding to the first to fourth input variables. The first to fourth input variables and the target residuals are used to form the training sample, and the training sample set is formed according to the order of the training time points.

[0007] Preferably, the distributed interval type II fuzzy prediction model includes first to fourth single-input rule modules corresponding one-to-one with the first to fourth input variables. Each single-input rule module sets three interval type II Gaussian fuzzy sets and three corresponding fuzzy rules. The local output of the single-input rule module is obtained according to the activation degree and rule consequent parameters of each fuzzy rule. Set interval function weights for each single-input rule module. Determine the center value and half-width value of each interval function weight based on the first to fourth input variables and the corresponding center and width parameters of the interval function weights.

[0008] Preferably, the parameter determination of the distributed interval type II fuzzy prediction model includes: The upper and lower standard deviations of the type II Gaussian fuzzy sets in each interval are used as the parameters to be optimized in the particle swarm optimization algorithm. The upper and lower standard deviations are determined based on the model prediction error corresponding to the training sample set. After the upper and lower standard deviations are determined, the least squares method is used alternately to obtain the consequent parameters of the rule and the center parameters of the interval function weights. Based on the determined rule consequent parameters and interval function weight center parameters, corresponding residual prediction intervals are formed for different interval function weight width parameters. The interval function weight width parameters are determined by using the prediction interval coverage and prediction interval width as the optimization objectives of the genetic algorithm.

[0009] Preferably, the determination of the upper and lower standard deviations includes: The upper and lower standard deviations of the three interval type II Gaussian fuzzy sets in each of the first to fourth single-input rule modules are used to form 24-dimensional particle positions. For each particle, the parameters corresponding to the particle's position are written into the type II Gaussian fuzzy set of each interval. Under the current upper and lower standard deviation conditions, the regular consequent parameters and interval function weight center parameters corresponding to the particle are alternately obtained based on the training sample set. The fitness of the particle is determined based on the error between the obtained model center output and the target residual. The individual optimal position and the global optimal position are updated based on fitness, and the particle velocity and particle position are updated based on the individual optimal position and the global optimal position. The 24 parameters corresponding to the global optimal position at the end of the particle swarm iteration are determined as the upper standard deviation and lower standard deviation of the type II Gaussian fuzzy set of each interval.

[0010] Preferably, the determination of the rule consequent parameters, the center of the interval function weights, and the width of the interval function weights includes: After obtaining the upper and lower standard deviations through particle swarm optimization, the center parameters of the interval function weights are fixed and the least squares method is used to obtain the consequent parameters of the rules. Then, the obtained consequent parameters of the rules are fixed and the least squares method is used to obtain the center parameters of the interval function weights. The above process is repeated alternately to obtain the consequent parameters of the rules and the center parameters of the interval function weights. Based on the determined rule consequent parameters and interval function weight center parameters, the residual prediction interval center of each training sample is obtained. Corresponding residual prediction intervals are formed for different interval function weight width parameters. The ratio of the number of training samples whose target residuals fall into the corresponding residual prediction interval to the total number of training samples is determined as the prediction interval coverage. The average value of the width of each residual prediction interval is determined as the prediction interval width. The prediction interval coverage and prediction interval width are used as the optimization objectives of the genetic algorithm to obtain the interval function weight width parameters.

[0011] Preferably, obtaining the interval prediction result includes: Obtain the residuals corresponding to the first to fourth lag orders before the target prediction time and input them into the first to fourth single-input rule modules respectively to obtain the local output of each single-input rule module; Based on the residuals corresponding to the first to fourth lag orders and the center parameters of the interval function weights, the center values ​​of the interval function weights corresponding to each single-input rule module are obtained. Based on the residuals corresponding to the first to fourth lag orders and the width parameters of the interval function weights, the half-width values ​​of the interval function weights corresponding to each single-input rule module are obtained. The center of the residual prediction interval is obtained by multiplying each local output by the corresponding interval function weight center value and summing the results. The half width of the residual prediction interval is obtained by multiplying the absolute value of each local output by the corresponding interval function weight half width value and summing the results. Subtracting and adding the half-width of the residual prediction interval from the center of the residual prediction interval yields the lower and upper boundaries of the residual prediction, respectively. The linear prediction value at the target prediction time is then added to the lower and upper boundaries of the residual prediction, respectively, to obtain the final lower and upper boundaries of the prediction.

[0012] The beneficial effects of this invention are as follows: This invention utilizes the SARIMA model to obtain linear predicted values ​​of time series, and inputs residuals of different lag orders into corresponding single-input rule modules. By combining the outputs of each single-input rule module through interval function weights, the rule combination in multi-input fuzzy models is reduced. Simultaneously, the parameters of the interval type II Gaussian membership function, rule consequent parameters, and interval function weights are determined to form the residual prediction interval, which is then combined with the SARIMA linear predicted values ​​to obtain the final interval prediction result. This enables the joint prediction of the linearity of time series, nonlinear residuals, and their uncertainties. Attached Figure Description

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

[0014] Figure 1 This is a schematic diagram of the framework of the interval prediction method based on time series analysis in the embodiment; Figure 2 This is a framework diagram for determining the model parameters in the embodiment. Detailed Implementation

[0015] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0016] Example, refer to Figure 1 and Figure 2 This embodiment provides an interval prediction method based on time series analysis, including the following steps: S1. Obtain and preprocess the historical time series of the object to be predicted. The historical time series processed in this embodiment consists of multiple observation times arranged in chronological order and observation values ​​corresponding to each observation time. In this embodiment, the network flow data of the network to be predicted is used as the data source, and the number of data packets contained in the target network flow within a statistical time period is used as the observation value corresponding to that statistical time period. In this embodiment, each rule consequent parameter is a numerical constant.

[0017] The system acquires network flow data generated by the network to be predicted within a continuous historical period. It forms a network quintuple based on the source Internet Protocol address, destination Internet Protocol address, source port, destination port, and transport layer protocol type. Data packets with the same quintuple are grouped into the same network flow, and the data packets in each network flow are sorted according to their timestamps. The system reads the statistical period configured in the data acquisition system and divides the continuous historical period into consecutive, non-overlapping statistical time periods. Data packets whose timestamps fall within the same statistical time period are assigned to the corresponding statistical time period and counted. The number of data packets is used as the observation value for that statistical time period. When the data acquisition is normal and there are no data packets within the statistical time period, the corresponding observation value is recorded as 0. When the data acquisition system records an acquisition failure or there is no valid acquisition record for the corresponding statistical time period, the time position is marked as a missing position. The observation values ​​are arranged in chronological order according to the statistical time periods to obtain the initial time series.

[0018] For the initial time series, missing positions are handled as follows: For single or consecutive missing positions between two valid observations, the nearest valid observation before the missing interval and the nearest valid observation after the missing interval are read respectively. Linear interpolation is performed based on the time position and observation value corresponding to the two valid observations, and the interpolation results are written into the corresponding missing position. For missing positions at the beginning of the time series without any preceding valid observation, the first valid observation is written into the corresponding missing position. For missing positions at the end of the time series without any following valid observation, the last valid observation is written into the corresponding missing position.

[0019] After handling missing values, calculate the arithmetic mean and sample variance of all observations. For each observation, divide the square of the difference between the observation and the arithmetic mean by the sample variance, and use the result as the squared Mahalanobis distance of that observation. Before anomaly detection begins, set the anomaly detection confidence level to 99%, read the 99th quantile of the chi-square distribution with 1 degree of freedom as the anomaly judgment threshold, mark the observation locations with a squared Mahalanobis distance greater than the anomaly judgment threshold as anomaly locations, and replace the observations at these anomaly locations according to the missing value handling method described above. When the sample variance of all observations is 0, skip the Mahalanobis distance anomaly detection and retain the current time series.

[0020] S2. Establish the SARIMA model and obtain linear prediction values. Perform an augmented Dickey-Fuller test on the current time series. Set the significance level to 0.05 and denote the current effective sample size as N. First, calculate the ratio of N divided by 100, then raise the comparison value to the power of 1 / 4, multiply the result by 12 and round down. Use the integer obtained as the maximum lag order of the ADF test. Perform ADF regression within the range of 0 to the maximum lag order and calculate the corresponding AIC value. Select the lag order with the smallest AIC value to perform the ADF test. Stop ordinary differencing when the obtained probability value is less than 0.05. When the probability value is not less than 0.05, perform a first-order ordinary differencing on the current time series, that is, subtract the previous observation value from the current observation value to obtain a new time series, and re-perform the ADF test until the obtained probability value is less than 0.05. The cumulative number of ordinary differencing operations is recorded as the ordinary differencing order d.

[0021] For time series after ordinary differencing, calculate the autocorrelation coefficient. Calculate the arithmetic mean of the current series observations. For the k-th lag, subtract the arithmetic mean from each data pair for which both the current and k-th prior observations are available, sum the corresponding deviations, and then divide by the sum of the squared deviations of all observations relative to the arithmetic mean to obtain the k-th order autocorrelation coefficient. Set the confidence level for autocorrelation significance to 95%, and take the quantile of 1.96 corresponding to the 97.5% cumulative probability of the standard normal distribution. Use the positive and negative values ​​obtained by dividing 1.96 by the square root of the current effective sample size as the upper and lower confidence limits for the autocorrelation coefficient.

[0022] Starting from lag order 2, the lag orders are checked sequentially up to no more than half of the current valid sample size. When the autocorrelation coefficient of a certain lag order exceeds the confidence limit, and the autocorrelation coefficient at at least an integer multiple of the lag order also exceeds the confidence limit, the smallest lag order that meets the above conditions is determined as the seasonal period m. When none of the checked lag orders meet the above conditions, m is set to 1, and the seasonal difference order D, the seasonal autoregressive order P, and the seasonal moving average order Q are set to 0.

[0023] When m is greater than 1, read the autocorrelation coefficient of the time series at the m-th lag position after ordinary differencing; when the autocorrelation coefficient is within the 95% confidence limit, set the seasonal differencing order D to 0; when the autocorrelation coefficient exceeds the confidence limit, perform seasonal differencing on the time series, that is, subtract the values ​​at the previous m time positions from the current value to obtain the seasonal differencing series, and set D to 1; then re-perform the ADF test on the time series after ordinary differencing and seasonal differencing. When the obtained probability value is still not less than 0.05, continue to perform ordinary differencing and increase the ordinary differencing order d until the obtained probability value is less than 0.05, and determine the final obtained time series as a stationary time series.

[0024] For stationary time series, the ACF and PACF are calculated step by step. The ACF is obtained according to the aforementioned method for calculating the autocorrelation coefficient, and the PACF is obtained through the Yule-Walker equation. For the k-th order PACF, a k-th order Yule-Walker linear equation system is established based on the autocorrelation coefficients from the 1st to the k-th order. The linear equation system is solved, and the k-th autoregressive coefficient is taken as the k-th order partial autocorrelation coefficient.

[0025] The maximum range for checking the non-seasonal order is set to the smaller integer between one-quarter of the current valid sample size and 10. Within this range, PACF lag orders exceeding the 95% confidence threshold are read, and the largest lag order is used as the upper limit of the candidate for the non-seasonal autoregressive order p. Integers between 0 and the upper limit of the candidate are used as candidate values ​​for p. When there are no PACF lag orders exceeding the confidence threshold within the range, the candidate value of p is set to 0. Candidate values ​​for the non-seasonal moving average order q are formed according to ACF in the same way.

[0026] When m is greater than 1, read the lag positions that are still within the effective sample range from the seasonal lag positions corresponding to m, 2m, and 3m. Based on whether the PACF exceeds the 95% confidence limit at the seasonal lag position, form the candidate value of the seasonal autoregressive order P, and based on whether the ACF exceeds the 95% confidence limit at the seasonal lag position, form the candidate value of the seasonal moving average order Q. When there is no seasonal lag position exceeding the confidence limit for the corresponding PACF or ACF, set the candidate value of P or Q to 0.

[0027] Take an integer from the candidate values ​​of p, q, P, and Q respectively, and combine it with the already determined d, D, and m to form a set of SARIMA parameters. Iterate through all candidate combinations to build a SARIMA candidate model. For each candidate model, use maximum likelihood estimation to obtain the model parameters. The absolute value of the difference between the log-likelihood values ​​obtained from two consecutive iterations is less than 10 to the power of -6 as a convergence condition. Set the maximum number of iterations to 500. If the convergence condition is not met after 500 iterations or the obtained model parameters contain non-finite values, delete the candidate model. For candidate models that have completed parameter estimation, calculate the AIC value based on the maximum log-likelihood value and the number of parameters to be estimated. Select the candidate model with the smallest AIC value as the target SARIMA model. When two or more candidate models have the same minimum AIC value, select the candidate model with fewer parameters to be estimated. When all SARIMA candidate models have not completed parameter estimation, set p, q, P, and Q to 0, retain the already determined d, D, and m, and build the target SARIMA model according to the obtained parameters.

[0028] The target SARIMA model is used to fit historical time series. The model fitting error for each historical moment is obtained by subtracting the corresponding model fitting value from the actual observed value that can form a model fitting value. The model fitting error is saved as the historical error term of the target SARIMA model according to the time position. When performing a one-step prediction with a moving average term, the historical error term before the prediction time is read according to the moving average order corresponding to the model. For the prior error term that does not exist at the initial position of model establishment, the corresponding error term is set to 0.

[0029] The historical error term is determined by the historical fitted values ​​of the target SARIMA model and the actual observed values, and is used in the calculation of the moving average term of the target SARIMA model; the S3 residual is determined by the one-step linear prediction value and the corresponding actual observed value at each historical time. The historical error term and the S3 residual are obtained according to their respective generation processes.

[0030] The target SARIMA model is used to generate one-step linear predictions for historical time points in chronological order. For each prediction time point, the actual observations and historical error terms required by the model before that prediction time point are read to generate one-step predictions at the difference scale. Then, inverse seasonal difference and inverse ordinary difference are performed in the reverse order of seasonal difference and ordinary difference in the modeling process. Inverse seasonal difference, known actual values ​​at a previous time interval of m are added, and inverse ordinary difference, known actual values ​​at the previous time position are added, so that the predictions are restored to the data scale of the S1 historical time series. The restored predictions are used as the linear predictions for that historical time point and are arranged in chronological order to form a linear prediction sequence.

[0031] S3. Forming the residual time series and training sample set Each actual observation is matched with its corresponding linear prediction value at the same time position. For each time position that can be matched, the actual observation value at that time position is subtracted from the corresponding linear prediction value. The difference is determined as the residual at that time position. All residuals are arranged in chronological order to obtain the residual time series.

[0032] The training sample is constructed starting from the first time position in the residual time series that has four prior residuals. The residuals corresponding to the first, second, third, and fourth lag orders before the current training time are determined as the first, second, third, and fourth input variables, respectively. The residual corresponding to the current training time is determined as the target residual. A training sample is composed of the first to fourth input variables and the target residual. The training time is moved forward by one time position and the above process is repeated until the current training time reaches the last position in the residual time series that can obtain four prior residuals. All the training samples formed are arranged in chronological order of the training times to obtain the training sample set.

[0033] S4. Establish and train a distributed interval type II fuzzy prediction model. Based on the first to fourth input variables formed by S3, first to fourth single-input rule modules are established respectively, such that the first single-input rule module only receives the first input variable, the second single-input rule module only receives the second input variable, the third single-input rule module only receives the third input variable, and the fourth single-input rule module only receives the fourth input variable. Each single-input rule module sets three interval type II Gaussian fuzzy sets for the corresponding input variable, and establishes three fuzzy rules according to the three interval type II Gaussian fuzzy sets. Each fuzzy rule includes an antecedent and a consequent. The antecedent is composed of a corresponding interval type II Gaussian fuzzy set, which is used to characterize the degree of membership of the current input variable to the interval type II Gaussian fuzzy set. The consequent sets a rule consequent parameter corresponding to the fuzzy rule. Thus, each single-input rule module forms three fuzzy rules, and the four single-input rule modules form a total of twelve fuzzy rules.

[0034] For the i-th input variable, the minimum and maximum values ​​of the input variable in the training sample set are read. The minimum value, the arithmetic midpoint between the minimum and maximum values, and the maximum value are respectively used as the Gaussian mean of the three interval type II Gaussian fuzzy sets corresponding to the input variable. The sample standard deviation of the input variable in the training sample set is calculated. The search range of the lower standard deviation of each Gaussian fuzzy set is set to 0.25 times to 1 times the sample standard deviation, and the search range of the upper standard deviation is set to 1 times to 2 times the sample standard deviation, ensuring that the upper standard deviation of the same Gaussian fuzzy set is not less than the corresponding lower standard deviation. In the particle swarm training state of this embodiment, the sample standard deviations of the first to fourth input variables are all greater than 0. Therefore, the twelve interval type II Gaussian fuzzy sets corresponding to the four input variables form a total of 24 upper and lower standard deviations to be optimized. In the particle swarm training state of this embodiment, the sample standard deviations of the first to fourth input variables are all greater than 0. Therefore, the twelve interval type II Gaussian fuzzy sets corresponding to the four input variables form a total of 24 upper and lower standard deviations to be optimized. When the sample standard deviation of a certain input variable in other implementation data is 0, the common value of the input variable in the training sample set is read, and the common value is set as the Gaussian mean of the corresponding three interval type II Gaussian fuzzy sets. The corresponding three upper standard deviations and three lower standard deviations are all set to 1, and the six standard deviations are not involved in the particle swarm search.

[0035] The upper and lower standard deviations correspond to the upper and lower membership functions of the interval type II Gaussian fuzzy set, respectively.

[0036] For any input variable and its corresponding Gaussian fuzzy set, calculate the squared difference between the input value and the Gaussian mean. Divide the squared difference by twice the squared upper standard deviation and twice the squared lower standard deviation, respectively. Negate the quotient and perform an exponential operation. Use the result obtained using the upper standard deviation as the upper membership degree and the result obtained using the lower standard deviation as the lower membership degree. For each fuzzy rule, add the upper and lower membership degrees of the interval type II Gaussian fuzzy set corresponding to the antecedent of the rule and divide by 2 to obtain the initial activation degree of the fuzzy rule. Divide the initial activation degrees of the three fuzzy rules in the same single-input rule module by the sum of the three initial activation degrees to obtain the corresponding normalized activation degree. When the sum of the three initial activation degrees is 0, set the normalized activation degree of the three fuzzy rules to one-third. Multiply the normalized activation degree of the three fuzzy rules by their respective rule consequent parameters and sum the three products. The result is determined as the local output of the single-input rule module.

[0037] In the aforementioned fuzzy inference stage, the first to fourth single-input rule modules each process only one input variable corresponding to themselves. After the four single-input rule modules obtain local outputs, they enter the output combination stage. In the output combination stage, the interval function weights of each single-input rule module are determined based on the first to fourth input variables, and the four local outputs are combined using the interval function weights.

[0038] The result of subtracting the half-width of the interval function weight from the center value of the interval function weight is determined as the lower bound of the interval function weight. The result of adding the half-width of the interval function weight to the center value of the interval function weight is determined as the upper bound of the interval function weight. The numerical range between the lower bound and the upper bound of the interval function weight is determined as the interval function weight of the corresponding single-input rule module under the current input condition.

[0039] The particle swarm optimization algorithm is used to determine the 24 upper and lower standard deviations of twelve interval type II Gaussian fuzzy sets. The number of particles is set to 50, and the position vector of each particle is used to store the 24 standard deviations to be optimized. The initial positions are generated uniformly according to the search range corresponding to each standard deviation. The initial velocity of each particle is set to 0, and the individual learning factor and the group learning factor are both set to 2. The initial value of the inertia weight is set to 0.9 and the termination value is set to 0.4. The current inertia weight is linearly updated between 0.9 and 0.4 according to the ratio of the current iteration number to the maximum iteration number.

[0040] For each particle, the 24 parameters of the particle's current position are written into the corresponding interval type II Gaussian fuzzy set, and the normalized rule activation degree of all training samples is calculated according to the aforementioned fuzzy inference process. Under the upper and lower standard deviation conditions corresponding to the current particle, the weight center constant term of the four single-input rule modules is initialized to one-quarter, and the parameters of the remaining 16 weight center linear terms are initialized to 0. Under the state of fixing the current interval function weight center parameters, the first least squares problem about the twelve rule consequent parameters is established based on the training samples.

[0041] Specifically, for each training sample, the normalized activation of the j-th fuzzy rule in the i-th single-input rule module is multiplied by the center value of the interval function weight of the i-th single-input rule module under that training sample. The result is used as the coefficient of the training sample with respect to the rule consequent parameter corresponding to the j-th fuzzy rule of the i-th single-input rule module. The above coefficients are arranged in a fixed order according to the twelve fuzzy rules to form the coefficient row corresponding to the training sample. The coefficient rows are arranged in the order of all training samples to form the first coefficient matrix. The target residuals corresponding to each training sample are arranged in sequence to form the target vector. The rule consequent parameters corresponding to the twelve fuzzy rules are obtained by ordinary least squares. When the normal equation matrix corresponding to the first coefficient matrix is ​​not invertible, the Moore-Penrose generalized inverse is used to obtain the least squares solution.

[0042] Twelve temporary rule consequent parameters are fixed. The local outputs of four single-input rule modules are obtained according to the normalized rule activation of each training sample. A second least squares problem is established regarding the 20 interval function weight center parameters. For each training sample and each single-input rule module, the local output of the single-input rule module is multiplied by a constant 1 and the first to fourth input variables, respectively. The resulting five values ​​are used as the coefficients of the five interval function weight center parameters of the single-input rule module. The twenty coefficients corresponding to the four single-input rule modules are arranged in a fixed order to form the coefficient row corresponding to the training sample. The second coefficient matrix is ​​formed by arranging all training samples. The aforementioned target vector is used as the target vector of the second least squares problem. The ordinary least squares method is used to obtain the 20 interval function weight center parameters corresponding to the current particle. When the normal equation matrix corresponding to the second coefficient matrix is ​​not invertible, the Moore-Penrose generalized inverse is used to obtain the least squares solution.

[0043] The temporary interval function weight center parameters obtained in this round are fixed, and twelve temporary rule consequent parameters are re-obtained. Then, the twelve re-obtained temporary rule consequent parameters are fixed, and 20 temporary interval function weight center parameters are obtained. This process is repeated for two least squares problems. After each round of alternating solutions, the model center outputs of all training samples are calculated based on the current temporary rule consequent parameters and the temporary interval function weight centers. The mean square error of this round is obtained by averaging the squares of the differences between each model center output and the corresponding target residual. When the mean square error of the previous round is not zero, the relative change is obtained by dividing the absolute value of the difference between the mean square error of this round and the mean square error of the previous round by the mean square error of the previous round. When the relative change is not greater than 10 to the power of -6 or when the alternating solution reaches 100 rounds, the temporary parameter solution for the current particle is terminated. When the mean square error of the previous round is zero, the temporary parameter solution for the current particle is terminated directly. The mean square error at the end is taken as the fitness of the particle.

[0044] The rule consequent parameters and interval function weight center parameters obtained for each particle are only used in the calculation of the model center output and fitness of the current particle; after the particle swarm search ends and the upper and lower standard deviations are determined, the rule consequent parameters and interval function weight center parameters are recalculated based on the determined upper and lower standard deviations.

[0045] For each particle, when the current fitness is less than the particle's recorded historical minimum fitness, the particle's current position is updated to its individual optimal position. The position with the minimum fitness among all individual optimal positions is selected as the current global optimal position. During each particle update, a first random number and a second random number are generated, both of which follow a uniform distribution within the range of 0 to 1. The particle's update velocity is obtained by multiplying the current velocity by the current inertia weight, the product of the individual learning factor and the first random number plus the difference between the individual optimal position and the current position, and the product of the group learning factor and the second random number plus the difference between the global optimal position and the current position. The current position is then added to the update velocity to obtain the updated position. When any standard deviation parameter in the updated position is lower than its search lower bound, the parameter is set to the corresponding search lower bound and the corresponding velocity component is set to 0. When any standard deviation parameter is higher than its search upper bound, the parameter is set to the corresponding search upper bound and the corresponding velocity component is set to 0. The processed updated position is then used as the particle position for the next iteration.

[0046] The maximum number of iterations for the particle swarm optimization is set to 200, and the global optimal mean square error is recorded after each iteration. The particle swarm optimization search ends when the difference between the maximum and minimum values ​​of the global optimal mean square error recorded in 20 consecutive iterations is no greater than 10 to the power of -6. If this condition is not met, the particle swarm optimization search ends after the 200th iteration. The 24 parameters in the global optimal particle position at the end are determined as the final upper and lower standard deviations of the twelve interval type II Gaussian fuzzy sets.

[0047] After the final upper and lower standard deviations are determined, the temporary rule consequent parameters and temporary interval function weight centers obtained in the particle swarm fitness calculation stage are discarded. The final upper and lower standard deviations are kept fixed, and the twelve rule consequent parameters and 20 interval function weight center parameters are solved alternately again according to the aforementioned first least squares problem and second least squares problem. The same mean square error relative change and a maximum of 100 rounds as in the particle fitness calculation stage are used as the termination conditions. The twelve rule consequent parameters and 20 interval function weight center parameters at the end of this alternating solution are determined as the final rule consequent parameters and final interval function weight center parameters of the distributed interval type II fuzzy prediction model.

[0048] The residual prediction interval center of the training sample is calculated based on the final rule consequent parameters and the final interval function weight center parameters. For each training sample, the interval function weight center value corresponding to each single input rule module is obtained based on the first to fourth input variables. The four local outputs are multiplied by the corresponding interval function weight center values ​​and then summed. The result is determined as the residual prediction interval center of the training sample.

[0049] An absolute error sequence is formed based on the target residual and the center of the residual prediction interval for each training sample. The arithmetic mean Mean and the sample standard deviation Sdv of the absolute error sequence are calculated. The lower limit of the search for the 20 interval function weight width parameters is set to 0, and the value obtained by adding 3 times Sdv to Mean is set as the upper limit of the search. When the upper limit of the search is equal to 0, all 20 interval function weight width parameters are set to 0. When the upper limit of the search is greater than 0, the 20 interval function weight width parameters are determined by the non-dominated sorting genetic algorithm II.

[0050] Before evaluating any set of width parameters using the genetic algorithm, for each training sample, the set of parameters is written into the interval function weight width expression corresponding to the four single-input rule modules. The half-width value of the interval function weight corresponding to the four single-input rule modules is calculated based on the absolute values ​​of the first to fourth input variables of the training sample. The absolute value of the local output of each single-input rule module is multiplied by the corresponding interval function weight half-width value and then summed. The result is determined as the half-width of the residual prediction interval for the training sample. The lower boundary of the prediction interval is obtained by subtracting the half-width of the residual prediction interval from the center of the residual prediction interval, and the upper boundary of the prediction interval is obtained by adding the half-width of the residual prediction interval to the center of the residual prediction interval.

[0051] The population size of the non-dominated sorting genetic algorithm II is set to 100, and each individual is encoded as a 20-dimensional real vector. Initial values ​​of each width parameter are generated uniformly between 0 and the search upper limit. For each individual, the predicted lower boundary and predicted upper boundary of all training samples are calculated according to the above process. The number of training samples whose target residual is greater than or equal to the corresponding predicted lower boundary and less than or equal to the corresponding predicted upper boundary is counted. The number is divided by the total number of training samples to obtain the prediction interval coverage corresponding to the individual. For each training sample, the prediction interval length of the training sample is obtained by subtracting the predicted lower boundary from the predicted upper boundary. The arithmetic mean of all prediction interval lengths is taken as the average prediction interval width corresponding to the individual.

[0052] Two non-dominated sorting objectives were set: larger predicted interval coverage and smaller average predicted interval width. A binary tournament of size 2 was used to select the parent generation. Simulated binary crossover was used to generate crossover individuals, with the crossover probability set to 0.9 and the crossover distribution exponent set to 20. Multinomial mutation was used to generate mutated individuals, with the mutation probability of each width parameter set to 0.05 and the mutation distribution exponent set to 20. When the width parameter generated by crossover or mutation was less than 0, it was set to 0; when the width parameter was greater than the search upper limit, it was set to the search upper limit. Parent and child generations were merged, and the next generation of individuals was selected based on the non-dominated level and crowding distance.

[0053] Set the maximum number of generations to 200. After completing the 200th generation, read the final Pareto non-dominated solution set. Select the width parameter set with the largest prediction interval coverage from the non-dominated solution set. If there are two or more width parameter sets with the same maximum prediction interval coverage, select the width parameter set with the smallest average prediction interval width. If there are still two or more width parameter sets that meet the above conditions, select the width parameter set with the smallest sum of 20 width parameters. Determine the 20 parameters in the selected width parameter set as the final interval function weight width parameters.

[0054] By saving the Gaussian mean and final upper and lower standard deviations of twelve interval type II Gaussian fuzzy sets, twelve final rule consequent parameters, 20 final interval function weight center parameters, and 20 final interval function weight width parameters, a trained distributed interval type II fuzzy prediction model is obtained.

[0055] S5. Forming the interval prediction results for the target prediction time. For the target prediction time, read the actual observations obtained before the target prediction time and the historical error terms required by the target SARIMA model, perform a one-step prediction through the target SARIMA model determined in S2, and restore the data scale of the historical time series in S1 according to the inverse seasonal difference and inverse ordinary difference process in S2. The obtained prediction value is determined as the SARIMA linear prediction value at the target prediction time.

[0056] The residuals corresponding to the first, second, third, and fourth lag orders before the target prediction time are read sequentially from the current residual time series and used as the first to fourth input variables respectively. The first input variable is input into the first single-input rule module, the second input variable is input into the second single-input rule module, the third input variable is input into the third single-input rule module, and the fourth input variable is input into the fourth single-input rule module.

[0057] For each single-input rule module, the three Gaussian means and corresponding upper and lower standard deviations stored in S4 are read. The upper and lower membership degrees of the three interval type II Gaussian fuzzy sets are calculated according to the input variables of the single-input rule module. The normalized activations of the three fuzzy rules are obtained according to the Nie-Tan type reduction and normalization process adopted in S4. The three normalized activations are multiplied by the corresponding rule consequent parameters stored in S4 and then summed to obtain the local output of the single-input rule module for the target prediction time. Thus, the four local outputs of the first to fourth single-input rule modules are obtained.

[0058] Substitute the first to fourth input variables corresponding to the target prediction time into the four interval function weight expressions stored in S4; for each single-input rule module, add the results of multiplying the corresponding weight center constant term and the first to fourth input variables by the corresponding weight center linear term parameter to obtain the interval function weight center value of the single-input rule module at the target prediction time; add the results of multiplying the corresponding non-negative width constant term and the absolute values ​​of the first to fourth input variables by the corresponding non-negative width parameter to obtain the interval function weight half-width value of the single-input rule module at the target prediction time.

[0059] The local outputs of the first to fourth single-input rule modules are multiplied by the center value of the corresponding interval function weights, and the four products are summed. The result is used to determine the center of the residual prediction interval at the target prediction time. The absolute values ​​of the local outputs of the first to fourth single-input rule modules are multiplied by the half-width value of the corresponding interval function weights, and the four products are summed. The result is used to determine the half-width of the residual prediction interval at the target prediction time.

[0060] The lower boundary of the residual prediction is obtained by subtracting half the width of the residual prediction interval from the center of the residual prediction interval, and the upper boundary of the residual prediction is obtained by adding half the width of the residual prediction interval to the center of the residual prediction interval. The SARIMA linear prediction value obtained by S2 for the same target prediction time is added to the lower boundary of the residual prediction, and the result is determined as the final prediction lower boundary. The SARIMA linear prediction value is added to the upper boundary of the residual prediction, and the result is determined as the final prediction upper boundary. The interval prediction result corresponding to the target prediction time is formed by the final prediction lower boundary and the final prediction upper boundary.

[0061] Once the actual observation value for the target prediction time is generated, the actual observation value is subtracted from the previously saved SARIMA linear prediction value for that target prediction time. The resulting difference is determined as the new residual for that target prediction time and is added to the residual time series in chronological order. When performing the interval prediction for the next target prediction time, the first to fourth lag residuals closest to the next target prediction time are read from the updated residual time series, and the interval prediction result for the next target prediction time is formed according to the aforementioned S5 process.

[0062] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. An interval prediction method based on time series analysis, characterized in that, include: Obtain the historical time series of the object to be predicted, establish a SARIMA model and obtain linear prediction values, and form a residual time series based on the difference between the actual observed values ​​and the corresponding linear prediction values ​​at each historical moment. Lagged residuals are obtained from the residual time series according to different lag orders, and the lagged residuals of different lag orders are respectively assigned to different single-input rule modules in the distributed interval type II fuzzy prediction model. Each single-input rule module fuzzifies the corresponding lagged residuals through the interval type II Gaussian membership function with upper and lower standard deviations, and obtains local output according to the fuzzy rules. For the target prediction time, the residuals corresponding to each lag order before the target prediction time are input into the corresponding single-input rule module. Based on each lag residual and the interval function weight center parameter and width parameter, the interval function weight center value and half-width value corresponding to each single-input rule module are determined. The residual prediction interval center is formed based on each local output and the corresponding interval function weight center value. The residual prediction interval half-width is formed based on each local output and the corresponding interval function weight half-width value. The residual prediction interval is obtained from the residual prediction interval center and the residual prediction interval half-width. The upper and lower boundaries of the residual prediction interval are added to the linear prediction values ​​obtained by the SARIMA model for the target prediction time, respectively, to obtain the interval prediction results for the target prediction time.

2. The interval prediction method based on time series analysis according to claim 1, characterized in that, The process of establishing the SARIMA model and obtaining linear prediction values ​​includes: The historical time series is differentially processed. Based on the autocorrelation function and partial autocorrelation function of the differentially processed time series, candidate values ​​for the non-seasonal autoregressive order, non-seasonal moving average order, seasonal autoregressive order, and seasonal moving average order are determined. Based on each candidate value, a SARIMA candidate model is established and the corresponding Akaike information criterion value is calculated. The SARIMA candidate model with the smallest Akaike information criterion value is determined as the target SARIMA model. The linear prediction values ​​corresponding to each historical time and the target prediction time are obtained using the target SARIMA model.

3. The interval prediction method based on time series analysis according to claim 2, characterized in that, Obtaining lagged residuals from the residual time series according to different lag orders includes: For each training time point in the residual time series with four prior residuals, the residuals corresponding to the first to fourth lag orders before the training time point are obtained sequentially. The four obtained residuals are used as the first to fourth input variables, and the residuals corresponding to the training time point are used as the target residuals corresponding to the first to fourth input variables. The first to fourth input variables and the target residuals are used to form the training sample, and the training sample set is formed according to the order of the training time points.

4. The interval prediction method based on time series analysis according to claim 3, characterized in that, The distributed interval type II fuzzy prediction model includes first to fourth single-input rule modules that correspond one-to-one with the first to fourth input variables. Each single-input rule module sets three interval type II Gaussian fuzzy sets and three corresponding fuzzy rules. The local output of the single-input rule module is obtained based on the activation degree and rule consequent parameters of each fuzzy rule. Set interval function weights for each single-input rule module. Determine the center value and half-width value of each interval function weight based on the first to fourth input variables and the corresponding center and width parameters of the interval function weights.

5. The interval prediction method based on time series analysis according to claim 4, characterized in that, The parameter determination of the distributed interval type II fuzzy prediction model includes: The upper and lower standard deviations of the type II Gaussian fuzzy sets in each interval are used as the parameters to be optimized in the particle swarm optimization algorithm. The upper and lower standard deviations are determined based on the model prediction error corresponding to the training sample set. After determining the upper and lower standard deviations, the least squares method is used alternately to obtain the consequent parameters of the rule and the center parameters of the interval function weights; Based on the determined rule consequent parameters and interval function weight center parameters, corresponding residual prediction intervals are formed for different interval function weight width parameters. The interval function weight width parameters are determined by using the prediction interval coverage and prediction interval width as the optimization objectives of the genetic algorithm.

6. The interval prediction method based on time series analysis according to claim 5, characterized in that, The determination of the upper and lower standard deviations includes: The upper and lower standard deviations of the three interval type II Gaussian fuzzy sets in each of the first to fourth single-input rule modules are used to form 24-dimensional particle positions. For each particle, the parameters corresponding to the particle's position are written into the type II Gaussian fuzzy set of each interval. Under the current upper and lower standard deviation conditions, the regular consequent parameters and interval function weight center parameters corresponding to the particle are alternately obtained based on the training sample set. The fitness of the particle is determined based on the error between the obtained model center output and the target residual. The individual optimal position and the global optimal position are updated based on fitness, and the particle velocity and particle position are updated based on the individual optimal position and the global optimal position. The 24 parameters corresponding to the global optimal position at the end of the particle swarm iteration are determined as the upper standard deviation and lower standard deviation of the type II Gaussian fuzzy set of each interval.

7. The interval prediction method based on time series analysis according to claim 6, characterized in that, The determination of the rule consequent parameters, the center of the interval function weights, and the width of the interval function weights includes: After obtaining the upper and lower standard deviations through particle swarm optimization, the center parameters of the interval function weights are fixed and the least squares method is used to obtain the consequent parameters of the rules. Then, the obtained consequent parameters of the rules are fixed and the least squares method is used to obtain the center parameters of the interval function weights. The above process is repeated alternately to obtain the consequent parameters of the rules and the center parameters of the interval function weights. Based on the determined rule consequent parameters and interval function weight center parameters, the residual prediction interval center of each training sample is obtained. Corresponding residual prediction intervals are formed for different interval function weight width parameters. The ratio of the number of training samples whose target residuals fall into the corresponding residual prediction interval to the total number of training samples is determined as the prediction interval coverage. The average value of the width of each residual prediction interval is determined as the prediction interval width. The prediction interval coverage and prediction interval width are used as the optimization objectives of the genetic algorithm to obtain the interval function weight width parameters.

8. The interval prediction method based on time series analysis according to claim 7, characterized in that, The interval prediction results are obtained by: Obtain the residuals corresponding to the first to fourth lag orders before the target prediction time and input them into the first to fourth single-input rule modules respectively to obtain the local output of each single-input rule module; Based on the residuals corresponding to the first to fourth lag orders and the center parameters of the interval function weights, the center values ​​of the interval function weights corresponding to each single-input rule module are obtained. Based on the residuals corresponding to the first to fourth lag orders and the width parameters of the interval function weights, the half-width values ​​of the interval function weights corresponding to each single-input rule module are obtained. The center of the residual prediction interval is obtained by multiplying each local output by the corresponding interval function weight center value and summing the results. The half width of the residual prediction interval is obtained by multiplying the absolute value of each local output by the corresponding interval function weight half width value and summing the results. Subtracting and adding the half-width of the residual prediction interval from the center of the residual prediction interval yields the lower and upper boundaries of the residual prediction, respectively. The linear prediction value at the target prediction time is then added to the lower and upper boundaries of the residual prediction, respectively, to obtain the final lower and upper boundaries of the prediction.