A method for constructing a multivariate time series prediction model based on human-computer collaborative optimization

The multi-variable time series integrated prediction model is built through human-computer collaborative optimization method, which solves the problem of difficult to balance prediction performance and interpretability in the existing technology. The visual analysis optimization module identifies and optimizes the base learner, which improves the prediction results and Model understandability.

CN118313487BActive Publication Date: 2024-08-23NORTHEAST NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410735311.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-08-23
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

There are problems in the construction and application of existing multi-variable time series integrated prediction models that are difficult to balance between prediction performance and model interpretability. It is difficult to understand the relationship between the selection of base learners and integration results in depth with traditional methods, and there is a lack of intuitive representation of base learning. The contribution of the controller to the final prediction result.

Method used

Using a method based on human-computer collaborative optimization, through data preprocessing, prediction model construction and visual analysis optimization modules, a multi-variable time series integrated prediction model based on optimization ideas is constructed. The BA optimization algorithm is used to select the base learner, combined with visual analysis. The optimization module identifies base learners with poor prediction performance, optimizes the combination of integrated models, and improves prediction results.

Benefits of technology

It realizes multi-angle comparison and optimization of multi-variable time series integrated prediction models, improves users' understanding and trust of integrated models, and enhances understanding of the contribution to the final prediction results by visually displaying the relationship between model selection and integration results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118313487B
    Figure CN118313487B
Patent Text Reader

Abstract

The present invention relates to the field of visual analysis, and discloses a method for constructing a multivariate time series prediction model based on human-computer collaborative optimization, including: a data preprocessing module for obtaining a preprocessed data set; a prediction model construction module for constructing a prediction model based on the preprocessed data set, wherein the prediction model predicts the collected air pollution data to obtain a prediction result; and a visual analysis optimization module for users to optimize the prediction model, and optimize the base learner combination of the integrated model through visual exploration from the perspective of the model and the instance, thereby improving the prediction result of the integrated model. The technical solution provided by the present invention supports multi-angle comparison, analysis and optimization of the multivariate time series integrated prediction model based on an automated method, thereby improving users' understanding and trust in the integrated model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a method for constructing a multivariate time series prediction model based on human-computer collaborative optimization. Background Art

[0002] Multivariate time series data are widely used in many fields such as meteorology, medicine, transportation and finance, and contain complex temporal dependencies between multiple variables. Generally speaking, inferring future states by capturing these complex dependencies is an indispensable key task in the decision-making process in related fields. However, the temporal relationship of variables in the real world is usually nonlinear and non-stationary, making the prediction of future observations of multiple variables very complicated. In recent years, scholars have proposed ensemble learning methods, which improve the accuracy of prediction by fusing multiple base learners with different characteristics. This is one of the main means to solve the above problems. However, it is difficult to effectively construct and apply multivariate time series ensemble prediction models. On the one hand, its prediction performance is closely related to the accuracy of individual base learners and the overall diversity of base learners. How to reasonably select and match base learners for time series prediction models is still a challenging task. Traditional automated methods usually only compare base learners based on performance indicators, which cannot deeply understand the prediction behavior of the model and it is difficult to obtain the optimal combination of base learners. On the other hand, with the increasing complexity of the ensemble model prediction process, the interpretability and transparency of the model are reduced. Analysts need to understand how and to what extent different base learner models affect the final prediction results, so as to enhance their understanding of the ensemble model and their confidence in the prediction. Existing methods lack the ability to intuitively represent the contribution of base learners to the ensemble model by showing the relationship between model selection and ensemble results. Summary of the invention

[0003] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a method for constructing a multivariate time series prediction model based on human-computer collaborative optimization, comprising:

[0004] A data preprocessing module is used to match the grid longitude and latitude with the selected area, and extract the air pollution data of the selected area for preprocessing to obtain a preprocessed data set;

[0005] A prediction model building module is used to build a multivariate time series integrated prediction model based on optimization ideas according to the preprocessed data set. The prediction model predicts the collected air pollution data to obtain prediction results.

[0006] The visual analysis optimization module is used to optimize the prediction model. It identifies base learners with poor prediction performance through visual exploration from the perspective of models and instances, thereby optimizing the base learner combination of the integrated model and improving the prediction results of the integrated model.

[0007] Furthermore, the data preprocessing module is used to match the grid longitude and latitude with the selected area, and extract the air pollution data of the selected area for preprocessing to obtain a preprocessed data set, including:

[0008] Normalizing the collected air pollution data to obtain a preprocessed data set, and dividing the preprocessed data set to obtain multiple data subsets;

[0009] The collected air pollution data is normalized to obtain a preprocessed data set, including:

[0010] Using the Min-Max normalization method, the data is mapped to In the range, the following formula is used:

[0011]

[0012] in, represents the normalized data, Represents the original data, Represents the maximum value of the original data, Represents the minimum value of the original data.

[0013] Furthermore, the prediction model building module is used to build a multivariate time series integrated prediction model based on optimization ideas according to the preprocessed data set, including:

[0014] The selected algorithm is trained to obtain multiple base learners; the objective function is constructed, and the objective function is solved by the BA optimization algorithm to obtain the selected base learners and the initial base learner combination; the base learner combination is predicted on the validation set to obtain the output results of all sample points in the validation set, and the prediction errors of each base learner in the base learner combination are obtained according to the output results, and the weights of the base learners are obtained according to the prediction errors of the base learners, and the weights of the base learners are normalized and weighted summed to obtain the weighted features of the prediction results of the base learners, and a new data set is constructed according to the output results of the sample points, the true values ​​of the sample points and the weighted features of the prediction results of the base learners, and the meta-learning algorithm is trained on the new data set to obtain an integrated prediction model;

[0015] Furthermore, the preprocessed data set is divided to obtain multiple data subsets, and the selected algorithm is trained to obtain multiple base learners, including the following process:

[0016] Five-fold cross validation was used to convert the preprocessed training data set , divided into T training data subsets of equal size and non-overlapping, and the algorithm is trained using T-1 training data subsets, using the following formula:

[0017]

[0018] Get the base learner:

[0019]

[0020] Among them are different algorithms selected, among which .

[0021] Furthermore, the objective function constructed includes:

[0022] The first objective is to minimize the root mean square error of the base learner. The root mean square error of the base learner for:

[0023]

[0024] in, represents the number of samples, Representative The true value of the samples, No. The predicted value of samples;

[0025] The first objective function for:

[0026]

[0027] in, represents the mean root mean square error of the base learners in the ensemble model, and M represents the number of base learners;

[0028] The second goal is to maximize the diversity of base learners. The correlation coefficient between any two base learners is:

[0029]

[0030] in, and Represent the base learners and base learner The prediction error, represents the covariance of the errors of the two base learners, and Respectively represent the error and error The variance of

[0031] The second objective function for:

[0032]

[0033] The variance of the prediction error of the base learner is used as the uncertainty indicator, and the third objective function for:

[0034]

[0035] Then the objective function is:

[0036]

[0037] in, is the number of objective functions, is the objective function The weight of .

[0038] Furthermore, the objective function is solved by the BA optimization algorithm to obtain the selected base learners and the initial base learner combination, including:

[0039] Based on the BA algorithm, individuals represent the weight coefficient vector of the base learner, and the dimension is the number of all base learners. The base learners are selected based on the threshold, and the weight of each base learner is set at Set the threshold value , in the searched solution vector, if the threshold of the base learner is less than , then the base learner is not selected; if the threshold of the base learner is greater than , then the base learner is selected, and the initial base learner combination is obtained according to the selected base learner.

[0040] Furthermore, the base learner combination is predicted on the validation set to obtain output results of all sample points in the validation set, prediction errors of each base learner in the base learner combination are obtained according to the output results, weights of the base learners are obtained according to the prediction errors of the base learners, the weights of the base learners are normalized, and weighted summation is performed to obtain weighted features of the prediction results of the base learners, including:

[0041] Set data set , the number of base learners , for the sample The prediction results of the base learner are:

[0042]

[0043] The weight is calculated as:

[0044]

[0045] in, Representation sample In the base learner The predicted value on Representation sample The true value of Representation sample In the base learner The prediction error on ;

[0046] Normalize the weights so that the sum of the weights of each sample on different base learners is equal to 1, using the following formula:

[0047]

[0048] Perform weighted summation to obtain the weighted features of the base learner prediction results:

[0049] .

[0050] Furthermore, the method of constructing a new data set based on the output results of the sample points, the true values ​​of the sample points, and the weighted features of the prediction results of the base learners, training the meta-learning algorithm on the new data set, and obtaining an integrated model includes the following process:

[0051] In the training set Adopted Fold Cross Validation Algorithm Train to get Basis Learner ; Based on the BA optimization algorithm for the base learner Make a selection and get the optimal combination of base learners after selection ; Base learner combination In the validation set Make predictions on it and get all the sample points in the validation set The output of ; Get a new data set based on the weighted features of the base learner prediction results ; In the new dataset Meta-learning algorithm Train and get the integrated model .

[0052] Furthermore, the visual analysis optimization module is used by the user to optimize the prediction model, and to identify base learners with poor prediction performance through visual exploration from the perspective of models and instances, thereby optimizing the base learner combination of the integrated model and improving the prediction results of the integrated model, including:

[0053] The visual analysis optimization module supports users to compare and analyze the performance and feature importance of prediction models through the model exploration optimization module, and eliminate base learners that focus on unreasonable features during prediction; the instance exploration optimization module supports users to interactively explore prediction models from the perspective of instances, and select base learners with better prediction performance for instances with large errors; the integrated monitoring module supports users to monitor the performance changes of prediction models in real time;

[0054] The model exploration and optimization module includes a model overview view and a model detail view. The model overview view is used to display the overall performance and feature importance of each candidate model and provide an overall comparison of different base learners. The model detail view is used to display the detailed prediction performance of a single model and the feature importance of each timestamp in a time series context.

[0055] The instance exploration optimization module includes a similarity view and an error matrix view. The similarity view is used to display the similarity of the original features of the instance, and the error matrix view is used to predict the similarity of the errors.

[0056] The beneficial effects of the present invention are as follows: through the technical solution provided by the present invention, it is possible to support multi-angle comparison, analysis and optimization of multivariate time series integrated prediction models based on automated methods, helping to identify effective models that are not selected by the algorithm; by demonstrating the relationship between model selection and integrated results, as well as the contribution of each model to the final prediction, it is possible to improve users' understanding and trust in the integrated model. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A flowchart of a method for building a multivariate time series prediction model based on human-computer collaborative optimization;

[0058] Figure 2 It is a schematic diagram of the principle of the visual analysis system of the prediction model based on multivariate time series data;

[0059] Figure 3 Generate process graph for base learner;

[0060] Figure 4 It is a visual analysis flow chart;

[0061] Figure 5 The model overview view, where (ac) are other design options; (d) is the final design;

[0062] Figure 6 This is a schematic diagram of the control panel;

[0063] Figure 7 Model detail views, including (a) line chart; (b) feature importance view; (c) feature importance for a specific period of time;

[0064] Figure 8 Compare views for models;

[0065] Fig. 9 is the error matrix view;

[0066] Fig.10 It is an instance exploration diagram, including (a) the similarity distribution diagram of new and old instances; (b) the error matrix diagram of single cluster historical instances;

[0067] Fig.11 Select a view for the model;

[0068] Fig.12 The integrated monitoring view includes (a) the initial integrated performance graph and (b) the updated integrated performance graph. DETAILED DESCRIPTION

[0069] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings, but the protection scope of the present invention is not limited to the following.

[0070] The features and performance of the present invention are further described in detail below in conjunction with the embodiments.

[0071] like Figure 1 The multivariate time series prediction model construction method based on human-computer collaborative optimization includes:

[0072] A data preprocessing module is used to match the grid longitude and latitude with the selected area, and extract the air pollution data of the selected area for preprocessing to obtain a preprocessed data set;

[0073] A prediction model building module is used to build a multivariate time series integrated prediction model based on optimization ideas according to the preprocessed data set. The prediction model predicts the collected air pollution data to obtain prediction results.

[0074] The visual analysis optimization module is used to optimize the prediction model. It identifies base learners with poor prediction performance through visual exploration from the perspective of models and instances, thereby optimizing the base learner combination of the integrated model and improving the prediction results of the integrated model.

[0075] The data preprocessing module is used to match the grid longitude and latitude with the selected area, and extract the air pollution data of the selected area for preprocessing to obtain a preprocessed data set, including:

[0076] Normalizing the collected air pollution data to obtain a preprocessed data set, and dividing the preprocessed data set to obtain multiple data subsets;

[0077] The collected air pollution data is normalized to obtain a preprocessed data set, including:

[0078] Using the Min-Max normalization method, the data is mapped to In the range, the following formula is used:

[0079]

[0080] in, represents the normalized data, Represents the original data, Represents the maximum value of the original data, Represents the minimum value of the original data.

[0081] The prediction model building module is used to build a multivariate time series integrated prediction model based on optimization ideas according to the preprocessed data set, including:

[0082] The selected algorithm is trained to obtain multiple base learners; the objective function is constructed, and the objective function is solved by the BA optimization algorithm to obtain the selected base learners and the initial base learner combination; the base learner combination is predicted on the validation set to obtain the output results of all sample points in the validation set, and the prediction errors of each base learner in the base learner combination are obtained according to the output results, and the weights of the base learners are obtained according to the prediction errors of the base learners, and the weights of the base learners are normalized and weighted summed to obtain the weighted features of the prediction results of the base learners, and a new data set is constructed according to the output results of the sample points, the true values ​​of the sample points and the weighted features of the prediction results of the base learners, and the meta-learning algorithm is trained on the new data set to obtain an integrated prediction model;

[0083] The method of dividing the preprocessed data set to obtain multiple data subsets and training the selected algorithm to obtain multiple base learners includes the following process:

[0084] Five-fold cross validation was used to convert the preprocessed training data set , divided into T training data subsets of equal size and non-overlapping, and the algorithm is trained using T-1 training data subsets, using the following formula:

[0085]

[0086] Get the base learner:

[0087]

[0088] Among them are different algorithms selected, among which .

[0089] The construction objective function includes:

[0090] The first objective is to minimize the root mean square error of the base learner. The root mean square error of the base learner for:

[0091]

[0092] in, represents the number of samples, Representative The true value of the samples, No. The predicted value of samples;

[0093] The first objective function for:

[0094]

[0095] in, represents the mean root mean square error of the base learners in the ensemble model, and M represents the number of base learners;

[0096] The second goal is to maximize the diversity of base learners. The correlation coefficient between any two base learners is:

[0097]

[0098] in, and Represent the base learners and base learner The prediction error, represents the covariance of the errors of the two base learners, and Respectively represent the error and error The variance of

[0099] The second objective function for:

[0100]

[0101] The variance of the prediction error of the base learner is used as the uncertainty indicator, and the third objective function for:

[0102]

[0103] Then the objective function is:

[0104]

[0105] in, is the number of objective functions, is the objective function The weight of .

[0106] The objective function is solved by the BA optimization algorithm to obtain the selected base learners and the initial base learner combination, including:

[0107] Based on the BA algorithm, individuals represent the weight coefficient vector of the base learner, and the dimension is the number of all base learners. The base learners are selected based on the threshold, and the weight of each base learner is set at Set the threshold value , in the searched solution vector, if the threshold of the base learner is less than , then the base learner is not selected; if the threshold of the base learner is greater than , then the base learner is selected, and the initial base learner combination is obtained according to the selected base learner.

[0108] The base learner combination is predicted on the validation set to obtain the output results of all sample points in the validation set, and the prediction errors of each base learner in the base learner combination are obtained according to the output results. The weight of the base learner is obtained according to the prediction error of the base learner, and the weight of each base learner is normalized and weighted summed to obtain the weighted features of the prediction results of the base learners, including:

[0109] Set data set , the number of base learners , for the sample The prediction results of the base learner are:

[0110]

[0111] The weight is calculated as:

[0112]

[0113] in, Representation sample In the base learner The predicted value on Representation sample The true value of Representation sample In the base learner The prediction error on ;

[0114] Normalize the weights so that the sum of the weights of each sample on different base learners is equal to 1, using the following formula:

[0115]

[0116] Perform weighted summation to obtain the weighted features of the base learner prediction results:

[0117] .

[0118] The method of constructing a new data set based on the output results of the sample points, the true values ​​of the sample points, and the weighted features of the prediction results of the base learner, training the meta-learning algorithm on the new data set, and obtaining an integrated model includes the following processes:

[0119] In the training set Adopted Fold Cross Validation Algorithm Train to get Basis Learner ; Based on the BA optimization algorithm for the base learner Make a selection and get the optimal combination of base learners after selection ; Base learner combination In the validation set Make predictions on it and get all the sample points in the validation set The output of ; Get a new data set based on the weighted features of the base learner prediction results ; In the new dataset Meta-learning algorithm Train and get the integrated model .

[0120] The visual analysis optimization module is used by users to optimize the prediction model. It identifies base learners with poor prediction performance through visual exploration from the perspective of models and instances, thereby optimizing the base learner combination of the integrated model and improving the prediction results of the integrated model, including:

[0121] The visual analysis optimization module supports users to compare and analyze the performance and feature importance of prediction models through the model exploration optimization module, and eliminate base learners that focus on unreasonable features during prediction; the instance exploration optimization module supports users to interactively explore prediction models from the perspective of instances, and select base learners with better prediction performance for instances with large errors; the integrated monitoring module supports users to monitor the performance changes of prediction models in real time;

[0122] The model exploration and optimization module includes a model overview view and a model detail view. The model overview view is used to display the overall performance and feature importance of each candidate model and provide an overall comparison of different base learners. The model detail view is used to display the detailed prediction performance of a single model and the feature importance of each timestamp in a time series context.

[0123] The example exploration optimization module includes a similarity view and an error matrix view. The similarity view is used to show the similarity of the original features of the examples, and the error matrix view is used to predict the similarity of the errors. Figure 2 shown.

[0124] Specifically, the data mainly used in the present invention is the China High-Resolution Air Pollution Reanalysis Dataset released by the Institute of Atmospheric Physics of the Chinese Academy of Sciences and other units. The data set is a gridded data of daily average values ​​of six conventional pollutants and five meteorological variables covering the whole country from 2013 to 2018. The whole country is divided into 42,249 grids. The data set is shown in Table 1. The daily data contains 13 attributes including six conventional pollutants, wind speed, temperature, relative humidity, air pressure, and longitude and latitude of each grid.

[0125] Table 1 Data description of air pollution dataset

[0126]

[0127] In order to obtain the administrative district corresponding to each grid in the data set, the present invention preprocesses the original data. First, the longitude and latitude coordinates of the 42249 grids are matched to their corresponding administrative districts, and the global reverse geocoding service of the Baidu Map API (Application Programming Interface) is used to obtain city information, and the longitude and latitude are parsed into the corresponding administrative districts. Some matching results are shown in Figure 2. Figure 3 Then, based on the acquired city information, the data of a certain area is extracted for subsequent experiments.

[0128] Both pollutant variables and meteorological variables have different numerical ranges, and large differences in numerical ranges will affect the stability of model prediction. In order to ensure that the scales of each dimension are relatively consistent, the data needs to be normalized. This paper adopts the Min-Max normalization method to map the data to Within the range, the specific formula is shown in Formula 3-1.

[0129] (3-1)

[0130] in, represents the normalized data, Represents the original data, Represents the maximum value of the original data, Represents the minimum value of the original data.

[0131] 3.2 Method for generating base learners by integrating models and data diversity

[0132] In order to enhance the diversity of the model, four different types of algorithms are selected. In order to enhance the diversity of the data, the input sample perturbation method can be used to divide the data set to generate multiple data subsets. Each time, a data subset is used to train the algorithm to obtain multiple base learners. For example, the Bagging algorithm uses the self-service sampling method to randomly extract the same number of samples from the training data set with replacement to generate multiple different sub-data sets. Then, each sub-data set is used to independently train a base learner. times, you can train base learners. However, due to the randomness of this extraction method, a sample may be repeatedly extracted multiple times or never be extracted. The former may lead to the risk of overfitting the integrated model or imbalanced sample weights, and the latter may lead to the inability to fully cover the training set. Therefore, the present invention uses a cross-validation method to divide the training set, and uses a five-fold cross-validation to divide the training data into five equal-sized and non-intersecting subsets. Four of the subsets are used to train the algorithm. The generation process of the base learner is as follows: Figure 3 shown.

[0133] The specific steps of generating the base learner are shown in Algorithm 1.

[0134]

[0135] The present invention adopts the idea of ​​optimization to select the initial base learner combination. Traditional methods can often only make selections based on a single performance indicator or a simple criterion. The optimization method can more comprehensively consider multiple performance indicators and constraints, and effectively balance and optimize between these indicators and conditions to find a relatively better base learner combination.

[0136] Based on the above analysis, the present invention selects base learners using an optimization-based method. In the optimization problem, the objective function must first be determined. Since the integrated model requires the participating base learners to have diversity and accuracy, two objective functions, accuracy and diversity, are usually defined. Accuracy usually uses performance indicators such as root mean square error, and diversity usually uses correlation coefficients. The greater the difference between base learners, the smaller the correlation coefficient value. The specific objective function is defined as follows:

[0137] The first goal is to minimize the root mean square error of the base learner. The smaller the root mean square error, the smaller the deviation between the predicted result and the true result. The root mean square error of the base learner As shown in formula 3-2, represents the number of samples, Representative The true value of the samples, No. The predicted value of a sample.

[0138] (3-2)

[0139] Therefore, the first objective function The calculation is as shown in formula 3-3. Among them, represents the mean RMS error of the base learners in the ensemble model, and M represents the number of base learners.

[0140] (3-3)

[0141] The second goal is to maximize the diversity of base learners. The present invention uses the correlation coefficient as the diversity index of base learners. The greater the difference between base learners, the smaller the correlation coefficient value of their prediction errors. Therefore, the problem of maximizing the diversity of base learners is transformed into minimizing the error correlation coefficient of base learners. The correlation coefficient of any two base learners is shown in Formula 3-4.

[0142] (3-4)

[0143] in, and Represent the base learners and base learner The prediction error, represents the covariance of the errors of the two base learners, and Respectively represent the error and error The variance of . Its average value is used as the second objective function , as shown in Formula 3-5.

[0144] (3-5)

[0145] The present invention adds an uncertainty index based on the two indicators of accuracy and diversity. The prediction uncertainty of a model refers to the degree of uncertainty in the model's prediction of given input data. Uncertainty can provide information about the credibility of the model and reflect the confidence level of the model's prediction. Adding uncertainty indicators when selecting base learners helps to select base learners that perform well under conditions of low uncertainty. When faced with data with high noise or uncertainty, base learners with low uncertainty are more reliable. The present invention uses the variance of the base learner prediction error as an uncertainty index. Therefore, the third objective function , as shown in Formula 3-6.

[0146] (3-6)

[0147] The target optimization problem of the present invention can be summarized as Formula 3-7.

[0148] (3-7)

[0149] The target optimization problem is converted into an objective function through the weighted method, as shown in Formula 3-8.

[0150] (3-8)

[0151] in, is the number of objective functions, is the objective function In summary, when selecting base learners using the optimization algorithm, the present invention considers the accuracy, diversity and uncertainty of the base learners to ensure that the base learners finally selected can achieve the best balance in terms of performance, diversity and credibility.

[0152] Base learner selection method based on BA optimization algorithm

[0153] In view of the fact that the Bat Algorithm (BA) has been proven to be an efficient optimization algorithm in many research works and has been widely used in many research fields, the present invention introduces the Bat Algorithm (BA) to perform heuristic search based on multiple optimization objectives constructed to find a better combination of base learners among multiple candidate base learners. The BA optimization algorithm is a swarm intelligence optimization algorithm proposed in 2010. Swarm intelligence optimization algorithms have developed rapidly in recent years. It is a type of optimization method developed by being inspired by the behavior of social animals in nature. These algorithms simulate the intelligent behavior of organisms such as ant colonies, bird flocks, and fish schools in collaborative work and collective actions. The BA algorithm was proposed by being inspired by the echolocation behavior of bats during hunting. It is a heuristic algorithm with great development potential and has been widely used in many research fields.

[0154] The BA algorithm uses individual bats as basic units and randomly distributes them to find the optimal position of bats in the search space, that is, the location of prey. At the beginning of the algorithm, each individual senses the surrounding prey with a lower pulse frequency and a higher loudness. When prey is found (the current optimal solution), the pulse frequency is increased and the loudness is reduced to quickly grasp the location of the prey. By comparing with individuals in a better position, individuals in a worse position gradually move towards individuals in a better position. After multiple searches and movements, individuals will gather in the optimal position, thereby achieving the optimization task. The main steps of the BA algorithm are as follows:

[0155] (1) Parameter initialization. Generate population size , the position of each individual , minimum sound wave frequency , the maximum value of the sound wave frequency , impulse loudness , pulse frequency , loudness attenuation coefficient α, frequency increase coefficient , the maximum number of iterations T, and find the individual with the best fitness value in the initial population .

[0156] (2) Update individual speed and position. Update the individual sound wave frequency, speed, and position according to formulas 3-9 to 3-11.

[0157] (3-9) (3-10)

[0158] (3-11)

[0159] in, For individuals The frequency of the sound wave; is a uniformly distributed random number, ; and Individual exist Moment and The speed of time, and Individual exist Moment and The position at the moment.

[0160] (3) Local search. Generate uniformly distributed random numbers .if , then randomly select a solution from the existing best position solution set , form a local solution near the selected best individual, and update the position of the individual according to formula 3-12.

[0161] (3-12)

[0162] in, ; is the average loudness of all individuals in the same period.

[0163] (4) Generate uniformly distributed random numbers .if ,and , then accept the new solution of (3) and update the pulse frequency and loudness according to formulas 3-13 and 3-14.

[0164] (3-13)

[0165] (3-14)

[0166] in, For individuals exist Frequency of moments; For individuals exist The loudness of the moment; and is a constant, and .

[0167] (5) Find the current optimal solution for all individual positions according to the objective function If the maximum number of iterations has not been reached, return (2); otherwise, output .

[0168] The present invention adopts the main idea of ​​the above BA algorithm to solve the target optimization problem of base learner selection. In this problem, individuals represent the weight coefficient vectors of base learners, and the dimension is the number of all base learners. The base learners are selected based on the threshold method, and the weight of each base learner is set at Set the threshold value , in the searched solution vector, if the threshold of the base learner is less than , then the learner is not selected; if the threshold of the base learner is greater than , then the learner is selected. The specific algorithm is implemented as follows:

[0169]

[0170] 3.4 Construction of integrated prediction model based on Stacking improvement

[0171] The initial base learner combination is selected by the target optimization algorithm. The present invention adopts the Stacking ensemble learning method to construct an integrated prediction model. The Stacking method fuses the outputs of multiple base learners by training a meta-learner. The meta-learner can analyze and learn the predictions of the base learners to determine how to weigh and combine them, thereby improving the overall performance of the integrated model. The meta-learner of the second layer is usually selected as a model with strong generalization ability, because the research of Pan et al. shows that XGBoost performs well as a meta-learner in obtaining good prediction results. Therefore, the present invention selects XGBoost as a meta-learner.

[0172] Traditional Stacking methods usually simply use the prediction results of the base learners as the input of the meta-model. However, in practical applications, the performance of Stacking is often affected by problems such as data imbalance. The present invention proposes a new method to improve Stacking ensemble learning, that is, introducing new features based on the original input of the meta-learner: weights are assigned according to the prediction results of the base learners, and the weighted sum is used as the new feature. By introducing the weighted features of the prediction results of the base learners, the contribution of each base learner can be considered more finely, so that the prediction results of the same sample can be reasonably weighed according to the error size of the base learners during the fusion process, thereby improving the robustness and performance of the model. This weight distribution method enables the integrated model to more flexibly capture the characteristics of the data when faced with different base learners with different performances. The specific calculation method is as follows:

[0173] Assume there is a data set , the number of base learners is , for a sample The prediction result of the base learner is , the weight calculation is shown in Formula 3-15.

[0174] (3-15)

[0175] in, Representation sample In the base learner The predicted value on Representation sample The true value of Representation sample In the base learner The prediction error on the base learner. If the prediction error of the base learner is smaller, the weight assigned is larger; conversely, if the prediction error of the base learner is larger, the weight assigned is smaller. The weight is normalized by formula 3-16 so that the sum of the weights of each sample on different base learners is equal to 1.

[0176] (3-16)

[0177] Perform weighted summation to obtain new features, as shown in Formula 3-17.

[0178] (3-17)

[0179] Therefore, the overall process of constructing the integrated model based on the improved Stacking algorithm in the present invention is as follows:

[0180]

[0181] The visual analysis framework proposed in this paper mainly includes three parts: the first part is the data preprocessing part, including matching grid longitude and latitude with administrative areas, extracting data from a certain area and dividing the time series phases, etc. The second part is to build a multivariate time series integrated prediction model based on optimization ideas, including the generation, selection and integration of base learners. This part has been introduced in detail in Chapter 3 of this invention. The third part is a multi-angle integrated model optimization method, which compares the models from the model perspective and instance perspective based on feature importance. This part has been introduced in detail in Chapter 4. The visual analysis system in this chapter aims to support the optimization of the integrated model by the method introduced in the third part. This part mainly includes eight views with close associations and interactions. Through rich interactions between views, the system supports the visual analysis process of field experts to check and compare models. On the basis of the automatic selection algorithm to initially select the base learner, it combines the human-centered method to identify the models that are not selected by the algorithm, so that the integrated model can achieve better performance. This chapter will introduce the visualization and interaction design of each view in detail.

[0182] 5.1 System Analysis Tasks

[0183] In the relevant fields of multivariate time series prediction models, the target users of the system proposed in this study mainly include: machine learning experts or development engineers with certain domain knowledge, or experts in related fields with certain model development capabilities, to help them build integrated learning models with better performance. This study formulated the analysis tasks of the system through relevant literature research and close discussions with domain expert E1. Expert E1 is a machine learning expert with experience in developing air quality prediction models and has certain knowledge in the field of air pollution. He is the target user of the system proposed in this study. He hopes to explore and compare different models in the integrated model in depth. On the basis of a comprehensive understanding of the model performance, he will conduct in-depth research on the output results of the model and the relationship between the input features and the output results. He also hopes to continue to track the performance of the integrated model when adjusting the base learner. Through close discussions with expert E1, the final analysis task was refined as follows:

[0184] T1: Show an overview of the overall performance of the model and the importance of features. When faced with a large number of candidate models and when models need to be compared, the system needs to provide an overall overview of the model performance to help users compare the pros and cons of the models. Secondly, due to the black-box nature of the model and the diversity of features, the prediction results lack credibility, and there is a lack of in-depth understanding of the importance of different features in the model prediction process through performance indicators alone. Therefore, the system needs to provide an overall overview of the importance of model features so that users can have a global understanding of the degree of influence of different features on the model prediction results.

[0185] T2: Explore the model in a time series context and explain the model's prediction results. Due to the characteristics of time series, the model's prediction results at different timestamps need to be analyzed and compared in more detail. Therefore, the system needs to provide a comparison of the model's prediction results at each timestamp with the true value, anomalies in the prediction results, the correlation between the prediction results and feature importance, and pairwise comparisons between models to intuitively represent the model behavior and explain the model's prediction results, helping users understand the normal or abnormal situation of the model, thereby helping to identify effective models that were not initially selected by the optimization algorithm.

[0186] T3: Provide model comparison analysis based on instance level. In addition to exploring the temporal context of a single model, it is also crucial to analyze the performance of base learners on instances. The system should provide instance-level inspections, cluster instances by similarity of prediction results, and assist users in identifying high-error instance subsets. In addition, the system needs to display the predictions of the base learners for high-error subsets to help users deeply analyze and compare which base learners involved in the ensemble have produced large errors for the instances in the subset, thereby affecting the overall performance of the ensemble model.

[0187] T4: Support dynamic adjustment of base learners and tracking of historical ensemble performance. Selecting different base learners will have a significant impact on the performance of the ensemble model. Therefore, it is particularly important to accurately identify and select suitable base learners. Based on the base learner combination initially selected by the automatic algorithm, the system should support users to dynamically adjust the base learners, including operations such as adding and deleting, and update the performance indicators of the ensemble model after the base learners are adjusted, so as to help users clearly understand the impact of base learner adjustments on the performance of the entire ensemble model. In addition, in order to assist analysts in performance evaluation and optimization decisions, the system should track and record the historical performance of the ensemble model, which will help users better understand the optimization process of the model.

[0188] T5: Recommend models based on prediction results with similar historical instances. For the scenario of predicting new data, if the distribution of the new data changes and differs from the training set data, the ensemble model may perform poorly on the new data. Therefore, the system should allow users to interactively select historical instances similar to the new data and recommend the base learners with the best performance on these instances to be added to the ensemble model. This can use previous prediction experience to improve the prediction performance of the ensemble model on new data.

[0189] Based on the above analysis tasks, the present invention proposes an integrated model optimization visual analysis system for multivariate time series prediction, which consists of eight views. The system follows the design principle from overall overview to detailed exploration, and mainly includes a model analysis module, an example exploration module, and an integrated monitoring module.

[0190] The model analysis module helps users compare and analyze model performance and feature importance, and consists of a control panel, a model overview view, and a model detail view. The instance exploration module interactively explores models from an instance perspective, including a similarity view and an error matrix view. The integration monitoring module supports users to dynamically adjust the models participating in the integration and monitor the performance changes of the integrated model in real time, and consists of a model selection view and an integration view.

[0191] The system compares models from multiple perspectives, from an overall overview of model performance (model level) to detailed analysis of each instance (instance level), helping users compare and analyze models. It dynamically adjusts the model based on human wisdom and experience to continuously improve the performance of the integrated model.

[0192] Visual analysis process

[0193] The system process is as follows Figure 4 As shown in the figure. First, a single model is given an overall overview in the global overview. The model overview view shows a general overview of the performance and feature importance of a single base learner, so that users can quickly compare all models based on accuracy and understand the contribution of different features to the model. Then, after the user selects a base learner in the control panel, they can explore details at the model level and instance level. In the model-level analysis, the line chart at the top of the model detail view shows the predicted value and true value of the model at each timestamp, providing detailed performance of each model in the time context, and through the feature importance view at the bottom of the model detail view, the prediction results of each timestamp are associated with the feature importance to explain the prediction results. In the instance-level analysis, the error matrix view shows the clustering of instances based on error similarity, allowing users to analyze clusters with large errors and replace models that perform poorly on these instances, thereby improving the performance of the integrated model. When the user selects new data to be added in the control panel, the similarity view shows the similarity between the new instance and the historical instance, and recommends a model for the new data based on the prediction results of the model on the historical instance to solve the problem that the integrated model performs poorly on the new data. The model selection view displays the base learner selected by the automatic algorithm by default. Users can dynamically adjust the model in this view based on the analysis in the above views and combined with experience. The integration view displays the performance of the updated integration model.

[0194] Visual analysis view design

[0195] Model analysis module, model overview view such as Figure 5As shown: It aims to provide an overall comparison of different base learners by showing the overall performance and feature importance of each candidate model. The present invention metaphorically compares a single base learner to a donut and designs a metaphorical Glyph. The Glyph consists of three parts. The outer part is composed of 11 arcs of equal length. Each arc is filled with different colors in a clockwise direction. The color mapping is the 11 features shown in the legend. The length of the filling encodes the feature importance of the corresponding feature. The longer the length, the greater the feature importance value of the feature. The middle part consists of 8 rectangular blocks, according to The concentration is divided into eight intervals, each rectangular block represents an interval, and the clockwise direction is

[0196] The color of the rectangular block encodes the average error of the model's sample prediction in this interval. The darker the color, the greater the prediction error of the model in this interval. A rectangle is drawn inside. The upper bound of the rectangle represents the maximum value of the root mean square error of all base learners, and the lower bound represents the minimum value. The black horizontal line between the upper and lower bounds of the rectangle corresponds to the root mean square error of the current base learner.

[0197] Other design schemes: The present invention considers several Glyph design schemes, the first scheme is the original Doughnut design, such as Figure 5 As shown in (a), the outside is composed of 11 rings with different arc lengths, and different features are mapped by color. The arc length of the ring represents the feature importance ratio of the corresponding feature. A horizontal rectangle is drawn inside, and the length of the bar inside the rectangle encodes the root mean square error of the base learner. However, this design has two defects: First, due to the large number of features and the different feature importance ratios of each base learner, it is easy to cause visual confusion, which is not conducive to effective comparison of the feature importance of different base learners. Second, when the errors of the base learners are not much different, the lengths of the internal bars are almost the same, making it difficult to observe and compare the performance of the base learners. The second solution is as follows Figure 5 (b) shows the solution to the second problem mentioned above. The third solution is based on the design of Nightingale Rose Diagram, as shown in Figure 5 As shown in (c), the outer ring is divided into equal parts and the feature importance values ​​are displayed radially, but this design requires a large space. Therefore, the fourth solution introduced above is designed. By expanding the second solution, the position of each feature is fixed to facilitate the comparison of feature importance between different base learners, while reducing the use of space resources. Users can use this view to get an overview of the performance and feature importance of all base learners.

[0198] Control panel such as Figure 6As shown in Figure 6 (a), a control panel is designed to help users explore. The control panel includes four functions. The first part is shown in Figure 6 (a), which provides a drop-down menu to support the selection of a single base learner for detailed exploration. The selected model is displayed in the model details view; the second part is shown in Figure 6 (a). Figure 6 As shown in (b), a mode switch button is provided. When the button is turned on, the feature importance view in the model details view will switch to the model comparison view. Clicking the mode switch button again will switch back to the feature importance view. The third part is as follows Figure 6 As shown in (c), a drop-down menu is designed to support the selection of two models to be compared in the comparison view; the fourth part is as follows Figure 6 As shown in (d), the user is supported to select the start time and end time of entering new data.

[0199] Model details view Figure 7 As shown in Figure 1, after an overview of the performance and feature importance of all base learners, it is necessary to explore and analyze the temporal patterns of a single model and compare models. The model details view is divided into two parts, namely, line graphs and Figure 7 (a), and the feature importance view, as shown in Figure 7 (b) shows that the feature importance of the model output is associated with the predicted results and the true value to facilitate exploring the contribution of the features to the model output in the temporal context. The line chart depicts a detailed explanation of the performance of each model in the temporal context. The y-axis represents the timestamp, with the granularity of days, and the The solid line represents the predicted output of the candidate model in the test data set, and the dotted line represents The light blue shaded part between the two intuitively represents the prediction error. To this end, users can observe the gap between the true value and the predicted value at different timestamps. The triangle mark above the line chart indicates that the prediction result of the timestamp is abnormal, that is, the error exceeds the threshold of 15. Each row of the feature importance view represents a feature, and each column represents a day. The height of the rectangle in each cell encodes the absolute shapely value. Green indicates that the contribution of the feature has a positive effect, that is, the shapely value is greater than zero, which drives the prediction value to increase; brown indicates that the contribution of the feature has a negative effect, that is, the shapely value is less than zero, which drives the prediction result to decrease. This view can show the continuous change of feature importance and the trend of the influence of features on the prediction results, helping users to observe the contribution of different features to each timestamp in a fine-grained manner, and explain the prediction results in combination with the line chart.

[0200] from Figure 7As can be observed in (b), due to the long time series and limited layout space, the feature importance view is designed with a scroll bar for display. However, it is difficult to correspond the output of the model at each moment with the line graph, and it is difficult for the two to share the timeline. Therefore, the present invention adds an interactive design of multi-level exploration, such as Figure 7 As shown in (c), when the user swipes a period of time in the line chart, the feature importance view shows the feature importance in the corresponding time period. Through this interactive design, the line chart and the feature importance view are linked, and users can explore and observe the feature importance corresponding to any moment of their interest.

[0201] Model comparison view such as Figure 8 As shown in the figure: In addition to displaying the feature importance of a single model, it is also necessary to compare the models pairwise. The system uses the model comparison view to display the clear differences in feature importance between the models. The user clicks the mode switch button in the control panel and selects two models. The feature importance view will switch to the model comparison view. Each row represents a feature, and each column represents a timestamp. The upward arrow indicates that the feature importance of the corresponding feature of the second selected base learner at this timestamp is higher than that of the first base learner. The downward arrow indicates that the feature importance of the corresponding feature of the second selected base learner at this timestamp is lower than that of the first base learner.

[0202] Example Exploration Module

[0203] The error matrix view is as follows Fig. 9 As shown: In addition to model comparison in the temporal context, instance-level analysis and comparison are also critical in understanding model performance and improvement. By examining models that perform poorly on a subset of instances with large errors and replacing them effectively to improve the performance of the ensemble model. In order to provide instance-level comparison, the system designs an error matrix view that shows the similarity of instances in prediction errors and clusters instances according to the errors generated by the models participating in the ensemble. The circles show the clusters they belong to (C1-C6), and a bar chart is drawn above each cluster. The horizontal axis of the bar chart represents the corresponding base learner, and the vertical axis represents the average error of the base learner on the cluster samples. Each row in the cluster represents an instance, and each column represents a base learner. The color of each cell encodes the error size. The darker the color, the greater the error of the base learner on the instance.

[0204] Similarity view such as Fig.10As shown in the figure, (a) the similarity distribution diagram of new and old instances; (b) the error matrix diagram of single cluster historical instances: When the user chooses to input new data, in order to improve the performance of the integrated model on the new data, the prediction performance on the historical instances should be combined to recommend the base learner for the new data and add it to the integrated model. The similarity view displays the clustering of instances based on their similarity in the original features, and projects the original feature values ​​of the multivariate points into a two-dimensional plane using the dimensionality reduction method. When the user does not choose to input new data, the system displays the results of K-Means clustering of historical instances by default, and provides four dimensionality reduction methods: PCA, MDS, t-SNE and UMAP. Each node represents an instance, and different colors represent different category clusters. When the user chooses to input new data through the control panel, the view will update the clustering dimensionality reduction results of the new and old instances, and represent the new data as nodes with black edges. In order to enable the user to check the performance of the base learner on historical instances similar to the new data, and recommend the best base learner for the new data based on the historical instances. When the user selects a cluster instance where the new data is located, only the current cluster is highlighted. At the same time, the Error Matrix view will be updated to show only the prediction results of the base learner on the historical instances of the cluster, helping users to check the performance of the base learner on historical instances similar to the new data.

[0205] Integrated monitoring module

[0206] Model selection view such as Fig.11 The model selection view shown in the figure is to enable users to dynamically adjust the base learners by analyzing the results and combining their own domain experience and wisdom to identify effective models that are not selected by the automatic algorithm. The system provides a model selection view to support users to adjust the base learners involved in the ensemble. The first column supports adding and deleting base learners by clicking the selection box. The initial default display is the initial base learner selected by the automatic algorithm; the second column is the name of the base learner; the third column is the feature corresponding to the maximum feature importance of the base learner, and its color coding is the same as the model overview view. Figure 1 The fourth column is the importance of each base learner participating in the integration to the integrated model calculated by the SHAP method. The length of the gray rectangle encodes the importance. The longer the length, the greater the contribution of the base learner to the integrated model.

[0207] Integrated monitoring views such as Fig.12As shown, (a) initial ensemble performance graph; (b) updated ensemble performance graph: When the user dynamically adjusts the base learner, the system should be able to track and record the performance of the ensemble model, which helps the user compare the adjusted results with the previous results. The system uses parallel coordinates to display the performance of the ensemble model, and each vertical axis represents an indicator, namely the abnormal correlation coefficient, root mean square error, mean absolute error, mean absolute percentage error, and determination coefficient. The ensemble model performance of the initial base learner combination selected by the automatic algorithm is displayed by default. When the user adjusts the base learner through the selection box in the model selection view, click the integration button in the upper right corner, and the view will add a new line representing the performance of the updated ensemble model, and the line representing the historical performance will turn gray.

[0208] The above description is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed in the present invention, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described in the present invention through the above teachings or the technology or knowledge in the relevant field. The changes and modifications made by those skilled in the art do not deviate from the spirit and scope of the present invention, and should be within the scope of protection of the claims attached to the present invention.

Claims

1. A method for constructing a multivariate time series prediction model based on human-computer collaborative optimization, characterized in that: include: A data preprocessing module is used to match the grid longitude and latitude with the selected area, and extract the air pollution data of the selected area for preprocessing to obtain a preprocessed data set; A prediction model building module is used to build a multivariate time series integrated prediction model based on optimization ideas according to the preprocessed data set. The prediction model predicts the collected air pollution data to obtain prediction results. Visual analysis optimization module, which is used to optimize the prediction model. It identifies base learners with poor prediction performance through visual exploration from the perspective of models and instances, thereby optimizing the base learner combination of the integrated model and improving the prediction results of the integrated model. The prediction model building module is used to build a multivariate time series integrated prediction model based on optimization ideas according to the preprocessed data set, including: The selected algorithm is trained to obtain multiple base learners; the objective function is constructed, and the objective function is solved by the BA optimization algorithm to obtain the selected base learners and the initial base learner combination; the base learner combination is predicted on the validation set to obtain the output results of all sample points in the validation set, and the prediction errors of each base learner in the base learner combination are obtained according to the output results, and the weights of the base learners are obtained according to the prediction errors of the base learners, and the weights of the base learners are normalized and weighted summed to obtain the weighted features of the prediction results of the base learners, and a new data set is constructed according to the output results of the sample points, the true values ​​of the sample points and the weighted features of the prediction results of the base learners, and the meta-learning algorithm is trained on the new data set to obtain an integrated prediction model; The construction objective function includes: The first objective is to minimize the root mean square error of the base learner. The root mean square error of the base learner for: in, represents the number of samples, Represents the The true value of the sample, No. The predicted value of samples; The first objective function for: in, represents the mean root mean square error of the base learners in the ensemble model, and M represents the number of base learners; The second goal is to maximize the diversity of base learners. The correlation coefficient between any two base learners is: in, and Represent the base learners and base learner The prediction error, represents the covariance of the errors of the two base learners, and Respectively represent the error and error The variance of The second objective function for: The variance of the prediction error of the base learner is used as the uncertainty indicator, and the third objective function for: Then the objective function is: in, is the number of objective functions, is the objective function The weight of .

2. The method for constructing a multivariate time series prediction model based on human-computer collaborative optimization according to claim 1, characterized in that: The data preprocessing module is used to match the grid longitude and latitude with the selected area, and extract the air pollution data of the selected area for preprocessing to obtain a preprocessed data set, including: Normalizing the collected air pollution data to obtain a preprocessed data set, and dividing the preprocessed data set to obtain multiple data subsets; The collected air pollution data is normalized to obtain a preprocessed data set, including: Using the Min-Max normalization method, the data is mapped to In the range, the following formula is used: in, represents the normalized data, Represents the original data, Represents the maximum value of the original data, Represents the minimum value of the original data.

3. The method for constructing a multivariate time series prediction model based on human-computer collaborative optimization according to claim 2 is characterized in that: The method of dividing the preprocessed data set to obtain multiple data subsets and training the selected algorithm to obtain multiple base learners includes the following process: Five-fold cross validation was used to convert the preprocessed training data set , divided into T training data subsets of equal size and non-overlapping, and the algorithm is trained using T-1 training data subsets, using the following formula: Get the base learner: Among them are different algorithms selected, among which .

4. The method for constructing a multivariate time series prediction model based on human-computer collaborative optimization according to claim 3 is characterized in that: The objective function is solved by the BA optimization algorithm to obtain the selected base learners and the initial base learner combination, including: Based on the BA algorithm, the individual represents the weight coefficient vector of the base learner, and the dimension is the number of all base learners; The base learners are selected based on the threshold, and the weight of each base learner is set at Set the threshold value , in the searched solution vector, if the threshold of the base learner is less than , then the base learner is not selected; if the threshold of the base learner is greater than , then the base learner is selected, and the initial base learner combination is obtained according to the selected base learner.

5. The method for constructing a multivariate time series prediction model based on human-computer collaborative optimization according to claim 4 is characterized in that: The base learner combination is predicted on the validation set to obtain the output results of all sample points in the validation set, and the prediction errors of each base learner in the base learner combination are obtained according to the output results. The weight of the base learner is obtained according to the prediction error of the base learner, and the weight of each base learner is normalized and weighted summed to obtain the weighted features of the prediction results of the base learners, including: Set data set , the number of base learners , for the sample The prediction results of the base learner are: The weight is calculated as: in, Representation sample In the base learner The predicted value on Representation sample The true value of Representation sample In the base learner The prediction error on ; Normalize the weights so that the sum of the weights of each sample on different base learners is equal to 1, using the following formula: Perform weighted summation to obtain the weighted features of the base learner prediction results: 。 6. The method for constructing a multivariate time series prediction model based on human-machine collaborative optimization according to claim 5 is characterized in that: The method of constructing a new data set based on the output results of the sample points, the true values ​​of the sample points, and the weighted features of the prediction results of the base learner, training the meta-learning algorithm on the new data set, and obtaining an integrated model includes the following processes: In the training set Adopted Fold Cross Validation Algorithm Train to get Basis Learner ; Based on BA optimization algorithm, the base learner Make a selection and get the optimal combination of base learners after selection ; Base Learner Ensemble In the validation set Make predictions on it and get all the sample points in the validation set The output of ; Get a new data set based on the weighted features of the base learner prediction results ; In the new dataset Meta-learning algorithm Train and get the integrated model .

7. The method for constructing a multivariate time series prediction model based on human-machine collaborative optimization according to claim 6, characterized in that: The visual analysis optimization module is used by users to optimize the prediction model. It identifies base learners with poor prediction performance through visual exploration from the perspective of models and instances, thereby optimizing the base learner combination of the integrated model and improving the prediction results of the integrated model, including: The visual analysis optimization module supports users to compare and analyze the performance and feature importance of prediction models through the model exploration optimization module, and eliminate base learners that focus on unreasonable features during prediction; the instance exploration optimization module supports users to interactively explore prediction models from the perspective of instances, and select base learners with better prediction performance for instances with large errors; the integrated monitoring module supports users to monitor the performance changes of prediction models in real time; The model exploration and optimization module includes a model overview view and a model detail view. The model overview view is used to display the overall performance and feature importance of each candidate model and provide an overall comparison of different base learners. The model detail view is used to display the detailed prediction performance of a single model and the feature importance of each timestamp in a time series context. The instance exploration optimization module includes a similarity view and an error matrix view. The similarity view is used to display the similarity of the original features of the instance, and the error matrix view is used to predict the similarity of the errors.