Muhammad Shahid

Mr. Muhammad Shahid

orcid

Research Focus & Metrics

Academic Career Length

2Years (2025-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
21 June 2025 in Applied Sciences
Verified
Journal Article
Open access
PDF file
MSMuhammad Shahid
Muhammad Shahid
Martin GregurićMartin Gregurić
Martin Gregurić
AHAmirhossein Hassani
Amirhossein Hassani
MŠMarko Ševrović
Marko Ševrović
The automatic identification of traffic collisions is an emerging topic in modern traffic surveillance systems. The increasing number of surveillance cameras at urban intersections connected to traffic surveillance systems has created new opportunities for leveraging computer vision techniques for automatic collision detection. This study investigates the effectiveness of transfer learning utilizing pre-trained deep learning models for collision detection through dashcam images. We evaluated several state-of-the-art (SOTA) image classification models and fine-tuned them using different hyperparameter combinations to test their performance on the car collision detection problem. Our methodology systematically investigates the influence of optimizers, loss functions, schedulers, and learning rates on model generalization. A comprehensive analysis is conducted using 7 performance metrics to assess classification performance. Experiments on a large dashcam-based images dataset show that ResNet50, optimized with AdamW, a learning rate of 0.0001, CosineAnnealingLR scheduler, and Focal Loss, emerged as the top performer, achieving an accuracy of 0.9782, F1-score of 0.9617, and IoU of 0.9262, indicating a strong ability to reduce false negatives.

21 April 2026 in IEEE Access
Verified
Journal Article
Open access
MSMuhammad Shahid
Muhammad Shahid
MŠMarko Ševrović
Marko Ševrović
AHAmirhossein Hassani
Amirhossein Hassani
MOMonica Olyslagers
Monica Olyslagers
Proactive assessment of road infrastructure is critical for global road safety. The assessment is conducted by analyzing road infrastructure features, also known as road safety attributes. In current practice, trained human experts manually annotate and identify road safety attributes from geo-referenced videos for each road segment, making this process time-consuming, costly, and susceptible to inter-coder variability. This paper presents a comprehensive single-stage deep learning framework for automated multi-class classification of hierarchical road safety attributes from road survey videos. We address three fundamental challenges inherent in this domain: (1) the simultaneous classification of numerous road-safety critical attributes with severe class imbalance, (2) heterogeneous temporal characteristics where attributes range from spatially persistent to transient point events, and (3) maintaining spatial feature correspondence across frames despite viewpoint variations. Our primary contribution is the Hierarchical Spatio-Temporal Feature Aggregation (HSTFA) module, a novel architecture designed to integrate multi-scale backbone features. HSTFA incorporates: (i) multi-layer temporal self-attention with sinusoidal positional encoding to capture long-range dependencies; (ii) a Spatial Correspondence Module (SCM) utilizing cross-attention to explicitly align road features across frames by using the target segment as a spatial reference; (iii) multi-scale fusion to combine temporal and spatial representations; and (iv) a segment-aware weighted aggregation mechanism that dynamically determines frame importance. Furthermore, we introduce a Weighted Focal Loss with dampened inverse frequency weighting to mitigate class imbalance. Evaluated on a real-world dataset spanning 2,300 km of road videos and covering 23 distinct road safety attributes, our framework achieves a mean Macro F1-score of 72.20%, a +1.51 percentage point improvement over the vanilla baseline CoAtNet, offering a scalable solution for network-wide road safety assessments.

5 April 2026 in Infrastructures
Verified
Journal Article
Open access
PDF file
AHAmirhossein Hassani
Amirhossein Hassani
Borna AbramovicBorna Abramovic
Borna Abramovic
MSMuhammad Shahid
Muhammad Shahid
MŠMarko Ševrović
Marko Ševrović
Road safety studies commonly use machine learning to predict crashes or to estimate crash-based treatment effects. This study instead audits the modelled fatal-and-serious-injury (FSI) risk produced by the iRAP ViDA risk engine. We analyse 147,466 segments (100 m each) from 12 surveys grouped into four European reporting groups. In Stage 1, gradient-boosted trees reproduce the engine’s risk surface under road-grouped cross-validation(R2 ≈ 0.92 with flows and survey identifiers), and Shapley-based attributions identify which coded attributes drive modelled risk at 396 hotspots (top-three segments per road). In Stage 2, a causal-forest double machine learning estimator adjusts for 38 covariates to estimate segment-level conditional contrasts between modelled risk and six retrofittable treatments across all eligible segments. Simple absolute and relative reduction thresholds translate these associations into 1170 association-based candidate upgrades. On 321 over-lapping hotspots, the candidate upgrades show moderate agreement with iRAP’s Safer Roads Investment Plan (Recall = 0.77; Precision = 0.66; Cohen’s κ = 0.40). All results are conditional associations on a calibrated risk engine whose totals are anchored to project- or network-level fatality totals or fatality estimates used in calibration, not causal effects on observed crashes.