Short-term electricity consumption prediction method and system for living building scene

By obtaining the similarity matching between user characteristics and model characteristics, combined with the CNN-GRU model, the problem of poor prediction results caused by differences in power consumption patterns in different places is solved, and short-term power consumption prediction suitable for multiple places is realized, improving the prediction efficiency. Accuracy and adaptability.

CN118799115APending Publication Date: 2024-10-18HANGZHOU HUWEI INTEGRATED ENERGY SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410777009.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing electricity consumption prediction methods are not effective in short-term prediction, especially the model training effect is poor due to differences in electricity consumption patterns in different places. They also require complete historical electricity consumption data for prediction and cannot be applied to every place. Train the models separately.

Method used

By obtaining the user ID, determine whether a prediction model exists. If it exists, use the model. Otherwise, extract the prediction model with the highest similarity between user characteristics and model characteristics, and use this model to predict electricity consumption, taking into account user type, scale, region and other characteristics. , build multiple prediction models to adapt to the influencing factors in different places, and use the CNN-GRU model for temperature prediction to ensure the applicability of the model in different places.

Benefits of technology

It ensures the accuracy and robustness of electricity consumption prediction without the need to train models separately for each place. It takes into account factors unique to different places, such as hotel occupancy rates and shopping mall holiday activities, and improves prediction accuracy. and adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799115A_ABST
    Figure CN118799115A_ABST
Patent Text Reader

Abstract

The invention discloses a short-term electricity consumption prediction method and system for a living building scene. The method comprises the steps of S1, judging whether a prediction model corresponding to a current user ID exists or not; if yes, extracting a prediction model, and executing S3, otherwise, executing S2; s2, user features of a current user are extracted, each prediction model has a corresponding model feature, the similarity between the current user features and the model features is calculated, the prediction model with the highest similarity is extracted, and the current user ID corresponds to the prediction model; s3, acquiring input data required by the prediction model and inputting the input data into the prediction model; and S4, the prediction model outputs a prediction result according to the input data. According to the scheme, firstly, the training data are classified, the models are trained by using the classification data to obtain the prediction models based on different classification data, and the corresponding prediction models can be used for performing power consumption prediction on the corresponding places, so that the influence of significant differences of different places on the training effect of the prediction models can be avoided; and the prediction capability of the prediction model in a corresponding place is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of short-term electricity consumption prediction, and in particular, relates to a short-term electricity consumption prediction method and system for living building scenes. Background Art

[0002] Effective electricity consumption forecasting has many meanings, which go beyond simple cost savings and involve multiple aspects such as energy efficiency management, environmental sustainability, operational stability, and policy compliance. Therefore, effective and accurate electricity consumption forecasting not only helps to improve economic benefits, but also promotes sustainable development of society and the environment.

[0003] Existing methods for electricity consumption forecasting include statistical methods, machine learning methods, fuzzy logic methods, etc. Statistical methods mainly include time series methods, regression analysis, etc. These methods predict future load changes based on the statistical characteristics of historical electricity consumption data, and do not fully consider external factors that affect load changes, such as weather and holidays. They are more suitable for medium- and long-term load forecasts, but not for short-term forecasts. Fuzzy logic methods have limited accuracy and are difficult to apply in practice, so they are usually only used as a reference. Machine learning methods include support vector machines (SVM), random forests, neural networks, etc. These methods make predictions by learning the patterns of historical electricity consumption data. Among them, neural networks, especially deep learning models (such as LSTM), are widely used in load forecasting due to their powerful nonlinear fitting capabilities.

[0004] Although the machine learning method can take into account external factors such as weather that affect load changes, the current machine learning method usually uses the historical electricity consumption data of any user that has been screened to train the model after proposing a method. Then, when a certain scene requires electricity consumption prediction, the trained model is used for the scene. When predicting, the data of the scene is used as the model input, and the model outputs the prediction result based on the input. In this way, on the one hand, when the prediction model makes a prediction, it needs to use the data features of the user's historical electricity consumption data as input to output the prediction result, which requires the user to provide the complete historical electricity consumption data required for the prediction, otherwise it cannot be predicted; on the other hand, all users are trained using the same training data to obtain the prediction model, and different users, such as hotel users, hospital users, school users, shopping mall users, etc., have their own characteristics. Even for the same type of users, there will be different differences in electricity consumption patterns due to reasons such as scale and region. The prediction model obtained by uniformly using the same training data is not targeted enough. Even if the training data integrates the historical electricity consumption data of various places, the significant differences in different places will lead to poor learning effect of the model. Therefore, using the uniformly trained prediction model for these places will not achieve a good prediction effect. It is obviously impractical to train a model for each location, and there is no such condition. Summary of the invention

[0005] The purpose of the present invention is to solve the above problems and propose a short-term electricity consumption prediction method for living building scenes, which includes:

[0006] S1. Get the current user ID and determine whether there is a prediction model corresponding to the current user ID;

[0007] If yes, extract the prediction model and execute S3;

[0008] Otherwise, execute step S2;

[0009] S2. Extract the user features of the current user, each prediction model has a corresponding model feature, calculate the similarity between the current user features and the model features, extract the prediction model with the highest similarity, and correspond the current user ID to the prediction model;

[0010] S3. Obtain the input data required by the prediction model and input it into the prediction model;

[0011] S4. The prediction model outputs prediction results based on the input data.

[0012] In the above-mentioned short-term electricity consumption prediction method for living building scenarios, the user characteristics include user type, user scale, and user region;

[0013] Each prediction model is trained using the historical electricity consumption data of the same user or users with the same / similar characteristics, and the model features of each prediction model are a combination of features of the user to whom the historical electricity consumption data used for training belongs, including user type, user scale, and user region.

[0014] In the above-mentioned short-term electricity consumption prediction method for living building scenarios, the training data for training the prediction model is prepared in the following way:

[0015] Get historical electricity usage data from various sources;

[0016] Perform data preprocessing on historical electricity consumption data, including time axis anomaly processing and charge data anomaly processing, and perform data stabilization processing and data denoising processing on the data after anomaly processing;

[0017] The preprocessed data is normalized and stored in a training data warehouse;

[0018] The data in the training data warehouse will be classified according to the data source, and different data categories will be used to train different prediction models.

[0019] In the above-mentioned short-term electricity consumption prediction method for living building scenes, the data collection device is provided with an electricity data collection state determiner and a first electricity data feature label generator; the data receiving device is provided with a data transmission state determiner and a second electricity data feature label generator, so as to perform abnormal data discrimination and data abnormality type identification on the data during the data collection process and the data transmission process for subsequent data preprocessing;

[0020] The prediction model is constructed as follows:

[0021] Build the basic model;

[0022] Determine the influencing factors of the forecast for each data category based on the data source;

[0023] Using each type of data combined with the influencing factors determined therefor, respectively training the basic model to obtain a number of prediction models;

[0024] Obtain the user ID of the corresponding user according to the data source of the data category for training each prediction model, and record the corresponding relationship between each prediction model and the corresponding user ID;

[0025] Each prediction model is assigned corresponding model features according to the data source of the training data.

[0026] In the above-mentioned short-term electricity consumption prediction method for living building scenarios, the method also includes:

[0027] Each time the user terminal goes online, the current user ID is obtained and matched with the user library of the system database. If the match is successful, the collected power consumption data of the current user is stored in the corresponding user library;

[0028] If the match is not successful, a user database is created for the current user, and the subsequent collected electricity consumption data of the user will be stored in the user database;

[0029] When a user terminal is connected to the system for the first time, after a user database is created for the user, the historical electricity consumption data collected and saved by the user terminal is obtained and stored in the created user database.

[0030] In the above-mentioned short-term electricity consumption prediction method for living building scenarios, in step S3, the input data includes part of the historical electricity consumption data and influencing factors of the current user;

[0031] The influencing factors are determined based on the prediction model;

[0032] And the influencing factors of all prediction models include time, temperature, weekends, and weekdays;

[0033] The influencing factors of the prediction model for hotel users also include holidays, occupancy rates, hotel activities, and platform activities;

[0034] The influencing factors of the prediction model for shopping mall users also include holidays and shopping mall activities;

[0035] The historical electricity consumption data required for input data is obtained from the user database of the current user.

[0036] In the above-mentioned short-term electricity consumption prediction method for living building scenarios, the occupancy rate is obtained by:

[0037] Occupancy rate = number of reservations * p / total number of rooms, p is greater than or equal to 1, which is the pre-set conversion rate;

[0038] The reservation quantity refers to the number of reservations that have been made for the predicted time at the current time of the prediction;

[0039] Different ps are set according to the time distance between the time to be predicted and the current time for prediction.

[0040] In the above-mentioned short-term electricity consumption prediction method for living building scenarios, the method also includes:

[0041] Define a decay factor, decay_factor, that decreases as time_distance increases:

[0042] decay_factor=e -λ·time_distance

[0043] Among them, λ is the decay rate, time_distance is the distance between the current time and the time to be predicted;

[0044] Replace the occupancy feature with the following feature:

[0045] adjusted_occupancy=occupancy_rate×decay_factor

[0046] occupancy_rate, which indicates the occupancy rate.

[0047] In the above-mentioned short-term electricity consumption prediction method for living building scenarios, the method also includes:

[0048] After creating a user library for the current user, determine the associated user library based on the prediction model corresponding to the current user;

[0049] When predicting the power consumption of the current user, firstly extract the historical power consumption data required for the prediction from the user database of the current user;

[0050] If it is not possible to obtain all the required historical electricity consumption data from the user database of the current user, the missing data is determined based on the extracted historical electricity consumption data;

[0051] Then searching for an associated user database containing the missing data from each associated user database;

[0052] The closest associated user library is selected by comparing the similarity between the historical electricity consumption data of each associated user library and the current user library, and the corresponding missing data is extracted from the corresponding associated user library, which is combined with the data extracted from the user library of the current user as the historical electricity consumption data for model input.

[0053] In the above-mentioned short-term electricity consumption prediction method for living building scenarios, the method also includes:

[0054] Using the probability distribution function, according to the historical daily high and low temperature values, the temperature at the corresponding time of the historical electricity consumption data is obtained;

[0055] Construct a CNN-GRU temperature prediction model, and use the temperature at the corresponding time of historical electricity consumption data to train the CNN-GRU temperature prediction model;

[0056] When predicting the current user's electricity consumption, the probability distribution function is used to obtain the temperature at the corresponding time of the historical electricity consumption data based on the historical daily high and low temperature values;

[0057] Use the trained CNN-GRU temperature prediction model, take the temperature at the corresponding time of historical electricity consumption data as input, and output the temperature at the time to be tested;

[0058] The temperature output by the CNN-GRU temperature prediction model is input into the prediction model as the temperature influencing factor of the corresponding prediction model.

[0059] A short-term electricity consumption prediction system for a living building scenario is used to execute the method described to make short-term electricity consumption predictions for target users.

[0060] The advantages of the present invention are:

[0061] 1. This solution first classifies the training data, and uses the classified data to train the models to obtain prediction models based on different classified data. The corresponding prediction models can be used to predict electricity consumption for the corresponding places, which can avoid the significant differences between different places affecting the training effect of the prediction model and ensure the prediction ability of the prediction model in the corresponding places;

[0062] And according to the model features of the prediction model recorded by the training model data, when facing a specific place, even if the place does not provide training data, a closest prediction model can be selected from multiple prediction models trained with different classification data according to the similarity between the user features of the place and the model features to predict electricity consumption. By calculating the feature similarity, a prediction model is matched for each place, so that the model trained by this solution can be used in various places, and a good prediction ability is guaranteed without training a model for each place separately.

[0063] 2. This solution not only considers the basic influencing factors such as time and working days for different users, but also considers the influencing factors specific to various places, such as holiday activities in shopping malls and occupancy rates of hotels, for different prediction models according to their model characteristics, which can further ensure the prediction accuracy of the model for specific places;

[0064] 3. This scheme also takes the temperature into consideration, and uses reasonable means to use the temperature factor as a reference for the system to make electricity consumption forecasts.

[0065] 4. This solution combines the probability distribution model and the CNN-GRU model to realize temperature prediction. The probability distribution model preprocesses the historical temperature data, so that the temperature prediction model can also realize temperature prediction for any time period based on the historical temperature data with only the daily temperature range, thereby providing reasonable and accurate temperature data for electricity consumption prediction in any time period, so that the prediction model has higher electricity consumption prediction capability;

[0066] 5. This solution allocates a user database to each place where this solution is applied, unifies and separately stores the electricity consumption data of each user, and associates the user databases corresponding to the same prediction model. When predicting the user, the historical electricity consumption data required by the prediction model is first obtained from the user database, and supplemented by the closest associated user database. Even in the case of insufficient historical data, relatively accurate electricity consumption prediction can be made, which improves the robustness and practicality of the system;

[0067] 6. This solution processes the training data completely and appropriately, including outlier processing and data preprocessing, to improve the quality of the training data, thereby ensuring the model prediction accuracy from the perspective of training data;

[0068] 7. For the prediction model of hotel users, the occupancy rate, which has a greater impact on electricity consumption, is input into the model as an influencing factor, and the weight of the occupancy rate is reduced as the prediction time goes by through the attenuation factor adjustment method, which adapts to the reality that it is difficult to obtain the occupancy rate in long-term prediction. The adaptability and accuracy of the prediction model are effectively improved by reasonably adjusting the occupancy rate weight;

[0069] 8. This scheme proposes to identify and mark abnormal data through the data acquisition device located at the data providing end and the data receiving device at the data receiving end before providing the original data to the system for data preprocessing. The data preprocessing process only needs to preprocess the data according to the data anomaly type, and there is no need to identify abnormal data. This effectively alleviates the computing and memory pressure brought by the identification and marking of abnormal data in the preprocessing process of a large amount of data, and improves the data preprocessing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1 It is a realization logic diagram of the short-term electricity consumption prediction system for the living building scene of the present invention;

[0071] Figure 2 1 is a schematic diagram of the connection of electrical equipment in a hotel according to an embodiment of the present invention, wherein the power consumption data collection device of the hotel is in frame A;

[0072] Figure 3 It is a principle block diagram of a data acquisition device in a short-term electricity consumption prediction method for a living building scene of the present invention;

[0073] Figure 4 It is a data collection and transmission flow chart in the short-term electricity consumption prediction method for living building scenes of the present invention;

[0074] Figure 5 It is a schematic diagram of the structure of historical power consumption data in the short-term power consumption prediction system for the living building scene of the present invention;

[0075] Figure 6 The comparison of the impact of using the adaptive collection and identification strategy of electricity consumption data on memory usage;

[0076] Figure 7 It is a flowchart for implementing the allocation of a database to each user in the short-term electricity consumption prediction method for living building scenes of the present invention;

[0077] Figure 8 It is a flow chart of a method for predicting electricity consumption for a current user in a short-term electricity consumption prediction method for a living building scene of the present invention;

[0078] Fig. 9 It is a structural diagram of the CNN-GRU temperature prediction model in the short-term electricity consumption prediction system for the living building scene of the present invention;

[0079] Fig.10 It is a flow chart of a method for processing when the historical electricity consumption data of the current user is insufficient in the short-term electricity consumption prediction method for the living building scene of the present invention;

[0080] Fig.11 This is a graph showing the single-day forecast results of Four Points by Sheraton Hangzhou Binjiang on March 9, 2024 according to an embodiment of the present invention;

[0081] Fig.12 This is a graph showing the prediction results of Hangzhou Haiwaihai Crown Hotel on March 10, 2024 according to an embodiment of the present invention;

[0082] Fig.13 This is a graph showing the prediction results of Hefei Lianghuai Howard Johnson Hotel on March 10, 2024 according to an embodiment of the present invention. DETAILED DESCRIPTION

[0083] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0084] like Figure 1 As shown, this solution provides a short-term electricity consumption prediction method for living building scenarios, specifically including:

[0085] (1) Training data preparation

[0086] Obtain historical electricity consumption data from electricity-consuming equipment, smart meters, energy storage equipment, electricity management platforms, power data analysis platforms, etc. This embodiment preferably proposes an adaptive collection and identification strategy for electricity consumption data. Specifically, before providing the original data to the system for data preprocessing, the abnormal data is first identified and identified by a data acquisition device located at the data providing end and a data receiving device at the data receiving end. A power consumption data acquisition status determiner, a first power consumption data feature label generator, and a data transmission status determiner, a second power consumption data feature label generator are built into the data acquisition device and the data receiving device, respectively. Taking a hotel as an example, if Figure 2 and Figure 3 As shown, a power consumption data collection state determiner and a first power consumption data feature label generator can be designed at the power consumption data collection device of the hotel, and the processing method is as follows Figure 4 As shown:

[0087] S1. Execute the data collection operation, the power consumption data collection state determiner determines whether the data collection is abnormal, and determines the data abnormality type, and uses the first power consumption data feature label generator to generate a data label about the data abnormality type;

[0088] S1-1: If the data is not abnormal or the data itself is abnormal, and the data is lost and cannot be recovered due to equipment failure or replacement, execute S2;

[0089] S1-2. If the data time series is disordered or some data in fields such as time or power consumption are missing during data collection, which can be restored by recollection, then re-execute S1 operation;

[0090] S2. The power consumption data collection device periodically sends the data to the data receiving warehouse. If it is third-party data, the data is sent to the third-party data warehouse according to the third-party agreement; during the data transmission process, the data receiving device uses the power consumption data transmission state determiner to determine whether the data transmission is abnormal, and determines the data abnormality type, and uses the second power consumption data feature label generator to generate a data label;

[0091] S2-1, if the data type label is abnormal, the label abnormality information is fed back to the power consumption data collection device, the first power consumption data feature label generator regenerates the data label, and then re-executes S2 operation;

[0092] S2-2, if there are abnormal phenomena such as time and load data loss and misalignment during data transmission that can be recovered by retransmission, then re-execute S2 operation;

[0093] S2-3. If the power load data transmission is abnormal due to force majeure factors such as equipment failure, a data label about the data abnormality type is directly generated for the data.

[0094] By using the above methods, abnormal data can be identified, marked and classified. In this way, the data preprocessing process only needs to preprocess the data according to the data anomaly type, and there is no need to distinguish abnormal data, which improves the data processing efficiency of short-term power consumption forecasting. The data structure in the data transmission process is as follows: Figure 5 As shown in the figure, the temperature is usually the temperature range of the day when the electricity consumption data is located. Figure 5 The data structure shown is obtained from the historical data provider, or from a third party such as a meteorological system. The data preprocessing module processes abnormal data including:

[0095] 1.1 Process the acquired historical electricity consumption data for outliers:

[0096] Timeline exception handling:

[0097] SA1. Perform time axis anomaly search on the received data to ensure that the time axis is distributed at intervals of T minutes. For each time axis that is not distributed at intervals of T minutes, start the time axis missing preprocessing mechanism to complete it according to the missing time nodes before and after it. After the completion, search the time axis again to ensure the integrity of the time axis. The calculation formula of the time axis missing preprocessing mechanism is as follows:

[0098]

[0099] Among them, x i is the value of the interpolation point, x s and x e are the starting and ending values ​​of the interpolation interval, t i is the time of the interpolation point, t sand t e The start and end time of the interpolation interval.

[0100] T can be determined by those skilled in the art according to actual conditions, for example, it can be 5 minutes.

[0101] Charge data exception processing:

[0102] SB1. Define the outlier threshold, lower threshold = μ-k×σ; upper threshold = μ+k×σ;

[0103] Among them, k is the custom outlier threshold coefficient, μ and σ are the mean and standard deviation of a set of data respectively, and the calculation formula is as follows:

[0104]

[0105] N is the number of data in each group;

[0106] Mark the data in the outlier range as NaN values.

[0107] The historical electricity consumption data provided by different users are divided into different data groups. The historical electricity consumption data of the same user in different periods may also be divided into different data groups. Whether the historical electricity consumption data of the same user is divided into different data groups and the division method are determined by those skilled in the art according to actual conditions. For example, the data of every 24 hours can be divided into one group, or the data of every week can be divided into one group, or the data of every month can be divided into one group, which is not limited here.

[0108] SB2. Process each value marked as NaN through the outlier handling mechanism:

[0109] The outlier handling mechanism is:

[0110] If the set number of data before and after the abnormal value are all normal values, the marked NaN value is replaced by the average value of the set number of data before and after. The specific value of the set number is not limited here, and can be reasonably set by those skilled in the art.

[0111] Otherwise, use exponential smoothing to predict outliers and replace the marked NaN values ​​with the predicted values:

[0112] S t =αX t +(1-α)S t-1

[0113] S t is the predicted value at time point t, X t is the actual observed value at time point t, S t-1 is the forecast value of the previous period, and α is a smoothing coefficient between 0 and 1.

[0114] 1.2 Preprocessing of data after outlier processing

[0115] SC1. Iterate and test the data stability. If the data is not stable, start the n-order difference operation (n is the number of iterations to test the data stability) until the data tends to be stable.

[0116] SC2. Start the data denoising mechanism to denoise the stabilized data:

[0117] SC21. Constructing denoising measurement model with MSE, RMSE, and MAE operators like If the value is set correctly, the denoising is effective; otherwise, it is ineffective.

[0118] SC22. Define the minimum performance improvement threshold Δ. If and only if I>Δ, adjust the parameters. The adjustment strategy is: if increasing the window size causes I>Δ, increase the window size; if decreasing the window size causes I>Δ, decrease the window size. Parameter adjustment ends if and only if any of the following conditions are met, that is, N is reached. max Or I<Δ.

[0119]

[0120] Where I is the performance measurement unit, Δ is the performance improvement threshold, and P d is the performance before adjustment, P n is the adjusted performance, b n is the adjusted boundary condition, b c To adjust the front boundary conditions, δ w For adaptive resizing, w n is the window size.

[0121] SC23. Moving average method is used in the sliding window to denoise the data. The relevant formula is as follows.

[0122]

[0123] Among them, w n is the window size, Y i is the i-th data in the window, X j is the jth data in the window.

[0124] 1.3 The processed data are normalized together with the normal values ​​and stored in the training data warehouse.

[0125] Through the above methods, the computing and memory pressure caused by the identification and identification of abnormal data in the preprocessing process of a large amount of data is effectively alleviated, and the efficiency of data preprocessing is improved. The memory usage change after the system runs smoothly is compared. Figure 6 As shown, area I is the change in memory usage after the system runs smoothly, in which abnormal data needs to be identified and marked during the data preprocessing process. Area II is the change in memory usage after the system runs smoothly after the adaptive collection and marking of power consumption data is applied. It can be seen from the figure that data preprocessing based on the adaptive collection and marking of power consumption data reduces the memory usage by at least 22.4%.

[0126] 1.4 Use the sliding window method to construct a data set. The initial window index is (0, n) and the step size is m. The data in the window is used as input {x1, x2, ..., x n}, the next window is taken as output {y1, y2, ..., y n}, forming a data set T = {(x1, y1), (x2, y2), ..., (x n ,y n )};

[0127]

[0128] Among them, e i Indicates the power consumption in a certain time interval. i When t is the power consumption in the ith 30 minutes, i is the average temperature in the i-th 30 minutes. If the daily power consumption is predicted, n = 48; if the monthly power consumption is predicted (days: 28, 29, 30, 31), n ​​= {1344, 1392, 1440, 1488}; when e i When t is the power consumption in the ith 5 minutes, i It is expressed as the average temperature in the i-th 5 minutes. If the daily power consumption is predicted, n = 288; if the monthly power consumption is predicted (days: 28, 29, 30, 31), n ​​= {8064, 8352, 8640, 8928};

[0129] 1.5 After preparing the training data set, the data set is classified according to the data source, mainly according to the users to whom the historical electricity consumption data belongs. For example, the data of users A and B are classified into one category, called Class A data; the data of user C is classified into one category, called Class B data; the data of user D is classified into one category, called Class C data, and so on. This step is divided by the user himself, or the system divides after the user sets the classification rules. The purpose is to classify the data of electricity consumption places with small differences into one category, and avoid the data of electricity consumption places with large differences from being used for training models at the same time.

[0130] (2) Build and train the model

[0131] First, a support vector machine (SVR) model is constructed. The SVR model maps data to a high-dimensional space by using a kernel function and finds the optimal hyperplane in the space to maximize the interval between the training data and obtain a regression model. The geometric interval between the two dotted lines is d represents the function interval between the two dotted lines, and the formula is as follows:

[0132]

[0133] Among them, f(x) represents the predicted value for the input x, αi and αi* are the Lagrange multipliers of the support vector machine, K(xi,x) is the kernel function used to measure the similarity between the input x and the support vector xi, and b is the bias term.

[0134] The Bayesian optimization function objective is determined, and the Bayesian optimization technique is used to find the best parameter combination {αi, αi*, b, K(xi, x)} of the support vector machine regression (SVR) model to minimize the prediction error of time series data.

[0135] This solution adds technical improvements such as Bayesian optimization on the basis of a single conventional SVR algorithm, solving the problem of slow fitting speed when using Gaussian kernel function, and can be excellently applied to prediction in the field of electricity consumption.

[0136] Then, the influencing factors of the prediction are determined for each data category based on the data source. For example, time, temperature, weekends, and weekdays are common to most categories of data. If the data comes from hotel users, for hotel users, the influencing factors also include holidays, activities participated by the hotel on various platforms (platform activities such as Meituan and Dianping), the hotel’s own activities, and occupancy rate, etc.; for shopping mall users, the influencing factors may also include holidays and shopping mall activities; and so on.

[0137] Assuming that users A and B are two hotels, we will take category A data as an example to explain. The other categories are similar and will not be described here:

[0138] Obtain the influencing factors of Class A data, including time, temperature, whether it is a weekday, whether it is a holiday, occupancy rate, and whether there are hotel activities or platform activities. For example, for some electricity consumption data on December 1, 2023, the temperature can be obtained by using the probability distribution function based on the temperature range of the day:

[0139]

[0140] Then, the A-type data is combined with the influencing factors to train the prediction model to obtain the trained prediction model, which is referred to as prediction model A herein.

[0141] Similarly, prediction model B is obtained by training the prediction model through combining category B data with corresponding influencing factors; prediction model C is obtained by training the prediction model through combining category C data with corresponding influencing factors.

[0142] The above takes three types of data and three prediction models as an example. When put into use, there can be more data categories and more trained prediction models. For example, even if they are all hotels, they can be divided into more categories according to scale, etc., and should not be limited to one category. The basic model can be an untrained support vector machine SVR model or a model pre-trained with various types of data for power consumption prediction capabilities.

[0143] Record the code of each prediction model, and obtain the user ID of the corresponding user according to the data source of the data class for training the prediction model. For example, for the above prediction model A, obtain the user ID of user A (J01234) and the user ID of user B (J00124). And assign model features to each prediction model. For example, the code of prediction model A is 0001, and the model features are: user type (hotel type), user scale (small hotel, medium-sized hotel, large hotel, economy hotel, luxury hotel, chain hotel...), user region (city level, scenic spot distance, scenic spot star rating, urban distance), etc. When the data comes from multiple users, the features of multiple users can be included in the model features. For example, if Hotel A is an economy hotel and Hotel B is a chain hotel, these two features can be used as model features of the aforementioned prediction model at the same time. Finally, record the corresponding relationship between the prediction model and the corresponding user ID, and the following data relationship can be obtained:

[0144]

[0145] (3) Electricity consumption forecast

[0146] When a user wants to use this method to predict electricity consumption, the user's electricity meter or electricity management platform or other equipment, devices, and platforms that can provide electricity consumption data to this system are connected to this system. The system obtains the user's electricity consumption data and predicts electricity consumption in the following ways:

[0147] like Figure 7 As shown, each time the user's terminal goes online, the current user ID is obtained and matched with the system database user library. If a match is found, the collected power usage data of the current user is stored in the corresponding user library. If the match is not successful, a user library is created for the user, and the subsequent collected power usage data of the user will be stored in the user library.

[0148] Of course, similar to the training data collection process, the data collected here can also be processed for abnormal data identification and identification at the receiving device of the power consumption data collection device before being transmitted to this system, and then the end pre-processes the data before storing it in the corresponding user library. The specific processing method can be similar to that of the training data collection, or it can be different, and it is not limited or elaborated here. The data collected and saved by the user before using this system can also be stored in the corresponding user library when connecting to this system for model prediction.

[0149] At the same time Figure 8 As shown, it is determined whether there is a prediction model corresponding to the current user ID;

[0150] If yes, extract the corresponding prediction model; otherwise, extract the current user features. As mentioned above, each prediction model has corresponding model features. Calculate the similarity between the current user features and the model features of each model in the system. Extract the prediction model with the highest similarity, and correspond the current user ID to the prediction model, that is, record the correspondence between the prediction model and the current user ID. In the case of client deployment, the prediction model can also be packaged as a client to the user at the same time.

[0151] The similarity calculation method can abstract user features and model features into vectors, and then use the distance (Euclidean distance) and / or angle (cosine similarity) in the vector space to measure the similarity.

[0152] Furthermore, it is preferred that different features are configured with different weights based on empirical knowledge, and the similarity calculation formula is:

[0153]

[0154] Among them, Ai and Bi are the values ​​of the two objects on the i-th feature, and wi is the corresponding weight.

[0155] When the current user needs to make a prediction, the input data required by the prediction model is obtained and input into the corresponding prediction model. The prediction model outputs the prediction result based on the input data. The structure content of the prediction result may include: prediction start time (beginTime), prediction end time (endTime), model code used (modelCode), predicted power usage (data), user ID, and may also include mean absolute error (mae), root mean square error (rmse), R^2 determination coefficient (r_squared), relative error (relative_error), etc.

[0156] The input data includes some historical electricity consumption data and the factors affecting the time to be predicted. Some historical electricity consumption data required for prediction are determined by technicians in this field as needed. For example, when predicting the electricity consumption of a certain day, the historical electricity consumption data of the previous day (if any), the day of the previous months and the three days before and after, the day of the previous weeks, the same day of the previous year, etc. can be used as input data. The required historical electricity consumption data is obtained from the corresponding user database.

[0157] Each prediction model has determined the required influencing factor types in advance. In the prediction process, the corresponding influencing factors are obtained as needed. For example, assuming that the current user corresponds to prediction model A, it is now November 23, 2022, and it is necessary to predict the electricity consumption from 7:00 to 9:00 a.m. and 1:00 to 3:00 p.m. on November 24. Then, the temperature, weekday situation, holiday situation, occupancy rate, hotel activities, platform activities, etc. from 7:00 to 9:00 a.m. and 1:00 to 3:00 p.m. on November 24 are obtained respectively. Information about weekdays and holidays can be obtained from third parties such as calendars. Hotel activities obtain relevant information from the hotel system or third-party platforms.

[0158] The acquisition of temperature data is achieved through the temperature prediction model. The CNN-GRU model has been applied to the field of temperature prediction due to its powerful feature extraction and sequence data processing capabilities, and has been proven to have good temperature prediction capabilities. This solution uses this model to obtain temperature data. The specific methods include:

[0159] Using the probability distribution function, according to the historical daily high and low temperature values, the historical electricity consumption data corresponding to time t is obtained i Temperature;

[0160] Assume t i If it obeys the normal distribution, then its formula is expressed as: i ={x i}, i={1, 2...28, 29.30, 31}

[0161]

[0162] Among them, μ represents the average daily temperature, σ represents the variance of daily temperature, f(x) represents the probability density function of standard normal distribution, x represents a randomly generated variable, t represents a random number that obeys the standard normal distribution, H represents the highest temperature of the day, L represents the lowest temperature of the day, and j represents the date;

[0163] Construct a CNN-GRU temperature prediction model, and use the temperature at the corresponding time of historical electricity consumption data to train the CNN-GRU temperature prediction model. Fig. 9 As shown in the figure, the CNN-GRU combined model consists of an input layer, a CNN layer, a GRU layer, a self-attention layer, and an output layer.

[0164] The training process is to use CNN to reduce the dimension of the original sample data and extract the implicit relationship between the feature vectors in the sample. As the core part of CNN, the convolution layer performs convolution operations on the input data through local connections and weight sharing to extract the deep features of the data. The convolution kernel performs convolution on the data as follows:

[0165] C=f(X*W+b) (10)

[0166] Among them, C is the output result of the convolution layer; X is the input data; W is the weight in the convolution kernel; b is the bias value; f is the nonlinear activation function; * is the convolution operation. Based on LSTM, the GRU structure simplifies the input gate, forget gate and output gate into a reset gate and an update gate, which effectively reduces the parameter demand and computational complexity in each iteration, optimizes the training efficiency of the entire processing layer, and thus accelerates the convergence of the model.

[0167] Using the GRU network, we can learn the dynamic change trends and rules of the characteristics of sample data after dimensionality reduction. The core calculation process of the GRU structure is as follows:

[0168] r t =sigmoid(W r ·x t +U r ·h t-1 +b r ) (11)

[0169] z t =sigmoid(W z ·x t +U z ·h t-1 +b z ) (12)

[0170] h` t =tanh(W h` ·x t +U h` ·(r t ⊙h t-1 )b h` ) (13)

[0171] h t =z t ⊙h t-1 +(1-z t )⊙h` t (14)

[0172] Among them, r tis the reset gate, which determines the degree to which the current candidate information depends on the historical information during the calculation process; W r Input matrix x to reset gate t The weight matrix of r To reset the hidden state h of the previous moment in the door t-1 The weight matrix of z t To update the gate, determine h t-1 With the current candidate information h` t The proportion of z Input matrix x to the update gate t The weight matrix W h` is the weight matrix of the input data when calculating the candidate hidden state; U z To update the gate h t-1 The weight matrix of ; ⊙ represents the Hadamard product; h t Indicates the final information state at the current moment, and the result will be used as h t-1 It is used in the calculation of the next moment to bring historical information to the calculation of the next moment.

[0173] Finally, the Self-Attention control model is used to allocate attention resources to various features in the result output stage to achieve temperature prediction. The core calculation formula is as follows:

[0174] s t =tanh(W h ·h t +b h ) (15)

[0175] a t =softmax(exp(s t ) / ∑exp(s t )) (16)

[0176] s=∑a t ·h t (17)

[0177] Among them, s t Represents the input feature h t The dot product attention weight matrix between each feature element in; W h is the weight matrix of the self-attention mechanism; a t Represents the normalized dot product attention weight, which can effectively avoid the gradient explosion problem caused by the large values ​​of the matrix.

[0178] When predicting electricity consumption for current users, the probability distribution function is used to obtain the temperature at the time corresponding to the historical electricity consumption data based on the historical daily high and low temperature values.

[0179] Use the trained CNN-GRU temperature prediction model, take the temperature at the corresponding time of historical electricity consumption data as input, and output the temperature at the time to be tested;

[0180] The temperature output by the CNN-GRU temperature prediction model is input into the prediction model as the temperature influencing factor of the corresponding prediction model.

[0181] The temperature prediction model and the forecast model can be trained simultaneously or separately.

[0182] The occupancy rate is calculated based on the reservation volume of the hotel system: occupancy rate = reservation volume * p / total number of rooms, p is greater than or equal to 1, and is a pre-set conversion rate determined based on experience. The reservation volume refers to the number of reservations that have been made at the time point to be predicted. In addition, different ps are set according to the time distance between the time point to be predicted and the current time of the prediction.

[0183] Furthermore, this embodiment adjusts the weight of the occupancy rate in the prediction model by external processing. The principle is that as the time distance between the time point to be predicted and the current time increases, the weight of the occupancy rate is adjusted to decrease, so as to reduce the dependence of the prediction model on the occupancy rate. The method is as follows:

[0184] Define a decay factor, decay_factor, that decreases as time_distance increases:

[0185] decay_factor=e -λ·time_distance

[0186] Among them, λ is the decay rate, and time_distance is the distance between the current time and the time point to be predicted (which can be hours, days, etc.).

[0187] For the occupancy rate feature, replace it with the following features, both in the training and prediction processes:

[0188] adjusted_occupancy=occupancy_rate×decay_factor

[0189] Occupancy_rate, which indicates the occupancy rate. The definition of the decay factor about time and the introduction of this decay factor reduce the influence of the occupancy rate factor in the long-term prediction. It can adapt to the reality that the recent occupancy rate of the hotel is easy to obtain, but the long-term occupancy rate is not easy to obtain. By reasonably considering the occupancy rate by time distance, the prediction accuracy of the prediction model in the hotel scenario is effectively improved.

[0190] For users who have just started using this system, there may be insufficient historical electricity consumption data, and the model needs to use certain historical electricity consumption data as input when making predictions. Fig.10 As shown, the solution further includes: after creating a user library for a user, pairing and associating the user library with the user library according to the prediction model corresponding to the user. That is, a prediction model usually corresponds to multiple user IDs. Assuming that prediction model A has corresponded to three users ID1, ID2, and ID3, when a new user ID4 corresponds to the prediction model, the new user ID4 will be associated with the user library of the three users ID1, ID2, and ID3 until the user library of the new user ID4 has sufficient historical electricity consumption data for electricity consumption prediction, and then the association can be cancelled.

[0191] When the system predicts user ID4, it first extracts the historical electricity consumption data required for the model to make predictions from the user library of user ID4. If it is not possible to obtain all the required historical electricity consumption data from the ID4 user library, the missing data is determined based on the data extracted from the ID4 user library, and then the missing data is found from each associated user library associated with user ID4 to see if all the aforementioned missing historical electricity consumption data exist. If not, it prompts that the historical electricity consumption data is insufficient and it is difficult to make an accurate judgment. No prediction can be made, or the missing historical electricity consumption data can be directly used as input for prediction. If only one exists, the corresponding missing data is directly extracted from the corresponding associated user library. If there are multiple associated user libraries with the missing historical electricity consumption data of ID4, the historical electricity consumption data of the closest associated user library is selected according to the similarity of the electricity consumption data in the user library. The object of similarity calculation can be all historical electricity consumption data, or part of the historical electricity consumption data can be intercepted, such as intercepting the data extracted from the current user library to calculate the similarity. The calculation of similarity can adopt the dynamic time warping method (Dynamic Time Warping, DTW).

[0192] After obtaining the missing data, it is integrated with the historical electricity consumption data previously extracted from the user database of user ID 4 as the historical electricity consumption data required for the model prediction of user ID 4. As the system is used and the prediction progresses, the missing historical electricity consumption data will decrease, and the need to supplement the historical electricity consumption data from the associated user database will decrease.

[0193] The above method is for new users or users with insufficient historical data. By associating the user database to supplement the missing historical electricity consumption data, it ensures that relatively accurate electricity consumption prediction can be made even when historical data is insufficient, thereby improving the robustness and practicality of the system.

[0194] This embodiment uses prediction model A trained with hotel data to make single-day predictions for three hotels, and the prediction time point is March 9, 2024.

[0195] like Fig.11 This is a chart showing the forecast results for the single day of Hangzhou Longxi Four Points by Sheraton Hotel on March 10, 2024. The hotel type is a high-end five-star hotel with 364 rooms. Some comparison data between the actual value and the predicted value are shown in the following table:

[0196] time True value Predicted value 2024-03-10 00:00:00 13.15 13.08 2024-03-10 00:05:00 12.47 12.92 2024-03-10 00:10:00 12.06 11.94 2024-03-10 00:15:00 11.63 11.69 2024-03-10 00:20:00 12.02 11.76 2024-03-10 00:25:00 12.02 11.99 2024-03-10 00:30:00 12.24 12.18 2024-03-10 00:35:00 11.98 11.98 2024-03-10 00:40:00 11.9 11.93 2024-03-10 00:45:00 11.98 11.89 2024-03-10 00:50:00 11.97 12.03 2024-03-10 00:55:00 12.15 12.21 2024-03-10 01:00:00 11.94 11.85 2024-03-10 01:05:00 11.88 11.94 2024-03-10 01:10:00 11.96 11.81 2024-03-10 01:15:00 11.93 12 2024-03-10 01:20:00 11.96 12.07 2024-03-10 01:25:00 11.8 11.79 2024-03-10 01:30:00 11.71 11.74 2024-03-10 01:35:00 11.67 11.68 2024-03-10 0140:00 11.66 11.62 2024-03-10 01:45:00 11.83 11.88 2024-03-10 01:50:00 11.67 11.82 2024-03-10 01:55:00 11.64 12.05 2024-03-10 02:00:00 11.41 11.45 2024-03-10 02:05:00 11.12 11.07 2024-03-10 02:10:00 11.39 11.05 2024-03-10 02:15:00 11.5 11.36 2024-03-10 02:20:00 11.53 11.59 2024-03-10 02:25:00 11.62 11.5 2024-03-10 02:30:00 11.63 11.57

[0197] Error parameters are: MAE: 1.7290; RMSE: 1.5956; RS: 0.4460; RE: 12.7276

[0198] MAE is the average of the absolute values ​​of the differences between the predicted values ​​and the actual values. It is used to measure the size of the prediction error. The smaller the MAE, the smaller the gap between the model's predicted values ​​and the actual values, and the better the model's prediction performance.

[0199] RMSE is also used to measure the size of the prediction error, similar to MAE, but gives a greater penalty for larger errors. The smaller the RMSE, the higher the accuracy of the model prediction, because larger errors will be penalized by squares.

[0200] RS stands for the coefficient of determination, which is used to indicate the degree to which the model explains the variability of the data. The higher the RS value, the better the model fits the data.

[0201] RE stands for relative error, which is used to measure the size of the prediction error relative to the actual value. The smaller the RE, the smaller the prediction error is relative to the actual value, and the better the prediction performance of the model.

[0202] Fig.12 This is a chart showing the forecast results for Hangzhou Haiwaihai Crown Hotel on March 10, 2024. The hotel type is a business-type five-star hotel with 330 rooms. Some of the actual and predicted data are shown in the following table. The error parameters are: MAE: 1.3234; Rmse: 1.7582; RS: 0.8991; RE: 10.4273

[0203] time True value Predicted value 2024-03-10 00:00:00 4.29 5.52 2024-03-10 00:05:00 5.01 5.41 2024-03-10 00:10:00 5.01 4.96 2024-03-10 00:15:00 6.43 5.09 2024-03-10 00:20:00 3.82 5.47 2024-03-10 00:25:00 6.2 4.94 2024-03-10 00:30:00 5.24 4.84 2024-03-10 00:35:00 4.77 5.06 2024-03-10 00:40:00 4.77 5.18 2024-03-10 00:45:00 5.01 5.4 2024-03-10 00:50:00 4.53 5.39 2024-03-10 00:55:00 4.77 5.2 2024-03-10 01:00:00 4.76 4.93 2024-03-10 01:05:00 5.73 5.17 2024-03-10 01:10:00 5.24 4.82 2024-03-10 01.:15:00 4.53 5.03 2024-03-10 01:20:00 5.01 5.08 2024-03-10 01:25:00 5 4.83 2024-03-10 01:30:00 4.77 5.01 2024-03-10 01:35:00 5.01 5.31 2024-03-10 01:40:00 5.01 5.42 2024-03-10 0145:00 4.53 5.16 2024-03-10 01:50:00 6.67 5.34 2024-03-10 01:55:00 4.77 5.25 2024-03-10 02:00:00 4.77 5.22 2024-03-10 02:05:00 4.77 5.24 2024-03-10 02:10:00 4.77 5.14 2024-03-10 02:15:00 4.53 5.09 2024-03-10 02:20:00 5.48 5.17 2024-03-10 02:25:00 5.01 5.12 2024-03-10 02:30:00 4.05 5.41

[0204] Fig.13 This is a display chart of the single-day forecast results for Hefei Lianghuai Howard Johnson Hotel on March 10, 2024. The hotel type is a luxury five-star hotel with 295 rooms. Some of the actual and predicted data are shown in the following table. For some reasons, some of the actual data were not collected and marked with NaN. Based on all the collected data, the error parameters are: MAE: 1.9306; RMSE: 1.9804; RS: 0.5888; RE: 15.4578.

[0205] time True value Predicted value 2024-03-10 00:00:00 10.2 11.68 2024-03-10 00:05:00 9.06 10.77 2024-03-10 00:10:00 6.2 10.98 2024-03-10 00:15:00 15.74 10.76 2024-03-10 00:20:00 10.97 11.04 2024-03-10 00:25:00 8.58 10.94 2024-03-10 00:30:00 10.01 10.98 2024-03-10 00:35:00 11.26 11.43 2024-03-10 00:40:00 10.2 10.8 2024-03-10 00:45:00 5.05 10.48 2024-03-10 00:50:00 11.16 10.15 2024-03-10 00:55:00 8.59 11.05 2024-03-10 01:00:00 12.11 10.72 2024-03-10 01:05:00 10.77 10.38 2024-03-10 01:10:00 8.59 10.16 2024-03-10 01:15:00 10.49 10.34 2024-03-10 01:20:00 7.91 10.28 2024-03-10 01:25:00 9.25 10.38 2024-03-10 0130:00 9.54 12.02 2024-03-10 01:35:00 10.49 10.48 2024-03-10 01:40:00 8.87 9.87 2024-03-10 01:45:00 10.2 10.59 2024-03-10 01:50:00 9.06 10.96 2024-03-10 01:55:00 6.2 10.6 2024-03-10 02:00:00 10.49 10.21 2024-03-10 02:05:00 8.59 9.86 2024-03-10 02:10:00 NaN 10.29 2024-03-10 02:15:00 NaN 10.33 2024-03-10 02:20:00 11.63 10.15 2024-03-10 02:25:00 6.68 10.46 2024-03-10 02:30:00 12.21 10.47

[0206] from Figure 11-13 As can be seen from the above three tables, this scheme can give a relatively accurate prediction for a certain time point on a certain day in the future, and it has a high prediction accuracy for three different hotels. It can be seen that the model obtained by this scheme has a good generalization ability for the same type of users.

[0207] The specific embodiments described in this embodiment are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the attached claims.

Claims

1. A short-term electricity consumption prediction method for a living building scene, characterized in that: The method includes: S1. Get the current user ID and determine whether there is a prediction model corresponding to the current user ID; If yes, extract the prediction model and execute S3; Otherwise, execute step S2; S2. Extract the user features of the current user, each prediction model has a corresponding model feature, calculate the similarity between the current user features and the model features, extract the prediction model with the highest similarity, and correspond the current user ID to the prediction model; S3. Obtain the input data required by the prediction model and input it into the prediction model; S4. The prediction model outputs prediction results based on the input data.

2. The short-term electricity consumption prediction method for life-like building scenes according to claim 1 is characterized in that: The user characteristics include user type, user scale, and user region; Each prediction model is trained using the historical electricity consumption data of the same user or users with the same / similar characteristics, and the model features of each prediction model are a combination of features of the user to whom the historical electricity consumption data used for training belongs, including user type, user scale, and user region.

3. The short-term electricity consumption prediction method for life-like building scenes according to claim 2 is characterized in that: The training data for training the prediction model is prepared as follows: Get historical electricity usage data from various sources; Perform data preprocessing on historical electricity consumption data, including: Time axis anomaly processing and charge data anomaly processing, data stabilization processing and data denoising processing for the data after anomaly processing; The pre-processed data is normalized and stored in a training data warehouse; The data in the training data warehouse will be classified according to the data source, and different data categories will be used to train different prediction models.

4. The short-term electricity consumption prediction method for life-like building scenes according to claim 3 is characterized in that: The data collection device is provided with an electric data collection state determiner and a first electric data characteristic label generator; the data receiving device is provided with a data transmission state determiner and a second electric data characteristic label generator, so as to perform abnormal data discrimination and data abnormality type identification on the data during the data collection process and the data transmission process; The prediction model is constructed as follows: Build the basic model; Determine the influencing factors of the forecast for each data category based on the data source; Using each type of data combined with the influencing factors determined therefor, respectively training the basic model to obtain a number of prediction models; Obtain the user ID of the corresponding user according to the data source of the data category for training each prediction model, and record the corresponding relationship between each prediction model and the corresponding user ID; Each prediction model is assigned corresponding model features according to the data source of the training data.

5. The short-term electricity consumption prediction method for life-like building scenes according to claim 4 is characterized in that: The method further comprises: Each time the user terminal goes online, the current user ID is obtained and matched with the user library in the system database. If the match is successful, the collected power consumption data of the current user is stored in the corresponding user library; If the match fails, a user database is created for the current user, and the subsequent collected electricity consumption data of the user will be stored in the user database; When a user terminal is connected to the system for the first time, after a user database is created for the user, the historical electricity consumption data collected and saved by the user terminal is obtained and stored in the created user database.

6. The short-term electricity consumption prediction method for life-like building scenes according to claim 5 is characterized in that: In step S3, the input data includes part of the current user's historical electricity consumption data and influencing factors; The influencing factors are determined based on the prediction model; And the influencing factors of all prediction models include time, temperature, weekends, and weekdays; The influencing factors of the prediction model for hotel users also include holidays, occupancy rates, hotel activities, and platform activities; The influencing factors of the prediction model for shopping mall users also include holidays and shopping mall activities; The historical electricity consumption data required for input data is obtained from the user database of the current user.

7. The short-term electricity consumption prediction method for life-like building scenes according to claim 6 is characterized in that: The occupancy rate is obtained as follows: Occupancy rate = number of reservations * p / total number of rooms, p is greater than or equal to 1, which is the pre-set conversion rate; The reservation quantity refers to the number of reservations that have been made for the predicted time at the current time of the prediction; Different ps are set according to the time distance between the time to be predicted and the current time for prediction.

8. The short-term electricity consumption prediction method for life-like building scenes according to claim 7 is characterized in that: The method further comprises: Define a decay factor, decay_factor, that decreases as time_distance increases: decay_factor=e -λ·time_distance Among them, λ is the decay rate, time_distance is the distance between the current time and the time to be predicted; Replace the occupancy feature with the following feature: adjusted_occupancy=occupancy_rate×decay_factor occupancy_rate, which indicates the occupancy rate.

9. The short-term electricity consumption prediction method for living building scenes according to claim 6 is characterized in that: The method further comprises: After creating a user library for the current user, determine the associated user library based on the prediction model corresponding to the current user; When predicting the power consumption of the current user, firstly extract the historical power consumption data required for the prediction from the user database of the current user; If it is not possible to obtain all the required historical electricity consumption data from the user database of the current user, the missing data is determined based on the extracted historical electricity consumption data; Then searching for an associated user database containing the missing data from each associated user database; The closest associated user library is selected by comparing the similarity between the historical electricity consumption data of each associated user library and the current user library, and the corresponding missing data is extracted from the corresponding associated user library, which is combined with the data extracted from the user library of the current user as the historical electricity consumption data for model input.

10. The short-term electricity consumption prediction method for life-like building scenes according to claim 6 is characterized in that: The method further comprises: Using the probability distribution function, according to the historical daily high and low temperature values, the temperature at the corresponding time of the historical electricity consumption data is obtained; Construct a CNN-GRU temperature prediction model, and use the temperature at the corresponding time of historical electricity consumption data to train the CNN-GRU temperature prediction model; When predicting the current user's electricity consumption, the probability distribution function is used to obtain the temperature at the corresponding time of the historical electricity consumption data based on the historical daily high and low temperature values; Use the trained CNN-GRU temperature prediction model, take the temperature at the corresponding time of historical electricity consumption data as input, and output the temperature at the time to be tested; The temperature output by the CNN-GRU temperature prediction model is input into the prediction model as the temperature influencing factor of the corresponding prediction model.

11. A short-term electricity consumption prediction system for living building scenes, characterized in that: Used to execute the method described in any one of claims 1-10 to make short-term electricity consumption forecasts for target users.