A method and system for user carbon emission feature profiling based on mean clustering algorithm
By analyzing user carbon emission characteristics based on the mean clustering algorithm, optimizing cluster center selection and entropy weight method calculation, the problem of being unable to accurately analyze the carbon emission characteristics of industrial users in the existing technology is solved, and the accurate characterization of user carbon emission characteristics is achieved. and stable clustering results.
Patent Information
- Application Number
- CN202410564318.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-05-09
AI Technical Summary
Existing user carbon emission characteristic analysis methods cannot comprehensively and accurately characterize the carbon emission characteristics of industrial users, and the sensitivity of the initial cluster center of the k-means clustering algorithm causes unstable clustering results and cannot accurately classify user carbon emission behavior.
Using a clustering algorithm based on the mean, by obtaining the user's energy efficiency characteristics, electricity consumption characteristics and industry low-carbon characteristics, optimizing the initial cluster center selection, using the distance principle to determine the cluster center, combined with the entropy weight method to calculate the user's comprehensive carbon reduction index, to achieve An accurate portrait of users’ carbon emission characteristics.
This method can comprehensively and accurately characterize users' energy consumption characteristics and carbon emission characteristics, avoid increasing the complexity of clustering, improve the stability and accuracy of clustering results, and support users to reduce carbon emissions in a targeted manner.
Smart Images

Figure CN118152830B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of carbon emission characteristic profiling, and in particular, relates to a user carbon emission characteristic profiling method and system based on a mean clustering algorithm. Background Art
[0002] At present, there are a large number of methods for user carbon emission measurement and carbon footprint analysis, including life cycle method, input-output method and IPCC (Intergovernmental Panel on Climate Change) calculation method. However, these methods lack accurate analysis and classification of carbon emission characteristics of different users, and cannot understand the carbon emission behavior of users from various dimensions such as energy consumption mode, carbon emission source, emission amount and emission time, which is not conducive to users to carry out carbon emission reduction in a targeted manner. Based on this, a user carbon emission behavior profiling method is proposed.
[0003] The inventor found that in a user carbon emission behavior profiling method, a label system for user carbon profiling is designed from three dimensions: user carbon load reduction characteristics, user low-carbon electricity consumption characteristics, and user electricity production and consumption carbon characteristics. Then, the sub-labels are processed and various comprehensive indicators are analyzed to obtain label data of each dimension. Finally, the k-means clustering algorithm is used to determine and determine the cluster to which the user belongs. Then, the user's carbon reduction comprehensive index is calculated based on the label system and displayed in a bar chart, thereby realizing the visualization of the user's carbon profiling. However, in the above method, the industry characteristics of industrial users such as waste heat and waste energy power generation are ignored, and in the clustering process, different initial clustering centers will lead to different clustering results, making the algorithm unstable and unable to fully and accurately characterize the user's carbon emission characteristics. Summary of the invention
[0004] In order to solve the above problems, the present invention proposes a user carbon emission feature profiling method and system based on the mean clustering algorithm. The present invention takes into account the industry characteristics of industrial users such as waste heat and waste energy power generation, and optimizes the process of initializing the clustering center, which can comprehensively and accurately characterize the user's energy consumption characteristics and carbon emission characteristics.
[0005] In order to achieve the above object, the present invention is implemented through the following technical solutions:
[0006] In a first aspect, the present invention provides a method for profiling user carbon emission characteristics based on a mean clustering algorithm, comprising:
[0007] Obtain a user carbon portrait label system including user energy efficiency characteristics, user electricity consumption characteristics and user industry low-carbon characteristics; wherein the user industry low-carbon characteristics include waste heat utilization rate and enterprise self-generation rate;
[0008] Clustering the user energy efficiency characteristics, the user electricity consumption characteristics and the user industry low-carbon characteristics to obtain the optimal number of clusters; when clustering, after determining the first cluster center according to the distance principle, in the remaining data, calculate the shortest distance between each point and the existing cluster center, and select the point corresponding to the maximum distance value among all the shortest distances as the new cluster center;
[0009] Based on the optimal number of categories, user carbon emission characteristics are profiled.
[0010] Furthermore, the user energy efficiency characteristics include power characteristics and load characteristics; the power characteristics are the ratio of each user's power consumption to the average power consumption of users within the statistical range; the load characteristics include maximum load power, average load rate, maximum load utilization hours and peak-to-valley difference rate.
[0011] Furthermore, the user's electricity consumption characteristics include peak-valley electricity price sensitivity estimation and electricity consumption tendency estimation; the peak-valley electricity price sensitivity estimation includes peak-valley electricity price sensitivity estimation and electricity consumption change at the peak-valley electricity price turning point; the electricity consumption tendency is equal to the ratio of the user's electricity consumption during the off-peak period to the user's total electricity consumption.
[0012] Furthermore, the user industry low-carbon characteristics include user industry low-carbon characteristics and industry low-carbon awareness characteristics; the user industry low-carbon characteristics include the waste heat utilization rate and the enterprise self-generation rate; the industry low-carbon awareness characteristics include raw material substitution ratio and low-carbon awareness characteristics.
[0013] Furthermore, the waste heat utilization rate is equal to the ratio of the heat energy recovered and utilized on the day to the total heat energy produced on the day; the enterprise's self-generation rate is equal to the ratio of the enterprise's self-generated electricity on a certain day to the enterprise's total electricity consumption on that day; the raw material substitution ratio is equal to the ratio of two different raw materials required to produce a preset number of products.
[0014] Furthermore, the correlation coefficients of different characteristic labels in the user carbon portrait label system are calculated to determine the similarity.
[0015] Furthermore, the characteristic labels in the user carbon portrait label system are standardized.
[0016] Furthermore, when clustering, the Euclidean distance between any two points in all the data is calculated, and the point with the smallest distance is selected as the first initial cluster center; in the remaining data, the point with the largest distance from the first cluster center is selected as the second cluster center, and so on, until the required k points are found; clustering is stopped when the preset maximum number of iterations is reached.
[0017] Furthermore, the distance from each point in the data set to the nearest cluster center is added to obtain the distance accumulation value, and a random value is selected from 0 to the distance accumulation value. The random value is equal to the random value minus the shortest distance until the random value is not greater than 0. At this time, the point is the next cluster center.
[0018] Furthermore, based on the three-dimensional user labels obtained by clustering, the entropy weight method is used to calculate the weight of each dimensional label; the user carbon reduction comprehensive index is obtained by the weight summation method.
[0019] In a second aspect, the present invention further provides a user carbon emission feature profiling system based on a mean clustering algorithm, comprising:
[0020] The data collection module is configured to: obtain a user carbon portrait label system including user energy efficiency characteristics, user electricity consumption characteristics and user industry low-carbon characteristics; wherein the user industry low-carbon characteristics include waste heat utilization rate and enterprise self-generation rate;
[0021] The clustering module is configured to: cluster the user energy efficiency characteristics, the user electricity consumption characteristics and the user industry low-carbon characteristics to obtain the optimal number of clusters; when clustering, after determining the first cluster center according to the distance principle, in the remaining data, calculate the shortest distance between each point and the existing cluster center, and select the point corresponding to the maximum distance value among all the shortest distances as the new cluster center;
[0022] The feature profiling module is configured to perform user carbon emission feature profiling based on the optimal number of categories.
[0023] In a third aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the user carbon emission characteristic profiling method based on the mean clustering algorithm described in the first aspect.
[0024] In a fourth aspect, the present invention further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein when the processor executes the program, the steps of the user carbon emission feature profiling method based on the mean clustering algorithm described in the first aspect are implemented.
[0025] In a fifth aspect, the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the user carbon emission feature profiling method based on the mean clustering algorithm described in the first aspect are implemented.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] In the present invention, in the user carbon portrait label system of user energy efficiency characteristics, user electricity consumption characteristics and user industry low-carbon characteristics, the user industry low-carbon characteristics include waste heat utilization rate and enterprise self-generation rate, which can comprehensively and accurately characterize the user's energy consumption characteristics; and when clustering the user energy efficiency characteristics, user electricity consumption characteristics and user industry low-carbon characteristics, after determining the first cluster center according to the distance principle, in the remaining data, the shortest distance between each point and the existing cluster center is calculated, and among all the shortest distances, the point corresponding to the maximum distance value is selected as the new cluster center, which avoids the problem of randomly selecting points that should belong to the same cluster as the cluster center when selecting the cluster center, thereby increasing the complexity of clustering, ensuring the clustering effect, and being able to accurately characterize the user's carbon emission characteristics. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The drawings in the specification that constitute a part of this embodiment are used to provide a further understanding of this embodiment. The schematic embodiments of this embodiment and their descriptions are used to explain this embodiment and do not constitute improper limitations on this embodiment.
[0029] Figure 1 This is a clustering flow chart of Example 1 of the present invention. DETAILED DESCRIPTION
[0030] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0031] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.
[0032] Mean clustering: It is an iterative clustering analysis algorithm based on partitioning;
[0033] User portrait: refers to the summary and description of user personal information, interests, behavioral habits and other characteristics.
[0034] Embodiment 1:
[0035] In recent years, the increasingly serious greenhouse gas emission problem has brought great challenges to human survival and sustainable development. In order to meet this challenge, the cement, steel, glass and chemical industries account for a large proportion of carbon emissions in the process of product production and fuel combustion. It is of great significance to carry out industry carbon emission measurement and characteristic analysis.
[0036] At present, there are a large number of methods for user carbon emission measurement and carbon footprint analysis, including life cycle method, input-output method and IPCC calculation method, etc. However, these methods lack accurate analysis and classification of carbon emission characteristics of different users, and cannot understand the carbon emission behavior of users from various dimensions such as energy consumption mode, carbon emission source, emission amount, emission time, etc., which is not conducive to users to carry out targeted carbon emission reduction.
[0037] Among them, in one method of the current user carbon emission behavior portrait, the corresponding evaluation indicators are constructed from the five dimensions of low-carbon energy use, reliable energy use, efficient energy use, economic energy use and smart energy use, and the hierarchical analysis method is used to determine the indicator weights and calculate the comprehensive energy use index, forming a multi-dimensional energy use portrait of industrial users; in another method, the label system of the user carbon portrait is designed from the three dimensions of user carbon reduction load characteristics, user low-carbon electricity characteristics, and user electricity production and consumption carbon characteristics, and then the sub-labels are processed and various comprehensive indicators are analyzed to obtain the label data of each dimension. Finally, the k-means clustering algorithm is used to judge and determine the cluster to which the user belongs, and then the user's carbon reduction comprehensive index is calculated according to the label system and displayed in a bar chart, realizing the visualization of the user's carbon portrait. Both methods give a user carbon emission portrait scheme and propose many labels that can reflect the user's behavior characteristics. However, no labels are set for the industry production characteristics of industrial users and their carbon emission behavior is analyzed.
[0038] In summary, the traditional evaluation system establishes user labels in the dimensions of low-carbon energy consumption, reliable electricity consumption, and economical energy consumption, and selects relevant evaluation indicators that reflect the user's energy consumption characteristics, but ignores industry characteristics such as waste heat and waste energy power generation of industrial users. Therefore, in this embodiment, a three-dimensional user feature label is constructed based on the industry's low-carbon characteristics, which can comprehensively and accurately characterize the user's energy consumption characteristics.
[0039] The traditional k-means clustering algorithm pre-specifies the initial number of clusters k in the data set, then randomly generates k initial cluster centers to divide the sample data, calculates the Euclidean distance from the data point to the k cluster centers and finds the cluster center closest to the target data point, and then divides the data point into the cluster corresponding to the cluster center to obtain k clusters. It is sensitive to the initial value. The initial cluster center of the algorithm is randomly selected, and different initial cluster centers will lead to different clustering results, making the algorithm unstable, the accuracy is reduced, and it is easy to fall into the local optimal situation. Therefore, in this embodiment, an improved k-means clustering algorithm is proposed, which optimizes the process of initializing the cluster center. The experimental results show that the original k-means clustering effect is improved.
[0040] Based on this, this embodiment provides a method for user carbon emission feature profiling based on a mean clustering algorithm, and the specific steps may include:
[0041] S1. User carbon portrait labeling system based on the low-carbon characteristics of the industry:
[0042] Optionally, in this embodiment, a user carbon portrait label system is constructed based on key factors such as user type, energy usage mode, carbon emission source, emission amount and emission time.
[0043] S1.1、User energy efficiency characteristics portrait:
[0044] S1.1.1. Electricity characteristics:
[0045] The power characteristics directly reflect the user's power consumption, which is reflected in the ratio of each user's power consumption to the average power consumption of users within the statistical range. The power characteristics reflect the user's power regulation potential.
[0046]
[0047] In the formula, W i For the i The amount of electricity consumed by each user; W av The average power consumption of users in the statistical area; n is the number of users in the statistical sample.
[0048] S1.1.2, Load characteristics:
[0049] Load characteristics are important indicators that reflect the potential of user regulation. According to the typical user load curve, it is divided into four periods: morning peak, noon peak, evening peak and night valley. They are T1 period: 06:00~10:00, T2 period: 10:00~16:00, T3 period: 16:00~21:00, T4 period: 21:00~06:00 the next day. Among them, T i The user load characteristics of the time period are:
[0050]
[0051]
[0052]
[0053]
[0054] In the formula, is the maximum load power; is the average load factor; is the number of hours of maximum load utilization; is the peak-to-valley difference rate; For the statistical period Ti Maximum power during the time period; For the statistical period T i Average power during the time period; is the maximum power in the statistical period; is the minimum power within the statistical time.
[0055] S1.2, User electricity consumption characteristics portrait:
[0056] S1.2.1. Estimation of peak and valley electricity price sensitivity:
[0057] By calculating the proportion of electricity charges incurred by users during the peak and valley periods within the statistical period and the change in electricity consumption at the turning point of the peak and valley electricity prices, a user's peak and valley electricity price sensitivity model can be effectively constructed. The peak and valley electricity charge ratio is:
[0058]
[0059] In the formula, C f To calculate the peak electricity charges during the period; C g To calculate the valley electricity price within the cycle, the change in electricity volume at the turning point of the peak and valley electricity prices is:
[0060]
[0061] In the formula, For the i The electricity consumption one hour after the peak-valley electricity price turns in the evening; For the i The amount of electricity consumed one hour before the peak-valley electricity price changes in the morning. T is the calculation cycle.
[0062] S1.2.2. Electricity consumption tendency estimation:
[0063] The valley power coefficient, as a typical load characteristic indicator, is used to reflect users' electricity consumption tendency during off-peak hours.
[0064]
[0065] In the formula, L v The electricity consumption during the off-peak period of the user; L z is the total electricity consumption of the user.
[0066] S1.3、Low-carbon characteristics of user industries:
[0067] S1.3.1. Estimation of enterprise self-generation characteristics:
[0068] Different industries have different production processes and carbon emission characteristics. In order to reduce the carbon emissions of enterprises, many enterprises will take measures such as self-provided power plants or waste heat and waste gas recycling. Therefore, this method takes cement plants and steel plants as examples to estimate the self-generation characteristics of enterprises.
[0069] Waste heat power generation is a major embodiment of carbon reduction in cement enterprises in production. This method proposes the following waste heat utilization rate:
[0070]
[0071] In the formula, It is the heat energy recycled and utilized by the cement plant on the same day; is the total heat energy produced by the cement plant on that day; It is the waste heat utilization rate of the cement plant on that day. The higher the value, the higher the proportion of waste heat power generation in the cement plant, the more complete the preheating recovery, and the less carbon emissions generated by the enterprise's electricity consumption.
[0072] Self-owned power plants are often an important part of steel enterprises and an important profit growth point for steel enterprises. This paper proposes the following self-owned power generation rates for enterprises:
[0073]
[0074] In the formula, The amount of electricity generated by the enterprise on a certain day; is the total electricity consumption of the enterprise on a certain day; It is the enterprise's self-use electricity coefficient. The larger the coefficient is, the higher the proportion of the enterprise's self-generation is and the less carbon emissions are generated by the enterprise's electricity consumption.
[0075] S1.3.2. Characteristics of industry low-carbon awareness:
[0076] In the cement production process, carbon emission sources mainly come from raw material decomposition, fuel combustion, and electricity consumption. Among them, CO2 produced by the decomposition of carbonates in lime raw materials is the largest source of carbon emissions in the cement industry. Every ton of cement clinker requires 1.3 tons of lime raw materials. This method sets the raw material substitution ratio for the cement industry as follows:
[0077]
[0078] In the formula, M t The lime raw material required for producing one ton of cement; M nc Non-carbonate raw materials such as carbide slag, papermaking sludge and desulfurization gypsum are required to produce every ton of cement.
[0079] In the steel production process, most of the carbon dioxide comes from the combustion of primary energy such as coal and coke and secondary energy such as coal gas. The fuel ratio, iron-water ratio, scrap steel volume and production process will affect the carbon emissions of steel plants. This method sets the low-carbon awareness characteristics of steel plants as follows:
[0080]
[0081] In the formula, L tc The carbon emissions generated by electricity consumption at a steel plant; L avc The carbon emissions generated by the average use of electricity by steel plants in the region.
[0082] In this embodiment, it can be defined that the user energy efficiency characteristic label is defined as 2-dimensional L1-L2, the user power consumption characteristic label is defined as 2-dimensional L3-L4, and the user industry power consumption characteristic label is defined as 2-dimensional L5-L6.
[0083] The correlation coefficient is the trend direction and degree of change between two variables. In this embodiment, the Pearson correlation coefficient is selected to characterize the degree of association between two feature labels. x and y Pearson correlation coefficient r xy The calculation formula is as follows:
[0084]
[0085] In the formula, cov ( x , y ) is characterized x and y The covariance of s x and s y Respectively x and y The standard deviation of r xy The value range of is [-1, 1], and the closer its absolute value is to 1, the stronger the correlation between the two is. In this embodiment, the feature label correlation coefficients used are shown in Table 1 below.
[0086] Table 1 Feature label correlation coefficient
[0087]
[0088] It can be seen from Table 1 that the correlation coefficients between labels are relatively reasonable, and the feature set used in this embodiment is concise and effective.
[0089] S2. Improved k-means clustering algorithm:
[0090] S2.1. Data standardization:
[0091] First, the electricity consumption and carbon reduction label information is standardized accordingly, and then the overall data matrix is constructed. Optionally, in the comprehensive cluster analysis, data cleaning is first performed, and then each column of data is normalized using minimum-maximum normalization, as follows:
[0092]
[0093] S2.2. Analysis of various comprehensive index values:
[0094] The user carbon reduction load characteristic label includes the user electricity characteristic labels L1-L6, a total of 6 dimensions of data. The comprehensive label value of the electricity characteristic is obtained using the following formula: L ,in is the weight of each dimension of data.
[0095]
[0096] In this embodiment, the entropy weight method is used to determine the weight of each evaluation index. The entropy weight method calculates the weights of L1-L2 to be: 0.42 and 0.58, the weights of L3-L4 to be: 0.31 and 0.69, and the weights of L5-L6 to be: 0.58 and 0.42.
[0097] S2.3, K-means clustering algorithm:
[0098] In order to determine the optimal number of clustering classes, this paper uses the silhouette coefficient as an evaluation indicator. Based on the idea of the k-means clustering algorithm, user energy efficiency characteristic labels, user electricity consumption characteristic labels, and user industry low-carbon characteristic labels are clustered and divided into three categories: m1, m2, and m3.
[0099] Calculate the Euclidean distance between any two points in all the data, compare the distances, and select one of the points with the smallest distance as the first initial cluster center. The advantage of this is that it can avoid the situation in the original k-means clustering algorithm where the randomly selected initial cluster center is a noise point, resulting in low clustering efficiency. In the remaining data, select the data point as far away from this point as possible as the second initial cluster center, because the original k-means clustering algorithm may select points that should belong to the same cluster as cluster centers when randomly selecting cluster centers, increasing clustering complexity, and so on, until the required k points are found, and then iteratively update the cluster center according to the K-means clustering algorithm, and stop when the maximum number of iterations is reached. The steps of the improved algorithm are as follows. Input: Data set D = { x 1, x2, ..., x m}; Cluster number k. Output: k clustering results. The improved algorithm process is as follows:
[0100] S2.3.1. Calculate the Euclidean distance between any two sample points. , ( n is the data dimension, i ≠ j ; i , j =1, 2, 3, ..., m ).
[0101] S2.3.2 Comparison , choose the point with the smallest distance x i As the first initial cluster center c 1.
[0102] S2.3.3. For each point in the data set x i , calculate the shortest distance between it and the current cluster center (that is, the distance to the nearest cluster center), represented by D(x).
[0103] S2.3.4. The larger point in D(x) is used as the new cluster center. The rule is: add the distance from each point in the data set to the nearest cluster center, and the sum is represented by sum(D(x)). Pick a random value Random between 0 and sum(D(x)), and execute Random=Random-D(x) until Random≤0. The point at this time is the next cluster center.
[0104] S2.3.5. Repeat steps S2.3.3 and S2.3.4 until k cluster centers are selected.
[0105] S2.3.6. Use the iterative process in the original k-means algorithm to repeatedly divide the sample points and update the center points until the cluster center no longer changes.
[0106] S2.4 User Cluster Analysis
[0107] In this embodiment, users are classified according to the size of characteristic indicators for each dimensional label, and the level of each dimensional indicator of the user is displayed to the power company. Through clustering, the three-dimensional characteristics of users are divided into three categories: m1, m2 and m3 according to user energy efficiency characteristics, user electricity consumption characteristics and industry low-carbon characteristics, and the target users are divided into 27 categories.
[0108] S2.5. User carbon reduction comprehensive index profiling method:
[0109] According to the above comprehensive index value analysis and calculation, the user labels of the three dimensions within the sampling range are obtained. According to the discrete degree of the user label data of each dimension, the entropy weight method is used to calculate the weight of each dimension label. , and The user carbon reduction comprehensive index is 0.34, 0.31 and 0.35. L rce :
[0110]
[0111]
[0112] In the formula, , and They respectively represent the user's energy efficiency characteristic label, electricity consumption characteristic label and user industry low-carbon characteristic label.
[0113] Embodiment 2:
[0114] This embodiment provides a user carbon emission feature profiling system based on a mean clustering algorithm, including:
[0115] The data collection module is configured to: obtain a user carbon portrait label system including user energy efficiency characteristics, user electricity consumption characteristics and user industry low-carbon characteristics; wherein the user industry low-carbon characteristics include waste heat utilization rate and enterprise self-generation rate;
[0116] The clustering module is configured to: cluster the user energy efficiency characteristics, the user electricity consumption characteristics and the user industry low-carbon characteristics to obtain the optimal number of clusters; when clustering, after determining the first cluster center according to the distance principle, in the remaining data, calculate the shortest distance between each point and the existing cluster center, and select the point corresponding to the maximum distance value among all the shortest distances as the new cluster center;
[0117] The feature profiling module is configured to perform user carbon emission feature profiling based on the optimal number of categories.
[0118] Specifically, in the user carbon portrait label system of user energy efficiency characteristics, user electricity consumption characteristics and user industry low-carbon characteristics, the user industry low-carbon characteristics include waste heat utilization rate and enterprise self-generation rate, which can comprehensively and accurately characterize the user's energy consumption characteristics; and when clustering the user energy efficiency characteristics, user electricity consumption characteristics and user industry low-carbon characteristics, after determining the first cluster center according to the distance principle, in the remaining data, calculate the shortest distance between each point and the existing cluster center, and among all the shortest distances, select the point corresponding to the maximum distance value as the new cluster center, avoiding the problem of randomly selecting points that should belong to the same cluster as the cluster center when selecting the cluster center, thereby increasing the complexity of clustering, ensuring the clustering effect, and being able to accurately characterize the user's carbon emission characteristics.
[0119] Optionally, an improved k-means clustering algorithm is used, including:
[0120] Data standardization:
[0121] First, the electricity consumption and carbon reduction label information is standardized accordingly, and then the overall data matrix is constructed. Optionally, in the comprehensive cluster analysis, data cleaning is first performed, and then each column of data is normalized using minimum-maximum normalization, as follows:
[0122]
[0123] Analysis of various comprehensive index values:
[0124] The user carbon reduction load characteristic label includes the user electricity characteristic labels L1-L6, a total of 6 dimensions of data. The comprehensive label value of the electricity characteristic is obtained using the following formula: L ,in is the weight of each dimension of data.
[0125] In this embodiment, the entropy weight method is used to determine the weight of each evaluation index. The entropy weight method calculates the weights of L1-L2 to be: 0.42 and 0.58, the weights of L3-L4 to be: 0.31 and 0.69, and the weights of L5-L6 to be: 0.58 and 0.42.
[0126] K-means clustering algorithm:
[0127] In order to determine the optimal number of clustering classes, this paper uses the silhouette coefficient as an evaluation indicator. Based on the idea of the k-means clustering algorithm, user energy efficiency characteristic labels, user electricity consumption characteristic labels, and user industry low-carbon characteristic labels are clustered and divided into three categories: m1, m2, and m3.
[0128] Calculate the Euclidean distance between any two points in all the data, compare the distances, and select one of the points with the smallest distance as the first initial cluster center. The advantage of this is that it can avoid the situation in the original k-means clustering algorithm where the randomly selected initial cluster center is a noise point, resulting in low clustering efficiency. In the remaining data, select the data point as far away from this point as possible as the second initial cluster center, because the original k-means clustering algorithm may select points that should belong to the same cluster as cluster centers when randomly selecting cluster centers, increasing clustering complexity, and so on, until the required k points are found, and then iteratively update the cluster center according to the K-means clustering algorithm, and stop when the maximum number of iterations is reached. The steps of the improved algorithm are as follows. Input: Data set D = { x 1, x 2, ..., x m}; Cluster number k. Output: k clustering results. The improved algorithm process is as follows:
[0129] (1) Calculate the Euclidean distance between any two sample points. , ( n is the data dimension, i ≠ j ; i , j =1, 2, 3, ..., m ).
[0130] (2) Comparison , choose the point with the smallest distance x i As the first initial cluster center c 1.
[0131] (3) For each point in the data set x i , calculate the shortest distance between it and the current cluster center (that is, the distance to the nearest cluster center), represented by D(x).
[0132] (4) The larger point in D(x) is used as the new cluster center. The rule is: add the distance from each point in the data set to the nearest cluster center, and the sum is represented by sum(D(x)). Pick a random value Random between 0 and sum(D(x)), and execute Random = Random - D(x) until Random ≤ 0. The point at this time is the next cluster center.
[0133] (5) Repeat steps (3) and (4) until k cluster centers are selected.
[0134] (6) The iterative process in the original k-means algorithm is used to repeatedly divide the sample points and update the center points until the cluster center no longer changes.
[0135] User carbon reduction comprehensive index profiling method:
[0136] According to the above comprehensive index value analysis and calculation, the user labels of the three dimensions within the sampling range are obtained. According to the discrete degree of the user label data of each dimension, the entropy weight method is used to calculate the weight of each dimension label. , and The user carbon reduction comprehensive index is 0.34, 0.31 and 0.35. L rce :
[0137]
[0138]
[0139] In the formula, , and They respectively represent the user's energy efficiency characteristic label, electricity consumption characteristic label and user industry low-carbon characteristic label.
[0140] The working method of the system is the same as the user carbon emission feature profiling method based on the mean clustering algorithm in Example 1, and will not be repeated here.
[0141] Embodiment 3:
[0142] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the user carbon emission feature profiling method based on the mean clustering algorithm described in Example 1 are implemented.
[0143] Embodiment 4:
[0144] This embodiment provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the program, the steps of the user carbon emission feature profiling method based on the mean clustering algorithm described in Example 1 are implemented.
[0145] Embodiment 5:
[0146] This embodiment provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the user carbon emission feature profiling method based on the mean clustering algorithm described in Example 1 are implemented.
[0147] The above description is only a preferred embodiment of the present embodiment and is not intended to limit the present embodiment. For those skilled in the art, the present embodiment may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present embodiment shall be included in the protection scope of the present embodiment.
Claims
1. A user carbon emission feature profiling method based on mean clustering algorithm, characterized in that: include: Obtain a user carbon portrait label system including user energy efficiency characteristics, user electricity consumption characteristics and user industry low-carbon characteristics; wherein the user industry low-carbon characteristics include waste heat utilization rate and enterprise self-generation rate; the waste heat utilization rate is equal to the ratio of the heat energy recycled and utilized on the day to the total heat energy produced on the day; the enterprise self-generation rate is equal to the ratio of the enterprise's self-generated electricity on a certain day to the enterprise's total electricity consumption on a certain day; calculate the correlation coefficients of different characteristic labels in the user carbon portrait label system to determine the similarity; The user energy efficiency characteristic label is defined as 2-dimensional L1-L2, the user power consumption characteristic label is defined as 2-dimensional L3-L4, and the user industry power consumption characteristic label is defined as 2-dimensional L5-L6; the Pearson correlation coefficient is selected to represent the correlation between the two characteristic labels. ρxy The calculation formula is as follows: In the formula, cov ( x , y ) is characterized x and y The covariance of σx and σy Respectively x and y The standard deviation of ρxy The value range of is [-1, 1]. The closer its absolute value is to 1, the stronger the correlation between the two is. The correlation coefficient between L1 and L2 is 0.7, the correlation coefficient between L3 and L4 is 0.8, the correlation coefficient between L5 and L6 is 0.9, the correlation coefficient between L1 and L5 is 0.3, and the correlation coefficient between L3 and L5 is 0.
1. Clustering the user energy efficiency characteristics, the user electricity consumption characteristics and the user industry low-carbon characteristics to obtain the optimal number of clusters; when clustering, after determining the first cluster center according to the distance principle, in the remaining data, calculate the shortest distance between each point and the existing cluster center, and select the point corresponding to the maximum distance value among all the shortest distances as the new cluster center; According to the optimal number of clusters, the user's carbon emission characteristics are profiled; according to the three-dimensional user labels obtained by clustering, the entropy weight method is used to calculate the weight of each dimensional label; the user's carbon reduction comprehensive index is obtained by the weight summation method; The method is used for cement plants and steel plants, wherein the user industry low-carbon characteristics include the user industry low-carbon characteristics and the industry low-carbon awareness characteristics; the user industry low-carbon characteristics include the waste heat utilization rate and the enterprise self-generation rate; the industry low-carbon awareness characteristics include the raw material substitution ratio and the low-carbon awareness characteristics; the raw material substitution ratio is equal to the ratio of two different raw materials required to produce a preset number of products; Waste heat power generation is a major embodiment of cement enterprises' carbon reduction in production. The waste heat utilization rate is as follows: In the formula, It is the heat energy recycled and utilized by the cement plant on the same day; is the total heat energy produced by the cement plant on that day; The waste heat utilization rate of the cement plant on that day. The higher the value, the higher the waste heat power generation ratio of the cement plant, the more complete the preheating recovery, and the less carbon emissions generated by the enterprise's electricity consumption; Self-owned power plants are an important part of steel enterprises. The self-generated power rates are as follows: In the formula, The amount of electricity generated by the enterprise on a certain day; is the total electricity consumption of the enterprise on a certain day; is the enterprise's self-use electricity coefficient. The larger the coefficient, the higher the proportion of the enterprise's self-generation, and the less carbon emissions generated by the enterprise's electricity consumption; In the cement production process, carbon emission sources mainly come from raw material decomposition, fuel combustion and electricity consumption. Among them, CO2 produced by the decomposition of carbonates in lime raw materials is the largest source of carbon emissions in the cement industry. The raw material substitution ratio for the cement industry is set as follows: In the formula, M t The lime raw material required for producing one ton of cement; M nc Non-carbonate raw materials required for each ton of cement produced; In the production of steel, most of the carbon dioxide comes from coal, coke and coal gas; the low-carbon awareness features of setting up steel plants are as follows: In the formula, L tc The carbon emissions generated by electricity consumption at a steel plant; L avc It is the average carbon emissions generated by the use of electricity by steel mills in the corresponding region.
2. The user carbon emission feature profiling method based on mean clustering algorithm according to claim 1, characterized in that: The user energy efficiency characteristics include power characteristics and load characteristics; the power characteristics are the ratio of each user's power consumption to the average power consumption of users within the statistical range; the load characteristics include maximum load power, average load rate, maximum load utilization hours and peak-to-valley difference rate.
3. The user carbon emission feature profiling method based on mean clustering algorithm according to claim 1, characterized in that: The user's electricity consumption characteristics include peak-valley electricity price sensitivity estimation and electricity consumption tendency estimation; the peak-valley electricity price sensitivity estimation includes peak-valley electricity price sensitivity estimation and electricity consumption change at the peak-valley electricity price turning point; the electricity consumption tendency is equal to the ratio of the user's electricity consumption during the off-peak period to the user's total electricity consumption.
4. The user carbon emission feature profiling method based on mean clustering algorithm according to claim 1, characterized in that: The characteristic labels in the user carbon portrait label system are standardized.
5. The user carbon emission feature profiling method based on mean clustering algorithm according to claim 1, characterized in that: When performing clustering, calculate the Euclidean distance between any two points in all the data, and select the point with the smallest distance as the first initial cluster center; in the remaining data, select the point with the largest distance from the first cluster center as the second cluster center, and so on, until the required k points are found; clustering is stopped when the preset maximum number of iterations is reached.
6. The user carbon emission feature profiling method based on mean clustering algorithm according to claim 1, characterized in that: Add the distance from each point in the data set to the nearest cluster center to get the distance accumulation value, pick a random value between 0 and the distance accumulation value, and execute the random value equal to the random value minus the shortest distance until the random value is not greater than 0. At this time, the point is the next cluster center.
7. A user carbon emission feature profiling system based on mean clustering algorithm, characterized in that: include: The data acquisition module is configured to: obtain a user carbon portrait label system including user energy efficiency characteristics, user electricity consumption characteristics and user industry low-carbon characteristics; wherein the user industry low-carbon characteristics include waste heat utilization rate and enterprise self-generation rate; the waste heat utilization rate is equal to the ratio of the heat energy recycled and utilized on the day to the total heat energy produced on the day; the enterprise self-generation rate is equal to the ratio of the enterprise's self-generation on a certain day to the enterprise's total electricity consumption on a certain day; calculate the correlation coefficients of different characteristic labels in the user carbon portrait label system to determine the similarity; The user energy efficiency characteristic label is defined as 2-dimensional L1-L2, the user power consumption characteristic label is defined as 2-dimensional L3-L4, and the user industry power consumption characteristic label is defined as 2-dimensional L5-L6; the Pearson correlation coefficient is selected to represent the correlation between the two characteristic labels. ρxy The calculation formula is as follows: In the formula, cov ( x , y ) is characterized x and y The covariance of σ x and σ y Respectively x and y The standard deviation of ρ xy The value range of is [-1, 1]. The closer its absolute value is to 1, the stronger the correlation between the two is. The correlation coefficient between L1 and L2 is 0.7, the correlation coefficient between L3 and L4 is 0.8, the correlation coefficient between L5 and L6 is 0.9, the correlation coefficient between L1 and L5 is 0.3, and the correlation coefficient between L3 and L5 is 0.
1. The clustering module is configured to: cluster the user energy efficiency characteristics, the user electricity consumption characteristics and the user industry low-carbon characteristics to obtain the optimal number of clusters; when clustering, after determining the first cluster center according to the distance principle, in the remaining data, calculate the shortest distance between each point and the existing cluster center, and select the point corresponding to the maximum distance value among all the shortest distances as the new cluster center; The feature profiling module is configured to: perform user carbon emission feature profiling based on the optimal number of clusters; calculate the weight of each dimension label using the entropy weight method based on the three-dimensional user labels obtained by clustering; and obtain the user carbon reduction comprehensive index using the weight summation method; The method is used for cement plants and steel plants, wherein the user industry low-carbon characteristics include the user industry low-carbon characteristics and the industry low-carbon awareness characteristics; the user industry low-carbon characteristics include the waste heat utilization rate and the enterprise self-generation rate; the industry low-carbon awareness characteristics include the raw material substitution ratio and the low-carbon awareness characteristics; the raw material substitution ratio is equal to the ratio of two different raw materials required to produce a preset number of products; Waste heat power generation is a major embodiment of cement enterprises' carbon reduction in production. The waste heat utilization rate is as follows: In the formula, It is the heat energy recycled and utilized by the cement plant on the same day; is the total heat energy produced by the cement plant on that day; The waste heat utilization rate of the cement plant on that day. The higher the value, the higher the waste heat power generation ratio of the cement plant, the more complete the preheating recovery, and the less carbon emissions generated by the enterprise's electricity consumption; Self-owned power plants are an important part of steel enterprises. The self-generated power rates are as follows: In the formula, The amount of electricity generated by the enterprise on a certain day; is the total electricity consumption of the enterprise on a certain day; is the enterprise's self-use electricity coefficient. The larger the coefficient, the higher the proportion of the enterprise's self-generation, and the less carbon emissions generated by the enterprise's electricity consumption; In the cement production process, carbon emission sources mainly come from raw material decomposition, fuel combustion and electricity consumption. Among them, CO2 produced by the decomposition of carbonates in lime raw materials is the largest source of carbon emissions in the cement industry. The raw material substitution ratio for the cement industry is set as follows: In the formula, M t The lime raw material required for producing one ton of cement; M nc Non-carbonate raw materials required for each ton of cement produced; In the production of steel, most of the carbon dioxide comes from coal, coke and coal gas; the low-carbon awareness features of setting up steel plants are as follows: In the formula, L tc The carbon emissions generated by electricity consumption at a steel plant; L avc It is the average carbon emissions generated by the use of electricity by steel mills in the corresponding region.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the user carbon emission feature profiling method based on the mean clustering algorithm as described in any one of claims 1 to 6 are implemented.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor executes the program, the steps of the user carbon emission feature profiling method based on the mean clustering algorithm as described in any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the user carbon emission feature profiling method based on the mean clustering algorithm as described in any one of claims 1 to 6 are implemented.
