This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Temporal Motifs in Smart Grid

Rucha Bhalchandra Joshi
[email protected]
Machine Learning And Building (MLAB),
School of Computer Sciences
National Institute of Science Education and Research, Bhubaneswar - 752050, India
Homi Bhabha National Institute, Anushaktinagar, Mumbai - 400094, India
Annada Prasad Behera
[email protected]
Machine Learning And Building (MLAB),
School of Computer Sciences
National Institute of Science Education and Research, Bhubaneswar - 752050, India
Homi Bhabha National Institute, Anushaktinagar, Mumbai - 400094, India
Subhankar Mishra
[email protected]
Machine Learning And Building (MLAB),
School of Computer Sciences
National Institute of Science Education and Research, Bhubaneswar - 752050, India
Homi Bhabha National Institute, Anushaktinagar, Mumbai - 400094, India
Abstract

A complex network can be characterized by patterns. Such frequently occurring significant patterns are called motifs and in a time dependent network, they are called temporal motifs. One of the temporal networks where temporal motifs are observed and play a major role; is the Smart Grid. The energy consumption pattern across the appliances, houses, communities and entire cities help energy utility companies and consumers plan their electricity generation and consumption. The temporal motifs for the smart grid constitutes of the consumers and producers and the edge or connection represents energy flow between two participants of the network, these connections last till the power is being consumed/generated. This paper formally defines the temporal motifs for smart grid network and proposes a way to create such temporal motifs in the network. We also discuss how the temporal motifs fit into the hierarchical structure of power distribution system of Smart Grid.

Keywords— Smart Grid, Temporal Motifs, Complex Systems, Cyber-physical Systems

1 INTRODUCTION

Many complex systems can be abstracted with the help of networks. The entities participating in the systems are modeled as nodes and the relations by which they are linked to each other are modeled as the edges of a network graph. Abstractions help us study the complex system such as food chain, citation network. Time dependent systems can be abstracted as temporal networks. Some notable examples of temporal network are Facebook, Email as well as recent networks such as Bitcoin. Structure of the temporal network changes with time. Since the edges in temporal graphs depend on time, their presence is determined only at a given time. To understand the behaviour of the temporal network, it is essential to consider the time of occurrence of temporal edges.

One such system is smart grid network. A smart grid has various entities, such as producers, consumers, transmitters of power, participating in the network. The hierarchical structure of the smart grid has been discussed by [Aggarwal et al., 2010, Mishra et al., 2016] where the power distribution in the grid is according to the voltage. [Rech and Harth, 2012] discussed the existence of the consumption sector of the hierarchy wherein the lowermost layer consists of the last links of distribution grid connecting consumers to the main grid. A transformer supplies the power to the consumers that are connected to it. So, the second layer from the bottom consists of transformers. The third layer is of substations that supply power to the transformers in second layer. This hierarchy goes up along with all the participating entities in the grid network. Pattern of distribution of power consumption over the period of time form motifs. These motifs depicts the behaviour of the participating entities.

In a smart grid, the meters can get the data pertaining to each of the appliances used in the house that consumes amount of electricity. Smart meter keeps track of the consumption of each of the rooms or any other infrastructure that consumes electricity. Hence, at household level, the electricity consumption and distribution is known with the help of smart meters. The inferences about the usage of electricity at the lowermost layer in a smart grid can be drawn by taking this consumption data into consideration.

Our contributions are as follows:

  • We formally define temporal motifs that occur in smart grid network.

  • We show a method for constructing such temporal motifs in smart grid network.

  • We discuss temporal motifs in smart grid with overlapping window and fitting the temporal motifs in the hierarchical structure of the smart grid.

The remainder of the paper is organized as follows: Section 2 discusses the related work. We discuss the background work in Section 3. Section 4 gives the detailed explanation of our proposed model. We present a case study and discussion of temporal motifs in smart grid network are in Section 3 and 4 respectively. We present the conclusions in Section 6.

2 RELATED WORK

Motifs [Milo et al., 2002] are the basic building blocks of a complex network. They are recurring, significant patterns of interconnections. The network motifs are defined to study the structural design principles of complex networks in various fields such as biochemistry, neurobiology, ecology, engineering and so on.

Motifs, defined as the frequently occurring and significant patterns in time, can be used to characterize the time series data [Lin et al., 2003]. Motifs in temporal networks have been defined in order to understand their role in the temporal networks such as the network of emails, phone calls, social media etc. [Paranjape et al., 2017]. However, they only consider the occurrence of the edges one at a time without any duration attached to the existence of the edges.

Motif based pattern detection technique was proposed to discover regular behaviour of smart meter users [Funde et al., 2018]. The model proposed by [Funde et al., 2018] considers one appliance at a time and detects the motifs formed by it. They develop temporal association rule mining to find the relation between usage of energy by various appliances in a particular time period. However, considering only one appliance at a time does not tell a complete story about the consumption pattern of the members of the house.

3 BACKGROUND WORK

3.1 Temporal Graph and Motif

In a temporal graph G=(V,E)G=(V,E) where VV is set of vertices and EE is set of edges, the temporal edges are represented as (u,v,t)(u,v,t) where u,vVu,v\in V and a timestamp tt is associated with the edge. Temporal motif is a collection of edges in a particular sequence that form a particular structure in a given time window δ\delta. Since the timestamps are attached with each of the edges in temporal network, the motif is the structure occurring within time δ\delta from the occurrence time of first edge. This time window of size δ\delta is slid over the time as we consider the next motif. When we consider the temporal edges in smart grid, the edges occur at different times but they last for a duration of time. Smart grid is a specific application of temporal network where the edges have a time of occurrence and it remains in the network till the appliance that caused it to occur was switched off or no longer draws any energy from the meter. This differentiates our work from the previous work as edges stay alive for a certain duration. We say that an edge occurs at a given time when the appliance corresponding to the node connecting the edge is turned on. The smart meter captures the energy at particular time interval in a sequence, hence we have to assign a window time to it rather than the actual start time of the consumption. The energy consumption by same appliance may vary at different times.

3.2 Topology of Smart Grid

Refer to caption
Figure 1: Topology of Power Grid

The power distribution grid is arranged according to the voltage [Aggarwal et al., 2010]. The various levels of the hierarchy are connected using the voltage networks, here power plants are connected via high voltage networks and the level of household appliances is connected using a voltage network. The smart grid is defined to consist of nodes NN and interconnected edges EE; where nodes represent the actors and are connected to #b\#b other nodes (bb is branching factor). The levels of this hierarchy is denoted by LL [Rech and Harth, 2012].

4 SMART GRID TEMPORAL MOTIFS

We propose a model (Figure 2) for creation of temporal star motifs with associated symbol corresponding to the energy consumption. We also show how these motifs help to draw inferences from the hierarchy of the participants of a smart grid network. In our proposed model the edges of the motifs have been tagged with symbols associated with corresponding energy consumption levels and time window. These timestamps are indicatives of window frame numbers. They imply the order of occurrences of the motif structures.

Refer to caption
Figure 2: Overview of motif creation process for smart grids

Consider mim_{i} to be meter reading (total) at a given time ii. We consider a time series T=m1,m2,,mtT={m_{1},m_{2},...,m_{t}}. Each mim_{i} consists of the values corresponding to internal distribution of energy among all the appliances utilizing the energy at a given time ii. Let AA be the set of appliances. Let cijc^{j}_{i} be the energy consumed by the jthj^{th} appliance at time ii. Therefore,

mi=jAcijm_{i}=\sum_{j\in A}c^{j}_{i}

4.1 Motif Creation

A star motif is defined as a graph of kk nodes in total, out which one node (the center node) has k1k-1 neighbors, which is the center node while all the other nodes have only one neighbor each. An example of star motif is shown in Fig. 3.

Refer to caption
Figure 3: Example of a star motif. There are 5 nodes in total. One center node and four neighbors to the center node. The direction of the edges between the center node and the neighboring nodes depends on the relationship between them.
Refer to caption
Figure 4: Example of a static star motif in a house

We consider a particular consumer where there are various appliances in a house that contribute to overall consumption of energy in the house. All of which are essentially connected to the main smart meter. We create a star motif of these appliances along with the smart meter. Fig 4 shows a star motif within a house where we consider the smart meter in the house to be the center node and all the appliances to be the rest of the nodes which are only connected to the center node. The nodes for the appliances that draw energy from the meter are represented using an edge from meter (center node) to the appliance (corresponding neighboring node). For any other equipment that generates energy (e.g. solar panel), the edge goes from the equipment to the center node.

4.2 Symbolic Representation

  1. 1.

    Data Preprocessing and Min-max Normalization. Time series data preprocessing is done to normalize the data. We consider smart meter data which keeps track of consumption of each of the appliance. We perform min-max normalization so that the values after normalization lies between [0,1][0,1]. The normalized value yy, of a data point xx, is given by

    y=(xmin)(maxmin)y=\frac{(x-min)}{(max-min)}

    where minmin is the minimum and maxmax is the maximum data value in the dataset.

  2. 2.

    Piecewise Aggregate Approximation. On the normalized data, we apply Piecewise Aggregate Approximation (PAA) to discretize the data. By selecting the right parameters in PAA, it can be altered to suit the needs of the application at hand. The normalized time series data is divided into ww windows. The average of values in every window is calculated.

  3. 3.

    Matching Symbols to Energy Levels. After PAA, we represent the energy consumption of each of the appliance with a symbol. Number of energy levels and their corresponding symbols is another parameter that can be set according to use case. The symbol values represent the levels of energy consumption over normalized data. The data values range between 0 and 1, so we decide on number of symbol to be used and range of each of energy consumption corresponding to each symbol. The number of energy levels vary application to application.

4.3 Symbol assignments to edges of a motif

The edges in static motif that we created in first step, for a house is assigned timestamps associated with the time window in which we are determining the associated symbol. In the static motifs, edges are between the main line and an appliance. The temporal edge occurs in smart grid in the window in which an appliance is turned on.

We define the temporal edge for grid network as quadruple represented as (u,v,tw,x)(u,v,t_{w},x). Table 1 describes each component of the quadruple. We perform the operations described in the previous steps on the data, to get the symbols associated for each of the appliance in the same set of time windows. Then, for a particular window, consider all the appliances along with meter as nodes, while the energy production and consumption among appliances determine the directions between the edges and the level of energy consumption is given by the symbol associated with the edge. The time window is in which we are determining the consumption level is given by the timestamp corresponding to the time window.

Variable Description
uu Supplier of power (any appliance that produces or supplies power)
vv Consumer of power (any appliance that consumes power)
twt_{w} Timestamp of the time window corresponding to the edge
xx Symbol corresponding to the level of energy consumption assigned to the edge n the given window
Table 1: Description of variables associated with a temporal edge in smart grid

The complete data of consumption in a grid can be represented as the collection of the temporal edges we defined earlier.

Refer to caption
Figure 5: Example of star motif in a house

4.4 Temporal Motifs for Electric Grid Network

As shown in Fig. 5, along with assignments of symbols to the edges in static motif, note that this motif structure occurs in a particular time duration, since each of the symbols assigned to the edges represent the level of consumption in a particular time period. The motif helps us to look at the consumption and distribution of energy among all appliances in a time slot in a house. The collection of such motifs over a time windows of size δ\delta is defined to be a temporal motif for energy consumption data.

5 CASE STUDY

We take an example to demonstrate the steps to create temporal motifs in smart grid network. We take a part of Pecan Street Dataport [Dataport,] from 15 minute dataset. We consider a house with data-id 27, which is located at New York. For this house, we consider the consumption values for the time period 04:00:00 to 07.00.00 on 2019-05-01.

5.1 Motif Creation

Refer to caption
Figure 6: Static Motif for house ID 27

The underlying star motif for this house ID is shown in Fig.6. This is derived based on the appliances used in the house.

5.2 Symbolic Representation

  1. 1.

    Data Preprocesssing and Min-max Normalization. Preprocessing and min-max normalization of data is done according to formulas mentioned in Section 1 to get the normalized data.

  2. 2.

    Piecewise Aggregate Approximation. Since the data has a duration of 3 hours, with windows size of 1 hour, the number of windows w=3w=3. For any given time window there is a value attached to it which is average of the values corresponding to the timestamps in the window.

  3. 3.

    Matching Symbols to Energy Levels. We consider 4 symbols a,b,ca,b,c and dd, they correspond to four consumption levels. Very low consumption is represented by a symbol aa, bb represents average energy consumption, cc represents more than average consumption of energy while very high energy consumption is represented by symbol dd.

    We define the range for each of the symbols as shown in Table.2.

    Symbol Range
    aa 0value<0.250\leq value<0.25
    bb 0.25value<0.50.25\leq value<0.5
    cc 0.5value<0.750.5\leq value<0.75
    dd 0.75value10.75\leq value\leq 1
    Table 2: Range for each of the symbols

5.3 Symbol assignments to edges of a motif

Each edge in the static motif created in Section 5.1 has a symbol that corresponds to the average of the values of consumption on each edge in a window. The symbols are assigned to the edges. An example of a motif in House ID 27 for time window labelled t1t_{1} for duration on 1 hour is shown in Fig.7(a).

Refer to caption
(a) Motif at time t1t_{1}
Refer to caption
(b) Motif at time t2t_{2}
Refer to caption
(c) Motif at time t3t_{3}
Figure 7: Temporal motifs in smart grid network

5.4 Temporal Motifs for Electric Grid Network

. A sequence of motifs created in Section 5.3 may have different symbols associated with their edges in different time windows, since the energy consumption varies over time. Such a sequence is the temporal motif in a smart grid network. The final temporal motif with 3 time windows is shown in Fig.7. Increase in consumption level is indicated by symbols inside upward pointing triangles, whereas the decrease in consumption is indicated by symbols inside triangles facing downward in the temporal motifs.

6 DISCUSSION

Overlapping Temporal Motifs

While we only consider the window for finding the symbols associated with edges to be non-overlapping, other possibilities to be considered are overlapping window and the absolute consumption values. Considering absolute values is too specific because the consumption of energy on one day may not be exactly the same as that on the next day. Hence assigning symbols based on absolute values at a given time may not help infer anything useful about the data. In a time period, if the average data consumption is considered then it gives the approximate consumption level of the appliance.

Overlapping window can be considered if it is needed for the application under consideration. We slide the window over the time duration with some predetermined time overlapping in two consecutive windows. This would help in maintaining the information related to continuity of the data to some extent depending on how much the overlap is.

Fitting Temporal Motifs into Smart Grid hierarchy

We propose this model for residential type of locality. This is easily scalable to other types of localities as well, such as industrial, commercial etc and can be extended to fit other hierarchical levels in the smart grid as well as other complex networks. To study the role that these motifs play in smart grid network, it is essential that we consider the hierarchy of the participants of the network. The hierarchy described in [Rech and Harth, 2012] is discussed below to suit for the requirement of our model.

  • The very basic level in the hierarchy consists of the appliances in a household. As discussed earlier the motifs which are formed at this layer are based on electricity consumption of each of the appliances at various times.

  • The layer above the layer of appliances is of houses in a locality or a community residing at a particular location. The motifs would consist of the houses in the locality and the point of supply of electricity to all these houses as nodes. The consumption of each of the houses at various times would determine the edges and the direction of the edges. These motifs can be defined in similar fashion as we did earlier by determining the suitable parameter values.

  • Similarly, the next layer consists of communities which together form a city.

  • More layers can be thought of and considered on top of the previously mentioned layers so as to build the model of motifs that will help enable us to study and determine various aspects of a smart grid network.

7 CONCLUSION

Temporal motifs play an important role in characterizing networks. The change in usage of power over time helps to study the behaviour of the consumers. We have formally defined the temporal motifs in smart grid network. We have also described the construction of such temporal motifs in smart grid network, without overlapping windows, how to fit them in the hierarchical structure of the network. In future we will use motifs to draw inferences about participants of the grid network. We will also look at impact of this model on the energy distribution policies.

ACKNOWLEDGEMENTS

This research was partially supported by NRDMS/UG/S.Mishra/Odisha/E-01/2018

References

  • [Aggarwal et al., 2010] Aggarwal, A., Kunta, S., and Verma, P. K. (2010). A proposed communications infrastructure for the smart grid. In 2010 Innovative Smart Grid Technologies (ISGT), pages 1–5, Gaithersburg, MD, USA. IEEE.
  • [Dataport, ] Dataport. https://dataport.pecanstreet.org/. Pecan Street Inc. Dataport, accessed on 24 January 2020.
  • [Funde et al., 2018] Funde, N., Dhabu, M., and Balande, U. (2018). Motif-Based Pattern Detection Method for Smart Energy Meter Data. In 2018 3rd International Conference for Convergence in Technology (I2CT), pages 1–5, Pune. IEEE.
  • [Lin et al., 2003] Lin, J., Keogh, E., Lonardi, S., and Chiu, B. (2003). A symbolic representation of time series, with implications for streaming algorithms. In Proceedings of the 8th ACM SIGMOD Workshop on Research Issues in Data Mining and Knowledge Discovery, DMKD ’03, page 2–11, New York, NY, USA. Association for Computing Machinery.
  • [Milo et al., 2002] Milo, R., Shen-Orr, S., Itzkovitz, S., Kashtan, N., Chklovskii, D., and Alon, U. (2002). Network Motifs: Simple Building Blocks of Complex Networks. Science, 298(5594):824–827.
  • [Mishra et al., 2016] Mishra, S., Li, X., Pan, T., Kuhnle, A., Thai, M. T., and Seo, J. (2016). Price modification attack and protection scheme in smart grid. IEEE Transactions on Smart Grid, 8(4):1864–1875.
  • [Paranjape et al., 2017] Paranjape, A., Benson, A. R., and Leskovec, J. (2017). Motifs in temporal networks. Proceedings of the Tenth ACM International Conference on Web Search and Data Mining - WSDM ’17.
  • [Rech and Harth, 2012] Rech, D. and Harth, A. (2012). Towards a decentralised hierarchical architecture for smart grids. In Proceedings of the 2012 Joint EDBT/ICDT Workshops on - EDBT-ICDT ’12, page 111, Berlin, Germany. ACM Press.