Independent metering area water consumption interval prediction method based on bidirectional time convolution network and quantile regression forest
By combining the bidirectional temporal convolution network and the quantile regression forest model, the BiTCN-QRF model was constructed, which solved the uncertainty problem of DMA water consumption prediction, achieved accurate and reliable interval prediction, and helped water supply network managers improve leakage losses. Improve detection efficiency and reduce leakage rate.
Patent Information
- Application Number
- CN202410870189.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-29
AI Technical Summary
The existing DMA water consumption prediction method is mainly point prediction, which is difficult to describe the uncertainty of the prediction results, making leakage diagnosis difficult and causing a high leakage rate.
Using a combination of bidirectional temporal convolutional network and quantile regression forest model, the BiTCN-QRF model is used to extract deep time series features of water consumption data, and the SABO algorithm is used to optimize hyperparameters, build a prediction interval with a given confidence level, and quantify water use Uncertainty in quantitative forecasts.
It achieves the accuracy and reliability of DMA water consumption interval prediction, assists water supply network managers to make reasonable leakage diagnosis, improves leakage detection efficiency, and reduces leakage rate.
Smart Images

Figure CN118862008A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for predicting water consumption intervals in independent metering areas based on a bidirectional temporal convolutional network and a quantile regression forest, and belongs to the technical field of water resource management. Background Art
[0002] At present, the leakage rate of urban water supply pipe networks in my country is still relatively high. Therefore, how to further reduce the leakage has become an urgent problem to be solved.
[0003] With the increasing requirements for intelligent and refined management of water supply networks, DMA (District Metering Area) zoning management has become an important means of leakage control in water supply networks. As a key link in implementing active leakage control in DMA, real-time leakage diagnosis based on flow is very important for reducing leakage rate. Water consumption prediction with a time granularity of minutes is an important basis for real-time leakage diagnosis of DMA based on flow. After analysis, it is found that most of the existing DMA water consumption prediction methods belong to point prediction. Point prediction can provide a certain prediction value, so that water supply network managers have a clear reference point when making decisions. However, point predictions will have different degrees of errors, and it is difficult to describe the uncertainty of the prediction results, which brings certain difficulties to real-time leakage diagnosis. Interval prediction can not only provide a prediction range, but also provide information about prediction uncertainty. Accurate and reliable DMA water consumption interval prediction helps managers better understand the credibility of the prediction results, which is conducive to making reasonable and correct leakage diagnosis in a timely manner. This has high practical value for improving the efficiency of leakage detection and reducing the leakage rate of water supply networks. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a method for predicting water consumption intervals in independent metering areas based on a bidirectional temporal convolutional network and a quantile regression forest. The method effectively integrates the bidirectional temporal convolutional network model and the quantile regression forest model, fully utilizing the advantages of both to achieve accurate and reliable DMA water consumption interval prediction, and effectively quantify the uncertainty of water consumption prediction to meet the requirements of water supply network management decision-making and risk assessment.
[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0006] A method for predicting water consumption intervals in independent metering areas based on a bidirectional temporal convolutional network and quantile regression forests comprises the following steps:
[0007] (1) collecting original water consumption data, preprocessing the original water consumption data, and obtaining preprocessed water consumption data;
[0008] (2) Perform autocorrelation analysis on the preprocessed water consumption data, select input variables with strong correlation, construct a suitable sample set, and divide the sample set into a training set and a validation set;
[0009] (3) The BiTCN model is used to extract the deep temporal features of the training samples, and the extracted features are used as input to train the QRF model to construct the BiTCN-QRF model;
[0010] (4) Using the SABO algorithm on the validation set to optimize the hyperparameters of the BiTCN-QRF model, obtain the optimal hyperparameters and create an optimized BiTCN-QRF model;
[0011] (5) setting a corresponding quantile according to a given confidence level, inputting the sample to be predicted into the optimized BiTCN-QRF model to obtain the prediction result under the quantile;
[0012] (6) Construct a prediction interval corresponding to a given confidence level based on the prediction results of the obtained scores.
[0013] In this application, BiTCN stands for Bidirectional Time Convolutional Network, which means a bidirectional time convolutional network; QRF stands for Quantile Regression Forest, which means a quantile regression forest; SABO stands for Subtraction-Average-Based Optimizer, which means a subtraction average optimizer; DMA stands for District Metering Area, which means an independent metering area.
[0014] Preferably, the preprocessing of the original water consumption data in step (1) includes data cleaning and normalization. Furthermore, the normalization is performed using a deviation normalization method.
[0015] Preferably, the set of input variables selected in step (2) includes: n water consumption data before time i on the prediction day, and n water consumption data before and after time i on the jth day before the prediction day.
[0016] Preferably, in step (2), the data is divided into, but not limited to, a training set and a validation set according to a data partitioning strategy. The partitioning strategy may be random arrangement or other methods, such as the sample set may be divided into a training set, a validation set, and a test set in a ratio of 6:2:2.
[0017] Preferably, in step (6), formula (9) is used to construct a prediction interval corresponding to a given confidence level according to the prediction result of the obtained score:
[0018] PI(x)=[Q 0.5α(x),Q 1-0.5α (x)] (9)
[0019] In the formula, PI(x) is the prediction interval corresponding to the target value x; α is the significance level; Q 0.5α is the prediction result under the quantile 0.5α; Q 1-0.5α is the prediction result under the quantile (1-0.5α).
[0020] Preferably, in step (4), the process of optimizing the hyperparameters of the BiTCN-QRF model using the SABO algorithm on the validation set to obtain the optimal hyperparameters includes:
[0021] 4.1) Input the problem information to be optimized, including the decision variables, i.e., the hyperparameters, the objective function, and the value range of the decision variables;
[0022] 4.2) Initial parameter setting, including setting the population size N and the maximum number of iterations T;
[0023] 4.3) Initialize the population. The population initialization uses the following expression:
[0024]
[0025] x i,d =lb d +r i,d (ub d -lb d ), i=1,K,N, d=1,K,m (2)
[0026] Where: X is the population matrix; X i is the i-th candidate solution; x i,m The m-th dimension decision variable for the i-th candidate solution; lb d andub d are the lower and upper bounds of the d-dimensional decision variables of the ith candidate solution; r i,d is a random number between the interval [0,1]; N is the total number of candidate solutions;
[0027] 4.4) Calculate the fitness function values corresponding to all candidate solutions. The mathematical expression of the fitness function value is as follows:
[0028]
[0029] In the formula, is the fitness function value vector; F N is the fitness function value corresponding to the Nth candidate solution;
[0030] 4.5) Calculate the new positions of all candidate solutions:
[0031] The SABO algorithm is based on a special operation "-v", called v-subtraction, which subtracts candidate solution B from candidate solution A. Its mathematical expression is as follows:
[0032]
[0033] In the formula, is an m-dimensional random number from the set {1,2}; * represents the Hadamard product of two vectors; sign represents the sign function;
[0034] The new position of each candidate solution is calculated using the following formula:
[0035]
[0036] In the formula, is the new position of the i-th candidate solution; X i is the i-th candidate solution; N is the total number of candidate solutions; is an m-dimensional vector between the interval [0,1], whose components obey the normal distribution;
[0037] 4.6) Determine whether each candidate solution accepts its new position. When all candidate solutions in the population have been judged, save the candidate solution corresponding to the best fitness function value, which is the optimal candidate solution;
[0038] Formula (6) is used to determine whether the candidate solution accepts its new position: if the fitness function value corresponding to the candidate solution can be improved after the updated position, the new position is accepted; otherwise, the position of the candidate solution remains unchanged;
[0039]
[0040] In the formula, F i new is the fitness function value corresponding to the new position of the i-th candidate solution; F i is the fitness function value corresponding to the current position of the i-th candidate solution;
[0041] 4.7) Determine whether the algorithm termination condition is met. If so, output the saved optimal candidate solution (the optimal candidate solution is the optimal hyperparameter combination); if not, add 1 to the number of iterations and return to step 4.4) to continue iterating.
[0042] Furthermore, in step 4.1), the hyperparameters that need to be optimized in the BiTCN model include the initial learning rate, regularization coefficient, number and width of one-dimensional convolutional layer filters, etc.; the hyperparameters that need to be optimized in the QRF model include the number of trees, maximum tree depth, etc. Other hyperparameters not mentioned can use conventional default values.
[0043] Furthermore, in step 4.1), the minimum fitness function value is used as the optimization target, and the fitness function value is calculated using the following formula:
[0044]
[0045] In the formula, AIS (Average Interval Score) represents the average interval score; S i is the interval score of the i-th prediction interval; l i and u i are the lower and upper limits of the i-th prediction interval respectively; y i is the i-th target value; num is the number of test samples; μ is the coefficient determined by the confidence level, and its value is equal to the confidence level.
[0046] Furthermore, the termination condition in step 4.7) is reaching the maximum number of iterations.
[0047] Compared with the prior art, the present invention provides a method for predicting the interval of DMA water consumption with a time granularity of minutes, which makes full use of the advantages of the BiTCN model and the QRF model, predicts the change trend and fluctuation range of DMA water consumption through the BiTCN-QRF model, realizes accurate and reliable interval prediction of DMA water consumption, effectively quantifies the uncertainty of water consumption prediction, and can assist water supply network managers to make correct and reasonable leakage diagnosis in time, which helps to improve the efficiency of leakage detection and has high application value. The method of the present invention can be used as an effective auxiliary means for implementing DMA active leakage control. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 The present invention is a flowchart of the method.
[0049] Figure 2 The specific flow chart of the SABO algorithm involved in the method of the present invention.
[0050] Figure 3 This is a typical weekly water consumption curve in the DMA example in Example 1 of the present invention.
[0051] Figure 4 The autocorrelation analysis diagrams in the DMA example in Example 1 of the present invention, wherein (a) is a water consumption data analysis diagram for working days, and (b) is a water consumption data analysis diagram for rest days.
[0052] Figure 5 The method of the present invention is a graph of three consecutive days of interval prediction at different confidence levels. DETAILED DESCRIPTION
[0053] like Figure 1As shown, the method for predicting water consumption intervals in independent metering areas based on a bidirectional temporal convolutional network and a quantile regression forest according to the present invention comprises the following steps:
[0054] (1) Collect original water consumption data, preprocess the original water consumption data, and obtain preprocessed water consumption data.
[0055] The preprocessing of the original water consumption data includes data cleaning and normalization. Furthermore, the normalization is performed using a deviation standardization method.
[0056] (2) Perform autocorrelation analysis on the preprocessed water consumption data, select input variables with strong correlation, construct a suitable sample set, and divide the sample set into a training set and a validation set.
[0057] The selected input variable set includes: water consumption data of n times before time i on the forecast day, water consumption data of n times before and after time i on the jth day before the forecast day, etc.
[0058] In this step, the data is divided into, but not limited to, a training set and a validation set according to a data partitioning strategy. The partitioning strategy may be random arrangement or other methods. For example, the sample set may be divided into a training set, a validation set, and a test set in a ratio of 6:2:2.
[0059] (3) The BiTCN model is used to extract the deep temporal features of the training samples, and the extracted features are used as input to train the QRF model to construct the BiTCN-QRF model.
[0060] (4) The SABO algorithm is used on the validation set to optimize the hyperparameters of the BiTCN-QRF model, obtain the optimal hyperparameters and create an optimized BiTCN-QRF model.
[0061] In step (4), the specific process of optimizing the hyperparameters of the BiTCN-QRF model using the SABO algorithm on the validation set to obtain the optimal hyperparameters is as follows: Figure 2 As shown, the specific implementation process includes:
[0062] 4.1) Input the information of the problem to be optimized, including the decision variables, i.e. the hyperparameters to be optimized, the objective function and the value range of the decision variables.
[0063] The hyperparameters that need to be optimized in the BiTCN model include the initial learning rate, regularization coefficient, number and width of one-dimensional convolutional layer filters, etc. The hyperparameters that need to be optimized in the QRF model include the number of trees, maximum tree depth, etc. Other hyperparameters not mentioned can use the normal default values.
[0064] It is preferred to use the average interval score as the fitness function, and calculate it using the following formula:
[0065]
[0066] In the formula, AIS (Average Interval Score) represents the average interval score; S i is the interval score of the i-th prediction interval; l i and u i are the lower and upper limits of the i-th prediction interval respectively; y i is the i-th target value; num is the number of test samples; μ is the coefficient determined by the confidence level, and its value is equal to the confidence level.
[0067] 4.2) Initial parameter setting, including setting the population size N and the maximum number of iterations T.
[0068] 4.3) Initialize the population. The population initialization uses the following expression:
[0069]
[0070] x i,d =lb d +r i,d (ub d -lb d ), i=1,K,N, d=1,K,m (2)
[0071] Where: X is the population matrix; X i is the i-th candidate solution; x i,m The m-th dimension decision variable for the i-th candidate solution; lb d andub d are the lower and upper bounds of the d-dimensional decision variables of the ith candidate solution; r i,d is a random number between the interval [0,1]; N is the total number of candidate solutions;
[0072] 4.4) Calculate the fitness function values corresponding to all candidate solutions. The mathematical expression of the fitness function value is as follows:
[0073]
[0074] In the formula, is the fitness function value vector; F N is the fitness function value corresponding to the Nth candidate solution;
[0075] 4.5) Calculate the new positions of all candidate solutions:
[0076] The SABO algorithm is based on a special operation "-v", called v-subtraction, which subtracts candidate solution B from candidate solution A. Its mathematical expression is as follows:
[0077]
[0078] In the formula, is an m-dimensional random number from the set {1,2}; * represents the Hadamard product of two vectors; sign represents the sign function;
[0079] The new position of each candidate solution is calculated using the following formula:
[0080]
[0081] In the formula, is the new position of the i-th candidate solution; X i is the i-th candidate solution; N is the total number of candidate solutions; is an m-dimensional vector between the interval [0,1], whose components obey the normal distribution;
[0082] 4.6) Determine whether each candidate solution accepts its new position. When all candidate solutions in the population have been judged, save the candidate solution corresponding to the best fitness function value, which is the optimal candidate solution;
[0083] Formula (6) is used to determine whether the candidate solution accepts its new position: if the fitness function value corresponding to the candidate solution can be improved after the updated position, the new position is accepted; otherwise, the position of the candidate solution remains unchanged;
[0084]
[0085] In the formula, F i new is the fitness function value corresponding to the new position of the i-th candidate solution; F i is the fitness function value corresponding to the current position of the i-th candidate solution;
[0086] 4.7) Determine whether the algorithm termination condition is met. If so, output the saved optimal candidate solution (the optimal candidate solution is the optimal hyperparameter combination); if not, add 1 to the number of iterations and return to step 4.4) to continue iterating.
[0087] The termination condition is usually reaching the maximum number of iterations.
[0088] (5) setting a corresponding quantile according to a given confidence level, inputting the sample to be predicted into the optimized BiTCN-QRF model to obtain the prediction result under the quantile;
[0089] (6) Construct a prediction interval corresponding to a given confidence level based on the prediction results of the obtained scores.
[0090] Formula (9) is used to construct the prediction interval corresponding to a given confidence level based on the prediction results of the obtained scores:
[0091] PI(x)=[Q 0.5α (x),Q 1-0.5α (x)] (9)
[0092] In the formula, PI(x) is the prediction interval corresponding to the target value x; α is the significance level; Q 0.5α is the prediction result under the quantile 0.5α; Q 1-0.5α is the prediction result under the quantile (1-0.5α).
[0093] Example 1: A specific implementation of the method of the present invention is described using a DMA example so that those skilled in the art can better understand the present invention.
[0094] The selected example mainly supplies water to residential areas and a small number of industrial enterprises. In this example, all tests are performed in the Matlab 2023a environment. The specific implementation steps of this example are as follows:
[0095] (1) Collection and preprocessing of water consumption data
[0096] The data set for this example was collected from December 1, 2023 to February 29, 2024 (a total of 91 days), with a collection interval of 15 minutes, and a total of 8736 data were obtained. Figure 3 This is a typical weekly water consumption curve for this DMA.
[0097] Affected by uncontrollable factors such as abnormal metering equipment and pipeline maintenance, there are data missing and data anomalies in the data collection process. Data quality has a direct impact on the performance of the model, so data cleaning is required to improve data quality before data is input into the model. The specific measures for data cleaning are as follows: use the average water consumption at the same time of the previous two days to fill in missing values; use the average of the previous two water consumption data to replace abnormal values. After data cleaning is completed, the deviation standardization method is used to normalize the data. The mathematical expression of the deviation standardization method is as follows:
[0098]
[0099] In the formula, x norm is the normalized value; x is the original water consumption data; x max and x min are the maximum and minimum values of the original water consumption data respectively.
[0100] (2) Construction of sample set
[0101] Randomly select one day of water consumption data on working days and rest days for autocorrelation analysis, such as Figure 4 As shown. Figure 3 and Figure 4 It can be seen that the water consumption data has obvious periodicity and short-term correlation. The input variable set selected is: n water consumption data before time i on the forecast day, n water consumption data before and after time i on the jth day before the forecast day, and m sampling times per hour. The data structure of the sample is shown in Table 1 below:
[0102] Table 1 Data structure of the sample
[0103]
[0104] According to the results of autocorrelation analysis, the value of n in Table 1 can be determined. In this example, the lag number corresponding to the autocorrelation coefficient greater than 0.8 is 4, which is used as the value of n, so n = 4. Since the sampling time interval of the data is 15 minutes, m = 60 / 15 = 4. According to the trial and error method, considering that too many variables in the input sample will affect the processing efficiency, the value of j is 2. After the parameters n, j, and m are determined, the specific data structure of the sample can be obtained, and then a suitable sample can be generated.
[0105] According to the sample construction method in Table 1, a total of 8057 samples are generated in this example. The sample set is divided into training set, validation set and test set in a ratio of 6:2:2, thus obtaining 4833 training samples, 1612 validation samples and 1612 test samples.
[0106] (3) Construction of BiTCN-QRF model
[0107] The BiTCN model is used to extract the deep temporal features of the training samples, and the extracted features are used as input to train the QRF model to construct the BiTCN-QRF model.
[0108] (4) Create the optimized BiTCN-QRF model
[0109] Taking the minimum AIS as the optimization target, the SABO algorithm is used on the validation set to optimize the hyperparameters of the BiTCN-QRF model, obtain the optimal hyperparameters and create the optimized BiTCN-QRF model.
[0110] The hyperparameters that need to be optimized for the BiTCN model include the initial learning rate, regularization coefficient, number and width of one-dimensional convolutional layer filters, etc. The hyperparameters that need to be optimized for the QRF model include the number of trees, maximum tree depth, etc. The specific parameter setting details are shown in Table 2, where the values in brackets indicate the optimization range. The default values are used for the hyperparameters not mentioned in Table 2.
[0111] Table 2 Parameter settings of BiTCN-QRF model
[0112]
[0113] In order to effectively evaluate the interval prediction performance of the model, prediction interval coverage probability (PICP), prediction interval normalized average width (PINAW) and average interval score AIS are selected as evaluation indicators. The calculation formulas of evaluation indicators PICP and PINAW are as follows:
[0114]
[0115] Where R is the range of the predicted target value, which is used to normalize the average bandwidth; i and u i are the lower and upper limits of the i-th prediction interval respectively; y i is the i-th target value; k i Whether the actual water consumption data is within the prediction interval (1 if it is within the interval, otherwise 0); num is the number of test samples.
[0116] PICP represents the probability that the true value falls into the given prediction interval, which can be used to test the reliability of interval prediction; PINAW reflects the clarity of interval prediction, aiming to avoid the prediction interval being too wide due to the simple pursuit of reliability, and failing to provide effective prediction value uncertainty information, thus losing decision-making value. Under the condition of a certain coverage rate, the smaller the PINAW value, the narrower the prediction interval and the better the prediction effect. Therefore, a good interval prediction should have a larger PICP and a smaller PINAW. AIS takes into account both PICP and PINAW. The smaller the AIS value, the better the quality of the prediction interval.
[0117] In order to verify the superiority of the method of the present invention, the method of the present invention, QRF, Gaussian process regression (GPR), long short-term memory network quantile regression (QR-LSTM) and other models are used to perform interval prediction on the DMA water consumption (at different confidence levels) on the test set, and the test results are shown in Table 3.
[0118] Table 3 Interval prediction test results at different confidence levels
[0119]
[0120] As can be seen from Table 3, at the confidence levels of 90%, 80% and 70%, the PICP of the method of the present invention greatly exceeds the given confidence level, indicating that the method of the present invention meets the reliability requirements of interval prediction. In terms of the PINAW index, the values of the method of the present invention at different confidence levels are all the smallest, indicating that the method has the best clarity and the prediction results are more stable than other models. In terms of the comprehensive evaluation index AIS, the method of the present invention has the best effect and is superior to other models at all confidence levels, indicating that the overall interval prediction quality of the method of the present invention is higher and has greater superiority.
[0121] Figure 5 The following is a three-day interval prediction curve chart of the method of the present invention at different confidence levels. Figure 5 It can be seen that the method of the present invention can track the changing trend of water consumption data well, and there is no serious deviation from the prediction interval, which shows that the interval prediction result of the method of the present invention has high reliability and good stability. As the confidence level increases, the reliability is higher, and the width of the interval also increases, but there is no significant difference in the change range of the interval width in different time periods, which shows that the interval width obtained by the prediction method of the present invention has good consistency, and avoids the problem of too large a gap between the peak and the trough of the prediction interval, and finally improves the quality of the prediction interval.
Claims
1. A method for predicting water consumption intervals in independent metering areas based on a bidirectional temporal convolutional network and quantile regression forest, comprising the following steps: (1) collecting original water consumption data, preprocessing the original water consumption data, and obtaining preprocessed water consumption data; (2) Perform autocorrelation analysis on the preprocessed water consumption data, select input variables with strong correlation, construct a suitable sample set, and divide the sample set into a training set and a validation set; (3) The BiTCN model is used to extract the deep temporal features of the training samples, and the extracted features are used as input to train the QRF model to construct the BiTCN-QRF model; (4) Using the SABO algorithm on the validation set to optimize the hyperparameters of the BiTCN-QRF model, obtain the optimal hyperparameters and create an optimized BiTCN-QRF model; (5) setting a corresponding quantile according to a given confidence level, inputting the sample to be predicted into the optimized BiTCN-QRF model to obtain the prediction result under the quantile; (6) Construct a prediction interval corresponding to a given confidence level based on the prediction results of the obtained scores.
2. The method according to claim 1, characterized in that: In step (1), preprocessing includes data cleaning and normalization.
3. The method according to claim 1, characterized in that: In step (2), the selected input variable set is: the water consumption data of n times before time i on the prediction day, and the water consumption data of n times before and after time i on the jth day before the prediction day.
4. The method according to claim 1, characterized in that: In step (4), the implementation process of optimizing the hyperparameters of the BiTCN-QRF model using the SABO algorithm on the validation set to obtain the optimal hyperparameters includes: 4.1) Input the problem information to be optimized, including the decision variables, i.e., the hyperparameters, the objective function, and the value range of the decision variables; 4.2) Initial parameter setting, including setting the population size N and the maximum number of iterations T; 4.3) Initialize the population. The population initialization uses the following expression: x i,d =lb d +r i,d (ub d -lb d ), i=1,K,N, d=1,K,m (2) Where X is the population matrix; X i is the i-th candidate solution; x i,m The m-th dimension decision variable for the i-th candidate solution; lb d andub d are the lower and upper bounds of the d-dimensional decision variables of the ith candidate solution; r i,d is a random number between the interval [0,1]; N is the total number of candidate solutions; 4.4) Calculate the fitness function values corresponding to all candidate solutions. The mathematical expression of the fitness function value is as follows: In the formula, is the fitness function value vector; F N is the fitness function value corresponding to the Nth candidate solution; 4.5) Calculate the new positions of all candidate solutions: The SABO algorithm is based on a special operation "-v", called v-subtraction, which subtracts candidate solution B from candidate solution A. Its mathematical expression is as follows: In the formula, is an m-dimensional random number from the set {1,2}; * represents the Hadamard product of two vectors; sign represents the sign function; The new position of each candidate solution is calculated using the following formula: In the formula, is the new position of the i-th candidate solution; X i is the i-th candidate solution; N is the total number of candidate solutions; is an m-dimensional vector between the interval [0,1], whose components obey the normal distribution; 4.6) Determine whether each candidate solution accepts its new position. When all candidate solutions in the population have been judged, save the candidate solution corresponding to the best fitness function value, which is the optimal candidate solution; Formula (6) is used to determine whether the candidate solution accepts its new position: if the fitness function value corresponding to the candidate solution can be improved after the updated position, the new position is accepted; otherwise, the position of the candidate solution remains unchanged; In the formula, F i new is the fitness function value corresponding to the new position of the i-th candidate solution; F i is the fitness function value corresponding to the current position of the i-th candidate solution; 4.7) Determine whether the algorithm termination condition is met. If so, output the saved optimal candidate solution; if not, increase the number of iterations by 1 and return to step 4.4) to continue iterating.
5. The method according to claim 4, characterized in that: In step 4.1), the average interval score is used as the fitness function and the following formula is used for calculation: In the formula, AIS represents the average interval score; S i is the interval score of the i-th prediction interval; l i and u i are the lower and upper limits of the i-th prediction interval respectively; y i is the i-th target value; num is the number of test samples; μ is the coefficient determined by the confidence level, and its value is equal to the confidence level.
6. The method according to claim 1, characterized in that: In step (6), the prediction interval corresponding to the given confidence level is constructed based on the prediction results of the obtained scores using formula (9): PI(x)=[Q 0.5α (x),Q 1-0.5α (x)] (9) In the formula, PI(x) is the prediction interval corresponding to the target value x; α is the significance level; Q 0.5α is the prediction result under the quantile 0.5α; Q 1-0.5α is the prediction result under the quantile (1-0.5α).
