Urban traffic congestion poses persistent challenges to mobility, public safety, and governance efficiency in metropolitan areas. This study proposes an intelligent traffic flow forecasting framework based on an extended Long Short-Term Memory (xLSTM) model, specifically designed for real-time congestion prediction and proactive police dispatch support. Utilizing a real-world dataset collected from over 300 vehicle detector (VD) sensors, the proposed model integrates vehicle volume, speed, and lane occupancy data at five-minute intervals. Methodologically, the xLSTM model incorporates matrix-based memory cells and exponential gating mechanisms to enhance spatio-temporal learning capabilities. Model performance is evaluated using multiple metrics, including congestion classification accuracy, F1-score, MAE, RMSE, and inference latency. The xLSTM model achieves a congestion prediction accuracy of 87.3%, an F1-score of 0.882, and an average inference latency of 41.2 milliseconds—outperforming baseline LSTM, GRU, and Transformer-based models in both accuracy and speed. These results validate the system’s suitability for real-time deployment in police control centers, where timely prediction of traffic congestion enables anticipatory patrol allocation and dynamic signal adjustment. By bridging AI-driven forecasting with public safety operations, this research contributes a validated and scalable approach to intelligent transportation governance, enhancing the responsiveness of urban mobility systems and advancing smart city initiatives.
Huang et al. (Mon,) studied this question.