[Paper Review] DeepQTest: Testing Autonomous Driving Systems with Reinforcement Learning and Real-world Weather Data
DeepQTest is a reinforcement learning-based approach that generates realistic, safety-critical test scenarios for autonomous driving systems (ADS) by dynamically configuring environmental conditions using Deep Q-Networks. It outperforms random, greedy, and state-of-the-art baselines in collision discovery and realism, with Time-To-Collision as the optimal reward function.
Autonomous driving systems (ADSs) are capable of sensing the environment and making driving decisions autonomously. These systems are safety-critical, and testing them is one of the important approaches to ensure their safety. However, due to the inherent complexity of ADSs and the high dimensionality of their operating environment, the number of possible test scenarios for ADSs is infinite. Besides, the operating environment of ADSs is dynamic, continuously evolving, and full of uncertainties, which requires a testing approach adaptive to the environment. In addition, existing ADS testing techniques have limited effectiveness in ensuring the realism of test scenarios, especially the realism of weather conditions and their changes over time. Recently, reinforcement learning (RL) has demonstrated great potential in addressing challenging problems, especially those requiring constant adaptations to dynamic environments. To this end, we present DeepQTest, a novel ADS testing approach that uses RL to learn environment configurations with a high chance of revealing abnormal ADS behaviors. Specifically, DeepQTest employs Deep Q-Learning and adopts three safety and comfort measures to construct the reward functions. To ensure the realism of generated scenarios, DeepQTest defines a set of realistic constraints and introduces real-world weather conditions into the simulated environment. We employed three comparison baselines, i.e., random, greedy, and a state-of-the-art RL-based approach DeepCOllision, for evaluating DeepQTest on an industrial-scale ADS. Evaluation results show that DeepQTest demonstrated significantly better effectiveness in terms of generating scenarios leading to collisions and ensuring scenario realism compared with the baselines. In addition, among the three reward functions implemented in DeepQTest, Time-To-Collision is recommended as the best design according to our study.
Motivation & Objective
- Address the challenge of generating high-impact, realistic test scenarios for safety-critical autonomous driving systems (ADS) in complex, dynamic environments.
- Overcome the limitations of existing testing methods in simulating realistic weather conditions and their temporal evolution.
- Improve the effectiveness and efficiency of online system-level testing by leveraging reinforcement learning to adaptively configure environmental parameters.
- Ensure scenario realism through real-world weather data integration and predefined physical constraints.
- Investigate the impact of different reward functions on test scenario generation quality and effectiveness.
Proposed method
- Formulates test scenario generation as a sequential decision-making problem modeled as a Markov Decision Process (MDP), where the RL agent configures environmental parameters to trigger abnormal ADS behaviors.
- Employs Deep Q-Network (DQN) as the RL algorithm to learn optimal environment configurations through interaction with a simulation environment.
- Uses multi-modal sensor fusion to encode high-dimensional environmental states, including traffic, weather, and vehicle dynamics.
- Defines three reward functions—Time-To-Collision (TTC), Distance to Object (DTO), and Jerk—to guide the agent toward safety-critical scenarios.
- Integrates real-world weather and time-of-day data into the simulation via a real-effect generator to enhance scenario realism.
- Enables environment configuration through REST API endpoints, allowing programmatic control over simulation parameters such as precipitation, lighting, and traffic density.

Experimental results
Research questions
- RQ1How effective is DeepQTest in generating test scenarios that lead to collisions compared to random, greedy, and DeepCollision baselines?
- RQ2How does the realism of generated test scenarios—particularly in terms of weather and time-of-day—compare across different testing approaches?
- RQ3Which of the three reward functions (TTC, DTO, Jerk) leads to the most effective test scenario generation in terms of collision discovery and scenario diversity?
- RQ4To what extent do the reward functions correlate with each other, and how does this affect the design of multi-objective testing strategies?
- RQ5Can the generated test scenarios be reused for regression testing of future ADS versions?
Key findings
- DeepQTest significantly outperformed random and greedy baselines in discovering collision-inducing test scenarios, with a statistically significant improvement in effectiveness.
- Compared to the state-of-the-art RL-based approach DeepCollision, DeepQTest generated more realistic test scenarios while maintaining or improving collision discovery rates.
- Time-To-Collision (TTC) was identified as the best-performing reward function, achieving the highest collision rate and best balance of realism and effectiveness.
- A positive correlation was observed between TTC and DTO, while a negative correlation existed between TTC and Jerk, indicating trade-offs between temporal safety and ride comfort metrics.
- The generated test scenarios, collected via ScenarioCollector and replayable via ScenarioRunner, are suitable for regression testing of future ADS versions by tracking execution attributes such as collision status and trajectory deviation.
- The integration of real-world weather data and time-of-day into the simulation significantly enhanced the realism of generated test scenarios, addressing a key limitation in prior work.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.