Journal of Intelligent Systems and Internet of Things

Intelligent Traffic Management System for Smart Cities

Mahmoud Ismail, Shereen Zaki
Volume 3, Issue 1, pp. 43-50 (2021)
DOI: https://doi.org/10.54216/JISIoT.030104
Online: https://www.americaspg.com/journal/18/article/1631

Abstract

rapid urbanization and the growing population in smart cities pose significant challenges to the management of urban traffic. In recent years, there has been an increasing interest in developing intelligent traffic management systems that leverage advanced machineries, such as the Internet of Things (IoT), and machine learning (ML), to enhance the efficiency and effectiveness of traffic management in smart cities. This paper proposes an intelligent traffic management (ITM) system for smart cities that integrates various computing paradigms to provide real-time traffic information, optimize traffic flow, and improve road safety.  The suggested system utilizes an innovative system for the predicting the traffic flows with the goal of enhancing the current level of traffic management in smart cities. An enhanced convolutional autoencoder network is incorporated into the proposed system as a means of extracting the spatial representations contained in traffic flows. Additionally, by the utilization of a refined gated learning module, it possesses the capability of accurately recording temporal dynamics. Our system is evaluated using real-world traffic data, and the results demonstrate its effectiveness in improving traffic flow and reducing congestion in smart cities. Our system has the potential to significantly enhance the performance of traffic management systems in smart cities, decrease traffic crowding, and progress the safety of roads in smart cities.

Keywords: Deep Learning; Intelligent system; internet of things (IoT); smart cities

Intelligent Traffic Management System for Smart Cities

Mahmoud Ismail*1, Shereen Zaki 2

1,2 Faculty of computers and Informatics, Zagazig University, Zagazig, 44519, Egypt Emails: mmsabe@zu.edu.eg; SZSoliman@fci.zu.edu.eg

*Correspondence: mmsabe@zu.edu.eg

Abstract

rapid urbanization and the growing population in smart cities pose significant challenges to the management of urban traffic. In recent years, there has been an increasing interest in developing intelligent traffic management systems that leverage advanced machineries, such as the Internet of Things (IoT), and machine learning (ML), to enhance the efficiency and effectiveness of traffic management in smart cities. This paper proposes an intelligent traffic management (ITM) system for smart cities that integrates various computing paradigms to provide real-time traffic information, optimize traffic flow, and improve road safety. The suggested system utilizes an innovative system for the predicting the traffic flows with the goal of enhancing the current level of traffic management in smart cities. An enhanced convolutional autoencoder network is incorporated into the proposed system as a means of extracting the spatial representations contained in traffic flows. Additionally, by the utilization of a refined gated learning module, it possesses the capability of accurately recording temporal dynamics. Our system is evaluated using real-world traffic data, and the results demonstrate its effectiveness in improving traffic flow and reducing congestion in smart cities. Our system has the potential to significantly enhance the performance of traffic management systems in smart cities, decrease traffic crowding, and progress the safety of roads in smart cities. Keywords: Deep Learning; Intelligent system; internet of things (IoT); smart cities;

Figure
Figure

Intelligent traffic management (ITM) is a relatively new discipline that uses cutting-edge technologies and data analysis to make transportation networks more effective, secure, and environmentally friendly. Timely reliable and safe transportation of people and goods is a primary goal of the Smart Transportation business, and its success depends on efficient and trustworthy traffic management. The Internet of Things (IoT) plays a pivotal role in bettering traffic management in transportation by providing real-time data on traffic conditions, allowing for better decision-making and more effective regulation of traffic flow [1]. Devices that are connected can collect data on factors such as traffic quantities, journey times, automobile speeds, and locations. Specialized algorithms for machine learning can be used to this data to identify patterns, flag anomalies, and predict future traffic patterns. The information can be used for safer streets, less congestion, and better control of traffic flow. Services such as automated problem management, individualized route planning, and real-time traffic data [2] are all possible thanks to the Internet of Things used by transportation firms. Machine learning (ML) is increasingly being used in the development of intelligent traffic management systems. With the growing number of vehicles on the roads, the need for efficient traffic management has become critical. ML algorithms can analyze vast amounts of data in real-time to provide insights that can be used to optimize traffic flow, reduce congestion, and improve public safety. One important use of ML in traffic management is in traffic prediction. ML algorithms can analyze historical data on traffic patterns and use this information to predict congestion in real time. By using these predictions, traffic managers can make informed decisions about routing and traffic signal timing, which can reduce congestion and improve traffic flow. Another use of ML in traffic management is in incident detection and management. ML algorithms can be trained to detect incidents such as accidents or road closures in real time. Once an incident is detected, the algorithm can automatically suggest alternative routes to drivers or adjust traffic signal timing to reduce congestion in the affected area. In this research, a novel ML model for automated and efficient prediction of traffic flow as way to improve the traffic management tasks in smart cities. Once the system receives the traffic samples, the spatial patterns are captured and extracted by an upgraded convolutional autoencoding module. Then, our system learn the temporal representations via an improved gated learning networks. Subsequently, both temporal and spatial representations are combined to generate the final prediction about the future traffic flow. The remaining of this study is planned as follows: The second section provides a literature overview on the use of ML in IoT traffic control applications. The third section discusses the rationale behind the proposed system 's technique. The experiments conducted for this paper and their contexts are discussed in the fourth section. The major conclusions of this work are discussed in the fifth section.

Figure
Figure

In this section, we will examine the practice of our ITM system for the powerful forecasting of traffic flows in smart cities. Figure 1 presents a diagrammatic representation of the proposed system's organizational structure. The proposed model, as can be seen, is composed of two primary building blocks: the first of which learns the spatial information that is present, and the second of which learns the temporal characteristics of the traffic patterns. A comprehensive explanation of each component of our model is provided in the subsequent paragraphs. Autoencoders are a type of ML that can be used for modeling traffic flow data. An autoencoder consists of an encoder that maps the input data to a compacted representation (latent space) and a decoder that maps the compressed representation back to the original input data. By doing so, autoencoders can learn a compressed representation of the input data that captures the most important features and patterns of the data. Autoencoders have been used for modeling traffic flow data by using the traffic flow data as input and training the autoencoder to reconstruct the same data at the output. The compressed representation obtained from the encoder can be used for visualization, clustering, or anomaly detection. The autoencoder can also be used to generate new traffic flow data that is like the training data, which can be used for generating synthetic data or augmenting the training dataset. thus, our system use AutoEncoder (AE) learn spatial features of traffic flow data, which are later passed to predictive module network to improve the performance of traffic flow prediction at the present location. So, the input of AE is traffic flow 𝑋𝑢= {𝑥𝑢1, 𝑥𝑢2, … , 𝑥𝑢𝑚} and, with 𝑥𝑢𝑖, 𝑥𝑑𝑖∈𝑅𝑑. The AE process inputs as follows:

𝑧𝑖= 𝑓(𝑤𝑧∗(𝑥𝑢𝑖+ 𝑥𝑑𝑖) + 𝑏𝑧), (1) 𝑦𝑖= 𝑔(𝑤𝑦∗𝑧𝑖+ 𝑏𝑦). (2) Where * denote convolutional kernel.
Figure 1. Illustration of the architecture of the proposed ML-based ITM system.
Figure 1. Illustration of the architecture of the proposed ML-based ITM system.

Capturing temporal dependencies in traffic flow data refers to the ability to model and analyze how traffic patterns change over time. Temporal dynamics play a crucial role in traffic flow data analysis as traffic patterns can vary significantly over short periods. Capturing temporal dynamics involves analyzing time-series data to detect trends, periodicity, and seasonality in traffic flow. This information can be used to develop accurate predictive models and optimize traffic flow in real time. Techniques such as time-series analysis, autoregressive integrated moving averages (ARIMA), and neural networks have been used to capture temporal dynamics in traffic flow data. By capturing temporal dynamics in traffic flow data, transportation planners and managers can make informed decisions to improve traffic flow, reduce congestion, and enhance road safety. To this end, improved Gated Recurrent Unit (IGRU) is introduced to learn temporal dependencies in sequential data by applying gated learning that allow it to selectively update or forget information from previous time steps. Following the same concept of standard GRU, the IGRU the advantage of gating mechanisms to selectively update and reset the network’s memory, which empowers the network to capture long-term dependencies in the data. To use the IGRU for in our system, the latent space of the autoencoder is divided into sequences of fixed length. Each sequence would correspond to a time window of the traffic flow data, with the IGRU taking as input the flow measurements at each time step within the window. The GRU would then be trained to predict the flow measurements at the next time step, given the previous measurements within the window. The network would learn to capture temporal dependencies in the data, such as daily or weekly patterns in traffic flow. Mathematically speaking, the gating calculation IGRU gates are expressed as shown below:

𝑍𝑡= 𝑠𝑤𝑖𝑠ℎ(𝑊𝑧𝑥𝑡+ 𝑉𝑧ℎ𝑡−1 + 𝑏𝑧) (3) 𝑟𝑡= 𝑠𝑤𝑖𝑠ℎ(𝑊𝑟𝑥𝑡+ 𝑉𝑟ℎ𝑡−1 + 𝑏𝑟) (4) The hidden state, ℎ𝑡, and candidate state, ℎ̃𝑡 are followingly computed as follows:

ℎ𝑡= (1 −𝑧𝑡) ⊗ℎ𝑡−1 + 𝑧𝑡⊗ℎ̃𝑡 (5) ℎ̃𝑡= 𝑡𝑎𝑛ℎ(𝑊𝑐𝑥𝑡+ 𝑉𝑐(𝑟𝑡⊗ℎ𝑡−1)) (6)

whereby, the 𝑊𝑧, 𝑊𝑟, and 𝑊𝑐 represent the parameters, while 𝑉𝑧, 𝑉𝑟, and 𝑉𝑐 indicate the parameters of gates. The 𝑏 indicates the bias parameters. By the end of the mode, we apply a Huber loss function to be used to update the parameters of our system during the training. The Huber loss is calculated as follows:

1 2 𝑥2 for |𝑥| ≤𝛿, Huber⁡(𝑥) = { 𝛿|𝑥| −1

2 𝛿2 otherwise.

where 𝜹 represents a flexible parameter that plates wherever the transformation occurs.

Figure

⁡ distances between every pair of traffic stations, we determine the road graph's adjacency matrix. We may write down the following expression for the edge weight 𝑤𝑖𝑗 in the adjacency matrix 𝑊:

2 2 𝑑𝑖𝑗 𝑑𝑖𝑗 𝜎2) ,    𝑖≠𝑗 and exp⁡ (− 𝑤𝑖𝑗= {exp⁡ (− 𝜎2) ≥𝜖

0, otherwise.

The functioning of our ITM system is assessed according to three common indicators that calculated the variation between the system’s predictions, 𝑌̂, and ground truth 𝑌. These indicators are computed as follows:

𝑛 𝑀𝑒𝑎𝑛⁡𝑆𝑞𝑢𝑎𝑟𝑒⁡𝐸𝑟𝑟𝑜(𝑀𝑆𝐸) = 1 2 (9) 𝑛∑ (𝑌𝑡−𝑌̂𝑡) 𝑖=1
𝑛 𝑀𝑒𝑎𝑛⁡𝐴𝑏𝑠𝑜𝑙𝑢𝑡𝑒⁡𝐸𝑟𝑟𝑜𝑟⁡(𝑀𝐴𝐸) = 1 |𝑌𝑡−𝑌̂𝑡| (10) 𝑛∑ 𝑖=1
2 ∑ 𝑖=1 (𝑌𝑡−𝑌̅)2 (11) ∑ 𝑖=1 (𝑌𝑡−𝑌𝑡̂) 𝑅2 = 1 −
Figure 2. Illustration of the learning curves of the proposed system
Figure 2. Illustration of the learning curves of the proposed system

To comprehend the competitive power of our ITM system, Table 1 presents the quantitative results attained from investigational assessments between the proposed system and the cutting-edge methods (ARIMA, support vector regressor (SVR), full connected LSTM(FC_LSTM), Multi-layer perceptron (MLP)) in the literature. It's worth noting that the proposed approach can outperform alternative methods in terms of predictive power. Because our model so well captures the spatio-temporal aspects of traffic flow and their relationship, the network's prediction abilities are greatly enhanced.

Table 1. comparative analysis of how well various ML techniques can predict PeMSD7.
Table 1. comparative analysis of how well various ML techniques can predict PeMSD7.
Figure 3. visualization of predictions of the proposed system and IGRU against actual traffic flow.
Figure 3. visualization of predictions of the proposed system and IGRU against actual traffic flow.

In addition, we use the training curves shown in Figure 3 to evaluate the model's consistency as it is being trained. It's worth noting that even while being trained, the proposed model keeps a consistent learning behavior. The model also converges quickly under a variety of loss functions. Figure 4 compares the model predictions to the actual data, providing further evidence for the suggested model's accuracy. The reliability of the model as a tool for enhancing ITM activities is shown by the prediction curves' demonstration of its ability to accurately estimate traffic flows.

4. Conclusion

This work presents an intelligent system for predictive modeling traffic flows in smart cities to give the decisionmakers a set of valuable insights about the future state of the traffic sector, and thereby help them to avoid possible issues. The chronological patterns and the spatial patterns of smart city traffics are seized as corresponding sets for enhanced forecasting. The effectiveness and competitiveness of our system were confirmed experimentally in comparison to state-of-the-art methods. Our approach is a viable tool for deployment in a real-world ITM system since it captures a supplementary set of representations of traffic flows.

References

[1].  Tang, F., Mao, B., Fadlullah, Z. M., Kato, N., Akashi, O., Inoue, T., & Mizutani, K. (2017).  On removing routing protocol from future wireless networks: A real -time deep learning approach for intelligent traffic control. IEEE Wireless Communications, 25(1), 154-160.

[2].  Wei,  H.,  Zheng, G.,  Yao,  H.,  &  Li,  Z.  (2018, July).  Intellilight:  A  reinforcement learning  approach  for intelligent  traffic  light  control.  In  Proceedings  of  the  24th  ACM  SIGKDD  International  Conference  on Knowledge Discovery & Data Mining (pp. 2496-2505).

[3].  Tang, F., Fadlullah, Z. M., Mao, B., & Kato, N. (2018). An intelligent traffic load prediction-based adaptive channel assignment algorithm in SDN-IoT: A deep learning approach. IEEE Internet of Things Journal, 5(6), 5141-5154.

[4].  Fadlullah, Z. M., Tang, F., Mao, B., Kato, N., Akashi, O., Inoue, T., & Mizutani, K. (2017). State-of-the-art deep learning: Evolving machine intelligence toward tomorrow’s intelligent network traffic control systems. IEEE Communications Surveys & Tutorials, 19(4), 2432 -2455.

[5].  Zhao, Z., Chen, W., Wu, X., Chen, P. C., & Liu, J. (2017). LSTM network: a deep learning approach for short‐term traffic forecast. IET Intelligent Transport Systems, 11(2), 68 -75.

[6].  Rehena,  Z.,  &  Janssen,  M.  (2018,  April).  Towards  a  framework  for  context -aware  intelligent  traffic management system in smart cities. In Companion Proceedings of the The Web Conference 2018 (pp. 893-898).

[7].  Y. Liu, C. Yang and Q. Sun, "Thresholds Based Image Extraction Schemes in Big Data Environment in Intelligent Traffic Management," in IEEE Transactions on Intelligent Transportation Systems, vol. 22, no. 7, pp. 3952-3960, July 2021, doi: 10.1109/TITS.2020.2994386.

[8].  Menouar,  H.,  Guvenc,  I.,  Akkaya,  K.,  Uluagac,  A.  S.,  Kadri,  A.,  &  Tuncer,  A.  (2017).  UAV-enabled intelligent transportation systems  for the smart city: Applications and challenges.  IEEE Communications Magazine, 55(3), 22-28.

[9].  Rizwan, P., Suresh, K., & Babu, M. R. (2016, October). Real-time smart traffic  management system for smart cities by using Internet of Things and big data. In  2016 international conference on emerging technological trends (ICETT) (pp. 1-7). IEEE.

[10].  Djahel,  S.,  Doolan,  R.,  Muntean,  G.  M.,  &  Murphy,  J.  (2014).  A  communications-oriented perspective on traffic management systems for smart cities: Challenges and innovative approaches.  IEEE Communications Surveys & Tutorials, 17(1), 125-151.

[11].  Rego,  A.,  Garcia,  L.,  Sendra,  S.,  &  Lloret,  J.  (2018).  Software  Defined  Network-based  control system  for  an  efficient  traffic  management  for  emergency  situations  in  smart  cities.  Future  Generation Computer Systems, 88, 243-253.

[12].  Kumar, P. M., Manogaran, G., Sundarasekar, R., Chilamkurti, N., & Varatharajan, R.  (2018). Ant colony  optimization  algorithm  with  internet  of  vehicles  for  intelligent  traffic  control  system.  Computer Networks, 144, 154-162.

[13].  Mohammed, F., Idries, A., Mohamed, N., Al-Jaroodi, J., & Jawhar, I. (2014, May). UAVs for smart cities:  Opportunities  and  challenges.  In  2014  International  Conference  on  Unmanned  Aircraft  Systems 

(ICUAS) (pp. 267-273). IEEE.

[14].  Sharma,  P.  K.,  Moon,  S.  Y.,  &  Park,  J.  H.  (2017).  Block-VN:  A  distributed  blockchain  based vehicular network architecture in smart city. Journal of information processing systems, 13(1), 184-195.

[15].  Lin,  Y.,  Wang,  P.,  &  Ma,  M.  (2017,  May).  Intelligent  transportation  system  (ITS):  Concept, challenge  and  opportunity.  In  2017  ieee  3rd  international  conference  on  big  data  security  on  cloud (bigdatasecurity), ieee international conference on high performan ce and smart computing (hpsc), and ieee international conference on intelligent data and security (ids)  (pp. 167-172). IEEE.

[16].  A.  Salamanis,  D.  D.  Kehagias,  C.  K.  Filelis-Papadopoulos,  D.  Tzovaras  and  G.  A.  Gravvanis, "Managing Spatial Graph Dependencies in  Large Volumes of Traffic Data for Travel-Time Prediction," in IEEE Transactions on Intelligent Transportation Systems, vol. 17, no. 6, pp. 1678 -1687, June 2016, doi: 10.1109/TITS.2015.2488593.

[17].  Vaswani,  A.,  Shazeer,  N.,  Parmar,  N.,  Uszkoreit,  J.,  Jones,  L.,  Gomez,  A.N.,  Kaiser,  Ł.  and Polosukhin, I., 2017. Attention is all you need. Advances in neural information processing systems, 30.