Distributed photovoltaic output prediction method and device based on low-rank adaptive migration

By using a low-rank adaptive migration method, distributed photovoltaic sites are divided into clusters and prediction is performed using a combination of basic and incremental parameter matrices. This solves the problems of adapting to local differences in the target domain and the burden of storage training, and achieves efficient distributed photovoltaic output prediction.

CN123158261APending Publication Date: 2026-11-24XI AN JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611369341.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In distributed photovoltaic power output prediction, existing technologies struggle to effectively adapt to local differences in the target domain while maintaining common regional patterns, and also incur parameter storage overhead and training burden.

Method used

A low-rank adaptive migration method is adopted to divide distributed photovoltaic sites into site clusters and use a combination of basic parameter matrix and incremental parameter matrix for prediction. The rank of the incremental parameter matrix is ​​less than that of the basic parameter matrix. The incremental parameter matrix is ​​updated through small sample training, while keeping the basic parameter matrix fixed, thereby reducing storage and training overhead.

Benefits of technology

While maintaining prediction accuracy, it reduces the parameter storage and training burden of multi-site deployment, can adapt to the local characteristics of target domain sites, avoids overfitting, and provides reliable output prediction and uncertainty assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158261A_ABST
    Figure CN123158261A_ABST
Patent Text Reader

Abstract

This application discloses a method and apparatus for predicting distributed photovoltaic (PV) output based on low-rank adaptive transfer, belonging to the field of distributed PV output prediction technology. The method includes dividing multiple distributed PV sites into at least one site cluster, determining source domain sites and target domain sites within each site cluster, acquiring input features of the target domain sites and inputting them into a pre-trained prediction model. The prediction model includes a first linear mapping layer with a basic parameter matrix and an incremental parameter matrix. The input features are mapped using the basic parameter matrix and the incremental parameter matrix respectively, and the mapping output of the first linear mapping layer is obtained to determine the output prediction result of the target domain sites. The basic parameter matrix is ​​trained using historical data from the source domain sites and remains fixed during the prediction process of the target domain sites. The number of parameters in the incremental parameter matrix is ​​less than the number of parameters in the basic parameter matrix, and the rank of the incremental parameter matrix is ​​less than the input and output dimensions of the basic parameter matrix.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of distributed photovoltaic power output prediction technology, specifically to a distributed photovoltaic power output prediction method and device based on low-rank adaptive migration. Background Technology

[0002] The large-scale integration of regional distributed photovoltaic (PV) systems into the distribution network has resulted in a large number of PV sites within the region, characterized by small capacity, dispersed locations, and significant differences in monitoring conditions. Even under similar meteorological conditions, different sites within the same region may exhibit significantly different output curves and fluctuation characteristics. Day-ahead grid dispatching not only requires knowledge of the output level for the next day but also urgently needs to quantify the uncertainty of forecasts to support operational plans and reserve arrangements. However, related distributed PV sites generally suffer from insufficient data accumulation at newly built sites and unstable communication leading to missing samples, making it difficult to directly apply deep probabilistic prediction models that rely on a large number of high-quality historical samples to every target domain site.

[0003] To address these issues, transfer learning has been introduced into the field of distributed photovoltaic (PV) power output prediction. Among existing transfer learning methods, full parameter fine-tuning is a common approach. Its core idea is to transfer knowledge from a pre-trained prediction model in a source site or region with abundant data to a target site with limited historical samples. While this method can effectively adapt to the target site through global parameter updates, it requires storing a complete copy of the model parameters for each target site. As the number of sites increases, storage costs rise significantly, and repeated full model training is necessary after adding new data, increasing deployment and maintenance burdens. Furthermore, when the target site sample size is limited, globally updating high-dimensional parameters can easily lead to overfitting of the model to local samples, weakening the learned regional commonalities. Summary of the Invention

[0004] This application provides a distributed photovoltaic power output prediction method and device based on low-rank adaptive migration, which can reduce parameter storage overhead and training burden in multi-site deployment while maintaining the accuracy of day-ahead probability prediction.

[0005] To achieve the aforementioned objective, the present application discloses the following technical solutions: In a first aspect, embodiments of this application provide a distributed photovoltaic power output prediction method based on low-rank adaptive migration, comprising the following steps: Multiple distributed photovoltaic sites are divided into at least one site cluster, and source domain sites and target domain sites are determined in each site cluster; Obtain the input features of the target domain stations, including meteorological forecast data and time-series coded data of the target domain stations; The input features are fed into a pre-trained prediction model. The prediction model includes a first linear mapping layer, which has a base parameter matrix and an incremental parameter matrix. The input features are mapped using the base parameter matrix and the incremental parameter matrix, respectively, to obtain the mapping output of the first linear mapping layer. The base parameter matrix is ​​trained using historical data from the source domain sites and remains fixed during the prediction process of the target domain sites. The number of parameters in the incremental parameter matrix is ​​less than the number of parameters in the base parameter matrix, and the rank of the incremental parameter matrix is ​​less than the input dimension and output dimension of the base parameter matrix. Based on the mapping output of the first linear mapping layer, the power output prediction results of the target domain stations are determined.

[0006] In some possible implementations of the first aspect, the incremental parameter matrix includes a first low-rank matrix and a second low-rank matrix, the incremental parameter matrix being expressed by the product of the first low-rank matrix and the second low-rank matrix, wherein the rank of the first low-rank matrix and the rank of the second low-rank matrix are both less than the input dimension and the output dimension of the basic parameter matrix. The steps for mapping the input features using the base parameter matrix and the incremental parameter matrix to obtain the mapping output of the first linear mapping layer include: The incremental parameter matrix in the first linear mapping layer is determined based on the product of the first low-rank matrix and the second low-rank matrix. The effective weight matrix of the first linear mapping layer is obtained by adding the basic parameter matrix and the incremental parameter matrix in the first linear mapping layer. Based on the effective weight matrix, the features input to the first linear mapping layer are mapped to obtain the mapping output of the first linear mapping layer. The mapping output consists of a first mapping component and a second mapping component. The first mapping component is the result of mapping the features using the basic parameter matrix, and the second mapping component is the result of mapping the features using the incremental parameter matrix.

[0007] In some possible implementations of the first aspect, the first linear mapping layer is a query projection matrix layer, key projection matrix layer, or value projection matrix layer of a multi-head temporal attention mechanism in a pre-trained prediction model.

[0008] In some possible implementations of the first aspect, the step of determining the incremental parameter matrix in the first linear mapping layer based on the product of the first low-rank matrix and the second low-rank matrix includes: Get the preset scaling factor and the preset low rank number; The incremental parameter matrix is ​​determined based on the scaling factor, the low-rank number, the first low-rank matrix, and the second low-rank matrix.

[0009] In some possible implementations of the first aspect, the incremental parameter matrix is ​​determined by the following formula: In the formula: This is the incremental parameter matrix; This is the preset scaling factor; This is a preset low-rank number; It is the second low-rank matrix. ; This is the first low-rank matrix. ; The input dimension of the basic parameter matrix; It is the output dimension of the basic parameter matrix, and satisfies .

[0010] In some possible implementations of the first aspect, the effective weight matrix is ​​determined by the following formula: In the formula: This is the effective weight matrix; The fundamental parameter matrix in the first linear mapping layer; This is the incremental parameter matrix.

[0011] In some possible implementations of the first aspect, the first and second mapping components in the mapping output are determined by the following formula: In the formula: For mapping output; This is the first mapping component; This is the second mapping component; The features are input to the first linear mapping layer.

[0012] In some possible implementations of the first aspect, the step of dividing multiple distributed photovoltaic sites into at least one site cluster includes: The historical power data of each distributed photovoltaic site are normalized to obtain the normalized power sequence of each distributed photovoltaic site. Based on the normalized power sequence, the daily peak time characteristics of each distributed photovoltaic site are extracted, and the statistical characteristics of the daily peak time characteristics are calculated. Based on preset irradiance conditions, weak light samples are selected from the normalized power sequence of each distributed photovoltaic site, and weak light response index of each distributed photovoltaic site is calculated based on the weak light samples. Based on the installed capacity of each distributed photovoltaic site, the capacity scale characteristics of each distributed photovoltaic site are determined, and the statistical characteristics of the daily peak time, the weak light response index, and the capacity scale characteristics are combined into a multi-dimensional operation feature vector of each distributed photovoltaic site. The multi-dimensional operating feature vectors are standardized, and the standardized features are weighted based on the preset feature weight matrix to obtain the weighted operating feature vectors of each distributed photovoltaic site. In the feature weight matrix, the weight of the corresponding capacity scale feature is lower than the weight of the statistical feature of the corresponding daily peak time feature and the weight of the weak light response index. Based on the feature distance between each weighted operating feature vector, each distributed photovoltaic site is clustered to obtain at least one site cluster.

[0013] In some possible implementations of the first aspect, the steps of extracting the daily peak time characteristics of each distributed photovoltaic site based on the normalized power sequence and calculating the statistical characteristics of the daily peak time characteristics include: Based on the normalized power sequence, the daily peak time of each distributed photovoltaic site on each historical day is determined, and the daily peak time sequence of each distributed photovoltaic site is obtained, forming the daily peak time feature. Based on the characteristics of daily peak times, the statistical characteristics of daily peak times for each distributed photovoltaic site are calculated. The statistical characteristics include the mean and the degree of fluctuation of the daily peak time sequence.

[0014] In some possible implementations of the first aspect, the daily peak time is determined by the following formula: In the formula: For the site In the The peak time of the day; For the site In the Heavenly The normalized power value at each sampling time.

[0015] In some possible implementations of the first aspect, the mean of the daily peak time sequence is determined by the following formula: In the formula: For the site The mean of the daily peak time sequence; For the site Valid historical days; For the site In the The peak time of the day.

[0016] In some possible implementations of the first aspect, the degree of fluctuation in the daily peak time sequence is determined by the following formula: In the formula: For the site The degree of fluctuation in the daily peak time sequence; For the site In the The peak time of the day; For the site The mean of the daily peak time sequence; For the site The effective number of historical days.

[0017] In some possible implementations of the first aspect, the steps of screening weak light samples from the normalized power sequence of each distributed photovoltaic site based on preset irradiance conditions, and calculating the weak light response index of each distributed photovoltaic site based on the weak light samples, include: The samples of each distributed photovoltaic site whose irradiance is lower than the preset irradiance threshold at the sampling time are identified as weak light samples, thus obtaining the weak light sample set of each distributed photovoltaic site. Based on the normalized power value and irradiance at each sampling time in the low-light sample set of each distributed photovoltaic site, the low-light response index of each distributed photovoltaic site is calculated.

[0018] In some possible implementations of the first aspect, the weak light sample set is determined by the following formula: In the formula: For the site A set of weak light samples; For the site At sampling time irradiance; This is the preset irradiance threshold.

[0019] In some possible implementations of the first aspect, the low-light response index is determined by the following formula: In the formula: For the site Low-light response index; For the site A set of weak light samples; For the site At sampling time The normalized power value; For the site At sampling time Irradiance.

[0020] In some possible implementations of the first aspect, the multidimensional operating feature vector is determined by the following formula: In the formula: For the site The multidimensional operating feature vector; For the site The mean of the daily peak time sequence; For the site The degree of fluctuation in the daily peak time sequence; For the site Low-light response index; For the site The capacity scale characteristics, , For the site The installed capacity.

[0021] In some possible implementations of the first aspect, the steps of standardizing each multi-dimensional operational feature vector and weighting the standardized features based on a preset feature weight matrix to obtain the weighted operational feature vectors of each distributed photovoltaic site include: Based on the multidimensional operation feature vectors of all distributed photovoltaic sites, the mean and standard deviation of each dimension of operation feature are calculated; Based on the mean and standard deviation, the multidimensional operational feature vectors are standardized to obtain the standardized operational feature vectors of each distributed photovoltaic site. Based on the preset feature weight matrix, the features of each dimension of the standardized operation feature vector are weighted to obtain the weighted operation feature vector of each distributed photovoltaic site.

[0022] In some possible implementations of the first aspect, the standardized running feature vector is determined by the following formula: In the formula: For the site The standardized operational feature vector; For the site The multidimensional operating feature vector; This is the mean vector of the operational features in each dimension; is the standard deviation vector of each dimension of the operating characteristics.

[0023] In some possible implementations of the first aspect, the preset feature weight matrix is ​​determined by the following formula: In the formula: The preset feature weight matrix; , , , These are the weight coefficients for the corresponding operational features in each dimension.

[0024] In some possible implementations of the first aspect, the weighted running feature vector is determined by the following formula: In the formula: For the site The weighted operating feature vector; The preset feature weight matrix; For the site The standardized operating feature vector.

[0025] In some possible implementations of the first aspect, the step of clustering distributed photovoltaic sites based on the feature distance between each weighted running feature vector to obtain at least one site cluster includes: Based on the distance between each weighted operating feature vector and the cluster center of each site cluster, a partitioning clustering algorithm is used to cluster each distributed photovoltaic site to obtain at least one site cluster.

[0026] In some possible implementations of the first aspect, the step of determining the power output prediction result of the target domain site based on the mapping output of the first linear mapping layer includes: In response to the lack of valid historical measured power data accumulated at the target domain sites, the incremental parameter matrix is ​​initialized to a zero matrix, and the input features are mapped based on the basic parameter matrix to obtain the mapping output of the first linear mapping layer; In response to the accumulated effective historical measured power data of the target domain stations, a small sample training set of the target domain stations is constructed using the historical power data, meteorological forecast data, and time-series coded data accumulated by the target domain stations. Under the condition of keeping the parameter values ​​of the basic parameter matrix fixed, the parameters of the incremental parameter matrix are updated only based on the small sample training set. The updated incremental parameter matrix is ​​loaded, and the input features are mapped based on the basic parameter matrix and the updated incremental parameter matrix to obtain the mapping output of the first linear mapping layer. The objective function of parameter update includes a multi-time period quantile loss term and a parameter drift regularization term. The parameter drift regularization term is used to limit the parameter update amplitude of the incremental parameter matrix. In response to the normalized power prediction value of the mapping output of the first linear mapping layer, the mapping output is restored from the normalized power scale to the actual power scale based on the installed capacity of the target domain site, so as to obtain the actual power prediction result of the target domain site. Based on the actual power prediction results, the power output prediction results of the target domain stations are determined.

[0027] In some possible implementations of the first aspect, the prediction model is configured with multiple preset quantile levels; the step of determining the output prediction result of the target domain site based on the mapping output of the first linear mapping layer includes: Based on the mapping output of the first linear mapping layer, the actual power prediction values ​​of the target domain stations at each quantile level are determined; The actual power prediction result is determined based on the actual power prediction value at each quantile level; Based on the actual power prediction results, the power output prediction results of the target domain stations are determined.

[0028] In some possible implementations of the first aspect, the actual power prediction result is determined by the following formula: In the formula: For target domain sites In the The predicted time, the first Actual power prediction results at each quantile level; For target domain sites The installed capacity; For the corresponding target domain site in the mapping output In the The predicted time, the first Normalized power predictions at each quantile level.

[0029] In some possible implementations of the first aspect, the output prediction result is determined by the following formula: In the formula: For target domain sites The output prediction interval sequence; and Target domain sites In the Prediction time, lower quantile level and upper quantile level Actual power prediction results; The preset lower quantile level; The preset upper quantile level; The predicted time domain length is given by the current date.

[0030] In some possible implementations of the first aspect, the fundamental parameter matrix is ​​obtained through the following steps: For each site cluster, the comprehensive evaluation value of each distributed photovoltaic site is determined based on the data integrity index and the representativeness measure of each distributed photovoltaic site within the site cluster, and the source domain sites are determined from the site cluster based on the comprehensive evaluation value. Based on historical power data, meteorological forecast data, and time-series coding data of source domain stations, a source domain training sample set is constructed. Based on the source domain training sample set and multiple preset quantile levels, the deviation between the predicted value and the actual output value at each quantile level is measured by the quantile loss function. The quantile losses at each quantile level are aggregated to obtain the multi-time period quantile loss. With the goal of minimizing the multi-time quantile loss, the parameters corresponding to the basic parameter matrix of the prediction model are optimized to obtain the basic parameter matrix after training.

[0031] In some possible implementations of the first aspect, the comprehensive evaluation value of each distributed photovoltaic site is determined based on the data integrity index and the representativeness metric of each distributed photovoltaic site within the site cluster. The step of determining the source domain site from the site cluster based on the comprehensive evaluation value includes: Based on the historical data missing rate of each distributed photovoltaic site, the data integrity index of each distributed photovoltaic site is determined. Based on the distance from the weighted operating feature vector of each distributed photovoltaic site to the cluster center of its site cluster, the intra-cluster representativeness metric of each distributed photovoltaic site is determined. The data integrity index and the intra-cluster representativeness measure are normalized respectively. The normalized data integrity index and the intra-cluster representativeness measure are then weighted and summed to obtain the comprehensive evaluation value of each distributed photovoltaic site. The distributed photovoltaic site with the lowest comprehensive evaluation value within the site cluster is identified as the source domain site.

[0032] In some possible implementations of the first aspect, the historical data missing rate is determined by the following formula: In the formula: For the site Historical data missing rate; For the site The theoretical sample size within the historical observation window; For the site The number of missing samples within the historical observation window.

[0033] In some possible implementations of the first aspect, the intra-cluster representativeness metric is determined by the following formula: In the formula: For the site The measure of intra-cluster representativeness; For the site The weighted operating feature vector; For the site The cluster center of the site cluster.

[0034] In some possible implementations of the first aspect, the comprehensive evaluation value is determined by the following formula: In the formula: For the site The overall evaluation value; This refers to the data integrity index after normalization. This is a measure of intra-cluster representativeness after normalization. and These are preset weighting coefficients.

[0035] In some possible implementations of the first aspect, the step of aggregating the quantile losses at each quantile level to obtain multi-time quantile losses includes: For each quantile level, the quantile loss is calculated based on the difference between the predicted value and the actual output value of each training sample in the source domain training sample set. The quantile losses at all quantile levels and at all prediction times are aggregated and averaged to obtain the multi-time quantile loss.

[0036] In some possible implementations of the first aspect, the quantile loss is determined by the following formula: In the formula: quantile level The quantile loss below; The difference between the actual output value and the predicted value. ; For the first The actual output value at each predicted moment; For the first Prediction time, quantile level The predicted value is below.

[0037] In some possible implementations of the first aspect, the multi-time quantile loss is determined by the following formula: In the formula: For multi-period quantile loss; The current time domain length is the predicted time domain length. The number of quantile levels; quantile level The quantile loss function below; For the first The actual output value at each predicted moment; For the first Prediction time, quantile level The predicted value is below.

[0038] In some possible implementations of the first aspect, the parameter drift regularization term is a weighted sum of the squares of the Frobenius norm of the products of the first low-rank matrix and the second low-rank matrix in each linear mapping layer configured with incremental parameter matrices.

[0039] In some possible implementations of the first aspect, the objective function for parameter updating is constructed as follows: Based on a small training set, the prediction loss of the incremental parameter matrix under the current parameter value is calculated using the quantile loss function; Based on the first low-rank matrix and the second low-rank matrix corresponding to each linear mapping layer configured with incremental parameter matrices, the parameter drift regularization term is calculated. The objective function is obtained by adding the prediction loss to the parameter drift regularization term.

[0040] In some possible implementations of the first aspect, the objective function is determined by the following formula: In the formula: The objective function is... For a small training set; The input feature samples are from the small training set; For the corresponding small sample training set The measured output sequence; For multi-period quantile loss; This refers to the prediction function corresponding to the pre-trained prediction model; To maintain a fixed base parameter matrix after training; This is the incremental parameter matrix; The preset regularization coefficient; It is the set of all linear mapping layers in a pre-trained prediction model that have both incremental and basic parameter matrices. for The first in One linear mapping layer; and Target domain sites In the The second low-rank matrix and the first low-rank matrix in each linear mapping layer; It is the square of the Frobenius norm.

[0041] Secondly, embodiments of this application provide a distributed photovoltaic power output prediction device based on low-rank adaptive migration, comprising: The site determination module is used to divide multiple distributed photovoltaic sites into at least one site cluster, and determine the source domain site and the target domain site in each site cluster. The input feature acquisition module is used to acquire the input features of the target domain stations. The input features include meteorological forecast data and time-series coded data of the target domain stations. The mapping output acquisition module is used to input the input features into a pre-trained prediction model. The prediction model includes a first linear mapping layer, which has a basic parameter matrix and an incremental parameter matrix. The input features are mapped through the basic parameter matrix and the incremental parameter matrix respectively to obtain the mapping output of the first linear mapping layer. The basic parameter matrix is ​​trained with historical data from the source domain sites and remains fixed during the prediction process of the target domain sites. The number of parameters in the incremental parameter matrix is ​​less than the number of parameters in the basic parameter matrix, and the rank of the incremental parameter matrix is ​​less than the input dimension and output dimension of the basic parameter matrix. The prediction result determination module is used to determine the power output prediction result of the target domain station based on the mapping output of the first linear mapping layer.

[0042] Thirdly, embodiments of this application provide an electronic device, including: One or more processing devices; A storage device on which one or more programs are stored; When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the method described in any embodiment of the first aspect.

[0043] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processing device, implements the method described in any of the embodiments of the first aspect.

[0044] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processing device, implements the method described in any of the embodiments of the first aspect.

[0045] One or more technical solutions provided in the first to fifth aspects of the embodiments of this application have at least the following technical effects: 1. By having a basic parameter matrix and an incremental parameter matrix in the first linear mapping layer of the prediction model, and configuring the basic parameter matrix to be obtained by training with historical data from the source domain sites and keeping it fixed during the prediction process of the target domain sites, the common output patterns of the same cluster that the prediction model has learned will not be modified during the transfer training of the target domain sites.

[0046] Building upon this, by ensuring that the number of parameters in the incremental parameter matrix is ​​less than that in the base parameter matrix, and that the rank of the incremental parameter matrix is ​​less than the input and output dimensions of the base parameter matrix, parameter updates for target domain sites can be confined to a low-dimensional subspace defined by the incremental parameter matrix. In this way, when updating parameters using a small number of samples from target domain sites, the update operation only applies to the incremental parameter matrix, and the common prediction knowledge carried by the base parameter matrix remains unaffected. Therefore, on the one hand, this avoids the destruction of existing regional common prediction capabilities due to full parameter updates under small sample conditions, maintaining the generalization ability of the base model; on the other hand, it effectively reduces the number of trainable parameters that need to be stored and updated for each target domain site, thereby reducing parameter storage and training overhead in multi-site regional deployments.

[0047] 2. By setting the incremental parameter matrix as the product of a first low-rank matrix and a second low-rank matrix, and ensuring that the ranks of both the first and second low-rank matrices are less than the input and output dimensions of the basic parameter matrix, the local power output difference between the target domain site and the source domain site can be constrained within a low-dimensional subspace spanned by the first and second low-rank matrices. Therefore, the nonlinear power output deviation between the target domain site and the source domain site can be modeled with far fewer parameters than a full-rank matrix. This allows the prediction model formed by the transfer to capture local power output characteristics even with limited historical samples of the target domain site, overcoming the problem that direct transfer cannot adapt to local biases in the target domain site.

[0048] 3. By constructing a multi-dimensional operational feature vector that includes statistical features of daily peak time characteristics, weak light response indicators, and capacity-scale features, and by weighting the standardized operational features of each dimension so that the weight of capacity-scale features is lower than that of statistical features of daily peak time characteristics and weak light response indicators, the interference of installed capacity differences on the measurement of similarity of site operation patterns can be reduced. This allows the site clustering process to be mainly based on the output curve shape and meteorological response characteristics. In this way, distributed photovoltaic sites with similar output patterns and meteorological response patterns can be grouped into the same site cluster. The common output patterns learned by the basic parameter matrix of source domain sites within the same cluster can be well applied to target domain sites within the cluster. This avoids the problem of smoothing local features of a single site due to heterogeneous sites with large differences in mixed output patterns caused by traditional unified modeling.

[0049] 4. By initializing the incremental parameter matrix to a zero matrix in response to the lack of valid historical measured power data for the target domain sites, the incremental mapping component provided by the incremental parameter matrix is ​​zero. Therefore, the prediction results for the target domain sites in the zero-sample stage are entirely determined by the mapping results of the basic parameter matrix. Consequently, newly built sites do not need to accumulate any local historical power data; they can directly inherit the common power output patterns learned by the base model of the same source domain cluster, achieving zero-sample cold-start prediction.

[0050] By responding to the accumulation of effective historical measured power data at target domain sites, and while keeping the parameter values ​​of the basic parameter matrix fixed, the incremental parameter matrix is ​​updated only using a small training set of target domain sites. Furthermore, a parameter drift regularization term is introduced into the objective function of the parameter update to limit the magnitude of the incremental parameter matrix update. This allows target domain sites to absorb local sample information without excessively deviating from the common patterns learned in the source domain base model. Based on this, as local historical samples from target domain sites gradually accumulate, the predictive capability can smoothly transition from pure common-based prediction to a prediction state combining common base model and local adaptation, with the prediction effect continuously improving as the sample size increases.

[0051] 5. By configuring multiple preset quantile levels for the prediction model and determining the actual power prediction values ​​of target domain stations at each quantile level based on the mapping output of the first linear mapping layer, the prediction model can simultaneously output power output prediction results corresponding to different quantile levels. Therefore, the power output prediction results for target domain stations can not only provide a point estimate of future power output but also a prediction range for prediction uncertainty, providing richer probabilistic information for the formulation of operation plans and the arrangement of reserve capacity in day-ahead power grid dispatch.

[0052] 6. By determining the comprehensive evaluation value based on the data integrity index and the representativeness measure of each distributed photovoltaic site within the site cluster, and then determining the source domain sites from the site cluster based on the comprehensive evaluation value, the selected source domain sites can simultaneously possess high historical data quality and strong representativeness of intra-cluster operating characteristics.

[0053] Based on this, a source domain training sample set is constructed using historical power data, meteorological forecast data, and time-series coded data from source domain sites. The basic parameter matrix is ​​trained with the goal of minimizing the multi-time period quantile loss. This allows the basic parameter matrix to learn the common power output patterns of clustered distributed photovoltaic sites from source domain site samples with sufficient and typical data.

[0054] After inheriting the basic parameter matrix, the target domain site can obtain a predictive prior similar to its own operational characteristics, thus avoiding the problem of insufficient samples caused by the target domain site training a complete predictive model from scratch under limited historical sample conditions. Attached Figure Description

[0055] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0056] Figure 1A flowchart illustrating a distributed photovoltaic power output prediction method based on low-rank adaptive migration provided in some embodiments of this application. Figure 1 .

[0057] Figure 2 A flowchart illustrating a distributed photovoltaic power output prediction method based on low-rank adaptive migration provided in some embodiments of this application. Figure 2 .

[0058] Figure 3 This is a schematic diagram showing the results of clustering distribution of regional distributed photovoltaic sites provided in some embodiments of this application.

[0059] Figure 4 For different target domain site sample sizes Figure 1 The graph shows a comparison of the prediction performance of the method shown and FullFT.

[0060] Figure 5 This is a schematic diagram of the structure of a distributed photovoltaic power output prediction device based on low-rank adaptive migration, provided for some embodiments of this application.

[0061] Figure 6 This is a schematic diagram of the structure of an electronic device suitable for implementing a distributed photovoltaic power output prediction method based on low-rank adaptive migration, provided for some embodiments of this application. Detailed Implementation

[0062] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0063] In the embodiments of this application, the terms "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0064] In the description of the embodiments of this application, the term "multiple" means two or more.

[0065] In the description of the embodiments of this application, the term "and / or" refers to and covers any and all possible combinations of one or more of the associated listed items. The term "and / or" describes an association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this application generally indicates that the preceding and following related objects have an "or" relationship.

[0066] In the description of embodiments of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0067] Background Overview: With the large-scale integration of distributed photovoltaic (PV) systems into the distribution network, PV sites within a region are characterized by their large number, small capacity, dispersed locations, varying connection times, and significant differences in monitoring conditions. Compared to centralized PV power plants, distributed PV systems are mostly located on rooftops, in industrial and commercial areas, or near low-voltage distribution areas. Their power output is affected not only by regional weather but also by factors such as module orientation, installation tilt angle, building shading, local cloud cover, inverter status, and communication acquisition quality. Therefore, even under similar weather conditions, different distributed PV sites within the same region may exhibit different intraday power output curves and fluctuation characteristics. For day-ahead grid dispatching, regional distributed PV forecasting not only needs to provide the power output levels at various times throughout the next day but also needs to describe the forecast uncertainties to support operational planning, reserve arrangements, and risk assessment.

[0068] Relevant distributed photovoltaic (PV) day-ahead forecasting methods mainly include statistical learning methods and deep learning methods. Statistical learning methods typically establish a mapping relationship between input and output using historical power, meteorological variables, and temporal information. The model structure is relatively simple, but its ability to express complex nonlinear time-series changes, multiple coupled meteorological variables, and probabilistic uncertainties is limited. Deep learning methods can extract more complex patterns of change from historical power sequences, numerical weather predictions, and temporal features, and can output probabilistic prediction results by combining methods such as quantile regression. However, they usually rely on a large number of continuous, complete, and high-quality historical samples. In regional distributed PV scenarios, newly built sites, weakly monitored sites, sites with unstable communication, and sites with missing data are common. Training deep prediction models alone often lacks sufficient sample support, easily leading to overfitting and undergeneralization.

[0069] To address the issue of insufficient historical samples for target domain sites, transfer learning has been increasingly introduced into distributed photovoltaic (PV) forecasting. The basic idea is to train a forecasting model using sufficient historical data from the source site or region, and then transfer the common knowledge learned from the model to the target domain sites. For regional distributed PV, sites within the same region or of the same type typically share common patterns such as solar irradiance diurnal cycles, seasonal variations, and weather-driven factors; however, different sites also exhibit individual differences in capacity scale, local shading, orientation, tilt angle, and equipment efficiency. Therefore, an ideal transfer forecasting method should, while preserving the common regional power output patterns, enable the model to adapt to the local characteristics of the target domain sites at a low cost and output reliable day-ahead probability predictions.

[0070] Common transfer learning prediction methods include direct model transfer, capacity scaling, multi-site joint modeling, domain adaptation transfer, and full parameter fine-tuning. Direct model transfer typically applies a model trained at the source site directly to the target site, or simply adjusts the input and output scales. Capacity scaling scales the prediction results based on the installed capacity relationship between the source and target sites. These methods are simple to implement and have low requirements for target site data, but they are insufficient in characterizing local differences between sites and struggle to represent nonlinear shifts caused by differences in roof orientation, shading conditions, and low-light response. Multi-site joint modeling trains a unified model by aggregating samples from multiple sites within a region, enabling the learning of common regional patterns using more data. However, when site heterogeneity is high, it can easily smooth out individual site characteristics.

[0071] Domain adaptation and feature alignment methods attempt to improve the model's cross-site transferability by reducing the difference in feature distribution between the source and target domains. These methods typically require constructing a distribution metric between the source and target domains, or designing additional alignment networks, discriminant networks, and regularization constraints. For distributed photovoltaic (PV) systems, data length, meteorological variable availability, sampling frequency, and missing data often vary across different sites. The differences between the source and target domains are not only reflected in statistical distribution but also in local physical conditions and equipment operating status. Therefore, simply relying on feature distribution alignment may fail to accurately capture the actual output deviation of the target domain sites and increase the complexity of model training and parameter management.

[0072] Full parameter fine-tuning is a common approach in transfer learning. It involves updating all parameters of a pre-trained model at the source site or region using a small number of historical samples from the target domain site. While this method can adapt to the target domain site to some extent, it faces engineering limitations in regional distributed photovoltaic (PV) prediction. First, deep probabilistic prediction models typically contain many network layers and parameters. If a complete fine-tuned model is maintained for each target domain site, the model storage, number of versions, and model maintenance costs will increase rapidly with the number of sites. Second, when the target domain site sample size is small, full parameter fine-tuning requires updating a large number of parameters in a high-dimensional parameter space, which can easily disrupt the regional commonalities already learned by the source model, leading to overfitting to a small number of samples. Third, distributed PV sites are frequently connected. If a full model update is performed every time new data is added to the target domain site, it increases the training and deployment burden, hindering the lightweight application of regional prediction systems.

[0073] In summary, the regional distributed photovoltaic day-ahead probability prediction technology has three main shortcomings: First, while methods such as direct transfer, capacity conversion, and unified modeling are simple to deploy, they struggle to simultaneously consider regional sharing patterns and local differences in the target domain sites, resulting in insufficient adaptability to the target domain sites. Second, methods such as domain adaptation and complex joint modeling have high requirements for data consistency, task construction, and training processes, making engineering implementation difficult in scenarios involving newly built sites and sites with weak data. Third, while full parameter fine-tuning possesses certain transfer capabilities, it requires updating and storing a large number of parameters for different target domain sites, leading to storage overhead, training overhead, and model maintenance pressure, and may weaken the generalization ability of the original pre-trained model under small sample conditions.

[0074] To address the technical issues, this application provides a distributed photovoltaic power output prediction method based on low-rank adaptive migration. This method can be executed by an execution entity such as a processor, server, or electronic device. Please refer to [link to relevant documentation]. Figures 1 to 3 The method includes the following steps:

[0075] S101: Divide multiple distributed photovoltaic sites into at least one site cluster, and determine the source domain site and the target domain site in each site cluster.

[0076] In this context, a site cluster refers to a set of distributed photovoltaic (PV) sites within a region that share similar power output patterns and meteorological response characteristics. Source domain sites refer to sites within the site cluster with relatively complete historical data and representative operational characteristics. Target domain sites refer to sites within the site cluster, excluding source domain sites, that require power output prediction. For example, target domain sites may include newly established sites, sites with limited historical data, sites with significant missing monitoring data, or sites unsuitable for training a complete deep prediction model independently.

[0077] Preferably, in some embodiments, the step of dividing multiple distributed photovoltaic sites into at least one site cluster includes: The first step is to normalize the historical power data of each distributed photovoltaic site to obtain the normalized power sequence of each distributed photovoltaic site.

[0078] Normalization refers to dividing the active power of each distributed photovoltaic site by the installed capacity of the site to eliminate the impact of differences in installed capacity between different sites on the analysis of operation mode.

[0079] As an example, each normalized power value in the normalized power sequence can be determined by the following formula: In the formula: For the site In the Heavenly Normalized power values ​​at each sampling time; For the site In the Heavenly Active power at each sampling time; For the site The installed capacity.

[0080] The second step is to extract the daily peak time characteristics of each distributed photovoltaic site based on the normalized power sequence, and calculate the statistical characteristics of the daily peak time characteristics.

[0081] Among them, the daily peak time characteristic is used to reflect the output phase difference of each distributed photovoltaic site. For example, different component orientations, different installation tilt angles, or local shading conditions may cause the peak to occur at different times.

[0082] Specifically, the following steps can be used to extract the daily peak time characteristics of each distributed photovoltaic site based on the normalized power sequence, and to calculate the statistical characteristics of the daily peak time characteristics: The first sub-step involves determining the daily peak time of each distributed photovoltaic (PV) site on each historical day based on the normalized power sequence, thereby obtaining the daily peak time sequence of each distributed PV site and forming the daily peak time characteristics.

[0083] As an example, the daily peak time can be determined by the following formula: In the formula: For the site In the The peak time of the day; For the site In the Heavenly Normalized power values ​​at each sampling time; This indicates the search for the sampling moment that maximizes the function. The operation.

[0084] The second sub-step involves calculating the statistical characteristics of the daily peak time for each distributed photovoltaic site based on the daily peak time characteristics. The statistical characteristics include the mean and fluctuation of the daily peak time sequence.

[0085] The mean of the daily peak time sequence is used to describe the overall characteristic of the output curve of each distributed photovoltaic (PV) site being earlier or later than usual. The degree of fluctuation of the daily peak time sequence is used to describe the stability of the output pattern of each distributed PV site; the greater the fluctuation, the more unstable the peak occurrence time is under different weather conditions.

[0086] As an example, the mean of the daily peak time sequence can be determined by the following formula: In the formula: For the site The mean of the daily peak time sequence; For the site Valid historical days; For the site In the The peak time of the day.

[0087] The degree of fluctuation in the daily peak time sequence can be determined by the following formula: In the formula: For the site The degree of fluctuation in the daily peak time sequence; For the site In the The peak time of the day; For the site The mean of the daily peak time sequence; For the site The effective number of historical days.

[0088] The third step involves selecting weak light samples from the normalized power sequence of each distributed photovoltaic site based on preset irradiance conditions, and calculating the weak light response index of each distributed photovoltaic site based on the weak light samples.

[0089] Among them, the low-light sample refers to the normalized power data corresponding to the sampling time when the irradiance is lower than the set threshold. Low-light conditions mainly occur in the early morning, evening, cloudy days, or under cloud cover. Under these conditions, the differences in component performance, installation tilt angle, shading conditions, and inverter start-up characteristics between different sites are more easily reflected. Therefore, the low-light response index extracted from the low-light condition data can more sensitively characterize the local differences between sites.

[0090] Specifically, based on preset irradiance conditions, weak light samples can be screened from the normalized power sequence of each distributed photovoltaic site through the following steps, and weak light response indicators of each distributed photovoltaic site can be calculated based on the weak light samples: The first sub-step involves identifying samples from each distributed photovoltaic site whose irradiance is below a preset irradiance threshold at the sampling time as weak light samples, thus obtaining a set of weak light samples for each distributed photovoltaic site.

[0091] As an example, the set of weak light samples can be determined by the following formula: In the formula: For the site A set of weak light samples; For the site At sampling time irradiance; This is the preset irradiance threshold.

[0092] The second sub-step involves calculating the low-light response index of each distributed photovoltaic site based on the normalized power value and irradiance at each sampling time in the low-light sample set of each distributed photovoltaic site.

[0093] Among them, the low light response index is used to represent the photoelectric conversion efficiency of each distributed photovoltaic site under low irradiance conditions, and indirectly reflects the low light performance of the components, the low power operation characteristics of the inverter, and the response capability under shading conditions.

[0094] As an example, the low-light response index can be determined by the following formula: In the formula: For the site Low-light response index; For the site A set of weak light samples; For the site At sampling time The normalized power value; For the site At sampling time Irradiance.

[0095] The fourth step is to determine the capacity scale characteristics of each distributed photovoltaic site based on the installed capacity of each distributed photovoltaic site, and combine the statistical characteristics of the daily peak time, the weak light response index and the capacity scale characteristics into a multi-dimensional operation feature vector of each distributed photovoltaic site.

[0096] Among them, the capacity scale feature is used to convert the absolute value of the installed capacity into a scale comparable to other features, avoiding the absolute value of the installed capacity directly dominating the site similarity judgment. The multi-dimensional operation feature vector can comprehensively describe the long-term operation characteristics of each distributed photovoltaic site from aspects such as intraday power output pattern, peak stability, weak light response capability, and capacity scale.

[0097] As an example, the multidimensional running feature vector can be determined by the following formula: In the formula: For the site The multidimensional operating feature vector; For the site The mean of the daily peak time sequence; For the site The degree of fluctuation in the daily peak time sequence; For the site Low-light response index; For the site The capacity scale characteristics, , For the site The installed capacity.

[0098] The fifth step is to standardize each multi-dimensional operating feature vector and then weight each standardized feature based on a preset feature weight matrix to obtain the weighted operating feature vector of each distributed photovoltaic site. In the preset feature weight matrix, the weight of the corresponding capacity scale feature is lower than the weight of the statistical feature of the corresponding daily peak time feature and the weight of the weak light response index.

[0099] The pre-defined feature weight matrix is ​​used to reduce the excessive influence of capacity-scale features on the judgment of the similarity of site operation patterns, while retaining the reference value of capacity differences for scaling the output of the prediction model. By making the weight of capacity-scale features lower than that of other features, site clustering can pay more attention to the shape of the power output curve and meteorological response characteristics, rather than simply dividing based on the size of the installed capacity.

[0100] Specifically, in some embodiments, the steps of standardizing each multi-dimensional operational feature vector and weighting the standardized features based on a preset feature weight matrix to obtain the weighted operational feature vector of each distributed photovoltaic site include: The first sub-step involves calculating the mean and standard deviation of each dimension of the operating characteristics based on the multidimensional operating characteristic vectors of all distributed photovoltaic sites.

[0101] For ease of description, assume that there are a total of [number] units in the area. There are 10 distributed photovoltaic (PV) sites, and the set of multidimensional operational feature vectors for all sites is as follows: The mean vector of each dimension of the operational characteristics is denoted as The vector sum and standard deviation are denoted as .

[0102] The second sub-step involves standardizing the multidimensional operational feature vectors based on the mean and standard deviation to obtain the standardized operational feature vectors for each distributed photovoltaic site.

[0103] As an example, the standardized running feature vector can be determined by the following formula: In the formula: For the site The standardized operational feature vector; For the site The multidimensional operating feature vector; This is the mean vector of the operational features in each dimension; is the standard deviation vector of each dimension of the operating characteristics.

[0104] The third sub-step involves weighting the features of each dimension of the standardized operation feature vector based on a preset feature weight matrix to obtain the weighted operation feature vector for each distributed photovoltaic site.

[0105] As an example, the preset feature weight matrix can be determined by the following formula: In the formula: The preset feature weight matrix; This indicates the construction of a diagonal matrix; , , , These are the weighting coefficients for the mean of the daily peak time sequence, the fluctuation degree of the daily peak time sequence, the weak light response index, and the capacity scale characteristics, respectively.

[0106] The weighted eigenvector can be determined by the following formula: In the formula: For the site The weighted operating feature vector; The preset feature weight matrix; For the site The standardized operating feature vector.

[0107] The sixth step is to cluster each distributed photovoltaic site based on the feature distance between each weighted running feature vector to obtain at least one site cluster.

[0108] Preferably, at least one site cluster can be obtained by clustering each distributed photovoltaic site based on the feature distance between each weighted running feature vector through the following steps: Based on the distance between each weighted operating feature vector and the cluster center of each site cluster, a partitioning clustering algorithm is used to cluster each distributed photovoltaic site to obtain at least one site cluster.

[0109] For example, for any site , and the Individual site clustering center The distance between them is defined as: ; In the formula, For the site The weighted operating feature vector; The partitioning clustering algorithm is as follows: based on the principle of minimum distance, the sites are grouped... Assigned to the nearest site cluster, i.e. This process yields at least one site cluster. Thus, through clustering, distributed photovoltaic sites with similar operating characteristics within a region can be grouped into the same site cluster, enabling the model trained on source domain site data to learn the common power output patterns of similar sites.

[0110] Furthermore, in some embodiments, the step of determining the source domain site in each of the above-mentioned site clusters includes: for each site cluster, determining the comprehensive evaluation value of each distributed photovoltaic site based on the data integrity index and the representativeness metric within the cluster, and determining the source domain site from the site cluster based on the comprehensive evaluation value.

[0111] Among them, the data integrity index is used to measure the quality of historical data of each distributed photovoltaic site; the more complete the data, the more suitable it is as a source domain site. The cluster representativeness metric is used to measure how closely the operating characteristics of each distributed photovoltaic site are similar to the overall operating characteristics of the cluster to which it belongs; the closer to the cluster center, the stronger the representativeness.

[0112] Preferably, the comprehensive evaluation value of each distributed photovoltaic site can be determined based on the data integrity index and the representativeness metric of each distributed photovoltaic site within the site cluster through the following steps: Source domain sites can then be determined from the site cluster based on the comprehensive evaluation value: The first sub-step involves determining the data integrity index for each distributed photovoltaic (PV) site based on its historical data missing rate. A lower historical data missing rate indicates more complete historical data for the corresponding site, making it more suitable as a source domain site.

[0113] As an example, the historical data missing rate can be determined by the following formula: In the formula: For the site Historical data missing rate; For the site The theoretical sample size within the historical observation window; For the site The number of missing samples within the historical observation window.

[0114] The second sub-step involves determining the intra-cluster representativeness metric for each distributed photovoltaic (PV) site based on the distance from its weighted operational feature vector to the cluster center of its respective site cluster. A smaller distance to the cluster center indicates that the corresponding site closely approximates the overall operational characteristics of its site cluster, and thus has stronger representativeness.

[0115] As an example, the intra-cluster representativeness measure can be determined by the following formula: In the formula: For the site The measure of intra-cluster representativeness; For the site The weighted operating feature vector; For the site The cluster center of the site cluster; This represents the Euclidean distance.

[0116] The third sub-step involves normalizing the data integrity index and the intra-cluster representativeness measure, and then weighting and summing the normalized data integrity index and intra-cluster representativeness measure to obtain the comprehensive evaluation value for each distributed photovoltaic site. As an example, the comprehensive evaluation value can be determined by the following formula:

[0117] In the formula: For the site The overall evaluation value; This refers to the data integrity index after normalization. This is a measure of intra-cluster representativeness after normalization. and These are preset weighting coefficients, used to adjust the importance of data integrity and cluster representativeness in the selection of source domain sites.

[0118] The fourth sub-step involves identifying the distributed photovoltaic (PV) site with the lowest overall evaluation value within the site cluster as the source site. For example, a source site can be represented as:

[0119] ; In the formula, Indicates the first A collection of sites within a site cluster Indicates the first The source domain sites selected from each site cluster; The target domain site set is represented as: ; In the formula, Indicates the first The set of target domain sites corresponding to each site cluster.

[0120] S102: Obtain the input features of the target domain stations, including meteorological forecast data and time-series coded data of the target domain stations.

[0121] Of course, this application is not limited to this. Preferably, the input features may further include information reflecting the operating status of the target domain sites, such as historical power data.

[0122] S103: Input the input features into the pre-trained prediction model. The pre-trained prediction model includes a first linear mapping layer. The first linear mapping layer has a basic parameter matrix and an incremental parameter matrix. The input features are mapped through the basic parameter matrix and the incremental parameter matrix respectively to obtain the mapping output of the first linear mapping layer. The basic parameter matrix is ​​trained using historical data from the source domain sites and remains fixed during the prediction process of the target domain sites; the number of parameters in the incremental parameter matrix is ​​less than the number of parameters in the basic parameter matrix, and the rank of the incremental parameter matrix is ​​less than the input and output dimensions of the basic parameter matrix.

[0123] The basic parameter matrix refers to the weight matrix in the first linear mapping layer, which is trained using historical data from the source domain stations and does not participate in parameter updates during subsequent predictions for the target domain stations. The basic parameter matrix preserves the meteorological response patterns and power output variation patterns shared by stations within the same cluster.

[0124] The incremental parameter matrix refers to the trainable weight matrix introduced in the first linear mapping layer specifically to adapt to the local power output differences of the target domain sites.

[0125] The incremental parameter matrix (also known as the LoRA module) has a much smaller number of parameters than the basic parameter matrix, and its rank is also much smaller than the input and output dimensions of the basic parameter matrix. By constraining the parameter differences of common patterns between the target domain sites and the source domain sites in a low-dimensional subspace, the target domain sites can learn local biases with only a small number of parameters updated, avoiding the need to perform a full parameter update in a high-dimensional parameter space.

[0126] The pre-trained prediction model refers to a deep time series prediction model formed by using the basic parameter matrix obtained by training with historical data from the source domain sites as the parameter basis and introducing an incremental parameter matrix in the first linear mapping layer.

[0127] Preferably, in some embodiments, the prediction model can be constructed in the following way: within a base model with a basic parameter matrix, for the same pre-selected linear mapping layer, the original basic parameter matrix of the layer is frozen, and an incremental parameter matrix is ​​introduced into the layer, so that the basic parameter matrix and the incremental parameter matrix work together to perform a linear transformation on the same input feature of the layer, thereby obtaining the prediction model.

[0128] The network structure of the base model can be any one of Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), Transformer network, or Temporal Fusion Transformer (TFT).

[0129] Preferably, in some embodiments, the incremental parameter matrix includes a first low-rank matrix and a second low-rank matrix, and the incremental parameter matrix is ​​expressed by the product of the first low-rank matrix and the second low-rank matrix, wherein the rank of the first low-rank matrix and the rank of the second low-rank matrix are both less than the input dimension and the output dimension of the basic parameter matrix.

[0130] The incremental parameter matrix in the first linear mapping layer is determined based on the product of the first low-rank matrix and the second low-rank matrix. Thus, by decomposing the incremental parameter matrix into the product of two low-rank matrices, the parameter differences of the common laws of the target domain stations relative to the source domain stations can be constrained and expressed in a low-dimensional subspace, thereby enabling the learning of the local power output deviation of the target domain stations with a very small number of parameters.

[0131] Specifically, in some embodiments, the step of determining the incremental parameter matrix in the first linear mapping layer based on the product of the first low-rank matrix and the second low-rank matrix includes: The first sub-step is to obtain the preset scaling factor and the preset low rank number.

[0132] The preset scaling factor controls the influence of the incremental parameter matrix on the basic feature flow, and the preset low-rank number controls the dimension of the low-rank subspace of the incremental parameter matrix. The preset low-rank number is much smaller than the input and output dimensions of the basic parameter matrix.

[0133] The second sub-step determines the increment parameter matrix based on the scaling factor, the low-rank number, the first low-rank matrix, and the second low-rank matrix. As an example, the increment parameter matrix can be determined by the following formula:

[0134] In the formula: This is the incremental parameter matrix; This is the preset scaling factor; This is a preset low-rank number; It is the second low-rank matrix. ; This is the first low-rank matrix. ; The input dimension of the basic parameter matrix; It is the output dimension of the basic parameter matrix, and satisfies .

[0135] It is understandable that the product of the first low-rank matrix and the second low-rank matrix is ​​an example of an incremental parameter matrix. In other embodiments, the incremental parameter matrix can also be expressed in a low-parameter structure such as a diagonal matrix, a sparse matrix, or a tridiagonal matrix, as long as the number of parameters in the incremental parameter matrix is ​​significantly less than the number of parameters in the basic parameter matrix.

[0136] Based on the above embodiments, the step of mapping the input features using the basic parameter matrix and the incremental parameter matrix to obtain the mapping output of the first linear mapping layer includes: The first step is to add the basic parameter matrix and the incremental parameter matrix of the first linear mapping layer to obtain the effective weight matrix of the first linear mapping layer. For example, the effective weight matrix can be determined by the following formula: In the formula: This is the effective weight matrix; The fundamental parameter matrix in the first linear mapping layer; This is the incremental parameter matrix.

[0137] Specifically, in some embodiments, the first mapping component and the second mapping component in the mapping output can be determined by the following formula: In the formula: For mapping output; This is the first mapping component; This is the second mapping component; The features are input to the first linear mapping layer.

[0138] The second step is to map the features input to the first linear mapping layer based on the effective weight matrix, and obtain the mapping output of the first linear mapping layer. The mapping output consists of a first mapping component and a second mapping component. The first mapping component is the result of mapping the features to the basic parameter matrix, and the second mapping component is the result of mapping the features to the incremental parameter matrix.

[0139] It is necessary to clarify that the effective weight matrix refers to the complete weight matrix used by the first linear mapping layer in the actual forward computation after combining the basic parameter matrix and the incremental parameter matrix.

[0140] The first mapping component represents the cluster-wide commonality prediction capability inherited by the target domain sites, and is directly mapped from a fixed base parameter matrix. The second mapping component represents the low-rank incremental features corresponding to the local differences of the target domain sites, and is mapped from a trainable incremental parameter matrix. By decomposing the mapping output into two parts, the local bias of the target domain sites is restricted to a low-dimensional subspace for expression.

[0141] Preferably, in some embodiments, the first linear mapping layer is a query projection matrix layer, key projection matrix layer, or value projection matrix layer of the multi-head temporal attention mechanism in a pre-trained prediction model.

[0142] Among them, the multi-head temporal attention mechanism is used to establish the temporal correlation between the historical sequence and the prediction period. The query projection matrix layer, the key projection matrix layer, and the value projection matrix layer are responsible for mapping the input features into query vectors, key vectors, and value vectors, respectively. The three types of projection matrix layers are more sensitive to the local differences of distributed photovoltaic sites and are suitable as the first linear mapping layer to receive the low-rank incremental parameters of the target domain sites.

[0143] It is understandable that the query projection matrix layer, key projection matrix layer, or value projection matrix layer of a multi-head temporal attention mechanism are examples of the first linear mapping layer. In other embodiments, the first linear mapping layer can also be a feature weighting layer, gated linear unit layer, or fully connected layer of a feedforward network in a pre-trained prediction model's variable selection network. For temporal prediction networks that do not contain attention structures, such as LSTM or GRU, the first linear mapping layer can also be an input mapping layer, a gated mapping layer, or a feature projection layer before output. The core is to add an incremental parameter matrix transfer method to the key feature routing layer while keeping the basic parameter matrix fixed, rather than being limited to a specific network structure or specific layer type.

[0144] S104: Determine the power output prediction results of the target domain stations based on the mapping output of the first linear mapping layer.

[0145] For example, the output forecast result can be the day-ahead probability forecast result.

[0146] Preferably, in some embodiments, the output prediction result of the target domain station can be determined by the following steps based on the mapping output of the first linear mapping layer: On the one hand, in response to the lack of effective historical measured power data accumulated at the target domain sites, the incremental parameter matrix is ​​initialized to a zero matrix, and the input features are mapped based on the basic parameter matrix to obtain the mapping output of the first linear mapping layer.

[0147] Specifically, the incremental parameter matrix is ​​initialized to a zero matrix so that when the target domain sites have not yet accumulated effective historical measured power data, the incremental parameter matrix does not cause additional perturbation to the basic parameter matrix, and the forward inference results of the pre-trained prediction model are consistent with the output of the corresponding basic parameter matrix of the source domain sites that directly inherit from the same cluster.

[0148] The initialization method can be asymmetric initialization, specifically initializing the first low-rank matrix as a random matrix and the second low-rank matrix as a zero matrix, so that the incremental parameter matrix is ​​a zero matrix in the initial state. For example, this applies to the set of all linear mapping layers into which the incremental parameter matrix is ​​injected in the pre-trained prediction model described above. The first in For a linear mapping layer, the above initialization can be determined by the following formula:

[0149] In the formula: For target domain sites In the The first low-rank matrix in a linear mapping layer The line, number Column elements, each element is sampled independently and identically distributed; This indicates that the mean is 0 and the variance is 0. The normal distribution; The initial variance is the preset value; To and The corresponding second low-rank matrix is ​​initialized as a zero matrix that matches its dimension; This refers to the set of all linear mapping layers in the pre-trained prediction model that have the aforementioned incremental parameter matrix and the aforementioned basic parameter matrix.

[0150] In this way, even in the absence of local historical power samples, target domain sites can obtain day-ahead power prediction results based on the basic parameter matrix trained from source domain sites in the same cluster.

[0151] On the other hand, in response to the accumulation of effective historical measured power data of the target domain stations, a small sample training set of the target domain stations is constructed using the historical power data, meteorological forecast data and time-series coding data accumulated by the target domain stations. Under the condition of keeping the parameter values ​​of the basic parameter matrix fixed, the parameters of the incremental parameter matrix are updated only based on the small sample training set. The updated incremental parameter matrix is ​​loaded, and the input features are mapped based on the basic parameter matrix and the updated incremental parameter matrix to obtain the mapping output of the first linear mapping layer.

[0152] The objective function for parameter updates includes a multi-time quantile loss term and a parameter drift regularization term. The parameter drift regularization term is used to limit the parameter update magnitude of the incremental parameter matrix during the parameter update process of small samples of target domain sites, so as to prevent the incremental parameter matrix from deviating too far from the basic parameter matrix when the number of target domain site samples is too small, thereby weakening the common patterns of the same cluster sites already learned in the basic parameter matrix.

[0153] As an example, the parameter drift regularization term is the weighted sum of the squared Frobenius norms of the products of the first and second low-rank matrices in each linear mapping layer configured with incremental parameter matrices. Here, the squared Frobenius norm is the sum of the squares of all elements in the matrix, providing a comprehensive measure of the overall size of the incremental parameter matrix.

[0154] In some embodiments, the objective function for parameter updates is constructed as follows: The first step involves calculating the prediction loss of the incremental parameter matrix at the current parameter values ​​using the quantile loss function, based on a small training set.

[0155] The second step involves calculating the parameter drift regularization term based on the first and second low-rank matrices corresponding to each linear mapping layer configured with incremental parameter matrices.

[0156] The third step involves adding the prediction loss to the parameter drift regularization term to obtain the objective function. As an example, the objective function can be determined by the following formula:

[0157] In the formula: The objective function is... For a small training set; The input feature samples are from the small training set; For the corresponding small sample training set The measured output sequence; For multi-period quantile loss; This refers to the prediction function corresponding to the pre-trained prediction model; To maintain a fixed base parameter matrix after training; This is the incremental parameter matrix; The preset regularization coefficient; It is the set of all linear mapping layers in a pre-trained prediction model that have both incremental and basic parameter matrices. for The first in One linear mapping layer; and Target domain sites In the The second low-rank matrix and the first low-rank matrix in each linear mapping layer; It is the square of the Frobenius norm.

[0158] Additionally, it's important to note that as the target domain sites operate within the grid, they gradually accumulate a small amount of historical measured power data. Once the target domain sites possess a sufficient number of valid samples, the entire pre-trained prediction model is no longer updated with all parameters; instead, only the incremental parameter matrix is ​​updated. This approach ensures that when absorbing local sample information, the target domain sites do not deviate excessively from the common patterns already learned in the pre-trained prediction model.

[0159] When updating parameters for small samples, since the basic parameter matrix remains fixed, only the incremental parameter matrix is ​​updated. The parameter update of the incremental parameter matrix can be determined by the following formula: In the formula: For target domain sites The corresponding incremental parameter matrix; This indicates parameter assignment; The learning rate; For the objective function about The gradient.

[0160] Preferably, in some embodiments, in response to the normalized power prediction value of the mapping output of the first linear mapping layer, the mapping output is restored from the normalized power scale to the actual power scale based on the installed capacity of the target domain site to obtain the actual power prediction result of the target domain site; and the output prediction result of the target domain site is determined based on the actual power prediction result.

[0161] Preferably, in some embodiments, the pre-trained prediction model is configured with multiple preset quantile levels; for example, the preset quantile levels can be set to 0.05, 0.50, and 0.95. The predicted value corresponding to quantile level 0.50 can be used as the center prediction result of the day-ahead output of the target domain site, while the predicted values ​​corresponding to quantile levels 0.05 and 0.95 constitute the lower and upper boundaries of the prediction interval, respectively, jointly describing the prediction uncertainty.

[0162] The steps for determining the power output prediction results of the target domain stations based on the mapping output of the first linear mapping layer include: The first sub-step involves determining the actual power prediction values ​​of the target domain sites at each quantile level based on the mapping output of the first linear mapping layer.

[0163] The second sub-step involves determining the actual power prediction result based on the actual power prediction values ​​at each quantile level. As an example, the actual power prediction result can be determined using the following formula:

[0164] In the formula: For target domain sites In the The predicted time, the first Actual power prediction results at each quantile level; For target domain sites The installed capacity; For the corresponding target domain site in the mapping output In the The predicted time, the first Normalized power predictions at each quantile level.

[0165] The third sub-step involves determining the power output prediction results for the target domain stations based on the actual power prediction results. As an example, the power output prediction results can be determined using the following formula:

[0166] In the formula: For target domain sites The output prediction interval sequence; and Target domain sites In the Prediction time, lower quantile level and upper quantile level Actual power prediction results; The preset lower quantile level; The preset upper quantile level; The predicted time domain length is given by the current date.

[0167] In some embodiments, the basic parameter matrix is ​​obtained through the following steps.

[0168] The first step is to construct a source domain training sample set based on historical power data, meteorological forecast data, and time-series coding data from source domain stations.

[0169] Let the source domain training sample set of the source domain sites be . ,in, Indicates the first One day ago, the predicted input sample, This represents the corresponding measured force sequence. This indicates the number of effective samples available for training from the source domain sites. Input samples can consist of information available before the forecast date, such as historical power data, weather forecast data, and time-series coded data. The measured power output sequence is the photovoltaic power output sequence corresponding to the forecast date.

[0170] The second step involves using the source domain training sample set and multiple preset quantile levels to measure the deviation between the predicted value and the actual output value at each quantile level using the quantile loss function. The quantile losses at each quantile level are then aggregated to obtain the multi-time period quantile losses.

[0171] For example, the set of quantile levels can be set as follows: ,in, Indicates the first quantile level, This represents the number of quantile levels. Let the time domain length of the day-ahead forecast be... Then the output of the prediction model can be expressed as ,in, Indicates the future number At the quantile level, the predicted time point The predicted power output value is obtained by using the results at different quantile levels. The probability boundary of the predicted daily power output can be formed, enabling the prediction model to learn not only the central trend of power output, but also the fluctuation range of the same cluster of stations under different weather conditions.

[0172] Specifically, in some embodiments, the step of aggregating the quantile losses at each quantile level to obtain the multi-time-period quantile losses includes: The first sub-step involves calculating the quantile loss for each quantile level, based on the difference between the predicted and actual output values ​​of each training sample in the source domain training sample set. As an example, the quantile loss can be determined using the following formula:

[0173] In the formula: quantile level The quantile loss below; The difference between the actual output value and the predicted value. ; For the first The actual output value at each predicted moment; For the first Prediction time, quantile level The predicted value is below.

[0174] The second sub-step involves aggregating and averaging the quantile losses across all quantile levels and all prediction times to obtain the multi-time quantile loss. As an example, the multi-time quantile loss can be determined using the following formula:

[0175] In the formula: For multi-period quantile loss; The current time domain length is the predicted time domain length. The number of quantile levels; quantile level The quantile loss function below; For the first The actual output value at each predicted moment; For the first Prediction time, quantile level The predicted value is below.

[0176] The third step involves optimizing the parameters corresponding to the basic parameter matrix, with the goal of minimizing the multi-time-period quantile loss, to obtain the trained basic parameter matrix. The trained basic parameter matrix can be determined by the following formula:

[0177] ; In the formula, Indicates the first A cluster of sites in the base model The basic parameter matrix obtained from the training Represented as a base model by The prediction function, with parameters, is used to map input features to a predicted output force sequence. This relates to the aforementioned base model. , can be represented as ;

[0178] Thus, through the training process, the basic parameter matrix obtained after training preserves the common predictive capabilities of the source domain stations learned from complete historical samples, including the driving relationship between meteorological variables and photovoltaic output, the basic shape of the intraday output curve, and the basic boundaries of the prediction interval.

[0179] Finally, it is necessary to note that the power output prediction results obtained from the above steps can be evaluated using Normalized Mean Absolute Error (NMAE), Prediction Interval Coverage Probability (PICP), and Prediction Interval Normalized Average Width (PINAW).

[0180] Among them, NMAE is used to measure the deviation between the center prediction result and the actual output. The smaller the value, the higher the prediction accuracy. PICP represents the proportion of samples whose actual output falls into the prediction interval. In this embodiment, 0.05 and 0.95 quantiles are used to construct a prediction interval with a nominal coverage of 90%. PINAW is used to measure the normalized average width of the prediction interval. Under the premise of meeting the coverage requirements, the smaller the value, the tighter the prediction interval.

[0181] The implementation process and effects of the distributed photovoltaic power output prediction method based on low-rank adaptive migration are described below with reference to a specific embodiment.

[0182] In one specific embodiment, multiple distributed photovoltaic (PV) sites within the Desert Knowledge Australia Solar Centre (DKASC) in Alice Springs, Northern Territory, Australia, were selected as the implementation targets. These distributed PV sites in the region are characterized by inconsistent installed capacity, dispersed spatial distribution, significant differences in operational status, and varying degrees of historical measurement data completeness. This reflects a typical scenario in actual power distribution networks characterized by a large number of distributed PV sites, wide distribution, and uneven data quality.

[0183] Data sources for regional distributed photovoltaic (PV) sites include historical power data, historical numerical weather forecast data, installed capacity data, and corresponding time information for each site. The original data covers daytime operation data from January 1, 2024 to August 19, 2025, with an original sampling resolution of 5 minutes. During day-ahead forecasting modeling and evaluation, the forecast time resolution is uniformly set to 15 minutes to meet the time scale requirements for regional distributed PV output forecasting under day-ahead dispatching scenarios.

[0184] During implementation, the validity of distributed photovoltaic (PV) sites within the region was first screened, ultimately retaining 23 sites with valid measurement data for regional day-ahead probability prediction and low-rank adaptive migration implementation. Furthermore, in the daily-scale sample screening, invalid operating samples with daily average output below 3% of installed capacity were removed. This process ensured that subsequent migration modeling was primarily based on valid samples exhibiting true output change characteristics.

[0185] according to Figure 1 The method involves constructing multidimensional operational feature vectors for 23 distributed photovoltaic (PV) sites. These vectors include information such as the mean of the daily peak time sequence, the degree of fluctuation in the daily peak time sequence, low-light response indicators, and capacity-scale characteristics. These features allow for the characterization of operational differences among different distributed PV sites in terms of intraday power output patterns, power output phase differences, low-irradiance response capabilities, and capacity scale.

[0186] After obtaining the multi-dimensional operational feature vectors of each site, feature clustering is performed on the distributed photovoltaic sites within the region. In this embodiment, 23 valid sites are divided into 4 site clusters with similar operational patterns. Each site cluster represents a set of distributed photovoltaic sites with similar power output patterns and meteorological response characteristics. Compared to directly dividing by geographical location or installed capacity, this method can better highlight the similarity between the actual operating curves and meteorological response behaviors of the sites.

[0187] Within each site cluster, source domain sites are further selected based on site data integrity metrics and cluster representativeness metrics. Source domain sites are used to train the basic parameter matrix, therefore requiring relatively complete historical measurement data and running features close to the overall feature center of their respective site cluster. In addition to source domain sites, other sites within the same cluster serve as target domain sites for subsequent low-rank adaptive migration.

[0188] The composition of the regional samples and the domain division results in this embodiment are shown in Table 1 below: Data set Division rules quantity Full list of available sites Retain available sites after excluding abnormal sites 23 stations Cluster represents the complete set of bases One representative site is selected from each site cluster as the source domain site. 4 stations LoRA migration set Non-representative stations within the same cluster are the target migration objects. 19 stations Active Day Evaluation Sample Daily samples from target stations with excessively low average daily output were excluded. 88 stations Specifically, the source domain sites and target domain sites of the four site clusters are divided as shown in Table 2 below: Site Cluster Number Source Domain Site Target domain site Total number of stations cluster0 site20 site12, site31, site33, site36, site4 6 cluster1 site13 site11, site14, site16A, site23, site7 6 cluster2 site25 site18, site21, site24, site35, site37 6 cluster3 site17 site1A, site29, site30, site38 5 total 4 source domain sites 19 target domain sites 23 As can be seen from the above division, each site cluster in this embodiment contains one source domain site and several target domain sites. The source domain sites are used to train the basic parameter matrix of the corresponding site cluster, while the target domain sites do not train a complete model from scratch on their own. Instead, they perform low-rank adaptive transfer on the basis of the model trained by the source domain site data in the same cluster.

[0189] In this embodiment, the base model employs a Temporal Fusion Transformer (TFT). The inputs to the base model include historical active power, numerical weather prediction variables, and time-series encoded data. The historical input window length is set to 96 time points, corresponding to a 24-hour historical sequence; the day-ahead prediction time domain length is set to 96 future time points, with a time resolution of 15 minutes. The TFT hidden layer dimension is set to 64, the number of multi-head temporal attention heads is set to 4, and the number of network stacking layers is set to 2. The prediction model outputs day-ahead power output predictions at three quantile levels: 0.05, 0.50, and 0.95.

[0190] Incremental parameter matrices are injected into the feature weighting layer of the TFT variable selection network, as well as the query projection matrix layer, key projection matrix layer, and value projection matrix layer of the multi-head temporal attention mechanism. The preset low-rank number is set to 4, and the preset scaling factor is set to 8. When updating target domain site parameters, the basic parameter matrix is ​​kept fixed, and only the incremental parameter matrix is ​​updated; the first low-rank matrix is ​​randomly initialized, and the second low-rank matrix is ​​initialized to zero. The learning rate for few-sample parameter updates is set to 5×10. -4 The default regularization coefficient is set to 0.01, and the objective function for parameter update adopts the joint loss of multi-time quantile loss and parameter drift regularization term.

[0191] After completing the division of the source and target domain sites for regional distributed photovoltaic (PV) sites, this embodiment conducts day-ahead probability prediction verification for 19 target domain sites. The local historical sample lengths for the target domain sites are set to 0 days, 7 days, 14 days, 30 days, and 60 days, respectively, to simulate the process of target domain sites accumulating data gradually from cold start to small sample size. Under the condition of using the same model trained with source domain site data and the same test samples, the following four comparison methods are set: Capacity Scaling: The prediction results are proportionally converted according to the installed capacity relationship between the source domain sites and the target domain sites without updating parameters; Direct Transfer: The model trained with source domain site data in the same cluster is directly used for prediction of target domain sites without updating parameters using historical samples of target domain sites; Full Fine-Tuning (Full FT): The model trained with source domain site data is used as the initial model, and all trainable parameters are updated using local samples of target domain sites; Low-rank adaptive fine-tuning: The basic parameter matrix is ​​kept fixed, and only the incremental parameter matrix is ​​updated using local samples of target domain sites.

[0192] When the local historical samples of the target domain site are 0 days, due to the lack of measured samples available for parameter optimization, capacity scaling and direct migration are used as the zero-sample cold start baseline. According to the asymmetric initialization method of this embodiment, the incremental parameter matrix is ​​a zero matrix during initialization. Therefore, the low-rank adaptive model in the zero-sample stage is equivalent to the model trained with source domain site data by directly inheriting from the same cluster, and its prediction results correspond to the direct migration results in the table below.

[0193] The prediction results for different sample lengths are shown in Table 3 below, and the trend of the indicators is as follows: Figure 4 As shown: Training days Training mode NMAE PICP PINAW 0 days Capacity Scaling 9.08% 81.25% 27.16% 0 days Direct Transfer 8.14% 81.25% 27.16% 7 days LoRA 6.65% 88.54% 22.82% 7 days Full FT 6.87% 85.42% 26.65% 14 days LoRA 6.02% 90.56% 22.88% 14 days Full FT 6.33% 91.67% 22.87% 30 days LoRA 4.83% 92.47% 22.88% 30 days Full FT 4.95% 92.67% 22.87% 60 days LoRA 4.73% 95.31% 19.68% 60 days Full FT 4.76% 95.83% 20.47% As shown in the table above, when there are no local historical samples at the target domain sites, capacity scaling and direct migration can only provide cold start prediction results, with NMAEs of 9.08% and 8.14%, respectively, indicating relatively high prediction errors. This suggests that relying solely on capacity relationships or directly reusing models trained from source domain site data is insufficient to adequately adapt to the local power output differences at the target domain sites.

[0194] As the number of local samples from target domain sites gradually increases, the prediction error of the distributed photovoltaic power output prediction method based on low-rank adaptive migration (LoRA method) provided in this application embodiment decreases overall. When the number of local samples increases from 7 days to 60 days, the NMAE of the LoRA method decreases from 6.65% to 4.73%, the PICP increases to 95.31%, and the PINAW decreases to 19.68%. These changes indicate that the incremental parameter matrix can gradually learn local differences with the introduction of a small number of target domain site samples, making the prediction center closer to the actual power output while maintaining good probability interval coverage.

[0195] Compared to the full-parameter fine-tuning method, the LoRA method achieved similar prediction performance across multiple sample lengths. For example, with a 60-day sample condition, the NMAE of the LoRA method was 4.73%, while that of the full-parameter fine-tuning method was 4.76%; the PICP of the LoRA method was 95.31%, while that of the full-parameter fine-tuning method was 95.83%. While the prediction performance was close, the PINAW of the LoRA method was 19.68%, slightly lower than the 20.47% of the full-parameter fine-tuning method, indicating that it maintained interval coverage while providing a more compact prediction interval.

[0196] Further comparison of the parameter efficiency of different migration methods is shown in Table 4 below: As shown in the table above, while capacity scaling and direct migration methods do not require additional parameters, they lack target domain site adaptation capabilities. Full parameter fine-tuning can adapt to target domain sites, but it requires updating and saving parameters of a near-complete model. In contrast, low-rank adaptive fine-tuning only updates 3,800 parameters with a storage overhead of 18KB, significantly reducing parameter overhead while maintaining good prediction performance.

[0197] In summary, this embodiment demonstrates that the distributed photovoltaic output prediction method based on low-rank adaptive migration provided in this application can gradually improve the day-ahead probability prediction effect when the historical samples of target domain sites are limited, and achieve a good balance between prediction accuracy, probability interval reliability and parameter storage overhead. It is suitable for lightweight migration prediction scenarios of regional distributed photovoltaic multi-target domain sites.

[0198] In summary, based on Figure 1The distributed photovoltaic power output prediction method based on low-rank adaptive migration shown in this application has at least the following technical advantages: 1. By having a basic parameter matrix and an incremental parameter matrix in the first linear mapping layer of the prediction model, and configuring the basic parameter matrix to be obtained by training with historical data from the source domain sites and keeping it fixed during the prediction process of the target domain sites, the common output patterns of the same cluster that the prediction model has learned will not be modified during the transfer training of the target domain sites.

[0199] Building upon this, by ensuring that the number of parameters in the incremental parameter matrix is ​​less than that in the base parameter matrix, and that the rank of the incremental parameter matrix is ​​less than the input and output dimensions of the base parameter matrix, parameter updates for target domain sites can be confined to a low-dimensional subspace defined by the incremental parameter matrix. In this way, when updating parameters using a small number of samples from target domain sites, the update operation only applies to the incremental parameter matrix, and the common prediction knowledge carried by the base parameter matrix remains unaffected. Therefore, on the one hand, this avoids the destruction of existing regional common prediction capabilities due to full parameter updates under small sample conditions, maintaining the generalization ability of the base model; on the other hand, it effectively reduces the number of trainable parameters that need to be stored and updated for each target domain site, thereby reducing parameter storage and training overhead in multi-site regional deployments.

[0200] 2. By setting the incremental parameter matrix as the product of a first low-rank matrix and a second low-rank matrix, and ensuring that the ranks of both the first and second low-rank matrices are less than the input and output dimensions of the basic parameter matrix, the local power output difference between the target domain site and the source domain site can be constrained within a low-dimensional subspace spanned by the first and second low-rank matrices. Therefore, the nonlinear power output deviation between the target domain site and the source domain site can be modeled with far fewer parameters than a full-rank matrix. This allows the prediction model formed by the transfer to capture local power output characteristics even with limited historical samples of the target domain site, overcoming the problem that direct transfer cannot adapt to local biases in the target domain site.

[0201] 3. By constructing a multi-dimensional operational feature vector that includes statistical features of daily peak time characteristics, weak light response indicators, and capacity-scale features, and by weighting the standardized operational features of each dimension so that the weight of capacity-scale features is lower than that of statistical features of daily peak time characteristics and weak light response indicators, the interference of installed capacity differences on the measurement of similarity of site operation patterns can be reduced. This allows the site clustering process to be mainly based on the output curve shape and meteorological response characteristics. In this way, distributed photovoltaic sites with similar output patterns and meteorological response patterns can be grouped into the same site cluster. The common output patterns learned by the basic parameter matrix of source domain sites within the same cluster can be well applied to target domain sites within the cluster. This avoids the problem of smoothing local features of a single site due to heterogeneous sites with large differences in mixed output patterns caused by traditional unified modeling.

[0202] 4. By initializing the incremental parameter matrix to a zero matrix in response to the lack of valid historical measured power data for the target domain sites, the incremental mapping component provided by the incremental parameter matrix is ​​zero. Therefore, the prediction results for the target domain sites in the zero-sample stage are entirely determined by the mapping results of the basic parameter matrix. Consequently, newly built sites do not need to accumulate any local historical power data; they can directly inherit the common power output patterns learned by the base model of the same source domain cluster, achieving zero-sample cold-start prediction.

[0203] By responding to the accumulation of effective historical measured power data at target domain sites, and while keeping the parameter values ​​of the basic parameter matrix fixed, the incremental parameter matrix is ​​updated only using a small training set of target domain sites. Furthermore, a parameter drift regularization term is introduced into the objective function of the parameter update to limit the magnitude of the incremental parameter matrix update. This allows target domain sites to absorb local sample information without excessively deviating from the common patterns learned in the source domain base model. Based on this, as local historical samples from target domain sites gradually accumulate, the predictive capability can smoothly transition from pure common-based prediction to a prediction state combining common base model and local adaptation, with the prediction effect continuously improving as the sample size increases.

[0204] 5. By configuring multiple preset quantile levels for the prediction model and determining the actual power prediction values ​​of target domain stations at each quantile level based on the mapping output of the first linear mapping layer, the prediction model can simultaneously output power output prediction results corresponding to different quantile levels. Therefore, the power output prediction results for target domain stations can not only provide a point estimate of future power output but also a prediction range for prediction uncertainty, providing richer probabilistic information for the formulation of operation plans and the arrangement of reserve capacity in day-ahead power grid dispatch.

[0205] 6. By determining the comprehensive evaluation value based on the data integrity index and the representativeness measure of each distributed photovoltaic site within the site cluster, and then determining the source domain sites from the site cluster based on the comprehensive evaluation value, the selected source domain sites can simultaneously possess high historical data quality and strong representativeness of intra-cluster operating characteristics.

[0206] Based on this, a source domain training sample set is constructed using historical power data, meteorological forecast data, and time-series coded data from source domain sites. The basic parameter matrix is ​​trained with the goal of minimizing the multi-time period quantile loss. This allows the basic parameter matrix to learn the common power output patterns of clustered distributed photovoltaic sites from source domain site samples with sufficient and typical data.

[0207] After inheriting the basic parameter matrix, the target domain site can obtain a predictive prior similar to its own operational characteristics, thus avoiding the problem of insufficient samples caused by the target domain site training a complete predictive model from scratch under limited historical sample conditions.

[0208] Please see Figure 5 Based on the same inventive concept as the distributed photovoltaic power output prediction method based on low-rank adaptive migration in the foregoing embodiments, this application provides a distributed photovoltaic power output prediction device based on low-rank adaptive migration, comprising: The site determination module 201 is used to divide multiple distributed photovoltaic sites into at least one site cluster, and determine the source domain site and the target domain site in each site cluster. The input feature acquisition module 202 is used to acquire the input features of the target domain stations. The input features include meteorological forecast data and time-series coded data of the target domain stations. The mapping output acquisition module 203 is used to input the input features into a pre-trained prediction model. The prediction model includes a first linear mapping layer, which has a basic parameter matrix and an incremental parameter matrix. The input features are mapped through the basic parameter matrix and the incremental parameter matrix respectively to obtain the mapping output of the first linear mapping layer. The basic parameter matrix is ​​trained with historical data from the source domain sites and remains fixed during the prediction process of the target domain sites. The number of parameters in the incremental parameter matrix is ​​less than the number of parameters in the basic parameter matrix, and the rank of the incremental parameter matrix is ​​less than the input dimension and output dimension of the basic parameter matrix. The prediction result determination module 204 is used to determine the output prediction result of the target domain station based on the mapping output of the first linear mapping layer.

[0209] In some possible implementations of the first aspect, the incremental parameter matrix includes a first low-rank matrix and a second low-rank matrix, the incremental parameter matrix being expressed by the product of the first low-rank matrix and the second low-rank matrix, wherein the rank of the first low-rank matrix and the rank of the second low-rank matrix are both less than the input dimension and the output dimension of the basic parameter matrix. The mapping output acquisition module 203 is specifically used for: The incremental parameter matrix in the first linear mapping layer is determined based on the product of the first low-rank matrix and the second low-rank matrix. The effective weight matrix of the first linear mapping layer is obtained by adding the basic parameter matrix and the incremental parameter matrix in the first linear mapping layer. Based on the effective weight matrix, the features input to the first linear mapping layer are mapped to obtain the mapping output of the first linear mapping layer. The mapping output consists of a first mapping component and a second mapping component. The first mapping component is the result of mapping the features using the basic parameter matrix, and the second mapping component is the result of mapping the features using the incremental parameter matrix.

[0210] In some embodiments, the first linear mapping layer is a query projection matrix layer, key projection matrix layer, or value projection matrix layer of the multi-head temporal attention mechanism in a pre-trained prediction model.

[0211] In some embodiments, the mapping output acquisition module 203 is further configured to: Get the preset scaling factor and the preset low rank number; The incremental parameter matrix is ​​determined based on the scaling factor, the low-rank number, the first low-rank matrix, and the second low-rank matrix.

[0212] In some embodiments, the site determination module 201 is specifically used for: The historical power data of each distributed photovoltaic site are normalized to obtain the normalized power sequence of each distributed photovoltaic site. Based on the normalized power sequence, the daily peak time characteristics of each distributed photovoltaic site are extracted, and the statistical characteristics of the daily peak time characteristics are calculated. Based on preset irradiance conditions, weak light samples are selected from the normalized power sequence of each distributed photovoltaic site, and weak light response index of each distributed photovoltaic site is calculated based on the weak light samples. Based on the installed capacity of each distributed photovoltaic site, the capacity scale characteristics of each distributed photovoltaic site are determined, and the statistical characteristics of the daily peak time, the weak light response index, and the capacity scale characteristics are combined into a multi-dimensional operation feature vector of each distributed photovoltaic site. The multi-dimensional operating feature vectors are standardized, and the standardized features are weighted based on the preset feature weight matrix to obtain the weighted operating feature vectors of each distributed photovoltaic site. In the feature weight matrix, the weight of the corresponding capacity scale feature is lower than the weight of the statistical feature of the corresponding daily peak time feature and the weight of the weak light response index. Based on the feature distance between each weighted operating feature vector, each distributed photovoltaic site is clustered to obtain at least one site cluster.

[0213] In some embodiments, the site determination module 201 is further configured to: Based on the normalized power sequence, the daily peak time of each distributed photovoltaic site on each historical day is determined, and the daily peak time sequence of each distributed photovoltaic site is obtained, forming the daily peak time feature. Based on the characteristics of daily peak times, the statistical characteristics of daily peak times for each distributed photovoltaic site are calculated. The statistical characteristics include the mean and the degree of fluctuation of the daily peak time sequence.

[0214] In some embodiments, the site determination module 201 is further configured to: The samples of each distributed photovoltaic site whose irradiance is lower than the preset irradiance threshold at the sampling time are identified as weak light samples, thus obtaining the weak light sample set of each distributed photovoltaic site. Based on the normalized power value and irradiance at each sampling time in the low-light sample set of each distributed photovoltaic site, the low-light response index of each distributed photovoltaic site is calculated.

[0215] In some embodiments, the site determination module 201 is further configured to: Based on the multidimensional operation feature vectors of all distributed photovoltaic sites, the mean and standard deviation of each dimension of operation feature are calculated; Based on the mean and standard deviation, the multidimensional operational feature vectors are standardized to obtain the standardized operational feature vectors of each distributed photovoltaic site. Based on the preset feature weight matrix, the features of each dimension of the standardized operation feature vector are weighted to obtain the weighted operation feature vector of each distributed photovoltaic site.

[0216] In some embodiments, the site determination module 201 is further configured to: Based on the distance between each weighted operating feature vector and the cluster center of each site cluster, a partitioning clustering algorithm is used to cluster each distributed photovoltaic site to obtain at least one site cluster.

[0217] In some embodiments, the prediction result determination module 204 is specifically used for: In response to the lack of valid historical measured power data accumulated at the target domain sites, the incremental parameter matrix is ​​initialized to a zero matrix, and the input features are mapped based on the basic parameter matrix to obtain the mapping output of the first linear mapping layer; In response to the accumulated effective historical measured power data of the target domain stations, a small sample training set of the target domain stations is constructed using the historical power data, meteorological forecast data, and time-series coded data accumulated by the target domain stations. Under the condition of keeping the parameter values ​​of the basic parameter matrix fixed, the parameters of the incremental parameter matrix are updated only based on the small sample training set. The updated incremental parameter matrix is ​​loaded, and the input features are mapped based on the basic parameter matrix and the updated incremental parameter matrix to obtain the mapping output of the first linear mapping layer. The objective function of parameter update includes a multi-time period quantile loss term and a parameter drift regularization term. The parameter drift regularization term is used to limit the parameter update amplitude of the incremental parameter matrix. In response to the normalized power prediction value of the mapping output of the first linear mapping layer, the mapping output is restored from the normalized power scale to the actual power scale based on the installed capacity of the target domain site, so as to obtain the actual power prediction result of the target domain site. Based on the actual power prediction results, the power output prediction results of the target domain stations are determined.

[0218] In some embodiments, the prediction model is configured with multiple preset quantile levels; the prediction result determination module 204 is further configured to: Based on the mapping output of the first linear mapping layer, the actual power prediction values ​​of the target domain stations at each quantile level are determined; The actual power prediction result is determined based on the actual power prediction value at each quantile level; Based on the actual power prediction results, the power output prediction results of the target domain stations are determined.

[0219] In some embodiments, the distributed photovoltaic power output prediction device based on low-rank adaptive migration further includes a basic parameter training module, which is used for: For each site cluster, the comprehensive evaluation value of each distributed photovoltaic site is determined based on the data integrity index and the representativeness measure of each distributed photovoltaic site within the site cluster, and the source domain sites are determined from the site cluster based on the comprehensive evaluation value. Based on historical power data, meteorological forecast data, and time-series coding data of source domain stations, a source domain training sample set is constructed. Based on the source domain training sample set and multiple preset quantile levels, the deviation between the predicted value and the actual output value at each quantile level is measured by the quantile loss function. The quantile losses at each quantile level are aggregated to obtain the multi-time period quantile loss. With the goal of minimizing the multi-time quantile loss, the parameters corresponding to the basic parameter matrix of the prediction model are optimized to obtain the basic parameter matrix after training.

[0220] In some embodiments, the basic parameter training module is specifically used for: Based on the historical data missing rate of each distributed photovoltaic site, the data integrity index of each distributed photovoltaic site is determined. Based on the distance from the weighted operating feature vector of each distributed photovoltaic site to the cluster center of its site cluster, the intra-cluster representativeness metric of each distributed photovoltaic site is determined. The data integrity index and the intra-cluster representativeness measure are normalized respectively. The normalized data integrity index and the intra-cluster representativeness measure are then weighted and summed to obtain the comprehensive evaluation value of each distributed photovoltaic site. The distributed photovoltaic site with the lowest comprehensive evaluation value within the site cluster is identified as the source domain site.

[0221] In some embodiments, the basic parameter training module is further used for: For each quantile level, the quantile loss is calculated based on the difference between the predicted value and the actual output value of each training sample in the source domain training sample set. The quantile losses at all quantile levels and at all prediction times are aggregated and averaged to obtain the multi-time quantile loss.

[0222] In some embodiments, the parameter drift regularization term is a weighted sum of the squares of the Frobenius norms of the products of the first low-rank matrix and the second low-rank matrix in each linear mapping layer configured with incremental parameter matrices.

[0223] It is understandable that the modules recorded in this distributed photovoltaic output prediction device based on low-rank adaptive migration are similar to... Figure 1 The steps described correspond to those in the distributed photovoltaic power output prediction method based on low-rank adaptive migration. Therefore, the operations, characteristics, and beneficial effects described above also apply to the distributed photovoltaic power output prediction device based on low-rank adaptive migration and its constituent modules, and will not be repeated here.

[0224] The modules described in some embodiments of this application can be implemented in software or hardware. The described modules can also be housed in a processing device. Furthermore, the names of these modules do not necessarily limit the module itself; for example, the site determination module 201 can also be described as a "site cluster and site determination module".

[0225] Please see Figure 6Based on the same inventive concept as the distributed photovoltaic output prediction method based on low-rank adaptive migration in the foregoing embodiments, this application provides an electronic device. This electronic device may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device includes a processing unit 301 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in ROM 302 (read-only memory) or a program loaded from storage device 308 into RAM 303 (random access memory). RAM 303 also stores various programs and data required for the operation of the electronic device. The processing unit 301, ROM 302, and RAM 303 are interconnected via a bus 304. An input / output interface (i.e., I / O interface 305) is also connected to the bus 304.

[0226] Typically, the following devices can be connected to I / O interface 305: input devices 306 including, for example, touch screens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 307 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 308 including, for example, magnetic tapes, hard disks, etc.; and communication devices 309. Communication device 309 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data.

[0227] In particular, embodiments of this application also provide a computer-readable storage medium storing a computer program, which is implemented when executed by the processing device 301. Figure 1 The method for predicting distributed photovoltaic output based on low-rank adaptive migration is shown.

[0228] The computer-readable medium described in some embodiments of this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. The computer-readable storage medium may be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CDROM), optical storage device, magnetic storage device, or any suitable combination thereof.

[0229] In some embodiments of this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In some embodiments of this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0230] Additionally, it is worth noting that the computer-readable medium may be included in the electronic device or may exist independently without being assembled into the electronic device.

[0231] In particular, some embodiments of this application also provide a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowchart. Exemplarily, the program code may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages—such as Java, Smallport, and C++—and conventional procedural programming languages—such as the "C" language or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a standalone software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server.

[0232] In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network (e.g., a local area network (LAN) or a wide area network (WAN)), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider). In some such embodiments, the computer program can be downloaded and installed from a network via the aforementioned communication device 309, or installed from the aforementioned storage device 308, or installed from the aforementioned ROM 302. When the computer program is executed by the aforementioned processing device 301, it performs the functions defined in some embodiments of this application.

[0233] Finally, it is necessary to note that the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0234] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

Claims

1. A distributed photovoltaic power output prediction method based on low-rank adaptive migration, characterized in that, Includes the following steps: Multiple distributed photovoltaic sites are divided into at least one site cluster, and source domain sites and target domain sites are determined in each site cluster; The input features of the target domain stations are obtained, including meteorological forecast data and time-series coded data of the target domain stations; The input features are input into a pre-trained prediction model. The prediction model includes a first linear mapping layer, which has a base parameter matrix and an incremental parameter matrix. The input features are mapped using the base parameter matrix and the incremental parameter matrix, respectively, to obtain the mapping output of the first linear mapping layer. The base parameter matrix is ​​trained using historical data from the source domain sites and remains fixed during the prediction process for the target domain sites. The number of parameters in the incremental parameter matrix is ​​less than the number of parameters in the base parameter matrix, and the rank of the incremental parameter matrix is ​​less than the input dimension and output dimension of the base parameter matrix. Based on the mapping output of the first linear mapping layer, the power output prediction result for the target domain sites is determined.

2. The distributed photovoltaic power output prediction method based on low-rank adaptive migration according to claim 1, characterized in that, The incremental parameter matrix includes a first low-rank matrix and a second low-rank matrix. The incremental parameter matrix is ​​expressed by the product of the first low-rank matrix and the second low-rank matrix. The rank of the first low-rank matrix and the rank of the second low-rank matrix are both less than the input dimension and the output dimension of the basic parameter matrix. The step of mapping the input features using the base parameter matrix and the incremental parameter matrix respectively to obtain the mapping output of the first linear mapping layer includes: The incremental parameter matrix in the first linear mapping layer is determined based on the product of the first low-rank matrix and the second low-rank matrix. The effective weight matrix of the first linear mapping layer is obtained by adding the basic parameter matrix of the first linear mapping layer to the incremental parameter matrix. Based on the effective weight matrix, the features input to the first linear mapping layer are mapped to obtain the mapping output of the first linear mapping layer. The mapping output consists of a first mapping component and a second mapping component. The first mapping component is the result of mapping the features by the basic parameter matrix, and the second mapping component is the result of mapping the features by the incremental parameter matrix.

3. The distributed photovoltaic power output prediction method based on low-rank adaptive migration according to claim 2, characterized in that, The first linear mapping layer is the query projection matrix layer, key projection matrix layer, or value projection matrix layer of the multi-head temporal attention mechanism in the pre-trained prediction model.

4. The distributed photovoltaic power output prediction method based on low-rank adaptive migration according to claim 2, characterized in that, The step of determining the incremental parameter matrix in the first linear mapping layer based on the product of the first low-rank matrix and the second low-rank matrix includes: Get the preset scaling factor and the preset low rank number; The incremental parameter matrix is ​​determined based on the scaling factor, the low-rank number, the first low-rank matrix, and the second low-rank matrix.

5. The distributed photovoltaic power output prediction method based on low-rank adaptive migration according to claim 1, characterized in that, The step of determining the power output prediction result of the target domain station based on the mapping output of the first linear mapping layer includes: In response to the fact that the target domain site has not accumulated valid historical measured power data, the incremental parameter matrix is ​​initialized to a zero matrix, and the input features are mapped based on the basic parameter matrix to obtain the mapping output of the first linear mapping layer. In response to the accumulated effective historical measured power data of the target domain stations, a small sample training set of the target domain stations is constructed using the accumulated historical power data, meteorological forecast data, and time-series coded data. While keeping the parameter values ​​of the basic parameter matrix fixed, the incremental parameter matrix is ​​updated only based on the small sample training set. The updated incremental parameter matrix is ​​then loaded, and the input features are mapped based on the basic parameter matrix and the updated incremental parameter matrix to obtain the mapping output of the first linear mapping layer. The objective function for parameter updating includes a multi-time-period quantile loss term and a parameter drift regularization term, whereby the parameter drift regularization term is used to limit the parameter update magnitude of the incremental parameter matrix. In response to the fact that the mapping output of the first linear mapping layer is a normalized power prediction value, the mapping output is restored from the normalized power scale to the actual power scale based on the installed capacity of the target domain site, so as to obtain the actual power prediction result of the target domain site. Based on the actual power prediction results, the power output prediction results of the target domain stations are determined.

6. The distributed photovoltaic power output prediction method based on low-rank adaptive migration according to claim 5, characterized in that, The prediction model is configured with multiple preset quantile levels; the step of determining the output prediction result of the target domain station based on the mapping output of the first linear mapping layer includes: Based on the mapping output of the first linear mapping layer, the actual power prediction value of the target domain station at each quantile level is determined; The actual power prediction result is determined based on the actual power prediction value at each of the aforementioned quantile levels; Based on the actual power prediction results, the power output prediction results of the target domain stations are determined.

7. A distributed photovoltaic power output prediction device based on low-rank adaptive migration, characterized in that, include: A site determination module is used to divide multiple distributed photovoltaic sites into at least one site cluster, and determine source domain sites and target domain sites in each site cluster; The input feature acquisition module is used to acquire the input features of the target domain station, the input features including meteorological forecast data and time-series coded data of the target domain station; A mapping output acquisition module is used to input the input features into a pre-trained prediction model. The prediction model includes a first linear mapping layer, which has a basic parameter matrix and an incremental parameter matrix. The input features are mapped using the basic parameter matrix and the incremental parameter matrix respectively to obtain the mapping output of the first linear mapping layer. The basic parameter matrix is ​​trained using historical data from the source domain sites and remains fixed during the prediction process of the target domain sites. The number of parameters in the incremental parameter matrix is ​​less than the number of parameters in the basic parameter matrix, and the rank of the incremental parameter matrix is ​​less than the input dimension and output dimension of the basic parameter matrix. The prediction result determination module is used to determine the power output prediction result of the target domain station based on the mapping output of the first linear mapping layer.

8. An electronic device, characterized in that, include: One or more processing devices; A storage device on which one or more programs are stored; When the one or more programs are executed by the one or more processing devices, the one or more processing devices perform the method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processing device, implements the method of any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processing device, it implements the method of any one of claims 1 to 6.