Cybersecurity-Focused Anomaly Detection in Connected Autonomous Vehicles Using Machine Learning

Prathyush Kumar Reddy Lebaku, Lu Gao, Yunpeng Zhang, Zhixia Li, Yongxin Liu +1 more
6/28/2025
cs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Anomaly detection in connected autonomous vehicles (CAVs) is crucial for maintaining safe and reliable transportation networks, as CAVs can be susceptible to sensor malfunctions, cyber-attacks, and unexpected environmental disruptions. This study explores an anomaly detection approach by simulating vehicle behavior, generating a dataset that represents typical and atypical vehicular interactions. The dataset includes time-series data of position, speed, and acceleration for multiple connected autonomous vehicles. We utilized machine learning models to effectively identify abnormal driving patterns. First, we applied a stacked Long Short-Term Memory (LSTM) model to capture temporal dependencies and sequence-based anomalies. The stacked LSTM model processed the sequential data to learn standard driving behaviors. Additionally, we deployed a Random Forest model to support anomaly detection by offering ensemble-based predictions, which enhanced model interpretability and performance. The Random Forest model achieved an R2 of 0.9830, MAE of 5.746, and a 95th percentile anomaly threshold of 14.18, while the stacked LSTM model attained an R2 of 0.9998, MAE of 82.425, and a 95th percentile anomaly threshold of 265.63. These results demonstrate the models' effectiveness in accurately predicting vehicle trajectories and detecting anomalies in autonomous driving scenarios.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lebaku2025cybersecurityfocused,
  title  = {Cybersecurity-Focused Anomaly Detection in Connected Autonomous Vehicles Using Machine Learning},
  author = {Prathyush Kumar Reddy Lebaku and Lu Gao and Yunpeng Zhang and Zhixia Li and Yongxin Liu and Tanvir Arafin},
  year   = {2025},
  eprint = {2506.22984},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.22984v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.22984.svg)](https://codeofpaper.com/paper/2506.22984)

Discussion