Edge-Assisted Crowdsensing for Explainable Cyclist Safety Perception
Organizations: School of EECS, Queen Mary University of London, London, UK · School of Public Health, Imperial College London, London, UK · Department of Engineering, University of Cambridge, Cambridge, UK
Abstract
Cyclist fatality rates remain high despite policy support for active travel, and autonomous vehicles add complexity to mixed traffic. Neither crash statistics nor multi-model detection pipelines scale to continuous monitoring of perceived safety along a route. We present an edge-assisted crowdsensing system: handlebar cameras supply street-level frames, a vision-language model (VLM) turns each frame into structured traffic attributes through a single prompt, and an explainable boosting machine (EBM) combines them with OpenStreetMap road infrastructure and on-bike kinematics to predict a crowdsourced 1-9 safety score. Extraction belongs at the network edge: the fastest self-hosted model needs 2.49 s per frame and scoring takes 0.4 ms on a CPU. On 1,362 annotated frames from two London routes, the EBM regressor reaches 72.2 percent binary accuracy and a mean absolute error of 1.011 under five-fold cross-validation. It is within one accuracy point of black-box ensembles. Its per-feature shape functions give exact attribution: physical lane separation is worth +0.97 rating points, a painted lane +0.70 and a construction site -0.65. Planners can therefore price an infrastructure change in rating points, and the results enter cost-benefit analysis directly. We also report inter-annotator agreement (alpha = 0.4695), an attribute audit, and a sensitivity analysis linking attribute error to accuracy. With re-encoding, a 20 s sampling interval serves 1,000 riders at 54 Mbit/s at a cost of 1.4 accuracy points, making continuous monitoring practical.
Figures & tables
| Attribute | Claude Sonnet | GPT-4o | Grok-2-Vision | Baseline |
|---|---|---|---|---|
| is_cycling_lane_present | 68.9 | 55.8 | 83.6 | 67.0 |
| is_cycling_lane_separation_present | 83.8 | 55.0 | 86.3 | 80.4 |
| is_intersection | 38.6 | 63.4 | 53.5 | 85.6 |
| is_construction_site_present | 59.9 | 57.6 | 58.2 | — |
| immediate_crash_risk_from_traffic | 50.4 | 60.8 | 53.9 | — |
| is_high_traffic_density | 62.3 | 67.1 | 64.9 | — |
| Model | Acc | F1(W) | Rec(U) | Rec(S) | MAE |
|---|---|---|---|---|---|
| Interpretable | |||||
| EBM regressor (ours) | 0.722 | 0.719 | 0.815 | 0.623 | 1.011 |
| EBM classifier (ours) | 0.711 | 0.710 | 0.799 | 0.633 | — |
| Logistic regression | 0.665 | 0.664 | 0.761 | 0.580 | — |
| Decision tree | 0.669 | 0.662 | 0.836 | 0.520 | 0.999 |
| Black-box reference | |||||
| Model | Lat. (s) | VRAM | Frames/GPU h | Lane / Sep. |
| Qwen3-VL 4B | 2.74 | 9.2 GB | 1312 | 0.854 / 0.816 |
| Qwen3-VL 8B | 2.99 | 17.8 GB | 1205 | 0.819 / 0.816 |
| Qwen3-VL 32B | 8.94 | 67.2 GB | 403 | 0.767 / 0.822 |
| InternVL3 8B | 2.49 | 16.1 GB | 1444 | 0.877 / 0.825 |
| Llama-3.2 11B | 3.63 | 22.3 GB | 992 | 0.796 / 0.793 |
| Lat.: mean latency per frame. VRAM: peak GPU memory. | ||||
Interpretable ML
Interpretable machine learning develops models and explanations that make predictions, evidence, and decision processes understandable to people.
See all 316 papers