Skip to Content
Applied SciencesApplied Sciences
  • Article
  • Open Access

27 November 2026

36 Pages

LLM-Assisted Spatio-Temporal Analysis of Traffic Accidents: A Case Study of Trabzon

Department of Geomatics Engineering, Karadeniz Technical University, Trabzon 61000, Türkiye

Abstract

This study integrates spatial statistics, interpretable machine learning, and evidence-constrained large language model (LLM) interpretation to examine police-recorded traffic crashes in Trabzon, Türkiye (2023–2024). From 3486 reported records, 3478 geographically validated observations were retained for spatial analyses. Kernel density estimation (KDE), density-based spatial clustering of applications with noise (DBSCAN), Moran’s I, and Getis–Ord Gi* characterized crash concentrations and spatial dependence. A 35-feature geographic information system (GIS)-enhanced CatBoost classifier was compared with a 27-feature baseline for recorded crash-type classification, with Shapley additive explanations (SHAP) used for interpretability. GPT-6 synthesized 46 source-linked evidence statements; the response underwent 57 claim-level checks and evaluation by one independent, non-blinded GIS specialist. KDE used a cross-validated 250 m bandwidth, while DBSCAN identified 121 clusters at 50 m and MinPts = 5. Global Moran’s I was 0.447 (p = 0.001); false-discovery-rate-adjusted analyses identified 134 High–High cells and 150 Gi* hot-spot cells. CatBoost macro F1 increased from 0.581 to 0.620 on a previously examined random test split, whereas temporal evaluation yielded 0.571. The specialist rated the LLM response 271/300 (4.52/5). The framework enables traceable synthesis and conditional safety screening without establishing exposure-adjusted crash risk, causal effects, or generalizable LLM accuracy.

1. Introduction

According to the World Health Organization (WHO) [1] reports, road traffic accidents rank among the leading causes of mortality, particularly among the younger demographic. Characterized by a dense road network, Türkiye is notably among the countries experiencing a high frequency of such accidents. These incidents not only result in the tragic loss of human life but also impose severe socio-economic burdens.
Over the past decade in Türkiye, road traffic accidents have claimed the lives of 62,761 individuals and resulted in injuries to 3,024,470 people. In 2024, a total of 1,444,026 traffic accidents were recorded across the national road network. Of these occurrences, 1,177,172 resulted solely in property damage, while 266,854 were classified as fatal or injury-involved accidents. Throughout 2024, traffic collisions accounted for 6351 fatalities and 385,117 injuries. Among the 266,854 fatal and injury-involved accidents reported in 2024, 2713 victims died at the scene of the crash, whereas 3638 individuals succumbed to accident-related complications within 30 days following their admission to healthcare facilities [2].
Due to its unique topography, adverse weather conditions, and the presence of a major transportation corridor bearing heavy traffic volumes, such as the Black Sea Coastal Highway, Trabzon Province constitutes a distinctive study area in the context of traffic safety. A precise analysis of the region’s traffic flow dynamics is of paramount importance for the development of preventive measures aimed at mitigating the loss of life and property. Official statistics underscore the critical urgency of this issue. According to data published by the Turkish Statistical Institute (TurkStat) [2], a total of 2152 traffic accidents classified as fatal and injury-involved accidents within the provincial borders of Trabzon in 2024. These collisions resulted in a total of 47 fatalities and 3104 injuries.
Intelligent Transport Systems (ITS) rely on data-driven methods to support traffic safety monitoring and evidence-based decision-making. In this context, integrating spatial analysis, machine learning and explainable artificial intelligence can transform historical crash records into actionable information for identifying priority locations and planning preventive interventions. Lian et al. [3] integrated machine-learning-based flight arrival predictions with airport gate assignment optimization, demonstrating how predictive outputs can be translated into operational decision-making. Similarly, the present study emphasizes the integration of analytical findings into ITS-oriented decision support.
Traffic accidents constitute one of the most critical challenges impacting urban transportation safety. The failure to accurately determine the spatial concentration of these incidents complicates the identification of priority zones for traffic safety interventions. Consequently, it is essential to investigate whether collisions cluster along specific road segments, at intersections, or within dense traffic zones.
Traditionally, traffic accidents are evaluated primarily on the basis of aggregate numerical data. However, assessments conducted without accounting for the spatial location, outcomes, time of occurrence, environmental conditions, and road characteristics impede the accurate interpretation of these events. Therefore, it is imperative to evaluate traffic accidents through comprehensive spatio-temporal analyses and to systematically investigate their contributing factors. The spatio-temporal analysis of traffic accidents constitutes a crucial research domain for both transportation safety and urban planning. The existing literature emphasizes that assessing traffic accidents solely on the basis of aggregate crash frequencies is inadequate. Instead, more robust and meaningful conclusions can be drawn when the spatial locations, time intervals, road characteristics, and environmental conditions of these incidents are examined comprehensively. Consequently, Geographic Information Systems (GIS) and spatial statistical methods [4,5,6,7,8,9,10,11], data mining techniques and machine learning models [12,13,14,15,16,17] are extensively utilized in the analysis of traffic accidents.
Beyond identifying spatial concentrations and modeling crash characteristics, an important challenge in traffic safety research is the consistent interpretation of findings obtained from different analytical methods. Spatial density estimation, clustering, spatial autocorrelation statistics, and machine-learning models address different research questions and may produce results that cannot be interpreted interchangeably. In particular, concentrations of recorded traffic crashes should not automatically be regarded as exposure-adjusted risk estimates, while predictive feature importance should not be interpreted as evidence of causality. Integrating these findings into coherent and scientifically defensible interpretations therefore requires careful consideration of methodological assumptions, statistical evidence, and analytical limitations.
Large Language Models (LLMs) [18] have recently attracted increasing attention in transportation research, particularly for processing accident narratives, extracting contextual information, and supporting analytical interpretation [19,20,21,22,23,24]. Beyond text extraction, LLMs may also assist researchers in organizing independently generated analytical outputs and identifying potentially unsupported interpretations. However, the scientific reliability of such applications cannot be assumed solely from the plausibility or fluency of the generated text. Transparent documentation, evidence traceability, and expert evaluation are essential for assessing their potential contribution. Accordingly, the present study employs an evidence-constrained LLM approach in which externally computed geospatial and machine-learning findings are synthesized through a documented prompt and subsequently examined using structured source-concordance checks and independent expert assessment.
An additional contribution of this study is the quantitative evaluation of the predictive value of historical road-network characteristics in traffic crash-type classification. By comparing conventional accident-record-based CatBoost models with GIS-enhanced configurations incorporating OpenStreetMap-derived features, the study assesses whether geographical context provides additional predictive information beyond the original roadway, environmental, infrastructural, and temporal attributes.
The remainder of this paper is organized as follows. Section 2 reviews previous studies on GIS-based traffic accident analysis, machine learning, and LLM-assisted interpretation. Section 3 describes the study area, accident dataset, analytical methods, and the proposed ITS-oriented decision-support framework. Section 4 presents the results of spatial and temporal analyses, CatBoost classification, SHAP interpretation, and evidence-constrained LLM validation. Section 5 discusses the main findings, methodological implications, and study limitations. Finally, Section 6 summarizes the principal conclusions and outlines directions for future research.

3. Materials and Methods

In this study, the Python 3 programming language was utilized within the Google Colab environment for data manipulation, all analytical procedures, and visualization processes. Specifically, the Pandas and NumPy libraries were employed for data processing, whereas GeoPandas and various GIS-based tools were utilized for geospatial operations. Furthermore, the Matplotlib 3.10.0 and Folium 0.20.0 libraries were leveraged for generating graphs and cartographic visualizations. The Scikit-learn library was implemented to execute the machine learning analyses. Finally, Microsoft Excel was used for structuring the data tables and compiling the results for reporting.

3.1. Study Area

This study aims to characterize the spatial and temporal distributions of recorded traffic accidents in Trabzon Province during 2023–2024, identify areas of elevated accident concentration, and provide preliminary evidence for subsequent traffic safety investigations. Trabzon Province, located in northeastern Türkiye, was selected as the study area. Covering an area of 4664 km2, Trabzon is situated on the north-facing slopes of the Kalkanlı mountainous massif, located in the central part of the arc formed by the Eastern Black Sea Mountains, between 38°30′–40°30′ east longitudes and 40°30′–41°30′ north latitudes, and along the southern coast of the Black Sea [27]. The region’s mountainous topography also highlights the importance of terrain-related considerations in geodetic studies. In this context, Yilmaz [28] demonstrated that variations in topographic density can significantly affect precise geoid determination in mountainous regions, emphasizing the importance of accounting for terrain characteristics in geodetic modelling. Considering the topographic characteristics of Trabzon, the transportation network developed along the coastline, and the high traffic density in and around the city center, traffic accidents are intended to be evaluated in conjunction with their spatial and environmental influencing factors. Figure 1 illustrates the geographical location of study area (Trabzon) and the spatial distribution of road traffic accidents during the 2023–2024 period.
Figure 1. Administrative boundary of Trabzon Province and locations of traffic accidents in 2023–2024.

3.2. Data Description

Within the scope of this study, road traffic accident records for the central and surrounding districts of Trabzon Province, covering the years 2023 and 2024, were obtained with official permission from the General Directorate of Security [29] of the Ministry of Interior of Türkiye and represent crashes recorded within police jurisdiction. In contrast, as noted in the Introduction, the official statistics published by TurkStat combine accident records from both the General Directorate of Security and the Gendarmerie General Command. The acquired dataset, provided in Excel format, comprises a total of 3486 accident records, with 1602 incidents occurring in 2023 and 1884 in 2024. The relative increase in the number of accidents in 2024 compared to the previous year underscores the necessity for a more comprehensive analysis of accident-concentration areas regarding traffic safety and the underlying factors contributing to accident occurrences within the study area. For the CatBoost-based crash-type classification analysis, a cleaned dataset comprising 3479 accident records was used. During the preliminary data-cleaning stage, seven accident records were excluded following visual inspection of their mapped locations, which revealed geographically implausible positions relative to the study area. These inconsistencies were considered potential coordinate-entry or georeferencing errors. Rather than introducing unverified coordinate corrections, the affected records were excluded from the cleaned analytical dataset. This classification dataset was distinguished from the original accident inventory and the coordinate-validated dataset used for spatial statistical analyses.
The historical traffic accident records encompass a comprehensive set of variables, including year, time, province, district, longitude, latitude, date, settlement status, neighborhood/village, road type, surface material, road classification, speed limit, road name, geometric characteristics (horizontal, vertical, intersection, crossing, and other alignments), daylight conditions, weather conditions, road surface state, first aid response, accident type, number of vehicles involved, initial collision type, road defects, roadwork signage, road width, guardrails, sidewalks, emergency lanes, lane markings, traffic signs, traffic signals, lighting conditions, presence of traffic officers, visual obstructions, damage factors, previous accident ID, fatalities (driver, passenger, pedestrian, and total), injuries (driver, passenger, pedestrian, and total), accident severity status (fatal or injury), and day of the week.
An analysis of the monthly accident distribution reveals that the incidents are not uniformly distributed throughout the year. As illustrated in Figure 2, the number of accidents peaked in August with 380 recorded cases, closely followed by July with 338 cases. Conversely, the lowest frequency of accidents was observed in March, with 217 incidents. The higher number of recorded crashes during the summer months may be associated with seasonal variations in travel demand and mobility; however, these potential explanations could not be directly evaluated because traffic exposure data were unavailable.
Figure 2. Number of Traffic Accidents by Month.
An examination of the hourly distribution of traffic accidents reveals that incidents predominantly occur during the daytime and late afternoon hours, as illustrated in Figure 3. Accidents reached their peak at 16:00 with 299 recorded cases, followed closely by 263 cases at 18:00. Conversely, accident frequencies were observed to be significantly lower during the nighttime and early morning hours, dropping to a minimum of just 14 cases at 04:00. The hourly distribution indicates a higher frequency of recorded crashes during the afternoon and early evening; however, without hourly traffic-volume measurements, these observations cannot establish whether the corresponding periods are associated with higher exposure-adjusted crash risk.
Figure 3. Hourly Distribution of Traffic Accidents.
An analysis of the spatial distribution of accidents by district reveals a heavy concentration of incidents in the Ortahisar district. With 1834 recorded accidents, this figure is significantly higher than those of all other districts. Ortahisar is followed by Akçaabat, which recorded 461 accidents. These findings indicate that accident density is particularly pronounced in the Trabzon city center and along the primary coastal transportation corridor.
Higher accident counts were observed in several densely developed urban neighborhoods. As depicted in Figure 4, the Kalkınma neighborhood recorded the highest number of accidents with 153 cases, followed by the Merkez neighborhood with 113 cases. Furthermore, high accident frequencies were also observed in the Yaylacık, Sanayi, 1 Nolu Beşirli, Cumhuriyet, and 2 Nolu Beşirli neighborhoods. This pattern indicates that spatial clustering of accidents occurs not only at the district level but is also highly localized at the neighborhood scale. Consequently, the city center, university vicinities, industrial zones, coastal highway connections, and dense residential areas emerged as areas with relatively high recorded accident counts.
Figure 4. Number of traffic accidents by neighborhood.
An analysis of accident distribution based on weather conditions reveals that the vast majority of incidents (2822 cases) occurred under clear weather conditions. Conversely, accident frequencies during adverse weather such as snow, fog/smog, sleet, and strong winds were notably lower. These figures represent absolute crash frequencies under the recorded weather conditions and should not be interpreted as evidence of higher or lower crash risk, since weather-specific traffic exposure measures were unavailable.
Regarding road surface conditions, the significant majority of accidents (2748 cases) took place on dry road surfaces. The number of accidents on icy, snowy, flooded/waterlogged, and other slippery surfaces was considerably lower. The predominance of crashes on dry road surfaces should not be interpreted as evidence that dry conditions are inherently more hazardous, since the relative exposure to different road-surface conditions was not available for comparison.
Overall, the analysis of traffic accidents in Trabzon Province for the years 2023 and 2024 demonstrates distinct distribution patterns across spatio-temporal and environmental variables. Incidents were particularly prevalent in 2024, during the summer months, in the afternoon and late afternoon hours, specifically within the Ortahisar district and neighborhoods associated with the city center. In terms of weather and road surfaces, it was determined that the overwhelming majority of crashes occurred under clear skies and dry road conditions. These findings underscore that traffic accidents are not solely dependent on adverse weather or poor road conditions. These observed distributions may reflect a combination of traffic exposure, travel demand, roadway characteristics, and driver-related factors. However, the independent contributions of these factors could not be established using the available data.

3.3. Analytical Methods

3.3.1. Kernel Density Estimation

KDE transforms point data into a continuous density surface, thereby illustrating the spatial concentration of events [9]. Each accident location is treated as an individual observation, and a density surface is generated by calculating density values within a specified distance around each accident point. Areas characterized by high density values are subsequently mapped as high accident-concentration areas. In traffic accident studies, this method is commonly employed to examine whether accident locations exhibit spatial clustering and to identify potential hotspot areas [4,30]. One of the principal advantages of KDE is its ability to generate a density surface based on the inherent spatial structure of the data without requiring any prior assumptions regarding the underlying distribution [31].
KDE was employed to characterize the continuous spatial concentration of traffic accident locations across Trabzon Province. To ensure spatial consistency, the cleaned georeferenced accident records were subjected to a coordinate-quality assessment using the provincial boundary geometry. A 500 m boundary tolerance was applied to accommodate potential spatial discrepancies in coastal areas. Consequently, 117 records located within this tolerance were retained and flagged, while one record beyond the tolerance was excluded. A total of 3478 accident locations were included in the final KDE analysis.
Geographic coordinates were transformed from WGS 84 (EPSG:4326) to WGS 84/UTM Zone 37N (EPSG:32637), enabling distance-based calculations in metres. A Gaussian kernel function was employed to estimate spatial accident intensity. Because bandwidth selection substantially influences the smoothness and spatial resolution of the estimated density surface, 13 candidate bandwidths (100, 150, 200, 250, 300, 400, 500, 650, 800, 1000, 1250, 1500, and 2000 m) were evaluated using five-fold cross-validation with a fixed random seed of 42. The bandwidth maximizing the cross-validated log-likelihood was selected, resulting in an optimal bandwidth of 250 m. The final Gaussian KDE model was fitted using the retained accident locations and evaluated over a regular 100 × 100 m grid. Because the normalized two-dimensional KDE probability density is expressed in m−2, estimated crash intensity was calculated as λ ^ ( s ) = N × f ^ ( s ) × 10 6 , where N = 3478 is the number of geographically validated crash observations and f ^ ( s ) denotes the estimated probability density at locations. The resulting values are expressed as recorded crashes per square kilometre and do not represent traffic-exposure-adjusted risk.
Bandwidth sensitivity was evaluated by comparing KDE surfaces generated with bandwidths of 250, 300, 400, 500, and 650 m. Spearman’s rank correlation coefficient was used to assess similarities in spatial intensity patterns, while the Jaccard similarity index quantified the overlap between cells belonging to the highest 10% of estimated accident intensities on a common 500 m reference grid. KDE was employed as a descriptive method for identifying areas of concentrated accident occurrence rather than exposure-adjusted crash risk, whereas the statistical significance of spatial clustering was assessed separately using Global Moran’s I, LISA, and Getis–Ord Gi*.

3.3.2. DBSCAN

One of the methods used to examine the spatial clustering patterns of traffic accidents is the DBSCAN algorithm. DBSCAN is a density-based clustering method that groups data points according to their spatial density relationships [32]. In this approach, points located within a sufficiently dense neighborhood are assigned to the same cluster, whereas points that do not belong to any cluster are classified as noise. The algorithm operates based on two parameters: Eps and MinPts. Eps represents the neighborhood distance considered around a given point, while MinPts specifies the minimum number of points required within that distance. Based on these two parameters, accident locations are classified as core, border or noise points [32,33,34]. In this study, DBSCAN was employed to identify the areas in which accident locations form density-based clusters across Trabzon Province. The DBSCAN analysis was conducted using the same geographically validated dataset of 3478 traffic accident locations employed in the KDE analysis. Geographic coordinates referenced to WGS84 (EPSG:4326) were converted from degrees to radians, and spatial distances were calculated using the Haversine metric. DBSCAN was implemented using the scikit-learn library with the Ball Tree algorithm. The reference configuration was defined by a neighborhood distance (ε) of 50 m and a minimum number of points (MinPts) of five. Under this configuration, a core point was required to have at least five accident locations, including itself, within its 50 m neighborhood. An additional configuration with ε = 100 m and MinPts = 5 was examined to evaluate changes in the spatial clustering structure resulting from an increased neighborhood distance.
To assess the sensitivity of DBSCAN results to parameter selection, six neighborhood distances (ε = 50, 75, 100, 125, 150, and 200 m) and three minimum-point thresholds (MinPts = 4, 5, and 8) were systematically evaluated, resulting in 18 parameter combinations. A fifth-nearest-neighbor distance plot was also examined as a supplementary diagnostic for assessing neighborhood-distance choices, rather than as definitive evidence of a uniquely optimal parameter value. For each configuration, the number of clusters, the number and proportion of clustered accident locations, and the proportion of unclustered points classified as noise were calculated. Changes in cluster membership relative to the reference configuration (ε = 50 m; MinPts = 5) were further evaluated using the Jaccard similarity coefficient and the Adjusted Rand Index (ARI). This sensitivity analysis was performed to quantify the dependence of the identified accident clusters on parameter selection and to evaluate the robustness of the observed spatial clustering patterns.
For cartographic visualization, each identified DBSCAN cluster was additionally represented by a circle centered on the mean geographic coordinates of its member accident locations. The visualization radius was defined as the greater of the specified neighborhood distance (ε) and the maximum distance between the cluster center and its member points. These circles were used solely to illustrate the approximate spatial extent of individual clusters and should not be interpreted as exact DBSCAN cluster boundaries.

3.3.3. Spatial Autocorrelation

Spatial autocorrelation analysis [35] was employed to assess whether the spatial distribution of recorded traffic accident counts exhibited statistically significant associations across neighboring geographical units. Global Moran’s I was used to evaluate the overall degree of spatial autocorrelation, while Local Moran’s I (Local Indicators of Spatial Association, LISA) and Getis–Ord Gi* [36,37] were applied to characterize local patterns of spatial association and accident concentration. Unlike point-based clustering approaches, these statistics were calculated using accident counts aggregated into regular spatial grid cells. The analysis incorporated the same 3478 geographically validated accident records used in the KDE and DBSCAN analyses. The accident coordinates were transformed from WGS84 (EPSG:4326) to the WGS84/UTM Zone 37N projected coordinate system (EPSG:32637), enabling the construction of spatial analysis units in metric coordinates.
A regular grid with a cell size of 250 × 250 m was adopted as the reference analytical configuration. To preserve the spatial context surrounding recorded accident occurrences, zero-accident cells located within a 1000 m Euclidean distance of accident-containing grid cells were retained. This distance was calculated between grid-cell centers rather than directly from individual accident points. The resulting analysis area was restricted to cells having a positive-area intersection with the Trabzon provincial land boundary, thereby excluding cells located entirely outside the province, including offshore cells. Accident records previously retained under the 500 m provincial-boundary coordinate tolerance were preserved. Where a validated accident location fell within a grid square having no intersection with the provincial land polygon, its contribution to the aggregated accident count was assigned to the nearest eligible land-intersecting cell, without modifying the original accident coordinates. This procedure maintained the complete set of validated accident observations while avoiding the inclusion of offshore grid cells in the spatial statistical analyses.
Spatial relationships among grid cells were defined using first-order Queen contiguity, whereby cells sharing either an edge or a vertex were considered neighbors. For Global Moran’s I and Local Moran’s I, a row-standardized spatial-weight matrix was employed, excluding each focal cell from its own neighborhood. For Getis–Ord Gi*, binary spatial weights were used, with the focal cell included in the local neighborhood as required by the Gi* formulation. Global Moran’s I was calculated to determine whether accident counts exhibited positive or negative spatial autocorrelation across the study area. Its statistical significance was assessed using 999 random permutations of the grid-cell accident counts while holding the spatial-weight structure fixed. A fixed random seed of 42 was applied to support reproducibility. Positive spatial autocorrelation was evaluated using an upper-tailed permutation test, and the permutation-based standardized test statistic was calculated relative to the simulated null distribution.
Local spatial associations were evaluated using Local Moran’s I and Getis–Ord Gi* statistics. Local Moran’s I values and spatial-association quadrants were calculated to distinguish High–High (HH), Low–Low (LL), High–Low (HL), and Low–High (LH) patterns [37]. For local statistical inference, an exact conditional randomization procedure was implemented instead of relying on conventional Monte Carlo pseudo-p-values. Specifically, the observed accident count of each focal cell was held fixed, while the values assigned to its neighboring cells were evaluated under sampling without replacement from the remaining grid-cell counts. The exact finite-population distribution of the neighborhood accident-count sum was calculated using combinatorial enumeration based on the frequency distribution of cell counts. Conservative two-sided probabilities were obtained from the smaller of the inclusive lower- and upper-tail probabilities, multiplied by two and bounded at one. This procedure explicitly accounted for repeated and zero accident-count values, which were particularly prevalent in the dataset. The resulting probability calculations were additionally assessed using independent Monte Carlo simulations and analytical checks of zero-count neighborhood probabilities. Because the conditional significance calculations for Local Moran’s I and Getis–Ord Gi* were based on the same neighborhood-count distribution, their local significance results were not treated as statistically independent confirmations, although the two statistics provide different interpretations of spatial association.
To address the multiple-testing problem associated with evaluating a large number of grid cells, the Benjamini–Hochberg false discovery rate (BH-FDR) procedure was applied separately to the local p-values obtained from LISA and Getis–Ord Gi* [38]. A corrected significance threshold of 0.05 was adopted for the principal local analyses, while a threshold of 0.10 was considered exploratory. The Getis–Ord Gi* maps distinguished positive and negative local associations according to corrected probability thresholds of 0.01, 0.05, and 0.10, with the latter interpreted as exploratory evidence. In addition, a spatial-support sensitivity analysis was conducted using four combinations of grid-cell size (250 and 500 m) and zero-accident cell inclusion distance (500 and 1000 m). Global Moran’s I values and the numbers of significant local associations were compared across configurations to assess the dependence of the detected spatial patterns on analytical resolution and study-area definition. The resulting spatial associations were interpreted as characteristics of recorded accident concentrations rather than direct estimates of exposure-adjusted crash risk.

3.3.4. CatBoost and SHAP

CatBoost [39,40] was employed to classify traffic accidents into three categories: Vehicle-to-Vehicle Collision, Pedestrian Collision, and Single-Vehicle/Other Crash. Two predictor configurations were developed to investigate the incremental contribution of geographical information. The baseline model comprised 27 engineered features derived from the original accident records, representing roadway, infrastructural, geometric, environmental, and temporal characteristics. The GIS-enhanced model incorporated eight additional predictors extracted from the historical OpenStreetMap (OSM) road network, resulting in a total of 35 features. Variables directly revealing crash type, post-crash outcomes, and exact geographic identifiers were excluded from the classification inputs.
Historical OSM road-network data were obtained using a snapshot dated 31 December 2022. Spatial processing was performed in the WGS 84/UTM Zone 37N coordinate reference system (EPSG:32637). The additional GIS predictors included distance to the nearest drivable road, OSM road classification, mapped lane count, mapped speed limit, one-way road status, distance to the nearest topological junction, and counts of network junctions within 250 m and 500 m of each accident location. The junction indicators were derived from simplified road-network topology and therefore represent approximate network characteristics rather than independently surveyed intersection inventories. Missing OSM attributes were retained as missing or unknown values.
The dataset was divided into stratified training (80%) and test (20%) subsets using a fixed random seed of 42. Model selection was conducted exclusively within the training subset using five-fold stratified cross-validation. Ten predefined CatBoost parameter configurations were evaluated for each feature set, considering boosting iterations, tree depth, learning rate, regularization, random strength, bagging temperature, and class-weighting strength. Early stopping with a patience of 70 boosting rounds was applied during cross-validation. The model-selection criterion combined macro F1-score (70%), balanced accuracy (20%), and multiclass one-vs-rest macro ROC-AUC (10%). The selected configurations were subsequently trained on the complete training subset and evaluated on the common test subset. Additional temporal validation was performed by selecting and training the models using 2023 observations and evaluating their performance on 2024 records. The common test subset comprised 340 vehicle-to-vehicle collisions, 153 pedestrian collisions, and 203 single-vehicle/other crashes (n = 696). Given the unequal representation of crash categories, model performance was additionally examined using macro-averaged metrics and class-specific precision, recall, and F1-scores rather than relying exclusively on overall accuracy.
SHapley Additive exPlanations (SHAP) [41] were used to interpret the fitted CatBoost model. SHAP values were calculated on the common test subset, and global feature importance was obtained by averaging absolute SHAP values across observations and crash classes. Related engineered variables were grouped into broader traffic-related factors, and their relative importance values were normalized to sum to 100%. Class-specific SHAP summaries were also calculated. These values represent contributions to the model’s predictions and should not be interpreted as causal relationships between roadway characteristics and traffic accident occurrence.
The mean absolute SHAP values of the variables belonging to each traffic factor were summed, and their relative importance was calculated by dividing each grouped SHAP value by the sum of all grouped SHAP values and multiplying by 100. Consequently, the grouped relative SHAP importance values sum to 100%, enabling direct comparison of the relative contribution of roadway, infrastructural, temporal, and environmental factors to crash-type classification. Among the 35 input features, four temporal predictors were combined under “Time of day” and two monthly predictors under “Month/season”, while the remaining 29 predictors were retained as individual factors, resulting in 31 grouped SHAP factors. The complete mapping of input features to SHAP factors, together with their relative importance values, is provided in Supplementary Table S2 (Supplementary File S6).

3.3.5. Large Language Models and Evidence-Constrained Validation

Large language models (LLMs) [42] can support the interpretation of complex analytical findings by integrating information obtained from multiple computational methods into coherent, evidence-based narratives. Recent studies have evaluated LLM performance through structured expert assessments of scientific interpretation and GIS-related analytical tasks [25,26]. Building on these evaluation principles, the present study employed an evidence-constrained LLM framework to synthesize and critically interpret the outputs of spatial statistical analyses and interpretable machine learning.
OpenAI’s ChatGPT (GPT-6) was used to generate the revised scientific synthesis on 7 November 2026. A fixed English-language prompt was constructed using 46 source-linked aggregate evidence statements extracted from the KDE, DBSCAN, Global Moran’s I, Local Moran’s I (LISA), Getis–Ord Gi*, CatBoost, and SHAP analyses. Each statement was assigned an evidence identifier to facilitate traceability to the archived analytical results. The LLM was instructed to distinguish recorded crash concentrations from exposure-adjusted traffic accident risk, avoid unsupported causal interpretations, identify methodological limitations, and formulate conditional recommendations for subsequent traffic safety investigations. The model did not perform the original geospatial calculations, train the machine learning classifier, or estimate the effectiveness of engineering interventions. The complete prompt, evidence records, and unmodified LLM response were archived to facilitate methodological transparency, evidence traceability, and retrospective examination of the generated interpretations. API-level decoding parameters and an immutable model snapshot identifier were not recorded; therefore, exact deterministic reproduction of the generated response cannot be guaranteed. The archived materials are intended to support procedural transparency, evidence traceability, and independent examination of the documented output.
The generated response was examined through a structured validation protocol comprising two complementary components. First, an internal evidence-concordance audit assessed the consistency of the LLM-generated statements with the archived analytical evidence. This procedure included 57 claim-level checks and verification of the evidence identifiers cited in the response. The audit distinguished directly supported statements, methodologically consistent interpretations, conditional recommendations, appropriate acknowledgments of uncertainty, and reporting omissions. These categories were used for descriptive verification rather than as independent test instances or a conventional predictive accuracy metric.
Second, the LLM-generated interpretations were independently evaluated by an external GIS specialist with 21 years of self-reported professional experience who declared no authorship involvement or conflicts of interest. The assessment comprised 12 structured evaluation tasks covering individual analytical methods, integrated spatial interpretation, evidence-based road safety recommendations, identification of unsupported scientific claims, reproducibility, and overall scientific contribution. Five dimensions were assessed for each task: scientific accuracy, spatial correctness, methodological accuracy, evidence grounding, and traffic safety applicability. Each dimension was scored using a five-point ordinal scale ranging from 1 (very poor) to 5 (very good), resulting in 60 ratings and a maximum attainable total of 300 points. The evaluation design was informed by published multi-criteria LLM assessment and GIS expert-validation approaches, with adaptations for traffic safety interpretation.
The independent assessor evaluated the archived GPT-6 response and the accompanying evidence summaries without access to the manuscript author’s previous ratings. The author’s self-assessment was excluded from the reported validation results. Because the assessor was aware of the model identity, the procedure was independent but not blinded. The assessment was restricted to a single recorded LLM response and did not constitute a direct comparison between human-authored and LLM-authored interpretations. Accordingly, the resulting expert scores were treated as descriptive measures of perceived scientific interpretation quality rather than estimates of generalizable model accuracy.

3.4. ITS-Oriented Traffic Safety Decision-Support Framework

The proposed Intelligent Transportation Systems (ITS)-oriented framework integrates geospatial analysis, interpretable machine learning, evidence-constrained LLM synthesis, and independent expert assessment into a structured workflow for retrospective traffic safety decision support. The framework consists of six interconnected stages: (1) data acquisition and quality control, (2) spatial and statistical analysis, (3) explainable crash-type classification, (4) evidence-constrained LLM interpretation, (5) verification of the generated interpretations, and (6) formulation of conditional traffic safety investigation priorities (Figure 5).
Figure 5. Conceptual ITS-oriented traffic safety decision-support framework integrating geospatial analysis, interpretable machine learning, evidence-constrained GPT-6 synthesis, internal evidence-concordance auditing, and independent expert assessment.
In the first stage, historical crash records and their associated spatial, temporal, environmental, and roadway attributes are prepared for analysis. In the second stage, KDE and DBSCAN characterize the spatial concentrations of recorded crashes, while Global Moran’s I, Local Moran’s I (LISA), and Getis–Ord Gi* assess spatial autocorrelation and local statistical patterns. In parallel, the machine-learning component evaluates the predictive contribution of OSM-derived road-network attributes by comparing a baseline CatBoost classifier with a GIS-enhanced CatBoost classifier under a consistent evaluation protocol. Both classifiers distinguish among three recorded crash-type categories, while SHAP is employed to explain the predictive contributions of the model’s input features.
The analytical findings are subsequently consolidated into a fixed set of 46 source-linked aggregate evidence statements and supplied to GPT-6 through a documented prompt. The LLM synthesizes the results across analytical methods, distinguishes descriptive spatial concentrations from exposure-adjusted crash risk, identifies unsupported scientific inferences, and proposes conditional questions for traffic safety investigations. The generated interpretations are then subjected to an internal source-concordance audit comprising 57 claim-level checks and a structured assessment by an independent GIS specialist using 12 evaluation tasks and five scoring dimensions. The specialist’s assessment is independent of the manuscript author but is not blinded to the LLM identity.
In the final stage, the evidence-linked interpretations and their documented limitations are used to identify candidate locations and issues for subsequent road safety audits. Recommendations remain conditional upon verification using traffic exposure, roadway geometry, pedestrian activity, observed operating conditions, and field investigations. The framework is therefore intended as an offline, research-oriented decision-support approach rather than an operational real-time ITS, an exposure-normalized crash-risk prediction system, or an automated mechanism for selecting and validating engineering interventions.

4. Results

4.1. Kernel Density Estimation Results

The KDE analysis revealed a pronounced spatial concentration of traffic accidents in the central urban area of Trabzon and along the major coastal transportation corridor (Figure 6 and Figure 7). The five-fold cross-validation procedure identified 250 m as the optimal Gaussian KDE bandwidth, yielding the highest mean validation log-likelihood (−12,882.04). Compared with the optimal bandwidth, the 500 m bandwidth produced a lower mean validation log-likelihood (−13,014.08).
Figure 6. KDE of recorded traffic accidents in the main accident concentration areas of Trabzon Province during 2023–2024, using a Gaussian kernel with an optimized bandwidth of 250 m. The map focuses on the coastal corridor and surrounding areas to improve the visualization of spatial accident concentrations.
Figure 7. KDE of recorded traffic accident locations in Ortahisar (central district of Trabzon) and its surrounding urban corridor, based on 2023–2024 accident records and using a Gaussian kernel with an optimal bandwidth of 250 m.
The bandwidth sensitivity analysis demonstrated substantial spatial consistency among the high accident-concentration areas. In particular, the top-decile Jaccard similarity between the 250 m and 500 m bandwidths was 0.910, while Spearman’s rank correlation coefficient was 0.888. These findings indicate that the principal spatial concentration patterns remained relatively stable across the examined bandwidths, although the degree of spatial smoothing varied.
The highest estimated accident intensity was observed in central Ortahisar. Particularly pronounced density concentrations were detected around the Cumhuriyet–Çarşı area, Kalkınma–Sanayi, and the İnönü–Fatih corridor. Additional high-density zones were observed toward the eastern parts of Ortahisar, including the Konaklar–Pelitli area. These results demonstrate that accident occurrence within the central district is characterized by several closely spaced concentrations rather than by a single isolated high-density location.
Outside the central urban area, substantial accident-density concentrations were identified along the coastal corridor, particularly in the Söğütlü–Yaylacık area of Akçaabat and the Kaşüstü area of Yomra. More localized concentrations were also observed around the urban centers of Arsin, Araklı, Sürmene, Of, and Vakfıkebir. Overall, the KDE surface indicates that traffic accidents are predominantly concentrated within densely developed urban areas and along the east–west coastal transportation axis. The density gradually decreases toward inland and less urbanized areas. Since KDE represents a continuous descriptive measure of spatial intensity, these high-density areas should be interpreted as accident-concentration zones rather than statistically significant hotspots; statistical hotspot significance was assessed separately using the Getis–Ord Gi* analysis.
An overall assessment of the KDE results reveals that recorded traffic accidents are primarily concentrated in the city center, along the main coastal transportation network, and on inter-district connection routes. These high-frequency accident locations may be considered candidate areas for further traffic-safety assessment, particularly when evaluated together with the statistically significant spatial patterns identified by Getis–Ord Gi*. However, the identified high-density locations represent concentrations of recorded accidents rather than exposure-normalized crash risk. Therefore, the prioritization of specific safety interventions, including speed enforcement, intersection redesign, road marking improvements, and lighting enhancements, requires additional site-specific investigations and consideration of traffic exposure data.

4.2. Temporal Validation of 2023 Accident Concentration Zones

Temporal consistency was quantitatively evaluated by comparing KDE-derived accident concentration patterns for 2023 and 2024 using a common 500 m reference grid. The analysis included 1598 accident records from 2023 and 1880 records from 2024. To prevent information leakage during bandwidth selection, the bandwidth was independently optimized using only the 2023 data, resulting in a selected value of 500 m for the temporal comparison. For visual assessment, the 2024 accident locations were overlaid on the KDE surface generated using the 2023 records, as illustrated in Figure 8, where purple dots represent the 2024 accident locations.
Figure 8. Temporal validation of the 2023 traffic accident density surface using recorded 2024 accident locations in Trabzon Province. The map presents a detailed view of the central coastal corridor, showing the Gaussian KDE surface derived from 1598 accidents recorded in 2023 (five-fold cross-validated bandwidth = 500 m) and the spatial distribution of 2024 accidents (purple points; 1880 records province-wide). The annual KDE surfaces were compared using a common 500 m grid, yielding a Spearman rank correlation of 0.904 and a top-decile Jaccard similarity of 0.728.
The comparison yielded a Spearman rank correlation coefficient of 0.904 and a top-decile Jaccard similarity index of 0.728. These results indicate substantial spatial consistency in accident concentration patterns between the two years, although some differences in localized concentrations remained. This temporal comparison evaluates the persistence of recorded accident concentrations rather than exposure-adjusted crash risk.
From an ITS-oriented decision-support perspective, the observed temporal consistency suggests that historical accident-concentration patterns can provide useful preliminary information for identifying candidate locations for further traffic-safety assessment. However, the selection and prioritization of specific safety interventions should be supported by additional site-specific investigations and traffic exposure data.

4.3. DBSCAN Clustering Findings

To investigate the spatial clustering patterns of recorded traffic accidents, DBSCAN was applied to the 3478 geographically validated accident locations from 2023 to 2024. The analysis was initially conducted using a reference neighborhood distance of ε = 50 m and MinPts = 5. As illustrated in Figure 9 and Figure 10, the resulting clusters were predominantly distributed along the main coastal transportation corridor and within densely urbanized areas, particularly in and around central Ortahisar. The reference configuration identified 121 clusters comprising 1126 accident locations (32.37% of the dataset), while the remaining 2352 locations (67.63%) were classified as noise. These noise points represent accident locations that did not satisfy the density-connectivity requirements of the specified DBSCAN parameters and should not be interpreted as erroneous or inherently random observations.
Figure 9. Spatial distribution of traffic accident clusters identified by DBSCAN during 2023–2024, with an overview of the main coastal corridor of Trabzon Province, using ε = 50 m MinPts = 5. This analysis used the same dataset of 3478 georeferenced accidents. Colored symbols indicate different clusters, while gray symbols represent unclustered accidents (noise). Cluster colors do not necessarily correspond between panels.
Figure 10. Spatial distribution of traffic accident clusters identified by DBSCAN during 2023–2024, with an overview of the main coastal corridor of Trabzon Province, using ε = 100 m MinPts = 5. This analysis used the same dataset of 3478 georeferenced accidents. Colored symbols indicate different clusters, while gray symbols represent unclustered accidents (noise). Cluster colors do not necessarily correspond between panels.
To evaluate the influence of neighborhood distance on clustering outcomes, the analysis was repeated using ε = 100 m while maintaining MinPts = 5 and the same accident dataset. Under this configuration, 144 clusters containing 2083 accident locations (59.89%) were identified, whereas 1395 locations (40.11%) remained unclustered. Compared with the 50 m configuration, increasing the neighborhood distance to 100 m resulted in 957 additional accident locations being assigned to clusters and a reduction of approximately 27.52 percentage points in the noise proportion. The spatial comparison in Figure 11 and Figure 12 demonstrates that increasing ε alters the configuration and spatial extent of accident clusters, with several previously separated local concentrations becoming connected within larger cluster structures. However, the higher proportion of clustered points does not necessarily indicate that the 100 m configuration provides a more accurate representation of accident concentration. These findings indicate that a substantial proportion of traffic accidents occurred in a spatially dispersed pattern, although distinct concentrations were also observed in specific areas.
Figure 11. Comparison of DBSCAN-derived traffic accident clusters in central Ortahisar using neighborhood distance ε = 50 m and with MinPts = 5. Colors distinguish clusters within each configuration and do not imply identical cluster membership across panels. Circles illustrate cluster extent based on the maximum distance from the cluster centroid to its member points, rather than exact DBSCAN boundaries.
Figure 12. Comparison of DBSCAN-derived traffic accident clusters in central Ortahisar and its eastern surrounding using neighborhood distance ε = 100 m, with MinPts = 5. Colors distinguish clusters within each configuration and do not imply identical cluster membership across panels. Circles illustrate cluster extent based on the maximum distance from the cluster centroid to its member points, rather than exact DBSCAN boundaries.
The parameter sensitivity analysis revealed substantial variation in DBSCAN clustering outcomes across the examined configurations (Table 1). With MinPts fixed at five, increasing ε from 50 to 200 m progressively reduced the proportion of unclustered accident locations from 67.63% to 19.26%, although the number of clusters did not change monotonically. The cluster count initially increased from 121 at ε = 50 m to 144 at ε = 100 m, before decreasing to 64 at ε = 200 m. This pattern reflects the competing effects of newly formed clusters and the merging of previously separated density-connected groups as the neighborhood distance increases. The Jaccard similarity of clustered accident memberships between the 50 m and 100 m configurations was 0.541, while the Adjusted Rand Index calculated from all point labels, including noise, was 0.364. These values indicate that the allocation of accident locations to clusters was sensitive to neighborhood-distance selection. Additional sensitivity tests using MinPts values of 4 and 8 further demonstrated that clustering outcomes depend on both parameters. Consequently, the identified DBSCAN clusters should be interpreted as parameter-dependent representations of recorded accident concentration rather than uniquely determined or invariant spatial structures.
Table 1. Sensitivity of DBSCAN clustering results to neighborhood distance (ε), with MinPts fixed at 5, based on 3478 traffic accident locations recorded during 2023–2024.
A general examination of the DBSCAN results reveals that the clusters are primarily concentrated along the main coastal transportation route and in central areas with dense urbanization. The most prominent clustering zones were observed around Ortahisar, Akçaabat, Yomra, Arsin, Araklı, Sürmene, and Of. In contrast, the number of clusters decreases in inland areas and less urbanized inland areas, where scattered patterns are observed in some locations rather than distinct clustering.
At the district level, the largest proportion of clustered traffic accident locations was found to be concentrated in Ortahisar. Of the accident locations included within the clusters, 727 were located in Ortahisar, 151 in Akçaabat, 73 in Yomra, 46 in Araklı, 31 in Arsin, and 30 in Of. This spatial distribution indicates that the provincial center and its associated transportation corridors constitute the principal areas in which traffic accidents form pronounced spatial clusters.
An examination of cluster sizes revealed that the largest cluster, comprising 42 traffic accident locations, was formed around Kalkınma neighborhood in the Ortahisar district. The second-largest cluster, consisting of 41 accident locations, was predominantly situated in the Çömlekçi–Sanayi area. A cluster containing 24 accident locations was identified around Yaylacık neighborhood in Akçaabat, while another cluster comprising 21 accident locations was observed in the Yeşiltepe–İnönü–Fatih area of Ortahisar. A further cluster of 20 accident locations was detected around Gülbaharhatun. In addition, clusters comprising 20 accident locations were identified in the Söğütlü–Yıldızlı area of Akçaabat. These findings demonstrate that the spatial concentration of traffic accidents occurs not only at the district level but also within specific neighborhoods.
Overall, the DBSCAN findings were broadly consistent with the KDE results in identifying concentrations of recorded traffic accidents within central Ortahisar and along the major coastal transportation corridor. While KDE provided a continuous representation of accident intensity, DBSCAN identified localized groups of density-connected accident locations. Nevertheless, the sensitivity analysis demonstrated that the number, spatial extent, and membership of DBSCAN clusters varied with parameter selection. Therefore, the resulting clusters should be considered exploratory indicators of accident concentration that may support preliminary traffic-safety screening and the identification of locations requiring further investigation. Since traffic exposure measures, such as traffic volume or vehicle-kilometres travelled, were not incorporated into the analysis, these clusters do not constitute direct estimates of exposure-adjusted traffic accident risk.

4.4. Spatial Autocorrelation Results

Global spatial autocorrelation was initially assessed using Moran’s I to examine the spatial association of recorded traffic accident counts across Trabzon Province (Figure 13). Under the reference analytical configuration, comprising a 250 × 250 m grid and a 1000 m zero-accident cell inclusion distance, 3478 traffic accident records were represented by 7305 spatial grid cells. Of these, 1036 cells contained at least one recorded accident, whereas 6269 cells (85.82%) had zero accident counts. The Global Moran’s I analysis yielded a positive index value of 0.447, with a permutation-based z-score of 71.595 and a one-sided permutation p-value of 0.001 based on 999 random permutations. None of the permuted Moran’s I values equaled or exceeded the observed statistic. These results indicate statistically significant positive spatial autocorrelation in the aggregated accident counts under the specified spatial-weighting and analytical-support configuration. The relatively large permutation z-score reflects the substantial departure of the observed statistic from its narrowly distributed permutation-based null distribution and should not be interpreted as a measure of exposure-adjusted accident risk or as a scale-independent measure of clustering strength.
Figure 13. Permutation-based Global Moran’s I distribution for recorded traffic accidents in Trabzon Province (2023–2024), based on a 250 m spatial grid and a 1000 m zero-cell inclusion distance. The observed Moran’s I was 0.447 (permutation z-score = 71.595; one-sided p = 0.001), indicating statistically significant positive spatial autocorrelation. The histogram represents the null distribution generated from 999 random permutations; the observed statistic lies beyond the displayed permutation range.
Following the assessment of global spatial autocorrelation, Local Moran’s I (LISA) was applied to identify statistically significant local spatial associations in recorded accident counts. Under the reference configuration, the exact conditional local significance tests combined with the Benjamini–Hochberg false discovery rate (BH-FDR) correction at the 5% significance level identified 134 High–High (HH) cells and 16 Low–High (LH) cells. No statistically significant Low–Low (LL) or High–Low (HL) associations were detected. As illustrated in Figure 14, HH associations were predominantly concentrated in the central urbanized sections of Ortahisar and along the Akçaabat–Ortahisar coastal transportation corridor. These cells represent locations with relatively high recorded accident counts surrounded by neighboring cells with similarly high values. The LH associations, which occurred mainly within or adjacent to these concentrations, represent local spatial outliers where a relatively low accident-count cell is surrounded by higher-count neighbors. The absence of statistically significant LL and HL associations indicates that these classes did not satisfy the adopted BH-FDR significance criterion under the reference analytical configuration. These findings describe the local spatial association of recorded accident counts rather than differences in exposure-adjusted crash risk.
Figure 14. Local Moran’s I (LISA) spatial association map of recorded traffic accidents along the Akçaabat–Ortahisar coastal corridor of Trabzon Province (2023–2024). The analysis was conducted using a 250 m spatial grid and a 1000 m zero-accident cell inclusion distance. Statistically significant High–High (HH) clusters and Low–High (LH) spatial outliers are displayed following Benjamini–Hochberg false discovery rate (BH-FDR) correction at the 5% significance level. HH indicates high accident-count cells surrounded by high-value neighbors, whereas LH represents low accident-count cells surrounded by high-value neighbors. No statistically significant Low–Low (LL) or High–Low (HL) associations were identified.
The Getis–Ord Gi* analysis was subsequently used to characterize local concentrations of relatively high and low accident counts. Based on the exact conditional significance assessment and BH-FDR correction at the 5% level, 150 statistically significant hot spot cells were identified under the reference grid configuration, whereas no statistically significant cold spot cells were detected. As shown in Figure 15, the hot spot cells were predominantly concentrated within central Ortahisar and along the coastal transportation corridor extending toward Akçaabat, with smaller and more spatially fragmented concentrations toward the eastern sections of the mapped area. The map distinguishes hot spot classes using BH-FDR-adjusted probability thresholds of 0.01, 0.05, and 0.10. Importantly, the 0.10 threshold was included for exploratory visualization and was not considered statistically significant under the principal 5% BH-FDR criterion. Accordingly, 150 hot spot cells satisfied the principal significance threshold, while an additional 31 cells were included in the exploratory 10% class. The absence of significant cold spots suggests that no local associations satisfied the specified corrected significance criterion for low accident-count concentrations under the reference analytical configuration. Nevertheless, these findings are conditional on the spatial grid, neighborhood structure, and definition of the analysis area.
Figure 15. Getis–Ord Gi* hot spot analysis of recorded traffic accidents along the Akçaabat–Ortahisar coastal corridor of Trabzon Province (2023–2024), using a 250 m spatial grid and a 1000 m zero-accident cell inclusion distance. Hot spots are displayed according to Benjamini–Hochberg false discovery rate (BH-FDR) adjusted significance thresholds of 1%, 5%, and 10%. The 10% significance class is presented for exploratory interpretation. No statistically significant cold spots were identified at the 5% BH-FDR level. The mapped concentrations represent recorded accident occurrences rather than exposure-adjusted crash risk.
The spatial-support sensitivity analysis demonstrated that positive global spatial autocorrelation persisted across all four analytical configurations (Table 2). Global Moran’s I values ranged from 0.412 to 0.563, with all configurations yielding statistically significant upper-tailed permutation results (p = 0.001). Although the magnitude of Global Moran’s I varied with grid-cell size and zero-accident cell inclusion distance, the overall conclusion of positive spatial autocorrelation remained unchanged. Local spatial associations exhibited greater variation in the number of significant cells. The number of BH-FDR-significant HH cells ranged from 53 to 134, while LH associations ranged from 5 to 16 cells. Similarly, the number of significant Getis–Ord Gi* hot spot cells varied between 58 and 150. No statistically significant LL or HL associations or Gi* cold spots were identified under any configuration. These variations demonstrate that local classification outcomes depend on the spatial support and the number and arrangement of analyzed cells. Because grid resolution and analysis-area extent varied between configurations, differences in the absolute numbers of significant cells cannot be interpreted directly as differences in the geographical extent of clustering. Nevertheless, the consistent detection of positive global spatial autocorrelation and statistically significant local high-count associations across all configurations provides evidence that the broad finding of accident-count concentration was not restricted to a single analytical setting.
Table 2. Sensitivity of global and local spatial autocorrelation results to grid-cell size and zero-accident cell inclusion distance for recorded traffic accidents in Trabzon Province (2023–2024).
An additional methodological consideration concerns the relationship between the local significance results obtained from LISA and Getis–Ord Gi*. Under the focal-fixed exact conditional testing framework adopted in this study, both local significance assessments were derived from the same finite-population distribution of neighboring accident-count sums. Consequently, the correspondence between the numbers of significant LISA high-neighborhood associations and Gi* hot spots reflects the shared conditional testing structure and should not be interpreted as independent statistical confirmation. Instead, the methods provide complementary classifications of the same underlying local spatial relationships, with LISA distinguishing the spatial-association quadrants and Gi* characterizing the direction and significance of local accident-count concentrations.

4.5. CatBoost and SHAP Results

The comparative evaluation demonstrated that incorporating historical OSM-derived road-network features improved CatBoost crash-type classification performance relative to the baseline configuration. On the common test subset containing 696 accident records, the baseline model achieved an accuracy of 0.6063, macro F1-score of 0.5811, and multiclass one-vs-rest macro ROC-AUC of 0.7750. The GIS-enhanced model increased these values to 0.6379, 0.6205, and 0.7927, respectively. Balanced accuracy also increased from 0.5798 to 0.6205. The number of correctly classified test observations increased from 422 to 444. These results indicate a measurable, although moderate, improvement associated with the inclusion of geographic predictors (Table 3).
Table 3. Comparative performance of baseline and GIS-enhanced CatBoost classifiers on the common test subset (n = 696).
The grouped SHAP analysis of the GIS-enhanced CatBoost model (Figure 16) identified time of day (11.64%), junction geometry (10.91%), and road type (7.40%) as the most influential factors. Among the newly introduced geographic predictors, OSM-derived junction count within 250 m accounted for 6.52% of relative SHAP importance, while junction count within 500 m contributed 3.77%. Crossing type and road surface condition contributed 6.19% and 5.43%, respectively. These findings indicate that local road-network characteristics provide additional information for differentiating recorded crash types. However, SHAP importance values describe predictive contributions within the fitted model and do not establish causal relationships.
Figure 16. Grouped relative SHAP importance of traffic-related and OSM-derived geographic factors in the GIS-enhanced CatBoost crash-type classifier.
As shown in Table 4, class-specific precision, recall, and F1-scores varied across the three crash categories, with the largest improvement observed for pedestrian collisions. Pedestrian-collision recall increased from 0.5556 to 0.6275, while the corresponding F1-score improved from 0.5414 to 0.6057. Among the 153 pedestrian-collision observations in the test subset, the number of correctly classified cases increased from 85 to 96. Smaller improvements were also observed for vehicle-to-vehicle collisions and single-vehicle/other crashes.
Table 4. Class-specific classification performance on the common test subset.
Temporal validation was additionally performed by training the models on 2023 accident records and evaluating them on 2024 observations (Table 5). Under this evaluation, the baseline model achieved an accuracy of 0.5771, macro F1-score of 0.5607, and macro ROC-AUC of 0.7590, whereas the GIS-enhanced model achieved corresponding values of 0.5936, 0.5712, and 0.7629. Although the geographic predictors provided additional predictive information under temporal separation, the improvement was smaller than that observed in the randomly partitioned test subset, indicating limitations in temporal generalization.
Table 5. Temporal validation results of CatBoost models trained using 2023 records and evaluated on 2024 observations.

4.6. Evidence-Constrained LLM Interpretation and Independent Expert Validation

The evidence-constrained GPT-6 synthesis integrated the findings obtained from KDE, DBSCAN, Global Moran’s I, Local Moran’s I (LISA), Getis–Ord Gi*, CatBoost, and SHAP analyses into a structured interpretation of recorded traffic crash patterns in Trabzon Province. Rather than independently producing geospatial statistics or predictive estimates, the LLM organized the externally computed results, distinguished their methodological implications, identified unsupported interpretations, and generated conditional recommendations for traffic safety investigations.
The LLM interpretation distinguished descriptive spatial concentrations from statistically significant local patterns. KDE bandwidth sensitivity produced a Spearman rank correlation of 0.887756 and a top-decile Jaccard similarity of 0.910380, while the corresponding 2023–2024 comparisons yielded values of 0.903649 and 0.727874, respectively. These findings were interpreted as evidence of substantial spatial consistency with localized differences, rather than as evidence of stable exposure-adjusted crash risk. Similarly, the synthesis acknowledged the parameter dependence of DBSCAN, distinguishing the 121 clusters containing 1126 crashes under Eps = 50 m and MinPts = 5 from the 144 clusters containing 2083 crashes under Eps = 100 m and MinPts = 5.
The spatial autocorrelation findings were interpreted separately from KDE and DBSCAN outputs. Global Moran’s I indicated positive spatial autocorrelation (I = 0.447035; permutation p = 0.001), whereas BH-FDR-adjusted LISA identified 134 statistically significant High–High and 16 Low–High cells. The Getis–Ord Gi* analysis identified 150 statistically significant hot-spot cells at q < 0.05, with no significant cold-spot cells under the reference configuration. The LLM distinguished the statistical purposes of these methods and avoided assuming that high-density KDE regions, DBSCAN clusters, and statistically significant local spatial patterns necessarily corresponded to identical locations.
The machine-learning results were interpreted in relation to the model’s actual prediction target. The GIS-enhanced CatBoost classifier, incorporating 35 features, achieved a macro F1-score of 0.620474 and a multiclass macro ROC-AUC of 0.792743 on the previously examined random test split, compared with 0.581079 and 0.775045, respectively, for the 27-feature baseline classifier. In the 2023-to-2024 temporal evaluation, the GIS-enhanced classifier achieved a macro F1-score of 0.571235. The LLM correctly characterized these results as multiclass classification of recorded crash types rather than prediction of crash occurrence, injury severity, or fatality risk. Furthermore, grouped SHAP contributions associated with time of day (11.64%) and junction geometry (10.91%) were interpreted as predictive importance measures without implying causal relationships.
Based on these combined findings, GPT-6 generated six conditional investigation priorities. These included field-oriented assessments of the Kalkınma cluster in Ortahisar (42 recorded crashes), the Çömlekçi–Sanayi cluster (41 crashes), and the Yaylacık cluster in Akçaabat (24 crashes), together with investigations of statistically significant LISA and Gi* cells, temporally persistent KDE concentration patterns, and junction-, crossing-, and time-related characteristics highlighted by CatBoost–SHAP. The suggested investigations focused on verifying road geometry, traffic volumes, pedestrian movements, visibility conditions, and operational characteristics. These outputs were explicitly presented as candidate safety-audit questions rather than confirmed engineering deficiencies, exposure-adjusted risk rankings, or validated countermeasures.
An additional interpretative contribution was the identification of six scientifically unsupported assertions, including the inappropriate treatment of KDE bandwidth as a hazardous-zone radius, the assumption that all KDE density peaks are statistically significant hot spots, the incorrect assignment of the 121-cluster DBSCAN result to Eps = 100 m, and the interpretation of SHAP feature importance as evidence of causality. The model also rejected the characterization of the CatBoost classifier as a predictor of crash occurrence or fatality probability. These examples demonstrate how evidence-constrained language-model outputs may assist in recognizing and avoiding overinterpretation of analytical findings.
The generated response was subsequently subjected to a structured internal evidence-concordance audit. The response contained 72 evidence-identifier citations corresponding to 33 distinct valid identifiers from the 46-item reference evidence packet; no nonexistent identifier was detected. Across 57 claim-level control entries, 36 were classified as directly consistent with the supplied evidence, 10 as methodologically coherent interpretations, six as conditional recommendations requiring additional field validation, three as appropriate acknowledgments of uncertainty, and two as reporting omissions. These categories represent descriptive source-concordance findings rather than independent test cases or an overall LLM accuracy estimate. The audit also identified areas requiring clearer reporting, including the explicit communication of the absence of statistically significant Gi* cold spots.
An external GIS specialist with 21 years of self-reported professional experience independently evaluated the archived LLM response using 12 structured tasks and five assessment dimensions. All 60 ratings were completed. The specialist assigned a total score of 271 out of 300, corresponding to a mean rating of 4.52 out of 5 and 90.33% of the maximum attainable score. Mean ratings were 4.67 for scientific accuracy, 4.83 for spatial correctness, 4.17 for methodological accuracy, 4.00 for evidence grounding, and 4.92 for traffic safety applicability (Table 6). Individual task totals ranged from 22 to 24 out of 25.
Table 6. Independent GIS expert assessment of the evidence-constrained GPT-6 interpretations.
The expert assessment indicated favorable perceived interpretation quality, particularly regarding traffic safety applicability and spatial correctness. Evidence grounding received the lowest mean rating, suggesting that the traceability and justification of scientific statements require further refinement. The assessment was performed by one independent but non-blinded specialist, without an independently authored human comparison response. Consequently, these scores should be interpreted as a structured appraisal of one recorded LLM output rather than a measure of generalizable model accuracy or superiority over human expert interpretation. The combined source-concordance and expert-assessment procedures support the use of GPT-6 as a supplementary interpretative tool, while preserving the distinction between analytically established findings and recommendations requiring additional empirical validation.

5. Discussion

The findings demonstrate that recorded traffic crashes in Trabzon Province exhibit pronounced spatial concentrations, particularly within the central urban area and along major coastal transportation corridors. The combined application of KDE, DBSCAN, Global Moran’s I, LISA, and Getis–Ord Gi* provides complementary perspectives on these patterns. KDE characterizes continuous variations in recorded crash intensity, DBSCAN identifies groups of closely spaced crash locations, and spatial autocorrelation statistics examine global and local associations among aggregated crash counts. Although the findings collectively indicate non-uniform spatial distributions, agreement in their general interpretations does not establish that the different methods identify identical locations. Moreover, the sensitivity of DBSCAN results to neighborhood distance and the dependence of spatial autocorrelation statistics on grid configuration and neighborhood definitions highlight the importance of parameter selection when interpreting spatial concentrations. The identified concentrations around Kalkınma, Çömlekçi–Sanayi, Yaylacık, and the D-010 coastal corridor may also be examined in relation to university-associated activities, commercial and industrial land uses, junction density, and the operation of the coastal arterial network. These contextual relationships should be treated as hypotheses for subsequent investigation rather than established causal explanations, as detailed land-use, traffic-volume, and site-level operational assessments were beyond the scope of the present study.
The temporal KDE comparison provides further insight into the persistence of crash-concentration patterns. The relatively high Spearman rank correlation between the 2023 and 2024 density surfaces indicates substantial similarity in their spatial ordering, while the lower top-decile Jaccard similarity suggests that the most prominent concentration areas were not entirely stable. These results support the retrospective identification of locations warranting continued investigation but should not be interpreted as prospective validation of crash occurrence probabilities. The distinction is particularly important because traffic exposure, roadway utilization, and other time-varying determinants were not explicitly incorporated into the spatial intensity estimates.
The machine-learning component extends the geospatial analysis by investigating the contribution of OSM-derived road-network characteristics to crash-type classification. Compared with the 27-feature baseline CatBoost model, the 35-feature GIS-enhanced model showed improvements in macro F1-score (from 0.5811 to 0.6205) and multiclass macro ROC-AUC (from 0.7750 to 0.7927) on the previously examined random test partition. These differences suggest that the additional geospatial attributes provided potentially useful predictive information for distinguishing among recorded crash categories. However, they should be interpreted as descriptive performance differences rather than statistically established or independently replicated improvements. The lower macro F1-score obtained in the 2023-to-2024 temporal evaluation (0.5712) further indicates limitations in temporal generalization. Grouped SHAP results emphasized time of day and junction geometry as influential predictive characteristics, but such feature contributions cannot be interpreted as causal effects or as evidence that modifying these characteristics would necessarily reduce crash occurrence. Furthermore, the substantial missingness of selected OSM attributes, particularly mapped lane count and maximum speed, limits the interpretation of some network-derived predictors. Zhao et al. [43] investigated the effects of vehicle heterogeneity and driver-vigilance feedback on mixed-traffic flow stability. Their findings highlight the potential relevance of vehicle-specific and behavioral characteristics that were not explicitly represented in the present crash-type classifier, providing additional context for future model development rather than direct validation of the observed crash patterns.
The predominance of recorded crashes under clear weather (2822 cases) and dry pavement conditions (2748 cases) should be distinguished from their predictive importance in the crash-type classification model. The grouped SHAP analysis assigned approximately 0.45% relative importance to weather condition, compared with 5.43% for road-surface condition. These measures address different questions: the descriptive frequencies indicate how often particular conditions occurred among recorded crashes, whereas SHAP reflects their contributions to distinguishing crash categories. Greater traffic exposure under favorable conditions is a plausible explanation for the observed frequencies, but this hypothesis cannot be tested without condition-specific exposure data. Neither result establishes a causal effect or an exposure-adjusted difference in crash risk.
A central methodological contribution of the revised framework is the introduction of a documented, evidence-constrained LLM interpretation procedure. Unlike approaches that use language models primarily for crash prediction, text extraction, or direct GIS workflow generation, the present implementation uses GPT-6 to synthesize results calculated independently through spatial statistics and interpretable machine learning. This distinction is relevant to existing research on LLM-assisted crash analysis, including CrashSage [24], and GIS-oriented benchmarks such as GeoAnalystBench [26]. The structured expert-assessment principles employed in the present study were also informed by research evaluating LLM interpretations of published scientific findings [25]. Nevertheless, these approaches differ in their analytical objectives and evaluation designs; therefore, their reported performance results cannot be directly compared with the present expert-assessment scores.
The evidence-constrained synthesis facilitated the integration of multiple analytical outputs while preserving important methodological distinctions. In particular, the generated interpretations differentiated recorded crash concentrations from exposure-adjusted crash risk, distinguished KDE density surfaces from statistically significant local spatial patterns, and correctly characterized CatBoost as a classifier of recorded crash types rather than an estimator of crash occurrence or fatality probabilities. The identification of unsupported assertions and the formulation of conditional traffic safety investigation priorities represent potentially useful interpretative functions. However, these contributions remain dependent on the quality, completeness, and selection of the evidence statements supplied to the LLM. The model did not independently calculate geospatial statistics, verify the original crash records, or establish the effectiveness of recommended traffic safety interventions. Although evidence identifiers improve traceability, they cannot entirely eliminate hallucinations, selective omissions, or unsupported extrapolations; therefore, the GPT-6 interpretations incorporated into the manuscript were reviewed against the underlying analytical evidence and critically edited by the author.
The validation protocol provided two complementary forms of assessment. The internal evidence-concordance audit examined 57 claim-level control entries and verified the traceability of 72 evidence-identifier citations to the archived reference evidence. This audit supported the transparency of the interpretative process but did not constitute an independent benchmark of LLM reasoning accuracy. Separately, an independent GIS specialist evaluated the single archived GPT-6 response across 12 tasks and five dimensions, assigning a total of 271/300 points and a mean rating of 4.52/5. The comparatively high ratings for traffic safety applicability (4.92/5) and spatial correctness (4.83/5) suggest that the generated interpretations were considered useful for the specified tasks. However, evidence grounding received the lowest mean rating (4.00/5), indicating a need for clearer justification and traceability of some scientific interpretations.
The expert-validation findings should nevertheless be interpreted cautiously. Although the evaluator was independent of the manuscript author and did not have access to the author’s previous ratings, the assessment was not blinded to the source of the text. Only one expert evaluated one archived LLM response, and several evaluation tasks drew on overlapping evidence statements. The evaluator also assessed evidence summaries assembled by the research team rather than independently reproducing all underlying statistical analyses. Written explanations for reduced scores were not provided. Consequently, inter-rater agreement, repeated-output stability, and direct human-versus-LLM performance differences could not be established. The expert scores therefore represent a structured assessment of perceived interpretation quality, not an independently measured percentage of scientifically correct statements. These limitations are important when considering the generalizability of the proposed LLM-assisted framework.
Several additional limitations arise from the underlying accident data and analytical procedures. Of the original 3486 accident records, seven were excluded during preliminary data cleaning because of geographically implausible mapped coordinates. Although this screening reduced the potential influence of suspected geolocation errors, the initial exclusions were based on visual inspection rather than a predefined quantitative distance threshold. Provincial boundary quality assurance subsequently excluded one additional point, resulting in 3478 observations for the spatial analyses. The study also covers only two years, is restricted to recorded crashes within police jurisdiction, and does not include systematic exposure denominators such as vehicle-kilometres travelled, traffic volumes, or pedestrian flows. Consequently, the identified concentrations and statistical hot spots cannot establish relative crash probabilities across locations. In addition, the final archived CatBoost results do not contain a spatial-block cross-validation table, and the random test partition was examined during earlier model-development experiments. These constraints restrict claims regarding independent spatial generalization and should not be considered resolved by the subsequent LLM or expert assessments.
Future work should prioritize complete documentation of the accident-data cleaning process, longer observation periods, exposure-adjusted safety measures, and additional spatial and temporal validation. Future investigations should incorporate annual average daily traffic (AADT), vehicle-kilometres travelled, time-specific traffic counts, and pedestrian or cyclist exposure measures where available, enabling the calculation of exposure-adjusted crash rates and more informative roadway-segment or intersection-level safety assessments. For the LLM component, future experiments should incorporate multiple independently generated responses, additional external specialists, blinded assessments, and direct comparisons between human-authored and LLM-generated interpretations. Such investigations would help determine whether the proposed interpretative framework provides reproducible added value beyond conventional expert interpretation. The present findings support its use as an exploratory and auditable decision-support component rather than as an autonomous or fully validated traffic safety assessment system.

ITS Implications and Transferability

The proposed workflow offers a potential foundation for offline, ITS-oriented traffic safety screening by combining spatial concentrations, explainable crash-type classification, evidence-linked interpretation, and expert review. Its principal practical value lies in identifying candidate locations and investigative questions that can guide subsequent safety audits and data collection. Nevertheless, the framework has not been deployed or evaluated as an operational real-time ITS, and its recommendations have not been validated through intervention trials or before-and-after safety studies. Transferability to other cities would require consistent crash-record definitions, comparable spatial and road-network data, context-specific model validation, and independent assessment of generated interpretations. Decisions regarding actual engineering countermeasures should remain dependent on field investigations, exposure measurements, and established road safety assessment procedures.

6. Conclusions

This study investigated the spatial and temporal characteristics of traffic accidents recorded in Trabzon Province, Türkiye, during 2023–2024 through an integrated framework combining geographical information systems, spatial statistical methods, explainable machine learning, and LLM-assisted interpretation. A total of 3486 traffic accident records were examined, of which 3478 geographically validated observations were retained for the coordinate-based spatial analyses. The descriptive findings indicated an increase in recorded accidents from 2023 to 2024, with relatively higher frequencies during the summer months and between 14:00 and 18:00. Spatially, recorded accidents were concentrated primarily in the central urban areas of Ortahisar and along major coastal transportation corridors, particularly the Akçaabat–Ortahisar corridor and sections of the D-010 Black Sea Coastal Highway. These findings highlight the nonuniform distribution of recorded accident occurrences within the study region.
The KDE and DBSCAN analyses provided complementary characterizations of spatial accident concentration at different analytical scales. KDE revealed continuous areas of elevated recorded accident intensity, while DBSCAN identified localized groups of closely spaced accident locations, particularly in central Ortahisar, Kalkınma, Çömlekçi–Sanayi, and the Akçaabat coastal area. The evaluation of alternative KDE bandwidths and DBSCAN parameter configurations demonstrated the importance of analytical parameter selection in determining the spatial representation of accident concentrations. In particular, the DBSCAN sensitivity assessment across 18 parameter combinations showed that the number, size, and spatial composition of identified clusters were dependent on the selected neighborhood distance and minimum-point threshold. Consequently, individual clustering configurations should not be regarded as uniquely optimal representations of the accident distribution without considering parameter sensitivity and the intended spatial scale of analysis.
The spatial autocorrelation analyses provided additional statistical evidence of the spatial organization of recorded accident counts. Under the reference configuration of a 250 m grid and a 1000 m zero-accident cell inclusion distance, Global Moran’s I was 0.447 (one-sided permutation p = 0.001), indicating statistically significant positive spatial autocorrelation. Following Benjamini–Hochberg false discovery rate correction at the 5% significance level, Local Moran’s I identified 134 High–High (HH) cells and 16 Low–High (LH) spatial outliers, while Getis–Ord Gi* identified 150 statistically significant hot spot cells. No significant Low–Low (LL) or High–Low (HL) associations or Gi* cold spots were detected under the reference configuration. The spatial-support sensitivity analysis further demonstrated that positive global autocorrelation persisted across all four examined configurations, with Moran’s I values ranging from 0.412 to 0.563. Nevertheless, the numbers of significant local associations varied with grid resolution and analysis-area definition. Furthermore, because the local significance assessments for LISA and Gi* were based on the same conditional neighborhood-count distribution, their agreement should not be regarded as independent statistical confirmation.
The explainable machine-learning analysis demonstrated that incorporating OSM-derived road-network characteristics was associated with improved CatBoost crash-type classification performance on the evaluated test partition. The GIS-enhanced classifier achieved an accuracy of 0.6379, macro F1-score of 0.6205, and multiclass ROC-AUC of 0.7927, compared with 0.6063, 0.5811, and 0.7750 for the baseline configuration. The improvement was particularly pronounced for pedestrian-collision classification, although temporal validation revealed more modest gains. SHAP analysis further highlighted the predictive contributions of temporal characteristics, junction geometry, road type, and local network-junction density. These findings indicate that geographic contextual information can improve the characterization of recorded crash types, while recognizing that the model does not estimate crash occurrence probability or exposure-adjusted risk.
The evidence-constrained LLM component provided an additional interpretative layer by integrating the findings of the spatial statistical analyses and explainable machine-learning models. Using a fixed prompt and 46 source-linked analytical evidence statements, GPT-6 synthesized the results, distinguished the methodological implications of different analytical approaches, identified six scientifically unsupported assertions, and generated six conditional investigation priorities for traffic safety assessment. Importantly, the LLM did not independently calculate spatial statistics, train predictive models, or establish causal relationships. Its contribution was therefore limited to evidence-grounded scientific interpretation, methodological consistency checking, and the formulation of verifiable questions for subsequent investigations.
The reliability of these interpretations was examined through a structured evidence-concordance audit and an independent GIS expert assessment. The internal audit included 57 claim-level checks and verification of 72 evidence-identifier citations. An independent GIS specialist evaluated the archived GPT-6 response across 12 tasks and five assessment dimensions, assigning a total score of 271 out of 300, with a mean rating of 4.52 out of 5. The evaluation indicated favorable perceived interpretation quality, particularly regarding spatial correctness and traffic safety applicability, while evidence grounding received comparatively lower ratings. Nevertheless, the assessment involved a single non-blinded expert and one recorded LLM response. Consequently, the obtained scores should be interpreted as a structured expert appraisal rather than an objective measure of LLM accuracy, independently replicated performance, or superiority over human interpretation.
From a practical perspective, the identified accident-concentration areas may provide an initial basis for network safety screening and the selection of locations requiring more detailed traffic engineering assessments. Potential measures include reviewing intersection configurations, evaluating speed-management strategies, improving pedestrian-crossing visibility, and assessing roadway markings and lighting conditions. However, the prioritization and implementation of such interventions should be supported by site-specific investigations and additional exposure-related information. The principal limitations of the study include its two-year observation period, the absence of traffic-volume and other exposure measures, the sensitivity of local spatial classifications to analytical support, the reliance on visual inspection to exclude seven records with suspected geolocation errors during preliminary data cleaning, missing attributes in selected OSM-derived variables, and the limited basis for assessing the transferability of the findings beyond Trabzon. Furthermore, although the LLM-generated interpretations were subjected to evidence-based auditing and independent expert assessment, their reproducibility and generalizability require further validation involving multiple model responses, additional independent experts, and blinded human–LLM comparisons.
Future research should incorporate traffic exposure, detailed road-network characteristics, longer observation periods, and independent spatial and predictive validation. Overall, the proposed framework offers a documented and auditable analytical workflow for characterizing recorded traffic accident concentrations and supporting evidence-informed transportation safety assessments.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/app162311790/s1, File S1, Frozen Research Prompt; File S2, Source Linked Evidence 46; File S3, Frozen GPT6 Response UNMODIFIED; File S4: Supplementary Table S1 Independent GIS Expert Ratings. The original completed assessment form was retained in the research records and was not included in the publicly available supplementary materials; File S5, Internal Evidence Concordance Audit 57 EN; and File S6, Recheck Summary and Study Provenance and Calculations, including Supplementary Table S2 SHAP Feature Mapping. These materials support the transparency and assessment of the evidence-constrained LLM interpretation procedure. The restricted individual-level police crash records are not included.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The original traffic crash records analyzed in this study were obtained from the General Directorate of Security of the Ministry of Interior of the Republic of Türkiye through official correspondence and under specific authorization. Restrictions imposed by the data provider prevent the public release or unauthorized redistribution of these records. Requests for access to the original dataset are subject to the data provider’s approval and applicable confidentiality requirements. The non-sensitive aggregate evidence statements, archived LLM prompt and response, and supporting validation materials are documented separately in the Supplementary Materials to facilitate the assessment and reproducibility of the LLM-assisted interpretation procedure without disclosing the restricted individual crash records.

Acknowledgments

The author would like to thank the General Directorate of Security of the Ministry of Interior of the Republic of Türkiye for providing the traffic crash data under official authorization. The author also acknowledges the independent GIS specialist who evaluated the archived LLM-generated interpretations. During the preparation of this manuscript, OpenAI’s ChatGPT(GPT-6) was used to generate an evidence-constrained synthesis of externally computed geospatial and machine-learning results, identify unsupported scientific assertions, and formulate conditional traffic safety investigation priorities. ChatGPT was also used to assist in drafting and refining revised manuscript text. The documented GPT-6 synthesis was subsequently examined through internal evidence-concordance auditing and an independent GIS expert assessment, as described in the Materials and Methods section. The author reviewed and edited the AI-assisted content and takes full responsibility for the accuracy, integrity, and final content of the manuscript.

Conflicts of Interest

The author declares no conflicts of interest.

References

  1. World Health Organization. Available online: https://www.who.int/ (accessed on 20 June 2026).
  2. TÜİIK Karayolu-Trafik-Kaza-Istatistikleri. Available online: https://veriportali.tuik.gov.tr/tr/press/54056/metadata (accessed on 20 June 2026).
  3. Lian, G.; Zhang, G.; Zhang, D.; Zhang, Y.; Wang, T.; Tang, J.; Yang, Y.; Zhao, H.; Qiao, X. From Prediction to Assignment: A Statistical Learning Framework for Robust Airport Gate Assignment Under Uncertainty. IET Intell. Transp. Syst. 2026, 20, e70274. [Google Scholar] [CrossRef] [Scilit]
  4. Doğru, E.; Aydın, F. Coğrafi Bilgi Sistemleri Yardımıyla Trafik Kazalarının Analizi: Karabük Merkez İlçe Örneği. In Proceedings of the International Geography Symposium on the 30th Anniversary of TUCAUM, Ankara, Türkiye, 3–6 October 2018; pp. 355–369. [Google Scholar]
  5. Özçelebi, M.A. Samsun’da Kara Yolu Trafik Kazalarının CBS Tabanlı Zamansal ve Mekânsal Analizi. Mavi Atlas 2024, 12, 433–458. [Google Scholar] [CrossRef] [Scilit]
  6. Yıldırım, V.; Yurdakul, E.; Karaağaç, G.A.; Koçer, M.; Uyguçgil, H. Eskişehir kent merkezindeki trafik kazalarının zamana bağlı konumsal analizi. Türk Uzak. Algılama Ve CBS Derg. 2023, 4, 17–32. [Google Scholar] [CrossRef] [Scilit]
  7. Nogueira, P.; Silva, M.; Infante, P.; Nogueira, V.; Manuel, P.; Afonso, A.; Jacinto, G.; Rego, L.; Quaresma, P.; Saias, J.; et al. Learning from accidents: Spatial intelligence applied to road accidents with insights from a case study in Setúbal district, Portugal. ISPRS Int. J. Geo-Inf. 2023, 12, 93. [Google Scholar] [CrossRef] [Scilit]
  8. Afolayan, A.; Easa, S.M.; Abiola, O.S.; Alayaki, F.M.; Folorunso, O. GIS-based spatial analysis of accident hotspots: A Nigerian case study. Infrastructures 2022, 7, 103. [Google Scholar] [CrossRef] [Scilit]
  9. Yılan, M.; Özdemir, M.K. A simple approach to traffic density estimation by using Kernel Density Estimation. In 2015 23rd Signal Processing and Communications Applications Conference (SIU); IEEE: Piscataway, NJ, USA, 2015; pp. 1865–1868. [Google Scholar]
  10. Gedamu, W.T.; Plank-Wiedenbeck, U.; Wodajo, B.T. A spatial autocorrelation analysis of road traffic crash by severity using Moran’s I spatial statistics: A comparative study of Addis Ababa and Berlin cities. Accid. Anal. Prev. 2024, 200, 107535. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Kazmi, S.S.A.; Ahmed, M.; Mumtaz, R.; Anwar, Z. Spatiotemporal clustering and analysis of road accident hotspots by exploiting GIS technology and kernel density estimation. Comput. J. 2022, 65, 155–176. [Google Scholar] [CrossRef] [Scilit]
  12. Feng, M.; Zheng, J.; Ren, J.; Xi, Y. Association rule mining for road traffic accident analysis: A case study from UK. In Advances in Brain Inspired Cognitive Systems: Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2020; Volume 11691, pp. 520–529. [Google Scholar]
  13. Wang, M.; Lee, W.C.; Liu, N.; Fu, Q.; Wan, F.; Yu, G. A data-driven deep learning framework for prediction of traffic crashes at road intersections. Appl. Sci. 2025, 15, 752. [Google Scholar] [CrossRef] [Scilit]
  14. Alsaleh, R.; Walia, K.; Moshiri, G.; Alsaleh, Y.T. Traffic Collision Severity Modeling Using Multi-Level Multinomial Logistic Regression Model. Appl. Sci. 2025, 15, 838. [Google Scholar] [CrossRef] [Scilit]
  15. Ekanem, I. Analysis of road traffic accident using AI techniques. Open J. Saf. Sci. Technol. 2025, 15, 36–56. [Google Scholar] [CrossRef]
  16. Moyo, E.; Dzinavatonga, K.; Hakunavanhu, Z.L. Logistic regression modelling of road traffic accident severity: A study on driver characteristics in Zimbabwe. Int. J. Res. Innov. Soc. Sci. (IJRISS) 2025, 9, 3189–3206. [Google Scholar] [CrossRef] [Scilit]
  17. Portal, A.; Sandoval, M.; Castaneda, P.; Mansilla-Lopez, J.; Garcia-Nunez, A.D. A Machine Learning-Based Predictive System for Road Accident Risk Management Using Cloud Architecture. Eng. Technol. Appl. Sci. Res. 2026, 16, 31814–31821. [Google Scholar] [CrossRef] [Scilit]
  18. Naveed, H.; Khan, A.U.; Qiu, S.; Saqib, M.; Anwar, S.; Usman, M.; Akhtar, N.; Barnes, N.; Mian, A. A comprehensive overview of large language models. ACM Trans. Intell. Syst. Technol. 2025, 16, 106. [Google Scholar] [CrossRef] [Scilit]
  19. Ahmadi, E.; Muley, S.; Wang, C. Automatic construction accident report analysis using large language models (LLMs). J. Intell. Constr. 2025, 3, 9180039. [Google Scholar] [CrossRef] [Scilit]
  20. Arteaga, C.; Park, J. A large language model framework to uncover underreporting in traffic crashes. J. Saf. Res. 2025, 92, 1–13. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Fan, Z.; Wang, P.; Zhao, Y.; Zhao, Y.; Ivanovic, B.; Wang, Z.; Pavone, M.; Yang, H.F. Learning traffic crashes as language: Datasets, benchmarks, and what-if causal analyses. arXiv 2024, arXiv:2406.10789. [Google Scholar]
  22. Wang, B. Real-Time Data Informed Traffic Analytics Framework Powered by Large Language Model (LLM); University of Washington: Seattle, WA, USA, 2024. [Google Scholar]
  23. Yang, X.; Tao, Y.; Ge, H.; Fan, Z.; Akerkar, R.; Koshizuka, N. LLeCaT: LLM Enhanced Causality Aware Traffic Accidents Post-Effects Prediction. IEEE Trans. Intell. Transp. Syst. 2025, 26, 19256–19269. [Google Scholar] [CrossRef] [Scilit]
  24. Zhen, H.; Yang, J.J. CrashSage: A large language model-centered framework for contextual and interpretable traffic crash analysis. Artif. Intell. Transp. 2025, 3, 100030. [Google Scholar] [CrossRef] [Scilit]
  25. Mao, G.; Snyder, W., III; Chinthala, A.S.; Singh, A.; Obeng-Gyasi, B.; Potts, A.J.; Jackson, L.R.; Rodriguez, K.J.O.; Singh, R.S. Benchmarking agreement between large language models and published clinical trial conclusions across four artificial intelligence platforms. Sci. Rep. 2026, 16, 15606. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  26. Zhang, Q.; Gao, S.; Wei, C.; Zhao, Y.; Nie, Y.; Chen, Z.; Chen, S.; Su, Y.; Sun, H. GeoAnalystBench: A GeoAI benchmark for assessing large language models for spatial analysis workflow and code generation. Trans. GIS 2025, 29, e70135. [Google Scholar] [CrossRef] [Scilit]
  27. Coğrafi Özellikleri. Available online: https://www.trabzon.gov.tr/cografi-ozellikleri (accessed on 5 July 2026).
  28. Yilmaz, N. Impact of the UNB topographical density model on precise geoid determination in the high mountainous region. Surv. Rev. 2025, 57, 65–72. [Google Scholar] [CrossRef] [Scilit]
  29. Emniyet Genel Müdürlüğü. Available online: https://www.egm.gov.tr/ (accessed on 29 July 2026).
  30. Tanrıverdi, B.N.; Atmaca, İ. Coğrafi Bilgi Sistemleri ile kentsel alanlardaki sıcak noktaların haritalanması, Ankara örneği. Bozok J. Eng. Archit. 2023, 2, 44–52. [Google Scholar]
  31. Yıldız, C.; Şekkeli, M. Çekirdek yoğunluk kestirimi yönteminin rüzgâr türbini performans testinde kullanılması. Pamukkale Üniversitesi Mühendislik Bilim. Derg. 2020, 26, 899–907. [Google Scholar]
  32. Gholizadeh, N.; Saadatfar, H.; Hanafi, N. K-DBSCAN: An improved DBSCAN algorithm for big data. J. Supercomput. 2021, 77, 6214–6235. [Google Scholar] [CrossRef] [Scilit]
  33. Çelik, M.; Dadaşer-Çelik, F.; Dokuz, A.Ş. Anomaly detection in temperature data using DBSCAN algorithm. In 2011 International Symposium on Innovations in Intelligent Systems and Applications; IEEE: Piscataway, NJ, USA, 2011; pp. 91–95. [Google Scholar]
  34. Singh, H.V.; Girdhar, A.; Dahiya, S. A literature survey based on DBSCAN algorithms. In 2022 6th International Conference on Intelligent Computing and Control Systems (ICICCS); IEEE: Piscataway, NJ, USA, 2022; pp. 751–758. [Google Scholar]
  35. Geçen, R.; Topuz, M. Türkiye’de illere göre kaba boşanma oranlarının (2001–2020) mekânsal oto-korelasyonu ve trend analizi. J. Acad. Soc. Sci. 2021, 123, 163–184. [Google Scholar] [CrossRef] [Scilit]
  36. Getis, A.; Ord, J.K. The analysis of spatial association by use of distance statistics. Geogr. Anal. 1992, 24, 189–206. [Google Scholar] [CrossRef] [Scilit]
  37. Anselin, L. Local indicators of spatial association—LISA. Geogr. Anal. 1995, 27, 93–115. [Google Scholar] [CrossRef] [Scilit]
  38. Benjamini, Y.; Hochberg, Y. Controlling the false discovery rate: A practical and powerful approach to multiple testing. J. R. Stat. Soc. Ser. B (Methodol.) 1995, 57, 289–300. [Google Scholar] [CrossRef] [Scilit]
  39. Prokhorenkova, L.; Gusev, G.; Vorobev, A.; Dorogush, A.V.; Gulin, A. Catboost: Unbiased Boosting with Categorical Features; Curran Associates Inc.: Red Hook, NY, USA, 2018; pp. 6639–6649. [Google Scholar] [CrossRef] [Scilit]
  40. Deng, K.; Zhang, X.; Cheng, Y.; Zheng, Z.; Jiang, F.; Liu, W.; Peng, J. A remaining useful life prediction method with long-short term feature processing for aircraft engines. Appl. Soft Comput. J. 2020, 93, 106344. [Google Scholar] [CrossRef] [Scilit]
  41. Gebreyesus, Y.; Dalton, D.; Nixon, S.; De Chiara, D.; Chinnici, M. Machine learning for data center optimizations: Feature selection using Shapley additive exPlanation (SHAP). Future Internet 2023, 15, 88. [Google Scholar] [CrossRef] [Scilit]
  42. Chang, Y.; Wang, X.; Wang, J.; Wu, Y.; Yang, L.; Zhu, K.; Chen, H.; Yi, X.; Wang, C.; Wang, Y.; et al. A survey on evaluation of large language models. ACM Trans. Intell. Syst. Technol. 2024, 15, 1–45. [Google Scholar] [CrossRef] [Scilit]
  43. Zhao, H.; Tang, Y.; Wang, Y.; Yuan, Q.; Wang, T.; Zhou, D.; Zhang, Y.; Yang, L.; Xu, Q.; Nong, L. A lattice model of mixed traffic flow based on critical safety potential field and driver vigilance feedback: Numerical simulation of critical safety potential field fluctuations characterizing the effects of vehicle mass and volume differences. Chaos Solitons Fractals 2025, 199, 116689. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.