Next Article in Journal
Power Generation Targets from Hot Composite Curves
Next Article in Special Issue
Secure Protocol and IP Core for Configuration of Networking Hardware IPs in the Smart Grid
Previous Article in Journal
A Traveling-Wave-Based Fault Location Scheme for MMC-Based Multi-Terminal DC Grids
Previous Article in Special Issue
Smart Grid Applications for a Practical Implementation of IP over Narrowband Power Line Communications
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improving Control Efficiency of Dynamic Street Lighting by Utilizing the Dual Graph Grammar Concept

Department of Applied Computer Science, AGH University of Science and Technology, Al. Mickiewicza 30, 30-059 Kraków, Poland
*
Author to whom correspondence should be addressed.
Energies 2018, 11(2), 402; https://doi.org/10.3390/en11020402
Submission received: 5 December 2017 / Revised: 20 January 2018 / Accepted: 6 February 2018 / Published: 9 February 2018
(This article belongs to the Collection Smart Grid)

Abstract

:
The paper introduces a definition of dual graph grammar. It enables two graphs to share information in a synchronized way. A smart city example application, which is an outdoor lighting control system utilizing the dual graph grammar, is also demonstrated. The system controls dimming of street lights which is based on traffic intensity. Each luminaire’s light level is adjusted individually to comply with the lighting norms to ensure safety. Benefits of applying the dual graph grammar are twofold. First, it increases expressive power of the mathematical model that the system uses. It becomes possible to take into account complex geographical distribution of sensors and logical dependencies among them. Second, it increases the system’s efficiency by reducing the problem size during run-time. Experimental results show a reduction of the computation time by a factor of 2.8. The approach has been verified in practice.

1. Introduction

Applying the graph theory to create formal models of intelligent spaces has already been proven useful, as they enable interactions between smart city components [1,2]. Synergy of knowledge regarding different aspects of the space under consideration can result in added value [3]. An illustrative example is street and road lighting [4]. A formal architectural model can represent features such as streets, pavements, sidewalks, medians, buildings, trees etc. Having such a model enables outdoor lighting design optimization and its dynamic control [1].
Lighting design is about defining the placement of poles and luminaires as well as their parameters, such as luminaire type, its power, overhang, tilt, rotation etc. Design optimization is aimed at providing particular values of these parameters to maximize safety and minimize energy usage.
Dynamic control is about adjusting lighting levels on demand, based on the current needs, taking into account such factors as traffic intensity or weather conditions. Having a graph-based formal model enables easy deployment of control schemas, even exceedingly sophisticated ones. It follows the idea of data-driven design which separates data, the formal model, from its processing, the control rules. From a practical point of view, it also facilitates deployments in new locations. The control rules do not have to be updated or reprogrammed—it is sufficient to provide a new model of the environment. Such graph-based dynamic control results in increased efficiency, both in terms of lighting energy consumption reduction and decreased deployment effort.
In order to make the environment safe, its illumination has to comply with lighting norms, such as CEN/TR 13201-1: 2004 or 2014 [5,6]. While designing a lighting system, proper selection of the lighting class, applied to a given area being illuminated, is most important. A lighting class is a set of lighting requirements such as illumination, uniformity etc. Particular classes, such as me2, me3 etc. deliver well-defined lighting levels.
The main driver for this paper is based on experience from a research project which resulted in deployment of 3768 light points in Kraków, Poland. It has been observed that the sensor infrastructure becomes more and more complex, delivering more and more information. It is often redundant to provide comparative results or robustness to failures. In Kraków, the number of ambient light sensors for outdoor lighting has increased 15 times over just one year (2016). Instead of a single sensor in an electric cabinet which supplies three circuits of 50 luminaires each, there is one for every 10 luminaires, mounted on the lamp pole. Similarly, the number of traffic intensity sensors has increased as well. For a typical intersection, the number of traffic intensity detectors (induction loops) has increased by a factor of 2. For example, in the case of a 4-way intersection with 10 inbound and 6 outbound lanes, it has increased from 10 to 20.
This paper focuses on providing a formal basis to incorporate knowledge regarding multiple sensors into the lighting control model by introducing the dual graph grammar concept. As a result, the model remains easy to comprehend, while the computing power needed to process and interpret it is decreased.

2. Motivation and Related Research

The concepts of smart cities and smart environments, as well as technologies related to them, are gaining traction. The main technological enablers are Internet of Things (IoT) and sensor nets resulting in broad availability of data [4,7,8]. The main drivers are safety, convenience and, last but not least, economic factors such as energy savings [9,10]. Often, combination of smart technologies with renewable energy sources offers added economic value [11]. Such solutions can be applied at the scale of an entire city [12], a single block, or indoor [13,14,15]. They are often based on rules and configured for particular deployments [16,17,18,19]. However, a lack of underlying formal models often results in harder and more costly adjustment to evolving requirements or deployment at new locations.
Graphs seem to be an appropriate tool to develop such models [1,20]. However, one of the challenges is the efficiency of graph transformations. The main problems are graph parsing and determination of membership. With strong limitations on the graph structure, the membership problem is of O ( n 2 ) computational complexity [21]. However, in general it remains a higher-order polynomial. The efficiency depends on the size of the entire graph. One of the methods of its reduction is the concept of hierarchical graphs [22,23], where the nodes can also be graphs introducing more detail at the graph’s lower levels. While the concept provides a convenient structure, it also increases the graph size and processing complexity. Real-world cases indicate a need for a representation which would not require increased processing power. An example of such a case is generation of dynamic control rules for an outdoor lighting system. Initially, a flat graph structure, the Control Availability Graph (CAG), was proposed for this purpose [1,20]. It is an extract of architectural features that are necessary to provide dynamic control, hence the name. Dynamic control is provided by software performing the following tasks:
  • obtaining data from sensors and updating the CAG accordingly (traffic intensity and ambient light intensity sensors are considered),
  • firing the control rules in the form of graph transformations, which results in conclusions being stored in the CAG,
  • delivering the conclusions to the actuators, which set power levels of the appropriate luminaires.
The more luminaires are under control, the larger the CAG becomes. Since the control software is meant to be used as an embedded system, the performance requirements play a major role.
To present the CAG concept let us introduce an example intersection which is given in Figure 1. To control lighting intensity, the following formal structure has been defined. There is a single street segment s 1 , which is a length of a street with uniform lighting conditions. It covers four luminaires l 1 , , l 4 . There is also an ambient light detector d a 1 and a traffic intensity detector d t 1 . A corresponding CAG is given in Figure 2. Some of the graph indices, labels and attributes are shown. The following graphical convention is used. Vertex labels are indicated within vertices, indices, if present, are prefixed with a “/” character. For example, a vertex indicated as d t / d t 1 has the label d t and an index of d t 1 . In this case, the vertex represents a traffic intensity detector, hence the label d t . Indices are arbitrary symbols to increase readability and correspondence with real objects. Edge labels can also be present. For example, between vertices s 1 and c 1 , there is a label indicating the lighting class m e 3 . Attribute names and values are indicated as well, for example p ( 0.8 ) is an attribute p holding the value of 0.8 which indicates luminaire’s power level.
The graph consists of a vertex labeled as d t which represents a traffic intensity detector, d a which represents an ambient light detector, s which represents a segment, c which represents a luminaire configuration, and finally l representing a luminaire. Edge labels between vertices c and s represent lighting classes which are provided by a given configuration on a given segment. With each lighting class, the power level of the luminaries belonging to the segment is defined. It is represented as the p attribute of an edge between vertices labeled c and l. Its value is a coefficient by which a luminaire’s power setting has to be adjusted, ranging from 0 (0%) to 1 (100%). It indicates how much the luminaire should be dimmed. Assuming that the power setting is expressed as p ( x ) , its relationship with the dimming is expressed as: x = 1 d . The settings for a given configuration which supports an indicated norm are computed based on photometric calculations according to the lighting norms while building the graph. During run-time, when control is carried out, the values of the sensors allow to determine the proper lighting class, represented as an edge between s and c. The power settings for each of the luminaires are selected accordingly based on the class.
In case of cities with thousands of lamps, such a graph consists of hundreds of thousands of nodes and edges, thus both the readability of the model and efficiency of graph grammars are major challenges.
The CAG is built by performing photometric calculations based on the lighting norms. The examples in this paper, as well as the deployment in Kraków, utilize CEN/TR 13201-1: 2004 norm [5] even though the norm was updated in 2014 [6]. It is because the deployment was designed in 2015 and 2016 at which time the 2014 update was not acknowledged in Poland yet.
In this paper, we introduce the dual graph grammar concept. It results in a graph-based model with low computational complexity and flexibility where needed. An example application is a dynamic street lighting control system. It enables efficient adjustment of lighting to particular needs and capabilities by providing high-performance processing. The adjustment can be based on far more complex logical relationships among sensors than the ones presented in Figure 2.
There is also additional motivation to use as many sensors as available. The more sensor information is available, the more precise the control process is, which can lead to increased energy savings. For example, if there are redundant traffic intensity sensors taken into consideration, not delivering the measurements by one of them does not influence the control process. If there is no redundancy, a malfunctioning traffic detector forces the control system to assume the maximum value of allowed traffic intensity. This results in delivering more light than necessary and consuming more energy.
It needs to be pointed out that even insignificant energy savings at a single luminaire lead to substantial savings for a city, due to the effect of scale. A city with a population of 1 million has approximately 80,000 light points (it has been experimentally established that there is a relationship between population density and the number of light points in urbanized areas, there are 8 light points per 100 citizens for Poland), which consume from 20 to 50 GWh per year. The estimation is based on the assumption that the wattage of a single luminaire varies from 60 to 150 (both LED and HPS light sources) on average.

3. Problem Statement

A synthesis of the CAG model, which is based on photometric calculations and a rule-based control approach were proposed in [1]. The control process works efficiently as long as the sensor infrastructure is built from the ground up, having only one detector of a given kind at any street segment. However, in the real world, there are usually multiple detectors of a kind at one segment which are part of an Intelligent Transportation System (ITS) or a sensor network which is already deployed. If so, input to the lighting control system should be based on a result of calculations on data from these multiple detectors. Extending the model, thus the graph grammar, to cover these additional computations, while perfectly justified, leads to some undesired side effects. First of all, the model becomes less clear, focusing on the sensors and relationships between them, instead of binding sensors with segments, configurations and luminaires. Then, the control rules have to take care of choosing the most appropriate sensor from a group and applying the appropriate calculations. It makes them more complex, challenging to verify, and can also lead to decreased processing performance of such a model during run-time.
To handle these issues, the concept of a dual graph grammar is introduced. Such a grammar provides double expressiveness of the model: efficient calculations on sensor data and logical organization of the infrastructure. It is created by combining two separate graph grammars and explicitly stating the synchronization conditions between the graphs they generate. As a result, there will be two synchronized graphs representing these two aspects. Such an approach will also improve run-time performance, since the two graphs can be processed independently.
Before introducing formal definitions, let us focus on an example which explains the problem. As mentioned earlier, in highly urbanized areas, the example shown in Figure 1 becomes unrealistic. The actual detector distribution would be close to that presented in Figure 3 instead. The difference is that for multi-lane streets, there is usually at least one detector per lane. Sometimes, the traffic intensity detectors are doubled or tripled and their placement could be before or after an intersection. Considering the example in Figure 3, in order to calculate the traffic intensity d t in segment s 1 , one needs to perform:
d t = max ( d t 1 , d t 3 ) + max ( d t 2 , ( d t 4 + d t 5 ) )
where d t 1 , , d t 5 express traffic intensity measured by respective traffic intensity detectors. In this case, d t 1 and d t 3 are redundant, measuring traffic intensity in the same lane. Similarly, d t 2 and a sum of d t 4 and d t 5 are redundant too.
There could also be more than one ambient light sensor for a single segment. These sensors are often located on the poles, together with luminaires. The actual ambient light intensity, taking into account multiple ambient light detectors, should be calculated as:
d a = min ( d a 1 , d a 2 )
where d a 1 and d a 2 represent ambient light intensity measured by respective detectors. The min() function is used since the lighting level at the segment has to be adjusted to the lowest value of ambient light detected, to avoid the segment being underlit.
A model with all the sensors taken into consideration could look like the one given in Figure 4. However, as mentioned earlier, it is not practically feasible, because it lacks the knowledge about what particular calculations should be performed; spatial and logical relationships among the detectors are not there. Thus, in order to make it usable, the model gets simplified, taking into consideration only a subset of the detectors, as shown in Figure 5. Then, by a rule of thumb, traffic intensity for all traffic detectors should be added up, while ambient light intensity is calculated as a minimum over all detectors for a given segment.
However, there are still some issues:
  • no detector redundancy is taken into consideration, which the increases risk of traffic intensity misjudgment due to sensor failure or noise,
  • sensors to be included in the CAG have to be hand-picked,
  • data aggregation from multiple detectors is driven by control rules; it is performed on an arbitrary number of detectors, which might result in run-time performance degradation, since the number of detectors can vary from segment to segment.
Let us show how the proposed dual graph grammar can solve these issues.

4. Dual Graph Grammar Representation

As mentioned in the previous section, the CAG structure does not directly represent the complexity of the influence of multiple sensors on lighting segments and subsequently on the luminaires to be controlled. Hard-coding it, which is using general-purpose programming languages to represent this influence, would make it hard to analyze or modify, since it would not be part of the graph. On the other hand, extending the CAG to perform additional processing to cover the influence would increase its size and decrease the overall processing efficiency, since the complexity of graph parsing algorithms depends on the graph size. To solve these problems, we introduce the dual graph grammar representation, in which two graph grammars are used to generate a consistent model in such a way that they are separate graphs with common elements. The synchronization of both graphs is provided by the validation properties associated with each of the grammars. As a result, the two graphs have separate purposes: one is used for control, and the other—to express relationships among sensors. Let us define this structure formally.
Definition 1.
A dual graph grammar [ Ψ , Θ ] is a pair of graph grammars:
Ψ = ( Σ Ψ , Γ Ψ , Δ Ψ , Φ Ψ , S Ψ , Π Ψ )
Θ = ( Σ Θ , Γ Θ , Δ Θ , Φ Θ , S Θ , Π Θ )
where:
  • Σ Ψ and Σ Θ are the sets of node labels,
  • Δ Ψ Σ Ψ , Δ Θ Σ Θ are the sets of terminal node labels,
  • Γ Ψ and Γ Θ are the sets of edge labels,
  • Φ Ψ and Φ Θ are the sets of transformation rules,
  • S Ψ and S Θ are the starting graphs,
  • Π Ψ and Π Θ are the validation graph grammar conditions,
and the following condition is fulfilled: Σ Ψ Σ Θ .
Applications of transformation rules on a graph are atomic. This means that two productions on a single subgraph are mutually exclusive.
Definition 2.
A dual graph grammar [ Ψ , Θ ] is synchronized if both validation conditions Π Ψ and Π Θ are met.
Let us explain how the proposed dual graph grammar notation supports the problem of maintaining the influence of multiple sensors on a given segment. The basis for this concept is the notion of a virtual detector. It represents a data source with values calculated based on information from actual detectors. There is only one virtual detector of a given type in relation with a segment. In this case, a node labeled by d v a will represent such a detector, providing ambient light intensity. Similarly, a node labeled by d v t (virtual traffic detector) will represent traffic intensity. We assume that d v a and d v t are the only node labels that belong to Σ Ψ Σ Θ .
The Ψ graph grammar will provide the logical relationships among entities; it enables control by defining a new Control Availability Graph: CAG Ψ . Its role is to:
  • maintain information about the lighting infrastructure to be controlled,
  • optimize the internal structure of the lighting system (for more details see [24]),
  • evaluate the current CAG Ψ parameters to provide actual control.
The Θ grammar will define the evaluation rules for virtual detectors—a Detector Structure Graph (DSG Θ ). Its role is to:
  • maintain information about the detectors’ logical structure and evaluation conditions of sensory data resulting in virtual detectors’ values,
  • evaluate the virtual detectors’ values.
Let us define CAG Ψ and DSG Θ formally.
Definition 3.
CAG Ψ is an attributed graph over the set of node labels Σ Ψ and the set of edge labels Γ Ψ which is generated by the Ψ grammar:
CAG Ψ = ( V Ψ , E Ψ , l a b Ψ V , l a b Ψ E , Σ Ψ , Γ Ψ , a t t Ψ V , a t t Ψ E , A Ψ V , A Ψ E )
where:
  • V Ψ is a finite, nonempty set of graph nodes identified unambiguously by some injective indexing function I n d e x : V Ψ IS , where IS is a set of indexing symbols (usually N is used but in some cases it is easier to provide arbitrary symbols to increase readability),
  • E Ψ V Ψ × V Ψ is a set of edges,
  • Ψ _ l a b Ψ V : V Ψ Σ Ψ is a node labelling function,
  • Ψ _ l a b Ψ E : E Ψ Γ Ψ is an edge labelling function,
  • Σ Ψ = { s , l , d v t , d v a , c } is a set of node labels, where:
    -
    s represents segments,
    -
    l represents luminaires,
    -
    d v t and d v a represent virtual traffic and ambient light intensity detectors, respectively,
    -
    c represents a configuration, which is a set of adjustments, associated with a relevant set of luminaires at a given segment,
  • Γ Ψ = { m e 2 , m e 3 , m e 4 , m e 5 } is a set of edge labels, where: m e 2 , m e 3 , m e 4 , m e 5 are lighting classes,
  • a t t Ψ V : V Ψ × Σ Ψ 2 A Ψ V is a node attributing function, such that for x V Ψ ,   l Σ Ψ ,   a A Ψ V   a t t Ψ V ( x , l ) ( a ) is a value of the attribute a,
  • a t t Ψ E : E Ψ × Γ Ψ 2 A Ψ E is an edge attributing function, such that for x E Ψ ,   l Γ Ψ ,   a A Ψ E a t t Ψ E ( x , l ) ( a ) is a value of the attribute a,
Intuitively, we feel that each segment s is connected by an edge with exactly one d v t and one d v a .
Formally, the validation condition Π Ψ of the grammar is as follows:
v 1 , V Ψ : l a b Ψ V ( v 1 ) = l , ! v 2 , V Ψ : l a b Ψ V ( v 2 ) = d v t , ! v 3 , V Ψ : l a b Ψ V ( v 3 ) = d v a , v 4 V Ψ : l a b Ψ V ( v 4 ) = s , v 5 V Ψ : l a b Ψ V ( v 5 ) = c , { ( v 3 , v 4 ) , ( v 2 , v 4 ) , ( v 4 , v 5 ) ( v 5 , v 1 ) } E Ψ
Definition 4.
DSG Θ is an attributed directed graph over the set of node labels Σ Θ and the empty set of edge labels Γ Θ which is generated by the Θ grammar:
DSG Θ = ( V Θ , E Θ , l a b Θ V , Σ Θ , a t t Θ V , A Θ V )
where:
  • V Θ , E Θ , l a b Θ V , a t t Θ V , A Θ V are defined similarly as in Definition 3,
  • Σ Θ = { d v t , d v a , d t , d a , + , , × , / , m i n , m a x , v a l } is a set of node labels, where:
    -
    d v t and d v a represent virtual traffic and ambient light intensity sensors, respectively,
    -
    d t and d a represent actual traffic and ambient light intensity sensors, respectively,
    -
    + , , × , / , m i n , m a x represent arithmetic operators,
    -
    v a l represents constant arbitrary values.
Formally, the validation condition Π Θ makes sure that there are no non-terminals in the graph:
v V Θ : l a b Θ V ( v ) Δ Θ
While DSG Θ is being built there may be vertices with labels being-non terminals. In such a case, the graphs are not in a synchronized state since according to Definition 2, the validation conditions are not met.

5. Solving the Problem

To summarize, in order to handle the issues presented in Section 3, the following assumptions are made. There is a dual graph grammar [ Ψ , Θ ] defined. The Ψ graph grammar is used to represent the control structure of the lighting system stored in a CAG Ψ . The Θ graph grammar represents the evaluation of virtual sensors, defined by a DSG Θ .
As a result, the following proposals can be made:
p1
the model of the dynamic lighting control is a graph, which consists of: CAG Ψ and DSG Θ ,
p2
there are virtual detectors introduced, represented by the graphs’ synchronization vertices,
p3
there is only a single virtual detector of a given type (traffic, ambient light, etc.) in relation to an individual segment,
p4
logical relationships between detectors and a virtual detector are expressed as a graph.
Application of the proposed dual graph grammar has the following properties:
  • it separates the logical relationships between segments, detectors and luminaires from calculations on sensor data; thus, control is separated from evaluation and both can be processed separately during run-time,
  • it simplifies the control process graph transformations, since there is only one edge between a segment and a detector of a given kind,
  • a detector can be used in calculations for multiple virtual detectors,
  • there is a number of vertices to be processed upon executing control being reduced, since only the Ψ graph is considered; this enhances run-time performance of the control system,
  • full knowledge necessary for control is expressed as a graph, subject to analysis and validation,
  • formal graph folding enables extracting and viewing a CAG Ψ or a DSG Θ , allowing for a clear representation of control availability or logical relationships among detectors, respectively,
  • high-performance processing of DSG Θ is possible since it represents a parse tree,
  • calculations (DSG Θ ) can be easily updated without influencing CAG Ψ ,
  • control availability (CAG Ψ ) can be easily updated without influencing DSG Θ .
Applying the proposed dual graph grammar approach to the example in Figure 3 results in a model presented in Figure 6 (CAG Ψ ) and Figure 7 (DSG Θ ).

6. A Real World Example

Having defined the approach, let us present an intuitive real world example. It is an excerpt from a large-scale deployment of dynamic lighting control system in Krakow, Poland. The excerpt describes a single intersection presented in Figure 8. There are five segments: s 1 , s 2 , s 3 , s 4 , s 5 . The intersection is equipped with inductive loop traffic intensity sensors: D 2 _ 11 , D 2 _ 12 , D 2 _ 21 , D 2 _ 22 , D 4 L _ 2 , D 4 L , D 4 _ 22 , D 4 _ 21 , D 4 _ 12 , D 4 _ 11 , D 3 _ 11 , D 3 _ 12 , D 3 _ 21 , D 3 _ 22 , D 1 _ 12 , D 1 _ 11 , D 1 _ 22 , D 1 _ 21 , D 24 _ 1 . There are no other detectors considered.
Influence of traffic data from the virtual detectors on particular segments, assignments of lamps ( l 1 , , l 14 ) to the segments as well their configurations ( c 1 , , c 6 )—represented in CAG Ψ —are shown in Figure 9. Since there are no luminaires under control in s 1 and s 5 , there is no edge connecting s 1 or s 5 with any vertex labeled with c. The ambient light detectors are omitted for simplicity, so the available C A G Ψ vertex labels are defined as: L V = { s , l , d v t , c } . Furthermore, Γ Ψ = { m e 3 c , m e 4 b , m e 5 } since the set of lighting classes is adjusted to cover m e 3 c , m e 4 b , m e 5 . There are classes m e 4 b and m e 5 available on the segment s 4 , while m e 3 c and m e 4 b are available on s 2 and s 3 . These lighting classes were selected due to physical features of the segments according to the lighting norms. Correspondence between lighting classes and the power settings of the luminaires have been verified by using photometric calculations. Similarly, the synchronization condition Π Ψ is relaxed, due to a lack of ambient light detectors:
v 1 , v 2 L V : l a b V ( v 1 ) = l , l a b V ( v 2 ) = d v t v 4 L V : l a b V ( v 4 ) = s , v 5 L V : l a b V ( v 5 ) = c , { ( v 2 , v 4 ) , ( v 4 , v 5 ) ( v 5 , v 1 ) } E
For each of the configurations, for the given class, there are lamp settings defined as edges between c and l. They indicate power setting for a particular lamp, provided by a value of attribute p. For example, there is an edge between s 4 and c 5 , which represents a configuration for establishing the m e 4 b lighting class on s 4 . It is carried out by setting the luminaires l 6 l 4 to full power, which is indicated by the attribute p set to 1.0 ( p ( 1.0 ) ). For comparison, establishing the m e 5 class on the same segment would set the luminaires to 80% (p(0.8)). The actual power settings were computed by running photometric calculations while building CAG Ψ .
The DSG Θ part, which represents virtual sensor evaluations, is presented in Figure 10. The disconnected directed graph forms arithmetic expression parse trees. As a visual aid, the vertices representing the sensors ( d v label) that are placed in the same segment as the virtual sensor are additionally enclosed in solid lines labeled with the virtual sensor index. For example, there is a virtual sensor d v t 2 which belongs to the same segment as the detectors D 2 _ 11 , D 2 _ 12 , D 2 _ 21 , D 2 _ 22 , thus it is enclosed by a solid line labeled d v t 2 . Nodes representing arithmetic functions are labeled with their respective symbols e.g., max, +, × etc. The value of d v t 2 is evaluated as: max ( D 2 _ 11 , D 2 _ 12 ) + max ( D 2 _ 21 , D 2 _ 22 ) . There are also vertices representing constants; their values are indicated using v a l attributes. For example, there are two nodes attributed v a l ( 0.3 ) and v a l ( 0.7 ) in the enclosure d v t 3 . Their respective values are used for evaluation of d v t 3 , which is a result of: max ( D 24 _ 1 , max ( D 1 _ 12 , D 1 _ 11 ) × 0.3 + 0.7 × max ( D 4 _ 12 , D 4 _ 11 ) + 0.3 × max ( D 3 _ 11 , D 3 _ 12 ) + max ( D 4 _ 22 , D 4 _ 21 ) ) . For this particular virtual detector, measurements provided by detectors in other segments are also taken into consideration, which increases the connectivity of the graph.
As a result, the size of CAG Ψ , in comparison with CAG, is reduced. For the example intersection, considering all sensors, the CAG consists of 19 traffic intensity detectors ( d t ), 5 segments (s), 14 luminaires (l) and 6 configurations (c), which results in a total of 44 vertices. There are 21 edges between traffic detectors ( d t ) and segments (s), 6 edges between segments (s) and configurations (c), and 28 edges between configurations (c) and luminaires (l) which results in 55 edges total. For comparison, CAG Ψ consists of the following vertices: 5 virtual traffic intensity detectors ( d v t ), 5 segments (s), 14 luminaires (l) and 6 configurations (c), with a total of 30 vertices. There are the following edges: 5 between virtual traffic detectors ( d v t ) and segments (s), 6 between segments (s) and configurations (c), and 28 between configurations (c) and luminaires (l) which results in 39 total. The size of a graph is expressed as the number of its edges. In this case, it was reduced by 29%, from 55 to 39. The computational complexity of the dynamic control algorithms is O ( n 3 ) . This is due to the properties of the Ψ grammar which do not comply with the limitations proposed in [21]. Therefore, the aforementioned graph size reduction decreases the number of computations performed during run-time from 166,375 to 59,319, giving a reduction factor of 2.8. Such a reduction of computation time significantly increases the scalability of the control system.

7. Conclusions

Utilizing graph-based models for control systems provides a data-driven approach, which can increase the reusability of software. A graph model describes the environment, while software provides means for its processing. Upon new deployments, only the model needs to be adjusted, while the software remains unchanged. The proposed dual graph grammar increases processing performance and readability of such models.
A dynamic outdoor lighting control system is a practical example which confirms these claims. It is built around the dual nature of the problem: assuring proper control processing (CAG Ψ ) and utilizing relationships among sensors (DSG Θ ). These two aspects form a single graph defined by a dual graph grammar [ Ψ , Θ ] . Depending on particular needs, the graph can be folded, presenting just one of the two components. Since a formal graph grammar synchronization can be defined, the interactions between the two components are smooth. The graphs can be processed independently as long as the synchronization conditions are met. If they are not met, the processing has to be ceased until the graphs become synchronized again. The aspects are clearly separated, which decreases the risk of update issues or further development of the model. The updates can regard changing physical conditions, such as deploying new sensors or retiring old ones, as well as updating the control logic requirements, which would cause the control system to behave differently.
As a result, the proposed dual graph grammar provides a model that on one hand is clean and readable, but on the other significantly reduces the processing time. Lowering the computing power requirements by a factor of 2.8 increases the scalability of the dynamic control system. In case of complex relationships among sensors, it ensures high processing capability, since they are expressed as arithmetic expression parse trees. This enables efficient computation of the values delivered by the virtual detectors.

Acknowledgments

This research was supported by the AGH University of Science and Technology grant number 11.11.120.859.

Author Contributions

I.W. formulated the problem, which was jointly researched by I.W and L.K, L.K. supervised the theoretical background, I.W. and L.K. wrote the paper, I.W. designed and conceived the experiments.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Wojnicki, I.; Ernst, S.; Kotulski, L.; Sędziwy, A. Advanced street lighting control. Expert Syst. Appl. 2013, 41, 999–1005. [Google Scholar] [CrossRef]
  2. Wojnicki, I.; Kotulski, L. Controlling Complex Lighting Systems. In Complex Systems and Dependability; Advances in Intelligent and Soft Computing; Zamojski, W., Mazurkiewicz, J., Sugier, J., Walkowiak, T., Kacprzyk, J., Eds.; Springer: Berlin/Heidelberg, Germany, 2012; Volume 170, pp. 305–317. [Google Scholar]
  3. Neirotti, P.; De Marco, A.; Cagliano, A.C.; Mangano, G.; Scorrano, F. Current trends in Smart City initiatives: Some stylised facts. Cities 2014, 38, 25–36. [Google Scholar] [CrossRef]
  4. Merlino, G.; Bruneo, D.; Distefano, S.; Longo, F.; Puliafito, A.; Al-Anbuky, A. A Smart City Lighting Case Study on an OpenStack-Powered Infrastructure. Sensors 2015, 15, 16314–16335. [Google Scholar] [CrossRef] [PubMed]
  5. European Commitee for Standardization (CEN). CEN/TR 13201-1: 2004, Road Lighting. Selection of Lighting Classes; Technical Report; European Commitee for Standardization: Brussels, Belgium, 2004. [Google Scholar]
  6. European Commitee for Standardization (CEN). CEN/TR 13201-1: 2014, Road Lighting—Part 1: Guidelines on Selection of Lighting Classes; Technical Report; European Commitee for Standardization: Brussels, Belgium, 2014. [Google Scholar]
  7. De Paz, J.F.; Bajo, J.; Rodríguez, S.; Villarrubia, G.; Corchado, J.M. Intelligent system for lighting control in smart cities. Inf. Sci. 2016, 372, 241–255. [Google Scholar] [CrossRef]
  8. Leduc, G. Road traffic data: Collection methods and applications. In Working Papers on Energy, Transport and Climate Change; JRC: Tokyo, Japan, 2008; Volume 1. [Google Scholar]
  9. Wojnicki, I.; Ernst, S.; Kotulski, L. Economic Impact of Intelligent Dynamic Control in Urban Outdoor Lighting. Energies 2016, 9, 314. [Google Scholar] [CrossRef]
  10. Kim, J.T.; Hwang, T. Feasibility Study on LED Street Lighting with Smart Dimming Systems in Wooi Stream, Seoul. J. Asian Archit. Build. Eng. 2017, 16, 425–430. [Google Scholar] [CrossRef]
  11. Kovács, A.; Bátai, R.; Csáji, B.C.; Dudás, P.; Háy, B.; Pedone, G.; Révész, T.; Váncza, J. Intelligent control for energy-positive street lighting. Energy 2016, 114, 40–51. [Google Scholar] [CrossRef]
  12. Wojnicki, I.; Szwed, P.; Chmiel, W.; Ernst, S. Ontology Oriented Storage, Retrieval and Interpretation for a Dynamic Map System. In Multimedia Communications, Services and Security; Communications in Computer and Information Science; Dziech, A., Czyżewski, A., Eds.; Springer: Berlin/Heidelberg, Germany, 2012; Volume 287, pp. 380–391. [Google Scholar]
  13. Mahdavi, A. Predictive simulation-based lighting and shading systems control in buildings. Build. Simul. 2008, 1, 25–35. [Google Scholar] [CrossRef]
  14. Mady, A.; Boubekeur, M.; Provan, G.; Ryan, C.; Brown, K. Intelligent Hybrid Control Model for Lighting Systems Using Constraint-Based Optimisation; Advances in Intelligent and Soft Computing; Springer: Berlin/Heidelberg, Germany, 2010; Volume 73, pp. 249–259. [Google Scholar]
  15. Doulos, L.; Tsangrassoulis, A.; Topalis, F.V. Multi-criteria decision analysis to select the optimum position and proper field of view of a photosensor. Energy Convers. Manag. 2014, 86, 1069–1077. [Google Scholar] [CrossRef]
  16. Atis, S.; Ekren, N. Development of an outdoor lighting control system using expert system. Energy Build. 2016, 130, 773–786. [Google Scholar] [CrossRef]
  17. Mahoor, M.; Salmasi, F.R.; Najafabadi, T.A. A Hierarchical Smart Street Lighting System With Brute-Force Energy Optimization. IEEE Sens. J. 2017, 17, 2871–2879. [Google Scholar] [CrossRef]
  18. Lau, S.P.; Merrett, G.V.; Weddell, A.S.; White, N.M. A traffic-aware street lighting scheme for Smart Cities using autonomous networked sensors. Comput. Electr. Eng. 2015, 45, 192–207. [Google Scholar] [CrossRef]
  19. Marino, F.; Leccese, F.; Pizzuti, S. Adaptive Street Lighting Predictive Control. Energy Procedia 2017, 111, 790–799. [Google Scholar] [CrossRef]
  20. Wojnicki, I.; Kotulski, L.; Sędziwy, A.; Ernst, S. Application of Distributed Graph Transformations to Automated Generation of Control Patterns for Intelligent Lighting Systems. J. Comput. Sci. 2017, 23, 20–30. [Google Scholar] [CrossRef]
  21. Flasinski, M. On the parsing of deterministic graph languages for syntactic pattern recognition. Pattern Recognit. 1993, 26, 1–16. [Google Scholar] [CrossRef]
  22. Drewes, F.; Hoffmann, B.; Plump, D. Hierarchical Graph Transformation. J. Comput. Syst. Sci. 2002, 64, 249–283. [Google Scholar] [CrossRef]
  23. Taentzer, G. Hierarchically distributed graph transformation. In Graph Grammars and Their Application to Computer Science; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 1994; pp. 304–320. [Google Scholar]
  24. Wojnicki, I.; Kotulski, L. Street Lighting Control, Energy Consumption Optimization. In Proceedings of the 16th International Conference Artificial Intelligence and Soft Computing, ICAISC 2017, Zakopane, Poland, 11–15 June 2017; Lecture Notes in Computer Science. Rutkowski, L., Korytkowski, M., Scherer, R., Tadeusiewicz, R., Zadeh, L.A., Zurada, J.M., Eds.; Springer: New York, NY, USA, 2017; Volume 10246, pp. 357–364. [Google Scholar]
Figure 1. A street segment s 1 , with luminaires l 1 , , l 4 , a traffic intensity detector d t 1 and an ambient light detector d a 1 .
Figure 1. A street segment s 1 , with luminaires l 1 , , l 4 , a traffic intensity detector d t 1 and an ambient light detector d a 1 .
Energies 11 00402 g001
Figure 2. A street segment, Control Availability Graph logical model, representing all features from Figure 1 and luminaire configurations: a traffic intensity detector d t / d t 1 , an ambient light intensity detector d a / d a 1 , a segment s / s 1 , luminaire configurations c / c 1 , c / c 2 , luminaires l / l 1 , l / l 2 , l / l 3 , l / l 4 .
Figure 2. A street segment, Control Availability Graph logical model, representing all features from Figure 1 and luminaire configurations: a traffic intensity detector d t / d t 1 , an ambient light intensity detector d a / d a 1 , a segment s / s 1 , luminaire configurations c / c 1 , c / c 2 , luminaires l / l 1 , l / l 2 , l / l 3 , l / l 4 .
Energies 11 00402 g002
Figure 3. A real world example of a street segment s 1 , with luminaires l 1 , , l 4 , and multiple traffic intensity detectors d t 1 , , d t 5 and ambient light detectors d a 1 , d a 2 .
Figure 3. A real world example of a street segment s 1 , with luminaires l 1 , , l 4 , and multiple traffic intensity detectors d t 1 , , d t 5 and ambient light detectors d a 1 , d a 2 .
Energies 11 00402 g003
Figure 4. A street segment, logical model: a Control Availability Graph; no logical relationships among detectors.
Figure 4. A street segment, logical model: a Control Availability Graph; no logical relationships among detectors.
Energies 11 00402 g004
Figure 5. A street segment, logical model: a Control Availability Graph; a simplified approach which takes into account a subset of detectors.
Figure 5. A street segment, logical model: a Control Availability Graph; a simplified approach which takes into account a subset of detectors.
Energies 11 00402 g005
Figure 6. A street segment, logical model: CAG Ψ , based on the Ψ (structure) grammar.
Figure 6. A street segment, logical model: CAG Ψ , based on the Ψ (structure) grammar.
Energies 11 00402 g006
Figure 7. A street segment, evaluation model; DSG Θ complying with the Θ (evaluation) grammar.
Figure 7. A street segment, evaluation model; DSG Θ complying with the Θ (evaluation) grammar.
Energies 11 00402 g007
Figure 8. An example intersection, Krakow, Poland with inductive loops: D 2 _ 11 , D 2 _ 12 , D 2 _ 21 , D 2 _ 22 , D 4 L _ 2 , D 4 L , D 4 _ 22 , D 4 _ 21 , D 4 _ 12 , D 4 _ 11 , D 3 _ 11 , D 3 _ 12 , D 3 _ 21 , D 3 _ 22 , D 1 _ 12 , D 1 _ 11 , D 1 _ 22 , D 1 _ 21 , D 24 _ 1 , and segments: s 1 , s 2 , s 3 , s 4 and s 5 .
Figure 8. An example intersection, Krakow, Poland with inductive loops: D 2 _ 11 , D 2 _ 12 , D 2 _ 21 , D 2 _ 22 , D 4 L _ 2 , D 4 L , D 4 _ 22 , D 4 _ 21 , D 4 _ 12 , D 4 _ 11 , D 3 _ 11 , D 3 _ 12 , D 3 _ 21 , D 3 _ 22 , D 1 _ 12 , D 1 _ 11 , D 1 _ 22 , D 1 _ 21 , D 24 _ 1 , and segments: s 1 , s 2 , s 3 , s 4 and s 5 .
Energies 11 00402 g008
Figure 9. An example intersection, Krakow, Poland; CAG Ψ complying with the Ψ (structure) grammar.
Figure 9. An example intersection, Krakow, Poland; CAG Ψ complying with the Ψ (structure) grammar.
Energies 11 00402 g009
Figure 10. An example intersection, Krakow, Poland; DSG Θ complying with the Θ (evaluation) grammar.
Figure 10. An example intersection, Krakow, Poland; DSG Θ complying with the Θ (evaluation) grammar.
Energies 11 00402 g010

Share and Cite

MDPI and ACS Style

Wojnicki, I.; Kotulski, L. Improving Control Efficiency of Dynamic Street Lighting by Utilizing the Dual Graph Grammar Concept. Energies 2018, 11, 402. https://doi.org/10.3390/en11020402

AMA Style

Wojnicki I, Kotulski L. Improving Control Efficiency of Dynamic Street Lighting by Utilizing the Dual Graph Grammar Concept. Energies. 2018; 11(2):402. https://doi.org/10.3390/en11020402

Chicago/Turabian Style

Wojnicki, Igor, and Leszek Kotulski. 2018. "Improving Control Efficiency of Dynamic Street Lighting by Utilizing the Dual Graph Grammar Concept" Energies 11, no. 2: 402. https://doi.org/10.3390/en11020402

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop