Abstract
The Controller Area Network (CAN) is the dominant in-vehicle communication protocol, yet its intrusion detection is hindered by unrealistic evaluation protocols, severe data duplication, and limited protocol awareness. This paper presents STGIDS, a semantics-constrained graph-temporal framework that models identifier-level semantics, payload structure, temporal regularity, and inter-ID dependencies in CAN traffic. It introduces a deduplication-aware window representation with semantic constraints, replacing naive frame-level learning with structured intrusion modeling. Experiments on CICIoV2024, CT&T, and cross-dataset settings show that, once duplication is addressed, binary detection becomes effectively saturated (macro- \mathrm{F}1 \approx 1.0) , while subtype classification remains challenging. Compared with flat baselines, STGIDS achieves consistent performance (0.71-0.78) across datasets, with up to 30%-40% smaller Macro-F1 degradation and significantly reduced performance drop on minority subtypes under domain shift. The results highlight dataset-dependent variation in subtype difficulty and demonstrate that semantic modeling is essential for capturing invariant attack characteristics and enabling transferable CAN bus intrusion detection.