The present application claims priority to European Patent Application No. 23210163.4, filed on Nov. 15, 2023, and titled “A METHOD FOR PREDICTING ELECTRIC ENERGY CONSUMPTION IN AN ELECTRIC GRID”, which is hereby incorporated by reference in its entirety.
The present disclosure relates to the field of electric power distribution grids. More particularly, the present disclosure relates to a method for predicting electric energy consumption in an electric grid.
As is known, the management of electric grids generally requires an accurate prediction activity of the electric energy consumption to allow system operators to properly plan the use of electric energy over time, thereby preventing or limiting demand peaks and making more favorable purchase plans of electric energy.
Most common forecast methods are based on machine learning (ML) techniques and require that relevant amounts of data are processed to provide accurate predictions. Additionally, these methods typically provide for carrying out a computationally intensive training phase of an artificial intelligence unit (e.g., a neural network) executing the ML algorithms.
ML-based prediction methods can thus be hardly implemented by computing systems typically managing the operation of field devices and switchboards in electric grids, which often have relatively limited storage and computational resources unsuitable to process huge amounts of data. These computing systems are, in fact, commonly based on Edge computing architectures and are basically aimed at bringing computation and data storage closer to the sources of data to improve response times and save bandwidth rather than processing large datasets.
In the state of the art, there have been developed prediction methods (e.g., based on linear regression analysis techniques), which normally require lighter computational and data storage resources compared to ML-based forecast methods and which would therefore be adapted for being implemented computing systems commonly used to manage electric grids.
An example of these prediction methods is described in U.S. Ser. No. 10/515,308B2.
However, available prediction methods of this type often provide relatively poor performances in terms of reliability and prediction accuracy compared to ML-based prediction techniques.
The main task of the present disclosure is to provide to a method for predicting electric energy consumption in an electric grid, which can overcome the limitations of the prior art highlighted above.
Within this aim, another purpose of the present disclosure is to provide a prediction method, which can ensure high level performances in terms of reliability and prediction accuracy.
A further aim of the present disclosure is to provide a prediction method, which can be easily implemented even when limited computational and data storage resources are available and which is therefore suitable for being implemented in computing systems commonly used for managing the operation of electric grids, for example in computing systems based on Edge computing architectures.
This task and these aims, as well as other aims that will appear evident from the subsequent description and from the attached drawings, are achieved, according to the present disclosure, by a prediction method, according to claim 1 and to the related dependent claims proposed below.
In a general definition, the method, according to the present disclosure, comprises acquiring first detection data including detection values related to an actual electric energy consumption in said electric grid. The method additionally comprises acquiring additional detection data including detection values related to the energy consumption in said electric grid during at least a time window preceding a given reference instant, and acquiring calendar data including chronological information associated to the operation of said electric grid. The method further comprises calculating training data based on the acquired detection data and calendar data, and based on said training data, setting a linear auto-regressive mathematical model describing the trend of the electric energy consumption in said electric grid. Such a linear auto-regressive mathematical model is configured to process at least a set of exogenous input values indicative of at least a periodic function approximating the profile of the electric energy consumption in said electric grid over said at least a time window preceding said reference instant. Based on said linear auto-regressive model, the method further comprises calculating prediction data including prediction values related to the electric energy consumption in said electric grid during a time window following said reference instant.
In some embodiments, the method according to the present disclosure comprises acquiring second detection data including detection values related to the energy consumption in said electric grid during a first time window preceding said reference instant. In this case, the linear auto-regressive mathematical model is configured to process first exogenous input values indicative of a first periodic function approximating the profile of the electric energy consumption in said electric grid over said first time window.
In some embodiments, the method according to the present disclosure comprises also acquiring third detection data including detection values related to the energy consumption in said electric grid during a second time window preceding said reference instant. In this case, the linear auto-regressive mathematical model is configured to process second exogenous input values indicative of a second periodic function approximating the profile of the electric energy consumption in said electric grid over said second time window. In some embodiments, such a second time window is longer than said first time window.
Further characteristics and advantages of the present disclosure shall emerge more clearly from the description of preferred but not exclusive embodiments illustrated purely by way of example and without limitation in the attached drawings, in which:
With reference to the mentioned figures, the present disclosure relates to a method 100 for predicting an electric energy consumption in an electric grid 1 (
In principle, the electric grid 1 may be of any type, for example a smart grid, a micro-grid, or an electric power distribution network for industrial, commercial, or residential buildings or plants.
In some embodiments, the electric grid 1 operates at low or medium voltage levels, where the term “low voltage” relates to operational voltages up to 1.2 kV AC and 1.5 kV DC and the term “medium voltage” relates to operational voltages higher than 1.2 kV AC and 1.5 kV DC up to several tens of kV, e.g., up to 72 kV AC and 100 kV DC.
The electric grid 1 may be of the single-phase type or multiple-phase (e.g., three-phase) type. In general terms, the electric grid 1 can be electrically connected to one or more power sources 2 (e.g., an electric power utility) and to one or more electrical loads 3, each consuming a corresponding amount of electric energy in operation.
The electric grid 1 may comprise one or more field devices 4 (e.g., switching devices, sensors, and the like) configured to regulate the flow of electric power along the branches of the electric grid and one or more intelligent electronic devices 5 (e.g., controllers, protection relays, smart interfaces, and the like) configured to control the operation of the above-mentioned field devices and, more generally, of the electric grid.
Advantageously, the intelligent electronic devices 5 may be equipped with suitable computing and storage resources to process data related to the operation of the electric grid.
In some embodiment, the intelligent electronic devices 5 are based on Edge computing architectures.
In general, the above-mentioned electric grid 1, the power source 2, the electrical loads 3, the field devices 4 and intelligent electronic devices 5 may be of known type and will not be here further described in details for the sake of brevity.
The method 100, according to the present disclosure, is adapted for being executed by a computerized device. This latter may advantageously include data processing resources capable of executing software instructions configured to implement the method.
In some embodiments, such a computerized device is an intelligent electronic device 5 of the electric grid, which may be installed on the field as a self-standing device (e.g., a controller) or embedded in an electrical device 4 (e.g., as a protection relay). As an example, such an intelligent electronic device may be an intelligent switchboard HMI operatively coupled with a certain number of field devices 4 of the electric grid and configured to process data related to the operation of the electric grid.
As it will be better explained in the following, the method 100 provides for calculating prediction data DP related to the electric energy consumption in the electric grid by using a special mathematical model MR, which is cyclically set based on training data DT calculated by collecting and processing detection data DS1, DS2, DS3 related to the real-time and historical electric energy consumption in the electric grid.
Referring to
Once it is set at the corresponding reference instant tR, the set mathematical model MR is used to calculate prediction data related to the future electric energy consumption in the electric grid during a prediction time-window TW3 (e.g., a week) following the reference instant tR.
During the above-mentioned prediction time window TW3, the above-mentioned prediction data DP are calculated periodically with a predefined time granularity TP (e.g., 15 minutes) and with reference to a predefined time horizon TH (e.g., 24 hours).
At the end of the prediction time-window TW3, a new mathematical model is set at a new reference time instant and it is used to calculate the above-mentioned prediction data during a new prediction time window following said new reference instant.
The prediction method 100, according to the present disclosure, will now be described in details.
Referring to
The first detection data DS1 refer to the instantaneous energy consumption in the electric grid at each generic operation instant.
The first detection data DS1 may be collected from one or more field devices 4 (e.g., sensors) or from one or more intelligent electronic devices 5 installed on the field or even from remote computerized devices.
In some embodiments, the step 101 is continuously executed, possibly in parallel to other steps of the method 100. The first detection data DS1 thus include vectors of detection values, which are continuously and cyclically acquired and stored in a memory at subsequent acquisition instants, in which two consecutive acquisition instants are separated by a time interval corresponding to a predefined acquisition period of said first detection data.
According to the present disclosure, the prediction method 100 comprises one or more acquisition steps 102, 103, in which one or more sets of additional detection data DS2, DS3 are acquired.
Each set of additional data includes detection values related to the historical energy consumption in the electric grid during a corresponding time window TW1, TW2 preceding a given reference instant tR. As it is explained above, the time reference instant tR is a time instant, at which a mathematical model MR for calculating the prediction data DP related to the future electric energy consumption in the electric grid is established.
According to some embodiments, the prediction method 100 comprises a step 102 of acquiring second detection data DS2 including detection values related to a historical electric energy consumption in the electric grid during a first time window TW1 preceding the reference instant tR.
The second detection data DS2 refer to the energy consumption in the electric grid at operation instants preceding the time reference instant tR and included in the first time window TW1.
The duration of the first time window TW1 may be selected each time the above-mentioned mathematical model is established. As an example, the first time window TW1 may refer to some weeks preceding the time reference instant tR.
The second detection data DS2 may be acquired from a memory or from one or more intelligent electronic devices 5 installed on the field or even from remote computerized devices.
In some embodiments, the prediction method 100 comprises a step 103 of acquiring third detection data DS3 including detection values related to a historical electric energy consumption in the electric grid during a second time window TW2 preceding the reference instant tR.
The third detection data DS3 refer to the energy consumption in the electric grid at operation instants preceding the time reference instant tR and included in the second time window TW2.
In some embodiments, the duration of the second time window TW2 is very longer than the duration of the first time window TW1. As an example, the second time window TW2 may refer to months or years preceding the time reference instant tR.
The third detection data DS3 may be acquired from a memory or from one or more intelligent electronic devices 5 installed on the field or even from remote computerized devices.
According to the present disclosure, the prediction method 100 comprises a step 104 of acquiring calendar data Dc including chronological information associated to the operation of the electric grid. The calendar data Dc may include information related to working days, non-working days, or holidays or, more generally, other chronological circumstances, which may influence the energy power consumption in the electric grid.
The collected chronological information advantageously refers to a time window TW3 following the reference instant tR.
The calendar data Dc may be acquired from a memory or from one or more intelligent electronic devices 5 installed on the field or even from remote computerized devices.
According to the present disclosure, the prediction method 100 comprises a step 105 of calculating training data DT by processing the acquired detection data and calendar data.
The training data DT are intended to be used for setting a mathematical model describing the trend of the electric energy consumption in the electric grid during a third time window TW3 following the reference instant tR.
In principle, the duration of the third time window TW3 may be varied each time the above-mentioned mathematical model is established. As an example, the third time window TW3 may refer to a week following the time reference instant tR.
In some embodiments, the calculation step 105 includes processing the first detection data DS1, which are continuously acquired from outer data sources, to check the correctness of the acquired data. Advantageously, the first detection data DS1 are processed by means of suitable statistical techniques to identify outlier values or missing values. Possible incorrect detection values are conveniently replaced by using suitable interpolation techniques.
In some embodiments, the calculation step 105 includes processing the acquired second detection data DS2 to identify the trend of the electric energy consumption in the electric grid during the first time window TW1. In practice, the acquired second detection data DS2 are analyzed through suitable statistic techniques to identify a short-term behavior of the electric energy consumption in the electric grid before the reference instant tR.
As it will be more apparent from the following, the information obtained through this processing activity are conveniently used to calculate a first periodic function U(t) describing the profile of the electric energy consumption in the electric grid over the first time window WT1.
This allows setting the above-mentioned mathematical model MR in such a way to consider possible short-term non-linearities influencing the electric energy consumption in the electric grid.
The information obtained through this processing activity may be also used to tune appropriately the duration of the first time window TW1.
As an example, the first time window TW1 may be tuned at two weeks or four weeks preceding the reference instant tR, if the detected electric energy consumption shows a high level of periodicity or a less regular profile, respectively.
Advantageously, the duration of the first time window TW1 may be tuned depending also on the chronological information referring to said time window, which may be advantageously derived from the acquired calendar data Dc.
In some embodiments, the calculation step 105 includes processing the acquired third detection data DS3 to identify the trend of the electric energy consumption in the electric grid during the second time window TW2. In practice, the acquired third detection data DS2 are analyzed through suitable statistic techniques to identify a long-term trend (or seasonality) of the electric energy consumption in the electric grid before the reference instant tR. This would not be possible, if only the historical detection data related to the first time window TW1 were considered.
As it will be more apparent from the following, the information obtained through this processing activity are conveniently used to calculate a second periodic function Ul(t) describing the profile of the electric energy consumption in the electric grid over the second time window TW2.
This allows setting the above-mentioned mathematical model in such a way to consider possible long-term non-linearities or seasonal factors influencing the electric energy consumption in the electric grid.
According to the present disclosure, the prediction method 100 comprises a step 106 of setting a linear auto-regressive mathematical model MR based on the calculated training data DT.
The mathematical model MR describes the trend of the electric energy consumption in the electric grid and it is intended to be used for calculating the prediction data DP related to the electric energy consumption at instants following the reference instant tR, particularly at subsequent instants k included in the electric grid during the third time window TW3.
As it has an auto-regressive nature, at each instant k+1, the mathematical model MR is configured to process endogenous input values y(k) referred to a preceding instant k.
The endogenous input values y(k) include previously calculated prediction values related to electric energy consumption in the electric grid and, possibly, also previously acquired detection values related to the instantaneous electric energy consumption in the electric grid, which are included in the first detection data DS1.
According to a particularly important aspect of the present disclosure, however, the mathematical model MR is configured to process one or more sets of exogenous input values U(k), Ul(k).
Each set of exogenous input values is indicative of a corresponding periodic function U(t), Ul(t) approximating the profile of the electric energy consumption in the electric grid over a corresponding time window TW1, TW2 preceding the reference instant tR.
In some embodiments, the linear auto-regressive model MR is configured to process first exogenous input values U(k) referred to an instant k preceding the reference instant tR.
The first exogenous input values U(k) are indicative of a first periodic function U(t) approximating the profile of the electric energy consumption in the electric grid over the first time window TW1.
In some embodiments, the first periodic function U(t) is a combination of cosine and sine functions having unitary amplitude and different frequencies, for example ranging from hourly values to weekly values. Advantageously, the first periodic function U(t) is calculated based on training data obtained by processing the acquired second detection data DS2 to identify the trend of the electric energy consumption in the electric grid during the first time window TW1.
A vector of first exogenous input values U(k) at a generic instant k preceding the reference instant tR may thus be expressed as the combination of n sinusoidal terms according to the following expression:
U(k)=[cos(w1k), . . . ,cos(wnk), sin(w1k), . . . , sin(wnk)]
where the terms, w1, . . . , wn are indicative of the frequencies selected to approximate the profile of the electric energy consumption over the first time window TW1.
In some embodiments, the linear auto-regressive model MR is configured to process second exogenous input values Ul(k) referred to an instant k preceding the reference instant tR.
The second exogenous input values Ul(k) are indicative of a second periodic function UL(t) approximating the profile of the electric energy consumption in the electric grid over the second time window TW2.
In some embodiments, the second periodic function Ul(t) is a combination of cosine and sine functions having unitary amplitude and different frequencies, for example ranging from monthly values to yearly values.
Advantageously, the second periodic function Ul(t) is calculated based on training data obtained by processing the acquired third detection data DS3 to identify the trend of the electric energy consumption in the electric grid during the second time window TW2.
A vector of second exogenous input values Ul(k) at a generic instant k preceding the reference instant tR may thus be expressed as the combination of q sinusoidal terms according to the following expression:
U
l(k)=[cos(w1k), . . . ,cos(wqk), sin(w1k), . . . , sin(wqk)]
where the terms, w1, . . . , wq are indicative of the frequencies selected to approximate the profile of the electric energy consumption over the second time window TW2.
The setting of the mathematical model MR is conveniently carried out during a training phase, which may include one or more training steps.
At each training event, the parameters θ of the mathematical model are iteratively calculated until a maximum number of training steps is reached or the estimated error of the calculated prediction values is sufficiently low.
The step 106 of setting the mathematical model MR conveniently comprises setting the auto-regressive order m of said mathematical model and setting the maximum number Tmax of training steps for training said mathematical model.
The autoregressive order m is a parameter that may be selected depending on the desired model complexity level, or the length of the considered time windows TWi, or based on a cross-validation phase performed before the implementation of the described approach, for example on a different dataset DS0, if available.
As an example, the autoregressive order m may be set as m=3.
The maximum number Tmax of training steps is a parameter that may be selected depending for example on the performance of the available edge computing unit, or on possible time constraints of the considered application.
In some embodiments, the number of training events is T>1. In this case, two following training events are advantageously separated by a time interval, which is relatively long compared to the time granularity set for calculating the prediction data DP. For example, if a time granularity of 15 minutes is set, the time interval between two subsequent training events may be 24 hours.
In some embodiments, the linear auto-regressive mathematical model MR is a linear ARX mathematical model with one or more exogenous inputs.
In general terms, the mathematical model MR may thus be expressed as:
where:
At each training event, a preliminary vector 9′ of model parameters is calculated by solving the unconstrained linear problem:
where:
The training phase of the mathematical model MR is terminated if the maximum number of training steps Tmax is achieved or the calculated error∥ Ai−Yi∥ is lower than a predefined threshold.
At the end of the training phase, the last calculated vector θ′ of model parameters becomes the final vector θ of model parameters of the mathematical model. The mathematical model MR is thus finally set.
The final vector of model parameters θ may be expressed as:
θ=[θy,θU,θUl]
where:
According to an aspect of the present disclosure, one or more final parameters of the mathematical model MR are tuned based on previously calculated corresponding parameters of the mathematical model.
In particular, the final model parameters θUl combining the second exogenous input values input Ul(k) may be calculated based on corresponding parameters θ′Ul calculated during the training phase and previously calculated corresponding parameters θ″Ul (i.e., corresponding parameters of previously set mathematical models, which were obtained during previous training events).
The vector θUl of final model parameters combining the second exogenous input values input Ul(k) may be calculated as:
where:
The tunable parameter α allows tuning the speed of adaptation of the input values (second exogenous input values), which are adapted to consider a long-term seasonality of the electric energy consumption, on the acquired detection values indicative of the instantaneous electric energy consumption of the electric grid.
A larger value of a provides a slower adaptation as more weight is given to the contribution of the parameters calculated during preceding training events while a smaller value of a provides a faster adaptation as more weight is given to the contribution of the parameter set during the latest training event.
According to the present disclosure, the prediction method 100 comprises a step 107 of calculating the prediction data DP based on the mathematical model MR set at the preceding steps 106.
The prediction data DP include prediction values related to the electric energy consumption in the electric grid during the third time window TW3.
As shown above, the prediction data DP are cyclically calculated at subsequent calculation instants k with a predefined time granularity TP (e.g, 15 minutes).
In some embodiments, at each calculation instant k, the prediction data DP are calculated with a predefined time horizon TH (e.g, 24 hours).
In some embodiments, the prediction method 100 is cyclically repeated as described above at the end of each third time window TW3.
When third time window Tw3 expires, a new linear auto-regressive mathematical MR model is set at a new reference instant tR.
The above-described steps 102-106 of the method 100 are thus repeated with reference to new time windows TW1, TW2 and TW3 calculated based on the new reference instant tR while the above-mentioned first detection data DS1 are continuously acquired (step 101 of the method 100) at each acquisition period.
The newly set mathematical model MR is then used to calculate prediction values related to the electric energy consumption in the electric grid during a new time window TW3 following the new reference instant tR.
According to an aspect of the present disclosure (
The first check procedure 108 is aimed at checking whether the prediction data DP calculated by the mathematical model MR match with corresponding detection data DS1 indicative of the actual electric energy consumption in the electric grid.
In some embodiments, the first check procedure 108 comprises a step 108a of comparing the first detection data DS1 and the prediction data DP, which have respectively been acquired and calculated in a time interval (checking period) between the last execution instant of the first check procedure 108 (or the reference instant tR if the check procedure is executed for the first time) and the current execution instant of the check procedure.
In some embodiments, the first check procedure 108 comprises a step 108b of calculating an error function
E indicative of differences between the detection values included in the collected first detection data DS1 and the prediction values included in the calculated prediction data DP.
The error function E, which may be for example a MAPE error function, provides a measure of prediction accuracy ensured by the mathematical model MR while calculating the prediction data DP.
The check procedure 108 includes a step 108c of updating the mathematical model MR, if the above-mentioned error function E takes values exceeding a threshold error value ETH.
The updating of the mathematical model MR is carrying out by newly executing the step 106 of the method 100, as described above. In practice, the mathematical model MR is updated by forcing a new training event to be carried out as described above.
If the above-mentioned error function E takes values, which do not exceed the threshold error value ETH, the mathematical model MR is maintained and the first check procedure 108 is terminated.
In some embodiments, the first check procedure 108 is carried out cyclically during the third time window TW3, for example with a checking period of 24 hours.
According to another aspect of the present disclosure (
The first check procedure 108 is aimed at checking whether the prediction data DP calculated by the mathematical model MR falls within a confidence band of prediction.
In some embodiments, the second check procedure 109 comprises a step 109a of processing the calculated prediction data DP to calculate a prediction function P indicative of a predicted trend of the electric energy consumption in the electric grid.
In order to calculate the prediction function P, the calculated prediction data DP may be processed by means of suitable statistical techniques of known type.
In some embodiments, the second check procedure 109 comprises a step 109b of generating an alert signal AL, if the prediction function P takes values higher than a predefined maximum confidence value PMax or lower than a predefined minimum confidence value PMin.
The confidence values Pmax, Pmin may be conveniently calculated by calculating an error function indicative of differences between the detection values included in the collected first detection data DS1 and the prediction values included in the calculated prediction data DP and processing said error function by means of suitable statistical techniques of known type.
If the above-mentioned prediction function P takes values within the confidence band defined by the confidence values Pmax, Pmin, the second check procedure 109 is terminated.
In some embodiments, the second check procedure 109 is carried out cyclically during the third time window TW3, for example with a repetition period of 24 hours.
The prediction method 100, according to the present disclosure, provides relevant advantages.
The prediction method 100 ensure high level performances in terms of prediction accuracy:
The circumstance that the linear auto-regressive model MR is configured to process both first and second exogenous input values U(k), Ul(k) is particularly relevant from this point of view. This solution, in fact, allows remarkably improving the prediction accuracy as short-term and long-term factors, which may influence the trend of the electric energy consumption, are duly considered while calculating the prediction data DP.
The fine tuning of the model parameters θ carried out after the completion of the training phase, particularly of the parameters θUl intended to model the long-term seasonality of the electric energy consumption, further improves the performances provided by the prediction method 100.
The iterative checking of the accuracy of the calculated prediction data further improves the reliability of the prediction method.
In confirmation of the above, experimental tests have shown that the prediction method 100 ensures accuracy performances fully comparable with the accuracy performances provided by the known methods of the state of the art based on ML algorithms.
The prediction method 100 is configured to process relatively small sets of data. Therefore, it is particularly adapted for being implemented in computing systems having limited computational and data storage resources, for example in Edge computing systems commonly-used for managing the operation of electric grids.
The prediction method 100 is thus particularly adapted to be implemented using the hardware and software resources already installed on the field to manage the operation of an electric grid.
The prediction method 100 is thus adapted for being implemented in digitally enabled power distribution networks (smart grids, micro-grids and the like).
The disclosed systems and methods are not limited to the specific embodiments described herein. Rather, components of the systems or steps of the methods may be utilized independently and separately from other described components or steps.
This written description uses examples to disclose various embodiments, which include the best mode, to enable any person skilled in the art to practice those embodiments, including making and using any devices or systems and performing any incorporated methods. The patentable scope is defined by the claims and may include other examples that occur to those skilled in the art. Such other examples are intended to be within the scope of the claims if they have structural elements that do not differ from the literal language of the claims, or if they include equivalent structural elements with insubstantial differences form the literal language of the claims.
Number | Date | Country | Kind |
---|---|---|---|
23210163.4 | Nov 2023 | EP | regional |