Solar wind speed prediction method based on multi-task deep learning neural network
Through the multi-task deep learning neural network model, combined with one-dimensional CNN and shared LSTM modules, the limitation of single-step prediction in the existing technology is solved, multi-step solar wind speed prediction is realized, and the prediction accuracy and model generalization ability are improved.
Patent Information
- Application Number
- CN202111674519.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-12-31
AI Technical Summary
There is a lack of solar wind speed prediction methods based on multi-step prediction in the existing technology, and deep learning models usually only perform single-step prediction, which is difficult to meet the needs of complex time series predictions.
A multi-task deep learning neural network model is adopted, including a shared module, a main LSTM module and an autoregressive layer. Spatial and temporal features are extracted through one-dimensional CNN and shared LSTM modules, and a multi-task learning mechanism is used for parameter sharing and joint training to achieve multi-tasking. step prediction.
It significantly improves the accuracy of solar wind speed prediction and the generalization ability of the model, and can effectively handle complex trends, seasonality and noise information in multi-step prediction tasks.
Smart Images

Figure CN114492171B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of neural network model design and the field of solar wind speed prediction, and in particular relates to a solar wind speed prediction model based on multi-task deep learning and a modeling method thereof. Background Art
[0002] At present, there are three major methods in the field of solar wind speed prediction: (1) physics-based prediction models, which build physical models based on solar physical parameters; (2) empirical or semi-empirical models, which judge the state of the sun based on manual observations and expert experience; (3) machine learning models, which use support vector machines, artificial neural networks and other input data for training and then make predictions. With the increasing abundance of observation data, the complexity and hazard of solar activities, and the urgent need for timeliness of solar wind speed forecasts, people need to develop prediction methods that are different from traditional physical models and empirical models. Machine learning methods are a technical means that can meet new needs. Among them, artificial neural networks (ANNs) have been a research hotspot in the field of machine learning since the 1980s. In recent years, deep learning, as an important artificial neural network model, has been increasingly used in the field of solar wind speed prediction. Deep learning uses multi-layer neural network processing to gradually transform the initial "low-level" feature representation into the subsequent "high-level" feature representation, and the model can complete complex learning tasks such as classification and regression. However, the existing deep learning methods usually predict the solar wind speed at a certain point in the future based on historical data. These are single-step prediction methods. In contrast, in the problem of time series prediction, multi-step prediction is a widely used method. Multi-step prediction refers to predicting some variables for several future time steps given historical data. This prediction method can meet the needs of continuous multi-step output in some scenarios. Moreover, in a set of time steps, various time series components such as complex trends, seasonality, and noise may be observed at certain scales or resolutions. In addition, the multi-step prediction method can improve information utilization efficiency and prediction accuracy. It integrates the continuous information of the data at the output end, so that the target can be predicted based on the prediction knowledge of adjacent time points. Therefore, for the solar wind speed prediction problem, the multi-step prediction mechanism can also be adopted. According to understanding, there is currently no solar wind speed prediction method based on multi-step prediction. In addition, how to effectively build a multi-step prediction solar wind speed prediction model is a challenge. For this problem, the multi-task learning method can be introduced. Multi-task learning is a mechanism that allows multiple related tasks to be jointly learned in parallel. It can use the information of multiple related tasks to fully adjust the parameters in the neural network model, thereby improving the generalization ability of the model. In multi-task learning, multiple related tasks share features during training. Each task can speed up its own training by reusing useful knowledge learned from other tasks, thereby jointly improving the prediction accuracy of the model. In addition, multi-task learning can also use the differences between different tasks to reduce the possibility of model overfitting, and further improve the generalization ability of the model. Summary of the invention
[0003] In response to the above-mentioned prior art, the present invention provides a solar wind speed prediction method based on a multi-task deep learning neural network, which solves the problems existing in the prior art.
[0004] The multi-task learning mechanism is used to achieve multi-step prediction and build a model. In the field of solar wind speed prediction, the introduction of the multi-task learning mechanism is a new attempt.
[0005] In order to solve the above technical problems, the present invention proposes a solar wind speed prediction method based on a multi-task deep learning neural network, and the neural network model adopted includes a shared module, a main LSTM module and an autoregressive layer (AR) module; the shared module is composed of a one-dimensional CNN module and a shared LSTM module; the one-dimensional CNN module is used to receive sequence input and automatically learn data space features, and model the relationship between input attributes of different dimensions; the shared LSTM module is used to capture the time correlation of the time series and extract relevant information between different prediction tasks. In multi-task parallel training, the joint learning and sharing of the shared module parameters are achieved through the back propagation of the neural network; the main LSTM module is used to decode the multi-task shared information in the shared module and is used alone for the prediction of the main task, and the main LSTM module is used to receive the output of the shared module; the main LSTM module and the shared LSTM module have the same structure; the autoregressive layer (AR) module is used to correct the neural network model in a linear manner.
[0006] The steps for using the above neural network module to predict solar wind speed are as follows:
[0007] Step 1: Data processing:
[0008] The dataset used consists of the following three parts: (1) Five physical quantity attributes are selected from the low-resolution OMNI dataset, namely, bulk speed, proton density, proton temperature, flow pressure, and root mean square standard deviation of field vector (Sigma-b); (2) Coronal mass ejection attributes are introduced according to the ICME list: the ICME list is binarized into a new feature, and the time point with a coronal mass ejection event is set to 1, and the time point without a coronal mass ejection event is set to 0; (3) By calculating the atmospheric imaging assembly (AIA), the The sum of the pixel values of the coronal holes in the image introduces the coronal hole information attribute: After the image is converted to a grayscale image, the sum of the pixel values less than 15px in the image is calculated to characterize the impact of the coronal hole and is recorded as area;
[0009] The multivariate time series of 7 attributes composed of the data from the above data sources is used as the input of the neural network model to make 24-hour and 96-hour predictions respectively. The target output is the predicted value of the solar wind speed 24 hours and 96 hours after the observation sequence respectively; for the 24-hour prediction, the time interval of the 7-dimensional time series data is 1 hour, that is, 1 7-dimensional vector per hour, and the 7 vector elements of each vector correspond to 7 attributes respectively; for the 96-hour prediction, the time interval of the 7-dimensional time series data is 24 hours, that is, 1 7-dimensional vector every 24 hours, and the 7 vector elements of each vector correspond to 7 attributes respectively, and each attribute value is obtained by calculating the average value in 24 hours;
[0010] According to the mean and standard deviation of each dimension of the 7-dimensional time series data, the z-score standardization method is used to standardize the data. The processed data conforms to the standard normal distribution, that is, the mean is 0 and the variance is 1. The calculation formula is:
[0011]
[0012] In formula (1), μ is the mean of all sample data, σ is the standard deviation of all sample data, and the calculation is performed on the attributes of each dimension separately; the data is divided into training set, validation set and test set in a ratio of 8:1:1;
[0013] Step 2: Shared module feature extraction:
[0014] Set up solar wind prediction tasks at five adjacent time points for joint multi-task learning; for the 24-hour forecast, the 22nd hour, 23rd hour, 24th hour, 25th hour and 26th hour are taken as five separate forecast tasks respectively; for the 96-hour forecast, the 48th hour, 72nd hour, 96th hour, 120th hour and 144th hour are taken as five separate forecast tasks respectively; the five separate forecast tasks are numbered 1, 2, 3, 4 and 5 respectively, the third separate forecast is taken as the main task, and the other four separate forecasts are taken as auxiliary tasks;
[0015] The preprocessed data is first extracted through a shared module to extract the spatial and temporal features of the data as shared shallow features for the five separate prediction tasks. The operation is as follows:
[0016] Extraction of spatial features: Take the multivariate time series as the input of the one-dimensional CNN module, and set x n =[X 1 , ..., X n ], X i is a vector composed of seven-dimensional attributes, n is the length of the input window, and c represents the abstract features extracted by the one-dimensional CNN module.
[0017] C = Conv1D(X n ) (2)
[0018] In formula (2), Conv1D represents a one-dimensional convolution operation;
[0019] Extraction of temporal features: The abstract features extracted by the one-dimensional CNN module are used as the input of the shared LSTM module to capture the temporal correlation of the time series; the initial hidden state and initial cell state of the shared LSTM module are set to zero. During the training process, the five separate prediction tasks share the weights and biases of the shared LSTM module, thereby integrating the temporal characteristics of multiple tasks; after training, the temporal characteristics of the multiple tasks are stored in the shared parameters of the shared LSTM module; for the input c of the shared LSTM module, k∈{1, 2, 3, 4, 5} represents the task number, and the shared LSTM module performs the following operations:
[0020]
[0021] In formula (3), c is the internal unit state parameter of the shared LSTM module, h is the hidden unit state parameter of the shared LSTM module, 0≤p≤L is the number of cycles of the RNN network, and shared_LSTM represents the shared LSTM module operation;
[0022] Step 3: Extract features of the main task:
[0023] For the main task, the last output sequence in the shared LSTM module is used as the input of the main LSTM module:
[0024]
[0025] In formula (4), c′ is the internal unit state parameter of the main LSTM module, and h′ is the hidden unit state parameter of the main LSTM module;
[0026] The main LSTM module does the following:
[0027]
[0028] In formula (5), main_LSTM represents the main LSTM module operation;
[0029] Step 4. Output of solar wind speed prediction:
[0030] For the auxiliary task, the output of the fully connected layer of the shared module is added to the output of the autoregressive (AR) layer module to obtain the predicted value of the solar wind speed at the time point corresponding to the auxiliary task;
[0031] For the main task, the output of the fully connected layer of the main LSTM module plus the output of the autoregressive (AR) layer module are used to obtain the predicted value of the solar wind speed at the time point corresponding to the main task;
[0032] The operation of the fully connected layer is as follows:
[0033]
[0034] In formula (6), D k is the prediction result output of the fully connected layer task k, are the weights and biases of the fully connected layer respectively;
[0035] The autoregressive (AR) module modifies the output of the above fully connected layer in a linear manner:
[0036]
[0037] In formula (7), AR k is the output of the autoregressive (AR) module for task k, k∈{1, 2, 3, 4, 5}, are the weights and biases of the autoregressive (AR) module, respectively;
[0038] The final prediction result of the neural network model task k is as follows:
[0039] v k =D k +AR k (8)
[0040] In formula (8), v k Output of the predicted solar wind speed for task k.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] Through the mechanism of multi-task learning, multiple independent prediction tasks are combined for parallel learning, data information is fully utilized and mined, and multiple prediction tasks share common information to help improve shallow feature extraction, and design independent structures for the main tasks to improve prediction performance. By sharing shallow features and constructing deep features separately, the present invention significantly improves the prediction accuracy of the main prediction task. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a model structure for realizing the solar wind speed prediction method of the present invention;
[0044] Figure 2 This is a flow chart of the solar wind speed prediction method based on multi-task deep learning of the present invention. DETAILED DESCRIPTION
[0045] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but the following embodiments are by no means intended to limit the present invention in any way.
[0046] The present invention proposes a solar wind speed prediction method based on a multi-task deep learning neural network, wherein the neural network model adopted includes a shared module, a main LSTM module and an autoregressive layer (AR) module; Figure 1 As shown. The shared module consists of a one-dimensional convolutional neural network CNN module and a shared long short-term memory neural network LSTM module. The one-dimensional CNN module is used to receive sequence input and automatically learn data space features, and model the relationship between input attributes of different dimensions; the shared LSTM module is used to capture the time correlation of time series and extract relevant information between different prediction tasks. In multi-task parallel training, the joint learning and sharing of the shared module parameters are achieved through the back propagation of the neural network. The main LSTM module is used to decode the multi-task shared information in the shared module and is used alone for the prediction of the main task. The main LSTM module is used to receive the output of the shared module. The main LSTM module and the shared LSTM module have the same structure. The autoregressive layer (AR) module is used to appropriately correct the neural network model in a linear manner, which can effectively solve the impact of the scale change of the input data on the model and increase the robustness of the model.
[0047] The method for predicting solar wind speed using the neural network model includes the following steps:
[0048] Step 1: Data processing:
[0049] The dataset used is from the work of Sun Y. et al. (2021), which is a multivariate time series with seven-dimensional hourly time intervals from 2011 to 2017. The dataset used includes the following 3 parts:
[0050] (1) Five physical quantity properties are selected from the low-resolution OMNI dataset, namely, bulk speed, proton density, proton temperature, flow pressure, and the root mean square standard deviation of the field vector (Sigma-b).
[0051] (2) Introducing CME attributes based on the ICME list: Binarize the ICME list into a new feature and set the time point where a CME event occurs to 1 and the time point where it does not occur to 0.
[0052] (3) By computing the Atmospheric Imaging Assembly (AIA) The sum of the pixel values of the coronal holes in the image introduces the coronal hole information (CH information) attribute: the AIA After the image is converted into a grayscale image, the sum of the pixel values less than 15px in the image is calculated to characterize the impact of the coronal hole and is recorded as area.
[0053] The multivariate time series of seven attributes consisting of the data from the above data sources is used as the input of the neural network model to make predictions for 24 hours and 96 hours respectively. The target output is the predicted value of the solar wind speed 24 hours and 96 hours in the future from the observation sequence.
[0054] For 24-hour prediction, the present invention uses the above data, and the time interval of the 7-dimensional time series data is 1 hour, that is, 1 7-dimensional vector per hour, and the 7 vector elements of each vector correspond to 7 attributes respectively.
[0055] For the 96-hour prediction, in order to avoid the influence of insufficient input data information and too large prediction step, the data scale is expanded in the present invention from one data per hour to one data per day (24 hours). The time interval of the 7-dimensional time series data is 24 hours, that is, one 7-dimensional vector is generated every 24 hours. The 7 vector elements of each vector correspond to 7 attributes respectively. Each attribute value is obtained by calculating the average value in 24 hours, and the daily average data is taken for training and prediction.
[0056] Since the CH information based on pixel thresholds may not be accurate enough, this paper introduces CH information by replacing the information based on pixel thresholds with another data source, which is the Collection of Analysis Tools for Coronal Holes (CATCH) (Heinemann et al., 2019). This public dataset is at daily intervals and is based on the AIA The image calculates the coronal hole characteristics. The data normalization method is z-score normalization, which is based on the mean and standard deviation of each dimension of the 7-dimensional time series data. The processed data conforms to the standard normal distribution, that is, the mean is 0 and the variance is 1. The calculation formula is:
[0057]
[0058] In formula (1), μ is the mean of all sample data, σ is the standard deviation of all sample data, and the calculation is performed on the attributes of each dimension separately; the data is divided into training set, validation set and test set in a ratio of 8:1:1.
[0059] Step 2: Shared module feature extraction:
[0060] In the present invention, solar wind prediction tasks at five adjacent time points are set for joint multi-task learning; wherein, for a 24-hour prediction, the 22nd hour, 23rd hour, 24th hour, 25th hour and 26th hour are respectively used as five separate prediction tasks, and for a 96-hour prediction, the 48th hour, 72nd hour, 96th hour, 120th hour and 144th hour are respectively used as five separate prediction tasks; the five separate prediction tasks are numbered 1, 2, 3, 4 and 5, respectively, the third separate prediction is used as the main task, and the other four separate predictions are used as auxiliary tasks.
[0061] The preprocessed data is first extracted through a shared module to extract the spatial and temporal features of the data as shared shallow features for five adjacent individual prediction tasks. Specifically, the operation of the shared module is as follows:
[0062] 1) Extraction of spatial features: The multivariate time series is used as the input of the one-dimensional CNN module. Let x n =[X 1 , ..., X n ],X i is a vector composed of seven-dimensional attributes, n is the length of the input window, and c represents the abstract features extracted by the one-dimensional CNN module. The conversion process of the one-dimensional CNN module is as follows:
[0063] c=Conv1D(X n ) (2)
[0064] In formula (2), Conv1D represents a one-dimensional convolution operation.
[0065] 2) Extraction of temporal features: The abstract features extracted by the one-dimensional CNN module are used as the input of the shared LSTM module to capture the temporal correlation of the time series; the initial hidden state and initial cell state of the shared LSTM module are set to zero. During the training process, the five separate prediction tasks share the weights and biases of the shared LSTM module, thereby integrating the temporal characteristics of multiple tasks. Therefore, after the model is trained, the temporal characteristics (shared information) of the multiple tasks are stored in the shared parameters of the shared LSTM module. For the input c of the shared LSTM module, the shared LSTM module performs the following operations:
[0066]
[0067] In formula (3), k∈{1, 2, 3, 4, 5} represents the task number, c is the internal unit state parameter of the shared LSTM module, h is the hidden unit state parameter of the shared LSTM module, 0≤p≤L is the number of cycles of the RNN network, and shared_LSTM represents the shared LSTM module operation.
[0068] Step 3: Extract features of the main task:
[0069] For the main task, the last output sequence in the shared LSTM module is used as the input of the main LSTM module: the main LSTM module is used to further extract separate features for the main task. The main LSTM module and the shared LSTM module have the same structure, and together they form an encoder-decoder model structure.
[0070] Extraction of separate features of the main task: For the main task, i.e., k = 3, its last output sequence in the shared LSTM module is used as the input of the main LSTM module. The main LSTM unit performs the following operations:
[0071]
[0072] In formula (4), c′ is the internal unit state parameter of the main LSTM module, and h′ is the hidden unit state parameter of the main LSTM module.
[0073]
[0074] In formula (5), main_LSTM represents the main LSTM module operation.
[0075] Step 4. The output of the neural network model is the predicted solar wind speed:
[0076] For auxiliary tasks, the output of the shared module is directly used to predict the solar wind speed at the corresponding target time point, that is, the predicted value of the solar wind speed at the time point corresponding to the auxiliary task is obtained by adding the output of the fully connected layer of the shared module to the output of the autoregressive layer (AR) module; the AR module is used to appropriately modify the neural network model in a linear manner.
[0077] For the main task, the output of the main LSTM module is used to obtain the predicted value in the same way as the auxiliary task. That is, the output of the fully connected layer of the main LSTM module plus the output of the autoregressive layer (AR) module is used to obtain the predicted value of the solar wind speed at the time point corresponding to the main task.
[0078] The operation of using the fully connected layer to output the prediction results of the neural network model is:
[0079]
[0080] In formula (6), D k is the prediction result output of the fully connected layer task k, are the weights and biases of the fully connected layer respectively.
[0081] Finally, an autoregressive layer (AR) module is added to the prediction results of the nonlinear neural network model to correct the output of the above fully connected layer in a linear way, which can effectively solve the impact of the scale change of the input data on the model and increase the robustness of the model. For task k, the calculation of the AR module is as follows:
[0082]
[0083] In formula (7), AR k is the output of the autoregressive (AR) module for task k, k∈{1, 2, 3, 4, 5}, are the weights and biases of the autoregressive (AR) module respectively; combining the neural network and AR components, we get the final prediction result for task k:
[0084] v k =D k +AR k (8)
[0085] In formula (8), v k Output of the predicted solar wind speed for task k.
[0086] Example: Figure 1 As shown, in this embodiment, a 5-step multi-task model for solar wind speed prediction is designed. Specifically, based on the historical time series [X 1 , ..., X n ], the embodiment of the present invention has 5 tasks for predicting the future solar wind speed, each task predicts a specific time point, that is, outputs v n+t-2 , v n+t-1 , v n+t , v n+t+1 , v n+t+2 Among them, the prediction task v at the intermediate time point n+tis the main task, t represents the step size of the main task prediction time point, and the predictions for 24 hours and 96 hours are 24 and 96 respectively; other tasks are auxiliary tasks, and the purpose of setting auxiliary tasks is to improve the prediction performance of the main task. The model mainly consists of three modules, namely the shared module, the main LSTM module and the autoregressive layer (AR) module. The workflow of the above model is as follows: First, the multivariate time series data is input into a one-dimensional CNN module to obtain the feature representation of the data, that is, the shallow spatial features are shared between each prediction task. After that, the output of CNN is input into a shared LSTM module, which mines the temporal features of the data. The above one-dimensional CNN module and the shared LSTM module together constitute a shared module. In multi-task parallel training, the joint learning and sharing of the shared module parameters are realized through the back propagation of the neural network. Then, the main task and the auxiliary task will perform different operations: for the auxiliary task, the output of the shared module is directly used to predict the solar wind speed at the corresponding target time point, that is, the output of the fully connected layer of the shared module plus the output of the autoregressive layer (AR) module is used to obtain the predicted value of the solar wind speed at the time point corresponding to the auxiliary task. For the main task, the output of the shared module will be input into another LSTM module called the main LSTM module, which is used to further extract the individual features of the main task, and then obtain the predicted value in the same way as the auxiliary task. In this way, the present invention uses the shared module to guide the model to learn the commonalities between different prediction tasks, and uses the main LSTM module to guide the model to learn the characteristics of the main task, thereby improving the generalization ability of the model.
[0087] MAE and MSE can be used as loss functions respectively. The present invention determines which of the two loss functions is more suitable for the model through the validation set, that is, the loss function with the best model prediction effect on the validation set is selected as the loss function. The loss function of multi-task learning is the sum of the losses of each task.
[0088] For model training, the present invention uses the control variable method to select the optimal hyperparameters of the neural network for a specific prediction task. Specifically, for the CNN module, the number of CNN filters is selected as 5, 10, 25, 50, and 100 for experiments, and the convolution kernel size is selected as 3*3, 5*5, and 7*7 for experiments. For the main LSTM module and the shared LSTM module, the hidden unit size of the recurrent neural network RNN is selected as 10, 25, 50, 100, and 200 for experiments. The dropout ratio is selected as 0.2, 0.3, and 0.5 for experiments. In addition, a batch size is set to 128 and the learning rate is set to 0.001. The optimization method can select stochastic gradient descent, momentum optimization, Adam, etc. In this example, the AdamOptimizer optimizer is used.
[0089] Although the present invention has been described above in conjunction with the accompanying drawings, the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can make many modifications without departing from the purpose of the present invention, all of which are within the protection of the present invention.
Claims
1. A solar wind speed prediction method based on a multi-task deep learning neural network, characterized in that: The neural network model used includes a shared module, a main LSTM module, and an autoregressive layer (AR) module; The shared module consists of a one-dimensional CNN module and a shared LSTM module; The one-dimensional CNN module is used to receive sequence input and automatically learn data space features, and model the relationship between input attributes of different dimensions; the shared LSTM module is used to capture the time correlation of time series and extract relevant information between different prediction tasks. In multi-task parallel training, the joint learning and sharing of the shared module parameters are achieved through the back propagation of the neural network; The main LSTM module is used to decode the multi-task shared information in the shared module and is used solely for the prediction of the main task. The main LSTM module is used to receive the output of the shared module. The main LSTM module and the shared LSTM module have the same structure. The autoregressive layer (AR) module is used to correct the neural network model in a linear manner; And includes the following steps: Step 1: Data processing: The dataset used consists of the following three parts: (1) Five physical properties are selected from the low-resolution OMNI dataset, namely, bulk speed, proton density, proton temperature, flow pressure, and the root mean square standard deviation of the field vector (Sigma-b); (2) Introducing CME attributes based on the ICME list: Binarizing the ICME list into a new feature and setting the time point where a CME event occurs to 1 and the time point where it does not occur to 0; (3) By computing the Atmospheric Imaging Assembly (AIA) The sum of the pixel values of the coronal holes in the image introduces the coronal hole information attribute: After the image is converted to a grayscale image, the sum of the pixel values less than 15px in the image is calculated to characterize the impact of the coronal hole and is recorded as area; The multivariate time series of seven attributes composed of the data in the above dataset is used as the input of the neural network model to make predictions for 24 hours and 96 hours respectively. The target output is the predicted value of the solar wind speed 24 hours and 96 hours in the future from the observation sequence respectively. For 24-hour forecasts, the time interval of the 7-dimensional time series data is 1 hour, that is, 1 7-dimensional vector per hour, and the 7 vector elements of each vector correspond to 7 attributes respectively; For the 96-hour forecast, the time interval of the 7-dimensional time series data is 24 hours, that is, one 7-dimensional vector is generated every 24 hours. The 7 vector elements of each vector correspond to 7 attributes, and each attribute value is obtained by calculating the average value in 24 hours. According to the mean and standard deviation of each dimension of the 7-dimensional time series data, the z-score standardization method is used to standardize the data. The processed data conforms to the standard normal distribution, that is, the mean is 0 and the variance is 1. The calculation formula is: In formula (1), μ is the mean of all sample data, σ is the standard deviation of all sample data, and the calculation is performed separately for the attributes of each dimension; The data is divided into training set, validation set and test set in a ratio of 8:1:1; Step 2: Shared module feature extraction: Set up solar wind prediction tasks at five adjacent time points for joint multi-task learning; for the 24-hour forecast, the 22nd hour, 23rd hour, 24th hour, 25th hour and 26th hour are taken as five separate forecast tasks respectively; for the 96-hour forecast, the 48th hour, 72nd hour, 96th hour, 120th hour and 144th hour are taken as five separate forecast tasks respectively; the five separate forecast tasks are numbered 1, 2, 3, 4 and 5 respectively, the third separate forecast is taken as the main task, and the other four separate forecasts are taken as auxiliary tasks; The preprocessed data is first extracted through a shared module to extract the spatial and temporal features of the data as shared shallow features for the five separate prediction tasks. The operation is as follows: Extraction of spatial features: Take the multivariate time series as the input of the one-dimensional CNN module, and set x n =[X1, ..., X n ],X i is a vector composed of seven-dimensional attributes, n is the length of the input window, and C represents the abstract features extracted by the one-dimensional CNN module. C=Conv1D(X n ) (2) In formula (2), Conv1D represents a one-dimensional convolution operation; Extraction of temporal features: The abstract features extracted by the one-dimensional CNN module are used as the input of the shared LSTM module to capture the temporal correlation of the time series; the initial hidden state and initial cell state of the shared LSTM module are set to zero. During the training process, the five separate prediction tasks share the weights and biases of the shared LSTM module, thereby integrating the temporal characteristics of multiple tasks; after training, the temporal characteristics of the multiple tasks are stored in the shared parameters of the shared LSTM module; for the input c of the shared LSTM module, k∈{1, 2, 3, 4, 5} represents the task number, and the shared LSTM module performs the following operations: In formula (3), c is the internal unit state parameter of the shared LSTM module, h is the hidden unit state parameter of the shared LSTM module, 0≤p≤L is the number of cycles of the RNN network, and shared_LSTM represents the shared LSTM module operation; Step 3: Extract features of the main task: For the main task, the last output sequence in the shared LSTM module is used as the input of the main LSTM module: In formula (4), c′ is the internal unit state parameter of the main LSTM module, and h′ is the hidden unit state parameter of the main LSTM module; The main LSTM module does the following: In formula (5), main_LSTM represents the main LSTM module operation; Step 4. Output of solar wind speed prediction: For the auxiliary task, the output of the fully connected layer of the shared module is added to the output of the autoregressive (AR) layer module to obtain the predicted value of the solar wind speed at the time point corresponding to the auxiliary task; For the main task, the output of the fully connected layer of the main LSTM module plus the output of the autoregressive (AR) layer module are used to obtain the predicted value of the solar wind speed at the time point corresponding to the main task; The operation of the fully connected layer is as follows: In formula (6), D k is the prediction result output of the fully connected layer task k, are the weights and biases of the fully connected layer respectively; The autoregressive (AR) module modifies the output of the above fully connected layer in a linear manner: In formula (7), AR k is the output of the autoregressive (AR) module for task k, k∈{1, 2, 3, 4, 5}, are the weights and biases of the autoregressive (AR) module, respectively; The final prediction result of the neural network model task k is as follows: v k =D k +AR k (8) In formula (8), v k Output of the predicted solar wind speed for task k.
Citation Information
Patent Citations
Multivariate time series multilayer space-time dependence modeling method based on deep learning
CN111651504A
Prediction method of solar irradiance time sequence based on WCNN-ALSTM
CN112434891A
