Solar photovoltaic power generation power prediction method fusing time-space relationship

By constructing a fused spatio-temporal relationship network (FSTRNN) and using sliding window and trigonometric function position encoding technology, the problem of insufficient multi-dimensional data set feature extraction and low model robustness in photovoltaic power generation prediction is solved, achieving higher prediction accuracy and stability.

CN118569423APending Publication Date: 2024-08-30SHANGHAI JIAOTONG UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410584354.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing photovoltaic power generation power prediction methods have insufficient frequency domain feature extraction capabilities on multi-dimensional data sets, and are prone to losing dynamic points of interest and global seasonal features, and a single machine learning model has low robustness to different geographical and environmental conditions, making prediction Accuracy and reliability are inconsistent.

Method used

A solar photovoltaic power generation power prediction method that integrates spatio-temporal relationships is used to build a model through Bayesian optimization algorithm to construct a fused spatio-temporal relationship network (FSTRNN) with high versatility and high prediction performance. Combining CNN, Multi-Attention and LSTM models, Perform correlation analysis and principal component extraction on photovoltaic system historical data, and use sliding window and trigonometric function position coding to form a coding window data set for real-time power generation prediction.

Benefits of technology

Significantly improves the accuracy and robustness of photovoltaic power generation prediction. Compared with traditional models such as SVM, LSTM, and CNN-LSTM, the FSTRNN model has better prediction performance under different geographical locations and environmental conditions, and can effectively maintain stability and high performance. Prediction accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569423A
    Figure CN118569423A
Patent Text Reader

Abstract

A solar photovoltaic power generation power prediction method fusing a time-space relationship comprises the following steps: in an offline stage, performing correlation analysis on historical data of a photovoltaic system, extracting principal component characteristics, performing window division through a sliding window, and sequentially matching trigonometric function position codes for the window to form a coding window data set; and training an FSTRNN model based on the CNN, Multi-Attention and LSTM by using the data set, and performing real-time power generation power prediction through the trained FSTRNN model in an online stage. According to the method, a model optimization framework is established based on a Bayesian optimization algorithm to screen hyper-parameters, and an FSTRNN model is quickly established and hyper-parameter values are optimized effectively for photovoltaic power stations with different geographic positions and environmental conditions by constructing a fusion time-space relation network (FSTRNN) with high universality and high prediction performance; the FSTRNN model has prediction precision and robustness which are obviously better than those of SVM, LSTM, CNN-LSTM and other models.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a technology in the field of neural network application, specifically a solar photovoltaic power generation power prediction method integrating time and space relationship. Background Art

[0002] Photovoltaics has the advantages of large stock and wide distribution, but it also has the properties of volatility and randomness. Common prediction methods are mainly based on RNN (or LSTM) models, which are insufficient in frequency domain feature extraction of multi-dimensional photovoltaic data sets, and are prone to losing dynamic focus points and global seasonal characteristics. At the same time, there is a lack of systematic preprocessing of data sets and overall optimization methods for models. Summary of the invention

[0003] Aiming at the fact that the error of the existing physical model short-term average prediction technology is generally 10%-20%, the prediction accuracy and reliability of a single machine learning model with a certain structure, such as an LSTM model, will be significantly affected by the geographical and environmental conditions of a photovoltaic power station, and the feature extraction capability needs to be improved urgently, and the robustness is low, and the stability is difficult to maintain in different data sets. A solar photovoltaic power generation power prediction method integrating spatiotemporal relationship is proposed. Based on the use of a Bayesian optimization algorithm to build a model optimization framework to screen hyperparameters, a fused spatiotemporal relationship network (FSTRNN) with high versatility and high prediction performance is constructed, and the FSTRNN model is quickly built and the hyperparameter values ​​are optimized for photovoltaic power stations in different geographical locations and environmental conditions. The FSTRNN model has prediction accuracy and robustness that are significantly better than those of SVM, LSTM, CNN-LSTM and other models.

[0004] The present invention is achieved through the following technical solutions:

[0005] The present invention relates to a solar photovoltaic power generation prediction method integrating time and space relationship. In the offline stage, correlation analysis is performed on historical data of photovoltaic system and main component features are extracted. Window division is performed through sliding window and trigonometric function position encoding is matched for the window in sequence to form a coded window data set. The data set is used to train an FSTRNN model based on CNN, Multi-Attention and LSTM. In the online stage, real-time power generation prediction is performed through the trained FSTRNN model.

[0006] The historical data include but are not limited to: power, temperature, humidity, irradiance, component temperature, wind speed, wind direction and inclination.

[0007] The historical data is preferably preprocessed, including: marking blank data, abnormal data, and filling and replacing using adjacent linear averaging method;

[0008] The correlation analysis refers to: using the Kendall correlation coefficient matrix to obtain the strength of the correlation between the generated power and different features, removing weakly correlated features, and obtaining a feature sequence; classifying features in the same cluster, such as temperature sequences measured at different points, and extracting the principal component from each cluster using the principal component analysis method.

[0009] The Kendall correlation coefficient matrix is ​​obtained by calculating the correlation coefficient τ for each of the two sequences in the data set, and combining the results to form a matrix, specifically: Where: n is the number of observations in the data set, x i andx j are the two observed values ​​of the first variable, y i andy j These are the two corresponding observations of the second variable. If the result inside sgn is greater than 0, it outputs 1, and if it is less than 0, it outputs 0. Sequences with a certain correlation are selected based on the obtained correlation coefficient value.

[0010] The principal component analysis method refers to: using partial sequence principal component analysis to extract principal components for a specific sequence and further reduce the dimension, specifically including:

[0011] 1) Standardize the specified sequence to ensure that each feature has zero mean and unit variance Where: X i is the observed value of the specified feature, μ i is the original mean of the specified feature, σ i is the original variance, Z i is the standardized observed value.

[0012] 2) Calculate the covariance matrix, solve the eigenvalues ​​and eigenvectors, sort the eigenvalues ​​in descending order, select the first column as part of the principal component, and transform the original data into the space defined by the selected principal component to achieve dimensionality reduction. The reduced-dimensional data is standardized to scale the features to a range to ensure the uniformity of the scale of the data for modeling purposes, specifically: Cυ=λυ, Y=ZV, where: C ij is the covariance of variables i and j, n is the sample size, and Z ki and Z kj is the standardized value, and is the mean value of the variable, C is the covariance matrix, υ is the eigenvector that determines the direction of the principal component, λ is the eigenvalue that represents the data variance in the corresponding direction, Y is the data matrix after dimensionality reduction, that is, the target matrix, and Z is the matrix based on Z. i The decentralized matrix composed of is the original data matrix, V is the eigenvector matrix of the covariance, which is composed of the eigenvalue arrangement.

[0013] The training set is preferably divided into sliding windows, and a specific set of trigonometric function codes is generated for each window through window coding, specifically: the i-th window W i =x i-1s+1 , x i-1s+″ , …, x i-1s+″ , where: data set X = [x1, x ″ , …, x N ], the window size is w, the step length is s, there are Nw windows in total, N is the length of the data set; the sliding window after division needs to be encoded, specifically: Where: p is the window position index (starting from 0 by default), i is the dimension index in each window, and d is the dimension of the encoded vector.

[0014] The FSTRNN model includes: a convolutional neural network unit, an attention mechanism unit and three long short-term memory units, wherein: the convolutional neural network unit uses a standard square convolution kernel to extract the frequency domain information of the input matrix after folding by the folding layer according to the input data set information, and then uses the unfolding layer to form a feature matrix consistent with the input matrix structure; the attention mechanism unit dynamically extracts the focus point features in the global information according to the feature matrix information to obtain the attention feature matrix result; the built-in long short-term memory unit extracts the time dependency of the focus interval according to the attention feature matrix information to obtain the first intermediate result matrix; the parallel long short-term memory unit performs overall time feature extraction processing according to the input data set information to obtain the second intermediate result matrix; the post-long short-term memory unit extracts the neural network features of the first intermediate result matrix and the second intermediate result matrix, fits them with the training labels of the fitting layer, and finally optimizes the weights through back propagation.

[0015] The convolution kernel size of the convolutional neural network unit is processed by Bayesian hyperparameter optimization, specifically: according to the hyperparameter range of different models, the initial sample points are randomly generated, the initial sample points are passed through a Gaussian process, and the model corresponding to the sample points is trained at the same time, and the Gaussian process is corrected using the output loss value of the model objective function to continuously make it close to the true function distribution. When the number of cycles is reached or the loss value of the objective function corresponding to the sample point meets the predetermined requirements, the operation is terminated, and the best parameter combination and model objective function loss value in the current sample set are output. Technical Effects

[0016] The present invention aims at the preprocessing and coding window creation process of a multidimensional time series data set similar to a photovoltaic power generation data set; an FSTRNN model is built based on multiple neural network basic units and has the ability to extract multiple coding window data sets; compared with the prior art, the present invention can ensure that several sampling points in a single window have significant time dependence through the coding window, and ensure that the position information of the window data set does not change after multiple neural network operations through continuous window matching fixed trigonometric function position coding, which is used to provide an overall time dependence for the LSTM unit in the model. By extracting features for the coding window data set through the FSTRNN model, a higher prediction accuracy can be obtained compared with ordinary models such as MLP, SVM, LSTM, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flow chart of the present invention;

[0018] Figure 2 It is a data preprocessing flow chart of the present invention;

[0019] Figure 3 This is a schematic diagram of the FSTRNN model structure of the present invention;

[0020] Figure 4a It is a schematic diagram of Kendall correlation coefficient matrix-Yulara;

[0021] Figure 4b It is a schematic diagram of Kendall correlation coefficient matrix-DTU;

[0022] Figure 5 This is a schematic diagram comparing the single-day predicted values ​​and actual values ​​of the four models of the Yulara dataset;

[0023] Figure 6 This is a schematic diagram comparing the single-day predicted values ​​and actual values ​​of the four models of the DTU dataset. DETAILED DESCRIPTION

[0024] like Figure 1 As shown, this embodiment relates to a solar photovoltaic power generation power prediction method integrating time and space relationships, including:

[0025] Step 1: Collect historical data of the photovoltaic system. The sensor collects data including real-time output power, temperature at multiple points of the power station, component temperature, humidity, pressure, irradiance, zenith angle, inclination, etc. and samples at a fixed sampling interval. After preprocessing, a coded window data set is generated;

[0026] like Figure 2 As shown, the preprocessing includes marking missing values ​​and outliers and replacing the reduced-dimensionality dataset to divide the sliding window and match the trigonometric function position codes one by one.

[0027] Step 2: Perform Kendall correlation analysis on the data set and extract principal component features to generate a training set.

[0028] like Figure 4a and Figure 4b As shown in the figure, the Kendall correlation coefficient matrix calculation results for the Yulara and DTU data sets are respectively performed, and the features with correlation higher than 0.3 are screened out. The variables are grouped together and the principal components are extracted. The classification basis is: similar variables such as ambient temperature at different points and the Kendall correlation coefficient between variables is higher than 0.6.

[0029] The training set preferably normalizes the data set, divides the sliding window into 6 scales, generates the trigonometric function position encoding required by the FSTRNN model according to the length of the sliding window, and divides it into training set, verification set and test set in the ratio of 70%, 15% and 15%, which are used for model training, process verification adjustment and online prediction respectively.

[0030] In this embodiment, after the data set with a length of 100000 (in the photovoltaic data and represents the number of sampling points) and a dimension of 6 (representing the number of input variables) is divided into windows, the encoding values ​​of the first five windows are as shown in Table 1.

[0031] Table 1. Trigonometric position encoding of the first five sliding windows in the example

[0032] The sliding window size in this embodiment needs to be screened through multiple comparative tests. In the preliminary experiment, it is determined that when the window size is 6, the prediction effect is the best, as shown in Table 2.

[0033] Table 2 Comparison results of sliding window sizes

[0034] Step 3: Build Figure 3 The FSTRNN model shown includes a convolutional neural network unit, an attention mechanism unit, and three long short-term memory (LSTM) units;

[0035] The convolutional neural network includes: a feature extraction structure and a feature mapping structure, wherein: the feature extraction structure extracts local features and position information of input data one by one, and includes an input layer (InputLayer) and a convolution layer (Conv Layer) of the data; the feature mapping structure further maps the extracted features to reduce feature resolution and improve computational efficiency, and includes an activation function layer (IncentiveLayer) and a pooling layer (PoolingLayer).

[0036] In this embodiment, in order to ensure that the feature sequence input to the LSTM retains the temporal features as much as possible, the pooling layer is not added to the convolution structure.

[0037] The convolution layer uses the set convolution kernel to perform convolution on the input data from left to right and from top to bottom. The parameters that can be set include the convolution kernel size, the convolution kernel displacement step, etc., specifically including: Where: l is the current computing layer, M j is a set of input matrices, k is the convolution kernel, and b is the corresponding bias parameter (bias).

[0038] like Figure 3 As shown, the three long short-term memory units are specifically: a built-in long short-term memory (LSTM) unit, a parallel long short-term memory (LSTM) unit and a post-long short-term memory (LSTM) unit, wherein: the built-in long short-term memory unit, the convolutional neural unit and the attention mechanism unit form a CNN-ATTENTION-LSTM structure.

[0039] The parallel long short-term memory unit includes: an LSTM hidden layer, a random drop layer, a feedforward fully connected layer and a fitting layer, wherein: the LSTM hidden layer performs feature extraction processing according to the encoded sliding window data set information to obtain a time series feature result, the random drop layer performs overfitting prevention processing according to the output information of the previous layer to obtain an optimized feature result, the feedforward fully connected layer performs pattern recognition processing according to the optimized feature information to obtain a new feature matrix, and the fitting layer performs error correction processing according to the feature matrix information and the result label to obtain a first prediction result.

[0040] The CNN-ATTENTION-LSTM structure specifically includes: a convolutional neural unit composed of a folding layer, a convolutional layer, a ReLU activation function layer, an expansion layer and a flattening layer, an attention mechanism unit, a multiplication layer, and a built-in long short-term memory unit, wherein: the folding layer folds and merges multiple windows according to the information of the encoded sliding window data set to form a feature matrix with higher dimensions; the convolution layer performs spatial feature extraction processing according to the input feature matrix to obtain a preliminary feature map; the activation layer applies the ReLU activation function to perform nonlinear transformation on the preliminary feature map; the expansion layer expands the feature map after convolution to prepare for the flattening layer and subsequent processing; the flattening layer converts the expanded feature data into a one-dimensional array; the attention mechanism unit processes the flattened features in parallel in multiple subspaces through multiple attention heads, and the outputs of the subspaces are merged into attention outputs; the multiplication layer performs multiplication and merging according to the attention output and the flattened features after convolution, and adjusts the feature importance with the weight of the attention mechanism output to enhance the focus of the model; the built-in long short-term memory unit is consistent with the parallel long short-term memory unit structure, processes the features adjusted by the multiplication layer, extracts the features of the time series, and obtains the second prediction result combining the spatial and temporal dimensions.

[0041] The post-long short-term memory unit includes: a merging processing structure, an LSTM hidden layer and a fitting layer, wherein: the merging processing structure performs matrix merging of the first and second prediction results to obtain total output information; the LSTM hidden layer performs time series analysis processing according to the total output information to obtain time series features; the fitting layer performs fitting according to a power label with a step size of 1 (corresponding to the output power sampled at the next moment) and the extracted time series features during the training process, and directly outputs the final result according to the time series features during the experiment.

[0042] The attention mechanism unit uses multiple queries to calculate the input sequence in parallel, each attention focuses on different features of the input sequence, and finally concatenates them, specifically: MultiheadAttention(Q, K, V) = Concat(head1, ..., head p )W 0 ,in: W 0 It is a learnable matrix used for linear transformation after multiple output concatenation to obtain the final output. Q, K, and V represent query, key, and value, respectively. They are three learnable vector matrices. The key takes the query as the basis and calculates the attention weight for each key. The sum of these weights equals 1. The final result is the weighted sum of the value using the attention weight. K Indicates the dimension of the vector key.

[0043] The loss function of the training is MAE, MSE, and RMSE.

[0044] After specific practical experiments, under the hardware environment of NVIDIA 3090GPU, two historical data of the Yulara base of Australia's DKA Solar Center and the small scientific research photovoltaic system of the Technical University of Denmark (DTU) were selected as data sets.

[0045] According to the preprocessing process, the coding window data set is formed: the blank and abnormal value marking and replacement are completed in turn, and the Kendall correlation coefficient matrix is ​​used to obtain the correlation relationship between the variables in the two original data sets. Figure 4a and 4b , the correlation between the ambient temperature sequence and the component temperature sequence in the data set is greater than 0.6 and both are temperature variables. The principal component analysis method is used to obtain a principal component sequence, and the same is true for other variables. Finally, the reduced-dimensional data set is obtained, including power, temperature principal component, wind speed principal component, irradiance principal component, humidity, pressure, etc. (In the actual processing process, all variables with a correlation greater than 0.3 with power in the original data set are used as input sequences, and variables of the same type with a correlation greater than 0.6 are extracted as a principal component). After dimensionality reduction, the data set is divided into sliding windows with a window size of 6 and a window step of 1. The triangular position coding formula is used to calculate the position coding equal to the number of windows and match them one by one with the windows.

[0046] The coding window data set is divided into training set, validation set and experimental set according to the ratio of 70%, 15% and 15%. The training set is used for model training, the validation set is used for Bayesian optimization direction confirmation, and the experimental set is equivalent to the test data, which is used to evaluate the final model performance. After two Bayesian optimization screenings, the hyperparameters and weight settings of the FSTRNN model can be obtained as shown in Tables 3 and 4. At the same time, typical SVM, MLP, LSTM, and CNN-LSTM models that have also been optimized by Bayesian are added as comparative verification. FSTRNN has achieved significantly better accuracy and stability than traditional models in the five-minute ultra-short-term prediction experiments of two typical photovoltaic data sets with rated power of 1058.4kW and 10kW, respectively, Yulara and DTU.

[0047] Table 3 Comparison results of SVM, MLP, LSTM, CNN-LSTM and FSTRNN models on Yulara dataset

[0048] Table 4 Comparison results of SVM, MLP, LSTM, CNN-LSTM and FSTRNN models on DTU dataset

[0049] Compared with the prior art, the present invention utilizes triangular position encoding to match the sliding window, effectively ensuring that the attention mechanism in the model will not damage the overall time dependency of the time series data set. It has the ability to identify dynamic focus points and extract time dependencies at different levels, and solves the shortcoming that the common LSTM model with attention mechanism is prone to lose global time characteristics during time series prediction.

[0050] The above-mentioned specific implementation can be partially adjusted in different ways by those skilled in the art without departing from the principle and purpose of the present invention. The protection scope of the present invention shall be based on the claims and shall not be limited by the above-mentioned specific implementation. Each implementation scheme within its scope shall be subject to the constraints of the present invention.

Claims

1. A solar photovoltaic power generation power prediction method integrating time and space relationships, characterized in that: In the offline stage, the historical data of the photovoltaic system is correlated and the main component features are extracted. After the training set is generated, the constructed FSTRNN model including CNN, Multi-Attention and LSTM is trained. In the online stage, the trained FSTRNN model is used to predict the real-time power generation. The FSTRNN model includes: a convolutional neural network unit, an attention mechanism unit and three long short-term memory units, wherein: the convolutional neural network unit uses a standard square convolution kernel to extract the frequency domain information of the input matrix after folding by the folding layer according to the input data set information, and then uses the unfolding layer to form a feature matrix consistent with the input matrix structure; the attention mechanism unit dynamically extracts the focus point features in the global information according to the feature matrix information to obtain the attention feature matrix result; The three long short-term memory units are specifically: a built-in long short-term memory (LSTM) unit, a parallel long short-term memory (LSTM) unit and a post-long short-term memory (LSTM) unit. The built-in long short-term memory unit extracts the time dependency of the attention interval according to the attention feature matrix information to obtain a first intermediate result matrix; the parallel long short-term memory unit performs overall time feature extraction processing according to the input data set information to obtain a second intermediate result matrix; the post-long short-term memory unit performs neural network feature extraction on the first intermediate result matrix and the second intermediate result matrix, fits them with the training labels of the fitting layer, and finally optimizes the weights through back propagation.

2. The solar photovoltaic power generation power prediction method integrating time and space relationship according to claim 1 is characterized in that: The convolutional neural network includes: a feature extraction structure and a feature mapping structure, wherein: the feature extraction structure extracts local features and position information of input data one by one, and includes an input layer and a convolution layer of the data; the feature mapping structure further maps the extracted features to reduce feature resolution and improve computational efficiency, and includes an activation function layer and a pooling layer.

3. The solar photovoltaic power generation power prediction method integrating time and space relationship according to claim 1 is characterized in that: The parallel long short-term memory unit includes: an LSTM hidden layer, a random drop layer, a feedforward fully connected layer and a fitting layer, wherein: the LSTM hidden layer performs feature extraction processing according to the encoded sliding window data set information to obtain a time series feature result, the random drop layer performs overfitting prevention processing according to the output information of the previous layer to obtain an optimized feature result, the feedforward fully connected layer performs pattern recognition processing according to the optimized feature information to obtain a new feature matrix, and the fitting layer performs error correction processing according to the feature matrix information and the result label to obtain a first prediction result.

4. The solar photovoltaic power generation power prediction method integrating time and space relationship according to claim 1 is characterized in that: The built-in long short-term memory unit, convolutional neural unit and attention mechanism unit form a CNN-ATTENTION-LSTM structure, which specifically includes: a convolutional neural unit composed of a folding layer, a convolutional layer, a ReLU activation function layer, an expansion layer and a flattening layer, an attention mechanism unit, a multiplication layer, and a built-in long short-term memory unit, wherein: the folding layer folds and merges multiple windows according to the encoded sliding window data set information to form a higher-dimensional feature matrix; the convolutional layer performs spatial feature extraction processing according to the input feature matrix to obtain a preliminary feature map; the activation layer applies the ReLU activation function to perform nonlinear transformation on the preliminary feature map; the expansion layer The convolutional feature map is expanded to prepare for the flattening layer and subsequent processing; the flattening layer converts the expanded feature data into a one-dimensional array; the attention mechanism unit processes the flattened features in parallel in multiple subspaces through multiple attention heads, and the outputs of the subspaces are merged into attention outputs; the multiplication layer performs multiplication and merging based on the attention output and the flattened features after convolution, and adjusts the feature importance with the weight of the attention mechanism output to enhance the focus of the model; the built-in long short-term memory unit is consistent with the parallel long short-term memory unit structure, processes the features adjusted by the multiplication layer, performs feature extraction of the time series, and obtains the second prediction result combining the spatial and temporal dimensions.

5. The solar photovoltaic power generation power prediction method integrating time and space relationship according to claim 1 is characterized in that: The post-long short-term memory unit includes: a merging processing structure, an LSTM hidden layer and a fitting layer, wherein: the merging processing structure performs matrix merging of the first and second prediction results to obtain total output information; the LSTM hidden layer performs time series analysis processing according to the total output information to obtain time series features; the fitting layer performs fitting according to a power label with a step size of 1 (corresponding to the output power sampled at the next moment) and the extracted time series features during the training process, and directly outputs the final result according to the time series features during the experiment.

6. The solar photovoltaic power generation power prediction method integrating time and space relationship according to any one of claims 1 to 5, characterized in that: The correlation analysis refers to: using the Kendall correlation coefficient matrix to obtain the strength of the correlation between the generated power and different features, removing weakly correlated features, and obtaining a feature sequence; classifying features in the same cluster, such as temperature sequences measured at different points, and extracting the principal component from each cluster using the principal component analysis method.

7. The solar photovoltaic power generation power prediction method integrating time and space relationship according to claim 6 is characterized in that: The Kendall correlation coefficient matrix is ​​obtained by calculating the correlation coefficient τ for each of the two sequences in the data set, and combining the results to form a matrix, specifically: Where: n is the number of observations in the data set, x i and x j are the two observed values ​​of the first variable, y i and y j These are the two corresponding observation values ​​of the second variable. If the internal result of sgn is greater than 0, 1 is output, and if it is less than 0, 0 is output. Sequences with a certain correlation are selected based on the obtained correlation coefficient value.

8. The solar photovoltaic power generation power prediction method integrating time and space relationship according to claim 6 is characterized in that: The principal component analysis method refers to: using partial sequence principal component analysis to extract principal components for a specific sequence and further reduce the dimension, specifically including: 1) Standardize the specified sequence to ensure that each feature has zero mean and unit variance Where: X i is the observed value of the specified feature, μ i is the original mean of the specified feature, σ i is the original variance, Z i is the standardized observed value; 2) Calculate the covariance matrix, solve the eigenvalues ​​and eigenvectors, sort the eigenvalues ​​in descending order, select the first column as part of the principal component, and transform the original data into the space defined by the selected principal component to achieve dimensionality reduction. The reduced-dimensional data is standardized to scale the features to a range to ensure the uniformity of the scale of the data for modeling purposes, specifically: Cυ=λυ,Y=ZV,where: C ij is the covariance of variables i and j, n is the sample size, and Z ki and Z kj is the standardized value, and is the mean value of the variable, C is the covariance matrix, υ is the eigenvector that determines the direction of the principal component, λ is the eigenvalue that represents the data variance in the corresponding direction, Y is the data matrix after dimensionality reduction, that is, the target matrix, and Z is the matrix based on Z. i The decentralized matrix composed of is the original data matrix, V is the eigenvector matrix of the covariance, which is composed of the eigenvalue arrangement.

9. The solar photovoltaic power generation power prediction method integrating time and space relationship according to claim 1 is characterized in that: The training set is divided into sliding windows, and a specific set of trigonometric function codes is generated for each window through window coding, specifically: the i-th window W i =[x (i-1)s+1 , x (i-1)s+2 , …, x (i-1)s+w ], where: data set x = [x1, x2, ..., x N ], the window size is w, the step length is s, there are Nw windows in total, N is the length of the data set; the sliding window after division needs to be encoded, specifically: Where: p is the window position index (starting from 0 by default), i is the dimension index in each window, and d is the dimension of the encoded vector.

10. The solar photovoltaic power generation power prediction method integrating time and space relationship according to claim 1 is characterized in that: The convolution kernel size of the convolutional neural network unit is processed by Bayesian hyperparameter optimization, specifically: according to the hyperparameter range of different models, the initial sample points are randomly generated, the initial sample points are passed through a Gaussian process, and the model corresponding to the sample points is trained at the same time, and the Gaussian process is corrected using the output loss value of the model objective function to continuously make it close to the true function distribution. When the number of cycles is reached or the loss value of the objective function corresponding to the sample point meets the predetermined requirements, the operation is terminated, and the best parameter combination and model objective function loss value in the current sample set are output.

Citation Information

Cited By

  • Atmospheric environment monitoring fixed station pollutant monitoring data backtracking method

    CN119272149A

  • Photovoltaic power generation power prediction model training method, prediction method, device, equipment and medium

    CN119853033A