Distributed photovoltaic cluster ultra-short-term power prediction method

Through the dual clustering model and codec model, combined with dynamic time regularization and fuzzy C-mean clustering, the problem of meteorological conditions variability in photovoltaic power prediction is solved, and the photovoltaic power prediction with high accuracy and efficient calculation is achieved. It is suitable for Complex time series data.

CN118966451APending Publication Date: 2024-11-15SHANDONG JIANZHU UNIV +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411071775.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

When faced with meteorological conditions and variability in light intensity, existing photovoltaic power prediction methods are difficult to achieve high accuracy and efficient calculations, resulting in inaccurate prediction results, long training time and easy to cause data waste.

Method used

The dual clustering model is used in combination with the codec model, and similar meteorological features and regional clustering clusters are obtained through dynamic time regularization and fuzzy C-mean clustering methods, and the improved time convolution network and bidirectional long and short-term memory network are used for prediction.

Benefits of technology

It improves the accuracy and timeliness of photovoltaic power prediction, reduces the negative impact on the stable operation of the power system, enhances the adaptability and computing efficiency of the model, and is suitable for the processing of complex and nonlinear time series data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118966451A_ABST
    Figure CN118966451A_ABST
Patent Text Reader

Abstract

The invention discloses a distributed photovoltaic cluster ultra-short-term power prediction method. The method comprises the following steps: acquiring to-be-detected photovoltaic power generation original data; the to-be-detected photovoltaic power generation original data is input into a double-clustering model, clustering clusters are obtained, the double-clustering model carries out first-layer clustering and second-layer clustering, similar meteorological feature clustering clusters are obtained through the first-layer clustering, current-day region clustering clusters are obtained through the second-layer clustering, and the current-day region clustering clusters are obtained through the second-layer clustering; the clustering cluster is obtained by performing similar matching on the similar meteorological feature clustering cluster and the current day region clustering cluster; the clustering clusters are input into a codec model, a prediction result is obtained, the codec model is trained by a training set, and the training set is cluster data obtained after photovoltaic power generation historical data are subjected to two-layer clustering. According to the method, the prediction accuracy and timeliness can be improved, and the possible negative influence of distributed photovoltaic on the stable operation of the power system is reduced to the maximum extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of photovoltaic power prediction, and in particular relates to an ultra-short-term power prediction method for a distributed photovoltaic cluster. Background Art

[0002] In modern power systems, the large-scale access of distributed photovoltaic power sources has enhanced the environmental friendliness and flexibility of the power grid, but due to the intermittent and unpredictable nature of photovoltaic power generation, it has brought challenges to the stable operation of the power system. In order to reduce the impact of this uncertainty and maintain the safe operation of the power grid, it is particularly important to accurately predict the changes in photovoltaic power generation.

[0003] At present, various ultra-short-term photovoltaic power prediction methods have been proposed and applied, such as prediction methods based on satellite cloud images and long short-term memory (LSTM) network models and short-term prediction methods with a time resolution of 15 minutes. These technologies usually use a variety of input data such as historical data, meteorological information, and spatial location, combined with machine learning and deep learning technologies to improve the accuracy of predictions.

[0004] However, due to the variability of meteorological conditions, light intensity, cloud coverage and other factors, the temporal and spatial distribution of photovoltaic power is extremely complex, which requires the prediction model to have high adaptability and computational efficiency.

[0005] There are endless weather conditions in a year, which will affect the regular prediction results. If all the data are trained together, it is easy to cause data waste, long training time, and insufficient accuracy. Therefore, it is necessary to cluster the weather types. Summary of the invention

[0006] In order to solve the above technical problems, the present invention proposes a distributed photovoltaic cluster ultra-short-term power prediction method, which can improve the accuracy and timeliness of the prediction, minimize the negative impact of distributed photovoltaics on the stable operation of the power system, and thus better promote the utilization of renewable energy and the reliable operation of the power grid.

[0007] To achieve the above object, the present invention provides a distributed photovoltaic cluster ultra-short-term power prediction method, comprising:

[0008] Obtain the original data of photovoltaic power generation to be tested;

[0009] Inputting the photovoltaic power generation raw data to be tested into a dual clustering model to obtain clustering clusters, wherein the dual clustering model performs first-layer clustering and second-layer clustering respectively, obtains similar meteorological feature clustering clusters through the first-layer clustering, obtains regional clustering clusters of the day through the second-layer clustering, and the clustering clusters are obtained by similar matching between the similar meteorological feature clustering clusters and the regional clustering clusters of the day;

[0010] The cluster cluster is input into a codec model to obtain a prediction result, wherein the codec model is trained by a training set, and the training set is cluster data after photovoltaic power generation historical data is clustered by two layers.

[0011] Optionally, the method further comprises: preprocessing the photovoltaic power generation historical data:

[0012] Performing data filling and data outlier deletion processing on the photovoltaic power generation historical data to obtain preliminary data;

[0013] Features and target variables are separated from the preliminary data, the features are max-min normalized, and the target variables are normalized.

[0014] Optionally, the characteristics include: global horizontal irradiance, diffuse irradiance, relative humidity, cloud cover and cloud coverage.

[0015] Optionally, obtaining clusters of similar meteorological features through the first-layer clustering includes:

[0016] The distance between time series in the raw photovoltaic power generation data to be measured is calculated using a dynamic time warping function to obtain a distance matrix;

[0017] The distance matrix is ​​divided by using the fuzzy C-means clustering method to obtain clusters of similar meteorological characteristics.

[0018] Optionally, the method for calculating the distance between time series in the raw photovoltaic power generation data to be measured by using the dynamic time warping function is:

[0019]

[0020] Where Σ is the covariance matrix of the data, x i and j are points in two time series, X nwp and Y nwp They represent two time series respectively, and T is the length of the time series.

[0021] Optionally, using the fuzzy C-means clustering method to divide the distance matrix to obtain clusters of similar meteorological characteristics includes:

[0022] S1. Determine the number of clusters;

[0023] S2, randomly initializing the first degree of membership of each data point in the distance matrix to each cluster;

[0024] S3. Calculating a first cluster center of each cluster based on the first membership degree;

[0025] S4. Based on the first cluster center, update the first membership degree to obtain a second membership degree;

[0026] S5. Calculate a second cluster center based on the second membership degree;

[0027] S6. Repeat S4-S5 until the change of the cluster center drops below a preset threshold, and obtains clusters with similar meteorological characteristics.

[0028] Optionally, the second-layer clustering is used to obtain the regional clustering clusters of the day, including:

[0029] The cloud cover coefficient and other main meteorological factors in the meteorological data are used to perform regional clustering on the data of the day to obtain the regional clustering clusters of the day.

[0030] Optionally, the decoder model includes: an encoder and a decoder;

[0031] The encoder adopts an improved temporal convolutional network;

[0032] The decoder adopts a bidirectional long short-term memory network.

[0033] Optionally, the improved temporal convolutional network is: introducing a spatial convolutional layer into the temporal convolutional network.

[0034] Compared with the prior art, the present invention has the following advantages and technical effects:

[0035] 1. This invention proposes a new time series prediction method by combining the similarity measure of dynamic time warping (DTWMD) with the fuzzy C-means (FCM) clustering algorithm, and an improved codec model composed of a temporal convolutional network (CTCN) and a bidirectional long short-term memory network (BiLSTM). In this method, the data set is first preprocessed to obtain experimental data, and a sliding window is used to obtain the data so that it is flattened into a data vector of a time series. The DTW distance calculation function is used to quantitatively measure the dynamic similarity between each two time series, thereby revealing the inherent pattern of the data. The distance matrix of all the data is obtained.

[0036] 2. In order to divide the data more finely, the present invention applies the FCM algorithm for cluster analysis. The fuzzy logic of the FCM algorithm allows each data point to have a complex membership between different clusters, which is more flexible than the traditional hard classification clustering algorithm.

[0037] 3. The present invention performs normalization preprocessing on the time series feature variables and target variables, including minimum and maximum normalization and standard normalization, to optimize the efficiency and accuracy of model learning. Subsequently, the encoder-decoder model is used to predict the data within each cluster. This model structure can effectively learn the long-term dependencies and contextual information of time series data, and simultaneously captures forward and backward time information through a bidirectional architecture, providing a powerful capability for accurate prediction.

[0038] 4. The time series prediction technology disclosed in the present invention combines the advantages of similarity measurement, fuzzy clustering and deep learning prediction, and can not only perform effective time series clustering analysis, but also perform accurate time series prediction within each cluster. It has significant technical effects and high practical value, and is very suitable for use in photovoltaic power prediction, photovoltaic power generation power prediction and other fields that require processing of complex and nonlinear time series data. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0040] Figure 1 This is a flow chart of a distributed photovoltaic cluster ultra-short-term power prediction method according to an embodiment of the present invention;

[0041] Figure 2 Schematic diagram of a dilated convolutional network according to an embodiment of the present invention;

[0042] Figure 3 A schematic diagram of a common TCN network according to an embodiment of the present invention;

[0043] Figure 4 A schematic diagram of a temporal and spatial feature extraction structure according to an embodiment of the present invention;

[0044] Figure 5 Schematic diagram of a decoder BiLSTM network of an embodiment of the present invention. DETAILED DESCRIPTION

[0045] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0046] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0047] The present invention proposes a distributed photovoltaic cluster ultra-short-term power prediction method. Figure 1 As shown, the specific steps include:

[0048] Obtain the original data of photovoltaic power generation to be tested;

[0049] Inputting the photovoltaic power generation raw data to be tested into a dual clustering model to obtain clustering clusters, wherein the dual clustering model performs first-layer clustering and second-layer clustering respectively, obtains similar meteorological feature clustering clusters through the first-layer clustering, obtains regional clustering clusters of the day through the second-layer clustering, and the clustering clusters are obtained by similar matching between the similar meteorological feature clustering clusters and the regional clustering clusters of the day;

[0050] The cluster cluster is input into a codec model to obtain a prediction result, wherein the codec model is trained by a training set, and the training set is cluster data after photovoltaic power generation historical data is clustered by two layers.

[0051] Specifically, the processed data is clustered using a double clustering model. The first level of clustering is to obtain the distance matrix of the characteristic variable data in the historical data and cluster the distance matrix. Several different clusters are obtained. This is called historical similar meteorological feature clustering. The second level is to obtain the data set of the day, and use the cloudiness coefficient and other major meteorological factors to perform regional clustering to obtain several different clusters. The clusters obtained on the day are used for similar matching with the clusters obtained in the first level of clustering.

[0052] Furthermore, the prediction method further includes: preprocessing the photovoltaic power generation historical data:

[0053] Performing data filling and data outlier deletion processing on the photovoltaic power generation historical data to obtain preliminary data;

[0054] Features and target variables are separated from the preliminary data, the features are max-min normalized, and the target variables are normalized.

[0055] Specifically, the historical data of photovoltaic power generation to be tested is obtained through the data, and the original data is preliminarily processed by data filling and data outlier removal to obtain the test data. Then the data is processed by normalization. The features and target variables (power) are separated from the data frame, the features are normalized to the maximum and minimum, and the target variables are normalized.

[0056] Further, the characteristics include: global horizontal irradiance, diffuse irradiance, relative humidity, cloudiness and cloud cover.

[0057] Furthermore, obtaining clusters of similar meteorological features through the first layer of clustering includes:

[0058] The dynamic time warping function is used to calculate the distance between the time series in the original photovoltaic power generation data to be tested, and the distance matrix is ​​obtained;

[0059] The distance matrix is ​​divided by fuzzy C-means clustering method to obtain clusters with similar meteorological characteristics.

[0060] Specifically, a dynamic time warping (DTWMD) function is defined to calculate the distance between two time series, and a distance matrix is ​​constructed to store the distances between all features;

[0061] Taking the DTWMD distance matrix as input, the fuzzy C-means (FCM) clustering algorithm is used to divide the data into several clusters, and the fuzzy partition coefficient (FPC) is calculated to evaluate the quality of the clustering effect;

[0062] DTWMD distance is a method for measuring the similarity between two time series, especially when the time series may have some asynchrony on the time axis (i.e. rate changes or time offsets). DTWMD can find the best match between two time series, even if they are stretched or scaled in time. The basic principle of DTWMD is to allow the time series to stretch or compress certain points in one or both series to find the best alignment between the two series. The DTWMD distance calculation process is as follows:

[0063] 1. For two given time series X = {x1, x2, ..., x n} and Y={y1,y2,...,y m}, where X and Y can have different lengths, creating an n×m matrix where each cell (i,j) represents the length of x i and i The distance between this pair of elements.

[0064] 2. Calculate the cost of each cell in the matrix. The present invention improves the common DTW distance and names it DTWMD distance, using Mahalanobis distance:

[0065]

[0066] where Σ is the covariance matrix of the data. i and i are points in two time series. nwp and Y nwp Represent two time series respectively. T is the length of the time series, indicating the total number of time points contained in the time series.

[0067] 3. Through the matrix, find a "path" that minimizes the alignment cost of the entire sequence. The path must start from the upper left corner (1, 1) and end at the lower right corner (n, m), and only move to the right, down, or right-to-bottom; that is, for D(i, j) is defined as the element (i, j) in the cumulative distance matrix, which can be recursively expressed as follows:

[0068] D(i,j)=d(i,j)+min{D(i-1,j),D(i,j-1),D(i-1,j-1)} (2)

[0069] 4. The lower right corner D(n,m) of the cumulative distance matrix D contains the minimum distance for the overall alignment of sequences X and Y.

[0070] Furthermore, the distance matrix is ​​divided using the fuzzy C-means clustering method to obtain clusters with similar meteorological characteristics, including:

[0071] S1. Determine the number of clusters C (a predefined constant), c>1;

[0072] S2, randomly initialize the first membership degree of each data point in the distance matrix to each cluster, 隶 The range of membership is between 0 and 1, and for each data point, the sum of all memberships needs to be equal to 1;

[0073] S3, based on the first membership degree, calculating the first cluster center of each cluster, where the cluster center is the result of weighted average of all data points according to their membership degrees;

[0074] S4. Based on the first cluster center, update the first membership degree and obtain the second membership degree. For each data point x k And each cluster center v i , update the membership u according to the current cluster center ik :

[0075]

[0076] Among them, x k Represents data point x k , v i represents the cluster center of the i-th class, u ik Represents data point x k The degree of membership to the i-th class, ||x k -v i || is the data point x k and cluster center v i The distance between them, C represents the total number of clusters, It means to sum all the classes. This item is used to calculate the relative distance and adjust the membership of each data point to each category. m is the fuzzy parameter, which determines the fuzziness of the clustering. It is usually greater than 1, and the commonly used value is 2;

[0077] S5. Based on the second membership degree, calculate the second cluster center:

[0078]

[0079] Where N is the total number of data points; v i represents the cluster center of the i-th class, Represents data point x k The mth power of the degree of membership to the i-th class, Indicates the sum of all data points.

[0080] S6. Repeat S4-S5 until the change of the cluster center drops below a preset threshold or reaches a maximum number of iterations, and obtains clusters of similar meteorological features.

[0081] The goal of FCM is to minimize the following cost function:

[0082]

[0083] In clustering, solve this optimization problem to find the best membership u ik and cluster center v i .

[0084] Among them, the fuzzy partition coefficient (FPC) used to evaluate the clustering effect, the fuzzy partition coefficient (Fuzzy Partition Coefficient, referred to as FPC), also known as the fuzzy performance index, is a method used to evaluate the quality of fuzzy clustering results. FPC is designed to measure the degree of fuzzy distribution of the membership matrix output by the fuzzy C-means (FCM) clustering algorithm. The higher the value of FPC, the better the clustering result, that is, the clearer the membership of the data point in the cluster, and the smaller the uncertainty. The calculation formula of the fuzzy partition coefficient (FPC) is as follows:

[0085]

[0086] Where: N is the total number of data points, C is the number of clusters, u ik is the degree of membership of data point k to cluster i.

[0087] The value of FPC ranges from 0 to 1, and the closer the value is to 1, the better the performance of the clustering algorithm. If FPC is close to 1, most of the data points have a high membership in one cluster and a low membership in other clusters. This means that the cluster boundaries are relatively clear. On the contrary, if FPC is close to 0, it means that the clustering results are quite fuzzy, and each data point has the same membership in almost all clusters. In this case, the effectiveness of clustering is low.

[0088] Specifically, fuzzy C-means (FCM) clustering is a soft clustering method that allows a data point to be assigned to multiple clusters, and each cluster has a membership degree to indicate the degree to which the data point belongs to the cluster. Unlike traditional hard clustering algorithms (such as K-means clustering), FCM provides more flexibility because FCM does not force each data point to belong to only one cluster.

[0089] Furthermore, the second layer of clustering is used to obtain the regional clustering clusters of the day including:

[0090] The cloud cover coefficient and other main meteorological factors in the meteorological data are used to perform regional clustering on the data of the day to obtain the regional clustering clusters of the day. Among them, other main meteorological factors include: temperature, solar radiation intensity and rainfall, etc.

[0091] Further, the decoder model includes: an encoder and a decoder;

[0092] The encoder uses an improved temporal convolutional network;

[0093] The decoder uses a bidirectional long short-term memory network.

[0094] Furthermore, the improved temporal convolutional network is: introducing a spatial convolutional layer into the temporal convolutional network.

[0095] Specifically, an encoder-decoder network model was constructed for prediction, in which the CTCN neural network model was used as the encoder and the BiLSTM neural network model was used as the decoder.

[0096] like Figure 3As shown, the TCN model is mainly used to process one-dimensional time series data, so its design pays more attention to feature extraction and modeling in the time dimension, while the feature extraction capability of spatial features is relatively weak. In order to further explore the association between different photovoltaic data in the photovoltaic cluster, it is necessary to enhance the ability of the temporal convolutional network in spatial feature extraction. To this end, the present invention converts the original one-dimensional time series data into a two-dimensional data representation, in which each column represents a time series (i.e., photovoltaic power or meteorological data) and each row represents a sampling time point. Then, the present invention applies a temporal convolutional network to extract the temporal features of each column of data. At the same time, in order to fully consider the spatial correlation between photovoltaics, the present invention introduces a spatial convolution layer between columns to extract the spatial features between different photovoltaic data. Therefore, the present invention names this improved model CTCN.

[0097] In order to meet the requirements of model input data, the present invention adopts a sliding window method to construct input and output data, so as to use the previous time steps to predict the next one or several time steps and effectively improve data utilization. That is, for the merged data, the sliding window method uses the meteorological data and historical power of the previous several time steps as input variables, and the photovoltaic cluster power of the next time step as output.

[0098] like Figure 2 As shown, the temporal feature extraction capability of the temporal convolutional network is mainly reflected in the causality during the dilated causal convolution and the complete consideration of information within a sufficiently large field of view. After merging the one-dimensional time series into two-dimensional data, the dilated causal convolution actually performs a convolution operation in the form of a sliding window on each column of the two-dimensional data. The size of the convolution kernel can be expressed as (n, 1) (where n represents a convolution operation for every n elements in the column direction), which does not involve operations between different columns in the two-dimensional data. In order to ensure the extraction of spatial features, the present invention should use a convolution kernel size of (n, m), where m should be greater than or equal to 2, so that convolution operations can be performed between different columns, thereby considering the spatial characteristics between different features.

[0099] Normally, the length and width of the convolution kernel should be equal (ie, n = m), but considering that the number of photovoltaic related data intercepted by the sliding window is much larger in time scale than in space scale, that is, the number of rows is greater than the number of columns. Therefore, according to the dimensional size of the data in different directions, the present invention can select appropriate convolution kernel sizes respectively.

[0100] In addition, it is considered that the causal relationship in the convolution process must be guaranteed when extracting time features, while the time causal relationship does not need to be considered when extracting spatial features. Therefore, for time features and spatial features, the present invention can select different convolution structures for extraction. Asymmetric convolution refers to decomposing the standard convolution kernel of size (d*d) into (d*1) convolution kernel and (1*d) convolution kernel series. This decomposition method can effectively reduce the number of parameters in the convolution operation while ensuring the representation ability and performance of the model. More importantly, different convolution structures can be used to extract time and space features respectively according to the differences in the time and space dimensions of the data. According to asymmetric convolution, the convolution kernel of size (n,m) is decomposed into (n,1) and (1,m) series to extract time and space features respectively. The spatial convolution between different columns of two-dimensional data can be expressed by formula (7):

[0101]

[0102] in, is the result of convolution, is the temporal feature obtained by dilating the causal convolution, represents the weight of the convolution process, Indicates bias.

[0103] In the temporal convolutional network, after the dilated causal convolution, a convolutional layer is added between columns to extract spatial features. The schematic diagram of temporal and spatial feature extraction is shown in the figure. Figure 4 As shown in the figure. By dilating the causal convolution, we can capture the changing patterns of different photovoltaic data over time, helping the model to better understand the trends and periodicity in historical data. By using spatial convolution, we can consider factors such as the positional relationship between different photovoltaics and terrain, thereby more comprehensively analyzing the factors affecting power generation.

[0104] Among them, Figure 5 As shown in the figure, the decoder is a bidirectional long short-term memory network (Bidirectional Long Short Term Memory, BiLSTM), which is a special recurrent neural network (RNN) that can obtain contextual information of time series data from two directions.

[0105] BiLSTM combines two LSTM networks together, one processing the forward information of the time series (forward LSTM) and the other processing the reverse information of the time series (backward LSTM). The output at each time point is determined by the previous hidden state and the next hidden state.

[0106] The output of BiLSTM is usually the concatenation of the hidden states of the forward LSTM and the backward LSTM at the same time step t:

[0107]

[0108] in, and denote the hidden states of the forward and backward LSTM at time step t, respectively, and [·] denotes the concatenation operation.

[0109] By constructing a codec model to predict distributed photovoltaic power generation, the causal relationship between input features and output photovoltaic power is fully extracted, which improves the prediction of photovoltaic power generation.

[0110] The main contributions of the present invention are as follows:

[0111] 1) A new dual clustering method is proposed. The first layer of clustering is the historical similar weather feature clustering, and the data with similar meteorological feature data are clustered similarly. It can improve the prediction accuracy, associate weather and power generation output, dynamically learn and adapt, provide predictions under different weather conditions, and increase the robustness of the prediction model. The new DTW clustering adopted by the present invention is to improve the DTW clustering, and it is named DTWMD (Dynamic time regularization is based on the Mahalanobis distance). The clustering based on dynamic time warping (Dynamic Time Warping, DTW) using Mahalanobis distance has its unique advantages when processing meteorological data in photovoltaic data sets. The Mahalanobis distance takes into account the statistical properties of data features and can effectively measure the similarity between high-dimensional data points with the same mean and variance. Compared with the Euclidean distance, it can add the consideration of covariance in the feature space, so that the calculation of the distance not only considers the value of each feature, but also considers the correlation between features. This allows the Mahalanobis distance to more accurately reflect the true dissimilarity between data points when dealing with correlated meteorological features, such as temperature and humidity, which are often not independent indicators.

[0112] On the other hand, combined with the DTW algorithm, the Mahalanobis distance makes the clustering algorithm more flexible when processing time series data. DTW allows the time series to be aligned in the best way through elastic transformations. It can not only handle the problem of inconsistent time series lengths, but also effectively deal with small displacements of data points on the time axis. Therefore, when clustering meteorological data, this combined method can take into account the temporal dynamic characteristics of the data and the statistical relationship of multidimensional features. It is very effective in identifying similar meteorological patterns and can help analyze and predict the performance and energy output of photovoltaic systems.

[0113] The Mahalanobis distance also performs well in data standardization and outlier detection. The distance takes into account the overall distribution of the data set, so for meteorological variables of different ranges and units, it can provide a unified similarity measure in multidimensional space, thereby reducing the impact of scale differences in the clustering process, and can identify outliers that do not match the overall data set distribution, enhancing the robustness of clustering analysis.

[0114] 2) The second layer performs regional clustering on the data of the day, classifies the data by calculating the similarity between the cluster of the day and the historical cluster, and selects the data of representative power stations in the area of ​​the day for testing.

[0115] In terms of space, if only the cloud cover coefficient is used to predict distributed photovoltaic power, the impact of other important meteorological factors such as temperature, wind speed, humidity, etc. on power output may be ignored. In a vast area, a single meteorological factor cannot reflect the variability and complexity of regional weather. Combining the cloud cover coefficient with other major meteorological factors can solve the problem of predicting distributed photovoltaic power under different micro-meteorological conditions in a large area. By clustering regions and selecting representative power stations, the calculation process is not simplified at the expense of accuracy. Instead, the use of computing resources is optimized while ensuring the accuracy of the prediction, and the common problems and potential of distributed photovoltaic systems in the region are quickly discovered to provide support for industry planning and decision-making. This method not only enhances the efficiency and interpretability of data processing, but also enables the prediction results to support more efficient and accurate operation and management strategies by revealing the laws hidden behind complex data.

[0116] Combining this regionalized model or “proxy” approach with real-time meteorological monitoring and historical data can improve forecast accuracy and better understand and simulate the power output behavior of distributed PV systems over large regions.

[0117] For representative power stations, the present invention adopts the method of selecting the best of the two to ensure the best selection result. The first method is to apply the centroid method, and the first step is to use the Kmeans clustering algorithm to group the photovoltaic power stations according to the power generation mode.

[0118] Let (X = {x_1, x_2, ..., x_n}) be n The power generation data set of power stations, where x i is the power generation time series of the ith power station. The clustering algorithm divides X into K clusters S = {S1, S2, ..., S K}. The objective function of Kmeans clustering is: Then calculate the centroid of each cluster

[0119] Here S kis the number of power stations in the cluster k, and the distance μ between all power stations in the cluster and the centroid is selected k The smallest power station, using

[0120] here Represents the index of the power plant selected as the representative of cluster k.

[0121] Finally, the correlation between the predicted power generation of the representative power plant of each cluster and the actual power generation of all power plants in the cluster is calculated.

[0122] The second method is to use the improved support vector machine (SVM) to predict the performance of the power station and select the power station based on the prediction error. First, collect the relevant data of all power stations in the region (including historical power output, meteorological data, power station configuration, etc.). Build a power prediction model for each power station using the SVM algorithm. Use cross-validation and other techniques to select the optimal SVM model parameters to minimize the prediction error. For each power station, calculate the error between its actual output and the predicted output. Select the power station with the smallest prediction error as the landmark power station.

[0123] Then the quality of the Centroid Method and Support Vector Machine (SVM) in selecting landmark power stations is evaluated. The Centroid Method is usually a simple location-based method, which means that it selects power stations that are geographically central. SVM is a supervised learning method that can distinguish between positive and negative classes by finding the best boundary in the data. It mainly includes the following steps:

[0124] <1> Collect a dataset of power stations and label the actual landmark power stations (positive class) and non-landmark power stations (negative class).

[0125] <2> The same dataset is used to train the model using the centroid method and SVM. The prediction results are generated, which include the power stations predicted by the model as marked power stations (positive class) and non-marked power stations (negative class).

[0126] <3> Compute the elements of the confusion matrix:

[0127] True positive TP: The number of power stations that the model correctly predicts as the marker power station.

[0128] True negative examples TN: The number of power stations that the model correctly predicts as non-marked power stations.

[0129] False Positives FP: The number of non-signal power stations that the model incorrectly predicts as signal power stations.

[0130] False negatives FN: The number of landmark power stations that the model incorrectly predicts as non-landmark power stations.

[0131] <4> The following evaluation metrics are used:

[0132] Accuracy: The ratio of all correct predictions to the total predictions.

[0133]

[0134] Precision: The ratio of predicted positive samples to actual positive samples.

[0135]

[0136] Recall: The proportion of actual positive classes that are correctly predicted as positive.

[0137]

[0138] F1 Score: The harmonic average of precision and recall.

[0139]

[0140] <5> Use the above statistical indicators to compare the performance of the two methods. Run cross-validation or other model selection techniques to verify the robustness of the results. Through this evaluation method, you can quantitatively compare the performance of different methods in selecting landmark power stations and make a more reasonable choice based on this.

[0141] 3) The encoder-decoder model is used, where the CTCN model is used as the encoder and the BiLSTM model is used as the decoder. The CTCN model is an improvement on the TCN model. The CTCN model extracts spatial features while perfectly taking into account the extraction of time series features, which increases the practicality of TCN. The diagram is at the end of the article.

[0142] 4) The random forest algorithm is added to the error between the true value and the predicted value for error adjustment. The random forest algorithm has excellent generalization ability, can automatically select features, can handle large data sets and data with complex structures well, and can still obtain reliable prediction results even in the presence of data noise or missing values.

[0143] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for ultra-short-term power prediction of a distributed photovoltaic cluster, characterized in that: include: Obtain the original data of photovoltaic power generation to be tested; Inputting the raw photovoltaic power generation data to be measured into a dual clustering model to obtain clusters, wherein the dual clustering model performs first-layer clustering and second-layer clustering respectively, obtaining similar meteorological feature clusters through the first-layer clustering, and obtaining regional clusters of the day through the second-layer clustering, and the clusters are obtained by similar matching between the similar meteorological feature clusters and the regional clusters of the day; The cluster cluster is input into a codec model to obtain a prediction result, wherein the codec model is trained by a training set, and the training set is cluster data after photovoltaic power generation historical data undergoes two-layer clustering.

2. A distributed photovoltaic cluster ultra-short-term power prediction method according to claim 1, characterized in that: The method further includes: pre-processing the photovoltaic power generation historical data: Performing data filling and data outlier deletion processing on the photovoltaic power generation historical data to obtain preliminary data; Features and target variables are separated from the preliminary data, the features are max-min normalized, and the target variables are normalized.

3. The method for ultra-short-term power prediction of a distributed photovoltaic cluster according to claim 2, characterized in that: The characteristics include: global horizontal irradiance, diffuse irradiance, relative humidity, cloudiness and cloud cover.

4. The method for ultra-short-term power prediction of a distributed photovoltaic cluster according to claim 1, characterized in that: Obtaining clusters of similar meteorological characteristics through the first-level clustering includes: Calculating the distance between time series in the raw photovoltaic power generation data to be measured using a dynamic time warping function to obtain a distance matrix; The distance matrix is ​​divided by using the fuzzy C-means clustering method to obtain clusters with similar meteorological characteristics.

5. A distributed photovoltaic cluster ultra-short-term power prediction method according to claim 4, characterized in that: The method for calculating the distance between time series in the raw photovoltaic power generation data to be measured using the dynamic time warping function is: Where Σ is the covariance matrix of the data, x i and y j are points in two time series, X nwp and Y nwp Represent two time series respectively, and T is the length of the time series.

6. The method for ultra-short-term power prediction of a distributed photovoltaic cluster according to claim 4, characterized in that: The distance matrix is ​​divided by using the fuzzy C-means clustering method to obtain clusters with similar meteorological characteristics, including: S1. Determine the number of clusters; S2. Randomly initialize the first degree of membership of each data point in the distance matrix to each cluster; S3. Calculating a first cluster center of each cluster based on the first degree of membership; S4. Based on the first cluster center, update the first membership degree to obtain a second membership degree; S5. Calculating a second cluster center based on the second membership degree; S6. Repeat S4-S5 until the change of the cluster center drops below a preset threshold, and obtain clusters with similar meteorological characteristics.

7. The method for ultra-short-term power prediction of a distributed photovoltaic cluster according to claim 1, characterized in that: Obtaining the regional clusters of the day through the second-level clustering includes: The cloud cover coefficient and other main meteorological factors in the meteorological data are used to perform regional clustering on the data of the day to obtain the regional clustering clusters of the day.

8. The method for ultra-short-term power prediction of a distributed photovoltaic cluster according to claim 1, characterized in that: The decoder model includes: an encoder and a decoder; The encoder adopts an improved temporal convolutional network; The decoder adopts a bidirectional long short-term memory network.

9. The method for ultra-short-term power prediction of a distributed photovoltaic cluster according to claim 8, characterized in that: The improved temporal convolutional network is as follows: a spatial convolutional layer is introduced into the temporal convolutional network, wherein the spatial convolutional layer is used to extract spatial features.

Citation Information

Cited By

  • Multi-modal fusion photovoltaic power prediction method for all-sky imager data

    CN119807855A

  • Method for evaluating demand response potential of interruptible load

    CN119809404A

  • Short-term power load prediction method and system based on integrated model

    CN121211036A