A method for analyzing residential electric vehicle load based on Elman neural network algorithm
Through the electric vehicle load analysis method based on Elman neural network, the problem of peak and valley situation analysis of electric vehicle loads in residential areas is solved, accurate prediction of electric vehicle loads and complementary feature mining are achieved, and the efficiency of power grid dispatching and energy optimization is improved.
Patent Information
- Application Number
- CN202411080671.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-08
Smart Images

Figure CN118596922B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electric vehicle load analysis, and in particular to a method for analyzing the load of residential electric vehicles based on an Elman neural network algorithm. Background Art
[0002] Accurate analysis of residential electric vehicle load can help power companies and energy suppliers optimize power generation plans, while reducing energy waste and carbon emissions, which is of great significance to the stable operation and sustainable development of the power system. At present, electric vehicle load analysis methods can be summarized into classical analysis methods, traditional analysis methods and modern intelligent analysis methods.
[0003] With the access of a large number of electric vehicles in residential areas to the power system, there is a certain impact on the traditional power grid load, and the load characteristics of electric vehicles connected to the power grid are becoming increasingly complex. Accurately obtaining the daily load curve and load characteristics of electric vehicles in residential areas is the basic work for the dispatching and operation of the power system and research. The peak and valley characteristics of the load curve reflect the power consumption and power change trend of electric vehicle loads under a specific time scale. The analysis and prediction of the peak and valley situation of electric vehicle loads in residential areas and the complementarity analysis of electric vehicle loads can provide certain references and guidance for the dispatching and operation of the power grid, which has important scientific research and practical engineering significance. Therefore, it is necessary to propose a residential electric vehicle load analysis method based on the Elman neural network algorithm. Summary of the invention
[0004] The purpose of the present invention is to solve at least one of the technical problems existing in the prior art and to provide a method for analyzing the load of residential electric vehicles based on the Elman neural network algorithm.
[0005] To achieve the above object, the technical solution adopted by the present invention is as follows: a method for analyzing the load of residential electric vehicles based on the Elman neural network algorithm, comprising the following steps:
[0006] Step 1, define the electric vehicle load peak and valley situation system; specifically, obtain the historical electric vehicle load data of the residential users of the load to be predicted to obtain the electric vehicle load curve, and define the electric vehicle load peak and valley situation system according to the peak and valley characteristics in the electric vehicle load curve;
[0007] Step 2: Preprocess the electric vehicle load curve by Gaussian filtering; specifically, use a one-dimensional Gaussian filtering method to perform noise reduction processing on the historical electric vehicle load data to smooth the electric vehicle load curve, so as to obtain peak and valley situation information of various load curves;
[0008] Step 3, determine the clustering effectiveness index and algorithm; specifically, first determine the number of clusters to be clustered by the clustering algorithm, evaluate the clustering quality by calculating the clustering effectiveness index to determine the optimal clustering number of the sample, select the DBI index to calculate the optimal clustering number of the net load peak and valley situation, and use the K-means clustering algorithm to cluster the daily net load peak and valley situation of residential electric vehicles by quarter to divide the typical net load peak and valley situation scenarios of each quarter, and obtain the peak and valley situation information characteristics of the electric vehicle net load under each typical scenario in each quarter;
[0009] Step 4: Conduct a correlation analysis on the peak-valley situation of the daily net load of residential electric vehicles; specifically, cluster the peak-valley situation of the daily net load of residential electric vehicles in each quarter of the year based on the K-means clustering algorithm, reduce and classify the peak-valley situation of the daily net load of the whole year into several typical scenario situation categories, and use the correlation coefficient as the correlation judgment basis for the peak-valley situation information of the daily net load of residential electric vehicles to judge the correlation degree of the peak-valley situation information of the daily net load of residential electric vehicles in the living area;
[0010] Step 5, select the input and output variables and analyze the prediction results; specifically, use the Elman neural network to predict the peak and valley situation of the electric vehicle load of the living area users, and after obtaining the prediction results of the daily net load peak and valley situation of the electric vehicle load in the living area, calculate the percentage error and the average absolute value percentage error of the actual value of the electric vehicle load peak and valley situation to verify the analysis and prediction effect of the electric vehicle load peak and valley situation analysis method;
[0011] Step 6: Perform peak-valley complementary analysis on electric vehicle loads; specifically, based on the electric vehicle load data in the living area, obtain the peak-valley characteristics of its net load curve, and obtain its peak-valley complementary situation information, so as to analyze the complementary characteristics of the peak-valley of the electric vehicle load in the living area in the past or in the future.
[0012] Furthermore, in step 2, the specific steps of performing Gaussian filtering preprocessing on the electric vehicle load curve are as follows:
[0013] Step 2.1: Use VSCode software to visualize and analyze the data in the power load dataset to see if there are any missing or abnormal data in the data.
[0014] Step 2.2, comprehensively consider the data of the previous moment, the next moment, the previous day, and the next day for the missing data, and use the weight coefficient to perform weighted summing and filling of the data; Gaussian filtering denoising performs weighted average of the values of each point of the entire one-dimensional numerical sequence, that is, the load curve, and then for each load value point, the Gaussian function is used to perform weighted average correction on the other load values in its neighborhood to obtain the denoised load value;
[0015] Gaussian filtering is a low-pass filtering algorithm that can be used to smooth one-dimensional data curves. The formula for the one-dimensional Gaussian function is:
[0016] ;
[0017] Where: μ is the mean of the Gaussian function, σ is the standard deviation of the Gaussian function;
[0018] Step 2.3, correct the included abnormal data through horizontal and vertical processing;
[0019] In step 2.4, the data are normalized using maximum and minimum normalization.
[0020] Furthermore, in step 3, the specific operation method of data set clustering is as follows:
[0021] Step 3.1, determine the number of clusters; specifically, the number of clusters is determined by the elbow method and the silhouette coefficient method; the cluster evaluation index used by the elbow method is the square of the sum of the distances from all sample points in the data set to their cluster centers;
[0022] In step 3.2, the existing power load data is classified by clustering number through the K-means clustering algorithm, data with similar characteristics are grouped and merged, the data pattern and distribution structure are extracted, and output to the subsequent network.
[0023] Furthermore, in step 3, the calculation process of the K-means clustering algorithm is as follows:
[0024] Step 4.1, input the n×p-dimensional data sample set S to be clustered;
[0025] ;
[0026] in,
[0027] ;
[0028] Step 4.2, input the number of clusters k, first randomly determine k cluster centers;
[0029] ;
[0030] in,
[0031] ;
[0032] Step 4.3, calculate the Euclidean distance between each sample and each cluster center:
[0033] ;
[0034] Step 4.4, divide each sample into sample clusters according to the minimum distance from the cluster center;
[0035] Step 4.5, recalculate and determine the new cluster center using the sample mean in each cluster;
[0036] Step 4.5, repeat the process of step 4.3 and step 4.4 until the change of the cluster center is less than the specified threshold or no longer changes, and determine the cluster division of each sample.
[0037] Furthermore, in step 5, the Elman neural network is used to predict the peak and valley situation of the electric vehicle load of users in the living area, and the specific steps are as follows:
[0038] Step 5.1, first perform denoising preprocessing on the collected load data;
[0039] Step 5.2, according to the definition of the peak-valley situation of the electric vehicle load curve, obtain the peak-valley situation information St of the daily net load curve of the electric vehicle load throughout the year;
[0040] Step 5.3, train the neural network with historical data to build a prediction model, select the peak and valley situation information Sn,t of the electric vehicle load curve 7 days before the prediction date and the weather information Wx of the prediction date as the prediction model input, and use the peak and valley situation information Sx of the electric vehicle load curve of the users in the living area on the prediction date as the prediction output of the neural network, and train the electric vehicle net load curve peak and valley situation prediction model containing the data characteristics of each prediction input information;
[0041] Step 5.4, input the parameters required for the data to be predicted, that is, the peak and valley situation information Sn,1, Sn,2, ..., Sn,7 of the electric vehicle load curve 7 days before the prediction date and the weather information Wx of the prediction date into the constructed prediction model, output the prediction result Sx of the net load peak and valley situation of the prediction date, and compare and analyze the prediction result by comparing the predicted value with the actual electric vehicle load peak and valley situation information data.
[0042] Furthermore, in step 6, based on the electric vehicle load data in the living area, the peak-valley characteristics of the net load curve are obtained, and the peak-valley complementary situation information is obtained, so as to analyze the complementary characteristics of the peak-valley of the electric vehicle load in the living area in the past or in the future. The specific steps are as follows:
[0043] Step 6.1, obtain the electric vehicle load curve characteristic index:
[0044] 1) Peak base value and trough base value
[0045] Peak base value of electric vehicle load curve and trough base value , to divide the peak and trough of the electric vehicle load curve; among them,
[0046] ;
[0047] ;
[0048] In the formula, It is the base value of the electric vehicle load curve for the day;
[0049] 2) Peak / Trough Relative Extremes
[0050] Define the relative extreme value of a single peak in the electric vehicle load curve Relative extreme value to single trough , the expression is as follows:
[0051] ;
[0052] ;
[0053] In the formula, is the maximum peak power, is the minimum trough power;
[0054] 3) Peak / trough extreme time
[0055] The extreme point time of a single peak or trough in the electric vehicle load curve ;
[0056] 4) Peak and valley start and end time
[0057] The starting time of a single peak or trough in the electric vehicle load curve is , the peak or trough end time is ;
[0058] 5) Peak and valley duration ;
[0059] 6) Peak-to-valley climb / descent rate;
[0060] Define the average rate of crest climb Average rate of decline with peak :
[0061] ;
[0062] ;
[0063] Define the trough drop rate and trough recovery rate :
[0064] ;
[0065] ;
[0066] 7) Peak power and valley power; define the single peak power of electric vehicle load curve in living area The corresponding power during the duration of a single peak, the single valley power of the electric vehicle load curve in the living area It is the amount of electricity corresponding to the duration of a single trough, that is:
[0067] W p = ∫ tst ted [ P n ( t ) − P sh ] dt ;
[0068] W v = ∫ tst ted [ P n ( t ) − P sl ] dt ;
[0069] in >0, <0; is the load power of the electric vehicle at the corresponding moment;
[0070] Step 6.2: Obtain the historical load or forecast curve of the electric vehicle to be studied, and obtain the peak characteristic information set of the electric vehicle load curve of the living area users and trough characteristic information collection , calculate the peak-to-valley characteristic matching degree c(p,v) of each peak and trough of the net load of the electric vehicle;
[0071] ;
[0072] ;
[0073] In order to improve the accuracy of matching, the improved grey correlation analysis method is adopted. Taking the time factor into consideration, the predicted curve peak and valley characteristic information set is introduced into the time series analysis method to improve the grey correlation. Different characteristic indicators in the peak and valley characteristic information set are used to characterize the development trend of the electric vehicle load curve, and the correlation between different indicators is judged, so as to accurately analyze the influencing factors of the load curve trend.
[0074] First, the effectiveness indicators in the peak-valley characteristic set are normalized to eliminate the dimensional effects between different indicators so that all features have similar scales. Then, the time factor is introduced. , can better reflect the dynamic relationship of characteristic indicators over time, show the trend changes of different characteristic indicators, and reflect their dynamic change characteristics; if the electric vehicle load series data has strong stability within a certain period of time, a smaller time factor is selected, generally taking the value as 0.57; if the load data changes are relatively unstable, a larger time factor is selected, generally taking the value as 0.88;
[0075] The peak and valley characteristic information is sequenced Compare with i characteristic indicators and calculate the grey correlation coefficient at each data point. The specific calculation method is as follows:
[0076] ;
[0077] In the formula, Indicates the peak-valley characteristic information set sequence characteristic index, represents the i-th characteristic index of the peak-valley characteristic information set sequence, is the peak-valley characteristic information set and the mth influencing factor sequence, the absolute value at the kth data point, ρ is the maximum smoothing coefficient, is the time factor;
[0078] The arithmetic mean of the grey correlation coefficients at each data point is calculated to obtain the correlation between the peak-valley characteristic information set sequence and the i-th influencing factor sequence. The calculation method is:
[0079] ;
[0080] In the formula, n represents the total number of characteristic indicators in the peak-valley characteristic information set;
[0081] Set a threshold and determine whether the influencing factor is the main factor based on whether the grey correlation degree is greater than the threshold. The judgment rules are as follows:
[0082] ;
[0083] In the formula, is the grey correlation threshold; when the grey correlation is greater than , then the influencing factor is the main factor;
[0084] The peak-valley characteristic matching degree of electric vehicle load in different living areas is defined to describe the matching degree of the peak and valley characteristics of the daily net load of electric vehicles in two different living areas:
[0085] ;
[0086] In the formula, They respectively represent the peak and trough characteristic information sets of the electric vehicle load curve of users in the living area;
[0087] For curves with large prediction errors, the original historical load curve is used, and the characteristic matching degree can be calculated using the above formula. For curves with small prediction errors, the predicted curve is used. The characteristic matching degree formula for the peak and trough of the daily net load of electric vehicles based on the prediction curve is as follows:
[0088] ;
[0089] In the formula, , They are respectively the peak and valley characteristic information sets of the electric vehicle load curve of users in the living area after prediction;
[0090] Perform the division of the matching degree and its reflection of the characteristic matching relationship between peaks and valleys, that is: when 0.7 < c ≤ 1, the matching relationship between the peak and the valley is high; when 0.4 < c ≤ 0.7, the matching relationship is medium; when c ≤ 0.4, the matching relationship is low; if there is no coexistence time period between the peak and the valley, there is no characteristic matching relationship between them;
[0091] According to the peak and valley characteristic results of the previous step, after obtaining the load curves of different living areas, if there are peaks and valleys with a complementary relationship in the electric vehicle loads of the different living areas under study at the same time period, then proceed to the next step; if there are no peaks and valleys in the electric vehicle loads of the different living areas under study at the same time period, then there is no complementary relationship between the peak and valley of the daily net load of the substation bus;
[0092] Step 6.3, calculate the peak-valley electricity complementary peak shaving ratio between the peaks and valleys of the electric vehicle load and the peak-valley electricity complementary valley filling ratio ; Organize the obtained peak-valley complementary situation of the electric vehicle load, and analyze the peak-valley complementary characteristics of the electric vehicle load;
[0093] Define the peak-valley electricity complementary peak shaving ratio of the daily net load of electric vehicles in the living area and the peak-valley electricity complementary valley filling ratio :
[0094] ;
[0095] ;
[0096] In the formula, is the electricity of the complementary part within the peak and valley time periods;
[0097] The peak-valley electricity complementary peak shaving ratio characterizes the degree of reduction of a certain peak by the matched valley when a certain peak and a certain valley are complementary; the peak-valley electricity complementary valley filling ratio characterizes the degree of filling of a certain valley by the matched peak; the higher its value, the greater the proportion of the complementary electricity of the peak and the valley to the original peak or valley electricity, and the stronger the complementarity.
[0098] From the above description of the present invention, compared with the prior art, the present invention at least includes one of the following beneficial effects:
[0099] 1. The present invention proposes and defines a new concept system of peak and valley situation of daily net load of electric vehicles in residential areas, and uses multiple information dimensions such as peak and valley power of electric vehicle load and its change rate to describe the load characteristics of electric vehicles in residential areas, which expands the connotation of traditional peak and valley characteristics and can provide new decision-making support information for regional power grid and electric vehicle load characteristics analysis;
[0100] 2. The present invention adopts K-means clustering algorithm to cluster the peak and valley situation information of electric vehicle load in residential areas to obtain the daily situation characteristics of typical scenarios, and further explores the influence characteristics of electric vehicle load through correlation analysis;
[0101] 3. The present invention analyzes the peak-valley complementary characteristics of electric vehicle loads of users in residential areas, describes the peak-valley complementary relationship from the matching relationship of peak-valley characteristics of electric vehicle loads in residential areas and the complementarity of peak-valley electricity, and can explore the complementary characteristics of electric vehicle loads of users in residential areas. BRIEF DESCRIPTION OF THE DRAWINGS
[0102] Figure 1 It is a flow chart of the steps of a method for analyzing residential electric vehicle load based on the Elman neural network algorithm in an embodiment of the present invention;
[0103] Figure 2 It is an Elman neural network structure diagram of a residential electric vehicle load analysis method based on an Elman neural network algorithm in an embodiment of the present invention;
[0104] Figure 3 The present invention discloses a peak-valley situation analysis diagram of daily net load of electric vehicles in residential areas according to a method for analyzing load of electric vehicles for residents based on an Elman neural network algorithm. DETAILED DESCRIPTION
[0105] The technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiment of the present invention, not all of the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0106] Reference Figures 1 to 3 As shown, a preferred embodiment of the present invention, a method for analyzing residential electric vehicle load based on Elman neural network algorithm, comprises the following steps:
[0107] Step 1, define the electric vehicle load peak and valley situation system; specifically, obtain the historical electric vehicle load data of the residential users of the load to be predicted to obtain the electric vehicle load curve, and define the electric vehicle load peak and valley situation system according to the peak and valley characteristics in the electric vehicle load curve;
[0108] Step 2: Preprocess the electric vehicle load curve by Gaussian filtering; specifically, use a one-dimensional Gaussian filtering method to perform noise reduction processing on the historical electric vehicle load data to smooth the electric vehicle load curve, so as to obtain peak and valley situation information of various load curves;
[0109] Step 3, determine the clustering effectiveness index and algorithm; specifically, first determine the number of clusters to be clustered by the clustering algorithm, evaluate the clustering quality by calculating the clustering effectiveness index to determine the optimal clustering number of the sample, select the DBI index to calculate the optimal clustering number of the net load peak and valley situation, and use the K-means clustering algorithm to cluster the daily net load peak and valley situation of residential electric vehicles by quarter to divide the typical net load peak and valley situation scenarios of each quarter, and obtain the peak and valley situation information characteristics of the electric vehicle net load under each typical scenario in each quarter;
[0110] Step 4: Conduct a correlation analysis on the peak-valley situation of the daily net load of residential electric vehicles; specifically, cluster the peak-valley situation of the daily net load of residential electric vehicles in each quarter of the year based on the K-means clustering algorithm, reduce and classify the peak-valley situation of the daily net load of the whole year into several typical scenario situation categories, and use the correlation coefficient as the correlation judgment basis for the peak-valley situation information of the daily net load of residential electric vehicles to judge the correlation degree of the peak-valley situation information of the daily net load of residential electric vehicles in the living area;
[0111] Step 5, select the input and output variables and analyze the prediction results; specifically, use the Elman neural network to predict the peak and valley situation of the electric vehicle load of the living area users, and after obtaining the prediction results of the daily net load peak and valley situation of the electric vehicle load in the living area, calculate the percentage error and the average absolute value percentage error of the actual value of the electric vehicle load peak and valley situation to verify the analysis and prediction effect of the electric vehicle load peak and valley situation analysis method;
[0112] Step 6: Perform peak-valley complementary analysis on electric vehicle loads; specifically, based on the electric vehicle load data in the living area, obtain the peak-valley characteristics of its net load curve, and obtain its peak-valley complementary situation information, so as to analyze the complementary characteristics of the peak-valley of the electric vehicle load in the living area in the past or in the future.
[0113] The present invention proposes and defines a new concept system of the peak-valley situation of daily net load of electric vehicles in residential areas, and uses multiple information dimensions such as the peak-valley power of electric vehicle load and its change rate to describe the load characteristics of electric vehicles in residential areas, expanding the connotation of traditional peak-valley characteristics, and providing new decision-making support information for regional power grid and electric vehicle load characteristics analysis;
[0114] The present invention adopts K-means clustering algorithm to cluster the peak and valley situation information of electric vehicle load in residential areas to obtain the daily situation characteristics of typical scenarios, and further explores the influence characteristics of electric vehicle load through correlation analysis;
[0115] The present invention analyzes the peak-valley complementary characteristics of electric vehicle loads of users in residential areas, describes the peak-valley complementary relationship from the matching relationship of peak-valley characteristics of electric vehicle loads in residential areas and the complementarity of peak-valley electricity, and can explore the complementary characteristics of electric vehicle loads of users in residential areas.
[0116] As a preferred embodiment of the present invention, it may also have the following additional technical features:
[0117] In this embodiment, in step 2, the specific steps of performing Gaussian filtering preprocessing on the electric vehicle load curve are as follows:
[0118] Step 2.1: Use VSCode software to visualize and analyze the data in the power load dataset to see if there are any missing or abnormal data in the data.
[0119] Step 2.2, comprehensively consider the data of the previous moment, the next moment, the previous day, and the next day for the missing data, and use the weight coefficient to perform weighted summing and filling of the data; Gaussian filtering denoising performs weighted average of the values of each point of the entire one-dimensional numerical sequence, that is, the load curve, and then for each load value point, the Gaussian function is used to perform weighted average correction on the other load values in its neighborhood to obtain the denoised load value;
[0120] Gaussian filtering is a low-pass filtering algorithm that can be used to smooth one-dimensional data curves. The formula for the one-dimensional Gaussian function is:
[0121] ;
[0122] Where: μ is the mean of the Gaussian function, σ is the standard deviation of the Gaussian function;
[0123] Step 2.3, correct the included abnormal data through horizontal and vertical processing;
[0124] In step 2.4, the data are normalized using maximum and minimum normalization.
[0125] In this embodiment, in step 3, the specific operation method of data set clustering is as follows:
[0126] Step 3.1, determine the number of clusters; specifically, the number of clusters is determined by the elbow method and the silhouette coefficient method; the cluster evaluation index used by the elbow method is the square of the sum of the distances from all sample points in the data set to their cluster centers;
[0127] In step 3.2, the existing power load data is classified by clustering number through the K-means clustering algorithm, data with similar characteristics are grouped and merged, the data pattern and distribution structure are extracted, and output to the subsequent network.
[0128] In this embodiment, in step 3, the calculation process of the K-means clustering algorithm is as follows:
[0129] Step 4.1, input the n×p-dimensional data sample set S to be clustered;
[0130] ;
[0131] in,
[0132] ;
[0133] Step 4.2, input the number of clusters k, first randomly determine k cluster centers;
[0134] ;
[0135] in,
[0136] ;
[0137] Step 4.3, calculate the Euclidean distance between each sample and each cluster center:
[0138] ;
[0139] Step 4.4, divide each sample into sample clusters according to the minimum distance from the cluster center;
[0140] Step 4.5, recalculate and determine the new cluster center using the sample mean in each cluster;
[0141] Step 4.5, repeat the process of step 4.3 and step 4.4 until the change of the cluster center is less than the specified threshold or no longer changes, and determine the cluster division of each sample.
[0142] In this embodiment, in step 5, the Elman neural network is used to predict the peak and valley situation of the electric vehicle load of users in the living area, and the specific steps are as follows:
[0143] Step 5.1, first perform denoising preprocessing on the collected load data;
[0144] Step 5.2, according to the definition of the peak-valley situation of the electric vehicle load curve, obtain the peak-valley situation information St of the daily net load curve of the electric vehicle load throughout the year;
[0145] Step 5.3, train the neural network with historical data to build a prediction model, select the peak and valley situation information Sn,t of the electric vehicle load curve 7 days before the prediction date and the weather information Wx of the prediction date as the prediction model input, and use the peak and valley situation information Sx of the electric vehicle load curve of the users in the living area on the prediction date as the prediction output of the neural network, and train the electric vehicle net load curve peak and valley situation prediction model containing the data characteristics of each prediction input information;
[0146] Step 5.4, input the parameters required for the data to be predicted, that is, the peak and valley situation information Sn,1, Sn,2, ..., Sn,7 of the electric vehicle load curve 7 days before the prediction date and the weather information Wx of the prediction date into the constructed prediction model, output the prediction result Sx of the net load peak and valley situation of the prediction date, and compare and analyze the prediction result by comparing the predicted value with the actual electric vehicle load peak and valley situation information data.
[0147] In this embodiment, in step 6, based on the electric vehicle load data in the living area, the peak-valley characteristics of the net load curve are obtained, and the peak-valley complementary situation information is obtained, so as to analyze the complementary characteristics of the peak-valley of the electric vehicle load in the living area in the past or in the future. The specific steps are as follows:
[0148] Step 6.1, obtain the electric vehicle load curve characteristic index:
[0149] 1) Peak base value and trough base value
[0150] Peak base value of electric vehicle load curve and trough base value , to divide the peak and trough of the electric vehicle load curve; among them,
[0151] ;
[0152] ;
[0153] In the formula, It is the base value of the electric vehicle load curve for the day;
[0154] 2) Peak / Trough Relative Extremes
[0155] Define the relative extreme value of a single peak in the electric vehicle load curve Relative extreme value to single trough , the expression is as follows:
[0156] ;
[0157] ;
[0158] In the formula, is the maximum peak power, is the minimum trough power;
[0159] 3) Peak / trough extreme time
[0160] The extreme point time of a single peak or trough in the electric vehicle load curve ;
[0161] 4) Peak and valley start and end time
[0162] The starting time of a single peak or trough in the electric vehicle load curve is , the peak or trough end time is ;
[0163] 5) Peak and valley duration ;
[0164] 6) Peak-to-valley climb / descent rate;
[0165] Define the average rate of crest climb Average rate of decline with peak :
[0166] ;
[0167] ;
[0168] Define the trough drop rate and trough recovery rate :
[0169] ;
[0170] ;
[0171] 7) Peak power and valley power; define the single peak power of electric vehicle load curve in living area The corresponding power during the duration of a single peak, the single valley power of the electric vehicle load curve in the living area It is the amount of electricity corresponding to the duration of a single trough, that is:
[0172] W p = ∫ tst ted [ P n ( t ) − P sh ] dt ;
[0173] W v = ∫ tst ted [ P n ( t ) − P sl ] dt ;
[0174] in >0, <0; is the load power of the electric vehicle at the corresponding moment;
[0175] Step 6.2: Obtain the historical load or forecast curve of the electric vehicle to be studied, and obtain the peak characteristic information set of the electric vehicle load curve of the living area users and trough characteristic information collection , calculate the peak-to-valley characteristic matching degree c(p,v) of each peak and trough of the net load of the electric vehicle;
[0176] ;
[0177] ;
[0178] In order to improve the accuracy of matching, the improved grey correlation analysis method is adopted. Taking the time factor into consideration, the predicted curve peak and valley characteristic information set is introduced into the time series analysis method to improve the grey correlation. Different characteristic indicators in the peak and valley characteristic information set are used to characterize the development trend of the electric vehicle load curve, and the correlation between different indicators is judged, so as to accurately analyze the influencing factors of the load curve trend.
[0179] First, the effectiveness indicators in the peak-valley characteristic set are normalized to eliminate the dimensional effects between different indicators so that all features have similar scales. Then, the time factor is introduced. , can better reflect the dynamic relationship of characteristic indicators over time, show the trend changes of different characteristic indicators, and reflect their dynamic change characteristics; if the electric vehicle load series data has strong stability within a certain period of time, a smaller time factor is selected, generally taking the value as 0.57; if the load data changes are relatively unstable, a larger time factor is selected, generally taking the value as 0.88;
[0180] The peak and valley characteristic information is sequenced Compare with i characteristic indicators and calculate the grey correlation coefficient at each data point. The specific calculation method is as follows:
[0181] ;
[0182] In the formula, Indicates the peak-valley characteristic information set sequence characteristic index, represents the i-th characteristic index of the peak-valley characteristic information set sequence, is the peak-valley characteristic information set and the mth influencing factor sequence, the absolute value at the kth data point, ρ is the maximum smoothing coefficient, is the time factor;
[0183] The arithmetic mean of the grey correlation coefficients at each data point is calculated to obtain the correlation between the peak-valley characteristic information set sequence and the i-th influencing factor sequence. The calculation method is:
[0184] ;
[0185] In the formula, n represents the total number of characteristic indicators in the set of peak-valley characteristic information;
[0186] Set a threshold and determine whether the influencing factor is a main factor according to whether the grey correlation degree is greater than this threshold. The judgment rules are as follows:
[0187] ;
[0188] In the formula, is the grey correlation degree threshold; when the grey correlation degree is greater than , the influencing factor is a main factor;
[0189] Define the matching degree of the peak-valley characteristics of electric vehicle loads in different living areas to describe the matching degree of the characteristics of the daily net load peaks and valleys of electric vehicles in two different living areas:
[0190] ;
[0191] In the formula, respectively represent the sets of peak and valley characteristic information of the electric vehicle load curves of the users in the living area;
[0192] For the curve with a large prediction error, the original historical load curve is adopted, and its characteristic matching degree can be calculated using the above formula. For the curve with a small prediction error, the predicted curve is adopted. The formula for the matching degree of the characteristics of the daily net load peaks and valleys of electric vehicles for the predicted curve is as follows:
[0193] ;
[0194] In the formula, , respectively are the sets of peak and valley characteristic information of the predicted electric vehicle load curves of the users in the living area;
[0195] Conduct the division of the matching degree and its reflection of the characteristic matching relationship between the peak and valley, that is: when 0.7 < c ≤ 1, the matching relationship between the peak and valley is high; when 0.4 < c ≤ 0.7, the matching relationship is medium; when c ≤ 0.4, the matching relationship is low; if there is no coexistence time period between the peak and valley, there is no characteristic matching relationship between them;
[0196] According to the peak-valley characteristic results of the previous step, after obtaining the load curves of different living areas, if there are peaks and valleys with a complementary relationship in the same time period for the electric vehicle loads in the different living areas under study, then proceed to the next step; if there are no peaks and valleys in the same time period for the electric vehicle loads in the different living areas under study, then there is no complementary relationship between the daily net load peaks and valleys of the substation bus;
[0197] Step 6.3, calculate the peak-to-valley complementary peak-cutting ratio between the peaks and valleys of the electric vehicle load Complementary filling ratio with peak-valley power ; Organize the obtained peak-valley complementary situation of electric vehicle load and analyze the peak-valley complementary characteristics of electric vehicle load;
[0198] Definition of the peak-to-valley complementary peak-shaving ratio of daily net load of electric vehicles in living areas Complementary filling ratio with peak-valley power :
[0199] ;
[0200] ;
[0201] In the formula, It is the complementary amount of electricity during the peak and trough periods;
[0202] Peak-valley power complementary peak shaving ratio It indicates the degree to which the matching trough reduces the peak when a peak complements a trough; peak-to-valley power complementary filling ratio It represents the degree to which the matched peak fills the trough; the higher the value, the greater the proportion of the complementary electricity of the peak and trough to the original peak or trough electricity, and the stronger the complementarity.
[0203] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and improved concepts of the present invention within the technical scope disclosed by the present invention, and they should be covered by the protection scope of the present invention.
Claims
1. A method for analyzing residential electric vehicle load based on Elman neural network algorithm, characterized in that: The following steps are involved: Step 1, define the electric vehicle load peak and valley situation system; specifically, obtain the historical electric vehicle load data of the residential users of the load to be predicted to obtain the electric vehicle load curve, and define the electric vehicle load peak and valley situation system according to the peak and valley characteristics in the electric vehicle load curve; Step 2: Preprocess the electric vehicle load curve by Gaussian filtering; specifically, use a one-dimensional Gaussian filtering method to perform noise reduction processing on the historical electric vehicle load data to smooth the electric vehicle load curve, so as to obtain peak and valley situation information of various load curves; Step 3, determine the clustering effectiveness index and algorithm; specifically, first determine the number of clusters to be clustered by the clustering algorithm, evaluate the clustering quality by calculating the clustering effectiveness index to determine the optimal clustering number of the sample, select the DBI index to calculate the optimal clustering number of the net load peak and valley situation, and use the K-means clustering algorithm to cluster the daily net load peak and valley situation of residential electric vehicles by quarter to divide the typical net load peak and valley situation scenarios of each quarter, and obtain the peak and valley situation information characteristics of the electric vehicle net load under each typical scenario in each quarter; Step 4: Conduct a correlation analysis on the peak-valley situation of the daily net load of residential electric vehicles; specifically, cluster the peak-valley situation of the daily net load of residential electric vehicles in each quarter of the year based on the K-means clustering algorithm, reduce and classify the peak-valley situation of the daily net load of the whole year into several typical scenario situation categories, and use the correlation coefficient as the correlation judgment basis for the peak-valley situation information of the daily net load of residential electric vehicles to judge the correlation degree of the peak-valley situation information of the daily net load of residential electric vehicles in the living area; Step 5, select the input and output variables and analyze the prediction results; specifically, use the Elman neural network to predict the peak and valley situation of the electric vehicle load of the living area users, and after obtaining the prediction results of the daily net load peak and valley situation of the electric vehicle load in the living area, calculate the percentage error and the average absolute value percentage error of the actual value of the electric vehicle load peak and valley situation to verify the analysis and prediction effect of the electric vehicle load peak and valley situation analysis method; Step 6: Perform peak-valley complementary analysis on electric vehicle loads; specifically, based on the electric vehicle load data in the living area, obtain the peak-valley characteristics of its net load curve, and obtain its peak-valley complementary situation information, so as to analyze the complementary characteristics of the peak-valley of the electric vehicle load in the living area in the past or in the future.
2. A method for analyzing residential electric vehicle load based on Elman neural network algorithm according to claim 1, characterized in that: In step 2, the specific steps of performing Gaussian filtering preprocessing on the electric vehicle load curve are as follows: Step 2.1: Use VSCode software to visualize the data in the power load data set and observe whether there are missing data and abnormal data in the data; Step 2.2, comprehensively consider the data of the previous moment, the next moment, the previous day, and the next day for the missing data, and use the weight coefficient to perform weighted summing and filling of the data; Gaussian filtering denoising performs weighted average of the values of each point of the entire one-dimensional numerical sequence, that is, the load curve, and then for each load value point, the Gaussian function is used to perform weighted average correction on the other load values in its neighborhood to obtain the denoised load value; Gaussian filtering is a low-pass filtering algorithm that can be used to smooth one-dimensional data curves. The formula for the one-dimensional Gaussian function is: ; Where: μ is the mean of the Gaussian function, σ is the standard deviation of the Gaussian function; Step 2.3, correct the included abnormal data through horizontal and vertical processing; In step 2.4, the data are normalized using maximum and minimum normalization.
3. The method for analyzing residential electric vehicle load based on Elman neural network algorithm according to claim 1 is characterized in that: In step 3, the specific operation method of data set clustering is as follows: Step 3.1, determine the number of clusters; specifically, the number of clusters is determined by the elbow method and the silhouette coefficient method; the cluster evaluation index used by the elbow method is the square of the sum of the distances from all sample points in the data set to their cluster centers; In step 3.2, the existing power load data is classified by clustering number through the K-means clustering algorithm, data with similar characteristics are grouped and merged, the data pattern and distribution structure are extracted, and output to the subsequent network.
4. The method for analyzing residential electric vehicle load based on Elman neural network algorithm according to claim 1 is characterized in that: In step 3, the calculation process of the K-means clustering algorithm is as follows: Step 4.1, input the n×p-dimensional data sample set S to be clustered; ; in, ; Step 4.2, input the number of clusters k, first randomly determine k cluster centers; ; in, ; Step 4.3, calculate the Euclidean distance between each sample and each cluster center: ; Step 4.4, divide each sample into sample clusters according to the minimum distance from the cluster center; Step 4.5, recalculate and determine the new cluster center using the sample mean in each cluster; Step 4.5, repeat the process of step 4.3 and step 4.4 until the change of the cluster center is less than the specified threshold or no longer changes, and determine the cluster division of each sample.
5. The method for analyzing residential electric vehicle load based on Elman neural network algorithm according to claim 1 is characterized in that: In step 5, the Elman neural network is used to predict the peak and valley situation of electric vehicle load of users in the living area. The specific steps are as follows: Step 5.1, first perform denoising preprocessing on the collected load data; Step 5.2, according to the definition of the peak-valley situation of the electric vehicle load curve, obtain the peak-valley situation information St of the daily net load curve of the electric vehicle load throughout the year; Step 5.3, train the neural network with historical data to build a prediction model, select the peak and valley situation information Sn,t of the electric vehicle load curve 7 days before the prediction date and the weather information Wx of the prediction date as the prediction model input, and use the peak and valley situation information Sx of the electric vehicle load curve of the users in the living area on the prediction date as the prediction output of the neural network, and train the electric vehicle net load curve peak and valley situation prediction model containing the data characteristics of each prediction input information; Step 5.4, input the parameters required for the data to be predicted, that is, the peak and valley situation information Sn,1, Sn,2, ..., Sn,7 of the electric vehicle load curve 7 days before the prediction date and the weather information Wx of the prediction date into the constructed prediction model, output the prediction result Sx of the net load peak and valley situation of the prediction date, and compare and analyze the prediction result by comparing the predicted value with the actual electric vehicle load peak and valley situation information data.
6. The method for analyzing residential electric vehicle load based on Elman neural network algorithm according to claim 1, characterized in that: In step 6, based on the electric vehicle load data in the living area, obtain the peak-valley characteristics of its net load curve and the peak-valley complementary situation information, so as to analyze the complementary characteristics of the historical or future peak-valleys of the electric vehicle load in the living area. The specific steps are as follows: Step 6.1, obtain the characteristic indexes of the electric vehicle load curve: 1) Peak base value and valley base value Peak base value of electric vehicle load curve and trough base value , to divide the peak and trough of the electric vehicle load curve; among them, ; ; In the formula, It is the base value of the electric vehicle load curve for the day; 2) Peak / valley relative extreme value Define the relative extreme value of a single peak in the electric vehicle load curve Relative extreme value to a single trough , the expression is as follows: ; ; In the formula, is the maximum peak power, is the minimum value of trough power; 3) Peak / valley extreme value time The extreme point time of a single peak or trough in the electric vehicle load curve ; 4) Peak-valley start and end time The starting time of a single peak or trough in the electric vehicle load curve is , the peak or trough end time is ; 5) Peak and valley duration ; 6) Peak-valley climbing / descending rate; Define the average rate of crest climb Average rate of decline with peak : ; ; Define the trough drop rate and trough recovery rate : ; ; 7) Peak power and valley power; define the single peak power of electric vehicle load curve in living area The corresponding power during the duration of a single peak, the single valley power of the electric vehicle load curve in the living area It is the amount of electricity corresponding to the duration of a single trough, that is: ; ; in >0, <0; is the load power of the electric vehicle at the corresponding moment; Step 6.2: Obtain the historical load or forecast curve of the electric vehicle to be studied, and obtain the peak characteristic information set of the electric vehicle load curve of the living area users and trough characteristic information collection , calculate the peak-to-valley characteristic matching degree c(p,v) of each peak and trough of the net load of the electric vehicle; ; ; To improve the accuracy of matching, an improved grey relational analysis method is adopted. Considering the time factor, the predicted curve peak-valley characteristic information set is introduced into the time series analysis method to improve the grey relational degree. Different characteristic indexes in the peak-valley characteristic information set are used to characterize the development trend of the electric vehicle load curve, and the correlation between different indexes is judged to accurately analyze the influencing factors of the load curve trend; First, the effectiveness indicators in the peak-valley characteristic set are normalized to eliminate the dimensional effects between different indicators so that all features have similar scales. Then, the time factor is introduced. , can better reflect the dynamic relationship of characteristic indicators over time, show the trend changes of different characteristic indicators, and reflect their dynamic change characteristics; if the electric vehicle load series data has strong stability within a certain period of time, a smaller time factor is selected, generally taking the value as 0.57; if the load data changes are relatively unstable, a larger time factor is selected, generally taking the value as 0.88; The peak and valley characteristic information is sequenced Compare with i characteristic indicators and calculate the grey correlation coefficient at each data point. The specific calculation method is as follows: ; In the formula, Indicates the peak-valley characteristic information set sequence characteristic index, represents the i-th characteristic index of the peak-valley characteristic information set sequence, is the peak-valley characteristic information set and the mth influencing factor sequence, at the absolute value of the kth data point, is the maximum smoothing coefficient, is the time factor; Calculate the arithmetic mean of the grey relational coefficients at each data point to obtain the correlation degree between the peak-valley characteristic information set sequence and the i-th influencing factor sequence. The calculation method is as follows: ; In the formula, n represents the total number of characteristic indexes in the peak-valley characteristic information set; Set a threshold and determine whether the influencing factor is a main factor according to whether the grey relational degree is greater than the threshold. The judgment rule is as follows: ; In the formula, is the grey correlation threshold; when the grey correlation is greater than , then the influencing factor is the main factor; Define the matching degree of the peak-valley characteristics of electric vehicle loads in different living areas to describe the characteristic matching degree of the daily net load peaks and valleys of electric vehicles in two different living areas: ; In the formula, They respectively represent the peak and trough characteristic information sets of the electric vehicle load curve of users in the living area; For the curve with a large prediction error, the original historical load curve is adopted, and its characteristic matching degree can be calculated using the above formula. For the curve with a small prediction error, the predicted curve is adopted. The formula for the characteristic matching degree of the daily net load peaks and valleys of electric vehicles for the predicted curve is as follows: ; In the formula, , They are respectively the peak and trough characteristic information sets of the electric vehicle load curve of the users in the living area after prediction; Carry out the division of the matching degree and its reflection of the characteristic matching relationship between the peak and valley, that is: when 0.7 < c ≤ 1, the matching relationship between the peak and valley is high; when 0.4 < c ≤ 0.7, the matching relationship is medium; when c ≤ 0.4, the matching relationship is low; if there is no coexistence time period between the peak and valley, there is no characteristic matching relationship between them; According to the peak-valley characteristic results of the previous step, after obtaining the load curves of different living areas, if there are peaks and valleys with a complementary relationship in the same time period for the electric vehicle loads in the different living areas under study, proceed to the next step; if there are no peaks and valleys in the same time period for the electric vehicle loads in the different living areas under study, there is no complementary relationship between the daily net load peaks and valleys of the substation busbar; Step 6.3, calculate the peak-to-valley complementary peak-cutting ratio between the peaks and valleys of the electric vehicle load Complementary filling ratio with peak-valley power ; Organize the obtained peak-valley complementary situation of electric vehicle load and analyze the peak-valley complementary characteristics of electric vehicle load; Definition of the peak-to-valley complementary peak-shaving ratio of daily net load of electric vehicles in living areas Complementary filling ratio with peak-valley power : ; ; In the formula, It is the complementary amount of electricity during the peak and trough periods; Peak-valley power complementary peak shaving ratio It indicates the degree to which the matching trough reduces the peak when a peak complements a trough; the peak-to-valley power complementary filling ratio Characterizes the degree to which the matched peak fills the trough; the higher the value, the greater the proportion of the complementary power of the peak and trough to the original peak or trough power, and the stronger the complementarity.
