MotoSafety: Edge-AI with Learned Temporal Importance for Two-Wheeler Collision Risk Assessment Under Time Pressure
Organizations: Department of Computer Science and Engineering, Indian Institute of Technology Indore, Khandwa Road, Simrol, Indore, 453552, Madhya Pradesh, India · Department of Civil Engineering, Indian Institute of Technology Indore, Khandwa Road, Simrol, Indore, 453552, Madhya Pradesh, India · Civil Engineering Program, Ingram School of Engineering, Texas State University, RFM 5202, San Marcos, 78666, TX, USA
Abstract
Powered two-wheeler riders face critical safety challenges in low- and middle-income countries, yet limited studies exist on how cognitive stressors such as Time Pressure influence collision risk. We address this gap by introducing a comprehensive dataset consisting of over 129,000 labeled multivariate time-series feature windows, gathered across 153 simulator rides from 51 participants under No, Low, and High TP scenarios. Across each sequence, we capture 64 distinct attributes covering vehicle motion, rider control actions, spatial proximity, and rule compliance indicators. Using this dataset, we introduce MotoSafety, a new edge-AI framework built on the Learned Temporal Importance (LTI) concept. MotoSafety achieves 94.97% accuracy and 99.33% ROC AUC, outperforming ten baselines, including TimesNet and LLM4TS, and achieves 0.039 MSE and 0.094 MAE for forecasting (4.4x lower error than Time-LLM and iTransformer). With only 1.15M parameters and 0.135 ms latency, it is suitable for edge deployment on low-cost CPU hardware. Using ground truth TP as an inductive bias improves accuracy from 94.09% to 94.97%, while predicted TP achieves 94.82%. Using only 21 IMU+GPS features, it achieves 93.91% accuracy, indicating practical deployment. Beyond PTW safety, the architecture shows better transferability to human activity (97.66%) and clinical (99.65%) domains. This lightweight framework advances PTW collision risk assessment, supporting the Safe System Approach for Intelligent Transportation Systems.
Figures & tables
| Component | Details |
|---|---|
| Platform | Fixed-base PTW frame with ISO certification |
| Controls | Acceleration, clutch, hydraulic brake unit, 5-speed shifting mechanism, handlebar steering, parking brake |
| Sensors | Wire-wound servo potentiometers (type 50WW): |
| Resistance: 5 k (±10%); Linearity error: ±0.5% (IEC 393 compliant), Angular range: 355° ± 3°; Full mechanical rotation: 360° | |
| Maximum power: 3 W (at 70°C); Expected operational life: 2 million cycles | |
| Safe operating limits: –40°C to +105°C |
| Attribute | Category / Range | Mean (SD) or % |
|---|---|---|
| Age (years) | 18–42 | 26.4 (5.7) |
| Riding experience (years) | 5.6 (3.1) | |
| License status | Valid PTW license | 100% |
| Education level | Graduate / B.Tech | 58.8% / 41.2% |
| Simulator exposure | No / Yes | 92.2% / 7.8% |
| Health status | Medically fit | 100% |
| Feature Category | Included Parameters | Count |
|---|---|---|
| Vehicle Controls | Ignition status, Engine state, Throttle position, Brake application, Clutch engagement, Handbrake, Steering angle, Gear position, Headlight usage, Horn activation | 10 |
| Vehicle Performance | Speed, Engine RPM, Fuel consumption, Distance covered | 4 |
| Lighting & Indicators | Indicator signal, Pre-move indication, Junction turning signal, Lane-change signal, Headlight non-compliance | 5 |
| Behavioral Violations | Speeding, Incorrect junction/intersection speed, Speed violations on speed breakers, Gap maintenance errors, Hazardous overtaking, Unsigned turns, Lane misuse, Driving on the wrong side, Handbrake use while moving, Riding the clutch, Faulty gear shift order, Improper clutch release, Shifting without clutch engagement, Proper gear selection before start, Gradual clutch engagement | 15 |
| Traffic Infractions | White line violations, Yellow line crossings, Stop line breaches, Signal jumping, Entering no-entry zones, Illegal U-turns, Parking infringements | 7 |
| Temporal Context | Time stamp, Time Pressure condition (0=HTP, 1=LTP, 2=NTP) | 2 |
| Module | Complexity |
|---|---|
| Dilated CNN encoder (×3 branches) | |
| Bi-LSTM (2 layers) | |
| TIP scoring + weighted sum | |
| Gated fusion + SE block | (fixed-size input) |
| Multi-head attention (post-pooling) | (fixed-size input) |
| MotoSafety total |
| Component | Setting |
|---|---|
| Classification Model | |
| Input sequence length | 96 timesteps (960 ms) |
| Feature dimension | 64 |
| CNN hidden channels | 32 per branch, 64 fused |
| BiLSTM hidden dimensions | 128 (bidirectional) |
| Total model parameters | 1.15 million |
| Feature | NTP | LTP | HTP |
|---|---|---|---|
| Speed (km/h) | 33.12 19.42 | 39.69 21.67 | 49.00 26.48 |
| Sudden braking | 1.32 2.54 | 1.38 2.36 | 1.80 2.01 |
| Dangerous overtaking | 1.07 1.18 | 1.21 1.27 | 1.36 1.52 |
| Headway distance (m) | 8.99 14.38 | 8.20 14.34 | 7.75 13.88 |
| Models | MotoSafety | Time-LLM | iTransformer | PatchTST | ||||
|---|---|---|---|---|---|---|---|---|
| Metric | MSE | MAE | MSE | MAE | MSE | MAE | MSE | MAE |
| 96 | 0.033 0.005 | 0.082 0.007 | 0.136 | 0.148 | 0.161 | 0.237 | 0.188 | 0.208 |
| 192 | 0.037 0.006 | 0.086 0.008 | 0.145 | 0.153 | 0.170 | 0.246 | 0.205 | 0.223 |
| 336 | 0.041 0.006 | 0.097 0.010 | 0.192 | 0.215 | 0.177 | 0.258 | 0.227 | 0.272 |
| 720 | 0.045 0.007 | 0.111 0.012 | 0.212 | 0.293 | 0.183 | 0.262 | 0.267 | 0.338 |
| Avg | 0.039 | 0.094 | 0.171 | 0.210 | 0.173 | 0.251 | 0.222 | 0.260 |
| Model | Acc. (%) | Prec. | Rec. | F1-Score (%) | AUC (%) |
| Mean Std | Result | Result | Mean Std | Mean Std | |
| RF | 85.24 | 84.87 | |||
| CNN | 93.82 | 80.68 | |||
| RNN | 83.41 | 96.38 | |||
| LLM4TS | 90.58 | 83.23 | |||
| Informer | 89.72 | 94.88 |
| Horizon | Time (s) | MSE | MAE |
|---|---|---|---|
| 96 | 0.96 | 0.033 0.005 | 0.082 0.007 |
| 192 | 1.92 | 0.037 0.006 | 0.086 0.008 |
| 336 | 3.36 | 0.041 0.006 | 0.097 0.010 |
| 720 | 7.20 | 0.045 0.007 | 0.111 0.012 |
| Model | Accuracy (%) | AUC (%) |
|---|---|---|
| Without TP Feature | ||
| With Predicted TP Feature | ||
| With Ground Truth TP Feature |
| True / Predicted | 0: HTP | 1: LTP | 2: NTP |
|---|---|---|---|
| 0: HTP | 8878 | 229 | 163 |
| 1: LTP | 76 | 7326 | 568 |
| 2: NTP | 82 | 1661 | 6859 |
| Dataset | Details | Safety Domain | Application | Country | MST | Prior Work Accuracy |
|---|---|---|---|---|---|---|
| Proposed Dataset | PTW Simulator with GT TP | PTW Safety | Collision Prediction | India | 94.97 | – |
| [ 41 ] | PTW High-Fidelity Simulator | PTW Safety | Collision Prediction | Germany | 99.49 | 91.0 [RF, GB [ 42 ] ] |
| [ 4 ] | PTW Real Time Fall Event Data | PTW Safety | Fall Detection | France | 96.10 | 91.59 [DT [ 8 ] ] |
| [ 40 ] | Human Activity Recognition | Human Safety | Activity Recognition | Italy | 97.66 | 83.35 [K-means + NB [ 14 ] ] |
| [ 50 ] | Wearable-Sensor Movement | Human Clinical Safety | Exercise Quality Assessment | Turkey | 99.65 | 88.65[MTMM-DTW [ 49 ] ] |
| Variant | Accuracy (%) | Acc. |
|---|---|---|
| Full Model | 94.97 | – |
| No BiLSTM | 90.42 | |
| No SE Block | 91.24 | |
| No Attention | 90.78 | |
| No CNN Branch | 92.66 | |
| No Gated Fusion | 92.90 |
| Pooling Strategy | Accuracy (%) | AUC (%) |
|---|---|---|
| Mean-pooling | 92.23 0.15 | 98.80 0.22 |
| Max-pooling | 93.41 0.12 | 99.11 0.18 |
| Last-timestep | 92.87 0.14 | 98.97 0.20 |
| TIP | 94.97 0.08 | 99.33 0.30 |
| Features | Accuracy (%) |
|---|---|
| 3 | 80.22 |
| 5 | 83.11 |
| 7 | 88.78 |
| 9 | 90.16 |
| 21 | 93.91 |
| All 64 (simulator) | 94.97 |
| A. MotoSafety Efficiency & Deployability | |||
| Metric | Value | Significance | |
| Total Parameters | 1,149,048 | Low Complexity | |
| Model Size | 4.38 MB | Edge-ready Storage | |
| Throughput | s/sec | High-speed Inference | |
| Arch. Complexity | Linear Scalability | ||
| Edge-AI Deployability | Yes | Suitable for wearable | |
Intelligent Transportation Systems
Intelligent Transportation Systems apply sensing, communication, AI, and optimization to make transport networks safer and more efficient.
See all 299 papers