Ultra-short-term photovoltaic power prediction method and system based on multi-mode and multi-scale characteristics

Through the multi-modal multi-scale feature fusion method, the self-attention convolutional long short-term memory neural network and the attention mechanism are used to extract photovoltaic power data features, which solves the problem of limited photovoltaic power prediction performance in the existing technology and achieves higher Prediction accuracy and robustness.

CN118690902APending Publication Date: 2024-09-24HOHAI UNIV
View PDF 0 Cites 11 Cited by

Patent Information

Application Number
CN202410782951.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing photovoltaic power ultra-short-term prediction methods fail to fully exploit the temporal characteristics of historical data and the spatiotemporal characteristics of cloud images, resulting in limited prediction performance.

Method used

An ultra-short-term photovoltaic power prediction method based on multi-modal and multi-scale features is used to extract cloud spatiotemporal features and power time series features through self-attention convolutional long short-term memory neural network, and multi-head self-attention and multi-head cross-attention mechanisms are used for deep fusion. , as the input of the multi-layer perceptron for prediction.

Benefits of technology

It improves the accuracy and generalization performance of photovoltaic power prediction, can adapt to complex and changeable data trends, deeply mine spatiotemporal feature information, and enhances the robustness and accuracy of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690902A
    Figure CN118690902A
Patent Text Reader

Abstract

The invention discloses an ultra-short-term photovoltaic power prediction method and system based on multi-mode and multi-scale characteristics. The method comprises the following steps: obtaining a multi-scale historical foundation cloud picture and photovoltaic power data based on different sampling intervals as the input of a model; utilizing a self-attention convolution long short-term memory neural network and a long short-term memory neural network to respectively extract cloud layer space-time feature information and power time sequence feature information; performing deep fusion on the multi-modal multi-scale feature information through a fusion attention mechanism based on multi-head self-attention and multi-head cross attention; and the fusion features are used as the input of a multi-layer sensor, and ultra-short-term photovoltaic power prediction is realized. According to the method, the ultra-short-term photovoltaic power prediction precision can be improved, support is provided for safe and stable operation of a power grid, and the method has certain engineering practical value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of photovoltaic power generation, and in particular to an ultra-short-term photovoltaic power prediction method and system based on multi-modal and multi-scale characteristics. Background Art

[0002] As climate change and ecological constraints become strong constraints on the energy development strategies of various countries, achieving low-carbon development has gradually become an important element in the development strategies of various countries around the world. By the end of 2023, photovoltaic power generation will account for more than 5.4% of the total power generation due to its advantages of sufficient supply, clean and green, and wide distribution, and will continue to grow at a rate of more than 19%. Promoting the development and utilization of photovoltaic power to replace traditional energy is still the main trend of global energy development.

[0003] Since photovoltaic power generation is characterized by volatility and intermittency, its large-scale grid connection will affect the safety and stability of the power system, such as frequency drop, harmonic interference, etc. Therefore, it is very important to establish an accurate photovoltaic power generation prediction model for the power system.

[0004] The photovoltaic power prediction task is a typical time series modeling problem. In-depth mining of the time series characteristics of input data is an important way to achieve performance improvement. In addition, in the ultra-short term, the formation and disappearance of clouds is the main reason for the fluctuation of photovoltaic power. Therefore, it is very important to consider cloud information. However, the existing photovoltaic power ultra-short term power prediction methods have problems such as insufficient mining of the time series characteristics of historical data and insufficient extraction of spatiotemporal features of cloud images, which limits the improvement of ultra-short term photovoltaic power prediction performance. Summary of the invention

[0005] Purpose of the invention: The purpose of the present invention is to provide an ultra-short-term photovoltaic power prediction method and system based on multi-modal and multi-scale features, which can improve the accuracy of ultra-short-term photovoltaic power prediction.

[0006] Technical solution: In order to achieve the above-mentioned invention object, the ultra-short-term photovoltaic power prediction method based on multi-modal and multi-scale features proposed in the present invention includes the following steps:

[0007] (1) Based on different sampling intervals, multi-scale historical ground cloud images and photovoltaic power data are obtained as inputs to the model;

[0008] (2) Using self-attention convolutional long short-term memory neural network to extract cloud spatiotemporal feature information from multi-scale historical ground-based cloud image data, called multi-scale image features, and using long short-term memory neural network to extract power time series feature information from multi-scale historical photovoltaic power data, called multi-scale power features;

[0009] (3) Multi-scale image features and multi-scale power features are respectively selected within the modality using a multi-head self-attention mechanism, weights are dynamically assigned to features of different scales, and the correlation between image features and power features at different scales is captured based on a multi-head cross-attention mechanism, thus deeply fusing multi-modal and multi-scale feature information.

[0010] (4) The fused features are used as the input of the multi-layer perceptron, and the output of the multi-layer perceptron is used as the ultra-short-term photovoltaic power prediction result.

[0011] Preferably, the step (1) comprises:

[0012] Different sampling intervals are used to sample the historical data of the two modes to obtain input data of different time scales. L-step historical data is used, and the image data is I = [I0, I1, ..., I L ], the power data is P=[P0,P1,...,P L ], the specific process is:

[0013]

[0014] Among them, i is the sampling interval, with a total of n sampling intervals; j is the number of sampling times, with a total of m sampling times; is the spatiotemporal characteristics of the cloud layer based on the i interval; is the power time series feature based on the i interval; γ is the self-attention convolutional long short-term memory neural network model; It is a long short-term memory neural network model.

[0015] Preferably, the formula of the self-attention convolutional long short-term memory neural network model in step (2) is expressed as:

[0016]

[0017] Among them, x t ,h t-1 is the input value at time t and the output value at time t-1; For x t ,h t-1 The updated features obtained through the self-attention memory module; c t , c t-1 represents the unit state at time t and time t-1; SA is the self-attention memory module; i t , f t , g t They are input gate, forget gate and output gate respectively; W xi , W hi , b i , W xf , W hf , b f,Wxc,Whc,bc,W xg , W hg , b g is a learnable parameter; σ(·) is an activation function, represents the Hadamard product; h t is the output value at time t.

[0018] Preferably, the self-attention memory module is divided into three parts according to its functions: feature aggregation, memory update and result output. The feature aggregation process is:

[0019]

[0020] Among them, Softmax is the mapping function; Z m , Z h is the input feature h of the current time step t and the memory unit m of the previous time step t-1 The corresponding mapping feature; Z is the aggregation feature; Q m 、V m , K m is m t-1 The result obtained by one-dimensional convolution mapping; Q h 、V h , K h Yes t The result obtained by one-dimensional convolution mapping;

[0021] The memory update process is:

[0022]

[0023] Among them, i t ′,g t ′ is the intermediate mapping feature; m t is the updated memory feature; W zi , W hi , W zg , W hg , b i , b g is a learnable parameter; σ and tanh are mapping functions; Represents element-wise multiplication;

[0024] The result output process is:

[0025]

[0026] in, is the updated feature after being updated by the self-attention memory module; W zo , W ho , b o are learnable parameters.

[0027] Preferably, in step (3), the calculation formula of the multi-head self-attention mechanism is:

[0028]

[0029] Among them, Q, K, V are query vector, key vector, and value vector; is the scaling factor; Softmax is the mapping function; W i Q , W i K , W i V , W O is the updateable weight; l is the number of self-attention mechanisms implemented; || is the concatenation operation.

[0030] Preferably, the calculation formula of the multi-head cross attention mechanism is:

[0031]

[0032] Among them, i is the number of multi-scales determined by the sampling interval, Q, K, V are the query vector, key vector, and value vector; is the power feature of the i-th scale, F I j is the image feature of the jth scale, is the scaling factor; Softmax is the mapping function; W i Q , W i K , W i V , W O is the updateable weight; l is the number of self-attention mechanisms implemented; || is the concatenation operation, It is the result of the multi-head cross attention mechanism corresponding to the j-th scale image feature.

[0033] Preferably, in the step (3), the deep fusion of multimodal multi-scale feature information includes: the weight matrix of the multi-scale image features after being screened by the multi-head self-attention mechanism is multiplied element-wise with the weight matrix of the multi-head cross-attention mechanism, and then the matrix multiplication operation is performed with the multi-scale image features to obtain a feature result A; the weight matrix of the multi-scale power features after being screened by the multi-head self-attention mechanism is multiplied with the multi-scale power features to obtain a feature result B, and features A and B are spliced ​​to achieve feature fusion.

[0034] The present invention also provides an ultra-short-term photovoltaic power prediction system based on multi-modal and multi-scale features, comprising:

[0035] The data sampling module is used to obtain multi-scale historical ground cloud images and photovoltaic power data as inputs of the model based on different sampling intervals;

[0036] The feature extraction module is used to extract the spatiotemporal feature information of cloud layers from multi-scale historical ground-based cloud image data using a self-attention convolutional long short-term memory neural network, which is called multi-scale image features, and to extract the time series feature information of power from multi-scale historical photovoltaic power data using a long short-term memory neural network, which is called multi-scale power features;

[0037] The feature fusion module is used to select features within the modality for multi-scale image features and multi-scale power features using a multi-head self-attention mechanism, dynamically assign weights to features of different scales, and capture the correlation between image features and power features at different scales based on a multi-head cross-attention mechanism, so as to deeply fuse multi-modal and multi-scale feature information;

[0038] The power prediction module is used to use the fusion features as the input of the multi-layer perceptron, and the output of the multi-layer perceptron is used as the ultra-short-term photovoltaic power prediction result.

[0039] The present invention also provides a computer device, comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and when the programs are executed by the processors, the steps of the ultra-short-term photovoltaic power prediction method based on multi-modal and multi-scale features as described above are implemented.

[0040] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the ultra-short-term photovoltaic power prediction method based on multi-modal and multi-scale features as described above are implemented.

[0041] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages:

[0042] (1) By extracting multi-scale features from multimodal input data, the model can capture the changing trends of the data at different time scales, improve the richness of feature information, and enable the model to adapt to and process complex and changing data.

[0043] (2) A self-attention convolutional long short-term memory neural network is used to extract features from cloud image sequences. This model can deeply mine spatiotemporal feature information and further improve the prediction performance.

[0044] (3) The fusion attention mechanism not only considers the importance of multi-scale feature information of the same modality, but also takes into account the complementarity of multi-modal data at different scales, thereby improving the generalization performance of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a schematic diagram of the photovoltaic power prediction method of the present invention;

[0046] Figure 2 is a schematic diagram of the multi-modal and multi-scale features of the present invention;

[0047] Figure 3 Schematic diagram of the multi-head self-attention mechanism proposed in the present invention;

[0048] Figure 4 Schematic diagram of the multi-head cross attention mechanism proposed in the present invention;

[0049] Figure 5 Schematic diagram of the fusion of two attention mechanisms proposed in the present invention. DETAILED DESCRIPTION

[0050] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.

[0051] Reference Figure 1 The present invention proposes an ultra-short-term photovoltaic power prediction method based on multi-modal and multi-scale features. According to the national standard GB / T 40607-2021 "Technical Requirements for Wind Power or Photovoltaic Power Prediction System on the Dispatching Side", the ultra-short-term prediction is a power prediction for the next 4 hours or less. The method comprises the following steps:

[0052] Step 1: Based on different sampling intervals, multi-scale historical ground cloud images and photovoltaic power data are obtained as inputs of the model;

[0053] Step 2: Use the self-attention convolutional long short-term memory neural network and the long short-term memory neural network to extract the cloud layer spatiotemporal feature information and power time series feature information respectively;

[0054] Step 3: Through the fusion attention mechanism based on multi-head self-attention and multi-head cross-attention, the multi-modal and multi-scale feature information is deeply integrated;

[0055] Step 4: Use the fused features as the input of the multi-layer perceptron to achieve ultra-short-term photovoltaic power prediction.

[0056] Specifically, in the embodiment of the present invention, data sampling is performed in step 1 by the following method.

[0057] like Figure 2 As shown in the figure, different sampling intervals are used to sample the historical data of the two modes to obtain input data of different time scales as the input of the photovoltaic power prediction model; L-step historical data is used, and the image (cloud map) data is I=[I1,I2,...,I L ], the power data is P=[P1,P2,...,P L], the specific process is:

[0058]

[0059] Among them, i is the sampling interval, with a total of n sampling intervals; j is the number of sampling times, with a total of m sampling times; is the spatiotemporal characteristics of the cloud layer based on the i interval; is the power time series feature based on the i interval; γ is the self-attention convolutional long short-term memory neural network model; It is a long short-term memory neural network model. As i changes, the model will extract effective feature information from historical data with different time intervals (multi-scale historical data), and obtain multi-scale feature information. In the present invention, multi-time scale means obtaining historical data with different time intervals (i) from the established historical data, and further obtaining multi-scale feature information. Low sampling interval data can capture the short-term dynamics and detailed information of historical data, and reflect the changing characteristics in a shorter period of time; high sampling interval can smooth out noise and short-term fluctuations, and highlight the long-term trend and periodic characteristics of historical data.

[0060] The method of the present invention extracts features in step 2, which specifically includes the following steps:

[0061] Firstly, the self-attention convolutional long short-term memory neural network model (SA-ConvLSTM) is used to extract the spatiotemporal features of image sequences at different time scales, and its formula is:

[0062]

[0063] Among them, x t ,h t-1 is the input value at time t and the output value at time t-1; For x t ,h t-1 The updated features obtained through the self-attention memory module; c t , c t-1 represents the unit state at time t and time t-1; SA is the self-attention memory module; i t , f t , g t They are input gate, forget gate and output gate respectively; W xi , W hi , b i , W xf , W hf , b f ,Wxc,Whc,bc,W xg , W hg , b g is a learnable parameter; σ(·) is an activation function, represents the Hadamard product; h t is the output value at time t; the self-attention memory module can be divided into three parts according to its function: feature aggregation, memory update and result output. Its calculation process is as follows:

[0064]

[0065] The above formula is the feature aggregation process. Among them, Softmax is the mapping function; Z m , Z h is the input feature h of the current time step t and the memory unit m of the previous time step t-1 The corresponding mapping feature; Z is the aggregation feature; Q m 、V m is m t-1 The result obtained by one-dimensional convolution mapping; Q h 、V h , K h Yes t The result obtained by one-dimensional convolution mapping.

[0066]

[0067] The above formula is the memory update process. t ′,g t ′ is the intermediate mapping feature; m t is the updated memory feature; W zi , W hi , W zg , W hg , b i , b g is a learnable parameter; σ and tanh are mapping functions; ° represents element-wise multiplication.

[0068]

[0069] The above formula is the result output process. is the updated feature after being updated by the self-attention memory module; W zo , W ho , b o are learnable parameters.

[0070] The self-attention convolutional long short-term memory neural network model is a long short-term memory neural network based on the self-attention mechanism, which combines the advantages of LSTM and self-attention mechanism and can effectively process long-term dependencies and key parts in time series data. The present invention uses the self-attention convolutional long short-term memory neural network to extract the spatiotemporal features of image sequences at different time scales, so that the model can show higher accuracy and stability in prediction tasks.

[0071] Secondly, for the multi-scale historical photovoltaic power series, the long short-term memory neural network (LSTM) is used to deeply explore the multi-scale photovoltaic power time series characteristics, so that the model can capture the complex changes in photovoltaic power at different time scales.

[0072] The present invention performs deep fusion of multi-modal and multi-scale feature information in step 3. Specifically, the multi-modal and multi-scale feature information is deeply fused through a fusion attention mechanism based on multi-head self-attention and multi-head cross-attention. Figure 3 As shown in the figure, for the same-modal multi-scale features, each head of the multi-head self-attention mechanism independently applies the self-attention mechanism to the single-scale features to capture the internal dependencies and important information of features at different scales; the calculation formula of the multi-head self-attention mechanism is:

[0073]

[0074] Among them, Q, K, V are query vector, key vector, and value vector; is the scaling factor; W i Q , W i K , W i V , W O is the updateable weight; l is the number of self-attention mechanisms implemented; || is the concatenation operation.

[0075] like Figure 4 As shown, the present invention captures the correlation between multi-scale power features and single-scale image features through a multi-head cross-attention mechanism. The query vector is obtained by power feature mapping, and the key vector and value vector are obtained by image feature mapping. The calculation formula of the multi-head cross-attention mechanism is:

[0076]

[0077] Among them, different from the multi-head self-attention mechanism, i is the number of multi-scales, which is determined by the sampling interval; is the image feature of the jth scale, It is the result of the multi-head cross attention mechanism corresponding to the j-th scale image feature;

[0078] As power features and image features are features of two different modalities, multimodal feature fusion can make full use of the complementarity between the two modal data, improve the dimension of information expression, and thus improve the accuracy and robustness of the prediction model. Figure 5As shown, the multimodal features are fused based on the above two attention mechanisms. First, the multi-scale image features and multi-scale power features are respectively subjected to intra-modal (image features or power features) feature selection using a multi-head self-attention mechanism, and weights are dynamically assigned to features of different scales to enhance the model's attention to important feature information. Secondly, the multi-head cross-attention mechanism is used to capture the correlation of multimodal feature information (image features and power features) at different scales, further reduce the redundancy of image features, and optimize the weights of multi-scale image features. Based on the weight results obtained from the above operations and combined with multi-scale feature information, comprehensive and complementary feature fusion is achieved, providing strong data support for photovoltaic power prediction tasks. Reference Figure 5 The weight matrix of the multi-scale image features after being screened by the multi-head self-attention mechanism is multiplied element-wise with the weight matrix of the multi-head cross-attention mechanism, and then matrix multiplication is performed with the multi-scale image features to obtain the feature result A; the weight matrix of the multi-scale power features after being screened by the multi-head self-attention mechanism is matrix multiplied with the multi-scale power features to obtain the feature result B, and features A and B are spliced ​​to achieve deep fusion of multi-modal and multi-scale features.

[0079] In step 4, the fused features are used as the input of the multi-layer perceptron, and the fused features are further learned through the multi-layer perceptron. The output of the multi-layer perceptron is the ultra-short-term prediction result of photovoltaic power generation.

[0080] In order to verify the performance of the method proposed in the present invention, the following experiments were carried out in the embodiment. The data set used was collected and compiled by the Environmental Assessment and Optimization Group of Stanford University. The data set contains three years (2017-2019) of ground cloud images and photovoltaic power. The collection range of the ground cloud image is from 6 am to 8 pm. In the embodiment, ground cloud images and photovoltaic power with a time resolution of 10 minutes are used. In order to save training time and computer storage space, the high-resolution image frame (2048×2048) is downsampled to a low resolution (128×128). After data preprocessing, the number of samples that can be used for training and testing is 25428. Based on the above method, the ultra-short-term photovoltaic power in the area is predicted. And the model performance is evaluated by quantitative error indicators. Three error analysis indicators are used in this embodiment: mean deviation error (MAE), root mean square error (RMSE), and determination coefficient (R 2 ), defined as follows:

[0081]

[0082] Where N represents the total number of test samples, y i and Represent the predicted value and actual value of the i-th sample respectively, Represents the mean of the actual values.

[0083] In order to verify the prediction effect of the method of the present invention, a total of four comparison methods are set up, namely two-dimensional convolutional neural network (2DCNN), 2DCNN+LSTM, 3DCNN, and ConvLSTM. The 2DCNN method refers to the use of 2DCNN to extract the spatial features of each cloud image, and splice it with the power features as the input of the MLP; 2DCNN+LSTM uses LSTM to capture the temporal correlation of spatial features based on spatial features; 3DCNN and ConvLSTM use continuous cloud image sequences as model inputs to directly model the overall spatiotemporal characteristics of the cloud layer. As shown in Table 1, compared with the other four prediction methods, the method of the present invention has better prediction performance and obvious performance advantages, that is, it has more accurate prediction results.

[0084] Table 1 Prediction results of different methods

[0085]

[0086]

[0087] In summary, the ultra-short-term photovoltaic power prediction method based on multi-modal and multi-scale features designed by the present invention, firstly, by extracting multi-scale features from multi-modal input data, the model can capture the changing trend of data at different time scales, improve the richness of feature information, and enable the model to adapt to and process complex and changeable data; secondly, the self-attention convolutional long short-term memory neural network model is used to extract features from cloud map sequences, and the model can deeply mine spatiotemporal feature information, further improving the prediction performance; finally, the feature fusion method based on the fusion attention mechanism not only considers the importance of multi-scale feature information of the same modality, but also takes into account the complementarity of multi-modal data at different scales, so that the generalization performance of the model is improved. The experimental results show that the present invention can improve the ultra-short-term prediction accuracy of photovoltaic power, provide support for the safe and stable operation of the power grid, and has certain engineering practical value.

[0088] Based on the same technical concept as the method embodiment, the present invention also provides an ultra-short-term photovoltaic power prediction system based on multi-modal and multi-scale features, including:

[0089] The data sampling module is used to obtain multi-scale historical ground cloud images and photovoltaic power data as inputs of the model based on different sampling intervals;

[0090] The feature extraction module is used to extract the spatiotemporal feature information of cloud layers from multi-scale historical ground-based cloud image data using a self-attention convolutional long short-term memory neural network, which is called multi-scale image features, and to extract the time series feature information of power from multi-scale historical photovoltaic power data using a long short-term memory neural network, which is called multi-scale power features;

[0091] The feature fusion module is used to select features within the modality for multi-scale image features and multi-scale power features using a multi-head self-attention mechanism, dynamically assign weights to features of different scales, and capture the correlation between image features and power features at different scales based on a multi-head cross-attention mechanism, so as to deeply fuse multi-modal and multi-scale feature information;

[0092] The power prediction module is used to use the fusion features as the input of the multi-layer perceptron, and the output of the multi-layer perceptron is used as the ultra-short-term photovoltaic power prediction result.

[0093] It should be understood that the ultra-short-term photovoltaic power prediction system based on multi-modal and multi-scale features in the embodiment of the present invention can implement all the technical solutions in the above-mentioned method embodiment, and the functions of its various functional modules can be specifically implemented according to the methods in the above-mentioned method embodiments. The specific implementation process can refer to the relevant description in the above-mentioned embodiments, which will not be repeated here.

[0094] The present invention also provides a computer device, comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and when the programs are executed by the processors, the steps of the ultra-short-term photovoltaic power prediction method based on multi-modal and multi-scale features as described above are implemented.

[0095] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the ultra-short-term photovoltaic power prediction method based on multi-modal and multi-scale features as described above are implemented.

[0096] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices (systems), computer equipment or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0097] The present invention is described with reference to a flowchart of a method according to an embodiment of the present invention. It should be understood that each process in the flowchart and a combination of processes in the flowchart can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A device that specifies functions in a process or multiple processes.

[0098] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A function specified in a process or multiple processes.

[0099] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 The steps of a specified function in a process or multiple processes.

Claims

1. An ultra-short-term photovoltaic power prediction method based on multi-modal and multi-scale features, characterized in that: The following steps are involved: (1) Based on different sampling intervals, multi-scale historical ground cloud images and photovoltaic power data are obtained as inputs to the model; (2) Using self-attention convolutional long short-term memory neural network to extract cloud spatiotemporal feature information from multi-scale historical ground-based cloud image data, called multi-scale image features, and using long short-term memory neural network to extract power time series feature information from multi-scale historical photovoltaic power data, called multi-scale power features; (3) Multi-scale image features and multi-scale power features are respectively selected within the modality using a multi-head self-attention mechanism, weights are dynamically assigned to features of different scales, and the correlation between image features and power features at different scales is captured based on a multi-head cross-attention mechanism, thus deeply fusing multi-modal and multi-scale feature information. (4) The fused features are used as the input of the multi-layer perceptron, and the output of the multi-layer perceptron is used as the ultra-short-term photovoltaic power prediction result.

2. The method according to claim 1, characterized in that: The step (1) comprises: Different sampling intervals are used to sample the historical data of the two modes to obtain input data of different time scales. L-step historical data is used, and the image data is I = [I0, I1, ..., I L ], the power data is P=[P0,P1,...,P L ], the specific process is: i=1,2,...,n; j=1,2,...,m; i*j≤L Among them, i is the sampling interval, with a total of n sampling intervals; j is the number of sampling times, with a total of m sampling times; is the spatiotemporal characteristics of the cloud layer based on the i interval; is the power time series feature based on the i interval; γ is the self-attention convolutional long short-term memory neural network model; It is a long short-term memory neural network model.

3. The method according to claim 1, characterized in that The formula of the self-attention convolutional long short-term memory neural network model in step (2) is expressed as: Among them, x t ,h t-1 is the input value at time t and the output value at time t-1; For x t ,h t-1 The updated features obtained through the self-attention memory module; c t , c t-1 represents the unit state at time t and time t-1; SA is the self-attention memory module; i t , f t , g t They are input gate, forget gate and output gate respectively; W xi , W hi , b i , W xf , W hf , b f ,Wxc,Whc,bc,W xg , W hg , b g is a learnable parameter; σ(·) is an activation function, represents the Hadamard product; h t is the output value at time t.

4. The method according to claim 3, characterized in that The self-attention memory module is divided into three parts according to its functions: feature aggregation, memory update and result output. The feature aggregation process is as follows: Among them, Softmax is the mapping function; Z m , Z h is the input feature h of the current time step t and the memory unit m of the previous time step t-1 The corresponding mapping feature; Z is the aggregation feature; Q m 、V m , K m is m t-1 The result obtained by one-dimensional convolution mapping; Q h 、V h , K h Yes t The result obtained by one-dimensional convolution mapping; The memory update process is: Among them, i t ′,g t ′ is the intermediate mapping feature; m t is the updated memory feature; W zi , W hi , W zg , W hg , b i , b g is a learnable parameter; σ and tanh are mapping functions; Represents element-wise multiplication; The result output process is: in, is the updated feature after being updated by the self-attention memory module; W zo , W ho , b o are learnable parameters.

5. The method according to claim 1, characterized in that In step (3), the calculation formula of the multi-head self-attention mechanism is: Among them, Q, K, V are query vector, key vector, and value vector; is the scaling factor; Softmax is the mapping function; W i Q , W i K , W i V , W O is the updateable weight; l is the number of self-attention mechanisms implemented; || is the concatenation operation.

6. The method according to claim 1, characterized in that The calculation formula of the multi-head cross attention mechanism is: Where i is the number of multi-scales determined by the sampling interval, Q, K, V are the query vector, key vector, and value vector; F P i is the power feature of the i-th scale, F I j is the image feature of the jth scale, is the scaling factor; Softmax is the mapping function; W i Q , W i K , W i V , W O is the updateable weight; l is the number of self-attention mechanisms implemented; || is the concatenation operation, It is the result of the multi-head cross attention mechanism corresponding to the j-th scale image feature.

7. The method according to claim 1, characterized in that In the step (3), the deep fusion of multimodal multiscale feature information includes: the weight matrix of the multiscale image feature after being screened by the multi-head self-attention mechanism is multiplied element-wise with the weight matrix of the multi-head cross-attention mechanism, and then the matrix multiplication operation is performed on the multiscale image feature to obtain a feature result A; the weight matrix of the multiscale power feature after being screened by the multi-head self-attention mechanism is multiplied with the multiscale power feature to obtain a feature result B, and the features A and B are spliced ​​to achieve feature fusion.

8. An ultra-short-term photovoltaic power prediction system based on multi-level cloud image features and width learning, characterized in that: include: Data sampling module, used to obtain multi-scale historical ground cloud images and photovoltaic power data as input of the model based on different sampling intervals; The feature extraction module is used to extract the spatiotemporal feature information of cloud layers from multi-scale historical ground-based cloud image data using a self-attention convolutional long short-term memory neural network, which is called multi-scale image features, and to extract the time series feature information of power from multi-scale historical photovoltaic power data using a long short-term memory neural network, which is called multi-scale power features; The feature fusion module is used to select features within the modality for multi-scale image features and multi-scale power features using a multi-head self-attention mechanism, dynamically assign weights to features of different scales, and capture the correlation between image features and power features at different scales based on a multi-head cross-attention mechanism, so as to deeply fuse multi-modal and multi-scale feature information; The power prediction module is used to use the fusion features as the input of the multi-layer perceptron, and the output of the multi-layer perceptron is used as the ultra-short-term photovoltaic power prediction result.

9. A computer device, characterized in that: include: one or more processors; Memory; And one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and when the programs are executed by the processors, the ultra-short-term photovoltaic power prediction method based on multi-modal and multi-scale features as described in any one of claims 1-7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the ultra-short-term photovoltaic power prediction method based on multi-modal and multi-scale features as described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Ultra-short-term photovoltaic power prediction method and system based on sky-ground multi-modal data fusion

    CN119312995A

  • Photovoltaic power prediction method and system based on multi-stage time sequence feature mining

    CN119401396A

  • A photovoltaic power prediction method and system based on multi-stage time series feature mining

    CN119401396B

  • Method for predicting and inhibiting harmonic waves generated by photovoltaic grid connection

    CN119496137A

  • Photovoltaic power accurate prediction method considering fusion of global information and local information

    CN119721752A