Skip to main content
QUICK REVIEW

[Paper Review] Using Data Analytics to Detect Anomalous States in Vehicles

Sandeep Nair Narayanan, Sudip Mittal|arXiv (Cornell University)|Dec 25, 2015
Anomaly Detection Techniques and ApplicationsComputer Science26 citations
TL;DR

This paper proposes a data analytics approach using Hidden Markov Models (HMMs) to detect anomalous states in vehicles by analyzing real-time CAN bus data. The method successfully identifies abnormal patterns—such as sudden speed or RPM changes—across both new and legacy vehicles, demonstrating high detection accuracy without requiring protocol-level changes.

ABSTRACT

Vehicles are becoming more and more connected, this opens up a larger attack surface which not only affects the passengers inside vehicles, but also people around them. These vulnerabilities exist because modern systems are built on the comparatively less secure and old CAN bus framework which lacks even basic authentication. Since a new protocol can only help future vehicles and not older vehicles, our approach tries to solve the issue as a data analytics problem and use machine learning techniques to secure cars. We develop a Hidden Markov Model to detect anomalous states from real data collected from vehicles. Using this model, while a vehicle is in operation, we are able to detect and issue alerts. Our model could be integrated as a plug-n-play device in all new and old cars.

Motivation & Objective

  • Address the growing security threat in connected vehicles due to vulnerabilities in the CAN bus protocol, which lacks authentication and is prone to remote exploitation.
  • Overcome the limitations of protocol-level security solutions that are incompatible with older vehicles by framing anomaly detection as a data analytics problem.
  • Develop a plug-and-play, model-agnostic system that can be deployed on any vehicle to detect unsafe or malicious states in real time.
  • Demonstrate the feasibility of using machine learning on real-world CAN data to identify deviations from normal vehicle behavior.

Proposed method

  • Collected real-time CAN bus data from multiple vehicles (Ford, Toyota, Honda) to build a representative dataset of normal vehicle operation.
  • Formulated the anomaly detection problem as a sequence modeling task using Hidden Markov Models (HMMs), trained on normal driving patterns.
  • Trained the HMM to learn the probabilistic transitions between states based on vehicle parameters like speed and RPM.
  • Evaluated the model using synthetic anomalous scenarios by modifying real data to simulate unsafe or malicious behavior (e.g., sudden speed increase with RPM drop).
  • Performed single- and multi-variable observations (speed and RPM together) to assess model robustness in detecting complex anomalies.
  • Used alert generation based on low-probability state transitions to flag potential attacks or malfunctions.

Experimental results

Research questions

  • RQ1Can machine learning models trained on real CAN bus data detect anomalous vehicle states without prior knowledge of attack signatures?
  • RQ2How effective is a Hidden Markov Model in identifying abnormal patterns in vehicle sensor data, especially when multiple parameters (e.g., speed and RPM) are considered together?
  • RQ3Can this approach detect anomalies that are physically implausible, such as a sudden speed increase with a simultaneous RPM decrease?
  • RQ4To what extent can this method be deployed as a plug-and-play solution across both modern and legacy vehicles without modifying the underlying CAN protocol?
  • RQ5How does the model perform under varying degrees of anomaly severity and in multi-dimensional state spaces?

Key findings

  • The HMM-based model successfully detected all 8 synthetic anomalous scenarios tested in the multiple-observation evaluation, including physically implausible combinations like sudden speed increase with RPM decrease.
  • In single-observation tests, the model correctly identified all cases of sudden or gradual changes in speed or RPM, issuing alerts only when anomalies were present.
  • The model did not generate false alerts for normal driving patterns, indicating strong specificity in detecting only abnormal behavior.
  • The approach demonstrated high adaptability, as it could be applied to both new and older vehicles without requiring changes to the CAN protocol or ECU firmware.
  • The results suggest that data-driven anomaly detection via HMMs can serve as a viable, lightweight, and extensible solution for securing vehicle networks.
  • The study highlights the need for richer, more diverse datasets in the automotive security domain to further improve model generalization and robustness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.