Building energy consumption prediction method based on artificial intelligence

By constructing the characteristic distance formula and using polynomial curves to obtain the optimal hyperparameters of the algorithm, we solve the problems of inaccurate building energy consumption prediction data processing and unstable clustering results in the existing technology, and achieve more efficient and accurate data analysis and clustering. class result.

CN118569680AInactive Publication Date: 2024-08-30NANCHANG UNIV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410832416.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing building energy consumption prediction methods have problems such as poor accuracy, low efficiency, and strong subjectivity in data processing and analysis. Improper settings of built-in parameters in clustering methods lead to unstable clustering results and affect clustering quality.

Method used

Adopt methods based on artificial intelligence to measure and analyze data by constructing feature distance formulas, and use polynomial curves and mathematical expectation methods to obtain the optimal hyperparameters of the algorithm, realize automation of the clustering process and data preprocessing, and improve the efficiency and accuracy of data processing. sex.

Benefits of technology

It improves the accuracy and efficiency of data processing, enables better data mining, classification, clustering and identification applications, and ensures the stability and quality of clustering results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569680A
    Figure CN118569680A
Patent Text Reader

Abstract

The invention discloses an artificial intelligence building energy consumption prediction method. The method comprises the steps of data acquisition, data preprocessing and conversion, data abnormal value removal, feature distance formula construction, algorithm optimal hyper-parameter obtaining, clustering and building energy consumption prediction result obtaining. The invention relates to the technical field of building energy consumption data processing, in particular to a building energy consumption prediction method based on artificial intelligence, which can bring more accurate data measurement and analysis results by constructing a feature distance formula, improve the efficiency and accuracy of data processing, and improve the prediction accuracy of building energy consumption. Better applications such as data mining, classification, clustering and identification can be realized, and the clustering quality is improved; parameters are obtained by adopting a polynomial curve and a mathematical expectation method, a stable cluster change range can be found, and automation of the clustering process is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of building energy consumption data processing, and in particular to a building energy consumption prediction method based on artificial intelligence. Background Art

[0002] With the development of economy and urbanization, people's living standards are improving day by day. The utilization rate of urban public buildings is increasing, the scale of energy consumption is expanding, and the trend of building energy consumption has received more and more attention. City managers need to know the building energy consumption data for a period of time in the future so that they can take corresponding measures to improve building energy efficiency and achieve the goal of energy conservation and emission reduction. However, the general building energy consumption prediction method has the problems of poor accuracy, low efficiency and strong subjectivity in data processing and analysis; the general building energy consumption prediction method has the problem of improper built-in parameter settings. Summary of the invention

[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides a building energy consumption prediction method based on artificial intelligence. In view of the problems of poor accuracy, low efficiency and strong subjectivity in data processing and analysis in general information organization methods, this scheme brings more accurate data measurement and analysis results by constructing a characteristic distance formula, improves the efficiency and accuracy of data processing, and helps to achieve better data mining, classification, clustering and recognition applications, and improves the clustering quality; in view of the problem that improper built-in parameter settings in the clustering method lead to unstable clustering results, thereby affecting the quality of the clustering results, this scheme adopts polynomial curves and mathematical expectation method to obtain parameters, find a stable cluster change range, and realize the automation of the clustering process.

[0004] The technical solution adopted by the present invention is as follows: The method for predicting building energy consumption based on artificial intelligence provided by the present invention comprises the following steps:

[0005] Step S1: data collection;

[0006] Step S2: data preprocessing and conversion;

[0007] Step S3: remove data outliers;

[0008] Step S4: constructing a feature distance formula;

[0009] Step S5: Obtaining optimal hyperparameters of the algorithm;

[0010] Step S6: clustering;

[0011] Step S7: Building energy consumption prediction results.

[0012] Furthermore, in step S1, the data collection is to collect historical building energy consumption data and real-time building energy consumption data; the historical building energy consumption data and real-time building energy consumption data both include building information data, building equipment data and weather data; the building information data includes the building's geographical location, building area, building purpose, building structure and building age; the building equipment data includes equipment type, equipment quantity and equipment operating time; the historical building energy consumption data also includes building energy consumption level; the building energy consumption level is used as a data label.

[0013] Furthermore, in step S2, the data preprocessing and conversion is used to preprocess and convert the collected historical building energy consumption data and real-time building energy consumption data files, specifically including the following steps:

[0014] Step S21: cleaning, deduplication and unification of the collected data;

[0015] Step S22: each piece of data is taken as a separate document, each feature dimension is taken as a feature word, and the building use is taken as a category;

[0016] Step S23: Perform feature selection method, the formula is as follows:

[0017] ;

[0018] In the formula, w(·) represents the weight result of the feature word; t i represents the i-th feature word; c j represents the jth category; tf represents the frequency of the feature word appearing in the document; df represents the frequency of the document containing the feature word; N represents the total number of documents in the text dataset; A represents the number of documents containing the feature word t i And the category is c j The number of documents containing the feature word And the category is not The number of documents that do not contain the feature word t i And the category is c j The number of documents that do not contain the feature word t i And the category is not c j The number of documents;

[0019] Step S24: a feature weight threshold is set in advance, features with feature weights higher than the feature weight threshold are selected as the final feature selection results, and the data set is converted into a vector form.

[0020] Furthermore, in step S3, removing outliers specifically includes the following steps:

[0021] Step S31: Calculate the interquartile range, the formula is as follows:

[0022] ;

[0023] In the formula, IQR represents the interquartile range, Q3 represents the third quartile, and Q1 represents the first quartile;

[0024] Step S32: Table determines the threshold of abnormal values, the formula is as follows:

[0025] ;

[0026] ;

[0027] Where, L U Indicates the upper data threshold, L L Indicates the lower limit threshold of the data;

[0028] Step S33: Identify and remove outliers, traverse the data set, identify all data points that are less than the lower limit or greater than the upper limit threshold, and treat them as outliers; choose to exclude outliers from the clustering algorithm.

[0029] Furthermore, in step S4, constructing the characteristic distance formula includes the following steps:

[0030] Step S41: Calculate the characteristic value, the formula is as follows:

[0031] ;

[0032] In the formula, represents the complex frequency eigenvalue; f i represents the characteristic frequency; represents the damping ratio; i represents the i-th mode point;

[0033] Step S42: Obtain the MAC value, the formula is as follows:

[0034] ;

[0035] In the formula, Representation vector The conjugate transpose of ; MAC value indicates the similarity between modal vectors used to compare, represents the vibration mode shape of the ith mode point, represents the vibration mode shape of the jth mode point;

[0036] Step S43 obtains the distance between the eigenvalues, and the formula is as follows:

[0037] ;

[0038] In the formula, Represents the distance between two eigenvectors; represents the corresponding eigenvector;

[0039] Step S44: derive a characteristic distance formula, which is expressed as follows:

[0040] ;

[0041] In the formula, distance(·) is the distance of the calculated data sample point, x i and x j Represents two different sample points in the data set.

[0042] Further, in step S5, obtaining the optimal hyperparameters of the algorithm includes the following steps:

[0043] Step S51: Obtaining a distance matrix based on the characteristic distance formula ; Where m is the number of rows and columns of the matrix;

[0044] Step S52: Calculating the K value, including the following steps:

[0045] Step S521: Matrix Each row of elements in is arranged in ascending order; after sorting, the first column of the matrix is ​​zero, indicating that the distance from each object to itself is zero;

[0046] Step S522: sort the elements in the Kth column of the sorting matrix in ascending order as the ordinate of each point on the K-Dist curve; the data X is used as the abscissa of each point on the K-Dist curve; the meaning of each point on the K-Dist curve is that the abscissa is the number of the point in the data set, and the ordinate is the distance between the point and the nearest Kth point; accordingly, generate a K-Dist curve; when the parameter K takes different values, different K-Dist curves are generated, and all K-Dist curves form a K-Dist graph;

[0047] Step S523: Use least squares polynomial curve fitting, the formula is as follows:

[0048] ;

[0049] In the formula, is the fitting function that describes the given data set, a0, a1, a2 and a 15 represents the coefficient of the polynomial, and x represents the independent variable in the function;

[0050] Step S524: Calculate the point where the curvature of the sudden change area after the fitted K-Dist smooth curve rises steadily, that is, the inflection point where the smooth curve rises sharply; the formula is as follows:

[0051] ;

[0052] Where K is the curvature of the fitting curve, is the second derivative of the fitted curve, is the first derivative of the fitted curve;

[0053] Step S53: Calculate D eps The value of is expressed as follows:

[0054] ;

[0055] Where D eps Represents all the data values ​​in the eps list, Indicates the distance value corresponding to the inflection point;

[0056] Step S54: Calculate the MinPts list, given the eps value, and convert D eps Calculate the number of points in the corresponding neighborhood in turn; the formula is as follows:

[0057] ;

[0058] In the formula, MinPts represents the minimum number of points contained in the neighborhood, eps represents the radius parameter value in the neighborhood, and n represents the total number of sample points in the data set. Represents the local density estimate of the i-th sample point.

[0059] Further, in step S6, the clustering is used to cluster the historical building energy consumption data and real-time building energy consumption data excluding the energy consumption level, and the energy consumption level as a data label does not participate in the clustering and is only used for cluster label selection, specifically including the following steps:

[0060] Step S61: operate the DBSCAN algorithm in sequence based on the values ​​in the eps and MinPts lists;

[0061] Step S62: taking the eps and MinPts values ​​corresponding to the clustering results entering the convergence stage as the optimal values; performing DBSCAN clustering operations on the historical building energy consumption data and the real-time building energy consumption data based on the optimal values.

[0062] Further, in step S7, the specific content of the building energy consumption prediction result is that after clustering, the cluster containing the largest number of historical building energy consumption data labels is used as the cluster label, and the cluster label to which the real-time building energy consumption data belongs is used as the energy consumption prediction result of the real-time building energy consumption data.

[0063] The beneficial effects achieved by the present invention using the above scheme are as follows:

[0064] (1) General information organization methods have problems such as poor accuracy, low efficiency and strong subjectivity in data processing and analysis. This solution brings more accurate data measurement and analysis results by constructing a feature distance formula, improves the efficiency and accuracy of data processing, and helps to achieve better data mining, classification, clustering and recognition applications, and improves clustering quality.

[0065] (2) In order to solve the problem that improper built-in parameter settings in clustering methods lead to unstable clustering results, thus affecting the quality of clustering results, this scheme uses polynomial curves and mathematical expectation method to obtain parameters, find a stable cluster variation range, and realize the automation of the clustering process. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 A schematic diagram of the process of the building energy consumption prediction method based on artificial intelligence provided by the present invention;

[0067] Figure 2 is a schematic flow chart of step S3;

[0068] Figure 3 is a schematic flow chart of step S4;

[0069] Figure 4 It is a flowchart diagram of step S5.

[0070] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION

[0071] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0072] In the description of the present invention, it is necessary to understand that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred system or element must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as a limitation on the present invention.

[0073] Example 1, see Figure 1 The invention provides a method for predicting building energy consumption based on artificial intelligence, which comprises the following steps:

[0074] Step S1: Data collection, collecting historical building energy consumption data and real-time building energy consumption data;

[0075] Step S2: Data preprocessing and conversion, data cleaning, data standardization and data conversion of the collected data;

[0076] Step S3: Remove data outliers, use the quartile method to determine the outlier threshold, and remove data that is not within the threshold;

[0077] Step S4: construct a characteristic distance formula, and determine the characteristic distance formula by calculating the characteristic value and the MAC value;

[0078] Step S5: Obtain the optimal hyperparameters of the algorithm, and obtain the MinPts and eps parameters by using the polynomial curve and mathematical expectation method;

[0079] Step S6: clustering;

[0080] Step S7: Building energy consumption prediction results.

[0081] Example 2, see Figure 1 This embodiment is based on the above embodiment. In step S1, the data collection is to collect historical building energy consumption data and real-time building energy consumption data; the historical building energy consumption data and real-time building energy consumption data both include building information data, building equipment data and weather data; the building information data includes the geographical location, building area, building purpose, building structure and building age of the building; the building equipment data includes equipment type, equipment quantity and equipment operating time; the historical building energy consumption data also includes building energy consumption level; the building energy consumption level is used as a data label.

[0082] Example 3, see Figure 1 This embodiment is based on the above embodiment. In step S2, the data is preprocessed and converted to perform data preprocessing and conversion on the collected historical building energy consumption data and real-time building energy consumption data files, specifically including the following steps:

[0083] Step S21: cleaning, deduplication and unification of the collected data;

[0084] Step S22: each piece of data is taken as a separate document, each feature dimension is taken as a feature word, and the building use is taken as a category;

[0085] Step S23: Perform feature selection method, the formula is as follows:

[0086] ;

[0087] In the formula, w(·) represents the weight result of the feature word; ti represents the i-th feature word; c j represents the jth category; tf represents the frequency of the feature word appearing in the document; df represents the frequency of the document containing the feature word; N represents the total number of documents in the text dataset; A represents the number of documents containing the feature word t i And the category is c j The number of documents containing the feature word And the category is not The number of documents that do not contain the feature word t i And the category is c j The number of documents that do not contain the feature word t i And the category is not c j The number of documents;

[0088] Step S24: a feature weight threshold is set in advance, features with feature weights higher than the feature weight threshold are selected as the final feature selection results, and the data set is converted into a vector form.

[0089] Example 4, see Figure 1 and Figure 2 This embodiment is based on the above embodiment. In step S3, removing outliers specifically includes the following steps:

[0090] Step S31: Calculate the interquartile range, the formula is as follows:

[0091] ;

[0092] In the formula, IQR represents the interquartile range, Q3 represents the third quartile, and Q1 represents the first quartile;

[0093] Step S32: Table determines the threshold of abnormal values, the formula is as follows:

[0094] ;

[0095] ;

[0096] Where, L U Indicates the upper data threshold, L L Indicates the lower limit threshold of the data;

[0097] Step S33: Identify and remove outliers, traverse the data set, identify all data points that are less than the lower limit or greater than the upper limit threshold, and treat them as outliers; choose to exclude outliers from the clustering algorithm.

[0098] Example 5, see Figure 1 and Figure 3This embodiment is based on the above embodiment. In step S4, constructing the characteristic distance formula specifically includes the following steps:

[0099] Step S41: Calculate the characteristic value, the formula is as follows:

[0100] ;

[0101] In the formula, represents the complex frequency eigenvalue; f i represents the characteristic frequency; represents the damping ratio; i represents the i-th mode point;

[0102] Step S42: Obtain the MAC value, the formula is as follows:

[0103] ;

[0104] In the formula, Representation vector The conjugate transpose of ; MAC value indicates the similarity between modal vectors used to compare, represents the vibration mode shape of the ith mode point, represents the vibration mode shape of the jth mode point;

[0105] Step S43 obtains the distance between the eigenvalues, and the formula is as follows:

[0106] ;

[0107] In the formula, Represents the distance between two eigenvectors; represents the corresponding eigenvector;

[0108] Step S44: derive a characteristic distance formula, which is expressed as follows:

[0109] ;

[0110] In the formula, distance(·) is the distance of the calculated data sample point, x i and x j Represents two different sample points in the data set.

[0111] By performing the above operations, in view of the problems of poor accuracy, low efficiency, and strong subjectivity in data processing and analysis in general information organization methods, this solution can bring more accurate data measurement and analysis results by constructing a feature distance formula, improve the efficiency and accuracy of data processing, and help to achieve better data mining, classification, clustering and identification applications, and improve clustering quality.

[0112] Example 6, see Figure 1 and Figure 4 This embodiment is based on the above embodiment. In step S5, obtaining the optimal hyperparameters of the algorithm specifically includes the following steps:

[0113] Step S51: Obtaining a distance matrix based on the characteristic distance formula ; Where m is the number of rows and columns of the matrix;

[0114] Step S52: Calculating the K value, including the following steps:

[0115] Step S521: Matrix Each row of elements in is arranged in ascending order; after sorting, the first column of the matrix is ​​zero, indicating that the distance from each object to itself is zero;

[0116] Step S522: sort the elements in the Kth column of the sorting matrix in ascending order as the ordinate of each point on the K-Dist curve; the data X is used as the abscissa of each point on the K-Dist curve; the meaning of each point on the K-Dist curve is that the abscissa is the number of the point in the data set, and the ordinate is the distance between the point and the nearest Kth point; accordingly, generate a K-Dist curve; when the parameter K takes different values, different K-Dist curves are generated, and all K-Dist curves form a K-Dist graph;

[0117] Step S523: Use least squares polynomial curve fitting, the formula is as follows:

[0118] ;

[0119] In the formula, is the fitting function that describes the given data set, a0, a1, a2 and a 15 represents the coefficient of the polynomial, and x represents the independent variable in the function;

[0120] Step S524: Calculate the point where the curvature of the sudden change area after the fitted K-Dist smooth curve rises steadily, that is, the inflection point where the smooth curve rises sharply; the formula is as follows:

[0121] ;

[0122] Where K is the curvature of the fitting curve, is the second derivative of the fitted curve, is the first derivative of the fitted curve;

[0123] Step S53: Calculate D eps The value of is expressed as follows:

[0124] ;

[0125] Where D eps Represents all the data values ​​in the eps list, Indicates the distance value corresponding to the inflection point;

[0126] Step S54: Calculate the MinPts list, given the eps value, and convert D eps Calculate the number of points in the corresponding neighborhood in turn; the formula is as follows:

[0127] ;

[0128] In the formula, MinPts represents the minimum number of points contained in the neighborhood, eps represents the radius parameter value in the neighborhood, and n represents the total number of sample points in the data set. Represents the local density estimate of the i-th sample point.

[0129] By performing the above operations, in order to solve the problem that improper built-in parameter settings in the clustering method lead to unstable clustering results, thus affecting the quality of the clustering results, this solution uses polynomial curves and mathematical expectation method to obtain parameters, find a stable cluster variation range, and realize the automation of the clustering process.

[0130] Embodiment 7, see Figure 1 This embodiment is based on the above embodiment. In step S6, the clustering is used to cluster the historical building energy consumption data and real-time building energy consumption data that do not include energy consumption levels. The energy consumption level is used as a data label and does not participate in clustering but is only used for cluster label selection. Specifically, the following steps are included:

[0131] Step S61: operate the DBSCAN algorithm in sequence based on the values ​​in the eps and MinPts lists;

[0132] Step S62: taking the eps and MinPts values ​​corresponding to the clustering results entering the convergence stage as the optimal values; performing DBSCAN clustering operations on the historical building energy consumption data and the real-time building energy consumption data based on the optimal values.

[0133] Embodiment 8, see Figure 1 This embodiment is based on the above embodiment. In step S7, the specific content of the building energy consumption prediction result is that after clustering, the cluster containing the largest number of historical building energy consumption data labels is used as the cluster label, and the cluster label to which the real-time building energy consumption data belongs is used as the energy consumption prediction result of the real-time building energy consumption data.

[0134] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0135] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.

[0136] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims

1. A building energy consumption prediction method based on artificial intelligence, characterized by: The method comprises the following steps: Step S1: data collection; Step S2: Data preprocessing and conversion, data cleaning, data standardization and data conversion of the collected data; Step S3: Remove data outliers, use the quartile method to determine the outlier threshold, and remove data that is not within the threshold; Step S4: construct a characteristic distance formula, and determine the characteristic distance formula by calculating the characteristic value and the MAC value; Step S5: Obtain the optimal hyperparameters of the algorithm, and obtain the MinPts and eps parameters by using the polynomial curve and mathematical expectation method; Step S6: clustering; Step S7: Building energy consumption prediction results.

2. The method for predicting building energy consumption based on artificial intelligence according to claim 1 is characterized in that: In step S4, a characteristic distance formula is constructed; the following steps are included: Step S41: Calculate the characteristic value, the formula is as follows: ; In the formula, represents the complex frequency eigenvalue; f i represents the characteristic frequency; represents the damping ratio; i represents the i-th mode point; Step S42: Obtain the MAC value, the formula is as follows: ; In the formula, Representation vector The conjugate transpose of ; MAC value indicates the similarity between modal vectors used to compare, represents the vibration mode shape of the ith mode point, represents the vibration mode shape of the jth mode point; Step S43 obtains the distance between the eigenvalues, and the formula is as follows: ; In the formula, Represents the distance between two eigenvectors; represents the corresponding eigenvector; Step S44: derive a characteristic distance formula, which is expressed as follows: ; In the formula, distance(·) is the distance of the calculated data sample point, x i and x j Represents two different sample points in the data set.

3. The method for predicting building energy consumption based on artificial intelligence according to claim 1 is characterized in that: In step S5, the optimal hyperparameters of the algorithm are obtained; the following steps are included: Step S51: Obtaining a distance matrix based on the characteristic distance formula ; Where m is the number of rows and columns of the matrix; Step S52: Calculating the K value, including the following steps: Step S521: Matrix Each row of elements in is arranged in ascending order; after sorting, the first column of the matrix is ​​zero, indicating that the distance from each object to itself is zero; Step S522: sort the elements in the Kth column of the sorting matrix in ascending order as the ordinate of each point on the K-Dist curve; the data X is used as the abscissa of each point on the K-Dist curve; the meaning of each point on the K-Dist curve is that the abscissa is the number of the point in the data set, and the ordinate is the distance between the point and the nearest Kth point; accordingly, generate a K-Dist curve; when the parameter K takes different values, different K-Dist curves are generated, and all K-Dist curves form a K-Dist graph; Step S523: Use least squares polynomial curve fitting, the formula is as follows: ; In the formula, is the fitting function that describes the given data set, a0, a1, a2 and a 15 represents the coefficient of the polynomial, and x represents the independent variable in the function; Step S524: Calculate the point where the curvature of the sudden change area after the fitted K-Dist smooth curve rises steadily, that is, the inflection point where the smooth curve rises sharply; the formula is as follows: ; Where K is the curvature of the fitting curve, is the second derivative of the fitted curve, is the first derivative of the fitted curve; Step S53: Calculate D eps The value of is expressed as follows: ; Where D eps Represents all the data values ​​in the eps list, Indicates the distance value corresponding to the inflection point; Step S54: Calculate the MinPts list, given the eps value, and convert D eps Calculate the number of points in the corresponding neighborhood in turn; the formula is as follows: ; In the formula, MinPts represents the minimum number of points contained in the neighborhood, eps represents the radius parameter value in the neighborhood, and n represents the total number of sample points in the data set. Represents the local density estimate of the i-th sample point.

4. The method for predicting building energy consumption based on artificial intelligence according to claim 1 is characterized in that: In step S3, the removal of outliers specifically includes the following steps: Step S31: Calculate the interquartile range, the formula is as follows: ; In the formula, IQR represents the interquartile range, Q3 represents the third quartile, and Q1 represents the first quartile; Step S32: Table determines the threshold of abnormal values, the formula is as follows: ; ; Where, L U Indicates the upper data threshold, L L Indicates the lower limit threshold of the data; Step S33: Identify and remove outliers, traverse the data set, identify all data points that are less than the lower limit or greater than the upper limit threshold, and treat them as outliers; choose to exclude outliers from the clustering algorithm.

5. The method for predicting building energy consumption based on artificial intelligence according to claim 1 is characterized in that: In step S2, the data preprocessing and conversion is used to preprocess and convert the collected historical building energy consumption data and real-time building energy consumption data files, specifically including the following steps: Step S21: cleaning, deduplication and unification of the collected data; Step S22: each piece of data is taken as a separate document, each feature dimension is taken as a feature word, and the building use is taken as a category; Step S23: Perform feature selection method, the formula is as follows: ; In the formula, w(·) represents the weight result of the feature word; t i represents the i-th feature word; c j represents the jth category; tf represents the frequency of the feature word appearing in the document; df represents the frequency of the document containing the feature word; N represents the total number of documents in the text dataset; A represents the number of documents containing the feature word t i And the category is c j The number of documents containing the feature word And the category is not The number of documents that do not contain the feature word t i And the category is c j The number of documents that do not contain the feature word t i And the category is not c j The number of documents; Step S24: a feature weight threshold is set in advance, features with feature weights higher than the feature weight threshold are selected as the final feature selection results, and the data set is converted into a vector form.

6. The method for predicting building energy consumption based on artificial intelligence according to claim 1 is characterized in that: In step S6, the clustering is used to cluster the historical building energy consumption data and real-time building energy consumption data that do not include energy consumption levels. The energy consumption level is used as a data label and does not participate in clustering but is only used for cluster label selection. Specifically, the following steps are included: Step S61: operate the DBSCAN algorithm in sequence based on the values ​​in the eps and MinPts lists; Step S62: taking the eps and MinPts values ​​corresponding to the clustering results entering the convergence stage as the optimal values; performing DBSCAN clustering operations on the historical building energy consumption data and the real-time building energy consumption data based on the optimal values.

7. The method for predicting building energy consumption based on artificial intelligence according to claim 1 is characterized in that: In step S7, the specific content of the building energy consumption prediction result is that after clustering, the historical building energy consumption data label containing the largest number in the cluster is used as the cluster label, and the cluster label to which the real-time building energy consumption data belongs is used as the energy consumption prediction result of the real-time building energy consumption data.

8. The method for predicting building energy consumption based on artificial intelligence according to claim 1 is characterized in that: In step S1, the data collection is to collect historical building energy consumption data and real-time building energy consumption data; The historical building energy consumption data and the real-time building energy consumption data both include building information data, building equipment data and weather data; the building information data includes the geographical location, building area, building purpose, building structure and building age of the building; The building equipment data includes equipment type, equipment quantity and equipment operation time; the historical building energy consumption data also includes building energy consumption level; Use building energy consumption class as data label.

Citation Information

Cited By

  • Energy consumption prediction and management method based on large model agent

    CN119272938A

  • Tunnel construction energy consumption data intelligent management method and system

    CN119919245A

  • A Smart Management Method and System for Energy Consumption Data in Tunnel Construction

    CN119919245B