Disclosure of Invention
Aiming at the problems, the invention provides a method and a device for identifying illegal electricity consumption of an electric vehicle charging facility, which are used for solving the problems that the traditional electric vehicle charging illegal electricity consumption identification depends on manual investigation, and has large manpower resource consumption, low working efficiency, insufficient coverage rate and the like.
In order to achieve the above object, the present invention provides the following technical solutions:
an electric vehicle charging facility default electricity consumption identification method comprises the following steps:
analyzing the charging data of the electric automobile to obtain a first electric behavior characteristic variable;
Analyzing the daily load curve distribution of the electric automobile to determine a second electricity consumption behavior characteristic variable;
Combining the first electricity behavior characteristic variable and the second electricity behavior characteristic variable to obtain a target electricity behavior characteristic variable;
Clustering the charging piles according to the target electricity behavior characteristic variables to determine a clustering center;
And calculating the relative distance between the target object and the clustering center, and identifying whether the target object is a default electricity utilization user or not based on the relative distance.
Optionally, the first electrical behavior characteristic variable comprises a median, a number of days at intervals, a variation coefficient and a mean difference order of a time sequence of the daily electricity consumption;
the median represents average power consumption capability, the interval days represent days when the power consumption is lower than a power consumption threshold, the variation coefficient represents fluctuation condition of data, and the stationary differential order represents stationary degree of the data.
Optionally, the second electricity behavior characteristic variables comprise a load intermittent duration and a differential stable duration, wherein the load intermittent duration represents the time of day without charging, the differential stable duration is the first-order difference of the extracted power curve, and the differential stable duration with the differential value within a preset range.
Optionally, the analyzing the daily load curve distribution of the electric automobile to determine the second electricity consumption behavior characteristic variable includes:
Analyzing daily load curve distribution of the electric automobile to obtain a power curve of a target sampling point, wherein the target sampling point is a sampling point obtained by sampling every 15 minutes within 24 hours;
And determining a second electricity utilization behavior characteristic variable based on the power curve of the target sampling point.
Optionally, the clustering the charging piles according to the target electricity behavior characteristic variable, and determining a clustering center includes:
clustering the charging piles according to the target electricity behavior characteristic variables to obtain clustered clusters, wherein probability density functions of each cluster are different;
And determining a cluster center corresponding to each cluster.
Optionally, the calculating the relative distance between the target object and the clustering center, and identifying whether the target object is a default electricity utilization user based on the relative distance, includes:
Calculating the relative distance between a target object and the clustering center of the cluster corresponding to the target object;
and determining the target object with the relative distance larger than the distance threshold as an illegal electricity utilization user.
An electric vehicle charging facility default electricity consumption identification device, comprising:
The first analysis unit is used for analyzing the charging data of the electric automobile to obtain a first electric behavior characteristic variable;
The second analysis unit is used for analyzing the daily load curve distribution of the electric automobile and determining a second electricity consumption behavior characteristic variable;
the combination unit is used for combining the first electricity behavior characteristic variable and the second electricity behavior characteristic variable to obtain a target electricity behavior characteristic variable;
The clustering unit is used for clustering the charging piles according to the target electricity consumption behavior characteristic variables and determining a clustering center;
and the identification unit is used for calculating the relative distance between the target object and the clustering center and identifying whether the target object is a default electricity utilization user or not based on the relative distance.
Optionally, the first electrical behavior characteristic variable comprises a median, a number of days at intervals, a variation coefficient and a mean difference order of a time sequence of the daily electricity consumption;
the median represents average power consumption capacity, the interval days represent days when the power consumption is lower than a power consumption threshold, the variation coefficient represents fluctuation condition of data, and the stationary differential order represents stationary degree of the data;
The second electricity consumption behavior characteristic variables comprise load intermittent duration and differential stable duration, wherein the load intermittent duration represents the time of day of uncharged time, the differential stable duration is the first-order difference of the extracted power curve, and the differential stable duration with the differential value within a preset range.
Optionally, the second analysis unit is specifically configured to:
Analyzing daily load curve distribution of the electric automobile to obtain a power curve of a target sampling point, wherein the target sampling point is a sampling point obtained by sampling every 15 minutes within 24 hours;
And determining a second electricity utilization behavior characteristic variable based on the power curve of the target sampling point.
Optionally, the clustering unit is specifically configured to:
clustering the charging piles according to the target electricity behavior characteristic variables to obtain clustered clusters, wherein probability density functions of each cluster are different;
Determining a clustering center corresponding to each cluster;
The identification unit is specifically configured to:
Calculating the relative distance between a target object and the clustering center of the cluster corresponding to the target object;
and determining the target object with the relative distance larger than the distance threshold as an illegal electricity utilization user.
Compared with the prior art, the invention provides a method and a device for identifying illegal electricity consumption of an electric vehicle charging facility, which comprise the steps of analyzing charging data of an electric vehicle to obtain a first electricity behavior characteristic variable, analyzing daily load curve distribution of the electric vehicle to determine a second electricity behavior characteristic variable, combining the first electricity behavior characteristic variable and the second electricity behavior characteristic variable to obtain a target electricity behavior characteristic variable, clustering charging piles according to the target electricity behavior characteristic variable to determine a clustering center, calculating the relative distance between a target object and the clustering center, and identifying whether the target object is an illegal electricity consumption user or not based on the relative distance. According to the invention, the identification process does not need to rely on manual investigation, so that the identification efficiency and coverage rate of the illegal users of the electric vehicle charging facilities are improved.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first and second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to the listed steps or elements but may include steps or elements not expressly listed.
According to the method for identifying the illegal electricity consumption of the electric vehicle charging facility, based on the characteristic analysis of the charging electric quantity time sequence and the daily load curve, the average value, the discontinuous days, the variation coefficient, the stability differential order, the intermittent duration of the daily load curve and the differential stable duration of the daily electric quantity time sequence are extracted to serve as electricity consumption behavior characteristic variables through statistical analysis of the charging characteristics and the travel rule of the electric vehicle, the charging piles are clustered according to the extracted electricity consumption characteristics, the relative distance from a sample object to a clustering center is calculated, the degree that the object belongs to a clustering cluster is evaluated, and then the illegal electricity consumption suspected user is identified based on a preset reasonable threshold.
Referring to fig. 1, the method for identifying default electricity consumption of an electric vehicle charging facility provided by the embodiment of the invention may include the following steps:
s101, analyzing charging data of the electric automobile to obtain a first electric behavior characteristic variable.
S102, analyzing the daily load curve distribution of the electric automobile, and determining a second electricity utilization behavior characteristic variable.
S103, combining the first electricity behavior characteristic variable and the second electricity behavior characteristic variable to obtain a target electricity behavior characteristic variable.
In order to extract complete characteristic variables of a charging electric quantity time sequence, the embodiment of the invention mainly analyzes charging data of an electric vehicle and daily load curve distribution of the electric vehicle to respectively obtain a first electric behavior characteristic variable and a second electric behavior characteristic variable, wherein the first electric behavior characteristic variable and the second electric behavior characteristic variable comprise a plurality of characteristic variables. The first electricity behavior characteristic variable comprises a median, a number of interval days, a variation coefficient and a smooth differential order of a daily electricity consumption time sequence, wherein the median represents average electricity consumption capacity, the number of interval days represents the number of days when the electricity consumption is lower than an electricity consumption threshold, the variation coefficient represents fluctuation condition of data, and the smooth differential order represents stability of the data.
The second electricity consumption behavior characteristic variables comprise load intermittent duration and differential stable duration, wherein the load intermittent duration represents the time of day of uncharged time, the differential stable duration is the first-order difference of the extracted power curve, and the differential stable duration with the differential value within a preset range.
And then, combining the first electricity behavior characteristic variable and the second electricity behavior characteristic variable to obtain a target electricity behavior characteristic variable, namely all behavior characteristic variables for subsequent analysis.
S104, clustering the charging piles according to the target electricity consumption behavior characteristic variables, and determining a clustering center.
S105, calculating the relative distance between the target object and the clustering center, and identifying whether the target object is a default electricity utilization user or not based on the relative distance.
And clustering the charging piles according to the extracted target electricity behavior characteristic variables, and determining a corresponding clustering center in the clustering process. The target object is a user needing to be identified, then the relative distance between the target object and the clustering center is calculated, and the relative distance is compared with a preset threshold value, so that whether the target object belongs to a clustering cluster corresponding to the clustering center can be determined, and whether the target object is a suspected user with illegal electricity consumption is determined.
In one embodiment of the invention, the analysis of the daily load curve distribution of the electric automobile to determine the second electricity consumption behavior characteristic variable comprises the steps of analyzing the daily load curve distribution of the electric automobile to obtain a power curve of a target sampling point, wherein the target sampling point is a sampling point obtained by sampling every 15 minutes within 24 hours, and determining the second electricity consumption behavior characteristic variable based on the power curve of the target sampling point.
In the embodiment of the invention, the characteristic variables are selected as final target electricity consumption characteristic variables, and the characteristic variables of the electricity consumption behaviors can reflect the actual electricity consumption behaviors of users by analyzing the daily electricity consumption curve rule and the 96-point load curve rule, so that accurate judgment can be made.
When the daily electricity quantity curve rule is analyzed, the daily electricity quantity curve set in the adjacent range of the average value of the 3-section daily electricity quantity is randomly extracted, the distribution and change rule is observed, and as can be seen from the figures 2-4, the curve has large fluctuation up and down, the trend is stable, no obvious rising or falling trend exists, the continuous electricity utilization interruption of the high electricity quantity is not obvious, the intermittent electricity utilization of the medium electricity quantity is obvious, and the intermittent electricity utilization of the low electricity quantity is obvious. Fig. 2 is a high-power curve schematic diagram, fig. 3 is a medium-power curve schematic diagram, and fig. 4 is a low-power curve schematic diagram.
Referring to fig. 5 and 6, fig. 5 is a 96-point active power curve of a certain user on a certain day, and fig. 6 is a schematic diagram of a 96-point active power curve cluster of a certain user on a day for one month. 96 points means that the instantaneous power value is sampled every 15 minutes, so that there are 96 points of power values per day. And analyzing a 96-point load curve rule, wherein the power rises and continues instantaneously when charging, the power decreases instantaneously after charging is finished, and the power remains low all the time when not charging, namely, the daily load curve becomes intermittent power utilization, the power utilization starts to finish, and the abrupt rise and fall mutation appears as superposition of a plurality of piecewise constant function curves. Putting together the daily power curves for each period of time finds that the daily charging periods are similar, and indicates that the user travels regularly.
And selecting the median, the break days, the variation coefficient and the stationarity differential order of the daily electricity quantity time sequence as the electricity consumption behavior characteristic attribute according to the characteristics of the service data.
The median can describe the average power consumption capability, and can avoid the influence of extreme values to a certain extent, and can judge from the distribution of the power consumption capability, the median is lower than the average value, and referring to fig. 7, a schematic diagram of the low-voltage power consumption median distribution provided by the embodiment of the invention is shown, and the distribution of low-voltage power consumption low-power users is more dense.
When the electricity consumption of one day is empty or lower than 0.2, the day is estimated to be unmanned, the day is defined as the discontinuous day, the discontinuous day of the charging pile is counted, and as can be seen from the table 1, 67% of low-voltage users have discontinuous electricity consumption, and the low-voltage discontinuous electricity consumption is estimated to belong to normal electricity consumption behaviors.
TABLE 1
Statistics of days of interval |
Low voltage user |
count |
5233 |
mean |
34.96 |
std |
36.82 |
min |
0 |
25% |
0 |
50% |
18 |
75% |
72 |
max |
92 |
Number of users with a break of 92 days |
710 |
Number of users with number of break days of 0 |
1726 |
The variation coefficient is that the variation coefficient (standard deviation/mean) can describe the fluctuation condition of data to a certain extent, and the larger the variation coefficient is, the larger the sequence fluctuation is. As can be seen from the low-voltage electric fluctuation distribution diagram shown in fig. 8, the low-voltage charging pile has large electric fluctuation in normal use.
And (3) stability, namely carrying out stability check on the data by adopting a unit root check (ADF) method, determining whether the data sequence has trend, and when the data is stable, gradually differentiating and checking until the data is stable, and recording the final differentiation order. When the order is 0, the data is stable, other numbers represent that the data is not stable, and the data is stable after n steps are different. It can be seen from table 2 that the low-voltage user is mostly stationary.
TABLE 2
N-order difference post-stabilization |
Stability of the product |
Low voltage subscriber number |
Duty ratio of |
0 |
Smooth and steady |
4335 |
82.84% |
1 |
Non-stationary |
862 |
16.47% |
>=2 |
Non-stationary |
36 |
0.69% |
When the characteristic variable of the daily load curve is refined, the intermittent duration and the differential stable duration of the daily load curve are selected as the characteristic attribute of the electricity consumption behavior, namely the characteristic variable of the second electricity consumption behavior according to the characteristics of the service data.
And the load intermittence is that the electric power used by the charging pile in the two charging intermittence periods is very low, when the active power is lower than 2, the charging pile is supposed to be uncharged, and the charging time of the day is counted and is defined as the load intermittence time. The long intermittent time presumes normal electricity consumption, and the short intermittent time indicates that the long continuous electricity consumption presumes abnormal electricity consumption.
Load step-wise-during a charging event, the charging power is relatively stable, with the power rising or falling instantaneously when charging begins or ends, and therefore, the individual charging peg daily power profile typically exhibits a piecewise constant function characteristic, i.e., a step-wise. Fitting a power curve function, deriving a derivative function, the derivative function value exhibiting a majority of fluctuations around zero values with a minority of extremes. Taking the first-order difference of the power curve, defining the difference as stable when the difference value is between plus and minus 0.1, counting the stable duration of the difference, and presuming that normal electricity is used for a long time, otherwise, abnormal electricity is used.
In one possible implementation manner of the invention, the clustering of the charging piles according to the target electricity behavior characteristic variable comprises the steps of clustering the charging piles according to the target electricity behavior characteristic variable to obtain clustered clusters, wherein probability density functions of each cluster are different, and determining a clustering center corresponding to each cluster.
Correspondingly, calculating the relative distance between the target object and the clustering center, and identifying whether the target object is a default electricity utilization user based on the relative distance comprises calculating the relative distance between the target object and the clustering center of the cluster corresponding to the target object, and determining the target object with the relative distance larger than a distance threshold as the default electricity utilization user.
Specifically, the electric charging piles are clustered according to the extracted electric characteristic variables (also called as electric characteristic attributes), the distance (or relative distance) from the target object to the clustering center is calculated, the degree of the object belonging to the clustering cluster is estimated according to the distance, and the illegal electric user identification is performed.
And aiming at the sample data condition, selecting the median, the break days, the variation coefficient, the stability differential order, the 96-point active power curve batch duration of the recent week and the differential stability duration of the recent daily electric quantity time sequence of one month as the power consumption behavior characteristic attribute. Since 96 points of load data are not collected by the common electric meter, the characteristic attribute of the time sequence of the recent daily electric quantity for one month is selected. Aiming at the existing sample data situation, a K-Means clustering algorithm is adopted and is divided into 3 classes, probability density functions of each cluster are shown in fig. 9 to 11, fig. 9 shows probability density diagrams of each attribute of a cluster 1, fig. 10 shows probability density diagrams of each attribute of a cluster 2, and fig. 11 shows probability density diagrams of each attribute of a cluster 3.
The group 1 is characterized in that the solar electricity quantity median is concentrated between 0 and 2, the variation coefficient is concentrated between 1 and 4, and the discontinuous days are concentrated between 30 and 90 days.
The group 2 is characterized in that the solar electricity quantity median is concentrated between 0 and 80, the variation coefficient is concentrated between 0 and 3, and the discontinuous days are concentrated between 0 and 30 days.
The group 3 is characterized in that the solar electricity quantity median is concentrated between 0 and 120, the variation coefficient is concentrated between 0 and 2, and the discontinuous days are concentrated between 0 and 10 days.
The electric quantity middles of the 1 day of the subgroups are smaller, the fluctuation is large, the intermittence is obvious, meanwhile, the electric quantity middles of the 2 day of the subgroups are smooth according to the unit root test (ADF), the intermittence is at a medium level, meanwhile, the electric quantity middles of the 2 day of the subgroups are smooth according to the unit root test (ADF), the electric quantity middles of the 4 day of the subgroups are large, the fluctuation is small, the intermittence is not obvious, and the electric quantity middles of the 3 day of the subgroups are non-smooth according to the unit root test (ADF), and the electric quantity of the 4 day of the subgroups is a commercial electric charging pile with large capacity.
The relative distance between each sample (i.e., the target object) and each cluster center is calculated, the outlier samples are analyzed, the threshold is set to 3, and 111 default electricity utilization users are identified from 5233 low-voltage users, see fig. 12, which is a distance error diagram, the abscissa is the number, the ordinate is the relative distance, the light gray represents the normal users, and the dark gray represents the abnormal users.
The embodiment of the invention provides an electric vehicle charging facility default electricity consumption identification method, which comprises the steps of analyzing electric vehicle charging data to obtain a first electricity behavior characteristic variable, analyzing daily load curve distribution of an electric vehicle to determine a second electricity behavior characteristic variable, combining the first electricity behavior characteristic variable and the second electricity behavior characteristic variable to obtain a target electricity behavior characteristic variable, clustering charging piles according to the target electricity behavior characteristic variable to determine a clustering center, calculating the relative distance between a target object and the clustering center, and identifying whether the target object is a default electricity consumption user or not based on the relative distance. According to the invention, the identification process does not need to rely on manual investigation, so that the identification efficiency and coverage rate of the illegal users of the electric vehicle charging facilities are improved.
Based on the above embodiment, the embodiment of the present invention further provides an electric vehicle charging facility default electricity consumption identification device, referring to fig. 13, including:
The first analysis unit 10 is configured to analyze the electric vehicle charging data to obtain a first electrical behavior characteristic variable;
The second analysis unit 20 is configured to analyze the daily load curve distribution of the electric vehicle, and determine a second electricity consumption behavior feature variable;
a combination unit 30, configured to combine the first electrical behavior feature variable and the second electrical behavior feature variable to obtain a target electrical behavior feature variable;
A clustering unit 40, configured to cluster the charging piles according to the target electricity behavior feature variable, and determine a clustering center;
the identifying unit 50 is configured to calculate a relative distance between the target object and the clustering center, and identify whether the target object is a default electricity user based on the relative distance.
Further, the first electrical behavior characteristic variables comprise a median, a number of days at intervals, a variation coefficient and a mean difference order of a time sequence of the daily electricity consumption;
the median represents average power consumption capacity, the interval days represent days when the power consumption is lower than a power consumption threshold, the variation coefficient represents fluctuation condition of data, and the stationary differential order represents stationary degree of the data;
The second electricity consumption behavior characteristic variables comprise load intermittent duration and differential stable duration, wherein the load intermittent duration represents the time of day of uncharged time, the differential stable duration is the first-order difference of the extracted power curve, and the differential stable duration with the differential value within a preset range.
Further, the second analysis unit is specifically configured to:
Analyzing daily load curve distribution of the electric automobile to obtain a power curve of a target sampling point, wherein the target sampling point is a sampling point obtained by sampling every 15 minutes within 24 hours;
And determining a second electricity utilization behavior characteristic variable based on the power curve of the target sampling point.
Further, the clustering unit is specifically configured to:
clustering the charging piles according to the target electricity behavior characteristic variables to obtain clustered clusters, wherein probability density functions of each cluster are different;
Determining a clustering center corresponding to each cluster;
The identification unit is specifically configured to:
Calculating the relative distance between a target object and the clustering center of the cluster corresponding to the target object;
and determining the target object with the relative distance larger than the distance threshold as an illegal electricity utilization user.
The embodiment of the invention provides an electric vehicle charging facility default electricity consumption identification device which comprises a first analysis unit for analyzing electric vehicle charging data to obtain a first electricity behavior characteristic variable, a second analysis unit for analyzing daily load curve distribution of the electric vehicle to determine a second electricity behavior characteristic variable, a combination unit for combining the first electricity behavior characteristic variable and the second electricity behavior characteristic variable to obtain a target electricity behavior characteristic variable, a clustering unit for clustering charging piles according to the target electricity behavior characteristic variable to determine a clustering center, and an identification unit for calculating the relative distance from a target object to the clustering center and identifying whether the target object is a default electricity consumption user based on the relative distance. According to the invention, the identification process does not need to rely on manual investigation, so that the identification efficiency and coverage rate of the illegal users of the electric vehicle charging facilities are improved.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.