학술

Research on prediction and identification of key influencing factors of slow traffic conflicts at urban intersections

PLOS ONE
CC BY
이 매체는 공공·자유 라이선스로 본문을 직접 표시합니다.

Figures
Abstract
This paper addresses the prediction of total slow-traffic conflict counts at urban intersections and the identification of key influencing factors, proposing a framework that integrates machine learning with interpretability analysis. Pedestrian–non-motorized vehicle interactions are the principal safety concern within the surveyed shared spaces. Using time-series data on seven key variables collected by drones at 12 typical traffic-light-controlled intersections, a Backpropagation (BP) neural network was trained to predict total conflict counts, and the Mean Impact Value (MIV) and SHapley Additive exPlanations (SHAP) methods were combined to quantify global perturbation importance and sample-level predictive contributions. The two interpretability tools yield complementary and partly divergent insights: within the sampled context, sidewalk geometry emerges as the dominant spatial correlate of conflict frequency—sidewalk length is the largest global MIV contributor, whereas sidewalk width has consistently negative predictive contributions relative to the model reference despite its lower global MIV importance. Longer green light durations are associated with predominantly negative SHAP contributions in the plotted observations. Building on these results, the study develops scenario-specific engineering strategies, including spatial optimization and source separation, signal-timing adaptation, and a preliminary local safety scoring system, supporting coordinated spatial and signal design. The main contributions of this study are the provision of localized quantitative parameters for the sampled context, the demonstration of a dual-interpretation workflow that compares global and local model contributions, and the translation of interpretability outputs into preliminary engineering diagnostics.
Citation: Wang Y, Ma Z, Hou B, Liu X (2026) Research on prediction and identification of key influencing factors of slow traffic conflicts at urban intersections. PLoS One 21(11): e0363755. https://doi.org/10.1371/journal.pone.0363755
Editor: Jing Zhao, University of Shanghai for Science and Technology, CHINA
Received: September 2, 2026; Accepted: November 12, 2026; Published: November 30, 2026
Copyright: © 2026 Wang et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: The dataset used to train the models in this study is publicly available on Zenodo: https://doi.org/10.5281/zenodo.23832028. All figures and tables presented in this manuscript are derived from this dataset through subsequent processing and analysis. The code for model training and SHAP analysis is publicly available at https://github.com/xiaogu123321/bp-shap.
Funding: This work was supported by the 2024 Qinghai “Kunlun Talents–High-End Innovation and Entrepreneurship Talent” Project (QHKLYC-GDCXCY-2024-102). The funder had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors have declared that no competing interests exist.
Introduction
Regarding conflict identification, Time to Collision (TTC) remains the most widely adopted surrogate safety measure, but its assumption of invariant motion states has been increasingly questioned [1]. Alternative indicators—including Post-Encroachment Time (PET), Time Headway (TH), Gap Time, and Deceleration Rate to Avoid Collision (DRAC)—have been proposed for diverse scenarios. Furthermore, cumulative risk metrics such as Time Exposed to TTC (TET) and Time Integrated TTC (TIT) capture accumulated risk beyond instantaneous exposure [2]. Concurrently, automated drone-video trajectory extraction has enabled high-resolution microscopic conflict analysis, overcoming the spatial limitations of fixed cameras [3].
In mixed-traffic environments, traffic volume and road geometry significantly influence conflict frequency [4,5]. Recently, prediction methodologies have expanded considerably. Beyond LSTM and GRU architectures [6,7], Transformer-based models such as FSTAN [1] and Graph Neural Networks (GNNs) [8] have emerged to capture complex spatiotemporal dependencies, revealing that center-point TTC may underestimate risks by neglecting vehicle geometry. Ensemble methods including XGBoost and Random Forest (RF) have also gained prominence for real-time conflict and crash detection: Parsa et al. [9] applied XGBoost with SHAP for real-time detection, while Iranitalab and Khattak [10] demonstrated RF’s superiority over statistical models. Recent road-safety studies compare classifiers for sequential-crash outcomes [11] and examine heterogeneity-aware duration models for conflict intervals [12]. Recent interaction studies use agent-based modelling [13], autonomous-vehicle driving strategies [14], and imitation learning [15] to examine road-user behavior. Game-theoretic frameworks further examine pedestrian–vehicle negotiations involving external human–machine interfaces at unsignalized crossings [16] and driving-mode misidentification in mixed automated–human-driven straight–left interactions at signalized intersections [17]. Ma and Yang [18] integrate static and dynamic indicators with management decision requirements for road-network node evaluation, linking multi-indicator assessment to traffic management. For the present seven-variable regression task, a BP neural network represents the nonlinear mapping between measured inputs and conflict counts. Its reported predictive performance is assessed alongside statistical and machine-learning baselines.
Despite these advances, most research prioritizes prediction accuracy over mechanism interpretation, treating models as black boxes and leaving feature interactions insufficiently quantified [19,20].
To address this gap, this study shifts focus from prediction to model-based interpretation of conflict-related factors. Using data from twelve signalized intersections, we operationally define slow-traffic conflicts, identify seven key variables, and construct a BP neural network. We integrate Mean Impact Value (MIV) [21] with SHAP [22], which provides model-specific feature ranking [23,24] and describes conditional feature contributions [25,26]. MIV and SHAP provide complementary global and local interpretations of the fitted model [27]. Cross-validation separately evaluates prediction performance on held-out observations. The contribution is the local quantification of model-related factors, their complementary interpretation, and their translation into spatial optimization, signal adaptation, and a preliminary local safety scoring system.
Finally, as this study was conducted within a single city, the transferability of the model and derived thresholds to other urban contexts requires local recalibration [28]. Application in other cities should recalibrate the quantitative parameters to local traffic composition, spatial conditions, and signal arrangements.
Materials and methods
Theoretical basis and concept definition
Definition of conflicts.
The classic definition of traffic conflict was proposed by Hydén, who situated conflict within the framework of the “Traffic Event Safety Pyramid.” He noted that conflict occupies the lower-middle portion of the pyramid, occurs far more frequently than accidents, and serves as a richer alternative safety indicator [29]. Its core elements are spatiotemporal proximity and observable evasive behavior. However, applying this definition directly to shared spaces for non-motorized traffic presents operational limitations. Non-motorized vehicles have limited braking capacity, and pedestrian evasive behaviors are often subtle. This makes it difficult to consistently capture clear evasive actions through video observation. If evasive behavior is strictly required, many dangerously close interactions will be overlooked [30–32].
For this study, conflict identification uses spatiotemporal proximity as the primary operational criterion, with evasive behavior as supplementary evidence. Specifically, within shared low-speed spaces at intersections, a conflict is counted if the spatiotemporal proximity between two slow-traffic participants exceeds a preset safety threshold—meaning a collision would occur within a very short time if neither party alters their motion, regardless of whether evasive behavior is observed. Operationally, trajectory intersection serves as the primary condition, with Time to Collision (TTC) < 3 s as the main determination threshold, while evasive behavior acts only as supplementary verification. Commonly used TTC cutoffs include 1.5, 2, and 3 s; the choice determines which interactions enter the counted outcome [33]. The 3 s criterion defines the event-counting window used in this study [30–32]. Due to the highly nonlinear and unpredictable movement characteristics of slow-moving traffic, fully automated computer vision-based extraction remains challenging. Consequently, conflicts were manually identified from 25 fps drone videos by three independent observers. For each two-minute interval and directional category, the three observers’ counts were averaged and converted to integers. Inter-rater reliability was assessed in SPSS using a two-way random-effects model with absolute agreement and average measures [ICC(2,3)]. Based on the observers’ interval-level counts, the ICC was 0.89 (95% CI: 0.79–0.95), indicating good reliability of the three-observer mean counts [34].
Participant combination and movement direction are separate classification dimensions. Recorded interactions included pedestrian–pedestrian, pedestrian–non-motorized vehicle, and non-motorized vehicle–non-motorized vehicle conflicts. Non-motorized vehicles included bicycles and electric bicycles. The directional categories were opposing-direction, same-direction, and crossing conflicts. They were mutually exclusive, and each recorded event contributed to one category. The regression target was the sum of the three recorded directional counts. Pedestrian–non-motorized vehicle interactions remain important to the physical interpretation because of the speed disparity and pedestrians’ vulnerability.
Mechanisms of conflict occurrence.
The occurrence of these conflicts follows a four-stage conceptual sequence: environment, participants, traffic conditions, and conflict (Fig 1). Road geometry and traffic control facilities form the foundational environment. Within this space, heterogeneous participants—motor vehicles, non-motorized vehicles, and pedestrians—move and interact dynamically. These interactions generate real-time traffic conditions, including participant positions, speeds, and spacings. A conflict is triggered when the trajectories of two participants are about to overlap and their spatiotemporal proximity exceeds the predefined safety threshold. If the subsequent evasive maneuver succeeds, normal traffic flow resumes. If it fails, the situation escalates into a collision [30,31,35,36]. Pedestrian–non-motorized vehicle interactions are of particular concern within the shared spaces examined in this study. The large speed differential and the high physical vulnerability of pedestrians amplify both the frequency and potential severity of these conflicts.
The dominant mechanisms differ markedly across conflict types. For same-direction conflicts, the primary driving factor is the speed differential. When a faster vehicle approaches a slower one from behind, the approaching party has a limited time window to anticipate and react to sudden path changes. Consequently, rear-end conflict risk increases with both the speed differential and traffic density. For opposing-direction conflicts, the core mechanism is the compounding effect of relative speed. The head-on geometry causes the closing speed to approximate the sum of the two individual speeds. This drastically compresses the perception–reaction time available to both parties and sharply increases avoidance difficulty [4,5]. These mechanistic differences imply that distinct conflict types are governed by different combinations of dominant factors. Accordingly, this study uses the total conflict count as the prediction target rather than modeling each type separately. We use the aforementioned mechanistic distinctions to guide the selection and interpretation of input variables. This approach ensures that each identified factor can be traced back to a physically meaningful risk pathway.
Introduction to the prediction principles of BP networks
A BP (Back Propagation) neural network is a multilayer feedforward neural network whose basic learning mechanism was proposed by Rumelhart, Hinton, and Williams [37]. Hornik et al. [38] demonstrated that a multilayer feedforward network with a sufficient number of hidden units can approximate continuous functions with arbitrary precision. This makes it well-suited for modeling complex nonlinear relationships such as traffic conflicts. Training is performed using the backpropagation algorithm. The network receives feature vectors through the input layer, undergoes nonlinear transformations in the hidden layers, and ultimately produces predicted values through the output layer, as illustrated in Fig 2. Its learning process consists of two sub-processes:
(1) Forward propagation: Input information is processed layer by layer from the input layer through the hidden layers and transmitted to the output layer. The state of neurons in each layer affects only the state of neurons in the next layer. For the j-th neuron in the i-th layer, its output can be expressed as:
(1)where f is the activation function, w is the connection weight, and b is the threshold.
Backpropagation of error: If the output layer does not produce the expected output, the output error is calculated. The error signal is then propagated back along the original connection path. The weights and thresholds of each layer are adjusted layer by layer using the gradient descent strategy to minimize the error signal. The weight update formula is:
(2)where is the learning rate, and E is the loss function (typically the mean squared error, MSE). The overall iterative training process of the network is shown in Fig 3.
For the regression problem of conflict count prediction, the BP network essentially implements a nonlinear mapping from the input feature space to the conflict count. Its core advantage lies in the fact that it does not require any prior assumptions about the form of the function. It can approximate complex nonlinear functions with arbitrary precision [38].
Screening and definition of research variables
Criteria for variable selection based on conflict mechanisms.
Predicting traffic conflicts involves modeling interactions among multiple factors within a complex traffic system. Based on the discussed mechanisms, variables were selected from five dimensions. First, traffic exposure and interaction demand are characterized by pedestrian and non-motorized vehicle volumes. Higher volumes increase spatial competition and trajectory intersection probabilities [4,5]. Second, external motor vehicle interference is characterized by right-turning motor vehicle traffic. The intermingling of motorized and non-motorized traffic disrupts slow-moving flows, serving as a key environmental trigger [6,7,39–42]. Third, road geometric constraints are characterized by sidewalk width and length. Width determines lateral evasion space, while length affects exposure duration within the conflict zone [4,5]. Fourth, travel speed differences are characterized by non-motorized vehicle speed. Higher speeds reduce perception-reaction times, making the speed differential effect more pronounced in same-direction conflicts [4,5]. Fifth, signal control conditions are characterized by pedestrian green light duration. This regulates the temporal distribution and psychological urgency among road users [6,7,39–42].Notably, capacity studies at pretimed signalized intersections show that green time and heterogeneous traffic composition jointly govern operational performance, further underpinning the relevance of signal control in mixed-traffic safety analysis [43] These five dimensions collectively form a systematic framework for conflict generation and evolution.
Variable selection based on regression analysis.
To construct a robust input vector, this study conducted a multivariate regression analysis on 11 candidate variables covering the aforementioned dimensions. Ordinary least squares (OLS) were used to estimate the linear effects of each variable on the number of conflicts. Retention criteria were set at p < 0.05 and a variance inflation factor (VIF) < 5. The regression results are detailed in Table 1.
The analysis shows that pedestrian traffic (X1), non-motorized vehicle traffic (X2), right-turning motor vehicle traffic (X3), sidewalk width (X4), sidewalk length (X5), non-motorized vehicle speed (X6), and green light duration (X7) are all statistically significant (p < 0.05). They also have controllable multicollinearity (VIF < 5). The direction of their effects aligns with theoretical expectations. Traffic volume, length, and speed exhibit positive effects, while width and green light duration exhibit negative protective effects. Conversely, motor vehicle speed, the number of conflicts in the previous time period, pedestrian walking speed, and the weather condition were excluded because their p-values were greater than 0.05. The non-significance of weather should be interpreted with caution: observations were collected exclusively under fair-weather conditions, so the sampled data contain limited weather variation. The final set of seven input variables covers five dimensions: traffic volume, spatial geometry, speed, signal control, and external disturbances. This combines statistical reliability with engineering interpretability.
Input vector numbering and explanation.
Table 2 presents the physical mechanisms and definitions of the seven input vectors.
Based on the screening of the above variables and mechanistic analysis, the seven input variables ultimately identified in this study cover measured aspects of the mechanisms underlying conflicts in shared spaces. These span five dimensions: traffic volume, spatial geometry, speed, signal control, and environmental disturbances.
Data collection and processing
Selection of survey locations.
This study selected sidewalks at twelve signalized intersections,in Xining as sample points. The selection criteria for each sample point included three aspects. First, there must be a distinct shared space where pedestrians, bicycles, and electric bicycles share the right-of-way. Second, the camera viewpoint must be clear. Third, three types of road users must be present simultaneously: pedestrians, non-motorized vehicles, and right-turning motor vehicles. Differences among intersections in terms of geometric dimensions and traffic volume composition enriched the variety of shared spaces. Observations were obtained under fair-weather conditions. The surveyed intersections used conventional signal control without an exclusive pedestrian phase.
Data collection method.
Data were collected using a drone to conduct video observations of the intersections from a bird’s-eye view. Video recordings of traffic conditions in the shared space were made at each intersection during the specified time period. The video resolution was no less than 19201080 pixels with a frame rate of 25 fps. The observation indicators included: (1) Traffic volume indicators: number of people, number of non-motorized vehicles, and number of right-turning motor vehicles. (2) Infrastructure indicators: average sidewalk width and average sidewalk length. (3) Operational indicators: average speed of non-motorized vehicles. (4) Conflict indicators: opposing-direction, same-direction, and crossing conflict counts. The categories were mutually exclusive. For interval i, the prediction target was the sum of the recorded category counts after observer averaging and integer conversion:
(3)Data preprocessing.
Considering pedestrian walking speed and the average green light duration at intersections, a 2-minute time interval covers the entire process of pedestrians crossing the shared space. It also encompasses 1–2 complete green light cycles. This ensures that traffic flow conditions within each statistical period are relatively homogeneous, thereby guaranteeing the statistical stability of conflict counts. Data were collected at 2-minute intervals, yielding a total of 360 valid time-series samples. The intersection data were collected during three time periods.
The raw data underwent cleaning and standardization. First, anomalous records caused by video obstruction or equipment malfunctions were removed. Second, missing values were imputed using the forward filling method. Finally, continuous variables were normalized to eliminate the impact of unit differences on model training. This study employed the following normalization method. Min-max normalization: The data is linearly scaled to a specified range, as expressed by the following formula:
(4)where and represent the minimum and maximum values of the variable, respectively, and a and b are the lower and upper bounds of the target interval (in this study, and b = 1).
Construction and validation of the BP neural network model
Parameter settings for the network.
The number of nodes in the model’s input layer is set to 7, corresponding to the seven selected influencing variables (X1–X7). The number of nodes in the output layer is 1, representing the predicted number of conflicts. The number of hidden layers and nodes was determined through multiple rounds of experimental comparison. This balanced optimal fitting performance with generalization ability. Ultimately, a single-hidden-layer structure was adopted. The hidden layer uses the tansig activation function, while the output layer uses the purelin linear function to allow for outputs within any real-number range.
Data split.
To fully evaluate model performance with a limited number of samples, this study employs leave-one-out cross-validation (LOOCV) for model training and validation. This method maximizes the utilization of data information and evaluates prediction for individual held-out observations. Before each training run, the input and output variables are strictly normalized to the interval . This is based solely on statistics derived from the training set, so that the held-out observation does not determine the normalization statistics.
Training strategy and performance.
This study employs a strategy combining “multiple restart selection” with “Top-K ensemble learning” to reduce uncertainty from random initial weights. We select the top K networks with the best validation performance. Their predicted mean is then used as the final output. Training is performed using the Levenberg-Marquardt algorithm, which has been proven suitable for training medium-sized feedforward neural networks [44]. An early stopping mechanism is also introduced to prevent overfitting.
Following the above optimization process, the model achieved excellent performance under LOOCV. The Mean Absolute Error (MAE) was 0.90 times/2 min, the Mean Absolute Percentage Error (MAPE) was only 5.89%, and the coefficient of determination R2 exceeded 0.95. The measured and predicted values are tightly clustered around the ideal diagonal line on the scatter plot. This indicates that the model can faithfully reproduce the complex mapping relationship between input features and the number of conflicts. It serves as a reliable foundation for subsequent weight analysis.
As can be seen from the fitted images in Fig 4, the predicted points for the vast majority of samples lie close to the ideal diagonal. Only a few samples show noticeable deviations. The error distribution is concentrated and shows no obvious systematic bias. This indicates that the model can reliably capture the trend of conflict counts as features change and provides accurate predictions under the reported sample-level LOOCV.
Model comparison and baseline evaluation.
To empirically demonstrate the genuine performance advantage of the proposed BP neural network over alternative methods within the recorded dataset, a comparative analysis was conducted against four representative baseline models: Multiple Linear Regression (MLR), Autoregressive Integrated Moving Average (ARIMA), Support Vector Regression (SVR), and Random Forest (RF). To ensure a rigorous and fair comparison, all baseline models were tuned to their respective optimal configurations (e.g., via grid search and cross-validation for hyperparameter tuning). For the proposed BP model, its optimal configuration—utilizing Leave-One-Out Cross-Validation (LOOCV) combined with the Top-K ensemble strategy, as detailed above—was employed. XGBoost and LightGBM were added as comparison models using the same seven predictors and total conflict target.
Table 3 presents the performance metrics of the seven models, including the added XGBoost and LightGBM benchmarks, under their respective best configurations. The optimized BP neural network had better reported metrics than the baseline models across all evaluation metrics, achieving the lowest RMSE (1.863) and MAE (0.90), and the highest R2 (0.953). The linear MLR model produced lower prediction accuracy (R2 = 0.786, MAPE = 23.32%), supporting the use of nonlinear mappings for this dataset. The ARIMA model (R2 = 0.748), designed primarily for univariate time-series forecasting, struggled to effectively incorporate the multivariate spatial and temporal features simultaneously. The tree-based RF (R2 = 0.923) and kernel-based SVR (R2 = 0.844) models showed moderate to good performance, demonstrating their capability to handle certain nonlinearities but still falling short of the BP network’s robust mapping capacity for this specific dataset. The added XGBoost LOOCV result was R2 = 0.863, RMSE = 2.953, MAE = 2.290, and MAPE = 12.43%; the added LightGBM result was R2 = 0.792, RMSE = 3.610, MAE = 3.010, and MAPE = 20.66%. The BP estimates remain the strongest in this table, and BP is retained as the primary prediction model for the MIV–SHAP interpretation. Three factors justify retaining BP as the primary model. First, under an identical LOOCV protocol with identical inputs, BP outperforms all six baselines across every metric, isolating model-class effects from data-split effects. Second, with seven predictors and 360 samples, a single-hidden-layer network offers sufficient approximation capacity [38] while keeping the parameter count far below data-hungry deep architectures, limiting variance. Third, overfitting is further mitigated by early stopping, Top-K ensembling, and fold-wise normalization derived from training data alone.
Results
To analyze the conflict influence mechanisms captured by the BP network, this paper constructs a two-level analysis framework combining MIV and SHAP. The physical explanations below are used to interpret model-based associations; MIV and SHAP do not estimate causal effects of engineering interventions.
Global MIV analysis
The Mean Impact Value (MIV) method quantifies the global average contribution of each variable within the fitted model. It does this by applying small perturbations to the variables at the input and observing the average change in the model’s output [21]. The contribution rates and absolute MIV values of the seven input variables are presented in Fig 5.
The following key findings can be drawn from the MIV analysis results:
- Infrastructure geometry is the core determinant: Sidewalk length ranks first with a contribution rate of 20.9% and an absolute MIV value of 3.316. This indicates that the longitudinal scale of pedestrian pathways is the primary spatial constraint determining conflict frequency. The longer the sidewalk, the greater the exposure time and interaction distance of participants within the conflict zone. Consequently, the probability of conflicts occurring increases.
- Signal control and travel speed have a significant impact: Green light duration and non-motorized vehicle speed tied for second place. Each has a contribution rate of 17.7% and MIV values of 2.816 and 2.810, respectively. This finding indicates that the influence of signal control parameters and travel speed on conflicts cannot be overlooked. Their overall average contribution is comparable to that of spatial geometric factors.
- Motor vehicle interference is a significant external trigger: The number of right-turning motor vehicles accounts for 14.0% of the contribution, with an MIV value of 2.228. This reflects the disruptive effect of motor vehicle-non-motorized vehicle intermingling on the continuity of the non-motorized traffic flow.
- Traffic volume has a stable impact: The contribution rates of non-motorized vehicles and pedestrians were 11.9% and 9.3%, respectively. This indicates that traffic density is a stable driver of conflicts.
- The global average impact of sidewalk width is relatively limited: The MIV contribution rate for sidewalk width is only 8.5%, ranking last. This result suggests that the impact of width on conflicts may not follow a simple global linear relationship. It is highly dependent on other conditions, requiring in-depth analysis using the SHAP method.
In summary, the MIV analysis identified three core influence dimensions: geometric dimensions, signal control, and speed conditions. However, it only reveals average responses to input perturbations within the model. It cannot demonstrate the nonlinear mechanisms of these features across different value ranges or in combination with other features.
In-depth analysis of feature importance based on SHAP
The SHAP method relies on Shapley values from game theory. It assigns fair contribution values to each feature for every sample. This provides local explanations while maintaining global consistency [22]. Recent studies confirm its effectiveness in feature selection and uncovering complex driving factors [23,24]. Additionally, SHAP excels at quantifying interaction effects among multiple variables in spatial analyses [25,26]. SHAP explanations are model-specific [27]. In this section, SHAP values are calculated for the single BP network retrained on all 360 records. This is the prediction function explained here; the Top-K mean described above is used for the reported LOOCV predictions. We conduct an in-depth analysis across three levels: overall influence patterns, individual feature mechanisms, and inter-feature correlations.
Overall feature influence patterns.
To visually demonstrate the comprehensive impact of each feature on the model’s output, we first plot a SHAP value swarm plot. Fig 6 shows the displayed feature order. Each point represents a sample, with color indicating the magnitude of the feature’s original value and position indicating the SHAP value.
It can be clearly observed from Fig 6 that the displayed feature order differs from the MIV ranking. The resulting order is: Non-motorized Vehicle Volume > Sidewalk Width > Non-motorized Vehicle Speed > Sidewalk Length > Pedestrian Volume > Right-turning Vehicle Volume > Green Light Duration. This ranking differs significantly from the MIV results, highlighting the varying complexity of the underlying feature mechanisms. The discrepancy arises because MIV averages the prediction response to input perturbations, whereas SHAP attributes the prediction of each sample to the features relative to a reference prediction.
Mechanistically, the dominant positive effect of non-motorized vehicle volume occurs because increased traffic leads to an exponential, rather than linear, rise in spatial density and trajectory intersection probability within shared spaces, severely compressing the time window available for evasion. Sidewalk width exhibits a strong protective effect: wider sidewalks directly provide greater lateral evasion space, fundamentally reducing the spatiotemporal proximity among heterogeneous road users. The displayed SHAP values for sidewalk width are negative relative to the reference prediction, whereas its average perturbation contribution in MIV is limited. Non-motorized vehicle speed ranks third in the SHAP importance, yet its effects are highly scattered and conditional, showing no monotonic dependence on its raw value; the underlying mechanisms are examined in detail in the following subsection. Finally, green light duration demonstrates a clear negative effect: longer green times alleviate the psychological time pressure on road users, thereby smoothing traffic flow and reducing rush-induced risky behaviors.
Detailed analysis of the mechanisms of key features.
To thoroughly analyze how key features influence the prediction of individual samples, we selected the most important features and their corresponding SHAP value scatter plots for detailed interpretation.
Number of non-motorized vehicles—The strongest positive driver.
Fig 7 reveals the nonlinearity and conditional nature of the influence of the number of non-motorized vehicles. The correlation coefficient between “Vehicles” and its SHAP values is as high as 0.97. This indicates an extremely strong linear positive correlation. SHAP values for high-traffic samples are concentrated in the range of +4 to +8, while those for low-traffic samples are concentrated in the range of −4 to −7.
Mechanism explanation: The number of non-motorized vehicles directly determines the traffic density and intensity of competition in shared spaces. As non-motorized vehicle traffic increases, space occupancy rises and the probability of trajectory intersections increases. The difficulty of yielding to others intensifies, thereby significantly driving up conflict prediction values. This is the most direct and stable driver of conflict.
Sidewalk width—A clear negative protective factor.
Fig 8 shows negative SHAP values for sidewalk width across the displayed samples. The reported feature–SHAP correlation of 0.72 describes variation in these attributions, whose magnitude approaches zero as width increases; it does not denote a negative slope. SHAP values span approximately −4.5 to −1, with larger widths generally closer to zero.
Mechanism explanation: Sidewalk width directly determines the lateral evasion space available to pedestrians and non-motorized vehicles. The wider the sidewalk, the greater the lateral clearance available to participants when traveling side-by-side or crossing paths. This makes evasion easier and correspondingly reduces the risk of conflict. This contrasts with the relatively low contribution rate of width in the MIV analysis. The two summaries describe different quantities: width’s average perturbation contribution in MIV and its negative SHAP attribution relative to the reference prediction.
Sidewalk length—A consistent positive risk factor.
Fig 9 reveals that the correlation coefficient between Sidewalk Length and its SHAP values is 0.85. This indicates a strong positive relationship. SHAP values for samples with high sidewalk lengths are concentrated in the range of +1 to +4. Those for samples with low sidewalk lengths are concentrated in the range of −1–0.
Mechanism explanation: Sidewalk length determines the longitudinal distance that participants must traverse together or in parallel within the conflict zone. The longer the length, the longer the exposure time. The probability of trajectory intersections and evasive maneuvers increases; consequently, the conflict prediction value increases. This is fully consistent with the conclusion from the MIV analysis that it has the highest contribution rate. In this study, the conflict zone is not an abstract concept but is physically bounded by the shared space at the intersection. “Sidewalk length” specifically refers to the longitudinal physical span of the shared pathway that participants must traverse from entering the potential conflict area to exiting it. Therefore, it serves as a direct proxy for exposure distance and exposure time.
Green light duration—Strong negative protective factor.
Fig 10 shows the distribution of green-time attributions. SHAP values for samples with longer green light durations are mostly negative, while those for samples with shorter green light durations tend to be positive.
Mechanism explanation: Longer green light durations provide pedestrians and non-motorized vehicles with more ample time to cross. This reduces the tendency to rush or accelerate due to time constraints. This results in smoother traffic flow and effectively reduces conflicts. Conversely, excessively short green light durations create time pressure, inducing risky behavior and significantly increasing the risk of conflicts.
Nonmotor speed—A feature with complex effects.
Fig 11 shows that the correlation coefficient between Nonmotor Speed and its SHAP values is only 0.05. This indicates virtually no correlation. The distribution of SHAP values is relatively dispersed. Samples with both high and low speed values exhibit both positive and negative SHAP values, with no clear pattern.
Mechanism explanation: The impact of non-motorized vehicle speed on conflicts is twofold. On the one hand, higher speeds result in shorter anticipation and reaction times, making it more difficult to avoid hazards. On the other hand, higher speeds mean shorter transit times through conflict zones, reducing exposure time. This contradictory effect means there is no simple linear relationship between speed and conflicts. Its impact is highly dependent on other scenario conditions.
Pedestrians—A feature with limited but contextual impact.
Fig 12 illustrates the SHAP value distribution for pedestrian volume, indicating a moderate positive correlation. The SHAP values range from −2 to +6 but concentrate heavily near zero. While high and low pedestrian volumes correspond to positive and negative SHAP values, respectively, the limited overall dispersion suggests a constrained predictive impact.
This constrained impact reflects three underlying mechanisms. Kinematically, pedestrians act as the passive party in conflicts due to their slower speeds and predictable trajectories, limiting their ability to drive conflict dynamics. Statistically, pedestrian volume exhibits lower variance than non-motorized vehicle volume across the observed intersections, which reduces model sensitivity and compresses SHAP values. Additionally, the positive correlation between these two flows allows the dominant non-motorized vehicle volume feature to absorb much of the explanatory power, leaving pedestrian volume with only a residual effect. Consequently, while pedestrian volume does contribute positively to conflict prediction, its impact is structurally moderated by these kinematic, statistical, and correlational constraints.
Correlation between feature values and impact values, and interactions among features.
Through heatmaps and correlation matrices of SHAP values and feature values, the degree of linearity in feature influence and the coupling relationships among features can be quantitatively assessed.
The heatmap (Fig 13) and correlation matrix (Fig 14) visually illustrate how SHAP values and feature values vary across sample indices for all samples. Fig 14 is labelled “SHAP Values vs Feature Values”; its entries are interpreted using that displayed object, rather than as pairwise correlations between raw input variables or SHAP interaction values. Combined with the correlation matrix plot, these provide important insights.
From the correlation matrix in Fig 14, the following key findings emerge:
- Associations in the displayed matrix: The Vehicles-row/Right-turn Veh.-column entry is 0.90; Vehicles-row/Sidewalk Width-column is 0.67; Nonmotor Speed-row/Vehicles-column is 0.66; and Sidewalk Length-row/Green Time-column is 0.37. These entries describe associations between the row and column quantities in the SHAP-versus-feature display.
- Alignment between features and attributions: The individual feature plots show alignment between some input values and their model attributions. The absolute correlation coefficients between SHAP values and Vehicles (0.97), Sidewalk Length (0.85), Sidewalk Width (0.72), and Pedestrians (0.71) all exceed 0.70. These are feature–attribution correlations reported with the individual plots; they describe how attributions vary with input values, within the fitted model. The correlation for Nonmotor Speed (0.05) is extremely low, confirming the complexity of its underlying mechanism.
- Conditional impact of green light duration: Fig 10 shows mostly negative attributions for longer green light durations and positive attributions for shorter durations. In Fig 14, the Green Time column contains entries of −0.29 for the Vehicles row, −0.31 for the Sidewalk Width row, and −0.19 for the Nonmotor Speed row. These entries describe the displayed SHAP-versus-feature associations. The crossing-time explanation above provides the physical interpretation of the green-time pattern.
Discussion
Through a dual quantitative analysis using MIV and SHAP, this study has quantified feature contributions and model-response patterns relevant to conflict occurrence. Based on this, this section translates the quantitative relationships represented by the model into preliminary engineering improvement strategies for the surveyed Xining settings.
Spatial optimization and source separation strategies
For relatively stable static characteristics, such as sidewalk geometry and traffic volume, a “spatial optimization and source separation” strategy is adopted.
Risk compensation mechanism for sidewalk length.
SHAP analysis indicates that sidewalk length is positively associated with model predictions in the sampled settings. We applied the Jenks natural breakpoint method to the SHAP value distribution to categorize length into three risk levels. These are 15 m (low risk), 15–20 m (medium risk), and >20 m (high risk). The corresponding recommended minimum green light durations are 22 s, 26 s, and 30 s, respectively. For known long-distance pedestrian crossings, if the physical distance cannot be shortened, the green light duration must be extended as compensation. This is calculated according to the following formula:
(5)where L is the sidewalk length (m), 0.65 m/s is the speed threshold for elderly pedestrians to cross at a comfortable pace, and Trisk is the risk compensation duration (0, 2, and 4 s for low, medium, and high risk, respectively).
Optimal range for sidewalk width control.
SHAP analysis shows consistently negative width contributions relative to the model reference in the plotted observations. These contributions describe fitted predictions; they do not estimate the causal effect or diminishing return of widening. We combined this with non-motorized traffic flow classifications to make specific recommendations. The minimum width should be 3.0 m for low-traffic scenarios, 3.5 m for medium-traffic, and 4.0 m for high-traffic scenarios. If the width already exceeds these values, the marginal safety benefits of further widening are limited. In such cases, priority should be given to clarifying the right-of-way through colored pavement and physical barriers instead of physical widening.
Active separation of non-motorized traffic from right-turn interference.
Non-motorized traffic volume is the strongest positive contributor in the displayed SHAP analysis, while right-turning motor vehicle traffic represents a relevant external exposure. When right-turning motor vehicle traffic is high, right-turn yield signs or dedicated signal phases should be installed. At high-volume intersections, time separation between right-turning motor vehicles and non-motorized traffic should be implemented.
Dynamic adaptive strategies for signal timing
The SHAP analysis shows predominantly negative contributions at longer green light durations and positive contributions at shorter durations in the plotted observations. Green light duration is therefore a controllable parameter in the proposed local signal-timing strategies.
Mismatch diagnosis and priority improvement mechanism.
A “mismatch index” is defined to measure the degree of alignment between signal timing and the needs of non-motorized traffic:
(6)where is calculated using Eq (5). A mismatch index <80% indicates a severe mismatch, requiring priority remediation within 3 months; 80%–90% indicates a moderate mismatch, to be included in a 6-month improvement plan; 90% indicates basic alignment, requiring only routine optimization.
Dynamic delay mechanism during peak hours.
High non-motorized traffic volume and short available green time motivate joint demand and timing assessment during peak hours. Therefore, we recommend dynamically extending green light durations in real time during peak hours. When non-motorized traffic exceeds a moderate level, the green light duration should be increased by 5%–15% above the baseline value, depending on the specific volume level.
Synergistic optimization of feature interactions.
The feature and attribution patterns motivate reviewing spatial and signal conditions together. Coordinated assessment considers the pairing of wide sidewalks with short green light durations, and high traffic volume with high speeds. The correlation display describes feature–attribution associations rather than estimated intervention or SHAP interaction effects. This safety-oriented coordination between space and time mirrors integrated optimization frameworks that jointly adjust lane allocation and signal control plans at a single intersection, which have so far targeted delay minimization rather than conflict reduction [45]. Our findings extend this integrated spatiotemporal perspective to non-motorized traffic safety. When widening sidewalks, verify that green light duration is sufficient. When extending sidewalks, ensure that green light duration is extended accordingly to guarantee a mismatch index 90%.
Intersection pedestrian and cyclist safety scoring system
To facilitate engineering applications and dynamic management, a safety scoring model is constructed based on the above quantitative analysis:
(7)where represents the length risk value, represents the traffic volume risk value, represents the signal timing mismatch value, and represents the width deficiency value. The weight is calculated based on SHAP global importance.
A score of 80 or higher is rated “Good” (maintain current status), 60–79 is rated “Fair” (monitor potential risks), and <60 is rated “Poor” (include on the priority improvement list). This scoring system can be updated quarterly to track improvement progress and evaluate the effectiveness of measures.
The feature importance estimates, proposed thresholds, compensation parameters, and score weights refer to the surveyed intersections in Xining. They provide a preliminary local engineering framework. The reference widths and times, compensation allowances, priority intervals, extension percentages, and rating boundaries are proposed local settings; model attributions do not establish universal design standards. The observations were collected in fair weather; bicycle/electric-bicycle composition, detailed layout, pedestrian phase configuration, and right-turn facilities were not represented by separate predictors. Omitted site characteristics may be reflected in the importance assigned to the measured geometry, flow, and signal variables. MIV and SHAP quantify statistical model relationships, so the proposed numerical settings express engineering recommendations rather than estimated causal intervention effects. Application to another city or intersection requires local recalibration of the thresholds, signal parameters, and scoring weights to its traffic and facility conditions.
Conclusion
This study investigates slow-traffic conflict counts at urban signalized intersections by predicting conflict frequency and identifying key influencing factors. We propose a framework integrating a BP neural network evaluated by sample-level LOOCV with MIV and SHAP interpretability methods, utilizing drone-collected data from twelve intersections. Results reveal that sidewalk length is the largest normalized MIV contributor (20.9%), while sidewalk width, though modest in its global average effect (8.5%), has consistently negative predictive contributions relative to the model reference in the SHAP analysis; together these two geometric attributes account for 29.4% of normalized MIV importance. Non-motorized vehicle volume is the strongest positive contributor in the displayed SHAP analysis, and right-turning vehicle volume represents an important external-exposure factor in the model. Green light duration, which ranks second in the global MIV analysis (17.7%), shows predominantly negative SHAP contributions for longer durations in the plotted observations.
Building on these findings, we propose preliminary local safety strategies spanning spatial optimization, signal timing, and dynamic adaptation. A central principle is coordinating spatial and signal measures; for instance, sidewalk widening should be reviewed together with green light durations. Additionally, we developed a preliminary local safety scoring system providing a quantitative basis for intersection-level assessment, forming an integrated data–model–strategy framework.
SHAP contributions quantify predictive associations in the fitted BP model. The identified feature rankings, engineering formulae, and safety-score parameters provide a preliminary framework for the surveyed Xining settings. Application to other intersections or cities requires recalibration to local traffic characteristics and spatial and signal conditions.
Supporting information
S1 File. Raw data.
The dataset comprises 360 two-minute modelling samples from twelve signalized intersections in Xining.
https://doi.org/10.1371/journal.pone.0363755.s001
(XLSX)
S2 Code. BP neural network and SHAP analysis code.
https://doi.org/10.1371/journal.pone.0363755.s002
(ZIP)
Acknowledgments
The authors gratefully acknowledge Qinghai Minzu University for providing essential research facilities and academic support. We also extend our sincere gratitude to our academic advisors for their invaluable guidance and constructive feedback. Their continuous encouragement was instrumental in the successful completion of this study.
References
- 1. Liu Z, Xiang Q. FSTAN: A Two-Stage Traffic Conflict Prediction Framework Based on Vehicle Trajectory. IEEE Trans Instrum Meas. 2025;74:1–13.
- 2. Minderhoud MM, Bovy PH. Extended time-to-collision measures for road traffic safety assessment. Accid Anal Prev. 2001;33(1):89–97. pmid:11189125
- 3. Barmpounakis EN, Geroliminis N. On the new era of urban traffic monitoring with massive drone data: The pNEUMA large-scale field experiment. Transp Res Part C: Emerg Technol. 2020;113:38–50.
- 4. Liang X, Meng X, Zheng L. Investigating conflict behaviours and characteristics in shared space for pedestrians, conventional bicycles and e-bikes. Accid Anal Prev. 2021;158:106167. pmid:34053614
- 5. Petzoldt T, Schleinitz K, Heilmann S, Gehlert T. Traffic conflicts and their contextual factors when riding conventional vs. electric bicycles. Transp Res F: Traffic Psychol Behav. 2017;46:477–90.
- 6. Zhang S, Abdel-Aty M, Cai Q, Li P, Ugan J. Prediction of pedestrian-vehicle conflicts at signalized intersections based on long short-term memory neural network. Accid Anal Prev. 2020;148:105799. pmid:33080377
- 7. Zhang S, Abdel-Aty M, Wu Y, Zheng O. Modeling pedestrians’ near-accident events at signalized intersections using gated recurrent unit (GRU). Accid Anal Prev. 2020;148:105844. pmid:33125922
- 8. Jiang W, Luo J. Graph neural network for traffic forecasting: A survey. Expert Syst Appl. 2022;201:117101.
- 9. Parsa AB, Movahedi A, Taghipour H, Derrible S, Mohammadian AK. Toward safer highways, application of XGBoost and SHAP for real-time accident detection and feature analysis. Accid Anal Prev. 2020;136:105405. pmid:31864931
- 10. Iranitalab A, Khattak A. Comparison of four statistical and machine learning methods for crash severity prediction. Accid Anal Prev. 2017;108:27–36. pmid:28841408
- 11. Li G, Liu J, Ardakani MK, Tang X, Liu X, He Q. Does preceding crash information improve classification of injury involvement in subsequent expressway crashes? The role of spatiotemporal linkage. Traffic Inj Prev. 2026;:1–9. pmid:42627980
- 12. Li G, Ji S, Cheng W, Wang W, Yan X, Yang Z, et al. A new framework for modelling traffic conflict interval time based on correlated random parameter duration model with heterogeneity in means and variances. Accid Anal Prev. 2026;224:108282. pmid:41166799
- 13. Li H, Zhao B, Zhang Z, Zhang Y, Ren G. Modeling pedestrian-vehicle interactions at unsignalized mid-block crosswalk under automated vehicle mixed traffic flow conditions: An agent-based approach. J Traffic Transp Eng (Engl Ed). 2026;13(1):205–28.
- 14. Chen X, Xi Z, Xu Y, Xiong Z, Ding X, Wang H. Balancing safety and efficiency for autonomous vehicles at urban uncontrolled crosswalk: challenges and countermeasures. Accid Anal Prev. 2025;220:108111. pmid:40517578
- 15. Wang T, Kieu M, Li C, Chen W, Ge Y-E. Deconstructing driving behaviors in interactions with pedestrians at uncontrolled crosswalks: an imitation learning method. Transp Res Part C Emerg Technol. 2026;184:105508.
- 16. Wang J, Ma H, Yang C. Automated vehicle may not adopt fully conservative driving strategies: A game-theoretic framework for pedestrian-vehicle interactions at unsignalized crossing considering external human–machine interfaces. Transp Res Part C Emerg Technol. 2026;188:105669.
- 17. Wang J, Zhou L, Yang C. Decision model based on driving-mode misidentification for mixed AV–HDV straight–left conflict interactions at two-phase signalized intersections. Phys A: Stat Mech Appl. 2025;677:130943.
- 18. Ma Z, Yang H. A node importance evaluation method integrating static and dynamic indicators with management decision requirements. Sci Rep. 2026;16(1):23093. pmid:42362646
- 19. Cao J, Chen J, Guo X, Wang L. Trajectory data-based severe conflict prediction for expressways under different traffic states. Phys A: Stat Mech Appl. 2023;621:128595.
- 20. Yuan R, Abdel-Aty M, Zhao Y, Xiang Q. Studying merge behaviour in weaving segments: insights from traffic conflict prediction and risk factors analysis. Transp A: Transp Sci. 2025;:1–26.
- 21. Olden JD, Jackson DA. Illuminating the “black box”: a randomization approach for understanding variable contributions in artificial neural networks. Ecol Model. 2002;154(1–2):135–50.
- 22. Lundberg SM, Lee SI. A unified approach to interpreting model predictions. Adv Neural Inform Process Syst. 2017;30:4765–74.
- 23. Hancock JT, Khoshgoftaar TM, Liang Q. A problem-agnostic approach to feature selection and analysis using SHAP. J Big Data. 2025;12(1).
- 24. Wang H, Liang Q, Hancock JT, Khoshgoftaar TM. Feature selection strategies: a comparative analysis of SHAP-value and importance-based methods. J Big Data. 2024;11(1):44.
- 25. Deng Y, Jiang W, Ling Z, Liu L, Sun S. Revealing the driving factors of urban wetland park cooling effects using Random Forest regression and SHAP algorithm. Sustain Cities Soc. 2025;120:106151.
- 26. Zhu S, Yan Y, Zhao B, Wang H. Assessing the impact of adjacent urban morphology on street temperature: A multisource analysis using random forest and SHAP. Build Environ. 2025;267:112326.
- 27. Takefuji Y. Beyond XGBoost and SHAP: Unveiling true feature importance. J Hazard Mater. 2025;488:137382. pmid:39879771
- 28. Zheng L, Wei W. Traffic conflict-based crash risk estimation: machine learning meets extreme value theory. Transp A: Transp Sci. 2025;:1–29.
- 29.
Hydén C. The development of a method for traffic safety evaluation: The Swedish traffic conflicts technique. Lund: Lund Institute of Technology; 1987.
- 30. Essa M, Sayed T. Full Bayesian conflict-based models for real time safety evaluation of signalized intersections. Accid Anal Prev. 2019;129:367–81. pmid:30293598
- 31. Johnsson C, Laureshyn A, De Ceunynck T. In search of surrogate safety indicators for vulnerable road users: a review of surrogate safety indicators. Transp Rev. 2018;38(6):765–85.
- 32. Zheng L, Sayed T. Comparison of Traffic Conflict Indicators for Crash Estimation using Peak Over Threshold Approach. Transp Res Rec. 2019;2673(5):493–502.
- 33. Zheng L, Sayed T, Tageldin A. Before-after safety analysis using extreme value theory: A case of left-turn bay extension. Accid Anal Prev. 2018;121:258–67. pmid:30292865
- 34. Koo TK, Li MY. A Guideline of Selecting and Reporting Intraclass Correlation Coefficients for Reliability Research. J Chiropr Med. 2016;15(2):155–63. pmid:27330520
- 35. Arun A, Haque MM, Bhaskar A, Washington S, Sayed T. A systematic mapping review of surrogate safety assessment using traffic conflict techniques. Accid Anal Prev. 2021;153:106016. pmid:33582529
- 36. Zheng L, Sayed T, Mannering F. Modeling traffic conflicts for use in road safety analysis: A review of analytic methods and future directions. Anal Methods Accid Res. 2021;29:100142.
- 37. Rumelhart DE, Hinton GE, Williams RJ. Learning representations by back-propagating errors. Nature. 1986;323(6088):533–6.
- 38. Hornik K, Stinchcombe M, White H. Multilayer feedforward networks are universal approximators. Neural Networks. 1989;2(5):359–66.
- 39. Formosa N, Quddus M, Ison S, Abdel-Aty M, Yuan J. Predicting real-time traffic conflicts using deep learning. Accid Anal Prev. 2020;136:105429.
- 40. Fu C, Liu J, Liu H, Wang X, Lu Z, Ou J, et al. Real‐Time Traffic Conflict Prediction at Intersections: A Novel Approach Integrating Statistical Models and Machine Learning. J Adv Transp. 2025;2025(1):2239983.
- 41. Zheng L, Sayed T. A novel approach for real time crash prediction at signalized intersections. Transp Res Part C Emerg Technol. 2020;117:102683.
- 42. Zheng L, Hu Z, Sayed T. Traffic Conflict Prediction at Signal Cycle Level Using Bayesian Optimized Machine Learning Approaches. Transp Res Rec. 2022;2677(5):183–95.
- 43. Sugiarto S, Saleh SM, Darma Y, Rusdi M, A’yuni Q, Fazila TS, et al. Base saturation flow rate (BSFR) and its effect on performance of pretimed signalized intersection with non-lane based urban heterogeneous traffic. PLoS One. 2024;19(7):e0306112. pmid:38968234
- 44. Hagan MT, Menhaj MB. Training feedforward networks with the Marquardt algorithm. IEEE Trans Neural Netw. 1994;5(6):989–93. pmid:18267874
- 45. Yang Z, Wu L, Li G, Xu Y, Liu W. Integrated optimization of spatiotemporal resources at the intersection for delay minimization using genetic algorithm. PLoS One. 2026;21(1):e0339519. pmid:41575968

관련 뉴스