Load prediction method and load prediction device

By identifying the timestamps and impact trends of building operation events and combining them with time series forecasting models, the load disturbance can be determined, solving the problem of the inability to quantify the impact of events in existing technologies and improving the load forecasting accuracy of building energy management systems.

CN123180474APending Publication Date: 2026-11-27HUADE SMART ENERGY MANAGEMENT (TIANJIN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611710577.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-11-02
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing building energy management systems are unable to effectively identify and quantify events such as ad-hoc meetings, equipment start-ups and shutdowns, and sudden weather changes in load forecasting, resulting in insufficient forecast accuracy, especially under non-stationary operating conditions.

Method used

By acquiring building energy consumption measurement data and unstructured operation event records, the occurrence timestamps and impact trends of event entities are identified. The initial load value is predicted using a time series forecasting model, and the load disturbance is determined based on the impact time window and direction of the event entities. Finally, the predicted load value is obtained by superimposing the data.

Benefits of technology

It enables precise location and quantitative compensation for event-induced energy consumption surges, improving the load forecasting accuracy of the park in multiple scenarios and avoiding forecasting deviations caused by temporary events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180474A_ABST
    Figure CN123180474A_ABST
Patent Text Reader

Abstract

The application provides a load prediction method and a load prediction device. It can be applied to the technical field of building energy management. The method comprises the following steps: obtaining energy consumption measurement data of a target building in a target area at each time point in a historical time period, unstructured building operation event record data, and environmental data; identifying event entities in the building operation event record data, and determining the occurrence time stamp of the event entities, and the influence trend and influence time window of the event entities on energy consumption; fitting initial predicted load values generated by the target area in a prediction time step based on the energy consumption measurement data and the environmental data at multiple time points; in the case that the prediction time step is within the influence time window, determining the load disturbance amount generated by the event entities in the prediction time step based on the occurrence time stamp and the influence trend; and determining the predicted load value of the target area in the prediction time step according to the initial predicted load value and the load disturbance amount.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of building energy management technology, specifically to load forecasting methods and load forecasting devices. Background Technology

[0002] Currently, building energy management systems primarily rely on pure time-series analysis algorithms or physical simulation models based on thermodynamic equations for load forecasting, both of which assume that building energy consumption follows a continuous and stable pattern. However, actual park operations involve events such as impromptu meetings, equipment start-ups and shutdowns, and sudden weather changes. The impact of these events on the load cannot be characterized or quantified using the aforementioned methods, resulting in insufficient reliability of forecasts for the event triggering periods and affecting the accuracy of forecasts under unconventional operating conditions. Summary of the Invention

[0003] In view of this, the present invention provides a load forecasting method and a load forecasting apparatus.

[0004] One aspect of the present invention provides a load forecasting method, comprising: acquiring energy consumption measurement data of a target building at various time points within a historical time period, unstructured building operation event record data, and environmental data within a target area; identifying event entities in the building operation event record data and determining the occurrence timestamps of the event entities, as well as the influence trend and influence time window of the event entities on energy consumption; fitting an initial predicted load value generated by the target area within a prediction time step based on the energy consumption measurement data and environmental data at multiple time points; determining the load disturbance amount generated by the event entities within the prediction time step based on the occurrence timestamps and influence trends when the prediction time step is within the influence time window; and determining the predicted load value of the target area within the prediction time step based on the initial predicted load value and the load disturbance amount.

[0005] According to an embodiment of the present invention, the influence trend includes the influence direction, the basic influence weight, and the influence fluctuation amplitude level; based on the occurrence timestamp and the influence trend, determining the load disturbance amount generated by the event entity within the prediction time step includes: determining the peak load disturbance amount of the event entity according to the influence fluctuation amplitude level and the basic influence weight; taking the occurrence timestamp as the peak center, determining the distribution weight of the peak load disturbance amount within the influence time window according to the time offset of the prediction time step within the influence time window relative to the peak center; determining the sign of the load disturbance amount generated by the event entity within the prediction time step according to the influence direction; and determining the load disturbance amount generated by the event entity within the prediction time step according to the sign, the peak load disturbance amount, and the distribution weight.

[0006] According to an embodiment of the present invention, when the event entities are determined to include multiple entities, the load forecasting method further includes: superimposing the load disturbances generated by each event entity within the forecast time step to obtain the total load disturbance of the multiple event entities within the forecast time step; and determining the forecast load value in the target area within the forecast time step based on the initial forecast load value and the total load disturbance.

[0007] According to an embodiment of the present invention, identifying event entities in building operation event record data and determining the occurrence timestamps of event entities, as well as the influence trend and influence time window of event entities on energy consumption, includes: identifying event entities in building operation event record data and filtering invalid event entities that do not meet preset building energy consumption domain judgment rules to obtain unfiltered event entities and occurrence timestamps; if it is determined that the event entity exists in a pre-constructed energy consumption event map, obtaining the association relationship between the event entity and the building load end from the energy consumption event map to obtain the influence trend and influence time window, wherein the energy consumption event map is constructed with event entities and building load ends as nodes and the association relationship between event entities and building load ends as edges, and the association relationship includes the influence trend and influence time window of the event entity on energy consumption; if it is determined that the event entity does not exist in the energy consumption event map, performing semantic parsing on the data associated with the event entity in the building operation event record data to determine the influence trend and influence time window.

[0008] According to an embodiment of the present invention, the influence trend includes the influence direction, the influence fluctuation level, and the basic influence weight; the load forecasting method further includes: obtaining the actual load value within the forecast time step and the historical load standard deviation of the target building; determining the update step size of the basic influence weight based on the residual between the actual load value and the forecast load value, the influence direction, the influence fluctuation level, the historical load standard deviation, and the historical occurrence frequency of the event entity; and updating the basic influence weight according to the update step size.

[0009] According to an embodiment of the present invention, the update step size of the basic influence weight is determined based on the residual between the actual load value and the predicted load value, the direction of influence, the level of influence fluctuation, the historical load standard deviation, and the historical occurrence frequency of the event entity. This includes: determining an adaptive adjustment coefficient based on the comparison result between the absolute value of the residual and the historical load standard deviation; determining the initial update amount of the basic influence weight based on the product of the direction of the residual and the direction of influence, the level of influence fluctuation, and the adaptive adjustment coefficient; determining a stability penalty term based on the historical occurrence frequency; and using the stability penalty term to attenuate the initial update amount to obtain the update step size.

[0010] According to an embodiment of the present invention, determining an adaptive adjustment coefficient based on a comparison between the absolute value of the residual and the historical load standard deviation includes: setting the adaptive adjustment coefficient to a preset lower limit when the absolute value of the residual does not exceed the historical load standard deviation; setting the adaptive adjustment coefficient to a preset upper limit when the absolute value of the residual exceeds three times the historical load standard deviation; and determining the adaptive adjustment coefficient based on the absolute value of the residual when the absolute value of the residual exceeds the historical load standard deviation but does not exceed three times the historical load standard deviation, wherein the adaptive adjustment coefficient is positively correlated with the absolute value of the residual.

[0011] According to an embodiment of the present invention, the initial predicted load value is obtained by fitting a time series prediction model; the load prediction method further includes: retraining the time series prediction model using multi-time window rolling cross-validation based on the energy consumption measurement data of other time points besides the target time point closest to the prediction time step among multiple time points to obtain candidate time series prediction models; evaluating the generalization error of the candidate time series prediction model using the energy consumption measurement data of the target time point to obtain the generalization index value of the candidate time series prediction model; obtaining the baseline generalization index value of the time series prediction model; determining a dynamic threshold based on the baseline generalization index value and a preset deviation rate; updating the time series prediction model to a candidate time series prediction model if the generalization index value does not exceed the dynamic threshold; and discarding the candidate time series prediction model if the generalization index value exceeds the dynamic threshold.

[0012] According to an embodiment of the present invention, the preset deviation rate is dynamically determined based on the current load fluctuation rate of the target area; wherein, when it is determined that the load fluctuation rate is lower than a preset fluctuation threshold, the preset deviation rate is a first deviation rate value; when it is determined that the load fluctuation rate is not lower than the preset fluctuation threshold, the preset deviation rate is a second deviation rate value, and the second deviation rate value is greater than the first deviation rate value.

[0013] Another aspect of the present invention provides a load forecasting device, comprising: an acquisition module for acquiring energy consumption measurement data, unstructured building operation event record data, and environmental data of a target building within a target area at various time points in a historical time period; an identification module for identifying event entities in the building operation event record data and determining the occurrence timestamp of the event entity, as well as the influence trend and influence time window of the event entity on energy consumption; a forecasting module for predicting the initial forecast load value generated in the target area within a forecast time step based on the energy consumption time-series characteristics of the energy consumption measurement data at multiple time points and the environmental characteristics of the environmental data, using a time series forecasting model; a first determination module for determining the load disturbance amount generated by the event entity within the forecast time step based on the occurrence timestamp and influence trend when the forecast time step is within the influence time window; and a second determination module for determining the forecast load value of the target area within the forecast time step based on the initial forecast load value and the load disturbance amount.

[0014] According to embodiments of the present invention, by identifying event entities in building operation event record data, the event's occurrence timestamp, impact trend, and impact time window can be extracted. When the prediction time step is within the impact time window, the load disturbance generated by the event entity within the prediction time step is determined based on the occurrence timestamp and impact trend. This introduces unstructured building operation event record data into the load forecasting process and transforms event impacts into quantifiable load disturbances. Based on this, the predicted load value of the target area within the prediction time step is determined based on the load disturbance and the initial predicted load value. This enables precise positioning and quantitative compensation of event-induced energy consumption mutations on the time axis, avoiding load forecasting deviations caused by events such as ad-hoc meetings, equipment start-ups and shutdowns, and holiday arrangements, thereby improving the load forecasting accuracy of the park under multiple scenarios and non-stationary operating conditions. Attached Figure Description

[0015] The above and other objects, features and advantages of the present invention will become clearer from the following description of embodiments of the invention with reference to the accompanying drawings.

[0016] Figure 1 A flowchart of a load forecasting method according to an embodiment of the present invention is shown.

[0017] Figure 2 A data flow diagram for determining predicted load values ​​according to an embodiment of the present invention is shown.

[0018] Figure 3 A schematic diagram of a pre-constructed energy consumption time profile according to an embodiment of the present invention is shown.

[0019] Figure 4 A comparison chart of the day-ahead prediction performance and event attribution of the time series prediction model according to an embodiment of the present invention is shown.

[0020] Figure 5 A flowchart illustrating the load forecasting method according to an embodiment of the present invention is shown.

[0021] Figure 6 A block diagram of a load forecasting apparatus according to an embodiment of the present invention is shown. Detailed Implementation

[0022] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the invention. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the invention for ease of explanation. However, it will be apparent that one or more embodiments may be implemented without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concept of the invention.

[0023] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. The terms “comprising,” “including,” etc., as used herein indicate the presence of features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0024] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.

[0025] When using expressions such as "at least one of A, B and C", they should generally be interpreted in accordance with the meaning that is commonly understood by those skilled in the art (e.g., "a system having at least one of A, B and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B and C, etc.).

[0026] In realizing the concept of this invention, it was discovered that current building energy management systems' time-series forecasting models in the load forecasting stage cannot identify events such as temporary large-scale meetings, sudden equipment failures and start-ups / shutdowns, and extreme weather changes. These events impact the load; for example, equipment maintenance can cause incremental or decremental impacts on the instantaneous load at the 5-minute level during specific time periods. This leads to reduced prediction accuracy of the time-series forecasting model when facing sudden disturbances, resulting in deviations in day-ahead scheduling and real-time control. Furthermore, in reality, records of these events are mostly unstructured text data, such as maintenance work orders, meeting notices, and weather warnings, which are difficult to directly quantify into numerical model inputs, leading to low efficiency in attributing load anomalies.

[0027] Based on this, embodiments of the present invention provide a load forecasting method and a load forecasting device. The method includes: acquiring energy consumption measurement data, unstructured building operation event record data, and environmental data of a target building within a target area at various time points within a historical time period; identifying event entities in the building operation event record data and determining the occurrence timestamps of the event entities, as well as the influence trend and influence time window of the event entities on energy consumption; based on the energy consumption time-series characteristics of the energy consumption measurement data at multiple time points and the environmental characteristics of the environmental data, using a time series forecasting model to predict the initial predicted load value generated in the target area within a prediction time step; if the prediction time step is within the influence time window, determining the load disturbance amount generated by the event entities within the prediction time step based on the occurrence timestamps and influence trends; and determining the predicted load value of the target area within the prediction time step based on the initial predicted load value and the load disturbance amount.

[0028] The following will be through Figures 1-5 The load forecasting method of the present invention will be described in detail.

[0029] Figure 1 A flowchart of a load forecasting method according to an embodiment of the present invention is shown.

[0030] like Figure 1 As shown, the load forecasting method includes operations S110 to S150.

[0031] In operation S110, energy consumption measurement data, unstructured building operation event record data, and environmental data of the target building in the target area at various time points in the historical time period are obtained.

[0032] In operation S120, the event entities in the building operation event record data are identified, and the occurrence timestamps of the event entities, as well as the trend and time window of the event entities' impact on energy consumption, are determined.

[0033] In operation S130, based on the energy consumption time-series characteristics of energy consumption measurement data at multiple time points and the environmental characteristics of environmental data, a time series prediction model is used to predict the initial predicted load value generated in the target area within the prediction time step.

[0034] In operation S140, if the prediction time step is within the influence time window, the amount of load disturbance generated by the event entity within the prediction time step is determined based on the occurrence timestamp and influence trend.

[0035] In operation S150, the predicted load value of the target area within the prediction time step is determined based on the initial predicted load value and the load disturbance amount.

[0036] In this embodiment, the target area can be understood as a spatial range requiring energy management, such as a park, building complex, or individual building. The target building can be understood as the physical building or its components within the target area that specifically implements energy consumption prediction. The historical time period can be a continuous time interval before the current prediction time for the target building, or it can be the time interval during which the target building operated before the current prediction time. The length of the historical time period can be flexibly set according to the prediction scenario; for example, for day-ahead prediction, the past 30 to 90 days can be selected as the historical time period. Energy consumption measurement data can be instantaneous power, cumulative consumption, and other time-series numerical data collected and reported by smart metering instruments deployed in the target building at a fixed sampling period. These data are used as physical quantities representing the actual energy consumption status of the building. For example, instantaneous power consumption, heating and cooling loads, and operating conditions of core HVAC equipment at the 5-minute level.

[0037] Unstructured building operation event log data can be understood as various business records or text information that may affect building energy consumption, recorded or collected during the building's usage phase. This data primarily exists in natural language text form, including but not limited to maintenance work orders, meeting schedules, equipment alarm logs, holiday notices, and weather warnings. A key characteristic of building operation event log data is that the information is embedded in semantic expressions without a fixed format, making it unsuitable for direct input as numerical features into time series prediction models.

[0038] Environmental data can be understood as external meteorological conditions that are strongly related to building energy consumption. These can include outdoor temperature, relative humidity, solar radiation intensity, and wind speed, and are usually obtained from the park's meteorological station or third-party meteorological service interfaces.

[0039] Identifying event entities in building operation event log data can be achieved using a Large Language Model (LLM) as a natural language parsing engine. Specifically, when calling the LLM, the model is guided to perform entity recognition, which can extract event entities from unstructured building operation event log data, such as event entity 1 "introduction of large high-energy-consuming equipment" and event entity 2 "long-term closed construction".

[0040] The occurrence timestamp can be understood as the actual start time of an event entity, used to determine the starting position of the disturbance on the timeline. For consecutive missing occurrence timestamps or abnormal zero values, a mean-filling strategy can be used for repair.

[0041] The influence trend can be understood as a comprehensive representation of the impact of an event entity on building energy consumption.

[0042] The impact window can be understood as the time interval from the beginning of an event to the gradual fading of its impact. For example, the impact window of a large conference is usually 1 to 2 hours from the start of the conference to the end, to simulate the ramp-up and drop-off process of air conditioning, lighting and equipment load.

[0043] For example, fitting the initial predicted load value generated in the target area within the prediction time step may include: performing nonlinear regression fitting on energy consumption measurement data and environmental data at multiple time points, determining the mapping relationship between energy consumption measurement data and environmental data and load value, and calculating the initial predicted load value corresponding to the prediction time step based on the mapping relationship.

[0044] If the current prediction time step is within the impact time window marked by a certain event entity, the load disturbance calculation logic is triggered.

[0045] Based on the initial predicted load value and load disturbance, the predicted load value for the target area within the predicted time step is determined. Specifically, the predicted load value, which integrates conventional baseline patterns and unstructured building operation event impacts, can be obtained by algebraically superimposing the initial predicted load value and the load disturbance.

[0046] According to embodiments of the present invention, by identifying event entities in building operation event record data, the event's occurrence timestamp, impact trend, and impact time window can be extracted. When the prediction time step is within the impact time window, the load disturbance generated by the event entity within the prediction time step is determined based on the occurrence timestamp and impact trend. This introduces unstructured building operation event record data into the load forecasting process and transforms event impacts into quantifiable load disturbances. Based on this, the predicted load value of the target area within the prediction time step is determined based on the load disturbance and the initial predicted load value. This enables precise positioning and quantitative compensation of event-induced energy consumption mutations on the time axis, avoiding load forecasting deviations caused by events such as ad-hoc meetings, equipment start-ups and shutdowns, and holiday arrangements, thereby improving the load forecasting accuracy of the park under multiple scenarios and non-stationary operating conditions.

[0047] According to another embodiment of the present invention, the energy consumption measurement data at various time points within the acquired historical time period can also be preprocessed. Preprocessing may include filtering out extreme values ​​in the energy consumption measurement data using a statistical algorithm based on the Median Absolute Deviation (MAD). For example, the energy consumption measurement data sequence at various time points within the historical time period can be set as follows: The formula for calculating the absolute deviation of the median is:

[0048] ;

[0049] in, Indicates the absolute deviation of the median. This represents the median. This represents a sequence of energy consumption measurement data at n points in a historical time period. The Middle Data sample values ​​corresponding to each time point, Represents the absolute value. The data sample value at a given point in time. satisfy Among them, the optimal selection coefficient Then determine the data sample value. Extreme values, i.e. extreme physical anomalies and disturbances, are removed and smoothed by interpolation to ensure the stability of the energy consumption measurement data sequence.

[0050] According to embodiments of the present invention, the influence trend may include the influence direction, the basic influence weight, and the influence fluctuation magnitude level. Regarding the above... Figure 1The operation S140 shown determines the load disturbance generated by the event entity within the prediction time step based on the occurrence timestamp and the influence trend. This includes: determining the peak load disturbance of the event entity according to the influence fluctuation amplitude level and the basic influence weight; determining the distribution weight of the peak load disturbance within the influence time window based on the time offset of the prediction time step relative to the peak center, with the occurrence timestamp as the peak center; determining the sign of the load disturbance generated by the event entity within the prediction time step according to the influence direction; and determining the load disturbance generated by the event entity within the prediction time step according to the sign, the peak load disturbance, and the distribution weight.

[0051] In this embodiment, the direction of influence can be understood as the direction in which an event entity affects energy consumption, and can include positive and negative disturbances. A positive disturbance indicates that the event entity increases energy consumption, such as temporary meetings, equipment startup, or gatherings of people; a negative disturbance indicates that the event entity reduces energy consumption, such as equipment shutdown, holiday arrangements, or area closures. The direction of influence can be obtained by semantically parsing unstructured building operation event record data using a large language model. For example, it can identify semantic features such as "on / off," "hosted / cancelled," and "maintained / discontinued" in the event text, and classify them as positive or negative disturbances according to preset building energy consumption domain judgment rules.

[0052] The basic impact weight can be understood as a pre-configured baseline impact coefficient for the category to which the event entity belongs. The basic impact weight reflects the average physical magnitude of the energy consumption impact of this type of event per unit amplitude, and can be obtained through statistical analysis of historical data from similar events or offline experimental fitting. Event entity categories include, for example, equipment maintenance, large conferences, and holiday arrangements.

[0053] The impact fluctuation amplitude level can be understood as a fluctuation intensity scale value assigned to an event entity by a large language model when parsing unstructured building operation event record data, based on a classification rule according to the physical impact range. This value characterizes the degree of energy consumption deviation expected to be caused by the event. The impact fluctuation amplitude level can include levels 1 to 5. For example, the correspondence between each impact fluctuation amplitude level and the event entity is shown below.

[0054] Level 1: Localized, single-point events, such as the reservation of a meeting room, with minimal expected impact on energy consumption.

[0055] Level 2: Regional events, such as extended usage time in a single-story building, resulting in a certain deviation in expected energy consumption.

[0056] Level 3: Routine events at the subsystem or building level, such as the start-up and shutdown of district HVAC systems, with significant fluctuations in expected energy consumption.

[0057] Level 4: Events that cross building or core equipment levels, such as the introduction of large, high-energy-consuming equipment, which are expected to lead to a high intensity increase or decrease in system-level load.

[0058] Level 5: Global extreme conditions, such as long-term closed construction of the entire park, causing a fundamental change in the baseline load.

[0059] For example, the magnitude of the impact fluctuation of an event entity can be multiplied by the corresponding basic impact weight to calculate the maximum load disturbance that the event entity can achieve within the impact time window. It is understood that the peak load disturbance usually occurs when the impact of the event is most intense, such as the peak electricity consumption period during a meeting.

[0060] Using the occurrence timestamp as the peak center, the distribution weight of the peak load disturbance within the influence time window is determined based on the time offset of the predicted time step relative to the peak center. Specifically, a time decay / activation function, such as a Gaussian distribution function or a quasi-normal distribution function, is introduced. The occurrence timestamp is used as the distribution peak position. The time difference between the current predicted time step and the occurrence timestamp is calculated, and the distribution weight corresponding to that moment is determined based on the relative position of the time difference within the influence time window. This is used to simulate the physical hysteresis effect of unstructured building operation event impacts climbing to a peak and then falling back over time. It can be understood that the closer to the peak center, the greater the distribution weight; the farther away from the peak center, the closer the distribution weight approaches zero.

[0061] Based on the direction of influence, the sign of the load disturbance generated by the event entity within the prediction time step is determined. Specifically, a mapping relationship between the direction of influence and the sign can be established in advance: when the direction of influence is positive, the sign of the load disturbance can be determined as +1; when the direction of influence is negative, the sign of the load disturbance can be determined as -1. The sign is determined solely by the direction of influence of the event entity and is independent of the sign of the time offset of the prediction time step relative to the peak center. That is, regardless of whether the prediction time step is before or after the occurrence timestamp, as long as the event entity is a positive disturbance, the sign of its load disturbance is always positive; and as long as the event entity is a negative disturbance, the sign of its load disturbance is always negative.

[0062] Based on the sign, peak load disturbance, and distribution weight, the load disturbance generated by the event entity within the prediction time step is determined. Specifically, the sign, peak load disturbance, and distribution weight corresponding to the current prediction time step can be multiplied to obtain the load disturbance generated by the event entity within the prediction time step.

[0063] According to an embodiment of the present invention, the peak load disturbance is determined by the basic influence weight and the influence fluctuation amplitude level. Then, with the occurrence timestamp as the peak center, the distribution weight is determined based on the time offset of the predicted time step within the influence time window relative to the peak center. Based on the influence direction, the sign of the load disturbance generated by the event entity within the predicted time step is determined. Finally, the load disturbance generated by the event entity within the predicted time step is determined based on the sign, the peak load disturbance, and the distribution weight. This decouples the impact of the event entity on energy consumption into three independently quantified dimensions: influence direction, peak intensity, and time distribution. This allows the load disturbance to exhibit a physically hysteretic distribution pattern that gradually decreases from the peak center towards both ends of the influence time window. This accurately reflects the non-stationary effect of events such as equipment start-up and shutdown, and personnel gathering on the load under the influence of physical hysteresis, enabling refined modeling of event-induced energy consumption mutations.

[0064] Figure 2 A data flow diagram for determining predicted load values ​​according to an embodiment of the present invention is shown.

[0065] like Figure 2 As shown, unstructured building operation event records, such as maintenance work orders, alarm logs, and meeting schedules, are used to identify event entities within these records. Structured tags for each event entity are output, including event type, impact time window, physical area of ​​effect, and impact fluctuation level. Based on the load disturbance amounts 1, 2, ..., n generated by each event entity at the predicted time step, the total load disturbance amount is determined. Based on the initial predicted load value and total load disturbance Determine the predicted load value within the target area at the predicted time step. .

[0066] According to an embodiment of the present invention, when the event entities are determined to include multiple entities, the load forecasting method further includes: superimposing the load disturbances generated by each event entity within the forecast time step to obtain the total load disturbance of the multiple event entities within the forecast time step; and determining the forecast load value in the target area within the forecast time step based on the initial forecast load value and the total load disturbance.

[0067] In this embodiment, during the building operation in the target area, two or more event entities may exist within the same prediction time step. For example, at a certain moment, there may be two independent events simultaneously: event entity A "Large meeting held in the auditorium of Building A" and event entity B "Equipment maintenance in Building B," both of which affect the energy consumption within the same prediction time step. In this case, it is necessary to comprehensively evaluate the coupling effect of multiple events on the load, rather than treating a single event in isolation.

[0068] When multiple event entities exist simultaneously, the load disturbance of each event entity within the same prediction time step is calculated independently, i.e., the power increase or decrease of that event entity. The load disturbances of all event entities within the prediction time step are then summed to obtain the total load disturbance generated by the combined effect of all event entities at the current prediction time step. This summing method is based on the principle of energy conservation, assuming that the impact of multiple event entities on the total building load satisfies linear additivity in the power domain, which has a reasonable approximation under the actual physical characteristics of building energy consumption. Specifically, the formula for calculating the total load disturbance is:

[0069] ;

[0070] in, This represents the total load disturbance. Indicates the direction of influence. ,exist A value of +1 indicates a positive disturbance. A value of -1 indicates a negative disturbance. This indicates the number of event entities within the current prediction time step. Indicates that for the first The basic influence weight of event entities, Indicates that for the first The magnitude of the impact fluctuation of similar event entities . Indicates the prediction time step. Indicates the timestamp of the occurrence. Indicates the time offset. This represents the time decay / activation function.

[0071] The initial predicted load value output by the time series forecasting model is algebraically superimposed and summed with the total load disturbance to obtain the predicted load value within the target area at the predicted time step. Specifically, the formula for calculating the predicted load value is as follows:

[0072] ;

[0073] in, Indicates the predicted load value. This represents the initial predicted load value.

[0074] According to an embodiment of the present invention, when multiple event entities are identified, the load disturbances generated by each event entity within the prediction time step are superimposed to obtain the total load disturbance. The predicted load value within the target area is then determined based on the initial predicted load value and the total load disturbance. This allows for the comprehensive consideration of the independent load disturbances generated by each event entity when multiple event entities exist at the same prediction time step. Furthermore, algebraic superposition enables the unified quantification and fusion of multi-source load disturbances at the same prediction time step. Since different event entities may exhibit opposite influence trends, superposition reflects the combined disturbance result after the combined action of multiple event entities, ensuring that the predicted load value maintains high accuracy and reliability even under complex operating conditions with multiple scenarios and concurrent events in the park.

[0075] Figure 3 A schematic diagram of a pre-constructed energy consumption time profile according to an embodiment of the present invention is shown.

[0076] like Figure 3 As shown, unstructured building operation events are treated as event entity nodes. The attributes of these event entity nodes can include event summary, occurrence timestamp, impact time window, and confidence level. Specific physical buildings or subsystems are instantiated as building load end nodes. The attributes of these building load end nodes include target building, building type, geographical location, and prediction target. Relationships can include the level of impact fluctuation (1-5), impact trend, and impact type. This generates an energy consumption event map with event entity nodes pointing to building load end nodes as the core association.

[0077] Figure 3 The attributes of event entity node 1 are: introduction of large, high-energy-consuming equipment, occurrence timestamp of 2025-11, impact time window of long-term, and confidence level of 0.95. The attributes of event entity node 2 are: long-term closed construction, occurrence timestamp of 2026-01, impact time window of 2 months, and confidence level of 0.98. The attributes of the building load end node are: a smart campus, building type of building complex, geographical location of XX province XX city XX district, and prediction target of total electricity load. The association between event entity node 1 and the building load end node is: impact fluctuation level of 4, impact direction of +1, basic impact weight of 1.5, and impact type of permanent change. The association between event entity node 2 and the building load end node is: impact fluctuation level of 5, impact direction of -1, basic impact weight of 2.0, and impact type of temporary change. It should be noted that the above values ​​and types are only illustrative examples and should not be used to limit the scope of protection of this invention. Those skilled in the art can set other values, levels, and impact types based on actual building scenarios, historical data statistics, or offline experimental fitting results.

[0078] According to embodiments of the present invention, regarding the above-mentioned Figure 1 The operation S120 shown identifies event entities in the building operation event record data and determines the occurrence timestamps of the event entities, as well as the impact trend and impact time window of the event entities on energy consumption. This includes: identifying event entities in the building operation event record data and filtering out invalid event entities that do not meet the preset building energy consumption domain judgment rules to obtain unfiltered event entities and their occurrence timestamps; if it is determined that the event entity exists in the pre-constructed energy consumption event map, obtaining the association relationship between the event entity and the building load end from the energy consumption event map to obtain the impact trend and impact time window. The energy consumption event map is constructed with event entities and building load ends as nodes and the association relationship between event entities and building load ends as edges. The association relationship includes the impact trend and impact time window of the event entity on energy consumption; if it is determined that the event entity does not exist in the energy consumption event map, performing semantic parsing on the data associated with the event entity in the building operation event record data to determine the impact trend and impact time window.

[0079] In this embodiment, when using a large language model to identify event entities in building operation event record data, a preset building energy consumption audit domain judgment rule can be introduced as a filter. This filter performs validity checks and screening on the initially identified event entities, removing invalid event entities that do not meet the preset building energy consumption domain judgment rule, thus obtaining the unfiltered event entities and their timestamps. Specifically, a preset strong subject verification rule removes event entities unrelated to the local park or target building, such as activity notifications from non-target areas. A preset formalism immunity rule filters events in daily routine activities that have no substantial impact on energy consumption, such as regular office sign-in. This ensures that the retained event entities are all valid events with the potential to have a real impact on building energy consumption, and their timestamps are simultaneously extracted as the time positioning benchmark for subsequent quantitative calculations.

[0080] Once it is confirmed that the event entity exists in the pre-built energy consumption event map, the correlation between the event entity and the building load end is obtained from the energy consumption event map to obtain the influence trend and influence time window. Specifically, the identified event entity is identified as the query key, and an existence search is performed on the pre-built energy consumption event map. If there is already a correlation edge in the map that represents the correlation between the event entity and the building load end, the attribute information stored on the correlation edge is read, and the influence trend and influence time window corresponding to the event entity are parsed from it. In this map, the energy consumption event map is pre-defined with event entities and building load ends as two types of core nodes, and the correlation edge pointing from the event entity to the building load end is used as the carrier of the correlation relationship. The attribute fields of the correlation edge store key information such as influence trend and influence time window.

[0081] If an event entity is determined not to exist in the energy consumption event map, semantic analysis is performed on the data associated with the event entity in the building operation event record data to determine the impact trend and impact time window. Specifically, for an event entity not present in the energy consumption event map, similar event entities with the same impact fluctuation level in the energy consumption event map can be matched based on the impact fluctuation level of the event entity. The basic impact weight of the similar event entity is used as the initial weight, or set as the default weight value. This initial weight can be gradually converged to the actual impact fluctuation level through residual-driven closed-loop correction after subsequent actual energy consumption, thereby determining the impact trend and impact time window.

[0082] According to embodiments of the present invention, a pre-constructed energy consumption event graph is used, with event entities and building load ends as nodes and relationships as edges, to achieve structured storage and querying of the impact parameters of event entities. For event entities existing in the pre-constructed energy consumption event graph, the impact trend and impact time are determined through the pre-constructed energy consumption event graph. For new event entities that do not have a corresponding energy consumption event graph, the basic impact weights of similar event entities in the energy consumption event graph can be used as initial weights or default weight values ​​can be set to determine the impact trend and impact time window. This improves the source of obtaining the impact parameters of event entities from repeated semantic parsing to a mechanism that primarily relies on energy consumption event graph queries and is supplemented by real-time semantic parsing, balancing inference efficiency and the ability to generalize to new event entities.

[0083] According to an embodiment of the present invention, the influence trend includes the influence direction, the influence fluctuation level, and the basic influence weight. The load forecasting method further includes: obtaining the actual load value within the forecast time step and the historical load standard deviation of the target building; determining the update step size of the basic influence weight based on the residual between the actual load value and the forecast load value, the influence direction, the influence fluctuation level, the historical load standard deviation, and the historical occurrence frequency of the event entity; and updating the basic influence weight according to the update step size.

[0084] In this embodiment, the actual load value within the predicted time step can be obtained by reading the actual load value at the corresponding moment of the predicted time step from the metering instrument after the actual energy consumption occurs, and then used for feedback correction. The historical load standard deviation of the target building can be obtained by retrieving the load sequence of the target building within a preset historical time window from the historical database, calculating its standard deviation, and using it to measure the normal physical fluctuation range of the target building's load.

[0085] Based on the residual between the actual and predicted load values, the direction of influence, the level of influence fluctuation, the historical load standard deviation, and the historical frequency of event entities, the update step size of the basic influence weights is determined. This can be achieved using a reverse update formula with a forgetting factor. For example, the residual between the actual and predicted load values ​​is calculated using the following formula:

[0086] ;

[0087] in, Represents the residual. This represents the actual load value.

[0088] The basic influence weights are updated according to the update step size. The calculated update step size is then added to the currently stored basic influence weights. Specifically, the formula for updating the above basic influence weights is as follows:

[0089] ;

[0090] in, This indicates the updated base impact weight. This indicates the base impact weight before the update. This indicates the update step size.

[0091] According to an embodiment of the present invention, by acquiring the actual load value and the historical load standard deviation of the target building within the prediction time step, the update step size of the basic influence weight is determined jointly based on the residual between the actual load value and the predicted load value, the direction of influence, the level of influence fluctuation, the historical load standard deviation, and the historical occurrence frequency of the event entity. The basic influence weight is then dynamically updated according to the update step size, achieving a true closed-loop feedback of energy consumption event spectrum parameters. This overcomes the limitation that static weights cannot adapt to the time-varying characteristics of building operating conditions, enabling the basic influence weights to be continuously corrected as the actual energy consumption response characteristics of the building change. Furthermore, by introducing the historical load standard deviation as a physical constraint boundary for the update step size, it ensures that the weight update is carried out within a safe and stable range, improving the prediction stability and reliability of the time series prediction model.

[0092] According to an embodiment of the present invention, the update step size of the basic influence weight is determined based on the residual between the actual load value and the predicted load value, the direction of influence, the level of influence fluctuation, the historical load standard deviation, and the historical occurrence frequency of the event entity. This includes: determining an adaptive adjustment coefficient based on the comparison result between the absolute value of the residual and the historical load standard deviation; determining the initial update amount of the basic influence weight based on the product of the direction of the residual and the direction of influence, the level of influence fluctuation, and the adaptive adjustment coefficient; determining a stability penalty term based on the historical occurrence frequency; and using the stability penalty term to attenuate the initial update amount to obtain the update step size.

[0093] In this embodiment, to prevent abnormal extreme values ​​such as sudden malfunctions of metering instruments and other sensors, a standard deviation of the historical load based on the target building is introduced. The segmented truncation correction mechanism can be based on the absolute value of the residual between the actual load value and the predicted load value. Standard deviation of historical load of the target building Numerical comparisons are performed, and adaptive adjustment coefficients are dynamically determined based on the range of the comparison results. The value of .

[0094] According to residuals Direction, direction of influence Level of influence on fluctuation amplitude and adaptive adjustment coefficient This determines the initial update amount of the basic influence weights. It is understandable that the residuals... The sign of the residual indicates its direction, and its absolute value represents the magnitude of the prediction bias. By using the residual... and direction of influence Multiplication, that is The sign of the variable is used to determine whether the current base influence weight is too low or too high. For example, when... When the actual load change direction is consistent with the expected impact direction of the event and the actual magnitude is greater, it means that the actual impact of the event entity is greater than the estimated impact represented by the current basic impact weight, and the basic impact weight needs to be increased positively; when If the actual load change direction is opposite to the expected impact direction of the event or the actual magnitude is smaller, it means that the actual impact of the event entity is less than the estimated impact represented by the current basic impact weight, and the basic impact weight needs to be negatively reduced. Specifically, the formula for calculating the initial update of the basic impact weight is:

[0095] ;

[0096] in, This indicates the initial update amount.

[0097] A stability penalty term is determined based on the historical frequency of an event entity within a preset historical time window. Understandably, the stability penalty term decreases as the historical frequency of an event entity increases. For example, for frequently occurring, routine event entities, the update step size of their basic influence weights is appropriately compressed to prevent excessive oscillations or overfitting biases caused by the repeated occurrence of a single type of event; for rarely occurring event entities, the basic influence weights are allowed to be updated with a larger update step size to respond to the physical patterns of newly emerging event entities.

[0098] Utilizing stable penalty items For the initial update amount A decay process is performed to obtain the update step size. Specifically, the formula for calculating the update step size is:

[0099] .

[0100] According to an embodiment of the present invention, an adaptive adjustment coefficient is determined by comparing the absolute value of the residual with the historical load standard deviation. The initial update amount is determined based on the direction of the residual, the level of influence fluctuation, and the adaptive adjustment coefficient. After determining a stability penalty term based on historical occurrence frequency, the initial update amount is attenuated to obtain the update step size. This achieves step-by-step quantification and independent control of the core parameters of the update step size. The adaptive adjustment coefficient uses the historical load standard deviation as a physical benchmark to ensure that the update step size is always within a safe range that matches the building's own fluctuation characteristics, preventing destructive updates caused by abnormal extreme values. The direction of the residual provides a correct physical guide for the correction of basic influence weights. The influence fluctuation level is introduced into the calculation to ensure that the update of the basic influence weights of different event entities matches their physical influence magnitude. The stability penalty term appropriately attenuates the initial update amount based on the historical occurrence frequency of the event entity, preventing excessive driving of weights by high-frequency recurring events and suppressing the risk of weight oscillation and overfitting. Based on the synergistic effect of the above multiple mechanisms, while ensuring the correctness of the update direction of the basic influence weights and the safety of the influence fluctuation amplitude, the stable convergence capability and online evolution robustness of the update of the basic influence weights in long-term deployment are improved.

[0101] According to an embodiment of the present invention, determining an adaptive adjustment coefficient based on a comparison between the absolute value of the residual and the historical load standard deviation includes: setting the adaptive adjustment coefficient to a preset lower limit when the absolute value of the residual does not exceed the historical load standard deviation; setting the adaptive adjustment coefficient to a preset upper limit when the absolute value of the residual exceeds three times the historical load standard deviation; and determining the adaptive adjustment coefficient based on the absolute value of the residual when the absolute value of the residual exceeds the historical load standard deviation but does not exceed three times the historical load standard deviation, wherein the adaptive adjustment coefficient is positively correlated with the absolute value of the residual.

[0102] In this embodiment, based on the absolute value of the residual Standard deviation of historical load Based on the comparison results, determine the adaptive adjustment coefficient. Specifically, this applies when the absolute value of the residual does not exceed the historical load standard deviation, i.e., when... If the current comparison result is determined to be within the normal physical fluctuation range of the building, the coefficient will be adaptively adjusted. The preset lower limit is set to the limit of the hardware measurement error of the underlying smart meter, such as the physical accuracy threshold of a 0.5 or 1.0 level meter. Only the basic influence weights are subjected to smooth fine-tuning with a very small step size to prevent the time series prediction model from overfitting to normal data noise.

[0103] When the absolute value of the residual exceeds the historical load standard deviation but does not exceed three times the historical load standard deviation, that is, when If the current comparison result is determined to exceed normal fluctuations but is still within a reasonable physical range, then the adaptive adjustment coefficient can be used. It is linearly amplified in direct proportion to the absolute value of the residual, so as to drive the weight to quickly approximate the true impact.

[0104] When the absolute value of the residual exceeds three times the historical load standard deviation, that is, when At this point, according to statistical principles, the probability of a residual deviating from the mean by more than three standard deviations is extremely low. It is determined that this residual is most likely caused by physical faults such as sensor disconnection or data packet loss. In this case, a protection mechanism is triggered, ceasing further amplification of the learning rate and instead adjusting the adaptive adjustment coefficient that affects the weight update in a single basic iteration. The value is locked by Within the calculated dynamic safety limit, the coefficient will be adaptively adjusted. Setting a preset upper limit ensures the safety and stability of online feedback updates from a physical mechanism perspective, preventing abnormal extreme values ​​from causing destructive updates to the basic impact weights.

[0105] According to an embodiment of the present invention, the value of the adaptive adjustment coefficient is determined by segmenting the absolute value of the residual with the historical load standard deviation. When the absolute value of the residual does not exceed the historical load standard deviation, the adaptive adjustment coefficient is set to a preset lower limit to avoid over-responding to small deviations within the normal physical fluctuation range and to prevent unnecessary oscillations in the basic influence weights due to inherent building noise. When the absolute value of the residual exceeds three times the historical load standard deviation, the adaptive adjustment coefficient is locked to a preset upper limit to prevent outliers caused by rare abnormal conditions such as sensor disconnection and data loss from triggering destructive large-step updates, thus ensuring the physical security of the basic influence weight adjustment. When the absolute value of the residual is between one and three times the historical load standard deviation, the adaptive adjustment coefficient is positively correlated with the absolute value of the residual, ensuring that when the error is caused by the mismatch of the basic influence weights of the event entity, the update step size is reasonably amplified with the degree of deviation, driving the weights to quickly approach the true influence amount. Based on the above segmented control strategy, the stable operation of the basic influence weights under normal operating conditions is ensured, rapid correction under significant deviations is achieved, and a physical safety boundary is constructed under high-risk extreme values, thus improving the accuracy, efficiency, and stability of the basic influence weight update.

[0106] According to an embodiment of the present invention, fitting the initial predicted load value generated by the target region within the prediction time step may include: historical energy consumption time-series features composed of energy consumption measurement data from multiple time points, and meteorological time-series features composed of environmental data from multiple time points. The historical energy consumption time-series features, meteorological time-series features, and time-period features from multiple time points can be concatenated after time alignment to obtain a multi-dimensional time series matrix. This multi-dimensional time series matrix is ​​then input into a pre-trained time series prediction model, which outputs the initial predicted load value for that prediction time step. The time series prediction model can employ a Long Short-Term Memory (LSTM) network, with the following structure: the input layer dimension equal to the dimension of the concatenated multi-dimensional time series matrix; the hidden layer consists of two LSTM units, each with a hidden state dimension of 64; and the output layer is a fully connected layer with an output dimension of 1. The activation function can be tanh, the loss function can be mean absolute error, the optimizer can be Adam, and the learning rate can be set to 0.001. During training, a sliding time window method can be used to construct training samples. For example, using the multidimensional time series matrix of samples corresponding to multiple time steps before a preset duration as model input, and the actual load value of the next time step after the preset duration as supervision label, multiple sets of training samples are generated by sliding a window along the time axis. The training samples are input into the model, and the model parameters are iteratively optimized using the backpropagation algorithm with the goal of minimizing the mean absolute error, until the loss value no longer decreases or a preset number of training rounds are reached, resulting in a well-trained time series prediction model. This time series prediction model is used to fit a steady-state load baseline that is only affected by weather and fixed work schedules.

[0107] It should be noted that the structure and parameters of the LSTM described above are only illustrative examples. Other time series forecasting models that can process multidimensional time series data and output load forecasts, such as extreme gradient boosting (XGBoost), can also be used as specific implementations of time series forecasting models.

[0108] In implementing the embodiments of the present invention, it was found that the accuracy of static time series prediction models inevitably declines as the park environment changes and equipment ages. If the latest energy consumption measurement data is used to train the model on a full coverage basis, it is easy to cause overfitting of the time series prediction model, thereby causing scheduling errors and production risks.

[0109] Based on this, in another embodiment of the present invention, the load forecasting method further includes: retraining the time series forecasting model using multi-time window rolling cross-validation based on energy consumption measurement data of other time points besides the target time point closest to the forecast time step among multiple time points to obtain candidate time series forecasting models; evaluating the generalization error of the candidate time series forecasting models using the energy consumption measurement data of the target time point to obtain the generalization index value of the candidate time series forecasting models; obtaining the baseline generalization index value of the time series forecasting models; determining a dynamic threshold based on the baseline generalization index value and a preset deviation rate; updating the time series forecasting model to a candidate time series forecasting model if the generalization index value does not exceed the dynamic threshold; and discarding the candidate time series forecasting model if the generalization index value exceeds the dynamic threshold.

[0110] In this embodiment, the energy consumption measurement data of the target time point closest to the prediction time step can be isolated from the energy consumption measurement data of other time points according to the chronological order of the energy consumption measurement data. The energy consumption measurement data of the other time points are used as the training set, and the time series prediction model is retrained using multi-time window rolling cross-validation to obtain the candidate time series prediction model.

[0111] Specifically, the target event point closest to the current prediction time step can be understood as the end of the time axis. For example, the energy consumption measurement data of the latest day can be isolated as a whole and marked as the energy consumption measurement data of the target time point. The energy consumption measurement data of the target time point is completely shielded from the time series prediction model during the model retraining phase.

[0112] Multi-time-window rolling cross-validation can be understood as dividing the energy consumption measurement data of other time points into multiple consecutive time windows in chronological order. Each time window contains a training interval and a validation interval immediately following the training interval. In each validation iteration, the time series prediction model is trained using the data of the current training interval, and the trained model is validated using the data of the validation interval immediately following the training interval. The training interval and validation interval are then slid along the time axis with a preset step size, and the above training and validation process is repeated until all data from other time points have been traversed to obtain a candidate time series prediction model.

[0113] Energy consumption measurement data at the target time point is input into a candidate time series prediction model for generalization error evaluation. This allows the candidate time series prediction model to make forward predictions on the energy consumption measurement data at the target time point, and the prediction results are compared with the actual measurement values ​​to obtain the generalization index value of the candidate time series prediction model. The generalization index value may include the mean absolute error (MAE), which is used to measure the prediction accuracy and generalization ability of the candidate time series prediction model on unknown data.

[0114] The baseline generalization metric can be obtained from the historical evaluation log of the time series prediction model. The baseline generalization metric can be understood as the benchmark mean absolute error value pre-calculated and recorded by the pre-trained and deployed time series prediction model, which is used as the basis for dynamic threshold calculation.

[0115] A dynamic threshold is determined based on the baseline generalization metric and the preset deviation rate. Specifically, the baseline generalization metric is multiplied by the preset deviation rate, and the formula for calculating the dynamic threshold is:

[0116] ;

[0117] in, Indicates a dynamic threshold. This represents the baseline generalization metric value. This indicates the preset deviation rate, which can be flexibly adjusted within the physical range according to actual operating conditions.

[0118] If the generalization metric of a candidate time series forecasting model does not exceed the dynamic threshold (i.e., is less than or equal to the dynamic threshold), the time series forecasting model is updated to a candidate time series forecasting model. This means that when the generalization metric of a candidate time series forecasting model is less than or equal to the dynamic threshold, it is determined that the candidate time series forecasting model has successfully learned the latest data patterns and has not overfitted, and its generalization ability has not degraded. At this point, a physical backup of the already deployed time series forecasting model can be performed, and the candidate time series forecasting model can be pushed online, completing the safe rolling update of the time series forecasting model.

[0119] If the generalization metric of a candidate time series prediction model exceeds a dynamic threshold, the candidate model will be discarded, and no update will be made. This means that when the generalization metric of a candidate model exceeds the dynamic threshold, it indicates that the training has encountered data noise pollution or severe generalization degradation. In this case, the request to deploy the candidate model is forcibly blocked, the trained candidate model is discarded, and the existing deployed model continues to provide services. Alarm information can also be output to avoid the risk of energy scheduling errors in the park due to model capability degradation.

[0120] It is understandable that the retraining of the above time series prediction model can be adapted to the actual prediction task by choosing the timing of retraining in order to update the time series prediction model that has been launched.

[0121] Figure 4 A comparison chart of the day-ahead prediction performance and event attribution of the time series prediction model according to an embodiment of the present invention is shown.

[0122] For example, taking the day-ahead electricity load forecasting scenario of a smart campus as an example, a large language model can be used to analyze, for instance, the forecasting of electricity load in a smart campus. Figure 4 The horizontal axis represents the unstructured building operation event records, such as the academic schedule, property holiday notices, and weather warnings, which are part of the verification set. For example, when faced with natural language text such as "holiday," "only afternoon classes on a certain day," or "large-scale conference held in mid-June / extreme high temperature," the large language model parsing engine can accurately extract the relevant information. Figure 4 The horizontal axis represents core event entities such as "holiday" and "afternoon classes." These event entities can be automatically mapped to fluctuation levels of 1-5 and stored in the energy consumption event map. In model prediction, a tree model with a quantile loss function can be activated to prioritize fitting regular weather and work-rest patterns closer to the current time, outputting the base load value, i.e., the initial predicted load value; when the prediction time step falls within the time window affected by events such as "holiday" or "large-scale meetings," the load disturbance can be output. The initial predicted load values ​​and load disturbances are summed, and then additional calculations are performed. The dynamic confidence interval is used to quantify and display the uncertainty risk boundary brought about by the above events, and finally outputs the load power consumption predicted by quantile.

[0123] like Figure 4 As shown, the drawing interface can be called to render and output the day-ahead prediction effect and event attribution comparison chart within the validation set date, demonstrating the comparative fitting trend of the validation set between the actual load and the load power consumption predicted by the quantiles in a smart campus day-ahead power load prediction scenario. Figure 4 The horizontal axis represents the time sequence within the validation set dates, and the vertical axis represents the load consumption. The orange solid line represents the quantile prediction corresponding to the predicted load value based on the load forecasting method of this invention, and the blue solid line represents the actual load. Figure 4 As can be seen from the impact time window of the event entities marked with extra red arrows, the load forecasting method provided by this invention can capture abnormal peaks and troughs of load within non-stationary impact time windows such as "holidays," "special scheduling," or "sudden events," demonstrating the effectiveness of the adaptive closed-loop mechanism and the ability to generalize against disturbances in the load forecasting method of this invention. Furthermore, the interval shading can show the random fluctuations in load, providing dispatchers with a reliable safety redundancy reference.

[0124] According to an embodiment of the present invention, by isolating the energy consumption measurement data of the target time point closest to the prediction time step, and retraining the already online time series prediction model using the energy consumption measurement data of other time points to obtain candidate time series prediction models, a generalization error evaluation is performed on the candidate time series prediction models based on the energy consumption measurement data of the target time point. The obtained generalization index value is compared with a dynamic threshold determined based on the baseline generalization index value and a preset deviation rate. If the generalization index value does not exceed the dynamic threshold, it is replaced by the candidate time series prediction model; otherwise, the candidate time series prediction model is discarded and the original online time series prediction model is retained. This solves the problem of performance degradation after iteration due to training data contamination or overfitting during model retraining. Since the model has not been exposed to the energy consumption measurement data of the target time point during the training phase, the generalization index value can truly reflect the prediction ability of the candidate time series prediction model when facing unknown future operating conditions, thus improving the model's generalization ability. In addition, the dynamic threshold ensures that the time series prediction model update decision has both objectivity and engineering tolerance, guaranteeing the robustness and reliability of the time series prediction model in the long-term dynamic evolution process, and avoiding energy scheduling errors and production safety risks caused by model degradation.

[0125] According to an embodiment of the present invention, the preset deviation rate is dynamically determined based on the current load fluctuation rate of the target area; wherein, when it is determined that the load fluctuation rate is lower than a preset fluctuation threshold, the preset deviation rate is a first deviation rate value; when it is determined that the load fluctuation rate is not lower than the preset fluctuation threshold, the preset deviation rate is a second deviation rate value, and the second deviation rate value is greater than the first deviation rate value.

[0126] In this embodiment, the preset deviation rate can be dynamically determined based on the current load fluctuation rate of the target area, for example, it can be set to... The physical range. Load volatility can be understood as a statistical indicator used to quantify the degree of fluctuation in the current energy consumption time series of a target area. For example, it can be defined as the ratio of the standard deviation to the mean of a recent historical load series, or the moving average of the absolute values ​​of load changes at adjacent time points. The higher the load volatility, the more significantly building energy consumption is affected by external weather, operational events, and other factors, and the more unstable the load pattern.

[0127] The preset fluctuation threshold can be determined based on the historical load fluctuation distribution characteristics of the target building or engineering experience. When the load fluctuation rate is determined to be lower than the preset fluctuation threshold, the preset deviation rate is the first deviation rate value. For example, when it is determined that the load fluctuation rate is low during a stable operating period such as the spring and autumn transition season, the preset deviation rate is set to a small first deviation rate value, namely 1%. The first deviation rate value is aligned with the hardware metering accuracy of the underlying smart meters, such as the Class 1.0 active energy meters commonly used in the power grid, whose inherent allowable error is 1%. Therefore, even during the period of most stable electricity consumption, the time series prediction model can tolerate the inherent noise caused by hardware sampling noise or small communication jitter, avoiding frequent false interception of the time series prediction model due to overly stringent thresholds.

[0128] When it is determined that the load fluctuation rate is not lower than a preset fluctuation threshold, the preset deviation rate is the second deviation rate value, which is greater than the first deviation rate value. For example, when it is determined that the load fluctuation rate reaches or exceeds the preset fluctuation threshold during a period of extreme high temperature or cold wave, the preset deviation rate is switched to a larger second deviation rate value, namely 5%. When a drastic shift in electricity consumption characteristics is detected, the entry boundary for updating the time series prediction model is actively relaxed to allow the candidate time series prediction model sufficient space to fit the sudden new electricity consumption trend. Thus, regardless of how drastic the external operating conditions are, the second deviation rate value is limited to within the engineering upper limit of 5% to ensure dispatch safety.

[0129] According to embodiments of the present invention, a preset deviation rate is dynamically determined based on the current load fluctuation rate of the target area. A smaller first deviation rate value is used when the load fluctuation rate is lower than a preset fluctuation threshold, and a larger second deviation rate value is used when the load fluctuation rate is not lower than the preset fluctuation threshold. This allows the preset deviation rate of the time series prediction model to adaptively adjust according to the severity of the actual energy consumption conditions of the building. For example, during stable operating periods such as spring and autumn, when load fluctuation is low, the deviation rate is tightened to a value close to the lower limit of hardware metering accuracy, preventing the introduction of candidate time series prediction models with reduced generalization ability due to an excessively wide threshold. During periods of extreme high temperatures or cold waves, sufficient space is provided for candidate time series prediction models to fit sudden new electricity consumption trends, avoiding the impact of an excessively narrow threshold on the normal launch of the time series prediction model. This achieves intelligent matching between the update tolerance of the time series prediction model and the operating conditions, further improving the prediction stability and engineering practicality of the time series prediction model in all scenarios and throughout the entire lifecycle.

[0130] Figure 5 A flowchart illustrating the load forecasting method according to an embodiment of the present invention is shown.

[0131] like Figure 5As shown, in the data preparation stage, multi-source data of target buildings in the target area are acquired and preprocessed. The preprocessed multi-source data is then used to identify event entities in the unstructured building operation event record data using a large language model, and matched with a pre-constructed energy consumption event map to determine the impact trend and impact time window.

[0132] During the load forecasting phase, the total load disturbance of each event entity is calculated. Based on the initial predicted load value

[0133] and total load disturbance Determine the predicted load value within the target area at the predicted time step. .

[0134] During the model training phase, energy consumption measurement data at the target time point is isolated. Based on the energy consumption measurement data at other isolated time points, the existing time series prediction model is retrained to obtain candidate time series prediction models. A dynamic threshold is determined based on the baseline generalization metric and preset bias rate of the existing time series prediction model. The generalization metric of the candidate time series prediction model is compared with the dynamic threshold. If the generalization metric does not exceed the dynamic threshold, the existing time series prediction model is replaced by the candidate time series prediction model; if the generalization metric exceeds the dynamic threshold, the candidate time series prediction model is discarded, and the model is determined as the final time series prediction model.

[0135] In the results output stage, load forecasting is performed on each event entity under multiple forecasting scenarios based on the time series forecasting model, and the forecasted load values ​​under multiple forecasting scenarios are output collaboratively.

[0136] This enables a load forecasting method that integrates event entity identification, energy consumption event graph matching, and the impact trend and time window of event entities on energy consumption. This ensures that the time series forecasting model can continuously absorb new energy consumption time series features and iterate adaptively, while avoiding the risk of energy dispatching errors in the park caused by the degradation of the time series forecasting model's capabilities. It achieves highly reliable closed-loop forecasting in multiple scenarios, such as medium- and long-term, day-ahead, or real-time forecasts.

[0137] Figure 6 A block diagram of a load forecasting apparatus according to an embodiment of the present invention is shown.

[0138] like Figure 6 As shown, the load prediction device 600 includes an acquisition module 610, an identification module 620, a prediction module 630, a first determination module 640, and a second determination module 650.

[0139] The acquisition module 610 is used to acquire energy consumption measurement data, unstructured building operation event record data, and environmental data of the target building in the target area at various time points in the historical time period.

[0140] The identification module 620 is used to identify event entities in building operation event record data, and determine the occurrence timestamp of the event entity, as well as the trend and time window of the event entity's impact on energy consumption.

[0141] The prediction module 630 is used to fit the initial predicted load value generated in the target area within the prediction time step based on energy consumption measurement data and environmental data at multiple time points.

[0142] The first determining module 640 is used to determine the amount of load disturbance generated by the event entity within the prediction time step, based on the occurrence timestamp and the influence trend, when the prediction time step is within the influence time window.

[0143] The second determining module 650 is used to determine the predicted load value of the target area within the predicted time step based on the initial predicted load value and the load disturbance amount.

[0144] According to an embodiment of the present invention, the influence trend includes the influence direction, the basic influence weight, and the influence fluctuation amplitude level; the first determining module 640 includes a first determining sub-module, a second determining sub-module, a third determining sub-module, and a fourth determining sub-module.

[0145] The first determination submodule is used to determine the peak load disturbance of an event entity based on the level of impact fluctuation and the basic impact weight.

[0146] The second determination submodule is used to determine the distribution weight of the peak load disturbance within the influence time window, taking the occurrence timestamp as the peak center and the time offset of the prediction time step within the influence time window relative to the peak center.

[0147] The third determination submodule is used to determine the sign of the load disturbance generated by the event entity within the prediction time step based on the direction of influence.

[0148] The fourth determination submodule is used to determine the load disturbance generated by the event entity within the prediction time step based on the symbol, peak load disturbance amount, and distribution weight.

[0149] According to an embodiment of the present invention, when the determined event entities include multiple entities, the load prediction device 600 further includes an overlay module and a third determination module.

[0150] The overlay module is used to overlay the load disturbances generated by each event entity within the prediction time step to obtain the total load disturbance of multiple event entities within the prediction time step.

[0151] The third determination module is used to determine the predicted load value in the target area at the predicted time step based on the initial predicted load value and the total load disturbance.

[0152] According to an embodiment of the present invention, the identification module 620 includes an identification submodule, an acquisition submodule, and a parsing submodule.

[0153] The identification submodule is used to identify event entities in the building operation event record data and filter out invalid event entities that do not meet the preset building energy consumption domain judgment rules, so as to obtain the unfiltered event entities and their occurrence timestamps.

[0154] The acquisition submodule is used to obtain the correlation between the event entity and the building load end from the energy consumption event map when it is determined that the event entity exists in the pre-built energy consumption event map, and to obtain the influence trend and influence time window. The energy consumption event map is constructed with the event entity and the building load end as nodes and the correlation between the event entity and the building load end as edges. The correlation includes the influence trend and influence time window of the event entity on energy consumption.

[0155] The parsing submodule is used to perform semantic parsing on the data associated with the event entity in the building operation event record data when it is determined that the event entity does not exist in the energy consumption event map, in order to determine the impact trend and the impact time window.

[0156] According to an embodiment of the present invention, the influence trend includes the influence direction, the influence fluctuation level, and the basic influence weight; the load forecasting device 600 also includes a first acquisition module, a fourth determination module, and an update module.

[0157] The first data acquisition module is used to obtain the actual load value within the predicted time step and the historical load standard deviation of the target building.

[0158] The fourth determination module is used to determine the update step size of the basic influence weights based on the residual between the actual load value and the predicted load value, the direction of influence, the level of influence fluctuation, the historical load standard deviation, and the historical occurrence frequency of the event entity.

[0159] The update module is used to update the basic influence weights according to the update step size.

[0160] According to an embodiment of the present invention, the fourth determining module includes a fifth determining submodule, a sixth determining submodule, a seventh determining submodule, and a processing submodule.

[0161] The fifth determination submodule is used to determine the adaptive adjustment coefficient based on the comparison between the absolute value of the residual and the standard deviation of the historical load.

[0162] The sixth determination submodule is used to determine the initial update amount of the basic influence weight based on the product of the direction of the residual and the direction of influence, the level of influence fluctuation, and the adaptive adjustment coefficient.

[0163] The seventh determination submodule is used to determine stable penalty items based on historical occurrence frequency.

[0164] The processing submodule is used to decay the initial update amount using a stability penalty term to obtain the update step size.

[0165] According to an embodiment of the present invention, the fifth determining submodule includes a first setting unit, a second setting unit, and a determining unit.

[0166] The first setting unit is used to set the adaptive adjustment coefficient to a preset lower limit value when the absolute value of the residual does not exceed the historical load standard deviation.

[0167] The second setting unit is used to set the adaptive adjustment coefficient to a preset upper limit value when the absolute value of the residual exceeds three times the historical load standard deviation.

[0168] The determination unit is used to determine the adaptive adjustment coefficient based on the absolute value of the residual when the absolute value of the residual exceeds the historical load standard deviation but does not exceed three times the historical load standard deviation. The adaptive adjustment coefficient is positively correlated with the absolute value of the residual.

[0169] According to an embodiment of the present invention, the initial predicted load value is obtained by fitting a time series prediction model. The load prediction device 600 further includes a training module, an evaluation module, a second acquisition module, a fifth determination module, an update module, and a discard module.

[0170] The training module is used to retrain the time series prediction model based on the energy consumption measurement data of other time points besides the target time point closest to the prediction time step, using multi-time window rolling cross-validation, to obtain candidate time series prediction models.

[0171] The evaluation module is used to evaluate the generalization error of the candidate time series prediction model using energy consumption measurement data at the target time point, and obtain the generalization index value of the candidate time series prediction model.

[0172] The second acquisition module is used to obtain the baseline generalization index value of the time series prediction model.

[0173] The fifth determination module is used to determine the dynamic threshold based on the baseline generalization index value and the preset deviation rate.

[0174] The update module is used to update the time series prediction model to a candidate time series prediction model when the generalization index value does not exceed the dynamic threshold.

[0175] The discard module is used to discard candidate time series prediction models when the generalization metric value exceeds a dynamic threshold.

[0176] According to an embodiment of the present invention, the fifth determining module includes an eighth determining submodule.

[0177] The eighth determination submodule is used to dynamically determine the preset deviation rate based on the current load fluctuation rate of the target area. When the load fluctuation rate is determined to be lower than the preset fluctuation threshold, the preset deviation rate is the first deviation rate value; when the load fluctuation rate is determined to be not lower than the preset fluctuation threshold, the preset deviation rate is the second deviation rate value, and the second deviation rate value is greater than the first deviation rate value.

[0178] According to embodiments of the present invention, any multiple modules among the acquisition module 610, identification module 620, prediction module 630, first determination module 640, and second determination module 650 can be combined into one module, or any one of these modules can be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules can be combined with at least part of the functionality of other modules and implemented in one module. According to embodiments of the present invention, at least one of the acquisition module 610, identification module 620, prediction module 630, first determination module 640, and second determination module 650 can be at least partially implemented as hardware circuitry, such as a field-programmable gate array (FPGA), a programmable logic array (PLA), a system-on-a-chip, a system-on-a-substrate, a system-on-package, an application-specific integrated circuit (ASIC), or any other reasonable means of integrating or packaging circuitry, or implemented in software, hardware, or firmware, or in any suitable combination of any of these three implementation methods. Alternatively, at least one of the acquisition module 610, the identification module 620, the prediction module 630, the first determination module 640, and the second determination module 650 may be implemented at least partially as a computer program module, which can perform corresponding functions when the computer program module is run.

[0179] It should be noted that the load forecasting device part in the embodiments of the present invention corresponds to the load forecasting method part in the embodiments of the present invention. The description of the load forecasting device part is specifically referred to in the load forecasting method part, and will not be repeated here.

[0180] Those skilled in the art will understand that the features described in the various embodiments of the present invention can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present invention. In particular, the features described in the various embodiments of the present invention can be combined and / or combined in various ways without departing from the spirit and teachings of the present invention. All such combinations and / or combinations are within the scope of the present invention.

[0181] The embodiments of the present invention have been described above. However, these embodiments are merely illustrative and not intended to limit the scope of the invention. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of the invention, and all such substitutions and modifications should fall within the scope of the invention.

Claims

1. A load forecasting method, characterized in that, The method includes: Acquire energy consumption measurement data, unstructured building operation event record data, and environmental data of the target building within the target area at various points in time during the historical period; The event entities in the building operation event record data are identified, and the occurrence timestamps of the event entities, as well as the trend and time window of the impact of the event entities on energy consumption are determined. Based on the energy consumption measurement data and environmental data at multiple time points, the initial predicted load value generated by the target area within the predicted time step is fitted. When the prediction time step is within the influence time window, the amount of load disturbance generated by the event entity within the prediction time step is determined based on the occurrence timestamp and the influence trend. Based on the initial predicted load value and the load disturbance amount, the predicted load value of the target area within the predicted time step is determined.

2. The method according to claim 1, characterized in that, The influence trend includes the direction of influence, the basic influence weight, and the level of influence fluctuation. The determination of the load disturbance generated by the event entity within the predicted time step based on the occurrence timestamp and the influence trend includes: Based on the impact fluctuation level and the basic impact weight, determine the peak load disturbance of the event entity; Using the occurrence timestamp as the peak center, the distribution weight of the peak load disturbance within the influence time window is determined based on the time offset of the predicted time step relative to the peak center within the influence time window. Based on the direction of influence, determine the sign of the load disturbance generated by the event entity within the predicted time step; The load disturbance amount generated by the event entity within the prediction time step is determined based on the symbol, the peak load disturbance amount, and the distribution weight.

3. The method according to claim 1 or 2, characterized in that, When it is determined that the event entities include multiple entities, the method further includes: The load disturbances generated by each of the event entities within the prediction time step are summed to obtain the total load disturbance of the multiple event entities within the prediction time step. Based on the initial predicted load value and the total load disturbance, the predicted load value within the target area at the predicted time step is determined.

4. The method according to claim 1, characterized in that, The process of identifying event entities in the building operation event record data and determining the occurrence timestamps of the event entities, as well as the impact trend and impact time window of the event entities on energy consumption, includes: The event entities in the building operation event record data are identified, and invalid event entities that do not meet the preset building energy consumption domain judgment rules are filtered out to obtain the unfiltered event entities and the occurrence timestamps; If it is determined that the event entity exists in the pre-constructed energy consumption event map, the correlation between the event entity and the building load end is obtained from the energy consumption event map to obtain the influence trend and the influence time window. The energy consumption event map is constructed with the event entity and the building load end as nodes and the correlation between the event entity and the building load end as edges. The correlation includes the influence trend of the event entity on energy consumption and the influence time window. If it is determined that the event entity does not exist in the energy consumption event map, semantic parsing is performed on the data associated with the event entity in the building operation event record data to determine the influence trend and the influence time window.

5. The method according to claim 4, characterized in that, The influence trend includes the direction of influence, the level of influence fluctuation, and the basic influence weight; The method further includes: Obtain the actual load value within the predicted time step, and the historical load standard deviation of the target building; The update step size of the basic influence weight is determined based on the residual between the actual load value and the predicted load value, the direction of influence, the level of influence fluctuation, the historical load standard deviation, and the historical occurrence frequency of the event entity. The basic influence weights are updated according to the update step size.

6. The method according to claim 5, characterized in that, The step of determining the update step size of the basic influence weight based on the residual between the actual load value and the predicted load value, the direction of influence, the level of influence fluctuation, the historical load standard deviation, and the historical frequency of the event entity includes: The adaptive adjustment coefficient is determined based on the comparison between the absolute value of the residual and the standard deviation of the historical load. The initial update amount of the basic influence weight is determined based on the product of the direction of the residual and the direction of influence, the level of influence fluctuation, and the adaptive adjustment coefficient. Based on the frequency of occurrence in the historical data, a stable penalty term is determined; The initial update amount is decayed using the stability penalty term to obtain the update step size.

7. The method according to claim 6, characterized in that, Based on the comparison between the absolute value of the residual and the standard deviation of the historical load, an adaptive adjustment coefficient is determined, including: If the absolute value of the residual does not exceed the historical load standard deviation, the adaptive adjustment coefficient is set to a preset lower limit value. If the absolute value of the residual exceeds three times the historical load standard deviation, the adaptive adjustment coefficient is set to a preset upper limit value. If the absolute value of the residual exceeds the historical load standard deviation but does not exceed three times the historical load standard deviation, the adaptive adjustment coefficient is determined based on the absolute value of the residual, and the adaptive adjustment coefficient is positively correlated with the absolute value of the residual.

8. The method according to claim 1, characterized in that, The initial predicted load value was obtained by fitting a time series prediction model; The method further includes: Based on the energy consumption measurement data of other time points besides the target time point closest to the prediction time step among multiple time points, the time series prediction model is retrained using multi-time-window rolling cross-validation to obtain a candidate time series prediction model. The generalization error of the candidate time series prediction model is evaluated using the energy consumption measurement data at the target time point to obtain the generalization index value of the candidate time series prediction model. Obtain the baseline generalization index value of the time series prediction model; The dynamic threshold is determined based on the baseline generalization index value and the preset deviation rate; If the generalization index value does not exceed the dynamic threshold, the time series prediction model is updated to the candidate time series prediction model. If the generalization index value exceeds the dynamic threshold, the candidate time series prediction model is discarded.

9. The method according to claim 8, characterized in that, The preset deviation rate is dynamically determined based on the current load fluctuation rate of the target area. Wherein, when it is determined that the load fluctuation rate is lower than a preset fluctuation threshold, the preset deviation rate is the first deviation rate value; When it is determined that the load fluctuation rate is not lower than the preset fluctuation threshold, the preset deviation rate is the second deviation rate value, which is greater than the first deviation rate value.

10. A load forecasting device, characterized in that, The device includes: The acquisition module is used to acquire energy consumption measurement data, unstructured building operation event record data, and environmental data of the target building within the target area at various time points in the historical time period; The identification module is used to identify event entities in the building operation event record data, and determine the occurrence timestamp of the event entity, as well as the trend and time window of the event entity's impact on energy consumption. The prediction module is used to fit the initial predicted load value generated by the target area within the prediction time step based on the energy consumption measurement data and the environmental data at multiple time points. The first determining module is used to determine the amount of load disturbance generated by the event entity within the prediction time step, based on the occurrence timestamp and the influence trend, when the prediction time step is within the influence time window. The second determining module is used to determine the predicted load value of the target area within the predicted time step based on the initial predicted load value and the load disturbance amount.