[Paper Review] Clustering Algorithms to Analyze the Road Traffic Crashes
This paper proposes DBSCAN and OPTICS as superior clustering algorithms for identifying road traffic accident hotspots, overcoming limitations of traditional methods like K-means. Using real North Carolina crash data, the study demonstrates that DBSCAN and OPTICS outperform other algorithms in clustering quality and efficiency, with DBSCAN showing significantly faster execution time while maintaining high silhouette and Davies-Bouldin scores.
Selecting an appropriate clustering method as well as an optimal number of clusters in road accident data is at times confusing and difficult. This paper analyzes shortcomings of different existing techniques applied to cluster accident-prone areas and recommends using Density-Based Spatial Clustering of Applications with Noise (DBSCAN) and Ordering Points To Identify the Clustering Structure (OPTICS) to overcome them. Comparative performance analysis based on real-life data on the recorded cases of road accidents in North Carolina also show more effectiveness and efficiency achieved by these algorithms.
Motivation & Objective
- To address the limitations of existing clustering algorithms in identifying accident-prone areas, particularly their sensitivity to outliers and the need to predefine the number of clusters.
- To evaluate the effectiveness of density-based clustering algorithms—DBSCAN and OPTICS—compared to partitioning methods like K-means in real-world traffic crash data.
- To provide a robust, data-driven approach for identifying high-frequency accident clusters to support targeted safety interventions.
- To compare clustering performance using internal validation metrics and execution time, offering practical guidance for researchers and practitioners.
Proposed method
- Applied DBSCAN and OPTICS, density-based clustering algorithms that automatically determine the number of clusters and handle outliers effectively.
- Used the Calinski-Harabasz Index, Davies-Bouldin Index, and Silhouette Coefficient to evaluate internal cluster validity and quality.
- Measured execution time using Python’s timeit module on a Core i3 processor with 8GB RAM to compare computational efficiency.
- Evaluated performance on a real dataset of 21,854 road traffic crash records from North Carolina (2007–2018), focusing on spatial clustering of accident locations.
- Implemented K-means and Mini-Batch K-means for comparative analysis, using predefined cluster counts to assess sensitivity to parameter selection.
- Ranked clusters by size and analyzed consistency across algorithms to assess reliability in identifying the most accident-prone regions.

Experimental results
Research questions
- RQ1How do DBSCAN and OPTICS compare to K-means and Mini-Batch K-means in identifying meaningful accident-prone clusters in real traffic crash data?
- RQ2What is the impact of predefined cluster numbers on clustering performance, and how do density-based algorithms mitigate this issue?
- RQ3Which clustering algorithm achieves the highest internal validation scores (Silhouette, Davies-Bouldin, Calinski-Harabasz) for traffic crash data?
- RQ4How does execution time vary across algorithms, and which offers the best balance of speed and accuracy for large-scale crash data analysis?
Key findings
- DBSCAN achieved the highest Silhouette Coefficient (0.62) and lowest Davies-Bouldin Index (0.68), indicating superior cluster compactness and separation compared to other algorithms.
- OPTICS slightly outperformed DBSCAN on the Calinski-Harabasz Index (12.3 vs. 11.8), though the difference was considered negligible.
- DBSCAN executed in 1.626 seconds for 10,000 records, significantly faster than OPTICS, which took 13.349 seconds on the same dataset.
- For 21,854 records, DBSCAN required 5.091 seconds, while OPTICS took 43.675 seconds, demonstrating DBSCAN’s superior computational efficiency.
- The largest cluster in DBSCAN contained 5,435 data points, closely matching OPTICS (5,435), indicating consistent hotspot identification despite different execution times.
- K-means and Mini-Batch K-means produced inconsistent largest cluster sizes (8,519 and 8,521 respectively), suggesting sensitivity to initial cluster count and instability in hotspot detection.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.