Abstract

The development of Information and Communication Technologies (ICT) has now reached some entirely unexpected domains. Many applications in modern cities lead to novelties, resulting in new habits of the citizens of tomorrow’s smart cities. These innovations include Intelligent Transportation Systems (ITS). An important application domain of ITS is undoubtedly represented by the dynamic and optimized management of traffic-lighted road intersections. Although several works have already been presented in the literature over the years, many have not considered the new perspectives regarding the source of data to manage traffic lights, i.e., not only Wireless Sensor Networks (WSNs), but, mainly, the vehicular communications. This paper introduces an innovative approach to dynamically regulating traffic light cycles and phases in an isolated intersection. The suggested method can fit data management from WSNs and vehicular communications through IEEE 802.11p and LTE-V2V, employing various Fuzzy Logic Controllers (FLCs) that manage vehicles turning movements for dynamic controls of both the phase and the green time of traffic lights. The results obtained will allow us to observe that the proposed application is better than the others. Each of the implemented configurations will bring advantages and disadvantages that allow choosing one configuration or another based on specific project requirements.

1. Introduction

Many countries are experiencing a rapid increase in the growth rate of their urban areas, caused by people’s migration to cities in search for education, better jobs, and other social and cultural amenities. Currently, more than 50% of the world’s population live in cities. For this reason, city infrastructures must continuously adapt to new technological opportunities, to maintain a high quality of life and services for their inhabitants. The increasing interactivity and technological advances gave rise to the new concept of smart city, which identifies a series of areas of development that transform the essence and functionality of the modern cities. These areas range from smart mobility to the smart economy, intersecting different areas and development themes. In recent years, intelligent mobility has enjoyed increasing interest in the scientific community, to the point that it has become the subject of numerous applications that only a few years ago could only be imagined [1]. In Figure 1, it is possible to observe an example of integration of different types of vehicles (smart mobility) within a modern smart city.

In parallel, Information and Communication Technologies (ICT) profoundly change people’s lifestyles, transform many daily habits, and transform the very structure of modern cities. The integration of information technologies in the transport area has led to Intelligent Transportation Systems (ITS). This development area is currently playing a vital role in integrating new transport paradigms, which allow delivering new services to end-users, providing them with integrated tools. These services are complemented by the smart cities with some features that allow the integration of ICT and ITS, thus offering a series of new opportunities to the end-users and the citizens.

The dynamic management of traffic-lighted intersections represents a research segment of great interest in the scientific community, but it is probably even less thorough. In particular, many scientific articles in the literature deal with static applications, that is, through the fixed implementation of sensors or sensor networks (typically located at the side of the road) designed to detect the presence or absence of vehicles at a given time of day. This data is then managed by network infrastructures that control the ignition and duration of the different colors of the traffic lights. Although static sensor based technologies are effective for the management of traffic light systems, they are outdated when it comes to managing the entire road network dynamically [3].

This paper focuses on a particular perspective related to the smart city, i.e., smart mobility, presenting a solution for an automated and effective management of traffic-lighted intersections. This innovative work in the area of dynamic control at road intersections traffic adapts in real-time and dynamically the cycles and phases of the traffic lights without the deployment of sensors along the roadway. The proposed approach manages real-time data through modern technologies for vehicular communication, including Vehicle-to-Vehicle (V2V) and Vehicle-to-Everything (V2X), assisted by Fuzzy Logic Controllers (FLCs).

From this point on, this paper is organized as follows. Section 2 analyzes the state of the art in the literature. This analysis represents a crucial starting point for reflection, which led to the investigation of areas that have not yet been addressed. Section 3 introduces the proposed approach. The advantages of an intelligent traffic light system are evaluated, and a new implementation solution is introduced. The proposed approach is presented at a high level of abstraction, allowing for use inside any upstream network infrastructure (for instance, cellular, wireless, or otherwise). Next, the performance evaluations of three different network construction hypotheses are analyzed in Section 4 and highlight all the advantages introduced by the adoption of an intelligent traffic light system to the point that any previous design hypothesis is highly obsolete. Finally, Section 5 concludes the paper by providing some thoughts for future insights.

2. The Management of an Intelligent Traffic Light System: Analysis of Cases in the Literature

Road intersections, that is, the places where two or more road meet, are important elements for the management of a traffic light system. In specific scenarios, the trajectories traveled by pedestrians and/or vehicles can intersect, creating conflict points that produce traffic obstructions and present safety issues for the entire road network [3].

The number of conflict points increases with the number of roads (and road lanes) that intersect. The main aim of traffic lights regulation is the increase of capacity and decrease of delays, together with the increase of traffic safety. Moreover, the intelligent management of traffic lights also makes it possible to the following:(i)Reduce average waiting times at intersections(ii)Avoid the onset of congestion, thus reducing the length of the queues(iii)Decrease fuel consumption and therefore reduce atmospheric pollution produced by exhaust gases(iv)Guarantee specific time slots in which it is possible to clear the intersection without significant dangers

In intersections regulated with traffic lights, the points of conflict are resolved by assigning a specific time interval to each flow of traffic in which the crossing of the conflict area is allowed. The division of time is obtained with the use of light signals required by specific legislation. The traffic light regulation is based on a universally recognized convention according to which a traffic light can have only three colors, with the light indicators activated in a precisely ordered succession: green (for go-ahead), yellow (for stop warning), and red (for stop immediately/do not drive). The configuration of this chromatic characterization, used in most countries of the world, consists of constant time intervals for switching between the three colored lights.

In general, it is possible to distinguish the traffic lights into three types based on the number of phases or ‘times’: those with three times, those with four, and finally those with five. This paper will analyze the three-time traffic light, the type of traffic light most present in Italy and throughout Mediterranean Europe and in the United States, South America, Japan, and China. This type of traffic light is widely used because it is easy to understand and practice. Therefore, the sequence of colors will always be the same: green, yellow, and red.

While the usefulness of the traffic light system for road safety purposes is unmistakable, to avoid collateral weaknesses, a careful study of appropriate technical specifications is necessary. One of the most important specifications is the timing of the various phases and traffic light cycles. A traffic light cycle consists of sequence of traffic light indications at the end of which the exact configuration of lights existing at the beginning of the sequence itself is repeated. A phase is the part of the cycle in which green is simultaneously assigned to a set of mutually compatible traffic currents (i.e., which do not create points of conflict). A phase is complete if it is impossible to add different currents compatible with those already included [4].

Adjusting the duration of the cycle and duration of the phases with extreme accuracy avoids the onset of queues and, accordingly, traffic congestion. The duration of the green time and the complete traffic light cycle must be suitably calibrated regarding a specific traffic situation. The design of specific traffic light plans can be implemented based on the observation of at least four different situations:(i)The peak of the traffic in the morning(ii)The peak of the traffic in the evening(iii)Traffic in the other hours of the morning(iv)Traffic in the other hours of the evening

This is a rough design that must take into account several parameters. Typically, a complete traffic light cycle can last 84, 94, or 120 seconds. Its regulation must be defined according to the expected traffic flow (the more significant the expected traffic, the shorter the duration of a traffic light cycle). As a result, within a complete traffic light cycle, all the lanes involved in the intersection will have a constant green, yellow, and red time throughout the day.

It must be noted that each phase must have a minimum green duration of 10 seconds for any vehicular current. On the other hand, regarding the maximum duration of the red, it depends on many factors. For pedestrians and cyclists, the maximum threshold of 60 seconds should not be exceeded, while, for vehicular traffic, a duration as big as double can be accepted. Finally, as regards the duration of the yellow light (usually from 3 to 5 seconds), it is established based on the expected average speed of the cars that intend to cross the intersection, and the higher the speed, the longer the duration of the yellow light. In particular,(i)If there is an intersection where the average speed of the vehicles is equal to 50 Km/h, then the yellow signal will last 3 seconds(ii)If, instead, the average speed of the vehicles is equal to 60 Km/h, then the yellow signal will last 4 seconds(iii)Finally, if the average speed of the vehicles will be equal to 70 km/h, then the yellow will last for 5 seconds

An alternative approach to the static management of traffic light systems can be achieved employing specific techniques such as the automated regulation of the different phases of an intelligent traffic light. Some proposals already present in the literature are very diversified. Real-time traffic information is collected from various sources such as cameras, wireless sensors, or wireless sensor networks (WSN) placed along the roads and controlled by precise controllers, radio-frequency identification (RFID) devices, accessories with vehicular ad-hoc network (VANET) technology for vehicle-to-vehicle (V2V) communications or vehicle-to-infrastructure (V2I), and approaches that introduce adaptive algorithms for traffic light control and regulate both the sequence of phases and their duration. Some approaches exploit multiple technologies at the same time in order to be able to employ all their advantages.

Information from video cameras is exploited in some works, e.g., [1, 3], where an estimate of the traffic density and the classification of vehicles with video monitoring systems are also acquired. In [3], the authors focus mainly on the use of algorithms that manage the switching of traffic lights based on the density of vehicles in the queue, thus aiming to achieve several results including the reduction of the (1) traffic congestion on the roads, (2) frequency of road accidents, (3) fuel consumption, and (4) average waiting times in queues.

The approach proposed in [4] does not use the same technology as [1, 3], which do not provide any tolerance for the failure of a part of the video monitoring network. That is, for an intersection with roads, and using as many video cameras, the failure of any of these camera would lead to an excessively low service level. Instead, in [4], the proposed system guarantees a high tolerance to errors such as failure of a sensor in the WSN, and the system would present a very insignificant lowering of the service level. Moreover, the ease of installation favored by a WSN would involve a quick replacement of any sensor. A certain degree of redundancy of the sensors present in the network minimizes any partial failures of the detection system. Furthermore, from implementation point of view, the system proposed in [4] is simple with small data exchanges in real-time, which determines a very low computational cost.

Another type of approach involves the use of RFID technologies. This approach does not need to know the type of vehicle passing through since all vehicles have the same priority. The use of RFID devices proposed in [5], which also introduces a self-organized traffic control scheme that helps facilitate emergency response operations, allows covering small areas (short-range function). Therefore, in the case of nonnegligible queues, the green signal would not be set adequately in a short time.

On the other hand, other approaches implement the IEEE 802.15.4 communication protocol, whose communication ranges (between the various wireless devices) vary as the transmission power varies and consequently guarantees greater flexibility and scalability. In these cases, it is fast and straightforward to implement suitable devices that also consider the circumstances in which any emergency vehicles are present in the carriageways. It can be assigned the green signal with priority.

The algorithms proposed in [6] consider various traffic factors, such as traffic volume, waiting times, and vehicle density, to determine the optimal duration of the green time. The algorithms select the phase with the highest execution priority through a simple IF-THEN construct and calculate the duration of the green time as a “crisp”/exact value. Although these algorithms are fascinating and present good simulation results, they nevertheless meet with significant weaknesses when implemented real situations. In this sense, it must be observed that this design solution does not specify the wireless communication protocol used. There is no indication of the computational cost of the algorithms presented. This condition means that if the computational cost of these algorithms is very high, the generation of the green time would require an extensive time interval, thus making the data obtained already obsolete with a consequent decrease in the level of service. Also, in [6], it can be recognized that simple rules manage traffic flows. On the contrary, the solution proposed in [4] is more suitable for the design of a traffic sign control system, thanks to its ability to manage the uncertainties associated with the input and output variables (for instance, the number of vehicles in the queue, the phase to be managed and the green time of the traffic lights).

Traffic control systems are large nonlinear stochastic systems, and as a result, finding the optimal traffic signal settings is extremely challenging. Consequently, numerous works reported in the literature propose traffic control systems based on Computational Intelligence (CI), in particular, fuzzy logic controllers, which are suitable for managing traffic lights, as their operating principle is inspired by the way humans reason. Hence, these controllers make decisions based on direct experience gained in the specific environment considered. They learn through specific inference rules that incorporate human feelings on the traffic light system and reflect the human reaction to the system’s behavior. In control systems such as those implemented in [7], only variables indicating the traffic of the current phase are taken into consideration, without considering the length of the queues of the other phases.

Numerous applications use WSN for traffic management. One of the most popular approaches uses VANET. All the vehicles involved are exploited in these applications as if they were wireless routers or mobile nodes of the network itself. This situation allows vehicles to connect and create a network. The approach proposed in [8] uses a VANET to collect and aggregate speed and position information relating to individual vehicles in real-time to optimize signal control near a road intersection.

On the other hand, in [9], the authors exploited the V2V and V2I communications typical of VANET networks to propose distributed algorithms to improve traffic flow in real time. However, this particular approach will have to consider some problems related to the mobility and stability of the system. This issue happens because the number of vehicles, in the various hours of the day, is subject to sudden random changes with consequent continuous and uninterrupted variation of the hosts entering and leaving the network. In critical situations of a high density of vehicles present in the carriageways, the VANET would risk saturation, with the consequent collapse or, at best, through the use of adequate controls carried out on congestion, many vehicles would not be accepted and inserted into the network.

The hypothesis developed by the authors of [10] is provided for the use of a fuzzy logic controller for each traffic light phase, thus implementing four inputs and a single output. These four inputs allow receiving the data collected from the four carriageways (always assuming that the considered context deals with a 4-way intersection). The fuzzy logic controller will choose the highest “alarm” value to be taken into consideration and then output the enabling signal to the road that has been chosen to have green. In this way, the most congested road will have priority, and the go-ahead signal (green traffic light) will be attributed to it. Although this type of approach turns out to be a good starting point, this application of the fuzzy logic controller does not guarantee an optimal service. Suppose that there is a very high traffic flow on one of the four roads, while, in the remaining three roads, few vehicles are presented per minute. In this case, vehicles belonging to low traffic roads will have very long waiting times, thus obtaining a type F service level (absolutely inadequate). This limit could be exceeded by also providing a parameter that determines the waiting time in the queue: the higher this parameter is, the more the alarm relating to the road concerned will increase.

The authors of [11] developed a comprehensive data collection system at the University of Manitoba, Winnipeg, MB, Canada. The developed system employs various wireless network technologies and devices to collect traffic data from an intersection along the main road within an urban context. A Bluetooth device detects the vehicle’s closeness and the information on the vehicle’s trajectory. The data collected is transmitted to the master node via the IEEE 802.15.4 (ZigBee) protocol. The central device manages all incoming data for real-time information about the intersection and sends the data to the server every five minutes via GSM cellular communication. The server stores the information in the database accessed by the consumer and corporate websites to get the correct data in real-time. However, although the structure is well organized, this approach is neither very flexible nor straightforward in its implementation. These problems could be overcome thanks to the use of multiple homogeneous networks, which use simple and flexible communication protocols.

All the approaches analyzed so far present some weaknesses. Firstly, they are obsolete and unsuitable for a truly dynamic management of traffic-lighted intersections. Secondly, the technologies seen so far do not take advantage of vehicular communications and the increasing spread of intelligent vehicles on roads (e.g., driverless vehicles, although their presence on roads is still minimal). However, vehicles with a certain degree of range (at least level 2 or 3 of autonomous driving levels) are increasingly common. The approach proposed in this paper seeks to provide a new key contribution precisely in the direction of these new technologies, experimenting with implementing a network infrastructure that exploits vehicular communications.

3. The Proposed Experimental Approach

The analysis carried out in the previous section highlights that the most suitable solution for highly variable traffic flows over time is the one that provides a fully implemented traffic light control: for instance, the traffic-lighted systems in which the green times are determined according to the dynamic characteristics of the traffic [12, 13].

These implemented systems do not act upstream. Therefore, the beginning and the duration of the green times are set adaptively, based on the presence and movement of individual users, in each specific scenario. Fully implemented control requires more expensive equipment and a more significant amount of work in terms of design than semi-implemented and fixed-time control cases. Hence, the concept of complete implementation is more efficient when the intersection to be controlled is subject to traffic that exhibits highly variable behaviors over time [14, 15]. More precisely, advantages of this particular type of approach include the following:(i)Traffic situations that arise during the day are many and very different from each other; this situation makes it easy to establish that it is not possible to treat them all in the same way, with a relative number of plans at fixed times; adaptability is one of the significant advantages brought about by a fully implemented approach;(ii)It improves coordination with adjacent installations when the geometric situation of coordination is unfavorable;(iii)It reduces the average waiting times of a vehicle in a queue and, consequently, reduces the emissions of harmful gases.

The design hypothesis, the subject of in-depth analysis of this paper concerns the automated management of an intelligent traffic light system. According to this hypothesis, it can be assumed that the solution is placed near a four-way road intersection. Among the initial hypotheses, it is also possible to imagine a certain number of vehicles in all available directions and that the traffic conditions are intermediate concerning any peak situations. The latter usually occurs at particular times of the day, which typically match with the early morning hours, at lunchtime, and, finally, at the early evening hours (late afternoon).

Compared to the cases analyzed in the literature, the proposed approach provides a fundamental innovation represented by designing a system independent of the specific network architecture. In a subsequent phase, this can be achieved through a vehicular communication network or a specific protocol, such as the IEEE 802.11p standard. Moreover, the proposed solution allows creating an optimal design method that can be employed practically in any scenario.

Therefore, everything concerning the communication and reception of information will be represented as a “black box,” which, starting from appropriate input signals, will provide specific commands at the output to control the intelligent traffic light system, as shown in Figure 2. The inputs provided to the black box may come from any part of the network infrastructure. At the same time, the output is the control commands of the intelligent traffic light. The system dynamically manages the various traffic flows developed in the separate roads, also taking into account specific priorities, with higher priority for emergency vehicles or vehicles with longer waiting times in queue. Having set the initial conditions the problem is to evaluate the vehicular traffic present in a four-way road intersection, through which different types of vehicles will pass.

The day is modeled as a random variable. Therefore, in the characterization of the variable relating to traffic flows, it could be helpful to start from a static condition, assuming that it always has identical functioning within a day. Subsequently, this variable is adapted to make it more consistent with the actual case. It is possible to define vehicular traffic from a statistical perspective, hence endowed with a probability density, a probability distribution, and all its moments. As a first approximation, it is reasonable to start from an ideal case in which the traffic peaks in specific time intervals of the day. Assuming the three peak times, respectively, at a m., p m., and p m., it is possible to identify the probability density of traffic with a Gaussian function that assumes the following specific characteristics:(i)A uniformly distributed probability distribution with constant amplitude throughout the night(ii)Three different Gaussian probability distributions for peak hours(iii)A uniform probability distribution with constant amplitude over the rest of the day (even of a different value than the first case)

The Gaussian distribution is uniquely identified by two parameters: the mean value and the standard deviation . The average value , in the case considered in this work, is represented by the peak time value, which is equivalent to the central value of the distribution itself. The curve will be symmetrical concerning this value [22, 23]. As the average value diversifies, a horizontal translation of the symmetry axis of the curve itself is obtained (case (a) in Figure 3). The standard deviation represents the “peak” of the curve: the more significant the deviation, the greater the width of the peak. Therefore, the resulting graph will be more flattened. As the value of the standard deviation decreases, the curve will be more pointed (although it will be narrower in time, as in the case (b) in Figure 3).

Therefore, it is possible to state that the lower the variance value, the shorter the duration of the curve of the same Gaussian distribution. In this way, the peak hours will be temporally reduced, with a consequent increase in the maximum peak. Conversely, the greater the standard deviation value, the greater the temporal duration of vehicular traffic, even if it will be less spiked in terms of the maximum value (case (b) in Figure 3 as varies) [16].

In this work’s hypothesis, the relative mean value and standard deviation values have been appropriately set and then analyzed using Matlab. Assuming that the peak times of maximum vehicular traffic occur strictly at 08 : 00 a m. (Case 1), at 01 : 00 p m. (Case 2), and, finally, at 07 : 30 p m. (Case 3), it will be necessary to set three different values of (in particular, it will be s, s, and s). As far as the value of is concerned, it is permanently fixed at the same value in all three cases, i.e., equal to s (i e., 30 minutes). This situation means that the three peaks representing the different peak hours will have a total duration of one, precisely:(i)In case 1, the peak hour will start at 07 : 30 a.m. and finish at 08 : 30 a.m.(ii)In case 2, the peak hour will start at 12 : 30 p.m. and finish at 01 : 30 p.m.(iii)In case 3, the peak hour will start at 07 : 00 p.m. and finish at 08 : 00 p.m.

Under these hypotheses, the random variable’s probability density that simulates the vehicular traffic present in each of the experimental cases in question illustrated in shown in Figure 4. It is possible to establish variability during the day of the traffic flow. In particular, it will assume peak values in specific time intervals due to the greater concentration of vehicles along the roads. This circumstance is easily explained by specific habits that regulate people’s lives (time of commuting to and from work, time of starting the children’s school, lunch break, leaving school for children).

4. Performance Evaluation

The comparison between the three construction hypotheses (reported in subsection C) is based on the average times and maximum waiting times in the queue of a generic vehicle located along a specific carriageway. In particular, the implementation of each of the three hypotheses is along the following three scenarios: (1) the scenario is a static traffic light system, in which, therefore, the green times and their duration will be preset, regardless of the actual traffic conditions; (2) the second scenario, this time fully implemented, in which the network infrastructure uses the IEEE 802.11p; finally, (3) a third scenario, consistently fully implemented, will use vehicular communications (LTE-V2V) as network infrastructure (this application is perfectly compatible with communications in 5G cellular networks).

Before comparing the average times and maximum average waiting times in the queue, a brief comparison is also made below between the networks that use the IEEE 802.11p protocol and LTE-V2V vehicular communications in terms of performance parameters [17]. The comparison of different standards, valid to support the applications of this work, is done in terms of transmission speed, signal coverage, signal interference, accessibility, maintenance, initial costs, and safety [1820].

First of all, it can be observed that both standards analyzed operate on frequencies around 5.9 GHz (working frequency band). It can also be observed that wireless standards that operate on such high-frequency bands are less affected by interference and absorption (due to atmospheric phenomena such as water and fog). Some protocols are based on the contention of the transmission medium, thus making it possible to establish possible collisions. However, these standards allow quick access to the requested service. In general, wireless standards that support long-range transmissions have higher initial costs than standards that support short-range communications; moreover, the latter lead to lower maintenance costs [21].

Although some wireless standards use particular encryption and authentication mechanisms to guarantee the transmission of secure communications, they are still vulnerable to any external security breaches (hackers). However, most standards provide highly secure data transmissions [22, 23].

Considering the analysis carried out in [24], the two different technologies are compared under identical external conditions, that is, in an urban setting. From the experimental results achieved, it is possible to recognize that LTE-V2V can provide a 10% improvement in the packet reception ratio and a ten times lower update delay than IEEE 802.11p. However, these results are obtained only in conditions of low traffic data. The situation changes when a more stressful traffic condition, in terms of packets sent and received, is considered. Under these conditions, while the LTE-V2V works better regarding the packet reception ratio (better than 26%), the IEEE 802.11p guarantees a lower update delay.

For comparison, it is also helpful to estimate the results of using different modulation and coding schemes (MCS). The different strategies used can significantly impact the quality of service (QoS) and the coverage area. In [2527], it was established that the use of IEEE 802.11p allows for exceptional performance up to a few hundred meters, intended as a coverage range. It is reasonable to think that a vehicle can be identified every 10 meters and that, therefore, in a range of 250–300 meters, around 30 vehicles can be identified. Due to the excessive collision speed, the reliability of the communication tends to undergo a substantial decrease, especially in applications with distances more significant than those just mentioned (a few hundred meters) [28]. All other things being equal, it can be verified that the LTE-V2V standard has reduced performance in short distance communications but is more reliable as the distance increases (for example, even up to almost 500 meters) [29, 30]. In light of this, it is not easy to establish which of the two standards results in better performance [31, 32]. Therefore, depending on the conditions of use and the precise characteristics required by the application to be developed, it is possible to choose one of the two standards [24].

4.1. Traffic Generator

In the Matlab/Simulink simulation environment using TrueTime [33], to generate the variable relating to the vehicular traffic existing in a given road (this is a random variable characterized by a probability density that varies over time), a real number generator was used to generate on the interval [0–0.7]. The characteristic of this sequence of numbers depends on the initial seed: when this initial seed varies, a completely different numerical sequence follows in which there is no mathematical relationship between one number and another; instead, if the seed is kept from one simulation to another, the generated sequence will be the same with consequent generation of the same traffic configuration [34]. Since, in the case under examination, the generation of eight tails, there are eight generators of pseudorandom numbers with different seeds (values between 1 and 8).

It is necessary to consider a waveform that examines the traffic probability density, which, together with the number generator described above, follows an IF-THEN construct. If at instant t their sum exceeds a certain threshold (set at 0.79), then a vehicle will be generated at the same instant, otherwise, no. At the instant (t+1), the same check is performed, and so on. It is much more likely that their sum will exceed the threshold value at peak times, while, at night, it is less likely that this threshold will be exceeded. The system described is represented in Figure 5.

The input variables of the TrueTime Kernel [33], except for the Uniform Random Number, are constants that shape the waveform of the traffic probability density. When one of them varies, it is possible to operate on efficiently:(1)The probability that a vehicle will arrive at the intersection between 11 : 00 pm and 00 : 00 and between 00 : 00 and 06 : 00 am (constant night)(2)The probability that a vehicle will arrive at the intersection between 06 : 00 am and 11 : 00 pm (constant morning)(3)The probability that a vehicle will arrive at the intersection during the peak hours at 08 : 00 am (Gaussian multiplicative constant 1)(4)The probability that a vehicle will arrive at the intersection during the peak hours 01.00 pm (Gaussian multiplicative constant 2)(5)The probability that a vehicle will arrive at the intersection during the peak hours of 7.30 pm (Gaussian multiplicative constant 3)(6)The duration of the peak hours at 8am (Gaussian variance 1)(7)The duration of the peak hours at 01 : 00 pm (Gaussian variance 2)(8)The duration of the peak hours at 07 : 30 pm (Gaussian variance 3)

After setting these parameters and the initial seed of the random number generator [35], the TrueTime Kernel executes the following instructions every second:(i)Determines the value of the probability density at instant t(ii)Acquires the number generated randomly from input 1(iii)If their sum is more significant than 0.79, send a vehicle out; otherwise, wait for the next instant

The second TrueTime Kernel has the objective of performing a simple subtraction between the generated vehicles and the disposed vehicles (counted in the other TrueTime Kernel and forwarded to the one understudy). Thus, it is possible to know moment by moment the length of queues subsequently displayed.

4.2. Evaluation Scenarios

The solution proposed in this work has been implemented to be independent of the input signals (i.e., from the network infrastructure) and to allow for the output of signals equally independent from the actuators that will act on the intelligent traffic lights. Therefore, a system that is not affected by the technology can be considered independent for any application. Furthermore, as shown in Figure 6, the traffic lights are managed in such a way as to prevent vehicles coming from different lanes of the same road from accessing the intersection simultaneously. This choice has been made to avoid specific points of conflict that could occur when the vehicle trajectories from the two affected lanes intersect. In this way, as shown in Figure 6, the cars coming from the two lanes of road A cannot go straight and turn left, respectively, during the same phase.

The intersection is characterized by four phases, as illustrated in Figure 7.

To complete the configuration, whose performances will be evaluated later, it is necessary to note once again that a traffic light phase represents the period during which a specific set of lanes can continue following the proper direction. In this work, the following has been assumed:(1)when phase 1 is enabled, only the cars of lane 1 of roads A and C can go straight or turn right, while all the other lanes will have a red light(2)when phase 3 is enabled, only the cars of lane 2 of roads A and C can turn left, while all the other lanes will have a red light(3)when phase 2 is enabled, only the cars of lane 1 of roads B and D can go straight or turn right, while all the other lanes will have a red light(4)when phase 4 is enabled, only the cars of lane 2 of roads B and D can turn left, while all other lanes will have a red light

4.3. Obtained Results

Before acquiring and comparing the data relating to the average and maximum overall waiting times of each simulation, it is necessary to define what the waiting time of a vehicle represents and which parameters influence it. Specifically, the waiting time for a vehicle is the difference between the vehicle’s instant arrival and how the vehicle clears a specific intersection [36, 37].

To know the instant when a vehicle occurs in an intersection, the following arrays were used (an array can be imagined as a container of elements of the same type, having a variable-length; in the case in question, the elements the array is composed of will be described in the following):(i)An array A in which, every second, in the i-th position 1 is entered if in the i-th instant a vehicle is presented or 0 otherwise.(ii)An array B that varies its size every second by adding an element constructed as follows: if at the i-th instant a vehicle arrives, or when the outbound traffic generator sends the value 1, then, in the i-th position of the array B, the value of the current instant will be written using the ttCurrentTime function. On the contrary, if the outbound traffic generator sends the value 0, the value 0 is inserted for convenience in the i-th position of array B.(iii)An array C containing the time values in which each vehicle clears the intersection. To construct this number vector, it is necessary to proceed according to the following procedure: first of all, it is necessary to check whether at the i-th instant a vehicle has cleared the intersection: if so, using a FOR construct, one searches for the first 1 present in the array A, set to 0, and insert the current time in C, that is, the instant in which this operation was performed and finally insert the value in the i-th position of array C; otherwise, always in the i-th position of array C, the value 0 is entered. Array A is used to make this calculation accurate since the First Come First Served (FCFS) policy applies at road intersections.(iv)An array D was obtained at the end of the simulation, as the difference between array C and array B. D will contain the waiting times of each vehicle and several zeros, which will not affect the average calculation.

To perform the average of the waiting times hour by hour, in order to display the histograms, a counter that counts the nonzero waiting times in array D is used. The calculation is performed in stock of 3600 items (i.e., in one hour). For fixed , the array of average values is obtained as shown in where \{0, 1, 2, …, 23\} and takes into account the time in which the average waiting time is being calculated. To give an idea, to calculate the average waiting time in the hour between 00 : 00 : 00 and 01 : 00 : 00, where is 0, is shown inin which the first 3600 seconds of waiting is considered. Subsequently, once the first hour has ended, and the next one has begun, which goes from 01 : 00 : 00 to 02 : 00 : 00, is increased by 1, and the sum becomes as shown inin which the waiting times of individual vehicles that show up between 01 : 00 : 00 and 02 : 00 : 00 are considered.

Once the calculation of the 24 average waiting times in 24 hours is completed, this is given as input value to the Matlab function, where . This function draws columns in the histogram with a height equal to the value of in the positions indicated by the array .

The values are saved to a file, and the histograms are stored as images. The construction of the histograms above was repeated for all eight lanes present in the case study in question. It also seems appropriate to specify that the various simulations were consistently implemented with TrueTime. The different networks were developed using the TrueTime Wireless Network, customized and adapted from time to time based on the chosen network architecture.

Figure 8 shows the histograms relating to the average waiting times of the intersection equipped with static traffic lights (Case 1). In this scenario, the average waiting time is 56.23 seconds.

By performing the arithmetic average between all the values of the widths of the columns of the histograms, the values included in Table 1 are obtained. It should be noted that, at peak times, the approach with a static traffic light system is unsuitable since very high waiting peaks can be encountered, even exceeding 400 seconds (more than 6 minutes).

The exact estimates were made with traffic conditions identical to the previous ones, applying the IEEE 802.11p standard as network infrastructure. Figure 9 displays the graphs relating to the average waiting times in this specific scenario (Case 2). By carefully analyzing the histograms, it can be immediately noticed that the waiting peaks of 400 seconds are eliminated; the highest is equal to 185.75 seconds, i.e., about 3 minutes. Furthermore, by calculating the average waiting time of all vehicles, it can be seen that it is lowered to 48.82 seconds, or 8 seconds less than in Case 1. The values of the individual average amplitudes of the histograms are depicted in Table 2.

In the third and last scenario, with a network implementation that uses LTE-V2V vehicular communications, the obtained average waiting times are presented in Figure 10 (Case 3). The overall average of the waiting time in the queue is, in this case, equal to 53.81 seconds, obtained by performing the arithmetic average between the values shown in Table 3. Although the average waiting time in the queue is slightly higher than in Case 2, it nevertheless represents a reasonable and competitive value. It should also be noted that this approach could exploit the existing (at least in a part of the national territory) 5G infrastructural network, thus providing for a lower cost in terms of the initial investment.

Therefore, from a careful analysis of the results obtained from the simulations, it is possible to establish that the approach relating to Case 1 has several disadvantages concerning average waiting times in the queue (there are peaks of 400 seconds, i.e., more than 6 minutes of waiting in the queue; moreover, the average waiting time is around one minute). Accordingly, this application can be considered the worst-case and empirically highlights how this approach is distant from the other two approaches, which, on the contrary, provide configurations in which intelligent traffic lights are exploited [38]. The analysis of Case 2, on the other hand, represents the best case, at least in terms of average waiting time in queues for a vehicle. In fact, in this scenario, the peaks present in the configuration of Case 1 are eliminated so much, so that the maximum peak present is around 3 minutes (worst-case equal to 185 seconds), while the average waiting time in the queue drops drastically by almost 10 seconds, reaching an average time of about 49 seconds. The third approach (Case 3) represents the intermediate case as it allows for maximum peaks that reach about 200 seconds (i.e., about three and a half minutes). In comparison, the average waiting time in the queue is around 54 seconds. However, the latter application allows integrating LTE technology with fifth-generation (5G) cellular communications. As has already been mentioned, this could represent a significant advantage for this particular approach. It would provide the possibility of using the 5G infrastructures (partly already existing) instead of the case involving the use of the 802.11p standard.

5. Conclusions

This work presented an innovative approach to the managing an intelligent traffic light system. The central basis of this work is the implementation of an intelligent traffic light whose management is required from three application scenarios. The decision-making part was set as a black box inside which input signals enter, and output signals are produced. All this made it possible to imagine three different realization hypotheses, simulated through Matlab, and provided valuable data for their subsequent comparison.

The proposed approach has brought out a series of advantages and innovations compared to the multiple solutions existing in the literature. First of all, there is the generality of the treatment making any implementation solution independent from the point of view of the network infrastructure that is implemented upstream. Another fundamental aspect is represented by the transparency of the functioning of the black box concerning the infrastructural solution. In this sense, this block does not affect the performance of the network used, regardless of what the block is. The simplicity of implementation is another essential advantage introduced by the approach reported in this work; a simple input-output block results in a considerable saving of energy and cost of the final solution adopted.

From a detailed analysis of the data, it seems possible to establish that the best implementation solution, from an infrastructural point of view, is that of the 802.11p standard. However, it is necessary to take into consideration the fact that the LTE-V2V technology, as already described in this work, could be a technologically more attractive solution, given that it is ready to be adapted to 5G technology, whose infrastructure is already, at least in part, widespread. This situation would make it possible to lower the initial economic impact significantly. However, it is also important to point out that the 802.11p standard is currently subject to continuous evolutions.

Therefore, based on this, this work it can be concluded that none of the multiple applications analyzed is universally best. On a case-by-case basis, it is necessary to choose which solution introduces more significant advantages over developing a particular application. The comparison with other implementation hypotheses, the possibility of making the services provided by an intelligent traffic light system useable also by autonomous vehicles (AV), and the ability to make new implementation approaches (also in terms of developing new standards of communication) are all possible topics that could be developed as further study of this research topic.

Data Availability

The data are not made available since the research has been incorporated into a research project that involves the presentation of patents.

Conflicts of Interest

The authors declare that they have no conflicts of interest.