Regional multi-pv output prediction method and device fusing clustering and multi-task learning

By employing fuzzy clustering and multi-task learning methods, photovoltaic clusters are divided into regions based on geographical environmental factors. Combined with convolutional long short-term memory networks, this approach solves the problem of low efficiency in predicting multi-photovoltaic output in existing technologies, achieving efficient and accurate prediction of multi-photovoltaic power output.

CN115759477BActive Publication Date: 2026-11-27STATE GRID HUNAN ELECTRIC POWER COMPANY LIMITED +2
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211587359.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-09
Publication Date
2026-11-27
Estimated Expiration
2042-12-09

AI Technical Summary

Technical Problem

Existing technologies are inefficient and prone to overfitting in predicting regional multi-PV output, failing to fully exploit the similarity in output characteristics among multiple PV systems, especially when predicting PV clusters.

Method used

A fuzzy clustering algorithm is used to divide regions based on geographical environmental factors. Training sets of the same region type are selected, and a photovoltaic prediction model is constructed by combining a convolutional long short-term memory network and a multi-task learning mechanism. Through the underlying shared multi-task learning mechanism and long short-term neural network, multiple photovoltaic predictions are achieved.

Benefits of technology

It improves the efficiency and accuracy of regional multi-photovoltaic output prediction, avoids model overfitting, and achieves fast and accurate multi-photovoltaic power output prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115759477B_ABST
    Figure CN115759477B_ABST
Patent Text Reader

Abstract

The application discloses a regional multi-photovoltaic output prediction method and device fusing clustering and multi-task learning, and the method steps comprise the following steps: S01, output data of a target photovoltaic cluster and corresponding meteorological information are acquired; S02, regional classification is performed on the target photovoltaic cluster based on a fuzzy clustering algorithm with geographical environmental factors as variables; S03, according to the regional classification result of step S02, a to-be-predicted set is selected from different types of regional multi-photovoltaics, and a training set is selected from the same regional type as the to-be-predicted set; S04, the training set selected is used to train a pre-constructed photovoltaic prediction model to realize regional multi-photovoltaic prediction, and the photovoltaic prediction model is constructed based on a convolution long short-term memory network and adopts a bottom-layer shared multi-task learning mechanism. The application has the advantages of simple implementation method, low cost, high prediction efficiency and precision, strong robustness and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of photovoltaic power generation system technology, and in particular to a method and apparatus for predicting regional multi-photovoltaic output using photovoltaic fusion clustering and multi-task learning. Background Technology

[0002] Photovoltaic (PV) power generation is highly unstable and random, easily affected by various unstable factors, such as meteorological factors and the characteristics of the PV panels themselves. For installed PV power plants, since the installation method of the solar panels is fixed, the PV power generation mainly depends on highly volatile external meteorological factors. Currently, the proportion of PV power generation in the power system is gradually increasing, thus its impact on the power system's supply and demand balance, safe and stable control, and operation is also growing. The addition of PV power generation also brings power quality issues to the grid. Therefore, predicting PV power generation is of great significance. Based on PV power generation prediction, it is possible to more rationally coordinate the dispatch of PV power with other power sources, ensure the stability of the power system, and effectively improve efficiency and save resources.

[0003] For photovoltaic (PV) power generation prediction, existing technologies typically construct a prediction model using historical PV power generation data of the measured PV system, and then predict real-time PV power generation based on the constructed prediction model. For example, Chinese patent application CN 114662807A discloses a multi-scale regional PV output prediction method and system based on sequence coding reconstruction. This method involves constructing a gridded sampling model to determine the reference sites; reconstructing the dataset according to the required prediction time scale to form a multi-dimensional output tensor sequence; establishing an encoding-decoding model to predict regional PV output; the encoding-decoding model includes encoding units, attention units, and decoding units; training the encoding-decoding model using sample data, and iterating continuously to achieve the required performance, forming a usable hybrid model. However, the above prediction method is only applicable to predicting the output of a single photovoltaic power plant. To predict the output of multiple photovoltaic power plants in a region, it is necessary to build corresponding prediction models for different photovoltaic outputs in the region. This requires a lot of model building and training time, which is time-consuming and inefficient. It cannot fully explore the similarity of the output characteristics among multiple photovoltaic power plants in a region. In particular, when it is necessary to predict the output of photovoltaic clusters in a region, the prediction efficiency will be greatly reduced. The model is also prone to overfitting during the training process. Summary of the Invention

[0004] The technical problem to be solved by this invention is: in view of the technical problems existing in the prior art, this invention provides a method and device for predicting regional multi-photovoltaic output by photovoltaic fusion clustering and multi-task learning, which is simple to implement, short in time, and has high prediction efficiency and accuracy. It can fully explore the similarity of the power output characteristics among regional multi-photovoltaic systems and effectively improve the efficiency and accuracy of regional multi-photovoltaic output prediction.

[0005] To solve the above-mentioned technical problems, the technical solution proposed by this invention is as follows:

[0006] A method for predicting regional multi-photovoltaic outputs that integrates clustering and multi-task learning, comprising the following steps:

[0007] S01. Obtain the output data of the target photovoltaic cluster and the corresponding meteorological information;

[0008] S02. Using geographical environmental factors as variables, the target photovoltaic cluster is classified into regions based on a fuzzy clustering algorithm;

[0009] S03. Based on the regional classification results of step S02, select the set to be predicted from the multi-photovoltaic regions of different types, and select the training set from the regions of the same type as the set to be predicted;

[0010] S04. Use the selected training set to train the pre-built photovoltaic prediction model to achieve multi-photovoltaic prediction of the set to be predicted. The photovoltaic prediction model is based on a convolutional long short-term memory network and is constructed using a bottom-level shared multi-task learning mechanism. In the bottom-level shared multi-task learning mechanism, the hidden layers of the network are shared among multiple tasks to form the overall objective function.

[0011] Furthermore, step S01 also includes a preprocessing step for the acquired data, which includes removing data from a specified time period, filtering out and removing outliers, filling in missing values, and normalizing the data process.

[0012] Furthermore, the outliers are screened out using the Grubbs method, the steps of which include:

[0013] The deviation value of the processed data is calculated based on the difference between the average value and the maximum value and the difference between the average value and the minimum value.

[0014] The deviation value of the processed data is calculated. The sequence is sorted by size, and the deviation value is calculated based on the difference between the average and the maximum value, and the difference between the average and the minimum value. Data values ​​in the processed data whose deviation value exceeds a preset value are taken as suspicious values ​​x. out ;

[0015] Calculate the suspicious value x out The standard sample size g out The sample standard quantity gout The critical value G given by Grubbs' table P (n) Comparison, if the calculated sample standard quantity g out Greater than the critical value G in the table P If (n), then the corresponding data value is determined to be an outlier, and the value x is considered suspicious. out The sample standard quantity g out The specific calculation is as follows:

[0016]

[0017]

[0018] Where n is the sample size, x is the sample mean, and s is the standard deviation.

[0019] Furthermore, it also includes using the K-nearest neighbor algorithm to fill in the removed values, the steps of which include:

[0020] Calculate the distance d between the vector containing missing values ​​and the other vectors:

[0021]

[0022] In the formula, x and y are both vectors with the missing value dimension removed;

[0023] Select k neighboring vectors by distance d, and fill them with the average value of the missing value dimension.

[0024] Furthermore, S201. Calculate the geographical environmental factors of different photovoltaic systems under the cluster, wherein the geographical environmental factors include the solar declination angle δ, the solar altitude angle h, and the solar azimuth angle φ. s ;

[0025] S202. Based on the geographical environmental factors of different photovoltaics, the dataset to be classified, X = {x1, x2, ..., x...}, is... n Determine the required number of cluster centers C, x1, x2, ..., x... n Let n be the number of data points to be classified, and let n be the number of data points. Then, randomly initialize the membership matrix U, which consists of the membership degrees of multiple samples.

[0026] S203. Calculate membership degree u ji and cluster center a i ;

[0027] S204. Based on membership degree u ji and cluster center a i Minimize the objective function J;

[0028] S205. Update the membership matrix U;

[0029] S206. Repeat S202 to S205 until the error value is less than the given error value, i.e., the center point a. i If the membership matrix U has been stabilized or the initialization has changed very little, the region clustering result can be obtained.

[0030] Furthermore, the solar declination angle δ, solar altitude angle h, and solar azimuth angle φ of different photovoltaic cells within the cluster are calculated according to the following formula. s The calculation is as follows:

[0031]

[0032] Where δ is the solar declination angle and n is the number of days, calculated starting from January 1st.

[0033]

[0034] Where h is the solar altitude angle, It represents the geographical latitude, δ is the solar declination angle, and Ω is the hour angle.

[0035]

[0036] Where, φ s Let Ω be the solar azimuth angle, which is taken as positive in the solution; let Ω be the hour angle; let δ be the solar declination angle; and let h be the solar altitude angle.

[0037] Furthermore, the membership degree u is calculated according to the following formula. ji and cluster center a i :

[0038]

[0039]

[0040] Among them, u ji Let d be the membership value of sample j for the i-th category; ji =||x j -a i || represents the Euclidean geometric distance from sample j to cluster center i; m is the fuzzy coefficient, and m is the number of clustering results.

[0041] Furthermore, in step S203, the objective function J is specifically:

[0042]

[0043] The constraints are as follows:

[0044]

[0045] The minimum value is obtained by using the Lagrange multiplier formula, and the Lagrange multiplier z is introduced into the objective function. j The final objective function is obtained as follows:

[0046]

[0047] Furthermore, the overall objective function in the multi-task learning mechanism is specifically:

[0048]

[0049] Where N is the number of tasks, α t These are the weighting coefficients for the tasks; For the loss function of different tasks, θ sh ,θ t These are the predicted value and the actual value, respectively.

[0050] Furthermore, after the convolutional layers in the convolutional long short-term memory network perform convolution calculations according to the following formula, the results are output to the long short-term memory network:

[0051]

[0052] in, This represents convolution computation; F represents the input data of the convolutional layer; w represents the weight parameters of the convolutional kernel; c, W f H f These represent the number of channels, height, and width of the convolutional kernel, respectively.

[0053] The Long Short-Term Memory network operates as follows during the update process:

[0054] i t =σ(W i ·[H t-1 ,X t ]+b i )

[0055] f t =σ(W f ·[H t-1 ,X t ]+b f )

[0056] C t =f t ·C t-1 +i t tanh(W c ·[H t-1 ,X t ]+b c )

[0057] o t =σ(Wo ·[H t-1 ,X t ]+b o )

[0058] H t =o t ·tanh(C t )

[0059] Among them, i t f t o t Let X be the state of the input gate, forget gate, and output gate at time t; t C t H t Let C be the input, cell state, and output at time t; t-1 H t-1 The cell state and output at time t-1; W i W f W c W o b is the weight matrix; i b f b c b o σ represents the state bias term; σ and tanh are the activation functions; and · represents the Hadamard product operation.

[0060] A regional multi-photovoltaic output prediction device integrating clustering and multi-task learning, the regional multi-photovoltaic output prediction device comprising:

[0061] The acquisition module is used to acquire the output data of the target photovoltaic cluster and the corresponding meteorological information.

[0062] The regional clustering module is used to classify target photovoltaic clusters by region based on a fuzzy clustering algorithm, using geographical environmental factors as variables.

[0063] The training set selection module is used to select the set to be predicted from different types of regional photovoltaics based on the regional classification results of the regional clustering module, and to select the training set from the same regional type as the set to be predicted.

[0064] The multi-photovoltaic prediction module is used to train a pre-built photovoltaic prediction model using a selected training set to achieve multi-photovoltaic prediction of the set to be predicted. The photovoltaic prediction model is based on a convolutional long short-term memory network and is constructed using a bottom-level shared multi-task learning mechanism. In the bottom-level shared multi-task learning mechanism, the hidden layers of the network are shared among multiple tasks to form the overall objective function.

[0065] Alternatively, the regional multi-photovoltaic output prediction device may include a processor and a memory, the memory being used to store a computer program, and the processor being used to execute the computer program to perform the method described above.

[0066] Compared with existing technologies, the advantages of this invention are as follows: This invention acquires the output data of the target photovoltaic cluster and the corresponding meteorological information, firstly uses a fuzzy clustering algorithm to quantify and divide different geographical factors into different photovoltaic regions, and then selects a training set of the same type as the set to be predicted based on the regional classification results. Model training based on this training set can improve prediction accuracy. Then, a photovoltaic prediction model is constructed using a convolutional long short-term neural network based on the underlying shared multi-task learning mechanism. Combining the underlying shared multi-task learning mechanism and the long short-term neural network, the output correlation between different photovoltaic panels in the same region can be fully explored, thereby enabling rapid prediction of the output of multiple photovoltaic panels in the region. At the same time, it avoids model overfitting during the training process, effectively improving prediction efficiency and accuracy. Attached Figure Description

[0067] Figure 1 This is a schematic diagram of the regional multi-photovoltaic output prediction method based on regional clustering and multi-task learning in this embodiment.

[0068] Figure 2 This is a schematic diagram of the implementation process of the Long Short-Term Memory Network based on multi-task learning in this embodiment. Detailed Implementation

[0069] The present invention will be further described below with reference to the accompanying drawings and specific preferred embodiments, but this does not limit the scope of protection of the present invention.

[0070] like Figure 1 As shown, the steps of the regional multi-photovoltaic output prediction method that integrates clustering and multi-task learning in this embodiment include:

[0071] S01. Obtain the output data of the target photovoltaic cluster and the corresponding meteorological information;

[0072] S02. Using geographical environmental factors as variables, the target photovoltaic cluster is classified into regions based on the fuzzy clustering algorithm to separate different photovoltaic regions;

[0073] S03. Based on the regional classification results of step S02, select the set to be predicted from the multi-photovoltaic regions of different types, and select the training set from the regions of the same type as the set to be predicted;

[0074] S04. Use the selected training set to train the pre-built photovoltaic prediction model to achieve multi-photovoltaic prediction of the set to be predicted. The photovoltaic prediction model is based on a convolutional long short-term memory network and is constructed using a bottom-level shared multi-task learning mechanism. In the bottom-level shared multi-task learning mechanism, the hidden layers of the network are shared among multiple tasks to form the overall objective function.

[0075] This embodiment acquires the output data of the target photovoltaic cluster and the corresponding meteorological information. First, it uses a fuzzy clustering algorithm to quantify and divide different geographical factors into different photovoltaic regions. Based on the regional classification results, a training set of the same type as the set to be predicted is selected. Model training based on this training set can improve prediction accuracy. Then, a photovoltaic prediction model is constructed using a convolutional long short-term neural network based on the underlying shared multi-task learning mechanism. Combining the underlying shared multi-task learning mechanism and the long short-term neural network, the output correlation between different photovoltaic panels in the same region can be fully explored, thereby enabling rapid prediction of the output of multiple photovoltaics in the region. At the same time, it avoids model overfitting during the training process, effectively improving prediction efficiency and accuracy.

[0076] Step S01 in this embodiment also includes a step of preprocessing the acquired data to obtain a corrected dataset. The preprocessing step includes removing data from a specified time period, filtering out and removing outliers, imputing missing values, and normalizing the data process. By preprocessing the dataset, the impact of unreasonable data and differences in measurement scales on prediction accuracy can be avoided, thereby further improving prediction accuracy.

[0077] In this embodiment, outliers are specifically identified using the Grubbs method. The steps include:

[0078] The deviation value of the processed data is calculated. The sequence is sorted by size, and the deviation value is calculated based on the difference between the average and the maximum value, and the difference between the average and the minimum value. Data values ​​in the processed data whose deviation value exceeds a preset value are taken as suspicious values ​​x. out .

[0079] Calculate the suspicious value x out The standard sample size g out The standard amount of the sample, g out The critical value G given by Grubbs' table P (n) Comparison, if the calculated G P (n) value is greater than the critical value G in the table. P If (n), then the corresponding data value is determined to be an outlier.

[0080] The data preprocessing in this embodiment also includes using the K-Nearest Neighbor (KNN) algorithm to fill in the discarded values. The steps include:

[0081] Calculate the distance d between the vector containing missing values ​​and the other vectors:

[0082] Select k neighboring vectors by distance d, and fill them with the average value of the missing value dimension.

[0083] In a specific application embodiment, the specific steps for data preprocessing to obtain the corrected dataset include:

[0084] Step S101. Remove nighttime data from the sample, normalize the data, and use max-min normalization to eliminate dimensions from the dataset. The calculation formula is as follows:

[0085]

[0086] In the formula, x * This is the result after normalization, where x is the original sample. max x is the maximum value of the sample data. min This represents the minimum value of the sample data.

[0087] Step S102. Screen for outliers. Outliers are defined as measurements in a set of measurements whose deviation from the mean exceeds two standard deviations. The calculation is as follows:

[0088]

[0089]

[0090] In the above formula, n is the sample size, x is the sample mean, and s is the standard deviation.

[0091] Calculate the deviation, which is the difference between the average and the maximum value, and the difference between the average and the minimum value. Then, take the value with the larger deviation from the average as the suspicious value, and calculate the suspicious value x. out The standard sample size g out , will g out The critical value G given by Grubbs' table P (n) Comparison, if the calculated g out The value is greater than the critical value G in the table. P If (n), then the measurement data can be determined to be an outlier and can be removed.

[0092] Step S103. Impute missing values ​​in the original dataset using the K-nearest neighbor algorithm. The steps are as follows:

[0093] Calculate the distance d between the vector containing missing values ​​and other vectors:

[0094]

[0095] In the formula, x and y are both vectors with the missing value dimension removed; then, k neighboring vectors are selected by distance d, and the average value of the missing value dimension is used to fill them.

[0096] The fuzzy mean algorithm optimizes the objective function to obtain the membership degree of each sample point to all class centers, thereby determining the class of the sample point and achieving the purpose of automatically classifying sample data. In this embodiment, step S02 uses the fuzzy mean algorithm, specifically using different geographical environmental factors such as solar declination angle, solar altitude angle, and solar azimuth angle as variables, to classify photovoltaic clusters into regions. The target photovoltaic cluster can be divided into photovoltaic regions according to the solar declination angle, solar altitude angle, and solar azimuth angle.

[0097] S201. Calculate the geographical environmental factors for different photovoltaic systems within the cluster. These factors include the solar declination angle δ, solar altitude angle h, and solar azimuth angle φ. s ;

[0098] S202. Based on the geographical environmental factors of different photovoltaics, the dataset to be classified, X = {x1, x2, ..., x...}, is... n Determine the required number of cluster centers C, x1, x2, ..., x... n Let n be the number of data points to be classified, and let n be the number of data points. Then, randomly initialize the membership matrix U, which consists of the membership degrees of multiple samples.

[0099] S203. Calculate membership degree u ji and cluster center a i ;

[0100] S204. Based on membership degree u ji and cluster center a i Minimize the objective function J;

[0101] S205. Update the membership matrix U;

[0102] S206. Repeat S202 to S205 until the error value is less than the given error value, i.e., the center point a. i If the membership matrix U has been stabilized or the initialization has changed very little, the region clustering result can be obtained.

[0103] In step S201 of this embodiment, the specific calculation formulas for the solar declination angle, solar altitude angle, and solar azimuth angle of different photovoltaic cells in the cluster are as follows:

[0104]

[0105] Where δ is the solar declination angle and n is the number of days, calculated starting from January 1st.

[0106]

[0107] Where h is the solar altitude angle, It represents the geographical latitude, δ is the solar declination angle, and Ω is the hour angle.

[0108]

[0109] Where, φ s Let Ω be the solar azimuth angle, which is taken as positive in the solution; let Ω be the hour angle; let δ be the solar declination angle; and let h be the solar altitude angle.

[0110] This embodiment takes into account various factors of photovoltaics (solar declination angle δ, solar altitude angle h, and solar azimuth angle φ). s By using the fuzzy mean clustering method to cluster different photovoltaic (PV) systems, different regional PV systems can be quantitatively divided based on different geographical factors, thereby selecting an appropriate training set and making full use of the geographical factors of PV systems to improve prediction accuracy.

[0111] In step S203 of this embodiment, the membership degree u is calculated according to the following formula. ji and cluster center a i :

[0112]

[0113]

[0114] Among them, u ji Let d be the membership value of sample j for the i-th category; ji =||x j -a i || represents the Euclidean geometric distance from sample j to cluster center i; m is the fuzzy coefficient, and m is the number of clustering results.

[0115] In step S204 of this embodiment, the objective function J is specifically:

[0116]

[0117] The constraints on the objective function are as follows:

[0118]

[0119] Since the computational objective of fuzzy clustering is to minimize the objective function, this embodiment specifically uses the Lagrange multiplier formula to find the minimum value, introducing the Lagrange multiplier z into the objective function. j The final objective function is obtained as follows:

[0120]

[0121] In this embodiment, when constructing the prediction model, a convolutional long short-term memory neural network for time series prediction is first constructed. Then, based on the multi-task learning mechanism shared at the bottom layer of the objective function L, a prediction model of multi-task learning and convolutional long short-term memory network is constructed to fully leverage the advantages of multi-task learning and convolutional long short-term memory network and efficiently achieve regional multi-photovoltaic output prediction.

[0122] The Convolutional Long Short-Term Memory (LSTM) network consists of convolutional layers and an LSTM network. The convolutional layers extract input features, perform convolution calculations on the input data, and then input the data into the LSTM network. In this embodiment, the convolutional layers in the LSTM network perform convolution calculations according to the following formula:

[0123]

[0124] in, This represents convolution computation; F represents the input data of the convolutional layer; w represents the weight parameters of the convolutional kernel; c, W f H f These represent the number of channels, height, and width of the convolution kernel, respectively.

[0125] Long Short-Term Memory (LSTM) neural networks evolved from Recurrent Neural Networks (RNNs). RNNs possess the ability to transmit information across multiple time steps, and they also exhibit strong memory and Turing completeness. Using RNN models, the temporal dependencies between variable point sequences can be represented, resulting in good predictive performance for correlated point sequence inputs. The LSM network structure in this embodiment is as follows: Figure 2 As shown, the Long Short-Term Memory network operates as follows during the update process:

[0126] i t =σ(W i ·[H t-1 ,X t ]+b i )

[0127] f t =σ(W f ·[H t-1 ,X t ]+b f )

[0128] C t =f t ·C t-1 +i t tanh(W c ·[H t-1 X t ]+b c (14)

[0129] o t=σ(W o ·[H t-1 ,X t ]+b o )

[0130] H t =o t ·tanh(C t )

[0131] Among them, i t f t o t Let X be the state of the input gate, forget gate, and output gate at time t; t C t H t Let C be the input, cell state, and output at time t; t-1 H t-1 The cell state and output at time t-1; W i W f W c Wo is the weight matrix; b i b f b c b o σ represents the state bias term; σ and tanh are the activation functions; and · represents the Hadamard product operation.

[0132] In this embodiment, the overall objective function of the multi-task learning mechanism is specifically:

[0133]

[0134] Where N is the number of tasks, α t These are the weighting coefficients for the tasks; For the loss function of different tasks, θ sh ,θ t These are the predicted value and the actual value, respectively.

[0135] This embodiment introduces a multi-task learning mechanism on the basis of convolutional long short-term memory network, so that the neural network can not only have the function of prediction, but also perform calculations on multiple tasks. Through mutual learning, it can obtain better generalization ability and learning effect, thereby enabling the simultaneous, fast and accurate prediction of regional multi-photovoltaic output.

[0136] This embodiment of the regional multi-photovoltaic output prediction device integrating clustering and multi-task learning includes:

[0137] The acquisition module is used to acquire the output data of the target photovoltaic cluster and the corresponding meteorological information.

[0138] The regional clustering module is used to classify target photovoltaic clusters by region based on a fuzzy clustering algorithm, using geographical environmental factors as variables.

[0139] The training set selection module is used to select the set to be predicted from different types of regional photovoltaics based on the regional classification results of the regional clustering module, and to select the training set from the same regional type as the set to be predicted.

[0140] The multi-photovoltaic prediction module is used to train a pre-built photovoltaic prediction model using the selected training set to achieve multi-photovoltaic prediction of the set to be predicted. The photovoltaic prediction model is based on a convolutional long short-term memory network and is constructed using a bottom-level shared multi-task learning mechanism. In the bottom-level shared multi-task learning mechanism, the hidden layers of the network are shared among multiple tasks to form the overall objective function.

[0141] The regional multi-photovoltaic output prediction device that integrates clustering and multi-task learning in this embodiment corresponds one-to-one with the aforementioned regional multi-photovoltaic output prediction method that integrates clustering and multi-task learning, and will not be described in detail here.

[0142] In another embodiment, the regional multi-photovoltaic output prediction device of the present invention, which integrates clustering and multi-task learning, may further include a processor and a memory, wherein the memory is used to store a computer program and the processor is used to execute the computer program to perform the method as described above.

[0143] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the invention. Therefore, any simple modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention should fall within the protection scope of the present invention.

Claims

1. A regional multi-photovoltaic output prediction method integrating clustering and multi-task learning, characterized by the following steps: include: S01. Obtain the output data of the target photovoltaic cluster and the corresponding meteorological information; S02. Using geographical environmental factors as variables, the target photovoltaic cluster is classified into regions based on a fuzzy clustering algorithm; S03. Based on the regional classification results of step S02, select the set to be predicted from the multi-photovoltaic regions of different types, and select the training set from the regions of the same type as the set to be predicted; S04. Use the selected training set to train the pre-built photovoltaic prediction model to achieve multi-photovoltaic prediction of the set to be predicted. The photovoltaic prediction model is based on a convolutional long short-term memory network and is constructed using a bottom-level shared multi-task learning mechanism. In the bottom-level shared multi-task learning mechanism, the hidden layers of the network are shared among multiple tasks to form the overall objective function. The steps in step S02 include: S201. Computational analysis of geographical environmental factors for different photovoltaic systems within a cluster. These geographical environmental factors include the solar declination angle. Solar altitude angle and solar azimuth ; S202. Based on the geographical environmental factors of different photovoltaics, the dataset to be classified... Determine the required number C of cluster centers. x 1, x 2,..., x n These are the data to be classified. n To determine the number of data points, a membership matrix consisting of the membership degrees of multiple samples is randomly initialized. ; S203. Calculate membership degree and cluster centers ; S204. Based on membership degree and cluster centers Minimize objective function J; S205. Update the membership matrix ; S206. Repeat S202 to S205 until the error value is less than the given error value, i.e., the center point. The membership matrix has been stabilized or initialized. The changes are very small, resulting in region clustering.

2. The regional multi-photovoltaic output prediction method that integrates clustering and multi-task learning according to claim 1, characterized in that, Step S01 further includes a preprocessing step for the acquired data, which includes removing data from a specified time period, filtering out and removing outliers, filling in missing values, and normalizing the data process.

3. The regional multi-photovoltaic output prediction method that integrates clustering and multi-task learning according to claim 2, characterized in that, The outliers are identified using the Grubbs method, and the steps include: The deviation value of the processed data is calculated. The sequence is sorted by size, and the deviation value is calculated based on the difference between the average and the maximum value, and the difference between the average and the minimum value. Data values ​​in the processed data whose deviation value exceeds a preset value are taken as suspicious values. ; Calculate suspicious values Sample standard The sample standard quantity The critical value given by Grubbs' table Comparison, if the calculated sample standard quantity Greater than the critical value in the table If so, the corresponding data value is determined to be an outlier or a suspicious value. The sample standard quantity The specific calculation is as follows: in, n It is the sample size. It is the sample mean. s It is the standard deviation.

4. The regional multi-photovoltaic output prediction method that integrates clustering and multi-task learning according to claim 2, characterized in that, It also includes filling in the removed values ​​using the K-nearest neighbor algorithm, the steps of which include: Calculate the distance between the vector containing missing values ​​and the other vectors. d : In the formula, x and y All are vectors with the missing value dimension removed; By distance d Select k neighboring vectors and fill them with the average of the missing value dimensions.

5. The regional multi-photovoltaic output prediction method that integrates clustering and multi-task learning according to claim 1, characterized in that, The solar declination angle of different photovoltaics in the cluster Solar altitude angle and solar azimuth The calculation expressions are as follows: in, The solar declination angle, Number of days; in, The solar altitude angle, It is geographical latitude. The solar declination angle, The hour angle; in, Let be the solar azimuth angle, and take a positive value in the solution. For the hour angle, The solar declination angle, This is the solar altitude angle.

6. The regional multi-photovoltaic output prediction method that integrates clustering and multi-task learning according to claim 1, characterized in that, Calculate the membership degree according to the following formula. and cluster centers : in, For the sample For the Membership values ​​of each category; For the sample To the cluster center Euclidean geometric distance; m For fuzzy coefficients, and m The value is the number of clustering results.

7. The regional multi-photovoltaic output prediction method that integrates clustering and multi-task learning according to claim 1, characterized in that, In step S204, the objective function J Specifically: The constraints are as follows: The minimum value is obtained by using the Lagrange multiplier formula, and Lagrange multipliers are introduced into the objective function. The final objective function is obtained as follows: 。 8. The regional multi-photovoltaic output prediction method that integrates clustering and multi-task learning according to any one of claims 1 to 7, characterized in that, The overall objective function in the multi-task learning mechanism is specifically: in, N For the number of tasks, These are the weighting coefficients for the tasks; For different tasks, the loss function is... These are the predicted value and the actual value, respectively.

9. The regional multi-photovoltaic output prediction method that integrates clustering and multi-task learning according to any one of claims 1 to 7, characterized in that, The convolutional layers in the convolutional long short-term memory network perform convolution calculations according to the following formula, and then output the results to the long short-term memory network: in, Indicates convolution calculation; This represents the input data for the convolutional layer; The weight parameters represent the convolution kernel; , , These represent the number of channels, height, and width of the convolutional kernel, respectively. The Long Short-Term Memory network operates as follows during the update process: in, i t , f t , o t for t The status of the input gate, forget gate, and output gate should be monitored at all times. X t , C t , H t for t Real-time input, cell status, and output; C t-1 , H t-1 for t Cell state and output at time -1; W i 、W f 、W c 、W o This is the weight matrix; b i 、b f 、b c 、b o For state bias terms; , tanh are activation functions; • is the Hadamard product operation.

10. A regional multi-photovoltaic output prediction device integrating clustering and multi-task learning, characterized in that, The regional multi-photovoltaic output prediction device is used to implement the method according to any one of claims 1 to 9, including: The acquisition module is used to acquire the output data of the target photovoltaic cluster and the corresponding meteorological information. The regional clustering module is used to classify target photovoltaic clusters by region based on a fuzzy clustering algorithm, using geographical environmental factors as variables. The training set selection module is used to select the set to be predicted from different types of regional photovoltaics based on the regional classification results of the regional clustering module, and to select the training set from the same regional type as the set to be predicted. The multi-photovoltaic prediction module is used to train a pre-built photovoltaic prediction model using a selected training set to achieve multi-photovoltaic prediction of the set to be predicted. The photovoltaic prediction model is based on a convolutional long short-term memory network and is constructed using a bottom-level shared multi-task learning mechanism. In the bottom-level shared multi-task learning mechanism, the hidden layers of the network are shared among multiple tasks to form the overall objective function. Alternatively, the regional multi-photovoltaic output prediction device may include a processor and a memory, the memory being used to store a computer program, and the processor being used to execute the computer program to perform the method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Multi-scale regional photovoltaic output prediction method and system based on sequence coding reconstruction

    CN114662807A

  • Regional traffic demand prediction method based on convolutional long-term and short-term memory network

    CN110633871A

  • Photovoltaic system tracking optimization method based on hour-level irradiation prediction

    CN111881969A

  • Photovoltaic power interval probability prediction method based on deep learning fusion model

    CN115115125A