Skip to main content
QUICK REVIEW

[Paper Review] Safety Validation of Autonomous Vehicles using Assertion Checking

Christopher R. Harper, Greg Chance|arXiv (Cornell University)|Nov 8, 2021
Software Testing and Debugging TechniquesComputer Science6 citations
TL;DR

This paper proposes a systematic methodology to transform natural language driving rules—specifically from the UK Highway Code—into formal, machine-checkable assertions for validating autonomous vehicle (AV) safety and mission performance. Using a taxonomy of assertion types, the approach enables runtime and simulation-based monitoring via SQL-based checks on geospatial data, demonstrating feasibility in overtaking scenarios through Carla simulator and video analysis experiments.

ABSTRACT

Safety and mission performance validation of autonomous vehicles (AVs) is a major challenge. In this paper we describe a methodology for constructing and applying assertion checks to validate the behaviour of an AV operating either in simulation or in the real world. We have identified a taxonomy of assertion types and the general format of their specification, and we have developed procedures for translating driving codes of practice to yield formal logical expressions that can be monitored automatically by computer, either by direct translation or by physical modelling. We have developed examples of assertions derived from the UK Highway Code (UKHC), as an example of a code of practice. We illustrate the approach with an example of assertion checking for vehicle overtaking, using a geospatial information system in an SQL database for validation and performance assessment. We present initial simulation and runtime monitoring experiments that apply assertions relevant in this overtaking scenario together with an analysis of the safety and mission performance characteristics measured.

Motivation & Objective

  • To address the challenge of validating autonomous vehicle behavior against legally binding, human-readable driving codes of practice.
  • To develop a systematic method for translating vague, context-dependent driving rules into formal, machine-checkable logical assertions.
  • To enable both simulation-based validation and real-time runtime monitoring of AV behavior using these assertions.
  • To demonstrate the feasibility of using regulatory documents like the UK Highway Code as a basis for safety and performance validation of AVs.
  • To support post-incident analysis and liability assessment by providing auditable, explainable records of AV compliance with driving rules.

Proposed method

  • Developed a taxonomy of assertion types based on observable, measurable vehicle behaviors, including reference points and trigger conditions.
  • Translated natural language rules from the UK Highway Code into formal logical expressions using direct translation and physical modeling techniques.
  • Implemented assertion checks using SQL queries executed on a PostgreSQL/PostGIS database to validate simulation traces from the Carla simulator.
  • Applied the same assertion framework to analyze video data, emulating real-time runtime monitoring of AV behavior.
  • Integrated geospatial information systems (GIS) to evaluate vehicle position, velocity, and maneuver sequences during overtaking scenarios.
  • Used a combination of simulation and video-based analysis to assess safety and mission performance metrics derived from assertion violations.

Experimental results

Research questions

  • RQ1How can natural language driving rules from codes of practice like the UK Highway Code be systematically transformed into formal, machine-checkable assertions?
  • RQ2To what extent can assertion-based monitoring detect safety and mission performance violations in AV behavior during simulation and runtime?
  • RQ3Can geospatial databases and SQL-based queries effectively validate AV behavior against complex, context-sensitive driving rules?
  • RQ4How does assertion checking support explainability and post-incident analysis in autonomous vehicle systems?
  • RQ5What is the feasibility of using regulatory documents as a foundation for AV safety validation across different operational scenarios?

Key findings

  • The methodology successfully transformed 163 UK Highway Code rules into formal assertions, demonstrating that human-readable rules can be systematically encoded for machine validation.
  • Simulation experiments using the Carla simulator showed that assertion checks could detect violations of overtaking procedures, such as premature lane changes or failure to check blind spots.
  • Runtime monitoring on video data confirmed that the assertion framework is viable for real-time behavior assessment, enabling traceability of AV decisions.
  • The use of PostGIS-enabled SQL queries allowed effective spatial and temporal validation of vehicle trajectories and maneuver sequences.
  • Assertion checking revealed that AVs may fail to comply with procedural rules even when their trajectory appears safe, highlighting the need for behavioral validation beyond kinematics.
  • The approach provides a foundation for explainable AI in AVs, as assertion violations can be traced back to specific perception and decision-making steps, supporting post-incident analysis.

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.