The document proposes a method for traffic flow prediction using KNN and LSTM. KNN is used to select neighboring stations that are spatially correlated with the test station. A two-layer LSTM network then predicts traffic flow in the selected stations. The predictions are combined using weighted averaging to obtain the final prediction for the test station. An experiment on traffic data from Minnesota highways found the proposed method improved prediction accuracy over ARIMA, SVR, WNN, DBN-SVR, and LSTM-only models, achieving on average a 12.59% reduction in error.