Power distribution network source and load uncertainty prediction method and system based on bidirectional long short-term memory network and non-parametric kernel density estimation
By combining BiLSTM and KDE, high-precision determinism and uncertainty quantification of power distribution network source-load prediction are achieved. This solves the problems of existing technologies, such as the inability to quantify error boundaries in deterministic prediction and the insufficient unidirectionality of time-series characteristics in traditional models. It also improves prediction accuracy and control robustness in extreme scenarios.
Patent Information
- Application Number
- CN202611328096.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-20
AI Technical Summary
Existing source-load prediction methods are mainly deterministic predictions, which cannot quantify the uncertainty boundary of prediction errors. Traditional time series prediction models can only capture positive time series correlations, and the prediction accuracy drops significantly in extreme scenarios.
A bidirectional long short-term memory network (BiLSTM) is used to extract the bidirectional temporal correlation of source load output, and nonparametric kernel density estimation (KDE) is combined to fit the error probability density distribution, outputting deterministic predicted values and multi-level confidence intervals to form a progressive structure.
It achieves high-precision deterministic prediction and uncertainty quantification, improving the robustness of distribution network control, especially the prediction accuracy and information integrity in extreme scenarios.
Smart Images

Figure CN123143995A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system forecasting technology, and in particular to a method and system for predicting the uncertainty of power generation and load in distribution networks based on bidirectional long short-term memory networks and nonparametric kernel density estimation. It is applicable to the day-ahead and intraday power generation and load forecasting of distribution networks with a high proportion of distributed renewable energy access. Background Technology
[0002] With the integration of a high proportion of distributed photovoltaic (PV) and other new energy sources into the distribution network, the uncertainty on both the source and load sides of the system has significantly increased. PV output is affected by natural factors such as sunlight intensity, ambient temperature, and cloud cover, exhibiting significant uncertainty, volatility, and temporal characteristics, with marked differences in uncertainty across different time scales. Load demand is influenced by the randomness of user electricity consumption behavior, the diversity of load types, and external factors (such as weather, holidays, and policies), resulting in complex variation patterns. Accurate source and load forecasting is a fundamental prerequisite for distribution network operation optimization, power balance regulation, and optimized energy storage scheduling.
[0003] Existing source-load prediction methods suffer from two main shortcomings: First, most are deterministic prediction methods, outputting only a single predicted value and failing to quantify the uncertainty boundary of the prediction error, resulting in a lack of redundant design basis for operational control strategies. For example, the photovoltaic power prediction method based on error correction and long short-term memory networks disclosed in patent application CN116435983A uses a bidirectional long short-term memory network structure to predict photovoltaic power data, calculating the error sequence between the predicted and observed values; it decomposes the error sequence using an empirical mode decomposition algorithm to obtain the nth-order intrinsic mode function; it calculates the probability density functions of the original error sequence and each order of error intrinsic mode components using a kernel density function; it compares the similarity between the probability density functions of the error intrinsic mode components and the original error sequence based on Hausdorff distance, selecting and calculating the weight coefficients of the retained error intrinsic mode components; it uses a bidirectional long short-term memory network structure to predict each error intrinsic mode component and photovoltaic power, assigning a weight coefficient to each mode component; and it adds the predicted error intrinsic mode components and photovoltaic power prediction results to obtain the corrected future power prediction value. However, this method only outputs the future power prediction value. Studies have shown that traditional prediction error distribution fitting based on parametric models such as normal, Beta, and Weibull distributions suffers from peaks and heavy tails, resulting in low fitting accuracy. Secondly, traditional time series prediction models (such as BP neural networks and LSTM networks) can only capture positive time series correlations, and their prediction accuracy drops significantly in extreme scenarios.
[0004] Therefore, there is an urgent need for a source load prediction method that can simultaneously achieve high-precision deterministic prediction and accurate uncertainty quantification. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of the existing technology by providing a method and system for predicting the uncertainty of power grid source and load based on bidirectional long short-term memory network and nonparametric kernel density estimation. This method and system simultaneously output accurate predicted values and multi-level confidence intervals, improves the robustness of new energy power grid regulation, and solves the shortcomings of existing deterministic prediction that cannot quantify fluctuation boundaries, traditional LSTM that only extracts time series features in one direction, and poor fitting accuracy of parameter error distribution.
[0006] Bidirectional Long Short-Term Memory (BiLSTM) neural networks can simultaneously transmit information along both forward and backward time sequences, extracting bidirectional dependencies in the sequence. Nonparametric kernel density estimation (KDE) does not require a pre-defined error distribution type, avoiding fitting bias caused by inappropriate distribution assumptions. This invention couples the two: the hidden states of BiLSTM at each time step are simultaneously used to generate deterministic prediction values and transmitted to KDE, enabling KDE to distinguish error samples based on bidirectional time-series characteristics at different times, overcoming the limitation of traditional KDE in performing global static fitting of all historical error samples. Simultaneously, after BiLSTM compresses the deterministic prediction bias in the time-series dimension, KDE performs nonparametric distribution fitting on its residual error, forming a progressive structure of "compression first, then characterization," transforming the prediction results into a two-layer form with deterministic values and confidence intervals as joint outputs, providing complete probabilistic information support for distribution network control.
[0007] Based on the above information, this invention proposes a novel method and system for predicting the uncertainty of power supply sources and loads in distribution networks based on bidirectional long short-term memory networks and nonparametric kernel density estimation.
[0008] The objective of this invention can be achieved through the following technical solutions: A method for predicting source-load uncertainty in distribution networks based on bidirectional long short-term memory networks and nonparametric kernel density estimation includes the following steps: Historical time-series data of photovoltaic power output and load are collected, preprocessed, and the preprocessed historical time-series data, meteorological data, time period characteristics, and seasonal characteristics are used as input features. A bidirectional long short-term memory network is constructed, and the input features are simultaneously transmitted along the forward and reverse temporal directions of the bidirectional long short-term memory network to extract the bidirectional temporal correlation and obtain the deterministic prediction value of the source load output. Based on the prediction error sequence between the deterministic predicted value and the measured value, nonparametric kernel density estimation is performed, the error probability density distribution is fitted, and the prediction uncertainty interval is calculated at different confidence levels. The deterministic predicted value is output together with the prediction uncertainty interval.
[0009] Furthermore, the preprocessing includes missing value imputation and outlier removal.
[0010] Furthermore, the input features are input into a bidirectional long short-term memory network after data standardization.
[0011] Furthermore, the meteorological data includes light intensity, ambient temperature, and wind speed; The time period characteristics include weekday and holiday identifiers, as well as peak / slow / off-peak time period identifiers; The seasonal characteristics include spring, summer, autumn, and winter season markers.
[0012] Furthermore, in the bidirectional long short-term memory network, the forward and reverse temporal transits are each handled by independent LSTM units. The hidden states in the two directions are concatenated to form the final feature representation, thereby extracting the bidirectional temporal correlation.
[0013] Furthermore, in the bidirectional long short-term memory network, the input gate... i t Forgotten Gate f t Output gate o t Candidate memory units g t Memory unit state c t and hidden state h t The calculation formula is: Input Gate: Forgotten Gate: Output gate: Candidate memory units: Memory unit update: Hidden output: in, For input features, W i , W f , W o , W g , , , , This is the weight matrix. b i ,b f , b o , b g σ is the bias term, σ is the sigmoid activation function, tanh is the hyperbolic tangent activation function, and ⊙ is the element-wise product.
[0014] Furthermore, the loss function used during the training of the bidirectional long short-term memory network is the mean absolute percentage error.
[0015] Furthermore, the nonparametric kernel density estimation employs a Gaussian kernel function, expressed as: in, For the error probability density distribution, As the independent variable for error, For the first i One prediction error sample, h For bandwidth parameters, n The number of error samples. K (·) is the Gaussian kernel function.
[0016] Furthermore, the upper and lower limits of the prediction uncertainty interval are expressed as follows: in, L α , U α Confidence levels 1- α The lower and upper limits of the interval below, (·) is the inverse function of the probability distribution of kernel density estimation error. α The significance level is indicated by .
[0017] This invention also provides a distribution network source-load uncertainty prediction system based on bidirectional long short-term memory networks and nonparametric kernel density estimation, comprising: The data acquisition module is used to collect historical time-series data of photovoltaic power output and load, perform preprocessing, and use the preprocessed historical time-series data, meteorological data, time period characteristics, and seasonal characteristics as input features. The deterministic prediction module is used to construct a bidirectional long short-term memory network, and simultaneously transmit the input features along the forward and reverse temporal directions of the bidirectional long short-term memory network to extract bidirectional temporal correlation and obtain deterministic prediction values of source load output. The uncertainty interval prediction module is used to perform nonparametric kernel density estimation based on the prediction error sequence between the deterministic predicted value and the measured value, fit the error probability density distribution, and calculate the prediction uncertainty interval at different confidence levels. The output module is used to output the deterministic predicted value and the prediction uncertainty interval together.
[0018] Compared with the prior art, the present invention has the following beneficial effects: (1) The present invention constructs a bidirectional long short-term memory network BiLSTM, which fully explores the bidirectional temporal correlation of source load output through forward and reverse bidirectional time-series transmission, and the deterministic prediction accuracy is significantly better than that of traditional LSTM and BP neural networks.
[0019] (2) The present invention performs nonparametric kernel density estimation (KDE) based on the deterministic prediction results of bidirectional long short-term memory network. It does not require a preset error distribution type and can accurately fit the error probability density distribution of any shape, overcoming the shortcomings of traditional parametric distribution models that have peaks and heavy tails.
[0020] Specifically, firstly, in this invention, the hidden states of BiLSTM are used simultaneously to generate deterministic predicted values and as temporal features passed to KDE, enabling KDE to distinguish error samples based on forward and reverse temporal information at different times, overcoming the shortcomings of traditional KDE's global static fitting. Secondly, the two form a progressive structure of "compression before characterization." BiLSTM maximizes the compression of deterministic bias in the temporal dimension, and KDE then performs nonparametric distribution fitting on the residual error, avoiding the systematic bias of parametric models fitting heavy-tailed errors. Thirdly, in existing technologies, kernel density estimation ultimately aims at correcting point predicted values, still targeting a single numerical value; this invention outputs both deterministic predicted values and confidence intervals, providing complete probabilistic information for downstream scheduling. In summary, the combination of BiLSTM and KDE in this invention is not a functional superposition, but rather forms a technical path of "temporal feature-driven dynamic error distribution modeling," which differs from the individual use or known combinations of the two.
[0021] (3) The present invention can output a two-layer result of “deterministic prediction value + uncertainty interval”, which provides complete probabilistic information support for the operation and control of the distribution network and enhances the control robustness under extreme scenarios. Attached Figure Description
[0022] Figure 1 This is a schematic diagram of the method flow of the present invention; Figure 2 This is a diagram showing the internal structure of the bidirectional LSTM network of the present invention. Figure 3 This is a comparison chart of photovoltaic power output ranges at different confidence levels in embodiments of the present invention; Figure 4 This is a bar chart comparing the accuracy of multiple prediction models in an embodiment of the present invention. Detailed Implementation
[0023] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of the present invention.
[0024] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0025] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0026] Furthermore, it should be noted in the description of this invention that the terms "first," "second," or "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0027] The technical solution of the present invention will be further described below with reference to the accompanying drawings, but it is not limited thereto. Any modifications or equivalent substitutions to the technical solution of the present invention that do not depart from the spirit and scope of the technical solution of the present invention shall be within the protection scope of the present invention.
[0028] Example 1 like Figure 1 As shown, this embodiment provides a method for predicting the uncertainty of power distribution network sources and loads based on bidirectional long short-term memory networks and nonparametric kernel density estimation, including the following steps: S1, Data preprocessing step.
[0029] In this step, historical time-series data of photovoltaic output and load are collected and preprocessed. The sampling period is 1 hour, and the data is collected continuously for 1 year.
[0030] In this embodiment, preprocessing includes missing value imputation and outlier removal. Specifically, linear interpolation is used to impute missing values. Let the observed values before and after the missing value be... and Then the missing momentt The interpolation estimate is: (1) Outliers are removed using the 3σ criterion, where |x-μ|>3σ, and μ is the data mean, and σ is the standard deviation. Data points deviating from the mean by more than three times the standard deviation are considered outliers and removed.
[0031] Based on the source-load uncertainty analysis, preprocessed historical time-series data (1 hour, 2 hours, and 24 hours prior), meteorological data (light intensity, temperature, and wind speed), time-period characteristics (weekday / holiday markers and peak / slow / low time markers), and seasonal characteristics (spring, summer, autumn, and winter markers) were selected as input features, totaling 12 dimensions. The Min-Max standardization method was used to map all input features and output data to the [0,1] interval to eliminate the influence of dimensions. The standardization formula is as follows: (2) Where x is the original data ,x min , x max These are the minimum and maximum values of the feature, respectively.
[0032] S2, the deterministic prediction step.
[0033] A bidirectional long short-term memory network (BiLSTM) is constructed to simultaneously propagate input features along both the forward and reverse time sequences, extract bidirectional temporal correlations, and output deterministic predictions of source load outputs.
[0034] Furthermore, the specific implementation of BiLSTM deterministic prediction is as follows: like Figure 2 As shown, BiLSTM uses two independent LSTMs to train the input data in both forward and backward directions, enabling the selection and transfer of data features by simultaneously utilizing information from both directions. The LSTM network achieves long-term memory and effective filtering of information through three gate structures: input gate, forget gate, and output gate.
[0035] In this embodiment, the BiLSTM includes an input layer, two bidirectional LSTM hidden layers, and an output layer. The number of neurons in the input layer is consistent with the dimension of the input features. Specifically, in this embodiment, the input layer has 12 neurons, the hidden layers have two layers with 64 neurons each, and the output layer has 1 neuron (corresponding to the output prediction value at a single time step). The forward propagation process of the LSTM network is as follows: Input Gate: (3) Forgotten Gate: (4) Output gate: (5) Candidate memory units: (6) Memory unit update: (7) Hidden output: (8) in, i t , f t , o t These are the input gate, forget gate, and output gate, respectively. g t Candidate memory units, c t For the state of the memory unit, h t In hidden state, For input features, W i , W f , W o , W g , , , , This is the weight matrix. b i , b f , b o , b g σ is the bias term, σ is the sigmoid activation function, tanh is the hyperbolic tangent activation function, and ⊙ is the element-wise product.
[0036] In this embodiment, regarding hyperparameter settings, the bidirectional long short-term memory network uses the AdamW optimizer with an initial learning rate of 10. -4 The error rate decreases by 10% every 5 epochs, with a batch size of 32 and a maximum of 50 iterations. An early stopping strategy is employed (training stops if the validation set error does not decrease for 3 consecutive epochs) to avoid overfitting. The loss function used is Mean Absolute Percentage Error (MAPE), which better suits the error assessment requirements of time series prediction. (9) The preprocessed input features are fed into the network and propagated simultaneously in both the forward and backward directions. The hidden states in the two directions are concatenated to form the final feature representation. (10) Furthermore, the Symmetric Mean Absolute Percentage Error (SMAPE) is used as an auxiliary evaluation index for the network's prediction performance: (11) The aforementioned bidirectional long short-term memory network simultaneously predicts both photovoltaic (PV) power output and load demand. PV power output and load demand are distinct physical processes. The former is dominated by meteorological factors such as sunlight and cloud cover, exhibiting diurnal intermittency and rapid fluctuations, while the latter is driven by user electricity consumption behavior, exhibiting different diurnal cycles and seasonal patterns. The fundamental differences in their temporal characteristics determine that their optimal model parameter spaces are not identical; sharing parameters would prevent either prediction task from achieving optimal accuracy. Therefore, in this embodiment, PV power output prediction and load prediction share the same network structure and hyperparameter settings, but the model parameters are trained independently, each converging to the optimal solution for its corresponding prediction task. Independent training preserves operational space for subsequent optimization of hyperparameters and network depth for different prediction tasks.
[0037] S3, Uncertainty Quantification Step. Calculate the prediction error sequence between the deterministic predicted value and the measured value, use the Gaussian kernel function to perform nonparametric kernel density estimation (KDE), fit the error probability density distribution, and calculate the prediction uncertainty interval at different confidence levels.
[0038] Specifically, the implementation of KDE uncertainty quantification is as follows: The deviation between the predicted and measured values of the BiLSTM is calculated to obtain the prediction error sequence. The standard deviation of the prediction error is: (12) Kernel density fitting uses a Gaussian kernel function to fit the prediction error sequence, obtaining the probability density distribution of the error. The kernel density estimation expression is: (13) in For the first i One prediction error sample, h For bandwidth parameters, n The number of error samples. K (·) is the Gaussian kernel function.
[0039] Furthermore, the Gaussian kernel function is: (14) The integral constraint ∫K(u)du=1 is satisfied to ensure that the fitting result is a valid probability density function.
[0040] The bandwidth parameter h is determined using the Silverman rule: (15) in, σ err The error is the sample standard deviation. , e i For the first i One prediction error, ē The mean of the prediction error. n This represents the number of samples.
[0041] Uncertainty intervals are calculated based on the fitted probability density distribution, at confidence levels of 90%, 95%, and 99%. The upper and lower limits of the intervals correspond to the quantiles of the error probability density distribution. Maximum: (16) Lower limit: (17) in (·) is the inverse function of the probability distribution of kernel density estimation error. α The significance level is indicated by .
[0042] S4, Output the results.
[0043] like Figure 3 As shown, the deterministic predicted value and the uncertainty interval are output together to form a two-layer prediction result of "deterministic predicted value + uncertainty interval": (18) in, For deterministic predicted values, , These represent the lower and upper limits of the interval at a 90% confidence level. , These represent the lower and upper limits of the interval at a 95% confidence level, respectively. , These represent the lower and upper limits of the interval at a 99% confidence level, respectively.
[0044] If the above methods are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0045] To verify the effectiveness of the above method, this embodiment uses measured data from the IEEE 33-node distribution network. Interval coverage (CP) and average interval width (AW) are used as indicators of uncertainty accuracy. Interval coverage: (16) Average interval width: (17) The comparison results of the prediction accuracy indicators of the three models are shown in Table 1 and Figure 4 As shown (taking photovoltaic power output prediction as an example): Table 1 Comparison of prediction accuracy indices for the three models The accuracy verification results of the load output prediction are consistent with the trend of photovoltaic output prediction. The new BiLSTM-KDE model has a MAPE of 2.87%, an RMSE of 68.3MW, and an R... 2 The CP is 95.2% at a 95% confidence level and the AW is 185.7MW, both of which are better than the traditional LSTM model and the BP neural network model.
[0046] Analysis shows that the prediction accuracy of the novel Bi LSTM-KDE model is significantly better than that of traditional models. The core reasons are as follows: 1. The Bi LSTM network can simultaneously capture the positive and negative temporal correlations of source and load outputs. Compared with traditional LSTM and BP neural networks, it can more accurately mine temporal features and reduce deterministic prediction errors; 2. The KDE module does not require a preset error distribution type and can accurately fit the probability distribution of prediction errors. The coverage of the quantified uncertainty interval is close to the confidence level, and the interval width is smaller, achieving accurate quantification of uncertainty; 3. The data preprocessing module effectively eliminates the influence of noise and outliers, improving the stability and generalization ability of the model.
[0047] Furthermore, prediction accuracy tests for extreme scenarios (extreme high temperatures, major holidays) show that the new model has a MAPE of 4.85% under extreme scenarios, which is 32.7% lower than the traditional LSTM model. It can effectively adapt to the source load uncertainty prediction under extreme scenarios and has good engineering applicability. It can provide accurate source load uncertainty prediction data support for subsequent MCP-CHB-ESS coordinated regulation.
[0048] Example 2 This embodiment provides a power distribution network source-load uncertainty prediction system based on bidirectional long short-term memory networks and nonparametric kernel density estimation, including: The data acquisition module is used to collect historical time-series data of photovoltaic power output and load, perform preprocessing, and use the preprocessed historical time-series data, meteorological data, time period characteristics, and seasonal characteristics as input features. The deterministic prediction module is used to construct a bidirectional long short-term memory network, and simultaneously transmit the input features along the forward and reverse temporal directions of the bidirectional long short-term memory network to extract bidirectional temporal correlation and obtain deterministic prediction values of source load output. The uncertainty interval prediction module is used to perform nonparametric kernel density estimation based on the prediction error sequence between the deterministic predicted value and the measured value, fit the error probability density distribution, and calculate the prediction uncertainty interval at different confidence levels. The output module is used to output the deterministic predicted value and the prediction uncertainty interval together.
[0049] The rest is the same as in Example 1.
[0050] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The solutions in the embodiments of this application can be implemented in various computer languages, such as the object-oriented programming language Java and the interpreted scripting language JavaScript.
[0051] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0052] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0053] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0054] The preferred embodiments of the present invention have been described in detail above. It should be understood that those skilled in the art can make numerous modifications and variations based on the concept of the present invention without creative effort. Therefore, all technical solutions that can be obtained by those skilled in the art based on the concept of the present invention through logical analysis, reasoning, or limited experimentation on the basis of existing technology should be within the scope of protection defined by the claims.
Claims
1. A method for predicting source-load uncertainty in distribution networks based on bidirectional long short-term memory networks and nonparametric kernel density estimation, characterized in that, Includes the following steps: Historical time-series data of photovoltaic power output and load are collected, preprocessed, and the preprocessed historical time-series data, meteorological data, time period characteristics, and seasonal characteristics are used as input features. A bidirectional long short-term memory network is constructed, and the input features are simultaneously transmitted along the forward and reverse temporal directions of the bidirectional long short-term memory network to extract the bidirectional temporal correlation and obtain the deterministic prediction value of the source load output. Based on the prediction error sequence between the deterministic predicted value and the measured value, nonparametric kernel density estimation is performed, the error probability density distribution is fitted, and the prediction uncertainty interval is calculated at different confidence levels. The deterministic predicted value is output together with the prediction uncertainty interval.
2. The method for predicting the uncertainty of power distribution network source-load based on bidirectional long short-term memory network and nonparametric kernel density estimation according to claim 1, characterized in that, The preprocessing includes missing value imputation and outlier removal.
3. The method for predicting the uncertainty of power distribution network source-load based on bidirectional long short-term memory network and nonparametric kernel density estimation according to claim 1, characterized in that, The input features are then processed through data standardization and input into a bidirectional long short-term memory network.
4. The method for predicting the uncertainty of power distribution network source-load based on bidirectional long short-term memory network and nonparametric kernel density estimation according to claim 1, characterized in that, The meteorological data includes light intensity, ambient temperature, and wind speed; The time period characteristics include weekday and holiday identifiers, as well as peak / slow / off-peak time period identifiers; The seasonal characteristics include spring, summer, autumn, and winter season markers.
5. The method for predicting the uncertainty of power distribution network source-load based on bidirectional long short-term memory network and nonparametric kernel density estimation according to claim 1, characterized in that, In the bidirectional long short-term memory network, the forward and reverse temporal transits each use independent LSTM units. The hidden states in the two directions are concatenated to form the final feature representation, thereby extracting the bidirectional temporal correlation.
6. The method for predicting the uncertainty of power distribution network source-load based on bidirectional long short-term memory network and nonparametric kernel density estimation according to claim 1, characterized in that, In the bidirectional long short-term memory network, the input gate i t Forgotten Gate f t Output gate o t Candidate memory units g t Memory unit state c t and hidden state h t The calculation formula is: Input Gate: Forgotten Gate: Output gate: Candidate memory units: Memory unit update: Hidden output: in, For input features, W i , W f , W o , W g , , , , This is the weight matrix. b i , b f , b o , b g σ is the bias term, σ is the sigmoid activation function, tanh is the hyperbolic tangent activation function, and ⊙ is the element-wise product.
7. The method for predicting the uncertainty of power distribution network source-load based on bidirectional long short-term memory network and nonparametric kernel density estimation according to claim 1, characterized in that, The loss function used during the training of the bidirectional long short-term memory network is the mean absolute percentage error.
8. The method for predicting the uncertainty of power distribution network sources and loads based on bidirectional long short-term memory networks and nonparametric kernel density estimation as described in claim 1, characterized in that, The nonparametric kernel density estimation uses a Gaussian kernel function, expressed as follows: in, For the error probability density distribution, As the independent variable for error, For the first i One prediction error sample, h For bandwidth parameters, n The number of error samples. K (·) is the Gaussian kernel function.
9. The method for predicting the uncertainty of power distribution network source-load based on bidirectional long short-term memory network and nonparametric kernel density estimation according to claim 1, characterized in that, The upper and lower limits of the prediction uncertainty interval are expressed as follows: in, L α , U α Confidence levels 1- α The lower and upper limits of the interval below, (·) is the inverse function of the probability distribution of kernel density estimation error. α The significance level is indicated by .
10. A power distribution network source-load uncertainty prediction system based on bidirectional long short-term memory networks and nonparametric kernel density estimation, characterized in that, include: The data acquisition module is used to collect historical time-series data of photovoltaic power output and load, perform preprocessing, and use the preprocessed historical time-series data, meteorological data, time period characteristics, and seasonal characteristics as input features. The deterministic prediction module is used to construct a bidirectional long short-term memory network, and simultaneously transmit the input features along the forward and reverse temporal directions of the bidirectional long short-term memory network to extract bidirectional temporal correlation and obtain deterministic prediction values of source load output. The uncertainty interval prediction module is used to perform nonparametric kernel density estimation based on the prediction error sequence between the deterministic predicted value and the measured value, fit the error probability density distribution, and calculate the prediction uncertainty interval at different confidence levels. The output module is used to output the deterministic predicted value and the prediction uncertainty interval together.
