Abstract
Autonomous vehicles need to be designed to abide by the same rules that humans follow. This is challenging, because traffic rules are fuzzy and not well defined, making them incomprehensible to machines. Satisfaction cannot be incorporated in a planning component without proper formalization, nor can it be monitored and verified during simulation or testing. However, no research work has provided a consistent set of machine-interpretable traffic rules for a given operational driving domain. In this paper, we propose a methodology for the legal study and formalization of traffic rules in a formal language. We use Linear Temporal Logic as a formal specification language to describe temporal behaviors, capable of capturing a wide range of traffic rules. We contribute a formalized set of traffic rules for dual carriageways and evaluate the effectiveness of our formalized rules on a public dataset.
Introduction
Traffic laws, such as the German Straßenverkehrs-Ordnung (StVO), are written by humans for humans. Consequently, they are often context-dependent and open to interpretation. While a human driver understands what it means to maintain a "sufficient distance," a self-driving car requires a mathematical definition to function safely and legally.
Most existing autonomous vehicle (AV) research treats traffic rules as simple geometric constraints. However, this approach fails to capture complex, multi-agent behavioral rules—like when it is legal to pass on the right or how to execute a zipper merge. There is a critical need for a consistent, formal language that bridges the gap between legal text and machine code, ensuring AVs are not just safe, but also verifiable in their compliance.
Methodology
The authors propose a three-step methodology to formalize legal texts:
- Decomposition: Identify a rule and separate it into an initial premise (the condition) and a conclusion (the required behavior).
- Exception Handling: Identify legal exceptions. These are treated as negated conditions that update the premise (e.g., "Always do X, unless Y" becomes "If (Always AND NOT Y), then do X").
- Codification: Translate these logic structures into Linear Temporal Logic (LTL), a formal language designed to describe sequences of events over time.
The researchers distinguish between codification (the logical structure) and concretization (the mathematical predicates, like calculating a "safe" distance based on physics). They visualized these rules using a graphical representation to map premises to conclusions.
Evaluation and Key Results
To validate their formalized rules, the authors used the INTERACTION dataset, replaying real-world driving maneuvers through a "RuleMonitor" to flag violations. They specifically analyzed German and Chinese highway scenarios involving merging and lane changes.
The evaluation revealed significant insights into human driving behavior:
- Safe Distance Violations: In the German data, drivers failed to maintain a safe distance to the car in front about 8% of the time.
- Lane Change Risks: Roughly 25% of all lane changes in both datasets violated the formalized rule for maintaining a safe distance to the rear vehicle.
- Zipper Merges: About 1% of German drivers and over 2% of Chinese drivers failed to follow the alternating "zip" pattern during lane closures.
Insights and Future Directions
Formalization allows for the quantification of how "law-abiding" human drivers are. The results show that humans are far from perfect, raising questions about whether AVs should mimic human behavior or strictly adhere to formal law. Furthermore, cross-cultural variance was observed; for instance, rules regarding speed advantages during overtaking were violated more frequently in the Chinese dataset, highlighting how local driving culture affects rule adherence.
A key challenge remains in handling the "Always" default in many traffic rules. The authors address this by starting premises with "always" and narrowing them down with specific exceptions. While this framework is robust for dual carriageways, future work will involve refining vague legal terms (like "substantially higher speed") and expanding the library of rules to include urban intersections and interactions with pedestrians and cyclists.
Summary updated