Semantic4Safety: Causal Insights from Zero-shot Street View Imagery Segmentation for Urban Road Safety

Huan Chen, Ting Han, Siyu Chen, Zhihao Guo, Yiping Chen, Meiliu Wu

Abstract

Street-view imagery (SVI) offers a fine-grained lens on traffic risk, yet two fundamental challenges persist: (1) how to construct street-level indicators that capture accident-related features, and (2) how to quantify their causal impacts across different accident types. To address these challenges, we propose Semantic4Safety, a framework that applies zero-shot semantic segmentation to SVIs to derive 11 interpretable streetscape indicators, and integrates road type as contextual information to analyze approximately 30,000 accident records in Austin. Specifically, we train an eXtreme Gradient Boosting (XGBoost) multi-class classifier and use Shapley Additive Explanations (SHAP) to interpret both global and local feature contributions, and then apply Generalized Propensity Score (GPS) weighting and Average Treatment Effect (ATE) estimation to control confounding and quantify causal effects. Results uncover heterogeneous, accident-type-specific causal patterns: features capturing scene complexity, exposure, and roadway geometry dominate predictive power; larger drivable area and emergency space reduce risk, whereas excessive visual openness can increase it. By bridging predictive modeling with causal inference, Semantic4Safety supports targeted interventions and high-risk corridor diagnosis, offering a scalable, data-informed tool for urban road safety planning.

Introduction

Traditional traffic safety research has long relied on historical accident data to identify "hotspots." While knowing where accidents occur is valuable, urban planners require an understanding of why they happen to design effective interventions. Street View Imagery (SVI) provides a high-resolution perspective of the urban environment, but extracting actionable safety insights requires overcoming two major hurdles: the construction of meaningful, interpretable features and the bridge from simple correlation to causal understanding.

Semantic4Safety addresses these challenges by combining computer vision with causal inference. This framework moves beyond "black-box" predictions to quantify how specific environmental features—such as visual openness or background complexity—directly influence various types of traffic risks.

Methodology

The Semantic4Safety framework employs a structured approach to bridge the gap between raw imagery and causal insights.

Zero-shot Semantic Segmentation

To extract meaningful features from over 120,000 images in Austin, Texas, the framework utilizes Vireo, a zero-shot semantic segmentation model. This approach avoids the need for labor-intensive manual labeling or task-specific retraining. The model identifies 19 semantic categories, which are then aggregated into 11 "Streetscape Indicators" across four domains: Traffic Safety Risk (e.g., Sight Obstruction), Spatial Structure (e.g., Visual Openness), Environmental Elements (e.g., Vegetation Coverage), and Traffic Facilities (e.g., Vehicle Density).

Zero-shot semantic segmentation is used to identify 19 semantic categories from street-view imagery, forming the basis for interpretable streetscape indicators.

Predictive Modeling and Causal Inference

The framework integrates these indicators with road network data from OpenStreetMap and accident records from the Austin Open Data Portal. An eXtreme Gradient Boosting (XGBoost) multi-class classifier is trained to predict five distinct accident types: Collision, Crash, Vehicle Breakdown, Traffic Hazard, and Debris.

The framework employs an XGBoost classifier to model the relationship between streetscape features and accident types.

To interpret the model, Shapley Additive Explanations (SHAP) are used to visualize feature contributions. Finally, to establish causality, the researchers apply Generalized Propensity Score (GPS) weighting to balance confounding variables (such as road type) and estimate the Average Treatment Effect (ATE). This results in a "Causal Effect Matrix" that quantifies the impact of each feature on specific accident risks.

Key Insights and Results

The study reveals that environmental features have heterogeneous and often counter-intuitive effects on road safety:

  • The Openness Paradox: Higher visual openness was found to increase accident risk, likely due to higher driving speeds or decreased driver vigilance in unobstructed environments.
  • Non-linear Complexity: Background complexity exhibits a threshold effect. While moderate complexity increases risk in busy urban areas, excessive complexity may trigger more cautious driving, thereby reducing risk.
  • Safety Buffers: Consistent with engineering intuition, larger Drivable Area Ratios (DAR) and Emergency Spaces (ES) were found to reduce risk across nearly all accident categories.
  • Accident-Specific Drivers: Different accident types are driven by different factors. For instance, vehicle breakdowns are highly sensitive to sight obstructions, whereas crashes are more influenced by road geometry.

Quantitatively, the top three indicators—Background Complexity (24%), Road Type (19.2%), and Vegetation Coverage (14.2%)—accounted for over 57% of the total predictive importance. Furthermore, over 90% of the analyzed feature-accident pairs showed statistically significant causal effects ($p < 0.05$).

Conclusion and Future Directions

Semantic4Safety demonstrates the power of combining zero-shot computer vision with causal modeling for urban safety planning. By providing quantifiable causal impacts, the framework allows city officials to diagnose high-risk corridors and prioritize targeted infrastructure interventions.

Future work will focus on improving temporal alignment between imagery and accident records, incorporating finer-grained road geometry (e.g., lane widths), and accounting for environmental variables such as weather and lighting conditions to further refine the causal model.

Summary updated

Abstract

Street-view imagery (SVI) offers a fine-grained lens on traffic risk, yet two fundamental challenges persist: (1) how to construct street-level indicators that capture accident-related features, and (2) how to quantify their causal impacts across different accident types. To address these challenges, we propose Semantic4Safety, a framework that applies zero-shot semantic segmentation to SVIs to derive 11 interpretable streetscape indicators, and integrates road type as contextual information to analyze approximately 30,000 accident records in Austin. Specifically, we train an eXtreme Gradient Boosting (XGBoost) multi-class classifier and use Shapley Additive Explanations (SHAP) to interpret both global and local feature contributions, and then apply Generalized Propensity Score (GPS) weighting and Average Treatment Effect (ATE) estimation to control confounding and quantify causal effects. Results uncover heterogeneous, accident-type-specific causal patterns: features capturing scene complexity, exposure, and roadway geometry dominate predictive power; larger drivable area and emergency space reduce risk, whereas excessive visual openness can increase it. By bridging predictive modeling with causal inference, Semantic4Safety supports targeted interventions and high-risk corridor diagnosis, offering a scalable, data-informed tool for urban road safety planning.
BibTeX
@inproceedings{chen2025semantic,
  author = {Huan Chen and Ting Han and Siyu Chen and Zhihao Guo and Yiping Chen and Meiliu Wu},
  title = {{Semantic4Safety: Causal Insights from Zero-shot Street View Imagery Segmentation for Urban Road Safety}},
  booktitle = {GeoAI@SIGSPATIAL},
  year = {2025},
  url = {https://openreview.net/forum?id=4H232tLJ0G},
}
Figure