Back to search

Nanyang Technological University

Automatic cyber attack detection using transformer for autonomous vehicles

Abstract

dc:description.abstract

Autonomous vehicles rely on heterogeneous sensors and complex neural networks, which expose them to cyber-attacks that threaten safety and reliability. Traditional intrusion detection methods, while effective in classical networks, struggle with high dimensional, multi-modal, and time-sensitive driving data. To address these challenges, this dissertation proposes a transformer-based framework for anomaly detection in autonomous vehicles. Two complementary designs are explored: (i) a discriminative encoder-only transformer trained with focal loss to directly classify anomalies, and (ii) a reconstruction-based encoder–decoder transformer trained on normal data to detect deviations via reconstruction error. Both detectors are evaluated under a unified protocol on multi-modal datasets and diverse attack scenarios, with metrics including AUROC, AUPRC, precision, recall, and latency. Experiments show that the reconstruction-based model achieves near-perfect ranking quality (AUROC ≈ 1.0) with precision 1.00, recall 0.95, and zero false positives, while the discriminative model provides competitive AUROC (≈ 0.98) but lower recall under fixed thresholds. Latency analysis highlights the encoder-only model’s efficiency, whereas the encoder–decoder trades higher computation for superior accuracy. These findings clarify the trade-offs between discriminative and reconstruction-based detection, and point to hybrid designs, drift-aware calibration, and efficiency optimisations as concrete avenues for real-world deployment.

Degree

thesis:*
College dc:contributor.school
School of Electrical and Electronic Engineering
Grantor dc:publisher
Nanyang Technological University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Gao, Yinuo
Advisor dc:contributor.supervisor
  • Wang Dan Wei

Subjects

dc:subject × 1

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10356/210496

Chain of custody

source
Harvested from
Nanyang Technological University
Base URL
dr.ntu.edu.sg/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Gao, Yinuo. Automatic cyber attack detection using transformer for autonomous vehicles. Nanyang Technological University, 2025. https://hdl.handle.net/10356/210496