LLM-Agents Driven Automated Simulation Testing and Analysis of small Uncrewed Aerial Systems
Venkata Sai Aswath Duvvuru, Bohan Zhang, Michael Vierhauser, Ankit Agrawal
TL;DR
The paper tackles the labor-intensive nature of sUAS simulation testing by presenting AutoSimTest, a multi-LLM-agent framework that automates the end-to-end process of scenario blueprinting, environment setup, mission generation, and result analysis. It leverages Retrieval Augmented Generation to ground LLM outputs in real-world sUAS incident data and uses a carefully designed prompt framework to coordinate three main phases: blueprint construction (S-Agent), executable script generation (Env-Agent and M-Agent), and result analysis (Analytics-Agent). The framework demonstrates applicability across PX4 and ArduPilot flight controllers and multiple simulation tools, producing diverse, executable scenarios and accurate automated analyses of flight logs, with positive feedback from developers. The work shows potential to substantially increase testing coverage and reduce manual effort, enabling faster iteration and safer deployment of sUAS, with future extensions to CPS beyond aerial systems and swarm analytics for cooperative UAVs.
Abstract
Thorough simulation testing is crucial for validating the correct behavior of small Uncrewed Aerial Systems (sUAS) across multiple scenarios, including adverse weather conditions (such as wind, and fog), diverse settings (hilly terrain, or urban areas), and varying mission profiles (surveillance, tracking). While various sUAS simulation tools exist to support developers, the entire process of creating, executing, and analyzing simulation tests remains a largely manual and cumbersome task. Developers must identify test scenarios, set up the simulation environment, integrate the System under Test (SuT) with simulation tools, formulate mission plans, and collect and analyze results. These labor-intensive tasks limit the ability of developers to conduct exhaustive testing across a wide range of scenarios. To alleviate this problem, in this paper, we propose AutoSimTest, a Large Language Model (LLM)-driven framework, where multiple LLM agents collaborate to support the sUAS simulation testing process. This includes: (1) creating test scenarios that subject the SuT to unique environmental contexts; (2) preparing the simulation environment as per the test scenario; (3) generating diverse sUAS missions for the SuT to execute; and (4) analyzing simulation results and providing an interactive analytics interface. Further, the design of the framework is flexible for creating and testing scenarios for a variety of sUAS use cases, simulation tools, and SuT input requirements. We evaluated our approach by (a) conducting simulation testing of PX4 and ArduPilot flight-controller-based SuTs, (b) analyzing the performance of each agent, and (c) gathering feedback from sUAS developers. Our findings indicate that AutoSimTest significantly improves the efficiency and scope of the sUAS testing process, allowing for more comprehensive and varied scenario evaluations while reducing the manual effort.
