Building energy consumption data collection and analysis method and system based on machine learning

Analyze building energy consumption data through machine learning methods, consider the relationship between energy consumption and impact data, identify hysteresis and make corrections, use independent component analysis and clustering algorithms to optimize energy distribution, and solve energy problems in existing technologies. It solves the problem of inaccurate consumption analysis and improves energy efficiency and cost management.

CN118536679BActive Publication Date: 2024-10-18SHANDONG TONGFANG DECHENG TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410993093.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-18
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

Existing building energy consumption anomaly analysis methods fail to effectively consider the relationship between energy consumption data and multi-dimensional impact data, resulting in inaccurate analysis results and affecting energy efficiency and cost management.

Method used

Using a method based on machine learning, by acquiring energy consumption data and impact data, an analysis window is constructed to determine the hysteresis of the impact data and make corrections. Independent component analysis and Pearson correlation coefficient are used to obtain the expansion coefficient, and the energy consumption data is corrected and corrected. Clustering,identifying abnormal data to optimize energy allocation.

Benefits of technology

By combining the correlation between energy consumption and influencing factors, a more comprehensive and accurate analysis of energy consumption data can be achieved, energy distribution can be optimized, energy consumption and management costs can be reduced, and energy utilization efficiency can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536679B_ABST
    Figure CN118536679B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of electronic digital data processing technology, and specifically to a method and system for collecting and analyzing building energy consumption data based on machine learning, including: obtaining the hysteresis of influencing data, obtaining new influencing data based on the difference between the energy consumption data and the influencing data with hysteresis, correcting and clustering the energy consumption data based on the correlation between the independent component of the energy consumption data and the new influencing data, obtaining abnormal data, and further optimizing the allocation of energy consumption resources. The present invention achieves more comprehensive and accurate quantification of the relationship between energy consumption data and influencing factors by performing correlation analysis between data, and provides data support for energy allocation optimization through abnormal data to avoid unreasonable energy allocation, which leads to abnormal operation inside the building, thereby reducing building energy consumption and improving energy utilization efficiency through reasonable energy allocation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a method and system for collecting and analyzing building energy consumption data based on machine learning. Background Art

[0002] Building energy consumption data analysis is of great significance for understanding and improving building energy efficiency. By analyzing building energy consumption data and tracking and monitoring the use of building energy, it is possible to evaluate the energy efficiency and performance of buildings, reveal the energy-saving potential of buildings, and help building owners, designers, and operators understand the energy consumption patterns of buildings and high-energy-consuming equipment and systems, so as to formulate targeted strategies and decisions to improve the energy efficiency performance of buildings. During the building energy consumption analysis process, some energy consumption data may be abnormal due to equipment failures and operational problems. Abnormal energy consumption may lead to unnecessary energy losses and additional energy consumption expenditures. By timely discovering and resolving energy consumption anomalies, unnecessary energy waste can be reduced and energy costs can be saved.

[0003] At present, trend analysis, statistical analysis, data mining and machine learning are usually used to analyze the abnormal energy consumption of buildings. The abnormal analysis using clustering algorithms is generally a cluster analysis of single energy consumption data, without considering the relationship between the multi-dimensional data of building energy consumption. As a result, it is impossible to accurately obtain abnormal data from the clustering results, affecting the accuracy of the building energy consumption analysis results. Summary of the invention

[0004] The present invention provides a building energy consumption data collection and analysis method and system based on machine learning to solve existing problems.

[0005] The building energy consumption data collection and analysis method and system based on machine learning of the present invention adopts the following technical solutions:

[0006] The present invention provides a method for collecting and analyzing building energy consumption data based on machine learning, the method comprising the following steps:

[0007] Obtain energy consumption data and several impact data;

[0008] Construct an analysis window, and obtain several local maximum points and corresponding maximum time points when the analysis window traverses the energy consumption data and several impact data; obtain several time intervals of any impact data according to the maximum time point in the impact data and the analysis window, and judge whether the impact data has hysteresis according to the difference between the number of time intervals of the impact data and the number of local maximum points of the energy consumption data; obtain the lag time according to the difference between the length of the impact data with lag and the mean of all time intervals in the energy consumption data, and use the lag time to correct the impact data with lag to obtain new impact data;

[0009] Obtain several independent component components of energy consumption data; obtain relevant independent component components of new impact data according to the Pearson correlation coefficient between any new impact data and the independent component components; obtain expansion coefficients of independent component components according to the Pearson correlation coefficients between relevant independent component components;

[0010] The energy consumption data is corrected by using the expansion coefficients of all independent components of the energy consumption data to obtain corrected energy consumption data, the corrected energy consumption data is clustered, and abnormal corrected energy consumption data is obtained according to the clustering results; and the allocation of energy consumption resources is optimized according to the abnormal corrected energy consumption data.

[0011] Furthermore, the acquisition of the analysis window traversing the energy consumption data and the plurality of impact data, the plurality of local maximum points and the corresponding maximum time points includes the following specific steps:

[0012] A first neighborhood radius is preset. When the value of the corresponding data point at any time in the energy consumption data is greater than the values ​​of all data points within the first neighborhood radius, and the range of the data points within the neighborhood radius where the data point is located is greater than the preset range threshold, the data point at the corresponding time is recorded as a local maximum point, and the corresponding time point of the local maximum point is recorded as the maximum time point.

[0013] Furthermore, the method of obtaining a plurality of time intervals of any influencing data according to the maximum time point in the influencing data and the analysis window, and judging whether the influencing data has hysteresis according to the difference between the number of time intervals of the influencing data and the number of local maximum points of the energy consumption data, includes the following specific steps:

[0014] The energy consumption data and any impact data are traversed and analyzed using the analysis window. If there is a local maximum point in the analysis window, the corresponding time point of the local maximum point is obtained, and the interval formed by the time point corresponding to the left endpoint of the analysis window and the time point corresponding to the maximum time point is recorded as the time interval; several time intervals in any impact data are obtained, and the average length of all time intervals in the energy consumption data or any impact data is recorded as the interval length;

[0015] When the number of time intervals in the impact data and the number of local maximum points in the energy consumption data are greater than or equal to the preset number threshold, there is no hysteresis in the corresponding impact data. Otherwise, when they are less than the preset number threshold, there is hysteresis in the corresponding impact data.

[0016] Furthermore, the hysteresis duration is obtained according to the difference between the impact data with hysteresis and the mean length of all time intervals in the energy consumption data, and the impact data with hysteresis is corrected by using the hysteresis duration to obtain new impact data, including the following specific steps:

[0017] Obtain the interval duration of the impact data with hysteresis, record the absolute value of the difference between the interval duration of the energy consumption data and the interval duration of the impact data with hysteresis as the hysteresis duration of the corresponding impact data, add the hysteresis duration to the values ​​of the corresponding time points of all data points in the impact data with hysteresis, and obtain the corrected impact data;

[0018] The revised impact data and the impact data without lag are collectively referred to as new impact data.

[0019] Furthermore, the method of obtaining a plurality of independent components of the energy consumption data; and obtaining the relevant independent component components of the new impact data according to the Pearson correlation coefficient between any new impact data and the independent component components, includes the following specific steps:

[0020] Preset the component quantity parameter of the independent component analysis algorithm, use the independent component analysis algorithm to obtain the number of independent component components corresponding to the component quantity parameter corresponding to the energy consumption data, obtain the Pearson correlation coefficient between any new influencing data and all independent component components, and record the independent component components corresponding to the maximum values ​​of several Pearson correlation coefficients of any new influencing data as the relevant independent component components of the new influencing data.

[0021] Furthermore, the step of obtaining the expansion coefficient of the independent component component according to the Pearson correlation coefficient between the related independent component components includes the following specific steps:

[0022] First, preset the second neighborhood radius to obtain the relevant independent component components corresponding to the new impact data of any day , and the related independent components of several energy consumption data within the second neighborhood radius ,in Indicates The Pearson correlation coefficient between the independent component components of any new impact data of the day and the independent component components of all energy consumption data within the neighborhood radius is obtained, which is recorded as , indicating the Heaven and Earth The Pearson correlation coefficient between the independent components corresponding to the new impact data of the day;

[0023] Then, the expansion factor is obtained according to the Pearson correlation coefficient between the related independent components. The specific calculation method is:

[0024]

[0025] in, Indicates Heaven and Earth The expansion factor between the independent components corresponding to any new impact data of the day; Represents all relevant independent components of any new influencing data within the second neighborhood radius, corresponding to the average value of the Pearson correlation coefficient; Indicates Heaven and Earth The Pearson correlation coefficient between the independent components corresponding to the new impact data of the day;

[0026] Finally, the expansion coefficient is obtained according to the expansion factor and the Pearson correlation coefficient.

[0027] Furthermore, the method for obtaining the expansion coefficient is as follows:

[0028] The expansion coefficient is obtained according to the expansion factor and the Pearson correlation coefficient. The specific calculation method is:

[0029]

[0030] in, Indicates The expansion coefficient of the independent component corresponding to any new impact data of the day; Indicates Heaven and Earth The expansion factor between the independent components corresponding to any new impact data of the day; Indicates Heaven and Earth The Pearson correlation coefficient between the independent components corresponding to any new impact data of the day.

[0031] Furthermore, the energy consumption data is corrected by using the expansion coefficients of all independent components of the energy consumption data to obtain corrected energy consumption data, the corrected energy consumption data is clustered, and abnormal corrected energy consumption data is obtained according to the clustering results, including the following specific steps:

[0032] First, the mean of the expansion coefficients of all independent components of any energy consumption data is obtained, recorded as the expansion coefficient of the energy consumption data, and the expansion coefficients of all energy consumption data within a year are obtained. The expansion coefficients of all energy consumption data are normalized using the linear normalization method, recorded as , indicating the Normalized expansion coefficient of daily energy consumption data;

[0033] Then, the energy consumption data is corrected using the normalized expansion coefficient to obtain the corrected energy consumption data. The specific acquisition method is:

[0034]

[0035] in, Indicates Daily revised energy consumption data; Indicates Normalized expansion coefficient of daily energy consumption data, Indicates Daily energy consumption data; Indicates The mean of all data points in the daily energy consumption data; Indicates The mean of all data points in the daily energy consumption data; Indicates The mean of all data points in the daily energy consumption data.

[0036] Furthermore, the building energy consumption data collection and analysis system based on machine learning includes the following modules:

[0037] Data collection module: obtain energy consumption data and several impact data;

[0038] Data analysis module: construct an analysis window, obtain several local maximum points and corresponding maximum time points when the analysis window traverses the energy consumption data and several impact data; obtain several time intervals of any impact data according to the maximum time point in the impact data and the analysis window, and judge whether the impact data has hysteresis according to the difference between the number of time intervals of the impact data and the number of local maximum points of the energy consumption data; obtain the lag time according to the difference between the length of the impact data with lag and the mean of all time intervals in the energy consumption data, and use the lag time to correct the impact data with lag to obtain new impact data;

[0039] Expansion coefficient module: obtain several independent components of energy consumption data; obtain the relevant independent component components of new impact data according to the Pearson correlation coefficient between any new impact data and the independent component components, and obtain the expansion coefficient of the independent component components according to the Pearson correlation coefficient between the relevant independent component components;

[0040] Energy consumption optimization module: Utilize the expansion coefficients of all independent components of the energy consumption data to correct the energy consumption data, obtain corrected energy consumption data, cluster the corrected energy consumption data, obtain abnormal corrected energy consumption data based on the clustering results, and optimize the allocation of energy consumption resources based on the abnormal corrected energy consumption data.

[0041] The beneficial effect of the technical solution of the present invention is: by combining the connection between energy consumption and influencing factors in a building, that is, the correlation between energy consumption data and a number of influencing data, on the basis of correcting the lag of the influencing data, using the independent component analysis algorithm, using the correlation between independent component components in the energy consumption data and the influencing factors, and the correlation between independent component components to correct the energy consumption data, and obtaining the abnormal part in the energy consumption data through a clustering algorithm, by analyzing the correlation between the data, a more comprehensive and accurate understanding of the energy consumption data and the influencing factors is achieved, and the abnormal data in the energy consumption data can provide data support for energy allocation optimization, so as to avoid abnormal operation of the building due to unreasonable energy allocation, and at the same time, by reasonably allocating energy, it can reduce the energy consumption and management costs of the building and improve energy utilization efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 This is a module flow chart of the building energy consumption data collection and analysis system based on machine learning of the present invention;

[0044] Figure 2 The present invention is a flowchart of the steps of the building energy consumption data collection and analysis method based on machine learning. DETAILED DESCRIPTION

[0045] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the building energy consumption data collection and analysis method and system based on machine learning proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0046] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0047] The specific scheme of the building energy consumption data collection and analysis method and system based on machine learning provided by the present invention is described in detail below with reference to the accompanying drawings.

[0048] See also Figure 1 , which shows a module flow chart of a building energy consumption data collection and analysis system based on machine learning provided by an embodiment of the present invention, the system includes the following modules:

[0049] Data collection module: obtain energy consumption data and several impact data;

[0050] Data analysis module: construct an analysis window, obtain several local maximum points and corresponding maximum time points when the analysis window traverses the energy consumption data and several impact data; obtain several time intervals of any impact data according to the maximum time point in the impact data and the analysis window, and judge whether the impact data has hysteresis according to the difference between the number of time intervals of the impact data and the number of local maximum points of the energy consumption data; obtain the lag time according to the difference between the length of the impact data with lag and the mean of all time intervals in the energy consumption data, and use the lag time to correct the impact data with lag to obtain new impact data;

[0051] Expansion coefficient module: obtain several independent components of energy consumption data; obtain the relevant independent component components of new impact data according to the Pearson correlation coefficient between any new impact data and the independent component components, and obtain the expansion coefficient of the independent component components according to the Pearson correlation coefficient between the relevant independent component components;

[0052] Energy consumption optimization module: Utilize the expansion coefficients of all independent components of the energy consumption data to correct the energy consumption data, obtain corrected energy consumption data, cluster the corrected energy consumption data, obtain abnormal corrected energy consumption data based on the clustering results, and optimize the allocation of energy consumption resources based on the abnormal corrected energy consumption data.

[0053] See also Figure 2 , which shows a flowchart of a method for collecting and analyzing building energy consumption data based on machine learning provided by an embodiment of the present invention, the method comprising the following steps:

[0054] Step S001, obtaining building energy consumption data and several impact data.

[0055] Collect the electricity used by any building every day in the past year and record it as energy consumption data;

[0056] In addition, since the electricity consumption of users in a building is usually affected by multiple factors within a year, smart meter devices or smart socket devices, temperature sensors and humidity sensors are used to obtain data corresponding to multiple influencing factors in real time, including air conditioning energy consumption data, lighting energy consumption data, office equipment energy consumption data, loss energy consumption data, indoor and outdoor temperature difference data, indoor and outdoor humidity difference data, collectively referred to as influencing data.

[0057] In order to avoid the problem that the energy consumption allocation result is unreasonable by using the acquired abnormal energy consumption data due to only analyzing the energy consumption data, this embodiment obtains multiple influencing data corresponding to the energy consumption data, and determines the hysteresis of the influencing data by analyzing the time difference between the energy consumption data and the influencing data, and corrects the influencing data, so as to avoid the inaccurate subsequent correlation analysis caused by the time difference between the influencing data and the energy consumption data;

[0058] Then, based on the correlation between the multiple independent components that form the energy consumption data and the influencing data, the abnormal energy consumption data reflecting the large change in electricity consumption compared with other times is obtained. Based on the abnormal energy consumption data and the energy consumption data at the corresponding time point, the energy distribution in the building is optimized to improve the energy utilization efficiency.

[0059] It should be noted that, taking an example to illustrate the hysteresis and correlation, if the difference between indoor and outdoor temperature or indoor and outdoor humidity gradually increases during the day, in order to adjust the environmental comfort in the building, the air-conditioning energy consumption in the building will increase accordingly at a certain time point, further leading to an increase in energy consumption data. Therefore, in this process, the air-conditioning energy consumption data has a lag relative to the indoor and outdoor temperature data and the indoor and outdoor humidity data, and the air-conditioning energy consumption data has a correlation with the energy consumption data, and the energy consumption data also has a lag relative to the indoor and outdoor temperature data and the indoor and outdoor humidity data; therefore, after using the hysteresis to correct the influencing data with hysteresis, the newly obtained influencing data will not have a lag with the energy consumption data, but can reflect the correlation between the new image data and the energy consumption data. Through the above method, the consideration of multiple influencing factors in the analysis of energy consumption data is reflected, which greatly improves the rationality and accuracy of the energy consumption data analysis results.

[0060] At this point, energy consumption data and several impact data are obtained.

[0061] Step S002, obtaining the hysteresis of the influencing data according to the difference between the data points within the neighborhood radius of the building energy consumption data, and obtaining new influencing data according to the difference between the energy consumption data and the influencing data with hysteresis.

[0062] Since the energy consumption of buildings is affected by multiple factors, the way and degree of influence of each influencing data on the energy consumption data are different. For example, the degree of influence of the indoor and outdoor temperature difference data on the energy consumption data will have time differences. Often, the power consumption comes first and the temperature change comes later. Therefore, it is necessary to calculate the hysteresis between the data within each day to improve the accuracy of the calculated correlation, calculate the hysteresis between the influencing data, and correct the influencing data. The specific process is as follows:

[0063] First, obtain the local maximum point of the energy consumption data corresponding to any day or any influencing data. The specific process is: preset the first neighborhood radius to be 5. When the value of the corresponding data point at any time in the energy consumption data is greater than the values ​​of all data points within the first neighborhood radius, and the range of the data points within the neighborhood radius where the data point is located is greater than the preset range threshold, the data point at the corresponding time is recorded as the local maximum point, and several local maximum points in the energy consumption data are obtained;

[0064] It should be noted that based on experience, it is recommended to preset the extreme difference threshold to 10 kWh;

[0065] Then, an analysis window with a preset window length of 20 is used to perform traversal analysis on the energy consumption data and any influencing data. If there is a local maximum point in the analysis window, the corresponding time point of the local maximum point is obtained and recorded as the maximum time point. The interval formed by the time point corresponding to the left endpoint of the analysis window and the time point corresponding to the maximum time point is recorded as the time interval; several time intervals in any influencing data are obtained, and the average length of all time intervals in the energy consumption data or any influencing data is recorded as the interval length; when the number of time intervals in the influencing data and the number of local maximum points in the energy consumption data are greater than or equal to the preset number threshold, the corresponding influencing data does not have hysteresis, otherwise, when it is less than the preset number threshold, the corresponding influencing data has hysteresis;

[0066] It should be noted that the preset quantity threshold is 5 based on experience, which can be adjusted according to actual conditions and is not specifically limited in this embodiment.

[0067] It should be noted that the local maximum points obtained during the traversal of the analysis window are only the data points closest to the leftmost side of the analysis window, and are only statistically obtained once to ensure that one maximum time point corresponds to one time interval;

[0068] It should be noted that the size of the first neighborhood radius, the extreme difference threshold, and the window length of the analysis window are hyperparameters preset based on experience, which can be adjusted according to actual conditions and are not specifically limited in this embodiment.

[0069] This embodiment uses the local maximum point in the energy consumption data as a reference point to obtain the time corresponding to the data point when the value in the energy consumption data is larger, that is, the maximum time point; in addition, the energy consumption data usually has a lag relative to the indoor and outdoor temperature difference data and the indoor and outdoor humidity difference data, so the lag in the above reflects the lag of the energy consumption data relative to the influencing data; and when a local maximum point appears in the energy consumption data, there is a local maximum point in the influencing data corresponding to the local maximum point of the energy consumption data, so the local maximum points of the energy consumption data and the influencing data are searched in the analysis window, and the difference in the interval time of the energy consumption data and the influencing data is used as the lag time of the influencing data with lag.

[0070] Finally, the interval duration of the impact data with hysteresis is obtained, and the absolute value of the difference between the interval duration of the energy consumption data and the interval duration of the impact data with hysteresis is recorded as the hysteresis duration of the corresponding impact data. The values ​​of all data points corresponding to the time points in the impact data with hysteresis are added to the hysteresis duration to obtain the corrected impact data; the corrected impact data and the impact data without hysteresis are collectively referred to as new impact data;

[0071] It should be noted that both the new impact data and the impact data include air conditioning energy consumption data, lighting energy consumption data, office equipment energy consumption data, loss energy consumption data, indoor and outdoor temperature difference data, and indoor and outdoor humidity difference data. The difference between the new impact data and the impact data is that some of the data in the new impact data are revised impact data.

[0072] At this point, new impact data is obtained.

[0073] Step S003: perform independent component analysis on the energy consumption data to obtain a number of independent component components, and obtain expansion coefficients of the independent component components according to correlation coefficients between the independent component components and the new impact data.

[0074] In order to obtain the relationship between energy consumption data and new impact data, the independent component analysis algorithm is used to decompose the energy consumption data. The obtained independent component components represent the components of the energy consumption data, which can better understand the internal structure of the energy consumption data and the relationship with other variables. For example, when an independent component component in the energy consumption data may have a high correlation with the lighting energy consumption data, while another independent component component may have a high correlation with the air conditioning energy consumption data, the actual energy consumption changes of the energy consumption data can be reflected through the correlation between the independent component components of the energy consumption data and the impact data.

[0075] Step (1), presetting a component quantity parameter of an independent component analysis algorithm, using the independent component analysis algorithm to obtain a number of independent component components corresponding to the component quantity parameter corresponding to the energy consumption data, obtaining the Pearson correlation coefficient between any new influencing data and all independent component components, recording the independent component components corresponding to the maximum values ​​of several Pearson correlation coefficients of any new influencing data as the relevant independent component components of the new influencing data, and any new influencing data corresponds to one relevant independent component component;

[0076] Step (2): Due to the influence of working days and many other factors, directly using the changes in the correlation between the influencing data cannot reflect the abnormal situation of the data. Therefore, the obtained independent components are used to calculate the changes in the correlation coefficients between the independent components in the neighborhood of the target day based on the corresponding relationship between the independent components of each day, that is, the degree of deviation in the correlation, to obtain the expansion coefficient of each independent component.

[0077] The second neighborhood radius is preset to 10, and the relevant independent component components corresponding to the new impact data of any day are obtained. , and the related independent components of several energy consumption data within the second neighborhood radius ,in Indicates The Pearson correlation coefficient between the independent component components of any new impact data of the day and the independent component components of all energy consumption data within the neighborhood radius is obtained, which is recorded as , indicating the Heaven and Earth The Pearson correlation coefficient between the independent components corresponding to the new impact data of the day;

[0078] Step (3), obtain the expansion coefficient of the independent component component according to the Pearson correlation coefficient between the related independent component components, and the specific acquisition method is:

[0079] First, the expansion factor is obtained according to the Pearson correlation coefficient between the related independent components. The specific calculation method is:

[0080]

[0081] in, Indicates Heaven and Earth The expansion factor between the independent components corresponding to any new impact data of the day; Represents all relevant independent components of any new influencing data within the second neighborhood radius, corresponding to the average value of the Pearson correlation coefficient; Indicates Heaven and Earth The Pearson correlation coefficient between the independent components corresponding to the new impact data of the day;

[0082] Then, the expansion coefficient is obtained according to the expansion factor and the Pearson correlation coefficient. The specific calculation method is:

[0083]

[0084] in, Indicates The expansion coefficient of the independent component corresponding to any new impact data of the day; Indicates Heaven and Earth The expansion factor between the independent components corresponding to any new impact data of the day; Indicates Heaven and Earth The Pearson correlation coefficient between the independent components corresponding to any new impact data of the day.

[0085] In order to obtain the change of independent component components of energy consumption data over time, this embodiment obtains the correlation coefficient between independent component components within the second neighborhood radius. If there is an abnormal value of the independent component component within the second neighborhood radius, it will affect the expansion coefficient of the corresponding independent component component. Therefore, the absolute value of the difference between the Pearson correlation coefficient and the average value of the Pearson correlation coefficient, that is, the expansion factor, is used to correct the Pearson correlation coefficient, and a higher weight is given to the Pearson correlation coefficient closer to the mean, so that the influence of outliers on the clustering results is weakened in the subsequent clustering process. Since the Pearson correlation coefficient between the independent component component and itself is 1, the difference between 1 and the obtained corrected correlation coefficient mean is used as the expansion coefficient of the independent component component.

[0086] At this point, the expansion coefficients of all independent components of any energy consumption data are obtained.

[0087] Step S004, using the expansion coefficient to correct the energy consumption data, clustering the corrected energy consumption data, obtaining abnormal data according to the clustering result, and realizing energy consumption resource optimization.

[0088] Step (1) obtains the mean of the expansion coefficients of all independent components of any energy consumption data, recorded as the expansion coefficient of the energy consumption data, obtains the expansion coefficients of all energy consumption data within one year, and uses the linear normalization method to normalize the expansion coefficients of all energy consumption data, recorded as , indicating the Normalized expansion coefficient of daily energy consumption data;

[0089] Step (2), using the normalized expansion coefficient to correct the energy consumption data, to obtain the corrected energy consumption data, the specific acquisition method is:

[0090]

[0091] in, Indicates Daily revised energy consumption data; Indicates Normalized expansion coefficient of daily energy consumption data, Indicates Daily energy consumption data; Indicates The mean of all data points in the daily energy consumption data; Indicates The mean of all data points in the daily energy consumption data; Indicates The mean of all data points in the daily energy consumption data.

[0092] When energy consumption data is abnormal, the expansion coefficient is used to correct the energy consumption data to enhance the abnormality of the energy consumption data to a greater extent, so as to highlight the abnormal energy consumption data. On the contrary, if the energy consumption data is slightly abnormal, the prominence of the energy consumption data in all energy consumption data within a year will be weakened.

[0093] Step (3), first, according to the mean of all data points in the corrected energy consumption data and the number of days of the corrected energy consumption data, all the corrected energy consumption data are clustered using the K-means clustering algorithm to obtain a number of clusters; the mean of all data points in each corrected energy consumption data in any cluster is obtained, recorded as the data mean, the size of the data mean is used as the horizontal axis, and the number of the same data mean is used as the vertical axis, and a distribution histogram corresponding to the mean of all data in any cluster is constructed, recorded as the mean distribution histogram; using Criteria, obtain the corrected energy consumption data corresponding to the abnormal data mean in the mean distribution histogram corresponding to the cluster, and record it as abnormal corrected energy consumption data;

[0094] Then, all abnormal corrected energy consumption data are obtained from the energy consumption data of different buildings in different regions within a year, and the data group formed by the abnormal corrected energy consumption data and the corresponding several influencing data is recorded as the abnormal data group. Professionals analyze the data in the abnormal data group, and combine the first-level priority, the second-level priority and the third-level priority with air conditioning, lighting and office equipment to obtain several combination results, and use the energy storage equipment's energy storage, discharge and several combination results as artificial labels for the corresponding abnormal data group, then any abnormal data group with artificial labels is taken as a sample, and a large number of samples form a data set for training the RNN neural network;

[0095] Finally, the data set is used as the input of the RNN neural network, and the RNN neural network is trained with the cross entropy loss function to obtain the trained RNN neural network; and the trained RNN neural network is put into use to optimize the allocation of energy consumption resources in the building.

[0096] It should be noted that energy consumption in a year can be roughly divided into three periods: transition season, heating season, and cooling season. At the same time, there will be a large difference in electricity consumption between holidays and weekdays. Therefore, in this embodiment, the K value of the K-means clustering algorithm is preset to 6. The preset K value can be adjusted according to actual conditions, and this embodiment does not make any specific limitations.

[0097] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A building energy consumption data collection and analysis method based on machine learning, characterized in that: The method comprises the following steps: Obtain energy consumption data and several impact data; Construct an analysis window, and obtain several local maximum points and corresponding maximum time points when the analysis window traverses the energy consumption data and several impact data; obtain several time intervals of any impact data according to the maximum time point in the impact data and the analysis window, and judge whether the impact data has hysteresis according to the difference between the number of time intervals of the impact data and the number of local maximum points of the energy consumption data; obtain the lag time according to the difference between the length of the impact data with lag and the mean of all time intervals in the energy consumption data, and use the lag time to correct the impact data with lag to obtain new impact data; Obtain several independent component components of energy consumption data; obtain relevant independent component components of new impact data according to the Pearson correlation coefficient between any new impact data and the independent component components; obtain expansion coefficients of independent component components according to the Pearson correlation coefficients between relevant independent component components; The energy consumption data is corrected by using the expansion coefficients of all independent components of the energy consumption data to obtain corrected energy consumption data, the corrected energy consumption data is clustered, and abnormal corrected energy consumption data is obtained according to the clustering results; the allocation of energy consumption resources is optimized according to the abnormal corrected energy consumption data; The specific steps of obtaining the expansion coefficient of the independent component component according to the Pearson correlation coefficient between the related independent component components are as follows: First, preset the second neighborhood radius to obtain the relevant independent component components corresponding to the new impact data of any day , and the related independent components of several energy consumption data within the second neighborhood radius ,in Indicates The Pearson correlation coefficient between the independent component components of any new impact data of the day and the independent component components of all energy consumption data within the neighborhood radius is obtained, which is recorded as , indicating the Heaven and Earth The Pearson correlation coefficient between the independent components corresponding to the new impact data of the day; Then, the expansion factor is obtained according to the Pearson correlation coefficient between the related independent components. The specific calculation method is: ; in, Indicates Heaven and Earth The expansion factor between the independent components corresponding to any new impact data of the day; Represents all relevant independent components of any new influencing data within the second neighborhood radius, corresponding to the average value of the Pearson correlation coefficient; Indicates Heaven and Earth The Pearson correlation coefficient between the independent components corresponding to the new impact data of the day; Finally, the expansion coefficient was obtained based on the expansion factor and Pearson's correlation coefficient; The method for obtaining the expansion coefficient is as follows: The expansion coefficient is obtained according to the expansion factor and the Pearson correlation coefficient. The specific calculation method is: ; in, Indicates The expansion coefficient of the independent component corresponding to any new impact data of the day; Indicates Heaven and Earth The expansion factor between the independent components corresponding to any new impact data of the day; Indicates Heaven and Earth The Pearson correlation coefficient between the independent components corresponding to the new impact data of the day; The method uses the expansion coefficients of all independent components of the energy consumption data to correct the energy consumption data to obtain corrected energy consumption data, clusters the corrected energy consumption data, and obtains abnormal corrected energy consumption data according to the clustering results. The specific steps include the following: First, the mean of the expansion coefficients of all independent components of any energy consumption data is obtained, recorded as the expansion coefficient of the energy consumption data, and the expansion coefficients of all energy consumption data within a year are obtained. The expansion coefficients of all energy consumption data are normalized using the linear normalization method, recorded as , indicating the Normalized expansion coefficient of daily energy consumption data; Then, the energy consumption data is corrected using the normalized expansion coefficient to obtain the corrected energy consumption data. The specific acquisition method is: ; in, Indicates Daily revised energy consumption data; Indicates Normalized expansion coefficient of daily energy consumption data, Indicates Daily energy consumption data; Indicates The mean of all data points in the daily energy consumption data; Indicates The mean of all data points in the daily energy consumption data; Indicates The mean of all data points in the daily energy consumption data.

2. The building energy consumption data collection and analysis method based on machine learning according to claim 1 is characterized in that: When the analysis window traverses the energy consumption data and several impact data, several local maximum points and corresponding maximum time points, the specific steps include the following: A first neighborhood radius is preset. When the value of the corresponding data point at any time in the energy consumption data is greater than the values ​​of all data points within the first neighborhood radius, and the range of the data points within the neighborhood radius where the data point is located is greater than the preset range threshold, the data point at the corresponding time is recorded as a local maximum point, and the corresponding time point of the local maximum point is recorded as the maximum time point.

3. The building energy consumption data collection and analysis method based on machine learning according to claim 1 is characterized in that: The method of obtaining a plurality of time intervals of any influencing data according to the maximum time point in the influencing data and the analysis window, and judging whether the influencing data has hysteresis according to the difference between the number of time intervals of the influencing data and the number of local maximum points of the energy consumption data, includes the following specific steps: The energy consumption data and any impact data are traversed and analyzed using the analysis window. If there is a local maximum point in the analysis window, the corresponding time point of the local maximum point is obtained, and the interval formed by the time point corresponding to the left endpoint of the analysis window and the time point corresponding to the maximum time point is recorded as the time interval; several time intervals in any impact data are obtained, and the average length of all time intervals in the energy consumption data or any impact data is recorded as the interval length; When the number of time intervals in the impact data and the number of local maximum points in the energy consumption data are greater than or equal to the preset number threshold, there is no hysteresis in the corresponding impact data. Otherwise, when they are less than the preset number threshold, there is hysteresis in the corresponding impact data.

4. The building energy consumption data collection and analysis method based on machine learning according to claim 1 is characterized in that: The lag time is obtained according to the difference between the impact data with lag and the mean length of all time intervals in the energy consumption data, and the impact data with lag is corrected by using the lag time to obtain new impact data, including the following specific steps: Obtain the interval duration of the impact data with hysteresis, record the absolute value of the difference between the interval duration of the energy consumption data and the interval duration of the impact data with hysteresis as the hysteresis duration of the corresponding impact data, add the hysteresis duration to the values ​​of the corresponding time points of all data points in the impact data with hysteresis, and obtain the corrected impact data; The revised impact data and the impact data without lag are collectively referred to as new impact data.

5. The building energy consumption data collection and analysis method based on machine learning according to claim 1 is characterized in that: The step of obtaining a plurality of independent components of the energy consumption data and obtaining the relevant independent components of the new impact data according to the Pearson correlation coefficient between any new impact data and the independent components includes the following specific steps: Preset the component quantity parameter of the independent component analysis algorithm, use the independent component analysis algorithm to obtain the number of independent component components corresponding to the component quantity parameter corresponding to the energy consumption data, obtain the Pearson correlation coefficient between any new influencing data and all independent component components, and record the independent component components corresponding to the maximum values ​​of several Pearson correlation coefficients of any new influencing data as the relevant independent component components of the new influencing data.

6. A building energy consumption data collection and analysis system based on machine learning, using a building energy consumption data collection and analysis method based on machine learning as described in any one of claims 1 to 5, characterized in that: The system includes the following modules: Data collection module: obtain energy consumption data and several impact data; Data analysis module: construct an analysis window, obtain several local maximum points and corresponding maximum time points when the analysis window traverses the energy consumption data and several impact data; obtain several time intervals of any impact data according to the maximum time point in the impact data and the analysis window, and judge whether the impact data has hysteresis according to the difference between the number of time intervals of the impact data and the number of local maximum points of the energy consumption data; obtain the lag time according to the difference between the length of the impact data with lag and the mean of all time intervals in the energy consumption data, and use the lag time to correct the impact data with lag to obtain new impact data; Expansion coefficient module: obtain several independent components of energy consumption data; obtain the relevant independent component components of new impact data according to the Pearson correlation coefficient between any new impact data and the independent component components, and obtain the expansion coefficient of the independent component components according to the Pearson correlation coefficient between the relevant independent component components; Energy consumption optimization module: Utilize the expansion coefficients of all independent components of the energy consumption data to correct the energy consumption data, obtain corrected energy consumption data, cluster the corrected energy consumption data, obtain abnormal corrected energy consumption data based on the clustering results, and optimize the allocation of energy consumption resources based on the abnormal corrected energy consumption data.

Citation Information

Patent Citations

  • Building energy consumption prediction method based on sub-metering time sequence, system and building

    CN106991504A

  • Building operation energy consumption prediction method

    CN111340305A