Method and system for analyzing causes of abnormal energy consumption in enterprises under multi-dimensional scenarios
By obtaining and preprocessing enterprise energy consumption data, using silhouette coefficient and separation index to determine the optimal number of clusters, and using DBSCAN and K-means++ algorithms to construct energy consumption specification intervals, it solves the problem of multi-dimensional scenarios in the judgment and cause analysis of enterprise energy consumption anomalies. The problem of inaccurate construction of dynamic specification intervals improves the accuracy of energy consumption abnormality research and analysis and the accuracy of cause analysis.
Patent Information
- Application Number
- CN202210452617.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-04-27
AI Technical Summary
The existing technology is not accurate enough in constructing dynamic specification intervals in multi-dimensional scenarios in the judgment and cause analysis of enterprise energy consumption anomalies, and the accuracy of clustering algorithms is low, failing to solve the problem of energy consumption anomalies from the root cause.
By obtaining enterprise energy consumption data, preprocessing and carbon emission calculations are performed, the contour coefficient and separation index are used to determine the optimal number of clusters, the DBSCAN and K-means++ algorithms are used to construct energy consumption norm intervals, and a library of typical scenarios of abnormal energy consumption is established. Research and judge the causes of abnormalities.
It improves the accuracy of enterprise energy consumption abnormality research and cause analysis, provides an enterprise energy consumption abnormality cause analysis system under multi-dimensional scenarios, realizes energy consumption mode classification and scene division, determines energy consumption abnormality characteristic parameters, and establishes A library of typical scenarios of abnormal energy consumption.
Smart Images

Figure CN115081795B
Abstract
Description
Background Art
[0002] With the increasing importance of energy to today's social and economic development, the problem of energy shortage has gradually become the focus of national attention. The energy consumption problem of enterprises is the key to affecting comprehensive energy consumption. Therefore, the abnormal judgment and cause analysis of enterprise energy consumption have become effective measures for energy conservation and emission reduction of current enterprises. At present, high-energy-consuming enterprises have certain defects: first, the construction of dynamic standard intervals of enterprise energy consumption under multi-dimensional scenarios is not considered; second, the use of general clustering algorithms results in low accuracy of the dynamic standard intervals; third, there is no reasonable analysis of the causes of enterprise abnormalities, and the problem of abnormal energy consumption of enterprises has not been solved from the root. Summary of the invention
[0003] The present invention takes into account the classification of enterprise energy consumption patterns and the division of time scenarios, provides a method for analyzing the abnormal energy consumption and causes of enterprises in multi-dimensional scenarios, establishes a dynamic standard interval for enterprise energy consumption in multi-dimensional scenarios, analyzes the abnormal energy consumption of enterprises, and reasonably analyzes the causes of abnormal energy consumption of enterprises, thereby improving the accuracy of the analysis of abnormal energy consumption of enterprises.
[0004] Specific methods include:
[0005] S1. Obtain enterprise energy consumption data;
[0006] S2. Preprocess the enterprise energy consumption data;
[0007] S3. Calculate the comprehensive energy consumption of the enterprise’s carbon emissions;
[0008] S4. Clustering the enterprise energy consumption curves to obtain standard enterprise energy consumption curves under different energy consumption modes;
[0009] S5. Obtain enterprise energy consumption scenarios based on standard enterprise energy consumption curves;
[0010] S6. Determine the optimal number of clusters K based on the silhouette coefficient and the separation index (PC);
[0011] S7. Construct the energy consumption standard range of enterprises in different scenarios under different energy consumption modes;
[0012] S8. Determine the abnormal characteristic parameters of the enterprise's energy consumption;
[0013] S9. Establish a typical scenario database of abnormal energy consumption in enterprises;
[0014] S10. Analyze the causes of abnormal energy consumption in enterprises.
[0015] It should be further explained that the preprocessing of the enterprise energy consumption data in step S2 includes: removing abnormal values of the enterprise energy consumption data and filling missing values. The filling formula is:
[0016]
[0017] In the formula, Indicates energy consumption data, Indicates the data sequence number.
[0018] It should be further explained that step S3 also includes:
[0019] S31. Unify and convert different types of energy consumption data into tons of standard coal and perform sum calculation;
[0020] The energy consumption data of each enterprise is standardized based on the annual GDP of the enterprise. The standardization formula is as follows:
[0021] In the formula, represents the daily energy consumption of the enterprise after standardization, Represents the original daily energy consumption data of the enterprise, is the total annual GDP of the standard enterprise, and G is the actual annual GDP of the enterprise;
[0022] S32. Construct the calculation formula of enterprise carbon dioxide emissions:
[0023] CEE is the total carbon dioxide emissions of the enterprise. is the total natural gas consumption of the enterprise, is the carbon dioxide emission factor of the enterprise's natural gas, is the total electricity consumption of the enterprise, b is the carbon dioxide emission factor of the power grid, is the total coal consumption of the enterprise, and c is the carbon dioxide emission factor of the enterprise's coal.
[0024] It should be further explained that step S4 specifically includes:
[0025] S41, determining the optimal number of clusters;
[0026] S42, reduce the dimension of the enterprise energy consumption curve based on the piecewise aggregation approximation algorithm (PAA);
[0027] S43. Use DBSCAN clustering algorithm to perform cluster analysis on the energy consumption curves of enterprises to obtain different energy consumption patterns of enterprises;
[0028] S44, plotting the curve clusters under each energy consumption mode into a box plot, selecting the data median to connect into a line as a standard energy consumption curve for the subsequent division of energy consumption scenarios.
[0029] It should be further explained that step S6 also includes the following steps:
[0030] S61, using the silhouette coefficient method to preliminarily select the optimal number of clusters, and selecting the optimal range of the number of clusters;
[0031] S62. Define cluster comprehensive evaluation index C
[0032]
[0033] Where PC represents the membership coefficient, SE represents the separation index;
[0034]
[0035] In the formula, k represents the kth cluster, n represents the nth sample, and m is the clustering dimension. Indicates the degree of membership of data point n to class i;
[0036]
[0037] In the formula, N represents the total number of data, k represents the kth cluster, and n represents the nth sample. The degree of membership of data point n to class i, and represents the cluster centers of clusters i and j, Indicates the nth sample number.
[0038] It should be further explained that step S7 also includes the following steps:
[0039] S71, using the best number of clusters obtained in step S6 to perform clustering using the K-means++ algorithm;
[0040] S72, counting the number of clusters, and selecting the cluster with the largest number as the main cluster;
[0041] S73, using the 3 sigma rule to process the main cluster and select the maximum and minimum values of the processed main cluster to form the upper and lower limits of the enterprise energy consumption specification range;
[0042] S74. Repeat steps S71-S73 until the energy consumption standard ranges of all scenarios of the enterprise under all energy consumption modes are obtained.
[0043] It should be further explained that the abnormal energy consumption data is used as the basis for enterprise failure in step S8, which includes the following steps:
[0044] S81. Collect enterprise operation parameters provided by the enterprise;
[0045] S82. Normalize the enterprise's operating parameters and energy consumption values;
[0046] S83. Define the similarity between the enterprise energy consumption curve and each parameter curve.
[0047] It should be further explained that step S9 also includes the following steps:
[0048] S91. When abnormal energy consumption of an enterprise is detected, the abnormal time period is recorded, and the fault parameters corresponding to the abnormal time are transmitted to the relevant enterprises;
[0049] S92. The enterprise receives the fault parameters and monitors in real time to find the specific fault, uses the fault type as a label, and feeds it back to the enterprise's energy consumption abnormality analysis system through data communication;
[0050] S93. The enterprise energy consumption anomaly analysis system performs initial clustering on faults, and determines the initial point cluster center and the initial number of clusters.
[0051] It should be further explained that step S10 specifically includes the following steps: S101, the initial number of clusters is k, the initial cluster center
[0052] ;
[0053] in,
[0054] n represents the number of fault-related parameters;
[0055] S102, calculating the distance from the real-time data to each initial cluster center;
[0056] S103, updating the number of cluster center points;
[0057] S104, adaptively matching the sampling points to the clusters where each cluster center is located, and continuously updating the cluster centers.
[0058] S105: Match the real-time abnormal energy consumption data to the cluster where the nearest cluster center is located, obtain the abnormal cause, and verify the cause.
[0059] The present invention also provides a system for analyzing the causes of abnormal energy consumption in enterprises under multi-dimensional scenarios, the system comprising: a data acquisition module, a preprocessing module, an energy consumption calculation module, a curve processing module, a scenario division module, a clustering processing module, an energy consumption interval construction module, an abnormality determination module, a scenario library establishment module and an analysis module;
[0060] The data acquisition module is used to obtain enterprise energy consumption data;
[0061] The preprocessing module is used to preprocess the enterprise energy consumption data;
[0062] The energy consumption calculation module is used to calculate the comprehensive energy consumption of the enterprise's carbon emissions;
[0063] The curve processing module is used to cluster the enterprise energy consumption curves and obtain standard enterprise energy consumption curves under different energy consumption modes;
[0064] The scenario division module is used to divide the enterprise energy usage scenarios;
[0065] The cluster processing module is used to determine the optimal cluster number K based on the silhouette coefficient and the separation index;
[0066] The energy consumption interval construction module is used to construct the enterprise energy consumption standard interval based on the K-means++ algorithm;
[0067] The abnormality determination module is used to determine the abnormal characteristic parameters of the enterprise's energy consumption;
[0068] The scenario library building module is used to build a typical scenario library of abnormal energy consumption in enterprises;
[0069] The analysis module is used to analyze the causes of abnormal energy consumption in enterprises.
[0070] It can be seen from the above technical solutions that the present invention has the following advantages:
[0071] The method for analyzing the causes of abnormal energy consumption of enterprises under multi-dimensional scenarios includes the formulation of energy consumption standards and scenario analysis under different energy consumption modes, the judgment of abnormal time-sharing energy consumption of enterprises under multi-dimensional scenarios, the determination of characteristic parameters of abnormal energy consumption of enterprises, the establishment of a typical scenario library of abnormal energy consumption of enterprises, and the judgment of the causes of abnormal energy consumption of enterprises. The method for constructing a complete abnormal energy consumption judgment system for enterprises provided by the present invention improves the accuracy of abnormal energy consumption judgment and cause analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0073] Figure 1 The present invention is a flow chart of the method for analyzing the causes of abnormal energy consumption of enterprises in multi-dimensional scenarios.
[0074] Figure 2 It is a box plot of the energy consumption standard clusters of enterprises in Mode 1 of the present invention.
[0075] Figure 3 It is the silhouette coefficient diagram of different cluster numbers of the present invention.
[0076] Figure 4 Figure 3 is the PC, SE and comprehensive evaluation index C diagram of different clustering numbers of the present invention.
[0077] Figure 5 It is the silhouette coefficient diagram of different cluster numbers of the present invention.
[0078] Figure 6 This is the workflow diagram of the K-means++ algorithm.
[0079] Figure 7 This is a diagram showing the division results of the standard energy consumption intervals of an enterprise according to the present invention. DETAILED DESCRIPTION
[0080] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0081] In the method and system for analyzing the causes of abnormal energy consumption of enterprises under multi-dimensional scenarios under massive data provided by the present invention, the units and algorithm steps of each example described in the disclosed embodiments can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0082] In the method and system for analyzing the causes of abnormal energy consumption of enterprises in multi-dimensional scenarios, the block diagrams shown in the accompanying drawings are only functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0083] As attached Figures 1 to 7 As shown, the present invention provides a method for analyzing the causes of abnormal energy consumption of an enterprise in a multi-dimensional scenario, comprising the following steps:
[0084] S1. Obtain enterprise energy consumption data: Here, enterprise energy consumption data can be collected through data sensors and data collection equipment. The specific type of enterprise energy consumption data collected can be set according to actual needs. Of course, enterprise energy consumption data includes but is not limited to electricity consumption, water consumption, gas consumption, and carbon dioxide emissions, etc.
[0085] S2. The processing of enterprise energy consumption data mainly involves the elimination of outliers and filling of missing values in enterprise energy consumption data. Outliers in energy consumption data are found based on box plots, and the mean filling method is used to calculate the average value of the data before and after the missing values for filling. The filling formula is:
[0086] In the formula, Indicates energy consumption data, Indicates the data serial number.
[0087] S3. Calculate the comprehensive energy consumption of enterprise carbon emissions; here, the calculation of the comprehensive energy consumption of enterprise carbon emissions can be considered. The specific methods are as follows:
[0088] S31. Uniformly and equivalently convert different types of energy consumption data into tons of standard coal and perform summation calculations; for the problem of difficult energy consumption comparison among enterprises of different scales, based on the total annual GDP value of the enterprise, standardize the energy consumption data of each enterprise. The standardization formula is as follows:
[0089] In the formula, Indicates the daily energy consumption of the enterprise after standardization, Indicates the original daily energy consumption data of the enterprise, Is the specified standard total annual GDP value of the enterprise, G is the actual total annual GDP value of the enterprise;
[0090] S32. Construct a calculation formula for the carbon dioxide emissions of the enterprise:
[0091] Where CEE is the total carbon dioxide emissions of the enterprise, Is the total consumption of natural gas of the enterprise, Is the carbon dioxide emission factor of the enterprise's natural gas, Is the total consumption of electric energy of the enterprise, b is the carbon dioxide emission factor of the power grid, Is the total consumption of coal of the enterprise, c is the carbon dioxide emission factor of the enterprise's coal.
[0092] (a = 5.62×10 4 t / m 3 , b = 0.7707t / MWh = 2.54t / tce).
[0093] S4. Cluster the enterprise energy consumption curve to obtain the standard enterprise energy consumption curve;
[0094] S41. Determine the optimal number of clusters;
[0095] S42. Dimension reduction of the enterprise energy consumption curve based on the Piecewise Aggregate Approximation (PAA) algorithm;
[0096] Given an enterprise energy consumption time series curve of length N , transform it into a sequence of length n , where n < N. The reduction ratio of the enterprise energy consumption curve is r = N / n, and Satisfies:
[0097]
[0098] S43. Use DBSCAN clustering algorithm to perform cluster analysis on the energy consumption curves of enterprises to obtain different energy consumption patterns of enterprises;
[0099] S44, plotting the curve clusters under each energy consumption mode into a box plot, selecting the data median to connect into a line as a standard energy consumption curve for the subsequent division of energy consumption scenarios.
[0100] The present invention selects 96 working day energy consumption curves for research, and the number of each curve mode is shown in the following table:
[0101] Table 1
[0102] Mode 1 Mode 2 Mode 3 87 5 4
[0103] Select energy consumption mode 1 with the most energy consumption curves for research, and obtain the standard energy consumption curve for this enterprise type as follows: Figure 2 As shown;
[0104] S5. Divide the enterprise energy usage scenarios;
[0105] like Figure 2 , the DBSCAN clustering algorithm can be used to obtain the energy consumption scenarios under the enterprise model 1. January to August is scenario 1, and September to December is scenario 2.
[0106] S6. Determine the optimal number of clusters K based on the silhouette coefficient and the separation index;
[0107] S61, using the silhouette coefficient method (SC) to preliminarily select the optimal number of clusters and select the optimal range of the number of clusters;
[0108]
[0109] Where: represents the silhouette coefficient of point i, represents the average distance between point i and all points in the nearest cluster, Represents the average distance between point i and all elements in the same cluster;
[0110] The silhouette coefficient method (SC) is used for preliminary selection, and the calculation results are as follows: Figure 3 As shown in the figure, the optimal number of clusters cannot be determined by the silhouette coefficient alone, so the comprehensive evaluation index C is used to further determine the final number of clusters.
[0111] S62. Define cluster comprehensive evaluation index C
[0112]
[0113] Where PC represents the membership coefficient, SE represents the separation index;
[0114]
[0115] In the formula, k represents the kth cluster, n represents the nth sample, and m is the clustering dimension. Indicates the degree of membership of data point n to class i;
[0116]
[0117] In the formula, N represents the total number of data, k represents the kth cluster, and n represents the nth sample. The degree of membership of data point n to class i, and represents the cluster centers of clusters i and j, Indicates the nth sample number.
[0118] The nth sample number.
[0119] The calculation results are as follows Figure 4 As shown in the figure, when k is 2, the comprehensive evaluation index of the clustering result is optimal, and is significantly better than the comprehensive evaluation index when k=3; therefore, the optimal number of clusters is determined to be 2.
[0120] S7. Construct the energy consumption standard range for each scenario under different energy consumption modes of the enterprise
[0121] S71, using the best number of clusters obtained in step S6 to perform clustering using the K-means++ algorithm. The workflow of the K-means++ algorithm is as follows: Figure 5 As shown;
[0122] S72. Count the number of clusters and select the cluster with the largest number as the main cluster. After cluster analysis, the cluster classification of enterprise energy consumption is shown in Tables 2 and 3. It can be seen that cluster 2 has the largest number of data points, which is 207.
[0123] Table 2
[0124] Cluster 1 2 Cluster Center (420.0,1209.5) (181.2,512.6)
[0125] Table 3
[0126] Cluster 1 2 Number of data 40 207
[0127] S73. The basis for establishing the standard interval of enterprise energy consumption is to select the most representative data as the standard of the enterprise energy consumption. If the upper and lower limits of cluster 2 are directly used as the upper and lower limits of the enterprise energy consumption standard interval, the abnormal judgment of enterprise energy consumption will fail due to the loose upper and lower limits. Therefore, the main cluster of energy consumption data obtained by clustering is eliminated for abnormal values, and the final enterprise energy consumption standard interval is as follows: Figure 6As shown in the figure, the upper and lower limits of the enterprise's total energy consumption standard are [159.89tce, 217.93tce], and the upper and lower limits of the enterprise's carbon emission standard are [454.38t, 572.42t]. Based on the box plot, outliers in the main cluster are removed, and finally the enterprise energy consumption standard interval is generated, as shown in the figure. Figure 7 shown.
[0128] S74. Repeat steps S71-S73 until the energy consumption standard ranges of all scenarios of the enterprise under all energy consumption modes are obtained.
[0129] S8. Determine the abnormal characteristic parameters of the enterprise's energy consumption;
[0130] S81. Collect enterprise operation parameters provided by relevant enterprises;
[0131] S82. Normalization of enterprise operating parameters and energy consumption values;
[0132] S83. Define the similarity between the enterprise energy consumption curve and each parameter curve:
[0133] S831, calculating the Spearman correlation coefficient between the energy consumption curve and each parameter curve;
[0134] The formula for calculating the Spearman correlation coefficient is:
[0135]
[0136] Among them, d i represents the rank difference of the i-th sample, and N represents the total number of samples;
[0137] For parameters that are consistent with the trend of energy consumption, the above formula can be used to find parameters that are highly correlated with energy consumption. However, for parameters that are opposite to the trend of energy consumption, the calculation error is large. Therefore, the Spearman calculation method is further improved to make the selected related parameters more accurate.
[0138]
[0139] in and The average ranking of variables x, y, and is the rank of the i-th sample, and N represents the total number of samples;
[0140] S832. The above improved Spearman correlation coefficient formula is used to calculate the correlation between the energy consumption curve of the enterprise and the curves of various parameters of the enterprise operation. The parameter with the larger value is regarded as the fault-related parameter;
[0141] Eight random operating parameters of an enterprise were selected to compare the similarity between the enterprise energy consumption curve and each parameter curve, and the parameters related to energy consumption failure were selected. The calculation results are shown in Table 4;
[0142] Table 4
[0143] Run parameters X1 X2 X3 X4 X5 X6 X7 X8 p 0.941 0.528 0.421 0.227 0.854 0.269 0.538 0.754
[0144] Set the similarity margin to ,The similarity values of X1, X5 and X8 in the above table meet the requirements, and verify whether there are corresponding extreme values in the energy consumption abnormal period parameters. If they meet the requirements, they can be used as energy consumption fault related parameters.
[0145] S9. Establish a typical scenario database of abnormal energy consumption in enterprises;
[0146] S91. When the enterprise energy consumption abnormality analysis system detects that the enterprise energy consumption is abnormal, it records the abnormal time period and transmits the fault phase parameters corresponding to the abnormal time to the relevant enterprises;
[0147] S92. The enterprise receives relevant fault parameters and conducts real-time monitoring within the enterprise to find specific faults, and feeds back the fault type as a label to the enterprise's energy consumption abnormality analysis system;
[0148] S93, performing initial clustering on the faults to determine the initial point cluster center and the initial cluster number;
[0149] S10. Analyze the causes of abnormal energy consumption in enterprises.
[0150] S101, the initial number of clusters is k, the initial cluster center ;
[0151] in,
[0152] n represents the number of fault-related parameters;
[0153] S102: Calculate the distance from the real-time data to each initial cluster center. The following distance formula may be used for calculation:
[0154] (1) Euclidean and distance formulas;
[0155] (2) Cosine distance formula;
[0156] Since there are many parameters related to enterprise failures, the amount of calculation is large. Using formula (2) to calculate the data distance can effectively reduce the amount of calculation;
[0157] S103, updating the number of cluster center points; because typical scenarios of enterprise energy consumption failures are diverse, the initial typical scenarios cannot completely cover all scenarios, so each sample point is verified to achieve the purpose of expanding the enterprise energy consumption anomaly library. The judgment basis is: if d>dmax, then add a cluster center;
[0158] Where d is the distance from the sample point to the nearest cluster center, and dmax is the farthest distance from the cluster point to its cluster center. The newly added cluster center is similarly calculated to determine whether to add the cluster center.
[0159] S104, adaptively matching the sampling points to the clusters where each cluster center is located, and continuously updating the cluster center;
[0160] S105: Match the real-time abnormal energy consumption data to the cluster where the nearest cluster center is located, obtain the abnormal cause, and verify the cause.
[0161] In summary, the present invention proposes a method for analyzing the causes of abnormal energy consumption in enterprises under multi-dimensional scenarios, including the formulation of energy consumption standards and scenario analysis under different energy consumption modes, the judgment of abnormal time-sharing energy consumption in enterprises under multi-dimensional scenarios, the determination of characteristic parameters of abnormal energy consumption in enterprises, the establishment of a typical scenario library of abnormal energy consumption in enterprises, and the judgment of the causes of abnormal energy consumption in enterprises. The method for constructing a complete abnormal energy consumption judgment system for enterprises provided by the present invention improves the accuracy of abnormal energy consumption judgment and cause analysis.
[0162] Based on the above method, the present invention also provides an enterprise energy consumption abnormality analysis and judgment system, the system includes: a data acquisition module, a preprocessing module, an energy consumption calculation module, a curve processing module, a scene division module, a clustering processing module, an energy consumption interval construction module, an abnormality determination module, a scene library establishment module and an analysis and judgment module;
[0163] The data acquisition module is used to obtain enterprise energy consumption data; the preprocessing module is used to preprocess enterprise energy consumption data; the energy consumption calculation module is used to calculate the comprehensive energy consumption of enterprise carbon emissions; the curve processing module is used to cluster enterprise energy consumption curves and obtain standard enterprise energy consumption curves; the scenario division module is used to divide enterprise energy consumption scenarios; the clustering processing module is used to determine the optimal clustering number K based on the silhouette coefficient and separation index; the energy consumption interval construction module is used to construct the enterprise energy consumption standard interval based on the K-means++ algorithm; the anomaly determination module is used to determine the characteristic parameters of enterprise energy consumption anomalies; the scenario library establishment module is used to establish a typical scenario library of enterprise energy consumption anomalies; the analysis and judgment module is used to analyze and judge the causes of enterprise energy consumption anomalies.
[0164] Based on the system for constructing standard intervals of enterprise energy consumption and analyzing causes of abnormalities under multi-dimensional scenarios involved in the present invention, enterprise energy consumption data can be preprocessed; comprehensive energy consumption calculation and standardization considering enterprise carbon emissions can be performed; standard enterprise energy consumption curves under different energy consumption modes are obtained by clustering enterprise energy consumption curves; enterprise energy use scenarios are divided; the optimal clustering number K is determined based on the silhouette coefficient and the separation index; enterprise energy consumption standard intervals for each scenario under different energy consumption modes are constructed based on the K-means++ algorithm; characteristic parameters of abnormal enterprise energy consumption are determined; a typical scenario library of abnormal enterprise energy consumption is established; and causes of abnormal enterprise energy consumption are determined. The present invention takes into account the classification of enterprise energy consumption and the division of time scenarios, and proposes the establishment of dynamic standard intervals of enterprise energy consumption based on the coordinated use of multiple energy sources, so as to improve the accuracy of abnormal enterprise energy consumption.
[0165] The system for constructing standard intervals for enterprise energy consumption and analyzing causes of abnormalities in multi-dimensional scenarios is a unit and algorithm step of each example described in combination with the embodiments disclosed herein, and can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0166] Those skilled in the art will appreciate that various aspects of the system and method for constructing energy consumption specification intervals and abnormal cause analysis in multi-dimensional scenarios can be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which can be collectively referred to as "circuit", "module" or "system".
[0167] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for analyzing the causes of abnormal energy consumption in enterprises under multi-dimensional scenarios, characterized in that: include: S1. Obtain enterprise energy consumption data; S2. Preprocess the enterprise energy consumption data; S3. Calculate the comprehensive energy consumption of the enterprise’s carbon emissions; S4. Clustering the enterprise energy consumption curves to obtain standard enterprise energy consumption curves under different energy consumption modes; S5. Obtain enterprise energy consumption scenarios based on standard enterprise energy consumption curves; S6. Determine the optimal number of clusters K based on the silhouette coefficient and the separation index; S61, using the silhouette coefficient method to preliminarily select the optimal number of clusters, and selecting the optimal range of the number of clusters; S62, define cluster comprehensive evaluation index C; Where PC represents the membership coefficient, SE represents the separation index; In the formula, k represents the kth cluster, n represents the nth sample, and m is the clustering dimension. Indicates the degree of membership of data point n to class i; In the formula, N represents the total number of data, k represents the kth cluster, and n represents the nth sample. The degree of membership of data point n to class i, and represents the cluster centers of clusters i and j, Indicates the nth sample number; S7. Construct the energy consumption standard range of enterprises in different scenarios under different energy consumption modes; S71, using the best number of clusters obtained in step 5 to perform clustering using the K-means++ algorithm; S72, counting the number of clusters, and selecting the cluster with the largest number as the main cluster; S73, using the 3 sigma rule to process the main cluster and select the maximum and minimum values of the processed main cluster to form the upper and lower limits of the enterprise energy consumption specification range; S74, repeating steps S71-S73 until the energy consumption specification range of each scenario of the enterprise under all energy consumption modes is obtained; S8. Determine the characteristic parameters of abnormal energy consumption of the enterprise; S9. Establish a typical scenario database of abnormal energy consumption in enterprises; S91. When abnormal energy consumption of an enterprise is detected, the abnormal time period is recorded, and the fault parameters corresponding to the abnormal time are transmitted to the relevant enterprises; S92. The enterprise receives the fault parameters and monitors in real time to find the specific fault, uses the fault type as a label, and feeds it back to the enterprise's energy consumption abnormality analysis system through data communication; S93, the enterprise energy consumption abnormality analysis system performs initial clustering on the faults, determines the initial point cluster center and the initial cluster number; S10. Analyze and determine the causes of abnormal energy consumption in enterprises; S101, the initial number of clusters is k, the initial cluster center ; in, n represents the number of fault-related parameters; S102, calculating the distance from the real-time data to each initial cluster center; S103, updating the number of cluster center points; S104, adaptively matching the sampling points to the clusters where each cluster center is located, and continuously updating the cluster center; S105: Match the real-time abnormal energy consumption data to the cluster where the nearest cluster center is located, obtain the abnormal cause, and verify the cause.
2. The method for analyzing the causes of abnormal energy consumption of enterprises in multi-dimensional scenarios according to claim 1 is characterized in that: The preprocessing of the enterprise energy consumption data in step S2 includes: removing abnormal values of the enterprise energy consumption data and filling missing values. The filling formula is: In the formula, Indicates energy consumption data, Indicates the data sequence number.
3. The method for analyzing the causes of abnormal energy consumption of enterprises in multi-dimensional scenarios according to claim 1 is characterized in that: Step S3 also includes: S31. Unify and convert different types of energy consumption data into tons of standard coal and perform sum calculation; The energy consumption data of each enterprise is standardized based on the annual GDP of the enterprise. The standardization formula is as follows: In the formula, represents the daily energy consumption of the enterprise after standardization, Represents the original daily energy consumption data of the enterprise, is the total annual GDP of the standard enterprise, and G is the actual annual GDP of the enterprise; S32. Construct the calculation formula of enterprise carbon dioxide emissions: CEE is the total carbon dioxide emissions of the enterprise. is the total natural gas consumption of the enterprise, is the carbon dioxide emission factor of the enterprise's natural gas, is the total electricity consumption of the enterprise, b is the carbon dioxide emission factor of the power grid, is the total coal consumption of the enterprise, and c is the carbon dioxide emission factor of the enterprise's coal.
4. The method for analyzing the causes of abnormal energy consumption of enterprises in multi-dimensional scenarios according to claim 1 is characterized in that: Step S4 specifically includes: S41, determining the optimal number of clusters; S42, reduce the dimension of the enterprise energy consumption curve based on the segmented aggregation approximation algorithm; S43. Use DBSCAN clustering algorithm to perform cluster analysis on the energy consumption curves of enterprises to obtain different energy consumption patterns of enterprises; S44, plotting the curve clusters under each energy consumption mode into a box plot, selecting the data median to connect into a line as a standard energy consumption curve for the subsequent division of energy consumption scenarios.
5. The method for analyzing the causes of abnormal energy consumption of enterprises in multi-dimensional scenarios according to claim 1 is characterized in that: In step S8, abnormal energy consumption data is used as the basis for enterprise failure, including the following steps: S81. Collect enterprise operation parameters provided by the enterprise; S82. Normalize the enterprise's operating parameters and energy consumption values; S83. Define the similarity between the enterprise energy consumption curve and each parameter curve.
6. A system for analyzing the causes of abnormal energy consumption in enterprises under multi-dimensional scenarios, characterized in that: The system adopts the method for analyzing the causes of abnormal energy consumption of enterprises in a multi-dimensional scenario as described in any one of claims 1 to 5; The system includes: data acquisition module, preprocessing module, energy consumption calculation module, curve processing module, scene division module, cluster processing module, energy consumption interval construction module, abnormality determination module, scene library establishment module and analysis module; The data acquisition module is used to obtain enterprise energy consumption data; The preprocessing module is used to preprocess the enterprise energy consumption data; The energy consumption calculation module is used to calculate the comprehensive energy consumption of the enterprise's carbon emissions; The curve processing module is used to cluster the enterprise energy consumption curves and obtain standard enterprise energy consumption curves under different energy consumption modes; The scenario division module is used to divide the enterprise energy usage scenarios; The cluster processing module is used to determine the optimal cluster number K based on the silhouette coefficient and the separation index; The energy consumption interval construction module is used to construct energy consumption specification intervals for various scenarios under different energy consumption modes of the enterprise; The abnormality determination module is used to determine the abnormal characteristic parameters of the enterprise's energy consumption; The scenario library building module is used to build a typical scenario library of abnormal energy consumption in enterprises; The analysis module is used to analyze the causes of abnormal energy consumption in enterprises.
Citation Information
Patent Citations
Method and system for analyzing energy efficiency of energy consumption device
CN104077489A
Big data and fuzzy model-based building abnormal energy consumption detection method and system
CN106384300A
Energy consumption anomaly detection method based on average neighbor distance anomaly factor
CN110378371A
Regional overall energy consumption monitoring method and monitoring system thereof
CN111680852A
Energy consumption online anomaly detection method based on hierarchical clustering and histogram algorithm
CN112288597A
