Photovoltaic power generation power prediction method and device, electronic equipment and storage medium
By collecting and reconstructing multi-data source information of photovoltaic power stations and using feature fusion technology to build a photovoltaic power generation prediction model, it solves the problem of existing prediction models relying on a single data form and improves prediction accuracy and adaptability.
Patent Information
- Application Number
- CN202410835979.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-29
AI Technical Summary
Existing photovoltaic power generation prediction models overly rely on a single data form and fail to fully utilize the complementarity between different data sources, resulting in limited accuracy of the prediction model.
Collect various time series data of distributed photovoltaic power stations and photovoltaic panel status visible light images, and input them into the pre-trained photovoltaic power generation prediction model through data reconstruction and feature fusion, using time encoding layer, image encoding layer and learnable cross feature fusion layers to build a predictive model.
The accuracy of photovoltaic power generation prediction is improved, and the model's adaptability and prediction ability to environmental changes are enhanced through the complementary use of multiple data sources.
Smart Images

Figure CN118868022A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of solar photovoltaic power generation, and in particular to a method, device, electronic device and storage medium for predicting photovoltaic power generation. Background Art
[0002] Globally, the effective use of renewable energy has become a key strategy to reduce dependence on traditional fossil energy and alleviate the tight energy supply situation. Solar energy has become a form of energy that has attracted much attention due to its clean and safe characteristics. Accurate prediction of distributed photovoltaic systems plays a key role in improving the connection, dispatching and optimization of regional power grid systems.
[0003] At present, although photovoltaic power generation technology has made significant progress, it still faces many challenges in the field of power forecasting. Traditional physical-based prediction methods mainly focus on the relationship between numerical weather forecasts, satellite images of the sky / clouds and the inherent properties of the system, resulting in poor generalization of the model, while data-driven methods focus more on statistical analysis or training of a large amount of meteorological and historical power generation data, ignoring the impact of the dynamic changes of photovoltaic panels themselves; in addition, existing prediction models mostly rely on a single data form and fail to fully utilize the complementarity between different data sources, limiting the accuracy of the prediction model.
[0004] In summary, existing prediction models rely too much on a single form of data and fail to fully utilize the complementarity between different data sources, which greatly affects the accuracy of the prediction models and needs to be solved urgently. Summary of the invention
[0005] The present application provides a photovoltaic power prediction method, device, electronic device and storage medium to solve the problems that the existing prediction model is overly dependent on a single data form, it is difficult to fully utilize the complementarity between different data sources, and the accuracy of the prediction model is greatly affected.
[0006] The first aspect of the present application provides a method for predicting photovoltaic power generation, comprising the following steps: collecting a variety of time series data and visible light images of photovoltaic panel status of a target distributed photovoltaic power station; performing data reconstruction operations on the multiple time series data and the visible light images of the photovoltaic panel status to obtain reconstructed data corresponding to the multiple time series data and the visible light images of the photovoltaic panel status; inputting the reconstructed data into a pre-trained photovoltaic power generation prediction model to obtain the photovoltaic power generation prediction results of the target distributed photovoltaic power station at different time scales.
[0007] Optionally, in one embodiment of the present application, the collection of multiple time series data and visible light images of the status of photovoltaic panels of the target distributed photovoltaic power station includes: controlling the edge end of the target distributed photovoltaic power station to collect the visible light images of the status of the photovoltaic panels every preset collection period through a preset MQTT server; and receiving the multiple time series data based on a preset cloud and a preset photovoltaic weather station.
[0008] Optionally, in one embodiment of the present application, the data reconstruction operation is performed on the multiple time series data and the photovoltaic panel status visible light image to obtain reconstructed data corresponding to the time series data and the photovoltaic panel status visible light image, including: calculating the Pearson correlation coefficients of the multiple time series data and the photovoltaic panel status visible light image, and constructing key feature subsets of the multiple time series data and the photovoltaic panel status visible light image based on the Pearson correlation coefficient; performing timestamp alignment processing on the key feature subsets of the multiple time series data and the photovoltaic panel status visible light image to obtain a synchronized key feature subset; based on a preset clustering algorithm and spline interpolation strategy, performing a data cleaning operation on the synchronized key feature subset to generate reconstructed data corresponding to the multiple time series data and the photovoltaic panel status visible light image.
[0009] Optionally, in one embodiment of the present application, before inputting the reconstructed data into a pre-trained photovoltaic power prediction model, it also includes: determining the embedding method of the target distributed photovoltaic power station at different time scales, so as to construct a time coding layer according to the embedding method; constructing an image coding layer based on the preset Stem layer, Stage layer, CWT layer and Transition layer, and in combination with the preset Batch-Norm layer, the preset Linear layer and the preset convolutional attention module; establishing a learnable cross-feature fusion layer according to the preset cross-attention mechanism and feature fusion strategy; establishing a encoder-decoder through the preset multi-head self-attention mechanism, feedforward network and normalization layer; and constructing a photovoltaic power prediction model according to the time coding layer, the image coding layer, the learnable cross-feature fusion layer and the encoder-decoder.
[0010] Optionally, in one embodiment of the present application, the reconstructed data is input into a pre-trained photovoltaic power prediction model to obtain the photovoltaic power prediction results of the target distributed photovoltaic power station at different time scales, including: extracting the sequence features of the reconstructed data corresponding to the multiple time series data through the time coding layer; extracting the spatial features of the reconstructed data corresponding to the visible light image of the photovoltaic panel status through the image coding layer; using the learnable cross-feature fusion layer to fuse the sequence features and the spatial features to generate fused features; decoding and linear conversion operations are performed on the fused features to obtain the photovoltaic power prediction results.
[0011] The second aspect of the present application provides a photovoltaic power prediction device, including: an acquisition module, used to acquire multiple time series data and visible light images of photovoltaic panel status of a target distributed photovoltaic power station; a reconstruction module, used to perform data reconstruction operations on the multiple time series data and the visible light images of the photovoltaic panel status to obtain reconstructed data corresponding to the multiple time series data and the visible light images of the photovoltaic panel status; a prediction module, used to input the reconstructed data into a pre-trained photovoltaic power prediction model to obtain the photovoltaic power prediction results of the target distributed photovoltaic power station at different time scales.
[0012] Optionally, in one embodiment of the present application, the acquisition module includes: a first acquisition unit, used to control the edge end of the target distributed photovoltaic power station through a preset MQTT server to collect the visible light image of the photovoltaic panel status every preset acquisition period; a second acquisition unit, used to receive the multiple time series data based on a preset cloud and a preset photovoltaic weather station.
[0013] Optionally, in one embodiment of the present application, the reconstruction module includes: a construction unit, used to calculate the Pearson correlation coefficients of the multiple time series data and the photovoltaic panel status visible light image, and construct a key feature subset of the multiple time series data and the photovoltaic panel status visible light image based on the Pearson correlation coefficient; an alignment unit, used to perform timestamp alignment processing on the key feature subsets of the multiple time series data and the photovoltaic panel status visible light image to obtain a synchronized key feature subset; a cleaning unit, used to perform a data cleaning operation on the synchronized key feature subset based on a preset clustering algorithm and spline interpolation strategy to generate reconstructed data corresponding to the multiple time series data and the photovoltaic panel status visible light image.
[0014] Optionally, in one embodiment of the present application, it also includes: a first establishment module, which is used to determine the embedding method of the target distributed photovoltaic power station at different time scales before inputting the reconstructed data into a pre-trained photovoltaic power generation prediction model, so as to construct a time coding layer according to the embedding method; a second establishment module, which is used to construct an image coding layer based on a preset Stem layer, Stage layer, CWT layer and Transition layer, and in combination with a preset Batch-Norm layer, a preset Linear layer and a preset convolutional attention module; a third establishment module, which is used to establish a learnable cross-feature fusion layer according to a preset cross-attention mechanism and feature fusion strategy; a fourth establishment module, which is used to establish an encoder-decoder through a preset multi-head self-attention mechanism, a feedforward network and a normalization layer; a modeling module, which is used to construct a photovoltaic power generation prediction model according to the time coding layer, the image coding layer, the learnable cross-feature fusion layer and the encoder-decoder.
[0015] Optionally, in one embodiment of the present application, the prediction module includes: a first extraction unit, used to extract sequence features of the reconstructed data corresponding to the multiple time series data through the time coding layer; a second extraction unit, used to extract spatial features of the reconstructed data corresponding to the visible light image of the photovoltaic panel status through the image coding layer; a fusion unit, used to use the learnable cross-feature fusion layer to perform feature fusion on the sequence features and the spatial features to generate fusion features; a processing unit, used to decode and linearly transform the fusion features to obtain the photovoltaic power prediction result.
[0016] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the photovoltaic power prediction method as described in the above embodiment.
[0017] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above photovoltaic power generation prediction method.
[0018] Therefore, the embodiments of the present application have the following beneficial effects:
[0019] The embodiments of the present application can collect a variety of time series data and visible light images of the photovoltaic panel status of the target distributed photovoltaic power station; perform data reconstruction operations on the multiple time series data and the visible light images of the photovoltaic panel status to obtain the reconstructed data corresponding to the multiple time series data and the visible light images of the photovoltaic panel status; input the reconstructed data into a pre-trained photovoltaic power generation prediction model to obtain the photovoltaic power generation power prediction results of the target distributed photovoltaic power station at different time scales. The present application effectively improves the accuracy of the prediction model by predicting the output power of the photovoltaic power station at different time scales based on the actual collected photovoltaic power station images and environmental and electrical time series data. Thus, it solves the problems that the existing prediction model is overly dependent on a single data form, it is difficult to fully utilize the complementarity between different data sources, and greatly affects the accuracy of the prediction model.
[0020] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0022] Figure 1 A flowchart of a photovoltaic power generation prediction method provided according to an embodiment of the present application;
[0023] Figure 2 A schematic diagram of the logical architecture of a photovoltaic power prediction method provided for one embodiment of the present application;
[0024] Figure 3 A schematic diagram of an MQTT communication process provided for an embodiment of the present application;
[0025] Figure 4 A schematic diagram of the execution logic of a data outlier processing strategy provided for one embodiment of the present application;
[0026] Figure 5 A schematic diagram of a photovoltaic power generation prediction model framework based on image-data multimodal fusion provided for one embodiment of the present application;
[0027] Figure 6 A schematic diagram of the structure of a Backbone network provided for an embodiment of the present application;
[0028] Figure 7 A schematic diagram of the logical architecture of a learnable cross-feature fusion layer provided for one embodiment of the present application;
[0029] Figure 8 This is an example diagram of a photovoltaic power prediction device according to an embodiment of the present application;
[0030] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0031] Among them, 10 is a photovoltaic power generation prediction device; 100 is a collection module, 200 is a reconstruction module, 300 is a prediction module; 901 is a memory, 902 is a processor, and 903 is a communication interface. DETAILED DESCRIPTION
[0032] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0033] The following describes the photovoltaic power prediction method, device, electronic device and storage medium of the embodiment of the present application with reference to the accompanying drawings. In view of the problems mentioned in the above background technology, the present application provides a method for predicting photovoltaic power, in which a plurality of time series data and visible light images of the photovoltaic panel status of the target distributed photovoltaic power station are collected; data reconstruction operations are performed on the plurality of time series data and the visible light images of the photovoltaic panel status to obtain the reconstructed data corresponding to the plurality of time series data and the visible light images of the photovoltaic panel status; the reconstructed data is input into the pre-trained photovoltaic power prediction model to obtain the photovoltaic power prediction results of the target distributed photovoltaic power station at different time scales. The present application predicts the output power of the photovoltaic power station at different time scales according to the actually collected photovoltaic power station images and environmental and electrical time series data, thereby effectively improving the accuracy of the prediction model. Thus, the existing prediction model is overly dependent on a single data form, it is difficult to fully utilize the complementarity between different data sources, and the accuracy of the prediction model is greatly affected.
[0034] Specifically, Figure 1 A flowchart of a photovoltaic power prediction method provided in an embodiment of the present application.
[0035] like Figure 1 As shown, the photovoltaic power generation power prediction method includes the following steps:
[0036] In step S101, various time series data and visible light images of photovoltaic panel status of the target distributed photovoltaic power station are collected.
[0037] The embodiments of the present application can first collect visible light images of photovoltaic panel status, wind speed, temperature, power, light intensity, photovoltaic panel temperature, wind direction and other photovoltaic panel image data, meteorological data and power generation data, so as to enrich the input data form of the prediction model by collecting data on influencing factors related to photovoltaic power generation, and provide reliable data guidance and basis for the accurate prediction of subsequent photovoltaic power generation prediction models.
[0038] Optionally, in one embodiment of the present application, multiple time series data and visible light images of the status of photovoltaic panels of the target distributed photovoltaic power station are collected, including: controlling the edge end of the target distributed photovoltaic power station to collect visible light images of the status of photovoltaic panels every preset collection period through a preset MQTT server; and receiving multiple time series data based on a preset cloud and a preset photovoltaic weather station.
[0039] It should be noted that the embodiments of the present application may adopt a cloud-edge collaborative working structure to perform operations such as data collection, such as Figure 2 As shown; In addition, Figure 2 It also shows how each device communicates with it.
[0040] Specifically, by Figure 2 It can be seen that the cloud in the embodiment of the present application can be used to store historical data collected by each photovoltaic power station, including component power generation, meteorological data, monitoring image data and various electrical data collected by box transformers, inverters and combiner boxes; the edge end is the actual physical equipment of the photovoltaic power station, including n distributed photovoltaic SCADA systems, monitoring cameras, hosts, switches, firewalls, routers, vertical encryption, data servers, photovoltaic power prediction systems and photovoltaic weather stations, etc.
[0041] In the embodiments of the present application, data is transmitted between the edge and the cloud via wired / wireless methods, and the communication uses Ethernet and MQTT communication protocols, such as Figure 3 shown.
[0042] In addition, the photovoltaic power generation can be calculated by formula (1) and corrected by the derating factor and temperature correction coefficient. The derating factor f pv is a proportional factor with a value range of [0,1]. The mathematical expression of photovoltaic power generation is:
[0043]
[0044] Among them, P0 is the rated power; α p is the temperature correction coefficient; T ref is the battery temperature under standard test conditions; G ref is the irradiance under standard test conditions.
[0045] Considering the impact of shading on photovoltaic power generation, equation (1) can be modified as follows:
[0046]
[0047] During the actual implementation process, the embodiments of the present application can obtain the photovoltaic panel time-series images through the security monitoring equipment installed in the photovoltaic power station, as an important visual representation of the changing law of the photovoltaic shading state. The time-series images can not only observe the changes in light and environmental conditions over time, but also obtain changes in shadows, cloud shading or sun angles. The above changes are all important physical factors that affect power generation efficiency; in addition, the embodiments of the present application can also set the power generation data sampling frequency (such as sampling once per minute) so that the actual photovoltaic power station can collect power generation data such as wind speed, temperature, power, light intensity, photovoltaic panel temperature, wind direction, etc. according to the sampling frequency; at the same time, the embodiments of the present application can also set the image data sampling frequency (such as sampling once every 5 minutes) to collect visible light images of the photovoltaic panel status in the corresponding time period, so as to fully understand the operating status of the photovoltaic power generation system.
[0048] Therefore, the embodiments of the present application can enhance the adaptability of the photovoltaic power prediction model to environmental changes by leveraging the images, meteorological and power historical data collected by the existing security monitoring at the photovoltaic site and by integrating the photovoltaic panel images and multi-source meteorological data, so as to more accurately understand and predict the performance of the photovoltaic power generation system under various environmental conditions.
[0049] In step S102 , a data reconstruction operation is performed on the various time series data and the visible light image of the photovoltaic panel status to obtain reconstructed data corresponding to the various time series data and the visible light image of the photovoltaic panel status.
[0050] Furthermore, the embodiments of the present application can perform data reconstruction operations such as feature selection, data synchronization, and data cleaning on a variety of time series data and visible light images of photovoltaic panel status, so as to solve the problems of missing data, high noise, and timestamp asynchrony in the actually collected photovoltaic data, and improve the quality of input data for photovoltaic power prediction models.
[0051] Optionally, in one embodiment of the present application, a data reconstruction operation is performed on multiple time series data and visible light images of photovoltaic panel status to obtain reconstructed data corresponding to the time series data and the visible light images of photovoltaic panel status, including: calculating the Pearson correlation coefficients of the multiple time series data and the visible light images of photovoltaic panel status, and constructing key feature subsets of the multiple time series data and the visible light images of photovoltaic panel status based on the Pearson correlation coefficient; performing timestamp alignment processing on the key feature subsets of the multiple time series data and the visible light images of photovoltaic panel status to obtain synchronized key feature subsets; based on a preset clustering algorithm and spline interpolation strategy, performing a data cleaning operation on the synchronized key feature subsets to generate reconstructed data corresponding to the multiple time series data and the visible light images of photovoltaic panel status.
[0052] In the actual implementation process, the specific process of performing the data reconstruction operation in the embodiment of the present application is as follows:
[0053] 1. Feature extraction
[0054] During the feature extraction process, the embodiments of the present application can filter out a subset of key features from the overall data set based on the correlation, distance measurement and consistency between the data.
[0055] Specifically, the embodiment of the present application takes into account the characteristics of photovoltaic power generation, and adopts the Pearson Correlation Coefficient (PCC) to evaluate the linear relationship between meteorological conditions, environmental factors and power generation, and screens out significant factors that are positively or negatively correlated with power generation. Among them, PCC is mainly used to measure the linear correlation between two variables X and Y, and its definition is shown in the following formula:
[0056]
[0057] Where cov(X,Y) is the covariance of X and Y; σX and σY are the deviations of X and Y respectively.
[0058] 2. Data Synchronization
[0059] Since the sampling intervals of numerical data and images are inconsistent, in order to achieve timestamp alignment of the two types of data, the embodiment of the present application performs data synchronization operations through a data timestamp alignment strategy to obtain a synchronized key feature subset.
[0060] Specifically, in the embodiment of the present application, the time interval for collecting numerical data can be set to 1 minute, and the time interval for collecting image data can be set to 5 minutes; assuming that N i is the i-th data point of the numerical data, I j is the jth data point of the image data, then the new data point of the numerical data at the time scale matching the image data is:
[0061]
[0062] Among them, N 5j+k is the five consecutive observations of numerical data (from the jth time point to the j+4th time point); N j ' is the resampled data.
[0063] 3. Data cleaning
[0064] Furthermore, the embodiments of the present application may use a density-based clustering algorithm to identify noise points (i.e., outliers) of the synchronization key feature subset, such as Figure 4 As shown, it is removed from the synchronous key feature subset, and the cubic spline interpolation method is applied to the cleaned data to estimate and fill the removed data points in a smooth manner, thereby obtaining a complete data set after interpolation processing, that is, reconstructed data.
[0065] In step S103, the reconstructed data is input into a pre-trained photovoltaic power generation prediction model to obtain photovoltaic power generation prediction results of the target distributed photovoltaic power station at different time scales.
[0066] After obtaining the reconstructed data, the embodiments of the present application can further input these reconstructed data into a photovoltaic power generation prediction model based on image-data multimodal fusion, so as to realize real-time prediction of photovoltaic power generation power at different time scales by setting relevant parameters of the photovoltaic power generation prediction model and changing the prediction time scale according to the specific characteristics of the distributed photovoltaic power station.
[0067] Optionally, in one embodiment of the present application, before inputting the reconstructed data into a pre-trained photovoltaic power generation prediction model, it also includes: determining the embedding method of the target distributed photovoltaic power station at different time scales, so as to construct a time coding layer according to the embedding method; constructing an image coding layer based on the preset Stem layer, Stage layer, CWT layer and Transition layer, and in combination with the preset Batch-Norm layer, the preset Linear layer and the preset convolutional attention module; establishing a learnable cross-feature fusion layer according to the preset cross-attention mechanism and feature fusion strategy; establishing an encoder-decoder through the preset multi-head self-attention mechanism, feedforward network and normalization layer; and constructing a photovoltaic power generation prediction model according to the time coding layer, image coding layer, learnable cross-feature fusion layer and encoder-decoder.
[0068] Before predicting photovoltaic power generation through the photovoltaic power generation prediction model, the present application also needs to construct a specific network model suitable for photovoltaic power generation prediction scenarios through structures such as a time coding layer, an image coding layer, a learnable cross-feature fusion layer, and an encoder-decoder, i.e., a photovoltaic power generation prediction model, such as Figure 5 As shown, the specific construction process of the time coding layer, image coding layer, learnable cross feature fusion layer and encoder-decoder structures is as follows:
[0069] 1. Temporal Embedding Layer
[0070] Since photovoltaic power generation has obvious regularity with sunrise and sunset and seasonal changes, effective use of timestamps corresponding to different power generation times is important for understanding and predicting time series data.
[0071] Therefore, the embodiments of the present application embed different time dimensions such as years, months, days, hours and minutes, so that the photovoltaic power generation prediction model can comprehensively consider information of multiple time scales. Each minute value is converted into a vector of fixed dimension, which can capture the patterns and information related to a specific minute, and can capture more fine-grained time patterns. The photovoltaic power generation prediction model can learn and utilize these fine-grained time information more effectively.
[0072] Assuming that the meteorological and power generation data sets (M i , P i ) can be divided into a data matrix (x) and the corresponding time stamps (x mark ), the specific mathematical expression of time embedding is:
[0073]
[0074] Among them, E i Represents the embedding of i∈year, month, day, hour and minute.
[0075] 2. Image Embedding Layer
[0076] Figure 6 This is a schematic diagram of the Backbone network structure. Figure 6 Demonstrates image embedding layer feature extraction Backbone
[0077] The network structure mainly consists of the Stem layer, Stage layer, CWT layer and Transition layer.
[0078] It consists of four parts: Batch-Norm layer, Linear layer and Convolutional Block Attention Module (CBAM) layer.
[0079] Among them, in the Stem layer, the embodiment of the present application can use a 3x3 convolution layer (Conv) and a 3x3 depth-separable convolution (3x3 DW Conv) to capture low-level feature information, and downsample through a 1×1 convolution and another 3×3 DW convolution layer, so that more underlying details can be obtained at the beginning of model processing, so that the input image information size can be reduced and the depth can be increased through a series of vector operations; the Stage layer can gradually extract the local block features of the image and generate a representation graph for global feature extraction; the CWT layer extracts context information, weights and enhances the features, so that the network can better understand the semantics and structural relationships of the image; the Transition layer adjusts the number of channels and resolution to balance the complexity and computational efficiency of the network, and connects the local block representation learning at different stages;
[0080] In addition, the photovoltaic image data can be input into the Batch-Norm layer and the Linear layer as the input of the network after the operation of the above modules to obtain the feature information vector of the image. After that, the embodiment of the present application can further refine and strengthen the representation of important features through the CBAM layer, so as to be better used for subsequent prediction tasks.
[0081] (3) Learnable cross-feature fusion layer
[0082] Time series data (M i , P i ) and image data (I i ) are processed through the time and image embedding layers respectively to be converted into feature vectors E dataset and E img .
[0083] The embodiments of the present application can be implemented through a learnable weighted cross-attention fusion strategy, such as Figure 7As shown in the figure, the correlation between the two modalities is fully exploited in the encoder stage; the input vector is split into two vectors and respectively used in the attention layer; then the query Q values of the two attentions are exchanged for cross-learning, and the output feature vectors are fused through learnable weights for dimensionality reduction to retain the relationship information.
[0084] 4. Encoding-Decoding Structure
[0085] After the learnable cross-feature fusion layer, before the input data is passed to the encoder and decoder, the embodiment of the present application can increase the position information of each element in the sequence by positional encoding (PE) such as trigonometric function encoding. The mathematical expression of trigonometric function encoding is:
[0086]
[0087] Among them, pos represents the position; i represents the dimension.
[0088] The encoder consists of a multi-head self-attention mechanism, a feedforward network and an addition & normalization layer (Add&Norm); similarly, the decoder layer also consists of a multi-head self-attention mechanism, a feedforward network and an addition & normalization layer; after the encoder output, the embodiment of the present application can complete the prediction task through a linear layer and map it to the photovoltaic power generation power.
[0089] Therefore, the embodiments of the present application construct a photovoltaic power prediction model through a time coding layer, an image coding layer, a learnable cross-feature fusion layer and a codec, thereby further providing reliable technical and theoretical support for the accurate prediction of photovoltaic power.
[0090] Optionally, in one embodiment of the present application, the reconstructed data is input into a pre-trained photovoltaic power prediction model to obtain photovoltaic power prediction results of the target distributed photovoltaic power station at different time scales, including: extracting sequence features of the reconstructed data corresponding to multiple time series data through a time coding layer; extracting spatial features of the reconstructed data corresponding to the visible light image of the photovoltaic panel state through an image coding layer; using a learnable cross-feature fusion layer to fuse the sequence features and the spatial features to generate fused features; decoding and linearly converting the fused features to obtain photovoltaic power prediction results.
[0091] It should be noted that after data reconstruction and establishment of a photovoltaic power prediction model based on image-data multimodal fusion, the embodiment of the present application can first use the time series data (such as historical meteorological environment, power generation) and image data (such as visible light images of photovoltaic panel status) in the reconstructed data as the input of the photovoltaic power prediction model, so as to input it into the photovoltaic power prediction model; secondly, the embodiment of the present application can respectively process the time series data and the image data through the time embedding layer and the image embedding layer to extract the sequence features and spatial features; thirdly, the embodiment of the present application can perform feature fusion of the sequence features and the spatial features through the learnable cross-feature fusion layer to generate fusion features; thereafter, the fusion features of the time series data and the image data can be input into the encoder-decoder, and the output result of the encoder-decoder is converted through a linear layer to obtain the final photovoltaic power prediction result.
[0092] Therefore, the embodiments of the present application fully utilize the complementarity between different data sources through the actually collected photovoltaic power station images and environmental and electrical timing data to predict the output power of the photovoltaic power station at different time scales, thereby greatly improving the accuracy of the model prediction.
[0093] According to the photovoltaic power prediction method proposed in the embodiment of the present application, multiple time series data and visible light images of photovoltaic panel status of the target distributed photovoltaic power station are collected; data reconstruction operations are performed on the multiple time series data and the visible light images of the photovoltaic panel status to obtain reconstructed data corresponding to the multiple time series data and the visible light images of the photovoltaic panel status; the reconstructed data is input into a pre-trained photovoltaic power prediction model to obtain the photovoltaic power prediction results of the target distributed photovoltaic power station at different time scales. The present application effectively improves the accuracy of the prediction model by predicting the output power of the photovoltaic power station at different time scales based on the actually collected photovoltaic power station images and environmental and electrical time series data.
[0094] Next, a photovoltaic power prediction device according to an embodiment of the present application is described with reference to the accompanying drawings.
[0095] Figure 8 It is a block diagram of a photovoltaic power prediction device according to an embodiment of the present application.
[0096] like Figure 8 As shown, the photovoltaic power prediction device 10 includes: a collection module 100 , a reconstruction module 200 and a prediction module 300 .
[0097] The acquisition module 100 is used to acquire various time series data and visible light images of the photovoltaic panel status of the target distributed photovoltaic power station.
[0098] The reconstruction module 200 is used to perform data reconstruction operations on a plurality of time series data and a visible light image of the photovoltaic panel status, so as to obtain reconstructed data corresponding to the plurality of time series data and the visible light image of the photovoltaic panel status.
[0099] The prediction module 300 is used to input the reconstructed data into a pre-trained photovoltaic power generation prediction model to obtain photovoltaic power generation prediction results of the target distributed photovoltaic power station at different time scales.
[0100] Optionally, in one embodiment of the present application, the acquisition module 100 includes: a first acquisition unit and a second acquisition unit.
[0101] Wherein, the first acquisition unit is used to control the edge end of the target distributed photovoltaic power station through a preset MQTT server to collect the visible light image of the photovoltaic panel status every preset collection period.
[0102] The second acquisition unit is used to receive a variety of time series data based on a preset cloud and a preset photovoltaic weather station.
[0103] Optionally, in one embodiment of the present application, the reconstruction module 200 includes: a building unit, an alignment unit and a cleaning unit.
[0104] Among them, the construction unit is used to calculate the Pearson correlation coefficient of multiple time series data and visible light images of photovoltaic panel states, and construct key feature subsets of multiple time series data and visible light images of photovoltaic panel states according to the Pearson correlation coefficient.
[0105] The alignment unit is used to perform time stamp alignment processing on key feature subsets of multiple time series data and photovoltaic panel status visible light images to obtain synchronized key feature subsets.
[0106] The cleaning unit is used to perform data cleaning operations on the synchronization key feature subset based on a preset clustering algorithm and spline interpolation strategy to generate reconstructed data corresponding to a variety of time series data and visible light images of photovoltaic panel states.
[0107] Optionally, in one embodiment of the present application, the photovoltaic power prediction device 10 of the embodiment of the present application further includes: a first establishment module, a second establishment module, a third establishment module, a fourth establishment module and a modeling module.
[0108] Among them, the first establishment module is used to determine the embedding method of the target distributed photovoltaic power station at different time scales before inputting the reconstructed data into the pre-trained photovoltaic power generation prediction model, so as to construct a time coding layer according to the embedding method.
[0109] The second building module is used to build an image encoding layer based on the preset Stem layer, Stage layer, CWT layer and Transition layer, and in combination with the preset Batch-Norm layer, the preset Linear layer and the preset convolutional attention module.
[0110] The third building module is used to establish a learnable cross-feature fusion layer based on the preset cross-attention mechanism and feature fusion strategy.
[0111] The fourth building module is used to establish an encoder-decoder through a preset multi-head self-attention mechanism, a feedforward network and a normalization layer.
[0112] The modeling module is used to build a photovoltaic power prediction model based on the time coding layer, the image coding layer, the learnable cross-feature fusion layer and the encoder-decoder.
[0113] Optionally, in one embodiment of the present application, the prediction module 300 includes: a first extraction unit, a second extraction unit, a fusion unit and a processing unit.
[0114] Among them, the first extraction unit is used to extract the sequence features of the reconstructed data corresponding to the various time series data through the time coding layer.
[0115] The second extraction unit is used to extract the spatial features of the reconstructed data corresponding to the visible light image of the photovoltaic panel state through the image coding layer.
[0116] The fusion unit is used to fuse the sequence features and the spatial features using a learnable cross-feature fusion layer to generate a fusion feature.
[0117] The processing unit is used to decode and linearly transform the fused features to obtain the photovoltaic power generation power prediction result.
[0118] It should be noted that the above explanation of the embodiment of the photovoltaic power generation prediction method is also applicable to the photovoltaic power generation prediction device of this embodiment, and will not be repeated here.
[0119] The photovoltaic power prediction device proposed in the embodiment of the present application includes an acquisition module for collecting a variety of time series data and visible light images of photovoltaic panel status of the target distributed photovoltaic power station; a reconstruction module for performing data reconstruction operations on the various time series data and visible light images of photovoltaic panel status to obtain reconstructed data corresponding to the various time series data and visible light images of photovoltaic panel status; and a prediction module for inputting the reconstructed data into a pre-trained photovoltaic power prediction model to obtain photovoltaic power prediction results of the target distributed photovoltaic power station at different time scales. The present application effectively improves the accuracy of the prediction model by predicting the output power of the photovoltaic power station at different time scales based on the actually collected photovoltaic power station images and environmental and electrical time series data.
[0120] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:
[0121] A memory 901 , a processor 902 , and a computer program stored in the memory 901 and executable on the processor 902 .
[0122] When the processor 902 executes the program, the photovoltaic power generation power prediction method provided in the above embodiment is implemented.
[0123] Furthermore, the electronic device further comprises:
[0124] The communication interface 903 is used for communication between the memory 901 and the processor 902 .
[0125] The memory 901 is used to store computer programs that can be executed on the processor 902 .
[0126] The memory 901 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0127] If the memory 901, the processor 902 and the communication interface 903 are implemented independently, the communication interface 903, the memory 901 and the processor 902 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0128] Optionally, in a specific implementation, if the memory 901, the processor 902 and the communication interface 903 are integrated on a chip, the memory 901, the processor 902 and the communication interface 903 can communicate with each other through an internal interface.
[0129] The processor 902 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0130] The embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the above photovoltaic power generation power prediction method when executed by a processor.
[0131] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0132] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0133] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0134] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.
[0135] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0136] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0137] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0138] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for predicting photovoltaic power generation, characterized in that: The following steps are involved: Collect various time series data and visible light images of photovoltaic panel status of the target distributed photovoltaic power station; Performing a data reconstruction operation on the multiple time series data and the visible light image of the photovoltaic panel status to obtain reconstructed data corresponding to the multiple time series data and the visible light image of the photovoltaic panel status; The reconstructed data is input into a pre-trained photovoltaic power generation prediction model to obtain photovoltaic power generation prediction results of the target distributed photovoltaic power station at different time scales.
2. The method according to claim 1, characterized in that: The multiple time series data and visible light images of photovoltaic panel status of the target distributed photovoltaic power station are collected, including: Controlling the edge end of the target distributed photovoltaic power station to collect the visible light image of the photovoltaic panel status every preset collection period through a preset MQTT server; Based on a preset cloud and a preset photovoltaic weather station, the multiple time series data are received.
3. The method according to claim 2, characterized in that The performing a data reconstruction operation on the multiple time series data and the photovoltaic panel status visible light image to obtain reconstructed data corresponding to the time series data and the photovoltaic panel status visible light image includes: Calculating the Pearson correlation coefficients of the multiple time series data and the visible light image of the photovoltaic panel status, and constructing a key feature subset of the multiple time series data and the visible light image of the photovoltaic panel status according to the Pearson correlation coefficient; Performing time stamp alignment processing on the multiple time series data and the key feature subsets of the photovoltaic panel status visible light image to obtain a synchronized key feature subset; Based on a preset clustering algorithm and spline interpolation strategy, a data cleaning operation is performed on the synchronization key feature subset to generate reconstructed data corresponding to the multiple time series data and the photovoltaic panel status visible light image.
4. The method according to claim 1, characterized in that: Before inputting the reconstructed data into a pre-trained photovoltaic power generation prediction model, the method further includes: Determining an embedding method of the target distributed photovoltaic power station at different time scales, so as to construct a time coding layer according to the embedding method; Based on the preset Stem layer, Stage layer, CWT layer and Transition layer, and combined with the preset Batch-Norm layer, preset Linear layer and preset convolutional attention module, the image encoding layer is constructed; Establish a learnable cross-feature fusion layer based on the preset cross-attention mechanism and feature fusion strategy; The encoder-decoder is established through the preset multi-head self-attention mechanism, feedforward network and normalization layer; A photovoltaic power generation prediction model is constructed according to the time coding layer, the image coding layer, the learnable cross-feature fusion layer and the encoder-decoder.
5. The method according to claim 4, characterized in that The step of inputting the reconstructed data into a pre-trained photovoltaic power generation prediction model to obtain photovoltaic power generation prediction results of the target distributed photovoltaic power station at different time scales includes: Extracting sequence features of reconstructed data corresponding to the multiple time series data through the time coding layer; Extracting spatial features of reconstructed data corresponding to the visible light image of the photovoltaic panel state through the image coding layer; Using the learnable cross-feature fusion layer to perform feature fusion on the sequence feature and the spatial feature to generate a fusion feature; The fused features are decoded and linearly converted to obtain the photovoltaic power prediction result.
6. A photovoltaic power generation prediction device, characterized in that: include: An acquisition module is used to collect various time series data and visible light images of the photovoltaic panel status of the target distributed photovoltaic power station; A reconstruction module, used for performing a data reconstruction operation on the multiple time series data and the visible light image of the photovoltaic panel status to obtain reconstructed data corresponding to the multiple time series data and the visible light image of the photovoltaic panel status; The prediction module is used to input the reconstructed data into a pre-trained photovoltaic power generation prediction model to obtain the photovoltaic power generation prediction results of the target distributed photovoltaic power station at different time scales.
7. The device according to claim 6, characterized in that The acquisition module comprises: A first acquisition unit is used to control the edge end of the target distributed photovoltaic power station to collect the visible light image of the photovoltaic panel status every preset collection period through a preset MQTT server; The second acquisition unit is used to receive the multiple time series data based on a preset cloud and a preset photovoltaic weather station.
8. The device according to claim 7, characterized in that The reconstruction module includes: A construction unit, configured to calculate a Pearson correlation coefficient between the multiple time series data and the visible light image of the photovoltaic panel status, and to construct a key feature subset of the multiple time series data and the visible light image of the photovoltaic panel status according to the Pearson correlation coefficient; An alignment unit, configured to perform time stamp alignment processing on the multiple time series data and the key feature subset of the photovoltaic panel status visible light image to obtain a synchronized key feature subset; A cleaning unit is used to perform a data cleaning operation on the synchronization key feature subset based on a preset clustering algorithm and a spline interpolation strategy to generate reconstructed data corresponding to the multiple time series data and the photovoltaic panel status visible light image.
9. The device according to claim 6, characterized in that Also includes: A first establishment module is used to determine the embedding mode of the target distributed photovoltaic power station at different time scales before inputting the reconstructed data into a pre-trained photovoltaic power generation prediction model, so as to construct a time coding layer according to the embedding mode; The second building module is used to build an image encoding layer based on a preset Stem layer, a Stage layer, a CWT layer, and a Transition layer, and in combination with a preset Batch-Norm layer, a preset Linear layer, and a preset convolutional attention module; The third building module is used to build a learnable cross-feature fusion layer according to the preset cross-attention mechanism and feature fusion strategy; The fourth building module is used to build an encoder-decoder through a preset multi-head self-attention mechanism, a feedforward network and a normalization layer; A modeling module is used to construct a photovoltaic power generation prediction model based on the time coding layer, the image coding layer, the learnable cross-feature fusion layer and the encoder-decoder.
10. The device according to claim 9, characterized in that The prediction module comprises: A first extraction unit, configured to extract sequence features of reconstructed data corresponding to the multiple time series data through the time coding layer; A second extraction unit, configured to extract spatial features of reconstructed data corresponding to the photovoltaic panel state visible light image through the image coding layer; A fusion unit, used for performing feature fusion on the sequence feature and the spatial feature by using the learnable cross feature fusion layer to generate a fusion feature; The processing unit is used to decode and linearly transform the fused features to obtain the photovoltaic power generation power prediction result.
11. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the photovoltaic power prediction method according to any one of claims 1 to 5.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the photovoltaic power prediction method as described in any one of claims 1 to 5.
Citation Information
Cited By
Intelligent monitoring system and method for realizing dynamic performance adjustment for distributed photovoltaic network
CN119727596A
An intelligent monitoring system and method for implementing dynamic performance adjustment for a distributed photovoltaic network
CN119727596B
Ultra-short-term photovoltaic power prediction method and system based on image derived graph structure
CN120411707A
Photovoltaic intelligent monitoring and management method and system based on Internet of Things
CN122312562A
