With the aim of optimizing the subway train operation diagram and improving the subway transportation capacity,a lo-cal adjustment model for the operation diagram of additional subway trains based on passenger flow analysis is designed.This model u-tilizes the adaptive K-nearest neighbor algorithm to obtain the passenger flow of the subway at different time periods.Based on it,a local adjustment model objective function is established for the train operation diagram of the newly added subway,with the minimum passenger waiting time,minimum total train operation time,etc.Then,the model objective function constraints are set from the di-mensions of train stop time,train capacity,etc,Using an improved adaptive genetic algorithm to solve the objective function of the lo-cal adjustment model for subway train operation diagram,and output the local adjustment results of the train operation diagram.The experiment shows that the model has high accuracy in analyzing subway passenger flow,and can effectively adjust the local operation diagram of additional subway trains.While ensuring the total train operation time,it greatly reduces the total passenger travel time,average waiting time,and other factors.The application effect is significant.