In recent years, urban traffic safety issues have increasingly garnered widespread attention, as traffic accidents pose significant threats to the safety of people's lives and properties. Driver's abnormal driving behaviors often occur in conjunction with traffic accidents, and the quantity of abnormal driving behavior data is significantly larger than that of accident data, making it a more comprehensive reflection of driving conditions and deserving in-depth analysis. Existing research rarely matches abnormal driving behavior data with map coordinates, and there is limited use of visualization methods to display the distribution of data points. This paper proposes an improved DBSCAN clustering algorithm based on abnormal driving behavior data and utilizes the minimum spanning tree algorithm to calculate the density of each clustering cluster. By computing the density of the clustering clusters, we can better understand the spatial distribution characteristics of abnormal driving behaviors, further analyze the degree of clustering of these clusters, and study the distribution of abnormal driving behavior.