With the widespread development of machine learning and deep learning technology in recent years, artificial intelligence technology has been widely applied in various fields. Traffic flow prediction has been a hot research direction in recent years. Traffic flow is an important influencing factor in the field of transportation and travel, playing an important role in the rational allocation of transportation resources and ensuring the smooth performance of transportation and travel. It is necessary to predict future traffic flow based on historical travel data. Some existing deep learning methods require high time complexity and high hardware costs, and that have some shortcomings in prediction ability. This article proposes a CATformer model combining convolutional neural networks and attention mechanisms to solve the traffic flow prediction problem in time series problems, extracting and fusing features from multiple vector spaces for traffic data, The experimental results of predicting the flow of future traffic nodes show that the CATformer model has improved prediction accuracy compared to the benchmark method, achieving the task of traffic node flow prediction based on time series.