METHOD FOR PREDICTING ELECTRICITY CONSUMPTION IN A POWER GRID

DE602023016672T2Active Publication Date: 2026-05-06ABB SPA
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
ABB SPA
Filing Date
2023-11-15
Publication Date
2026-05-06

AI Technical Summary

Technical Problem

Existing prediction methods for electric energy consumption in electric grids, particularly those based on linear regression analysis, often provide poor reliability and accuracy, and are unsuitable for computing systems with limited computational and data storage resources, such as Edge computing architectures.

Method used

A prediction method using a linear auto-regressive mathematical model that processes both endogenous and exogenous input values, including periodic functions to approximate energy consumption patterns over different time windows, allowing for accurate predictions even with limited resources.

Benefits of technology

The method achieves high prediction accuracy comparable to ML-based methods while being suitable for systems with limited resources, ensuring reliable and efficient energy consumption forecasting.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present invention relates to the field of electric power distribution grids. More particularly, the present invention relates to a method for predicting electric energy consumption in an electric grid.

[0002] 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 favourable purchase plans of electric energy.

[0003] 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.

[0004] 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.

[0005] 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.

[0006] An example of these prediction methods is described in US10515308B2.

[0007] 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 invention 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.

[0008] Within this aim, another purpose of the present invention is to provide a prediction method, which can ensure high level performances in terms of reliability and prediction accuracy.

[0009] A further aim of the invention 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.

[0010] 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 invention, by a prediction method, according to claim 1 and to the related dependent claims proposed below.

[0011] In a general definition, the method, according to the invention, comprises the following steps: acquiring first detection data including detection values related to an actual electric energy consumption in said electric grid; 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; acquiring calendar data including chronological information associated to the operation of said electric grid; calculating training data based on the acquired detection data and calendar data; 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, calculating prediction data including prediction values related to the electric energy consumption in said electric grid during a time window following said reference instant.

[0012] Preferably, the method according to the invention comprises the step of 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.

[0013] Preferably, the method according to the invention comprises also the step of 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. Preferably, such a second time window is longer than said first time window.

[0014] Further characteristics and advantages of the present invention 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 figure 1 schematically illustrates a generic electric grid for electric power distribution applications while figures 2-5 schematically illustrate the prediction method, according to the invention.

[0015] With reference to the mentioned figures, the present invention relates to a method 100 for predicting an electric energy consumption in an electric grid 1 (figure1).

[0016] 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.

[0017] Preferably, 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.

[0018] 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.

[0019] 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.

[0020] 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.

[0021] Preferably, the intelligent electronic devices 5 are based on Edge computing architectures.

[0022] 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.

[0023] The method 100, according to the invention, 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.

[0024] Such a computerized device is preferably 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.

[0025] As it will be better explained in the following, the method 100 provides for calculating prediction data D P related to the electric energy consumption in the electric grid by using a special mathematical model M R , which is cyclically set based on training data D T calculated by collecting and processing detection data D S1 , D S2 , D S3 related to the real-time and historical electric energy consumption in the electric grid.

[0026] Referring to figure 2, the real time detection data D S1 are continuously acquired while historical detection data D S2 , D S3 are acquired at subsequent reference instants t R , at which the above-mentioned mathematical model is set. The historical detection data D S2 , D S3 refer to different training time windows TW 1 , TW 2 preceding the corresponding time reference instant t R and have different selectable durations (e.g., some weeks or some months or years respectively).

[0027] Once it is set at the corresponding reference instant t R , the set mathematical model M R is used to calculate prediction data related to the future electric energy consumption in the electric grid during a prediction time-window TW 3 (e.g., a week) following the reference instant t R . During the above-mentioned prediction time window TW 3 , the above-mentioned prediction data D P are calculated periodically with a predefined time granularity T P (e.g., 15 minutes) and with reference to a predefined time horizon T H (e.g., 24 hours).

[0028] At the end of the prediction time-window TW 3 , 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.

[0029] The prediction method 100, according to the invention, will now be described in details. Referring to figures 2-3, the method 100 comprises a step 101 of acquiring first detection data D S1 including detection values related to the actual (real-time) electric energy consumption in the electric grid.

[0030] The first detection data D S1 refer to the instantaneous energy consumption in the electric grid at each generic operation instant.

[0031] The first detection data D S1 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.

[0032] Preferably, the step 101 is continuously executed, possibly in parallel to other steps of the method 100. The first detection data D S1 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.

[0033] According to the invention, the prediction method 100 comprises one or more acquisition steps 102, 103, in which one or more sets of additional detection data D S2 , D S3 are acquired.

[0034] Each set of additional data includes detection values related to the historical energy consumption in the electric grid during a corresponding time window TW 1 , TW 2 preceding a given reference instant t R . As it is explained above, the time reference instant t R is a time instant, at which a mathematical model M R for calculating the prediction data D P related to the future electric energy consumption in the electric grid is established.

[0035] Preferably, the prediction method 100 comprises a step 102 of acquiring second detection data D S2 including detection values related to a historical electric energy consumption in the electric grid during a first time window TW 1 preceding the reference instant t R .

[0036] The second detection data D S2 refer to the energy consumption in the electric grid at operation instants preceding the time reference instant t R and included in the first time window TW 1 . The duration of the first time window TW 1 may be selected each time the above-mentioned mathematical model is established. As an example, the first time window TW 1 may refer to some weeks preceding the time reference instant t R .

[0037] The second detection data D S2 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. Preferably, the prediction method 100 comprises a step 103 of acquiring third detection data D S3 including detection values related to a historical electric energy consumption in the electric grid during a second time window TW 2 preceding the reference instant t R .

[0038] The third detection data D S3 refer to the energy consumption in the electric grid at operation instants preceding the time reference instant t R and included in the second time window TW 2 . The duration of the second time window TW 2 is preferably very longer than the duration of the first time window TW 1 . As an example, the second time window TW 2 may refer to months or years preceding the time reference instant t R .

[0039] The third detection data D S3 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 invention, 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.

[0040] The collected chronological information advantageously refers to a time window TW 3 following the reference instant t R .

[0041] 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.

[0042] According to the invention, the prediction method 100 comprises a step 105 of calculating training data D T by processing the acquired detection data and calendar data.

[0043] The training data D T 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 TW 3 following the reference instant t R .

[0044] In principle, the duration of the third time window TW 3 may be varied each time the above-mentioned mathematical model is established. As an example, the third time window TW 3 may refer to a week following the time reference instant t R .

[0045] Preferably, the calculation step 105 includes processing the first detection data D S1 , which are continuously acquired from outer data sources, to check the correctness of the acquired data. Advantageously, the first detection data D S1 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.

[0046] Preferably, the calculation step 105 includes processing the acquired second detection data D S2 to identify the trend of the electric energy consumption in the electric grid during the first time window TW 1 . In practice, the acquired second detection data D S2 are analysed through suitable statistic techniques to identify a short-term behaviour of the electric energy consumption in the electric grid before the reference instant t R .

[0047] 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 W T1 .

[0048] This allows setting the above-mentioned mathematical model M R in such a way to consider possible short-term non-linearities influencing the electric energy consumption in the electric grid.

[0049] The information obtained through this processing activity may be also used to tune appropriately the duration of the first time window TW 1 .

[0050] As an example, the first time window TW 1 may be tuned at two weeks or four weeks preceding the reference instant t R , if the detected electric energy consumption shows a high level of periodicity or a less regular profile, respectively.

[0051] Advantageously, the duration of the first time window TW 1 may be tuned depending also on the chronological information referring to said time window, which may be advantageously derived from the acquired calendar data D C .

[0052] Preferably, the calculation step 105 includes processing the acquired third detection data D S3 to identify the trend of the electric energy consumption in the electric grid during the second time window TW 2 . In practice, the acquired third detection data D S2 are analysed 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 t R . This would not be possible, if only the historical detection data related to the first time window TW 1 were considered.

[0053] 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 U l (t) describing the profile of the electric energy consumption in the electric grid over the second time window TW 2 .

[0054] 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.

[0055] According to the invention, the prediction method 100 comprises a step 106 of setting a linear auto-regressive mathematical model M R based on the calculated training data D T .

[0056] The mathematical model M R describes the trend of the electric energy consumption in the electric grid and it is intended to be used for calculating the prediction data D P related to the electric energy consumption at instants following the reference instant t R , particularly at subsequent instants k included in the electric grid during the third time window TW 3 .

[0057] As it has an auto-regressive nature, at each instant k+1, the mathematical model M R is configured to process endogenous input values y(k) referred to a preceding instant k.

[0058] 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 D S1 .

[0059] According to a particularly important aspect of the invention, however, the mathematical model M R is configured to process one or more sets of exogenous input values U(k), U l (k).

[0060] Each set of exogenous input values is indicative of a corresponding periodic function U(t), U l (t) approximating the profile of the electric energy consumption in the electric grid over a corresponding time window TW 1 , TW 2 preceding the reference instant t R .

[0061] Preferably, the linear auto-regressive model M R is configured to process first exogenous input values U(k) referred to an instant k preceding the reference instant t R .

[0062] 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 TW 1 .

[0063] Preferably, 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 D S2 to identify the trend of the electric energy consumption in the electric grid during the first time window TW 1 .

[0064] A vector of first exogenous input values U(k) at a generic instant k preceding the reference instant t R may thus be expressed as the combination of n sinusoidal terms according to the following expression: U k = cos w 1 k , … , cos w n k , sin w 1 k , … , sin w n k where the terms, w 1 , ..., w n are indicative of the frequencies selected to approximate the profile of the electric energy consumption over the first time window TW 1 .

[0065] Preferably, the linear auto-regressive model M R is configured to process second exogenous input values U l (k) referred to an instant k preceding the reference instant t R .

[0066] The second exogenous input values U l (k) are indicative of a second periodic function U l (t) approximating the profile of the electric energy consumption in the electric grid over the second time window TW 2 .

[0067] Preferably, the second periodic function U l (t) is a combination of cosine and sine functions having unitary amplitude and different frequencies, for example ranging from monthly values to yearly values.

[0068] Advantageously, the second periodic function U l (t) is calculated based on training data obtained by processing the acquired third detection data D S3 to identify the trend of the electric energy consumption in the electric grid during the second time window TW 2 .

[0069] A vector of second exogenous input values U l (k) at a generic instant k preceding the reference instant t R may thus be expressed as the combination of q sinusoidal terms according to the following expression: U l k = cos w 1 k , … , cos w q k , sin w 1 k , … , sin w q k

[0070] where the terms, w 1 , ..., w q are indicative of the frequencies selected to approximate the profile of the electric energy consumption over the second time window TW 2 .

[0071] The setting of the mathematical model M R is conveniently carried out during a training phase, which may include one or more training steps.

[0072] 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.

[0073] The step 106 of setting the mathematical model M R conveniently comprises setting the auto-regressive order m of said mathematical model and setting the maximum number T max of training steps for training said mathematical model.

[0074] 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 TW i , or based on a cross-validation phase performed before the implementation of the described approach, for example on a different dataset D S0 , if available.

[0075] As an example, the autoregressive order m may be set as m =3.

[0076] The maximum number T max 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.

[0077] Preferably, 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 D P . For example, if a time granularity of 15 minutes is set, the time interval between two subsequent training events may be 24 hours. Preferably, the linear auto-regressive mathematical model M R is a linear ARX mathematical model with one or more (more preferably multiple) exogeneous inputs.

[0078] In general terms, the mathematical model M R may thus be expressed as: y k + 1 = φ k T * θ = y k T U k T U l k T * θ , witk k = m + 1 , … , T H / T P . where: y(k) is a vector of endogenous input values. For k <= 2m, y(k) includes both previously calculated prediction values and real-time detection values included in the first detection data D S1 while y(k) includes only previously calculated prediction values for k > 2m; U(k) is a vector of first exogenous input values 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 TW 1 ; U l (k) is a vector of second exogenous input values indicative of a second periodic function U l (t) approximating the profile of the electric energy consumption in the electric grid over the second time window TW 2 ; θ is a vector of model parameters to be calculated during the training phase of the mathematical model; T H is the time horizon set for calculating the prediction data D P . As an example, T H may be set as T H = 24 hours; T P is the time granularity set for calculating the prediction data D P . As an example, T P may be set as T P = 15 minutes. The ratio T H / T P defines the number of prediction and detection values to be considered for calculating the prediction error. As an example, the ratio takes a value T H / T P = 96 with a time horizon T H set at 24 hours and a time granularity T P set at 15 minutes.

[0079] At each training event, a preliminary vector θ' of model parameters is calculated by solving the unconstrained linear problem: θ ′ = argmin θ ′ ∑ i = 1 T A i − Y i 2 where: Tis the number representing the elapsed time (preferably counted in days) up to the training event and during which the first detection data D S1 have been collected; A i is a vector of (T H / T P - m) detection values included in a time unit i (preferably a day i), during which the first detection data D S1 have been collected, where m is the set number of regression steps. As an example, the vector A i has (96-m) values with a time horizon T H set at 24 hours and a time granularity T P set at 15 minutes; Y i is a vector of (T H / T P - m) prediction values calculated for a time unit i (preferably a day i), during which the detection data D S1 have been collected. As an example, the vector Y i has (96-m) values with a time horizon T H set at 24 hours and a time granularity T P set at 15 minutes.

[0080] The training phase of the mathematical model M R is terminated if the maximum number of training steps T max is achieved or the calculated error∥ A i - Y i ∥ is lower than a predefined threshold.

[0081] 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 M R is thus finally set.

[0082] The final vector of model parameters θ may be expressed as: θ = θ y θ U θ Ul where: θ y is a vector of calculated model parameters linearly combining the endogenous input values inputy (k); θ U is a vector of calculated model parameters linearly combining the first exogenous input values input U(k); θ Ul is a vector of calculated model parameters linearly combining the second exogenous input values input U l (k).

[0083] According to an aspect of the invention, one or more final parameters of the mathematical model M R are tuned based on previously calculated corresponding parameters of the mathematical model.

[0084] In particular, the final model parameters θ Ul combining the second exogenous input values input U l (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 U l (k) may be calculated as: θ Ul = 1 − α * θ ′ Ul + α ∗ θ " Ul where: θ ' Ul is a vector of corresponding parameters calculated during the latest training event; θ " Ul is a vector of corresponding parameters calculated during a previous training event; α is a tunable parameter, with 0 < α <= 1.

[0085] 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.

[0086] A larger value of α 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 α provides a faster adaptation as more weight is given to the contribution of the parameter set during the latest training event.

[0087] According to the invention, the prediction method 100 comprises a step 107 of calculating the prediction data D P based on the mathematical model M R set at the preceding steps 106.

[0088] The prediction data D P include prediction values related to the electric energy consumption in the electric grid during the third time window TW 3 .

[0089] As shown above, preferably, the prediction data D P are cyclically calculated at subsequent calculation instants k with a predefined time granularity T P (e.g, 15 minutes).

[0090] Preferably, at each calculation instant k, the prediction data D P are calculated with a predefined time horizon T H (e.g, 24 hours).

[0091] Preferably, the prediction method 100 is cyclically repeated as described above at the end of each third time window TW 3 .

[0092] When third time window T W3 expires, a new linear auto-regressive mathematical M R model is set at a new reference instant t R .

[0093] The above-described steps 102-106 of the method 100 are thus repeated with reference to new time windows TW 1 , TW 2 and TW 3 calculated based on the new reference instant t R while the above-mentioned first detection data D S1 are continuously acquired (step 101 of the method 100) at each acquisition period.

[0094] The newly set mathematical model M R is then used to calculate prediction values related to the electric energy consumption in the electric grid during a new time window TW 3 following the new reference instant t R .

[0095] According to an aspect of the invention (figures 3-4), the method 100 comprises a step 108 of carrying out a first check procedure to check the computational performances of the mathematical model M R established at the reference instant t R .

[0096] The first check procedure 108 is aimed at checking whether the prediction data D P calculated by the mathematical model M R match with corresponding detection data D S1 indicative of the actual electric energy consumption in the electric grid.

[0097] Preferably, the first check procedure 108 comprises a step 108a of comparing the first detection data D S1 and the prediction data D P , 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 t R if the check procedure is executed for the first time) and the current execution instant of the check procedure.

[0098] Preferably, 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 D S1 and the prediction values included in the calculated prediction data D P .

[0099] The error function E, which may be for example a MAPE error function, provides a measure of prediction accuracy ensured by the mathematical model M R while calculating the prediction data D P .

[0100] The check procedure 108 includes a step 108c of updating the mathematical model M R , if the above-mentioned error function E takes values exceeding a threshold error value E TH .

[0101] The updating of the mathematical model M R is carrying out by newly executing the step 106 of the method 100, as described above. In practice, the mathematical model M R is updated by forcing a new training event to be carried out as described above.

[0102] If the above-mentioned error function E takes values, which do not exceed the threshold error value E TH , the mathematical model M R is maintained and the first check procedure 108 is terminated.

[0103] Preferably, the first check procedure 108 is carried out cyclically during the third time window T W3 , for example with a checking period of 24 hours.

[0104] According to another aspect of the invention (figures 3 and 5), the method 100 comprises a step 109 of carrying out a second check procedure to check the predicted electric energy consumption in the electric grid.

[0105] The first check procedure 108 is aimed at checking whether the prediction data D P calculated by the mathematical model M R falls within a confidence band of prediction.

[0106] Preferably, the second check procedure 109 comprises a step 109a of processing the calculated prediction data D P to calculate a prediction function P indicative of a predicted trend of the electric energy consumption in the electric grid.

[0107] In order to calculate the prediction function P, the calculated prediction data D P may be processed by means of suitable statistical techniques of known type.

[0108] Preferably, 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 P Max or lower than a predefined minimum confidence value P Min .

[0109] The confidence values P max , P min may be conveniently calculated by calculating an error function indicative of differences between the detection values included in the collected first detection data D S1 and the prediction values included in the calculated prediction data D P and processing said error function by means of suitable statistical techniques of known type.

[0110] If the above-mentioned prediction function P takes values within the confidence band defined by the confidence values P max , P min , the second check procedure 109 is terminated.

[0111] Preferably, the second check procedure 109 is carried out cyclically during the third time window T W3 , for example with a repetition period of 24 hours.

[0112] The prediction method 100, according to the present invention, provides relevant advantages. The prediction method 100 ensure high level performances in terms of prediction accuracy.

[0113] The circumstance that the linear auto-regressive model M R is configured to process both first and second exogenous input values U(k), U l (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 D P .

[0114] 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.

[0115] The iterative checking of the accuracy of the calculated prediction data further improves the reliability of the prediction method.

[0116] 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.

[0117] 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.

[0118] 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).

Claims

1. Method (100) for predicting electric energy consumption in an electric grid (1), said method being characterised by the following steps: - acquiring (101) first detection data (DS1) including detection values related to an actual electric energy consumption in said electric grid; - acquiring (102, 103) additional detection data (DS2, DS3) including detection values related to the energy consumption in said electric grid during at least a time window (TW1, TW2) preceding a reference instant (tR); - acquiring (104) calendar data (DC) including chronological information associated to the operation of said electric grid; - calculating (105) training data (DT) based on the acquired detection data and calendar data; - based on said training data (DT), setting (106) a linear auto-regressive mathematical model (MR) describing the trend of the electric energy consumption in said electric grid, said linear auto-regressive mathematical model (MR) being configured to process at least a set of exogenous input values (U(k), Ul(k)) indicative of at least a periodic function (U(t), Ul(t)) approximating the profile of the electric energy consumption in said electric grid over said at least a time window (TW1, TW2) preceding said reference instant (tR); - based on said linear auto-regressive model (MR), calculating (107) prediction data (DP) including prediction values related to the electric energy consumption in said electric grid during a time window (TW3) following said reference instant (tR).

2. Method, according to claim 1, characterised in that it comprises the step of acquiring (102) second detection data (DS2) including detection values related to the energy consumption in said electric grid during a first time window (TW1) preceding said reference instant (tR), wherein said linear auto-regressive mathematical model (MR) is configured to process first exogenous input values (U(k)) indicative of a first periodic function (U(t)) approximating the profile of the electric energy consumption in said electric grid over said first time window (TW1).

3. Method, according to one of the previous claims, characterised in that it comprises the step of acquiring (103) third detection data (DS3) including detection values related to the energy consumption in said electric grid during a second time window (TW2) preceding said reference instant (tR), wherein said linear auto-regressive mathematical model (MR) is configured to process second exogenous input values (Ul(k)) indicative of a second periodic function (Ul(t)) approximating the profile of the electric energy consumption in said electric grid over said second time window (TW2).

4. Method, according to one of the previous claims, characterised in that the step (105) of calculating said training data (DT) includes processing the acquired first detection data (DS1) to check the correctness of said data.

5. Method, according to claim 2, characterised in that the step (105) of calculating said training data (DT) 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).

6. Method, according to claim 3, characterised in that the step (105) of calculating said training data (DT) 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).

7. Method, according to one of the previous claims, characterised in that said prediction data (DP) are cyclically calculated with a predefined time granularity (TP) and with a predefined time horizon (TH).

8. Method, according to one of the previous claims, characterised in that said linear auto-regressive mathematical model (MR) is a linear ARX mathematical model with one or more exogeneous inputs.

9. Method, according to one of the previous claims, characterised in that setting said linear auto-regressive mathematical model (MR) includes: - setting a regression order (m) and a maximum number (Tmax) of training steps for said linear auto-regressive mathematical model (MR); - iteratively calculating one or more parameters (θ) of said linear auto-regressive mathematical model (MR) based on said training data (DT) during said training steps by solving an unconstrained linear problem established basing on the set regression order (m) and maximum number (Tmax) of training steps.

10. Method, according to one of the previous claims, characterised in that setting said linear auto-regressive mathematical model (MR) includes tuning one or more parameters (θUl) of said linear auto-regressive model (MR) based on corresponding parameters (θUl) calculated during said training steps and one or more parameters (θ"Ul) calculated for previously set linear auto-regressive mathematical models (MR).

11. Method, according to one of the previous claims, characterised in that it comprises the step (108) of carrying out a first check procedure to check the computational performances of said mathematical model.

12. Method, according to claim 11, characterised in that said first check procedure (108) comprises: - comparing (108a) the first detection data (DS1) acquired during a predefined checking period and the prediction data (DP) calculated during said checking interval; - calculating (108b) an error function (E) indicative of differences between the detection values included in said first detection data (DS1) and the prediction values included in said prediction data (DP); - updating (108c) said auto-regressive mathematical model (MR), if said error function (E) takes values exceeding a threshold error value (ETH).

13. Method, according to one of the previous claims, characterised in that it comprises the step (109) of carrying out a second check procedure to check the electric energy consumption predicted by said mathematical model.

14. Method, according to claim 13, characterised in that said second check procedure (109) comprises: - processing (109a) the calculated prediction data (DP) to calculate a prediction function (P) indicative of a predicted trend of the electric energy consumption in said electric grid; - generating (109b) an alert signal, if said prediction function (P) takes values higher a maximum confidence value (Pmax) or lower than a minimum confidence value (Pmin).

15. A computer program, which is stored or storable in a storage medium, characterised in that it comprises software instructions to implement a method (100), according to one or more of the previous claims.

16. A computerized device characterised in that it comprises data processing resources configured to execute software instructions to implement a method (100), according to one or more of the claims from 1 to 14.

17. A computerised device, according to claim 16, characterised in that it is an intelligent electronic device (5) for an electric power distribution grid (1).