Can LLMs Classify Vehicular Basic Safety Messages Anomalies?

Authors

DOI:

https://doi.org/10.32473/flairs.39.1.141767

Abstract

The reliability of connected vehicles (CVs) critically depends on the integrity of Basic Safety Messages (BSMs), yet distinguishing anomalies caused by benign sensor faults from those induced by malicious cyber-attacks remains challenging and operationally crucial. This work investigates whether large language models (LLMs) can complement or surpass traditional machine learning (ML) methods for multi-class BSM anomaly classification, where messages must be labeled as normal, faulty, or under attack. We use an extended version of the Tampa CV Pilot dataset enriched with synthetic fault and attack trajectories and evaluate several state-of-the-art LLMs (Llama, Mistral, Gemma, and Qwen) against strong tree-based baselines. Our approach textualizes multivariate kinematic and peer-report sequences and applies both few-shot prompting and parameter-efficient LoRA fine-tuning. The results quantify how far generic instruction-tuned LLMs can go in few-shot mode and show that domain-adapted LLMs can achieve near-baseline or superior accuracy and robustness for critical vehicular safety classifications.

Author Biographies

Arjun Gyawali, Texas State University

Arjun is currently a Computer Science junior at Texas State University. He also teaches machines to spot trouble: training LLMs to detect attacks, faults, and anomalies in connected vehicles before they become dangerous.

 

 

Heena Rathore, Texas State University

Dr. Rathore is an Assistant Professor in the Department of Computer Science at Texas State University. Academically, She has worked as Assistant Professor of Practice in Department of Computer Science at University of Texas at San Antonio (UTSA) and with Texas A&M University at Texarkana (TAMUT) as a Visiting Assistant Professor. 

Downloads

Published

06-05-2026

How to Cite

Gyawali, A., Das, R., & Rathore, H. (2026). Can LLMs Classify Vehicular Basic Safety Messages Anomalies?. The International FLAIRS Conference Proceedings, 39(1). https://doi.org/10.32473/flairs.39.1.141767