An LSTM-based Test Selection Method for Self-Driving Cars
Ali Güllü, Faiz Ali Shah, Dietmar Pfahl
TL;DR
The paper addresses the high cost of simulation-based testing for self-driving cars by proposing ITS4SDC, an LSTM-based test selector that treats road coordinates as sequences to classify tests as SAFE or UNSAFE. The model is trained and evaluated on Frenetic-generated roads in the BeamNG.tech environment, using a bidirectional LSTM with 220 cells and compared against the SDC-Scissor baseline across two datasets. ITS4SDC demonstrates higher accuracy and precision, with competitive recall and F1, particularly when trained on larger datasets, indicating strong potential to reduce testing overhead while maintaining safety validation. The work highlights the value of sequence-based road data and opens avenues for future improvements through larger datasets and attention-based architectures.
Abstract
Self-driving cars require extensive testing, which can be costly in terms of time. To optimize this process, simple and straightforward tests should be excluded, focusing on challenging tests instead. This study addresses the test selection problem for lane-keeping systems for self-driving cars. Road segment features, such as angles and lengths, were extracted and treated as sequences, enabling classification of the test cases as "safe" or "unsafe" using a long short-term memory (LSTM) model. The proposed model is compared against machine learning-based test selectors. Results demonstrated that the LSTM-based method outperformed machine learning-based methods in accuracy and precision metrics while exhibiting comparable performance in recall and F1 scores. This work introduces a novel deep learning-based approach to the road classification problem, providing an effective solution for self-driving car test selection using a simulation environment.
