To alleviate the contradiction between limited traffic police resources and the untimely handling of road traffic accidents,a traffic police resource optimization allocation approach was proposed based on a queuing theory model under a grid management mode of roads.Firstly,license plate recognition data obtained from the city's road network bayonet system was used to extract historical travel trajectories of vehicles and develop a similarity model between road segments.Secondly,the spectral clustering algorithm was adopted to cluster the road segments and form a set with the highest association between the segments,serving as the result of the road network division.Then,for the real-time traffic accidents within the grid,a queuing theory model was further proposed to calculate the minimum number of police officers required for each grid,along with an optimized allocation scheme for police resources.Finally,the proposed method was validated in Yinzhou District of Ningbo City.The results showed that the proposed optimization method for police allocation reduced the number of police officers by 18.18%and patrol mileage by 10.87%compared to the traditional method of dispatching police officers as soon as an accident occurs.Furthermore,the proposed method increased the accident handling response speed by 10.68%,demonstrating excellent optimization performance.