Next Article in Journal
Siamese Neural Network for Keystroke Dynamics-Based Authentication on Partial Passwords
Previous Article in Journal
A Real-Time Evaluation Algorithm for Noncontact Heart Rate Variability Monitoring
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Traffic Flow Prediction at Intersections Based on DT-TCN-Attention

School of Earth and Space Sciences, Peking University, Beijing 100871, China
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(15), 6683; https://doi.org/10.3390/s23156683
Submission received: 8 June 2023 / Revised: 22 July 2023 / Accepted: 24 July 2023 / Published: 26 July 2023
(This article belongs to the Section Vehicular Sensing)

Abstract

:
Traditional nonintelligent signal control systems are typically used in road traffic signal systems, which cannot provide optimal guidance and have low traffic efficiency during rush hour. This study proposes a traffic signal phase dynamic timing optimization strategy based on a time convolution network and attention mechanism to improve traffic efficiency at intersections. The corresponding optimization was performed after predicting traffic conditions with different impacts using the digital twinning technique. This method uses a time-convolution network to extract the cross-time nonlinear characteristics of traffic data at road intersections. An attention mechanism was introduced to capture the relationship between the importance distribution and duration of the historical time series to predict the traffic flow at an intersection. The interpretability and prediction accuracy of the model was effectively improved. The model was tested using traffic flow data from a signalized intersection in Shangrao, Jiangxi Province, China. The experimental results indicate that the model generated by training has a strong learning ability for the temporal characteristics of traffic flow. The model has high prediction accuracy, good optimization results, and wide application prospects in different scenarios.

1. Introduction

An urban traffic signal control system is key to reducing traffic jams and accidents. With the rapid development of the scientific economy and an increase in population, the demand for motor vehicles is increasing in China. The traditional non-intelligent signal lamp is typically based on a fixed traffic signal control strategy, which makes it difficult to deal with the complex and changeable urban traffic state, leading to different degrees of traffic congestion and accidents, emissions of carbon dioxide, and huge economic losses [1].
In recent years, several studies have been conducted both domestically and internationally on urban traffic signal control issues, such as the split-cycle offset optimizing technique (SCOOT) system in the UK [2], real-time hierarchy optimized distribution effect system (RHODES) in the US [3], vehicle information and communication system (VICS) in Japan [4], and integrated traffic management system (ITMS) in China. To address the shortcomings of artificial experiences and sensor control, an increasing number of researchers have used artificial intelligence (AI) to improve urban transportation systems. Chin et al. [5] used Q-learning algorithms to control traffic lights, allowing each intersection to collaborate independently, while Casas et al. [6] used deep deterministic strategies for adaptive control of urban traffic signals. Kamal et al. [7] proposed a model predictive control (MPC) based on urban road traffic signal control; the MPC adapts to different traffic conditions and adjusts the free parameters of traffic signals online to generate appropriate traffic signals. Domestic scholars have also conducted studies on signal control. Xia [8] established an urban regional traffic signal control model to address the efficiency of traditional distributed adaptive traffic signal control coordination. He conducted traffic signal game interaction optimization control for local intersections and proposed a local information game interaction learning algorithm based on an intersection traffic signal control agent. Li et al. [9]. proposed a memory density strategy in which the NS-BML model in signal control only considers instantaneous density and ignores historical density. Based on the short-term memory density strategy combined with the long-term memory density strategy, the impact on a Manhattan-style network was analyzed to improve the operational efficiency of the road signal control system. Shi et al. [10] proposed a signal control strategy based on the operating characteristics of PFI traffic flow to address the congestion problem at urban traffic intersections and established corresponding optimization models, effectively improving the operational efficiency of intersections. Traditional adaptive signal control relies largely on the current traffic state and does not consider future traffic conditions, making it difficult to achieve an optimal global state. Researchers have applied methods such as neural networks [11], particle swarm optimization algorithms [12], and genetic algorithms [13] to adaptive traffic signal control (ATSC) to improve global optimization capabilities. However, these algorithms also have problems, such as the slow convergence speed of genetic algorithms and the low accuracy of particle swarm optimization algorithms. The research and development in the field of signal control is relatively recent in China, and its application must be improved through the application of science, technology, and industry standards. Signal control research has a high research value [14,15].
Based on the above analysis, this study proposes an optimized model for predicting traffic flow at the signal port based on a temporal convolutional network and attention with digital twins (DT-TCN Attention), fused with digital twin technology. The following are the contributions of this study.
(1) Using a TCN to extract temporal features from traffic flow data: A TCN introduces extended convolution and residual structures based on a convolutional neural network (CNN), which can effectively remove cross-temporal nonlinear relationships in traffic flow data. The residual system accelerates the feedback and convergence of the original multilayer neural network.
(2) Introducing an attention mechanism that allocates more weight to the temporal features of important nodes helps capture the global and local connections, which can effectively improve the interpretability and prediction accuracy of the model.
(3) In addition to considering the volume of traffic flow data, the study also determines meteorological factors, holidays, and seasonal information, which can help fully explore changes in traffic flow, improve the accuracy of prediction, and optimize the effectiveness of signal control.
(4) Digital twin software and Python tools were used to simulate the running status of vehicles in heavy traffic. By simulating intersections in practical cases and studying the coordinated timing control of signal lights at different periods, a real-time dynamic optimization strategy for each intersection phase was proposed to alleviate the congestion problem at peak traffic intersections.
The rest of the article is organized as follows: The related work is presented in Section 2 method of traffic Flow Prediction Strategy based on DT-TCN Attention. Following that, Section 3 introduces the data processing. Afterward, as a case study, the target system setup and model training are illustrated in Section 4. At the same time, based on the real-time dataset from traffic case studies, the evaluation results of the proposed model are discussed and presented in digital twin system. Discussion part is proposed in Section 5. Finally, conclusions and future research directions are outlined in Section 6.

2. Traffic Flow Prediction Strategy Based on DT-TCN Attention

2.1. TCN Attention Prediction Model Description

The traffic flow prediction model based on the TCN Attention, which is divided into three parts, is shown in Figure 1.
Input layer: The input layer contains the data pre-processing process, first embedding the special weather data and holiday data in the data set, and then importing the traffic flow data, and is set according to the corresponding variable characteristics of the data set for the integration of meaningless data truncation or supplementing it to ensure the integrity of the data set input.
Backbone network: Its function extracts nonlinear features from input sequences with multiple features.
Output layer: Outputs the multidimensional feature sequence output by the backbone network. The feature is extracted based on the backbone layer, and the training set data are used to abstract the feature and output the corresponding traffic forecast results in the future.

2.2. Data Preprocessing

In the daily long-timescale prediction task, the time-sampling unit preprocesses historical traffic flow, meteorological factors, holidays, and other data as input to the model, and the prediction result is the traffic flow operation in the next stage. The meteorological factors included the average temperature, wind speed, and maximum and minimum temperatures in the next step. The data preprocessing primarily includes data normalization, de-normalization, and categorical variable vectorization based on embedding.

2.2.1. Data Normalization and Denormalization

Considering the significant differences between the original data and a large amount of data, data features with smaller values may need to be addressed. Therefore, the actual data in this study were normalized. This study adopts the normalization method of the linear function. The normalization formula is as follows:
x n o r m = x x min x max x min
where x n o r m is the normalized value obtained, X is the initial data, x min represents the minimum value in the data, and x max is the maximum value in the data. Normalize the original data to within [0, 1] to achieve proportional scaling of the original data.
After obtaining the predicted results from the short-term traffic flow prediction model of the TCN-Attention, performing denormalization processing was necessary. The denormalization formula is as follows:
x o L = x n o r m L ( x max L x min L ) + x min L
where x o L is the predicted value after inverse normalization, x n o r m L predicts the output values for the model, and x max L and x min L are the maximum and minimum values in the original data, respectively.

2.2.2. Vectorization of the Categorical Variable Based on Embedding

In this study, the one-hot code converted the categorical variable into a numerical value. For example, the one-hot code V for rainy days can be expressed as V = [1, 0, 0, 0]. To avoid using one-hot code that may cause deviations in the model prediction accuracy, the embedding layer network structure processes the categorical variable. As shown in Figure 2, high-dimensional sparse one-hot code V is converted into a low-dimensional dense embedding vector.

2.3. TCN Model Construction

The TCN model is an algorithm based on a convolutional structure (CNN) used to address time-series problems. It comprises a multilayer one-dimensional extended causal convolution and residual connected units. The input and output lengths are equal, and a residual connection mechanism is introduced to address the gradient vanishing problem.
The extended convolutional network structure selects the input of historical time x 0 , x 1 , , x t 1 as the input x t of the model t time, satisfies the input conditions of time-series prediction, and outputs y 0 , y 1 , , y t , which d are the expansion numbers, as shown in Figure 3.
The extended convolution sampled the input data in different steps with varying sampling frequencies at different levels. The input layer often samples all initial data to extract richer and more accurate feature information.
The residual unit was formed by adding the output and input data of different layers of the networks and the outputs after the activation function. The residual unit connection mechanism can improve the feedback and convergence of the network and avoid the problems of gradient disappearance and explosion that exist in traditional neural networks.
Each residual element consists of two convolutional elements and a nonlinear mapping. First, the input data are subjected to one-dimensional extended causal convolution, and then the weight values are normalized to improve the calculation speed. The ReLU activation function is used to make the network nonlinear, and finally, dropout is performed on the output data, as shown in Figure 4.

2.4. Establishment of the Attention Model

The attention mechanism layer adopts a scaling and clicking method, and its output is
A t t e n t i o n ( Q , K , V ) = s o f t max ( Q K T d k ) V
Here, K and V represent key-value pairs (key, value), Q represents the objective function, and d k represents Q of the dimension. If it requires Q = K = V to be satisfied, the calculated value of attention will be obtained.
The structure of the attention mechanism network is shown in Figure 5. The output value of the TCN output layer to the input of the attention mechanism layer was a 0 , a 1 , , a n . Different inputs had different features, and the features were significantly correlated with timing. The prediction results of each vector have different weights, and the attention mechanism performs a time-step action on values with higher weights in the prediction data. The weighted sum is used to obtain the attention value, and a dense output is obtained.

2.5. Digital Twin Signal Control System

A digital twin [16] refers to a digital representation of real-world entities. It integrates multi-scale and multi-dimensional simulations based on sensor data updates, historical data accumulation, and physical entity models. This reflects the life cycle of a physical entity. The digital twin [17] provides a new approach for analyzing and solving traffic signal timing problems by realistically restoring traffic operation scenarios in the digital space.
The data access layer in the digital twin software can be used to build static models of road intersections and obtain dynamic vehicle data using sensor devices. The traffic signal control system has a fixed timing control for traffic lights that cannot be flexibly adjusted based on the actual traffic congestion situation without importing optimization algorithms. Real-time traffic data were imported into the twin simulation model, connected to digital analysis through the built-in COM interface in the digital twin software, optimized the algorithm timing of the traffic signal control model under twin construction and provided feedback on the optimized timing scheme in the real scene. The data interaction model structure of the digital twin signal control system is illustrated in Figure 6.

3. Data

The dataset in this study includes the effective traffic flow, meteorological factors, correlation dates, and nonhuman intervention factors from October 2022 to March 2023, as presented in Table 1. The pre-processing of raw data includes normalization, de-normalization, and embedding categorical variable vectorization. Among them, for effective traffic flow processing, the number of vehicles passing through and the busy index are calculated in units of 24 h per day. The processing of meteorological factors includes precipitation, wind intensity, and the daily temperature difference index. Non-human intervention factors primarily include traffic control and major vehicle accidents.

3.1. Traffic Flow Time Series

The dataset was sourced from the intersection of Fenghuang Middle Avenue and Shangrao Avenue in Shangrao City, Jiangxi Province, China. The data statistical period was from 14 October 2022, to 4 March 2023, and the statistical period was a day.
The dynamic change curve of the dataset is shown in Figure 7, where abnormal changes exist in the vehicle flow data during certain periods. The period from 20 November to 5 December was affected by pandemic policies, and the period from 21 January to 27 January was during the Spring Festival. The area is a population outflow area, and there are significant fluctuations in the trend of people returning home during the Spring Festival.
The daily traffic volume of this data set, which belongs to a traffic intersection with a large traffic volume, showed values above 5000 pcu over a long time. We note that the traffic flow fluctuates periodically, with about one large fluctuation every seven days, reaching a cyclical peak and a value of 6500–6800 pcu. Under the influence of the pandemic policy, the traffic flow had an obvious trough period. The figure was between 30 and 50 pcu for 14 days; traffic returned to normal after normal traffic policy resumed, and there were sharp spikes due to the holidays.

3.2. Impact Factors

A correlation exists between traffic flow data and morning and evening peak hours, holidays, and non-human-controllable factors. Therefore, based on embedding, this study transformed the relevant influencing factors of dynamic changes in traffic flow from text to low-dimensional vectors, defined as the time index, weather index, and non-human controllable index, as presented in Table 2.
The time index types were divided into three categories: “workdays not adjacent to holidays”, “workdays adjacent to holidays”, and “holidays/weekends,” with weights of 0, 0.05, and 0.1, respectively. A non-human controllable index, such as traffic control and congestion alleviation, primarily manifests as a temporary sharp drop in traffic flow. The weight during this period was set to 0.1, and the weight for the non-interference period was set to 0. A specific weight-parameter diagram is shown in Figure 8.

4. Experimental Verification

This study considers the intersection of Fenghuang Middle Avenue and Shangrao Avenue in Shangrao City, Jiangxi Province, from 1 December 2022, to 31 December 2022, and combines traffic flow survey data to train the TCN-attention model. The digital twin software was used for traffic simulation rehearsal and was compared with the TCN benchmark model to verify its effectiveness. The computer CPU used for all model training in the experiment is a 14-core Intel (R) Xeon (R) Gold 6330 [email protected] GHz. The GPU is an RTX 3090 with 24 GB of graphics memory, and the operating environment is Python 3.8 (ubuntu18.04) + PyTorch 1.8.1 + Cuda11.1.

4.1. Evaluation Indicators

The simulation experiment uses the mean absolute percentage error (MAPE) to refer to the average absolute percentage error, a relative measure that determines the MAD scale as a percentage unit, rather than a variable unit. The average fundamental percentage error is a measure of the relative error, which uses actual values to avoid canceling the positive and negative errors. The formula used is as follows:
y M A P E = 1 n t = 1 n x r e a l x p r e d x r e a l
where x r e a l represents the actual traffic flow, x p r e d is to predict traffic flow, and n is the number of predictions. The smaller y M A P E of the value, the closer the expected value is to the true value, which means the higher the accuracy of the prediction.

4.2. Adjustable Parameter Settings

The parameters of the TCN-attention traffic-flow prediction model include the embedding dimension, convolution kernel size, expansion coefficient, and number of residual blocks. The ReLU was selected as the activation function in the experiment, and the specific parameter settings are listed in Table 3.

4.3. Network Training

The training used MAPE to analyze the prediction results and obtained the following results: The MAPE curves for the test and validation sets are shown in Figure 9 and Figure 10, respectively. After 250 epochs, MAPE of TCN and MAPE of TCN-Attention were 0.239 and 0.236 respectively, and the network converged.
It may be seen from Figure 9 and Figure 10 that in the TCN and TCN-Attention test sets, TCN-Attention converged much faster than TCN, and the MAPE values were consistently smaller. In the TCN and TCN-attention validation sets, TCN-Attention converged much faster than TCN as well. These results show that TCN-Attention is more effective than TCN’s traditional traffic flow prediction method, demonstrating the validity of the experiment.
The final prediction results are shown in Figure 11:
(1)
The overall trend of the network prediction results was consistent with the true values and could be adjusted for the initial stage and subsequent fluctuations. The prediction had relatively relevant fluctuations concerning the actual situation, and the prediction accuracy was good.
(2)
The two predicted values in the middle were low and differed significantly from the true value. Owing to the inclusion of occasional variables related to the lockdown caused by the pandemic in the training set, they were included in network training. However, owing to the end of the pandemic and the resumption of normal traffic flow, a significant deviation occurred between the predicted and true values. Evidently, the subsequently predicted fluctuation amplitude gradually matches the true value.

4.4. DT-TCN Attention Run Test

Building the corresponding traffic network on the digital twin platform at the intersection of Fenghuang Middle Avenue and Shangrao Avenue in Shangrao City. The specific steps are
  • Import the base map, perform precise positioning, and define the scale operation;
  • Draw 3D urban traffic sections and connectors;
  • Input traffic flow, place vehicle input modules at the corresponding entrances of the road network, and configure the type and quantity of vehicles;
  • Define the deceleration area of the road network and the path decision points;
  • Create a traffic signal controller to control the signal light groups at each intersection;
  • Place signal light groups and configure connectors at the parking line to calculate the duration adjustment of signal lights;
  • Construct an evaluation system, including establishing vehicle volume data collection points, travel time detectors, and queue length counters;
  • Import TCN Attention network training and run simulations internally.
  • The simulation results are shown in Figure 12, and the dynamic timing scheme is compared with the basic strategy presented in Table 4.

Signal Control Evaluation Indicators

In the study of intersection timing optimization, the evaluation indices include delay time, parking times, road capacity, saturation, fuel consumption, and exhaust emission. This paper selects the optimization objectives for the average delay, average parking, and queue length.
Vehicle delay consists of uniform delay and random delay. In this paper, a vehicle’s average delay time is calculated using the method of delay time proposed by Webster. The average vehicle delay d i for Phase i derived from the Webster delay calculation formula is as follows:
d i = c ( 1 λ i ) 2 2 ( 1 y i j ) + x i j 2 2 q i j ( 1 y i j )
In the formula, the first part represents the uniform delay, the second part the random delay; c represents the period, λ i is the green signal ratio, representing the ratio of the effective green light time of phase i to the signal period; y i j is the flow ratio of Phase i Inlet j , Xij is the saturation of Phase i Inlet j , and q i j is the actual traffic volume of Phase i Inlet j , p c u / h . According to the formula, the average delay of all vehicles at an intersection is expressed as:
d ¯ = i d i q i / i q i
The average number of stops at an intersection, averaged over a signal cycle by the total number of stops that a vehicle entering an intersection will produce under signal control, is expressed as:
h ¯ = i h i q i / i q i ,
where h i is the average number of stops for phase i vehicles.
Through a comparative analysis of the simulation evaluation results before and after, it can be concluded that the two signal timing optimization schemes have improved key indicators such as queue length and delay at intersections to varying degrees, improved traffic efficiency at intersections, and effectively alleviated traffic congestion. For the signal cycle optimization scheme under the Webster algorithm, the average queue length decreased by 6%, the average delay time decreased by 19.3%, and the average number of stops decreased by 0.6%. For the dynamic timing scheme based on the fusion DT-TCN Attention neural network, the average queue length decreased by 10.3%, the average delay time decreased by 27.1%, and the average number of stops decreased by 1.9%.

5. Discussion

As aforementioned, a neural network architecture integrating TCN Attention has the following advantages: parallelism, flexible receptive field size, stable gradients, low memory requirements during training, and variable-length input. This study used signal control optimization to effectively improve prediction accuracy. Further, digital twin technology is used for the simulation, effectively improving the driving efficiency. However, there are also obvious issues with this study.
1. The predicted results did not match the true values. In Figure 11, the predicted values represented by the blue line are consistent with the true values represented by the yellow line in the overall trend; however, a significant difference occurred in the position of the trough around 40 days. Owing to the consideration of the impact of pandemic policies (sporadic events) in the dataset, there was a period of less than 50 vehicles/day traffic data from the end of November to the beginning of December. Training was conducted during this period; therefore, there could have been significant fluctuation; however, the actual situation did not reflect this.
2. Potential parameter changes in the dataset. The characteristics of different datasets may have additional requirements regarding the historical quantity required for model prediction. Therefore, specific parameters must be adjusted for other datasets when using models for continuous predictions. This dataset includes the impact of policies and holidays. If the data volume increases for more than one year, other factors, such as weather, may affect the parameters.

6. Conclusions

Owing to the increasing completeness of intelligent transportation systems, verifying traffic control strategies using digital twin simulation technologies has become important. To improve traffic efficiency at intersections, this study used digital twin software to predict traffic flow at road intersections and optimize the signal control simulation. The aim was to improve the effective green light time of each phase, overcome the limitations of target singularity, and provide a common simulation method for achieving traffic signal control.
This study integrated the TCN Attention neural network architecture to perform short-term traffic flow prediction on a time series in minutes and long-term prediction on a dataset in days. Considering multiple influencing factors such as related dates, holidays, and policies, the “Congestion Index” was proposed as an evaluation indicator. Experiments have shown that, based on traffic flow data at specific intersections, compared with traditional TCN, this method significantly improves accuracy and training efficiency, with MAPE = 0.239. By utilizing digital twin technology for real-time simulation and dynamically adjusting the signal control duration, it is evident that the delay time of the traffic flow is significantly decreased, yielding positive outcomes.
Additionally, the method proposed in this study requires improvements in certain aspects. In the case study analysis, this study only analyzed a single intersection and did not include any factors that affect pedestrian crossing time when considering factors that affect road traffic efficiency. With continuous improvements in computer technology, such as big data and cloud computing, the study of multiple factors, such as mixed traffic, can be added to future research. For each intersection phase, the model was established using the crossing times of pedestrians, electric vehicles, and cyclists as the objective function. Simultaneously, expanding the application scenario from simple single intersections to complex road network tests with multiple intersections and using the overall urban traffic scenario to reduce road congestion and traffic accidents is necessary.

Author Contributions

Data curation, Y.Z., K.S. and Z.C.; Formal analysis, Y.Z.; Funding acquisition, F.Z.; Methodology, Y.Z. and Z.Z.; Project administration, F.Z.; Resources, Z.Z.; Software, K.S.; Supervision, F.Z.; Validation, Y.Z.; Visualization, Y.Z.; Writing—original draft, Y.Z. and Z.C.; Writing—review & editing, Y.Z. and K.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Due to privacy, the datasets of this article is unavailable for publication.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Guo, X.R.; Liu, X.Q.; Liu, Y.; Zhang, Y. Prediction of carbon dioxide and conventional pollutant emission reduction in major transportation departments in the Beijing Tianjin Hebei region of China. J. Resour. Ecol. 2023, 14, 372–382. [Google Scholar]
  2. Robertson, D.I.; Bretherton, R.D. Optimizing networks of traffic signals in real time-the SCOOT method. IEEE Trans. Veh. Technol. 1991, 40, 11–15. [Google Scholar] [CrossRef]
  3. Ghaman, R. Next-Generation Smart Traffic Signals: RHODES(NG) with Intellidrive (SM)—The Self-Taught Traffic Control System; U.S. Department of Transportation, Federal Highway Administration: Washington, DC, USA, 2009.
  4. Nozaki, K. A report of the actual condition of VICS·ETC and a trend of deployment and diffusion in future. Technical Research Report of the Electronic Intelligence and Communication Society. Intell. Transp. Syst. Technol. 2002, 102, 474. [Google Scholar]
  5. Chin, Y.K.; Wei, Y.K.; Wei, L.K.; Tan, M.K.; Teo, K.T.K. Q-learning traffic signal optimization within multiple intersections traffic network. In Proceedings of the 2012 Sixth UKSim/AMSS European Symposium on Computer Modeling and Simulation (EMS), Malta, 14–16 November 2012. [Google Scholar]
  6. Casas, N. Deep reinforcement learning for urban traffic light control. arXiv 2017, arXiv:1703.09035v2. [Google Scholar]
  7. Kamal, M.; Imura, J.; Ohata, A.; Hayakawa, T.; Aihara, K. Control of traffic signals in a model predictive control framework. IFAC Proc. 2012, 45, 221–226. [Google Scholar] [CrossRef]
  8. Xia, X.H. Learning coordinated control under local game interaction of urban traffic signals. Comput. Eng. Appl. 2020, 56, 245–252. [Google Scholar]
  9. Li, X.H.; Huo, F.Y.; Jin, C.C.; Song, B.; Li, C.H. Research on memory density based on NS-BML model in traffic signal control system. Comput. Appl. Res. 2019, 36, 3027–3032. [Google Scholar]
  10. Shi, A.; Lang, S.; Jian, W.; Lu, Y. Signal control strategy and benefit analysis for parallel flow intersections. J. Transp. Syst. Eng. Inf. 2020, 20, 75–82. [Google Scholar]
  11. Srinivasan, D.; Choy, M.C.; Cheu, R.L. Neural networks for real-time traffic signal control. IEEE Trans. Intell. Transp. Syst. 2006, 7, 261–272. [Google Scholar] [CrossRef] [Green Version]
  12. Manandahar, B.; Joshi, B. Adaptive traffic light control with statistical multiplexing technique and particle swarm optimization in-smart cities. In Proceedings of the 2018 IEEE 3rd International Conference on Computing, Communication and Security (ICCCS), Kathmandu, Nepal, 25–27 October 2018; pp. 210–217. [Google Scholar]
  13. Sanchenz-Medina, J.J.; Galan-Moreno, M.J.; Rubioroyo, E. Traffic signal optimization in “La Almozara” district in Saragossa under congestion conditions, using genetic algorithms, traffic microsimulation, and cluster computing. IEEE Trans. Intell. Transp. Syst. 2009, 11, 132–141. [Google Scholar] [CrossRef]
  14. Gui Rong, H. Research on real time traffic signal control at urban road intersections. Autom. Technol. Appl. 2020, 39, 5–8. [Google Scholar]
  15. Xiao, W.Y.; Jian, M.X. Research on traffic signal control strategies for continuous flow in urban road networks. Traffic Energy Conserv. Prot. 2019, 15, 39–42+114. [Google Scholar]
  16. Fei, T.; Liu, W.; Liu, J.; Liu, X.; Liu, Q.; Qu, T.; Hu, T.; Zhang, Z.; Xiang, F.; Xu, W. Digital twin and its potential application exploration. Comput. Integr. Manuf. Syst. 2018, 24, 4–21. [Google Scholar]
  17. Chao, H.W.; Xiao, B.W.; Liang, W. Prospects for the development trend of smart transportation in the context of a strong transportation country. Transp. Res. 2019, 5, 26–36. [Google Scholar]
Figure 1. Traffic Flow Prediction Model Based on TCN Attention.
Figure 1. Traffic Flow Prediction Model Based on TCN Attention.
Sensors 23 06683 g001
Figure 2. Embedded Layer Network Structure.
Figure 2. Embedded Layer Network Structure.
Sensors 23 06683 g002
Figure 3. Extended Convolutional Network Structure.
Figure 3. Extended Convolutional Network Structure.
Sensors 23 06683 g003
Figure 4. TCN residual unit structure.
Figure 4. TCN residual unit structure.
Sensors 23 06683 g004
Figure 5. Attention Mechanism Network Structure.
Figure 5. Attention Mechanism Network Structure.
Sensors 23 06683 g005
Figure 6. Structure diagram of the data interaction model for the digital twin signal control system.
Figure 6. Structure diagram of the data interaction model for the digital twin signal control system.
Sensors 23 06683 g006
Figure 7. Dynamic Change Curve of the Dataset.
Figure 7. Dynamic Change Curve of the Dataset.
Sensors 23 06683 g007
Figure 8. Parameter Weights of the Dataset.
Figure 8. Parameter Weights of the Dataset.
Sensors 23 06683 g008
Figure 9. MAPE Error Curve of the Test Set.
Figure 9. MAPE Error Curve of the Test Set.
Sensors 23 06683 g009
Figure 10. MAPE Error Curve of Verification Set.
Figure 10. MAPE Error Curve of Verification Set.
Sensors 23 06683 g010
Figure 11. TCN Attention Prediction Results.
Figure 11. TCN Attention Prediction Results.
Sensors 23 06683 g011
Figure 12. DT-TCN Attention Operation Effect Diagram.
Figure 12. DT-TCN Attention Operation Effect Diagram.
Sensors 23 06683 g012
Table 1. Data Source Information.
Table 1. Data Source Information.
Time Series TypeTime IntervalStart DateEnd Date
traffic flow1 day14 October 20224 March 2023
Associated Date
Meteorological factors
Autonomous intervention
Table 2. Types of influencing factors and parameter weights.
Table 2. Types of influencing factors and parameter weights.
IndexParameterFactor
Time Indexworkdays not adjacent to holidays0.1
workdays adjacent to holidays0.05
holidays/weekends0.1
Non-human controllable indexnone0
interference periods0.1
Table 3. TCN-Attention Model Parameter Settings.
Table 3. TCN-Attention Model Parameter Settings.
Parameter NameParameter ValueParameter NameParameter Value
Embedding dimensions3Number of channels for each residual block[24, 8, 8]
Convolutional kernel size2Channel compression rate0.8
Number of residual block layers6Random inactivation rate0.2
Coefficient of expansion2Batch size512
Table 4. Comparison of intersection optimization algorithm timing schemes.
Table 4. Comparison of intersection optimization algorithm timing schemes.
Timing SchemeCycle/sAverage Delay Time/sAverage Number of StopsAverage Queuing Length/m
Basic case16258.1760.83644.59
Webster10246.9530.83142.02
Dynamic timing12142.3880.82040.01
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhang, Y.; Shang, K.; Cui, Z.; Zhang, Z.; Zhang, F. Research on Traffic Flow Prediction at Intersections Based on DT-TCN-Attention. Sensors 2023, 23, 6683. https://doi.org/10.3390/s23156683

AMA Style

Zhang Y, Shang K, Cui Z, Zhang Z, Zhang F. Research on Traffic Flow Prediction at Intersections Based on DT-TCN-Attention. Sensors. 2023; 23(15):6683. https://doi.org/10.3390/s23156683

Chicago/Turabian Style

Zhang, Yulin, Ke Shang, Zhiwei Cui, Zihan Zhang, and Feizhou Zhang. 2023. "Research on Traffic Flow Prediction at Intersections Based on DT-TCN-Attention" Sensors 23, no. 15: 6683. https://doi.org/10.3390/s23156683

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