Next Article in Journal
A Novel Integrated q-Rung Fuzzy Framework for Biomass Location Selection with No Apriori Weight Choices
Next Article in Special Issue
Long Life Power Factor Corrected LED Driver with Capacitive Energy Mechanism for Street Light Applications
Previous Article in Journal
A Study on the Production Methods of Upcycling Tweed Fabric Using Clothing Waste Based on Chanel’s Tweed Design
Previous Article in Special Issue
Small-Signal Stability Constrained Optimal Power Flow Model Based on BP Neural Network Algorithm
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Prosumer Power Prediction Method Based on Dynamic Segmented Curve Matching and Trend Feature Perception

1
Key Laboratory of Power System Optimization and Energy Saving Technology, Guangxi University, Nanning 530004, China
2
Department of Electrical Engineering, School of Automation, Guangdong University of Technology, Guangzhou 510006, China
3
Electric Power Research Institute, Guangxi Power Grid Corporation, Nanning 530023, China
4
School of Electric Power, South China University of Technology, Guangzhou 510640, China
5
Guangxi Minhai Energy Co., Ltd., Nanning 530012, China
6
Department of Electrical Engineering, Shanghai Jiao Tong University, Shanghai 200240, China
*
Author to whom correspondence should be addressed.
Sustainability 2023, 15(4), 3376; https://doi.org/10.3390/su15043376
Submission received: 1 December 2022 / Revised: 26 January 2023 / Accepted: 10 February 2023 / Published: 12 February 2023
(This article belongs to the Special Issue Sustainable Power Systems and Optimization)

Abstract

:
With the massive installation of distributed renewable energy (DRE) generation, many prosumers with the dual attributes of load and power supply have emerged. Different DRE permeability and the corresponding peak-valley timing characteristics have an impact on the power features of prosumers, so new models and methods are needed to reflect the new features brought about by these factors. This paper proposes a method for predicting the power of prosumers. In this method, dynamic segmented curve matching is applied to reduce the complexity of source–load coupling features and improve the effectiveness of the input features, and trend feature perception based on a temporal convolutional network (TCN) was applied to grasp the power trend of prosumers by predicting the multisegment trend indexes. The LST-Atten prediction model based on a temporal attention mechanism (TAM) and a long short-term memory (LSTM) network was applied to predict “day-ahead” power, which combines the trend indexes and similar curve sets as the input. Simulation results show that the proposed model has higher accuracy than individual models. Furthermore, the proposed model can maintain prediction stability under different renewable energy permeability scenarios.

1. Introduction

With the improvement of DRE generation technology, many power consumers turn into prosumers [1,2]. However, prosumer power will have strong uncertainty on both the source and load sides because of the integration of DRE and the implementation of demand-response policies. At the same time, the variation in power will be complicated by prosumers in terms of the bidirectional power flow and fluctuation of DRE generation [3]. Therefore, there is an urgent need to explore new power prediction methods to deal with the double uncertainty on both the source and load sides.
At present, there are two kinds of power prediction methods for DRE [4]: decoupling and direct prediction. The decoupling prediction method first decouples prosumer power into wind power, photovoltaic (PV) power, and load. Then, different prediction models are used to learn the different features of the DRE generation and load. Finally, the above models’ results are integrated to obtain the predicted power. In this regard, reference [5] proposes a feature extraction method based on a prosumer power curve to optimize pairing, which estimates the capacity of the distributed photovoltaic systems (DPVS) by an integrated model based on multiple support vector regression. Reference [6] proposes a linear-based estimator to separate the power generation from the feeder-level measurements using the measured values of the substation and the measured power of a nearby PV plant. However, the drawbacks of the above methods are heavy reliance on PV generation data and a lack of DPVS information. Furthermore, after the decoupling of prosumer power, the accuracy needs to be improved via the accurate prediction of each component.
The direct prediction method can be broadly divided into traditional methods and intelligence-based methods. Traditional methods include multiple linear regression [7], exponential smoothing [8], and autoregressive moving averages [9]. Intelligence-based methods include support vector machines (SVM) [10], artificial neural networks [11], deep neural networks [12], and hybrid algorithms. Reference [13] proposes an integrated genetic algorithm (GA) and bidirectional gated recurrent unit (Bi-GRU) hybrid data-driven technique for short-term-load forecasting. Reference [14] proposes a fusion model based on a light gradient boosting machine (Lightgbm) and LSTM to forecast short-term photovoltaic power generation. A prediction model based on the integration of deep neural network and wavelet transformation is used to improve the net power prediction accuracy in reference [15]. Bayesian deep learning was used in reference [16] to capture stochastic uncertainty, and this achieved better results in power prediction. Reference [17] combines the TAM with time-series characteristics and proposes a prediction model based on TCN. Direct prediction methods have higher prediction accuracy than decoupling prediction methods when the model is properly chosen [18]. Therefore, the challenge is how to integrate all the relevant factors into the model in a reasonable way while accurately reflecting the cyclical load features and the stochastic features of DRE generation.
On the one hand, as DRE generation and load are closely related to meteorological factors, such as wind speed, temperature, solar radiance, and humidity, there is a certain coupling relationship between the sources and loads. Due to the insufficient consideration of the dynamic coupling relationship between the sources and loads in the existing studies, it is difficult to cope with the impact on the power system brought by the gradually increasing uncertainty of the sources and loads. If this coupling relationship can be taken into account, the prediction accuracy can be effectively improved. On the other hand, the increasingly fluctuating power prediction needs to pay more attention to the local variation from the prosumers’ side, but the single-structured model lacks the ability to learn the higher-order features such as the time-sharing features and trend features, which determines whether the prediction accuracy can be improved. Accordingly, it is important to construct a corresponding feature analysis model to improve the ability of feature extraction and prediction.
For the above difficulties, we propose a power prediction method that aims to learn the time-sharing features and trend features of the power curves. After focusing on the coupling relationship between the source and load in different DRE penetration scenarios, the proposed method achieves accurate predictions directly, which can effectively avoid the accumulation of prediction errors generated by the decoupling power.
The key contributions can be summarized as follows:
  • We establish a short-term power prediction model based on dynamic curve segmentation and trend feature perception, which combines SVM, TCN, and LST-Atten algorithms;
  • We simulate and evaluate the prediction performance of the proposed model in three different permeability scenarios. The prediction accuracy of the proposed model can maintain high prediction accuracy under different permeability scenarios;
  • We design three comparative simulations to verify the effectiveness of dynamic curve segmentation and trend feature perception. The simulation results show that the proposed model has a better prediction effect than other models.
The remainder of the paper is organized as follows. Section 2 describes the definition of prosumer power and analyzes the source-load coupling features. The methods and steps of power-curve clustering and dynamic segmentation are introduced in Section 3. Section 4 introduces the methods and details of the trend feature perception module. Section 5 proposes the framework and details of the prediction model. Section 6 explains the simulations and corresponding results, while Section 7 concludes the paper.

2. Analysis of Power Features

The power of prosumers has different characteristics from that of pure consumers. It is not a simple linear superposition of the power of the DRE and the load but exhibits a complex dynamic coupling feature, which needs a new modeling structure to accurately reflect it.

2.1. Definition of Prosumer Power

The prosumer power can be defined as the actual load minus the DRE generation, as shown in the following equation [19]:
P n = P u P s
where P n is the prosumer power, P u is the actual load, and P s is the DRE generation.

2.2. Analysis of the Coupling Features

Prosumer power will be affected not only by load changes but also by DRE generation. Specifically, the load changes are related to factors such as consumption behavior, weather, and day types, while DRE generation will be affected by equipment parameters and meteorological factors such as solar radiance and wind speed. Therefore, the factors affecting the load and the DRE generation will also affect the prosumer power. In this case, the coupling features of DRE generation and load should be taken into account when forecasting the power of prosumers. To visualize the coupling features between DRE generation and load, we increase the DRE penetration in the Tempe campus of Arizona State University [20] to 50% to simulate a high penetration scenario; the specific curves are plotted for typical days in summer and winter as shown in Figure 1.
As seen in Figure 1, the power curves generated by the coupling features of DRE generation and load show an obvious “duck curve”. The high DRE penetration increases the daily peak-to-valley difference, and the PV generation at noon will reduce the power significantly. But in the evening, the load demand rises, and the PV generation weakens, resulting in a sudden rise in power demand. By comparing the curve patterns of typical days in summer and winter, it can be seen that the power curves show different trend patterns at different periods. The peak-to-valley difference in summer is significantly larger than that in winter, and the “concave” period in summer is longer than that in winter. These indicate that the power curves have obvious seasonal and time-sharing features, which are the results of the coupling of the DRE generation timeliness and the time-sharing consumption features. It is not difficult to conclude that the dominant factor affecting the power will not be a single fixed meteorological feature or historical power value under the effect of coupling features in different periods, which puts high requirements on the feature learning ability of the prediction models.

3. Feature Matching of the Power Curves

As mentioned above, the power of prosumers has the feature of both seasonality and timeliness caused by DRE generation and the time-sharing consumption features caused by consumers. Therefore, feature matching and trend index prediction are proposed to reduce the complexity of source-load coupling, which are discussed in Section 3 and Section 4, respectively.

3.1. Curve Clustering Considering Power Feature Indexes

Power features are visualized by power curve types. However, if the clustering algorithm based on Euclidean distance is used, the power curves with different features may be classified into the same type, which affects the quality of the clustering and reduces the training effect of the prediction model. Therefore, we introduce five daily power feature indexes to cluster the power curves, which include daily load factor, daily peak-to-valley difference, maximum power utilization time, daytime (7:30–19:30, total 12 h) load factor, and nighttime (0:00–7:30, 19:30–24:00, total 12 h) load factor. Meanwhile, the entropy weight method is used to calculate the weight coefficients of daily power feature indexes, which reflect the importance of each index to characterize the power curve.
The specific steps are as follows:
Step 1: Daily normalization of the power curve to eliminate the effect of natural growth.
Step 2: Calculate the entropy value of the daily power feature indexes, as shown in the following equations [21]:
h j = e i = 1 n f i j ln f i j
f i j = r i j i = 1 n r i j
e = 1 / ln n
where h j is the entropy value, e is the standardized coefficient, i 1 ,   2 ,   , n , n is the number of power curves to be clustered, j 1 ,   2 ,   , m , m is the number of daily power feature indexes, r i j is daily power feature indexes data, and f i j is the degree of contribution.
Step 3: Calculate the entropy weight ω j of each daily power feature index [21]:
ω j = exp t = 1 n h t + 1 h j exp h j l = 1 m exp t = 1 n h t + 1 h l exp h l
where t 1 ,   2 ,   , m , l 1 ,   2 ,   , m .
Step 4: Calculate the Euclidean distance between each index and the cluster center, and then multiply the entropy weight to get the improved Euclidean distance.
Step 5: The clustering method used the K-means algorithm based on improved Euclidean distance and evaluated by silhouette coefficient [22]. The silhouette coefficient of single data point i shows in (6), which indicates how tightly grouped the data points are in that cluster. The larger the silhouette coefficient, the better the clustering effect. Naturally, the k with the largest average silhouette coefficient is the optimal number of clusters.
s i = b i a i max a i , b i
where b i is the average distance between point i and all samples in the nearest cluster and a i is the average distance between point i and other samples in the same cluster.
The specific clustering process of K-means is shown in Figure 2:

3.2. Dynamic Segmentation of Power Curves

The power curve fluctuations have a certain daily periodicity, which shows that the daily power peaks and valleys are located roughly in the same period. According to this rule and the center curves of clusters, the power curve can be dynamically segmented. Different segments have different power curve fluctuations and dominant influencing factors. Thus, the dominant factors affecting the power variation need to be selected for different periods.
When taking a PV-oriented campus as an example, the steps of dynamic segmentation are as follows:
Step 1: Select sunrise and sunset times as the sunshine segmentation points based on solar radiation data.
Step 2: Calculate the power change rate for each cluster center curve:
λ 1 i = x i x i 1 x i × 100 % , λ 2 i = x i + 1 x i x i × 100 %
where λ 1 i and λ 2 i are the adjacent power change rates for point i, x i is the power for point i.
Step 3: Judge whether it is an inflection point: If all central curves at point i satisfy λ 1 ( i ) λ 2 ( i ) < 0 , point i is an inflection point, then proceed to step4.
Step 4: Calculating the relative change rate λ i of the inflection point:
λ i = λ 1 i λ 2 i
Step 5: Select the inflection point with the largest relative change rate as the trend mutation segmentation point.
The dynamic segmentation results are shown in Figure 3. In Figure 3, points 14 and 34 are sunshine segmentation points. Points 4, 5, 36, 42, and 44 are inflection points, and the corresponding average relative change rates are 6.78, 5.81, 4.01, 22.56, and 13.62%, respectively. According to the calculation results, we choose inflection point 42 as the trend mutation segmentation point.

4. Trend Indexes Prediction Module

In most prediction models using trend indexes, fixed trend indexes, such as historical power growth rates over the same period, are selected. In this paper, we divide the multiple segments that can reflect the power features and then select a few representative power values as trend indexes. A temporal convolutional network (TCN) algorithm was used to predict the trend indexes.

4.1. Selection of Trend Indexes and Feature Dimension Screening

Based on the results of the power curve segmentation, assuming the number of segments is four, the maximum power P max , minimum power P min , average power P a v , gross power P s u m , and average power of the four segments( P a v .1 , P a v .2 , P a v .3 , P a v .4 ) are selected as trend indexes for prediction.
Before predicting the trend indexes, numerous meteorological features need to be screened for dominant factors and temporal dimensions, and irrelevant or low-correlation meteorological features and temporal dimensions need to be eliminated. We use Pearson correlation coefficients (PCCs) to characterize the correlation between trend indexes and influencing factors. The PCCs are calculated as
r x y = i = 1 m x i x ¯ y y ¯ i = 1 m x i x ¯ 2 i = 1 m y i y ¯ 2
where x ¯ and y ¯ are the average values of the elements in each vector.

4.2. Structure of TCN

TCN is a convolutional neural network (CNN) architecture optimally adapted to solve time-series problems, which introduces dilated causal convolution and residual blocks on top of CNN. The structure of TCN is shown in Figure 4.

4.3. Trend Indexes Prediction Process

When building the trend indexes prediction module, meteorological data of different time scales are used as inputs for the trend indexes of different periods. The specific implementation steps are as follows:
Step 1: Calculate the PCCs between each trend index and the influencing factors, and then screen for dominant factors affecting each trend index.
Step 2: Calculate the PCCs between segmented trend indexes and the time dimensions of dominant meteorological factors, and then exclude low correlation time dimensions.
Step 3: Establish the corresponding TCN model for each trend index separately, input the filtered influencing factors, and finally output the trend indexes prediction results.
The flow chart of the trend indexes prediction module is shown in Figure 5.

5. Proposed Model

5.1. Model Design

The proposed prediction model includes three modules: the trend indexes prediction module, the curve similarity matching module, and the short-term power prediction module.
The main steps of the proposed model are as follows:
Step 1: Data preprocessing. To eliminate the difference in magnitude and avoid the gradient problem during model training, the following equation is used to normalize the data of various features, including power and weather [23,24,25].
x * = x x min x max x min
where x is the data to be normalized, x * is the normalized data, x max is the maximum value, and x min is the minimum value.
Step 2: Power curve clustering and dynamic segmentation. Clustering curves based on historical power data, and then curve dynamic segmentation based on the clustering results.
Step 3: Trend indexes prediction module. Extract and forecast the multiperiod trend indexes.
Step 4: Curve similarity matching module. When combining the results of the dynamic segmentation curve and trend index prediction, the similar set of the power curve is selected.
Step 5: Build a short-term power prediction model based on LST-Atten. We select trend indexes, similar curve sets, and meteorological data as inputs. The inputs used to forecast the 48-point power of the next day are listed in Table 1.
Step 6: Divide the dataset into the first 75% as training data, 15% as validation data, and the last 10% as test data. With the goal of minimizing the loss function in the validation data, hyper-parameters have been set to achieve optimal solutions. Finally, the test data is used to evaluate the performance of the final model.
The flow chart is shown in Figure 6.

5.2. Curve Similarity Matching Module

The traditional method selects similar curves by calculating the similarity of the evaluation vector, which includes day type and meteorological data. In this paper, we propose a dynamic segmentation matching method considering power feature indexes and meteorological data. The power characteristic index is calculated from the trend indexes of the trend indexes prediction module. The SVM classification algorithm is used to replace the process of similarity calculation and directly predict the class of similar curves. The power feature indexes are defined as shown in Table 2.
The specific steps of the curve similarity matching module are as follows:
Step 1: Obtain the trend indexes from the trend indexes prediction module, and calculate the power feature indexes according to the definition.
Step 2: Select the historical meteorological data and power feature indexes as training inputs. The expected output is the corresponding similar curve categories. Then put the data into the SVM model for training, set the number of iterations to 300, and save the trained model.
Step 3: Input the real-time meteorological data and power feature indexes of the day to be predicted into the trained model, and obtain similar sets of curves.
Step 4: Evaluate the effect of similar curve sets. We introduce accuracy and morphological similarity distance [26] D M S D as the evaluation metrics of similar curve selection D M S D can measure both the numerical spacing of the curves and the similarity of the curve shapes. The more similar the curve shape, the smaller the value of D M S D . The relevant equations are as follows:
D M S D ( L c , L f ) = k = 1 n ( l c , k l f , k ) 2 2 k = 1 n ( l c , k l f , k ) k = 1 n l c , k l f , k
L c = [ l c , 1 , l c , 2 , , l c , k , , l c , n ] , L f = [ l f , 1 , l f , 2 , , l f , k , , l f , n ]
A c c = T S
where L c are the power curves series to be compared, L f are the actual power curves series, n is the length of the power curves series, T is the number of correctly classified samples, and S is the number of samples.

5.3. LST-Atten

LST-Atten consists of TAM and LSTM networks [27]. TAM is a mechanism that mimics the allocation of attentional resources in the human brain by focusing on temporally important features from a large amount of information. The introduction of TAM aims to enhance the LSTM model’s memory of long-time series information, highlight the key temporal factors, and improve the model prediction effect.

6. Case Study

The public datasets of Tempe, Downtown, and Polytechnic campuses on the website of the Campus Metabolism program [20] are used to verify the performance and feasibility of the proposed model. The datasets contain the electric load and DRE generation data from 1 January 2018 to 31 December 2019. The environmental data were chosen from the weather station closest to each campus and were downloaded from the National Solar Radiation Data Bank website [28]. The data include temperature, dew point, humidity, wind speed, global horizontal irradiance (GHI), clear sky direct normal irradiance (CDNI), clear sky diffuse horizontal irradiance (CDHI), and solar zenith angle (SZA), etc. The data resolution is half an hour.

6.1. Analysis of Influencing Factors

Existing studies consider the impact of different DRE penetration on the power variation less. The three campuses selected in this paper have different DRE penetrations, which are set as different scenarios. Downtown in scenario 1 has a DRE penetration of 1.1%, Tempe in scenario 2 has a DRE penetration of 13%, and Polytechnic in scenario 3 has a DRE penetration of 21.7%. We selected meteorological data, such as GHI, CDNI, CDHI, SZA, etc., as the influencing factors. The PCCs between each influencing factor and power are calculated separately for three different DRE penetration scenarios. The calculated results are shown in Figure 7.

6.2. Measuring Metrics

The normalized root mean square error (NRMSE) [29], mean bias error (MBE), and mean absolute percentage error (MAPE) [30] were selected to measure the accuracy of the prediction model.
e M A P E = 1 n i = 1 n x ( i ) y ( i ) x ( i ) × 100 %
e N R M S E = 1 x max 1 n i = 1 n x ( i ) y ( i ) 2
e M B E = 1 n i = 1 n x ( i ) y ( i )
where x ( i ) is the actual value, y ( i ) is the predicted value, x max is the actual maximum value, and n is the number of samples in the test set. They directly relate to accuracy: the smaller the NRMSE and MAPE are, the higher the accuracy. It is noteworthy that a positive MBE means that the model underestimates the power value, while a negative MBE means an overestimation.

6.3. Simulation Design

We use the following three simulations to verify the effectiveness and generalizability of the proposed power prediction method.

6.3.1. Comparative Simulation under Different Similar Sets Selection Method

In this section, scenario 2, with 13% penetration, was used as the simulation object. We use the traditional meteorological similar method and the dynamic segment matching method to select similar sets from December 1 to 30, 2019. A comparison of the curve similarity evaluation metrics is shown in Table 3.
Power prediction is performed based on the different similar sets of the power curves. We took the overall average of the measuring metrics for one month as the prediction results. The results of the measuring metrics are listed in Table 4.
For a more detailed display, we choose 13 to 15 December 2019, for the typical day analysis, where the meteorological conditions on 13 and 14 are similar, but the diurnal temperature difference on 15 is large. Moreover, 13 is a weekday, whereas 14 and 15 are weekends. The prediction for these days should consider not only the meteorological changes but also the impact of the time-sharing consumption features under different day types. The prediction results are shown in Figure 8.
Obviously, a similar set with a high similarity of meteorological features does not mean its power curve shape is also similar because the power of prosumers contains random fluctuating components and the diversity of the influencing factors. The prediction performance based on the meteorological similarities method is not effective, especially for the inflection points. The comparison results show that the proposed method can learn the time-sharing consumption features of the prosumers through the dynamic segmentation.

6.3.2. Ablation Study

In order to verify the effectiveness of the dynamic segmentation module and the trend feature component on the power prediction model, we designed two models involved in the ablation study:
  • Complete model: inputs contain complete trend indexes;
  • Comparison model: inputs without time-phased trend indexes and the selection of the similarity set without considering segmented power feature indexes.
Scenario 3, with a 21% penetration, was used as the simulation object. We choose five consecutive days from November 11 to 15, 2019, as the simulation period, where 11 to 14 are weekdays with mostly sunny and cloudy weather, whereas 15 is the weekend with cloudy and rainy weather. The ablation study results are shown in Figure 9, focusing on the comparison of the prediction effects at key points for sudden changes in trends.
As is visible from Figure 9, the comparison model without the time-phased prediction component is not effective in predicting the DRE generation fluctuation points. Furthermore, with the enlarged details in Figure 9, it is easy to see that the complete model with the time-phased prediction component has a significant improvement in the prediction of the occurrence time of the abrupt trend change points and the segmented peak and valley values. It is not difficult to conclude that the dynamic segmentation and the corresponding trend feature components help the prediction model learn the time-sharing consumption features and trend features by matching the source–load coupling features, which effectively improves the accuracy of the prediction.

6.3.3. Comparative Simulation with Different Power Prediction Models

In order to verify the superiority of the proposed model, we selected TCN, LSTM, and Lightgbm for a comparative simulation with the proposed model. More specifically, the TCN model consists of three layers of residual units and fully connected layers. The LSTM model consists of two hidden layers with 24 neurons. The iteration times of the above deep learning models are set to 200, the activation function of TCN is ReLU, and the activation function of LSTM is Sigmoid. The objective of the Lightgbm model is set to regression; the training method adopts a gradient lifting decision tree (GBDT); the number of iterations is 2000, and the other adjustable parameters are determined by the Adam algorithm.
Six consecutive months from July to December 2019 are selected as the simulation period. The results of the measuring metrics are listed in Table 5.
Table 5 illustrates the proposed model; TCN and LSTM have better prediction stability for different DRE penetration scenarios, while Lightgbm shows poor prediction adaptability for those scenarios with a high DRE penetration. When compared with TCN, which performs better among the three conventional models, the proposed model achieves the best performance, with further improvements of 14.41% and 20.81% for the MAPE and NRMSE, respectively, in scenario 1 with low DRE penetration. Similarly, the proposed model provides 6.96% and 36.68% less MAPE and NRMSE, respectively, compared to TCN in scenario 3 with higher DRE penetration. As can be seen from the MBE, the models tend to overestimate the power values in scenario 1 and scenario 2, while the proposed model will underestimate the power values in scenario 3. Additionally, note that the MAPE will be very large and make no sense in high penetration scenarios because the power may be very small when a highly DRE output is very high and the actual load is low.
July and December for scenario 2 are selected as typical months for more detail. The results of the measuring metrics are listed in Table 6.
As can be seen from Table 6, the prediction effects of TCN, LSTM, and Lightgbm are not outstanding, although they are stable in the case of seasonal change. The MAPE and NRMSE metrics demonstrate that the proposed model has a significant enhancement effect on the power prediction effect of medium and high DRE penetration.
Furthermore, to verify the enhancement effect of the proposed model on local trend prediction, we selected the typical summer days of 22 to 24 July 2019, in scenario 1 and scenario 3 for simulation analysis. The prediction results are shown in Figure 9 and Figure 10.
From Figure 10a, it can be seen that, in scenario 1, with low DRE penetration, the curve of the power shows a regular double-peak pattern. Although the PV generation during the midday leads to a certain magnitude of power fluctuation, the peak-to-valley difference and the time of peak-to-valley occurrence are mainly determined by consumption features. The dashed lines in Figure 10b are the dynamic segmented lines, which show the important points in the daily power curve of the sudden rise and sudden fall. Figure 10a,b demonstrate the proposed model is better than the three comparison models in predicting the peak and valley values and the curve trend change points, especially for midday when the power fluctuations are large.
From Figure 11a, it can be seen that the power curve shows an obvious “duck shape”, and the peak-to-valley difference is large. Since most of the PV generation is concentrated during midday, a new valley appeared on a clear day. The peak-to-valley difference and the time of peak-to-valley occurrence are determined by the combination of solar irradiance and power consumption features. Figure 11b shows the relative error distribution of each model, which makes it easy to see that the error distribution of the proposed model is more uniform compared to the three comparison models.
In order to fully verify the learning ability of the proposed model regarding the source–load coupling features, we selected the Tempe campus with a 13% penetration as the research object. We simulate two new penetration scenarios by changing the DRE output without changing the electricity load 1 to 30 December 2019, was selected as the simulation period. The results of the measuring metrics are listed in Table 7.
Table 7 shows that the increase in DRE penetration will reduce the prediction accuracy under the same electricity load level, while the proposed model with trend features shows better adaptability than individual models.
To summarize, the proposed model enhances the ability to explore the long-term macroscopic trend, short-term local variations, and time-sharing consumption features, which leads to a significant improvement in the forecasting effect. Intuitively, the proposed model has a higher prediction accuracy and better generalization in different DRE penetration scenarios.

7. Conclusions

This paper proposes a short-term power prediction method based on dynamic segmented curve matching and trend feature perception to improve the accuracy of power prediction. The main conclusions obtained are as follows:
  • We propose a prediction model that takes massive power data, multitimescale meteorological data, and power feature indexes as the inputs. Through power curve clustering, dynamic segmentation, and trend feature perception, the proposed model can learn the time-sharing consumption features and trend features of power curves to identify the effective information of temporal power features. When compared with other prediction models, the prediction results show that the proposed model is suitable for power prediction with multiple sources of influencing factors and has a higher prediction accuracy;
  • There are different source–load coupling features in different DRE penetration scenarios. In order to fully consider the coupling features, it is necessary to analyze the dominant factors in different DRE penetration scenarios.
Subsequent research will use uncertainty prediction methods for high DRE penetration campuses to improve the model’s adaptability.

Author Contributions

Conceptualization, B.C. and Q.X.; methodology, B.C. and Q.X.; software, B.C. and Q.X.; validation, B.C. and Q.X.; formal analysis, Q.X. and B.C.; investigation, B.C. and Q.X.; resources, B.C. and Q.X.; data curation, B.C. and Q.X.; writing—original draft preparation, B.C. and Q.X.; writing—review and editing, Q.X., B.C. and C.L.; visualization, B.C. and Q.X.; supervision, B.C. and Q.X.; project administration, B.C. and Q.X.; funding acquisition, Q.X., B.C., Z.Z., X.G., Y.Z., J.C. and C.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Guangxi Special for Innovation-Driven Development (grant numbers AA19254034) and the Guangdong Basic and Applied Basic Research Foundation (Guangdong-Guangxi Joint Foundation) [grant numbers 2021A1515410009].

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data used in the manuscript are downloaded from public access and are open source data. Load data downloaded from http://cm.asu.edu/ (accessed on 1 June 2022). Weather data downloaded from https://nsrdb.nrel.gov/ (accessed on 1 June 2022).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Facchini, A. Distributed energy resources: Planning for the future. Nat. Energy 2017, 2, 17129. [Google Scholar] [CrossRef]
  2. Lotero, R.; de Souza, H. Optimal Selection of Photovoltaic Generation for a Community of Electricity Prosumers. IEEE Lat. Am. Trans. 2020, 18, 791–799. [Google Scholar] [CrossRef]
  3. Chen, L.; Liu, N.; Yu, S.; Xu, Y. A Stochastic Game Approach for Distributed Voltage Regulation Among Autonomous PV Prosumers. IEEE Trans. Power Syst. 2022, 37, 776–787. [Google Scholar] [CrossRef]
  4. Hong, T.; Fan, S. Probabilistic electric load forecasting: A tutorial review. Int. J. Forecast. 2016, 32, 914–938. [Google Scholar] [CrossRef]
  5. Li, K.; Wang, F.; Mi, Z.; Fotuhi-Firuzabad, M.; Duić, N.; Wang, T. Capacity and output power estimation approach of individual behind-the-meter distributed photovoltaic system for demand response baseline estimation. Appl. Energy 2019, 253, 113595. [Google Scholar] [CrossRef]
  6. Kara, E.C.; Roberts, C.M.; Tabone, M.; Alvarez, L.; Callaway, D.S.; Stewart, E.M. Disaggregating solar generation from feeder-level measurements. Sustain. Energy Grids Netw. 2018, 13, 112–121. [Google Scholar] [CrossRef]
  7. Charytoniuk, W.; Chen, M.S. Nonparametric regression based short-term load forecasting. IEEE Trans. Power Syst 1998, 13, 725–730. [Google Scholar] [CrossRef]
  8. Wang, R.; Zhang, W.; Deng, W.; Zhang, R.; Zhang, X. Study on Prediction of Energy Conservation and Carbon Reduction in Universities Based on Exponential Smoothing. Sustainability 2022, 14, 1903. [Google Scholar] [CrossRef]
  9. Lee, C.-M.; Ko, C.-N. Short-term load forecasting using lifting scheme and ARIMA models. Expert Syst. Appl. 2011, 38, 5902–5911. [Google Scholar] [CrossRef]
  10. Li, G.; Li, Y.; Roozitalab, F. Midterm Load Forecasting: A Multistep Approach Based on Phase Space Reconstruction and Support Vector Machine. IEEE Syst. J. 2020, 14, 4967–4977. [Google Scholar] [CrossRef]
  11. Amjady, N. Short-Term Bus Load Forecasting of Power Systems by a New Hybrid Method. IEEE Trans. Power Syst. 2007, 22, 333–341. [Google Scholar] [CrossRef]
  12. Shen, Y.; Zhang, J. Short-term load forecasting of power system based on similar day method and PSO-DBN. In Proceedings of the 2018 2nd IEEE Conference on Energy Internet and Energy System Integration (EI2), Beijing, China, 20–22 October 2018. [Google Scholar] [CrossRef]
  13. Inteha, A.; Nahid Al, M.; Hussain, F.; Khan, I.A. A Data Driven Approach for Day Ahead Short-Term Load Forecasting. IEEE Access 2022, 10, 84227–84243. [Google Scholar] [CrossRef]
  14. Wang, Z.; Jia, L. Short-Term Photovoltaic Power Generation Prediction Based on LightGBM-LSTM Model. In Proceedings of the 2020 5th International Conference on Power and Renewable Energy (ICPRE), Shanghai, China, 12–14 September 2020; pp. 543–547. [Google Scholar] [CrossRef]
  15. Alipour, M.; Aghaei, J.; Norouzi, M.; Niknam, T.; Hashemi, S.; Lehtonen, M. A novel electrical net-load forecasting model based on deep neural networks and wavelet transform integration. Energy 2020, 205, 118106. [Google Scholar] [CrossRef]
  16. Sun, M.; Zhang, T.; Wang, Y.; Strbac, G.; Kang, C. Using Bayesian Deep Learning to Capture Uncertainty for Residential Net Load Forecasting. IEEE Trans. Power Syst. 2020, 35, 188–201. [Google Scholar] [CrossRef]
  17. Wang, H.; Zhang, Z. TATCN: Time Series Prediction Model Based on Time Attention Mechanism and TCN. In Proceedings of the 2022 IEEE 2nd International Conference on Computer Communication and Artificial Intelligence (CCAI), Beijing, China, 6–8 May 2022; pp. 26–31. [Google Scholar]
  18. Kaur, A.; Nonnenmacher, L.; Coimbra, C.F.M. Net load forecasting for high renewable energy penetration grids. Energy 2016, 114, 1073–1084. [Google Scholar] [CrossRef]
  19. Wan, Z.; Xuan, L.; Xiang, R.; Zhang, Y.; Zhang, H. Study on the Electricity Transaction of DG Prosumer under Different Settlement Modes. In Proceedings of the 2021 China International Conference on Electricity Distribution (CICED), Shanghai, China, 6–9 April 2021; pp. 1006–1009. [Google Scholar]
  20. Campus Metabolism. 2022. Available online: http://cm.asu.edu/ (accessed on 1 June 2022).
  21. Song, J.; He, C.; Li, Z. Daily Load Curve Clustering Method Based on Feature Index Dimension Reduction and Entropy Weight Method. Autom. Electr. Power Syst. 2019, 43, 65–72. [Google Scholar] [CrossRef]
  22. Tambunan, H.B.; Barus, D.H.; Hartono, J.; Alam, A.S.; Nugraha, D.A.; Usman, H.H.H. Electrical Peak Load Clustering Analysis Using K-Means Algorithm and Silhouette Coefficient. In Proceedings of the 2020 International Conference on Technology and Policy in Energy and Electric Power (ICT-PEP), Bandung, Indonesia, 23–24 September 2020; pp. 258–262. [Google Scholar] [CrossRef]
  23. Zhang, G.; Zhu, S.; Bai, X. Federated Learning-Based Multi-Energy Load Forecasting Method Using CNN-Attention-LSTM Model. Sustainability 2022, 14, 2843. [Google Scholar] [CrossRef]
  24. Chen, X.; Chen, W.; Dinavahi, V.; Liu, Y.; Feng, J. Short-Term Load Forecasting and Associated Weather Variables Prediction Using ResNet-LSTM Based Deep Learning. IEEE Access 2023, 11, 5393–5405. [Google Scholar] [CrossRef]
  25. Acquah, M.A.; Jin, Y.; Oh, B.-C.; Son, Y.-G.; Kim, S.-Y. Spatiotemporal Sequence-to-Sequence Clustering for Electric Load Forecasting. IEEE Access 2023, 11, 5850–5863. [Google Scholar] [CrossRef]
  26. Dunwen, S.; Xuetao, Y.; Zheng, L.; Hanyang, D. A Trainsient Voltage Stability Evaluation Model Based on Morphological Similarity Distance Online Calculation. In Proceedings of the 2020 IEEE 3rd Student Conference on Electrical Machines and Systems (SCEMS), Jinan, China, 4–6 December 2020; pp. 243–247. [Google Scholar]
  27. Lai, G.; Chang, W.-C.; Yang, Y.; Liu, H. Modeling Long- and Short-Term Temporal Patterns with Deep Neural Networks. In Proceedings of the 41st International ACM SIGIR Conference on Research & Development in Information Retrieval, Ann Arbor, MI, USA, 6–8 July 2018; pp. 95–104. [Google Scholar]
  28. National Solar Radiation Database (NSRDB). 2022. Available online: http://nsrdb.nrel.gov/ (accessed on 1 June 2022).
  29. Feng, C.; Cui, M.; Hodge, B.-M.; Zhang, J. A data-driven multi-model methodology with deep feature selection for short-term wind forecasting. Appl. Energy 2017, 190, 1245–1257. [Google Scholar] [CrossRef]
  30. Wang, Y.; Zhang, N.; Chen, Q.; Kirschen, D.S.; Li, P.; Xia, Q. Data-Driven Probabilistic Net Load Forecasting with High Penetration of Behind-the-Meter PV. IEEE Trans. Power Syst. 2018, 33, 3255–3264. [Google Scholar] [CrossRef]
Figure 1. Power curves in summer and winter.
Figure 1. Power curves in summer and winter.
Sustainability 15 03376 g001
Figure 2. Flowchart of K-means.
Figure 2. Flowchart of K-means.
Sustainability 15 03376 g002
Figure 3. Dynamic segmentation results.
Figure 3. Dynamic segmentation results.
Sustainability 15 03376 g003
Figure 4. Structure of TCN.
Figure 4. Structure of TCN.
Sustainability 15 03376 g004
Figure 5. Flow chart of trend indexes prediction module.
Figure 5. Flow chart of trend indexes prediction module.
Sustainability 15 03376 g005
Figure 6. Flow chart of the power prediction model.
Figure 6. Flow chart of the power prediction model.
Sustainability 15 03376 g006
Figure 7. Analysis results of the influencing factors under different DRE penetration scenarios.
Figure 7. Analysis results of the influencing factors under different DRE penetration scenarios.
Sustainability 15 03376 g007
Figure 8. Prediction results under different similar set selection methods.
Figure 8. Prediction results under different similar set selection methods.
Sustainability 15 03376 g008
Figure 9. Prediction results of the ablation study.
Figure 9. Prediction results of the ablation study.
Sustainability 15 03376 g009
Figure 10. Comparison of multimodel prediction results for scenario 1 (1.1% penetration): (a) Comparison of multimodel prediction curves; (b) comparison of multimodel prediction errors.
Figure 10. Comparison of multimodel prediction results for scenario 1 (1.1% penetration): (a) Comparison of multimodel prediction curves; (b) comparison of multimodel prediction errors.
Sustainability 15 03376 g010
Figure 11. Comparison of multimodel prediction results for scenario 3 (21.7% penetration). (a) Comparison of multimodel prediction curves; (b) comparison of multimodel prediction errors.
Figure 11. Comparison of multimodel prediction results for scenario 3 (21.7% penetration). (a) Comparison of multimodel prediction curves; (b) comparison of multimodel prediction errors.
Sustainability 15 03376 g011
Table 1. Inputs for the power prediction model.
Table 1. Inputs for the power prediction model.
SizeInputNote
48GHIGlobal horizontal irradiance (w/m2)
48CDNIClear sky direct normal irradiance
48CDHIClear sky diffuse horizontal irradiance
48SZASolar zenith angle (Degree)
48Wind speedm/s
48Dew point°C
48WaterPrecipitable water (/cm)
48Temperature°C
144Historical power of
the first three days
Historical data
1Day typeWeekday: 0; Weekend: 1
1SeasonOne-hot code
1Maximum powerFrom trend indexes prediction
1Minimum powerFrom trend indexes prediction
1Average powerFrom trend indexes prediction
1Gross powerFrom trend indexes prediction
4Average power
of four periods
From trend indexes prediction
Table 2. Power feature indexes.
Table 2. Power feature indexes.
Time IntervalIndexDefinition
00:00–24:00Load factor a 1 = P a v / P max
00:00–24:00Maximum power utilization time a 2 = P s u m / P max
00:00–24:00Peak-to-valley difference ratio a 3 = ( P max P min ) P max
0:00~7:00Segment 1 load factor a 4 = P a v .1 / P a v
7:00~17:00Segment 2 load factor a 5 = P a v .2 / P a v
17:00~21:00Segment 3 load factor a 6 = P a v .3 / P a v
21:00~24:00Segment 4 load factor a 7 = P a v .4 / P a v
Table 3. Comparison of curve similarity evaluation metrics.
Table 3. Comparison of curve similarity evaluation metrics.
Similar Sets Selection MethodAcc (%)DMSD
Meteorological Similar Method10.8987
Dynamic Segment Matching Method800.7526
1 Clustering curve types have no reference to the meteorological similarity method selection results.
Table 4. Comparison of measuring metrics under different similar sets selection methods.
Table 4. Comparison of measuring metrics under different similar sets selection methods.
Similar Sets Selection MethodMAPE (%)NRMSE
Meteorological Similar Method7.440.04792
Dynamic Segment Matching Method6.090.04372
Table 5. Comparison of the measuring metrics for different DRE penetration scenarios.
Table 5. Comparison of the measuring metrics for different DRE penetration scenarios.
ModelScenario 1
(1.1% Penetration)
Scenario 2
(13% Penetration)
Scenario 3
(21.7% Penetration)
MAPE
(%)
MBE
(KW)
NRMSEMAPE
(%)
MBE
(KW)
NRMSEMAPE
(%)
MBE
(KW)
NRMSE
Proposed model5.52−25.430.041285.23−382.630.040189.6210.140.02806
TCN6.45−47.230.052136.84−639.620.0510210.34−12.810.04431
LSTM7.13−37.920.053257.17−811.580.0519510.7320.230.04539
Lightgbm6.72−42.410.052336.53−706.870.0504611.37−24.560.06019
Table 6. Comparison of measuring metrics for typical months in 13% penetration Scenario.
Table 6. Comparison of measuring metrics for typical months in 13% penetration Scenario.
ModelJulyDecember
MAPE
(%)
MBE
(KW)
NRMSEMAPE
(%)
MBE
(KW)
NRMSE
Proposed model5.08174.520.039835.22−536.830.04004
TCN6.46−625.210.050786.73−861.930.05115
LSTM7.05−671.570.052997.11−880.680.05306
Lightgbm6.26−825.560.049766.22−906.870.04990
Table 7. Comparison of the measuring metrics for different DRE penetration simulation scenarios.
Table 7. Comparison of the measuring metrics for different DRE penetration simulation scenarios.
ModelScenario 4
(5% Penetration)
Scenario 5
(30% Penetration)
MAPE
(%)
MBE
(KW)
NRMSEMAPE
(%)
MBE
(KW)
NRMSE
Proposed model4.48−136.230.034126.98−362.160.04631
TCN5.32−224.040.035619.63−419.340.05721
LSTM5.62−235.780.0370510.73−695.060.06031
Lightgbm5.48−180.610.0362310.34−575.930.05972
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Chen, B.; Xu, Q.; Zhao, Z.; Guo, X.; Zhang, Y.; Chi, J.; Li, C. A Prosumer Power Prediction Method Based on Dynamic Segmented Curve Matching and Trend Feature Perception. Sustainability 2023, 15, 3376. https://doi.org/10.3390/su15043376

AMA Style

Chen B, Xu Q, Zhao Z, Guo X, Zhang Y, Chi J, Li C. A Prosumer Power Prediction Method Based on Dynamic Segmented Curve Matching and Trend Feature Perception. Sustainability. 2023; 15(4):3376. https://doi.org/10.3390/su15043376

Chicago/Turabian Style

Chen, Biyun, Qi Xu, Zhuoli Zhao, Xiaoxuan Guo, Yongjun Zhang, Jingmin Chi, and Canbing Li. 2023. "A Prosumer Power Prediction Method Based on Dynamic Segmented Curve Matching and Trend Feature Perception" Sustainability 15, no. 4: 3376. https://doi.org/10.3390/su15043376

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop