Abstract:Due to the highly nonlinear and spatiotemporal coupling characteristics of traffic data, traditional time series models are difficult to effectively capture long-distance dependencies, resulting in limited prediction accuracy; At the same time, the spatiotemporal alignment error of multi-source heterogeneous data will further reduce the reliability of prediction, especially in complex traffic scenarios such as congestion and sudden accidents, where the cumulative effect of errors is exacerbated, leading to significant deviations in predicting automobile traffic flow. Based on this, a design method for an intelligent connected vehicle traffic flow prediction system based on time aware Transformer is proposed. At the hardware level, the original data quality is ensured by optimizing multi-source data acquisition equipment (high-precision GNSS/INS, multi line laser radar), and 5G edge computing nodes are deployed to achieve low latency preprocessing, effectively alleviating the transmission delay problem caused by spatio-temporal coupling characteristics. At the software level, a spatiotemporal alignment module (Gaussian filtering+coordinate transformation) is used to eliminate spatiotemporal biases in multi-source data and solve the problem of error accumulation; Next, design an improved time aware Transformer model that captures periodic patterns through a time embedding layer, models long-range dependencies using a local global hybrid attention mechanism, and introduces dilated causal convolution to enhance nonlinear feature extraction capabilities. Dynamically adapting to the cyclical and abrupt characteristics of traffic flow to improve prediction accuracy. Through the collaborative operation of hardware and software, accurate prediction of traffic flow has been achieved. The results of the ablation experiment showed that the minimum prediction error of traffic flow after the application of the time aware Transformer model reached 0.1%, fully confirming the effectiveness of the improved model. The comparative experimental results show that the maximum timestamp synchronization error of traffic flow data after the application of the designed system is only 0.08%, and the maximum spatial coordinate offset is only 0.16mm. The predicted traffic flow results are consistent with the actual results.