top of page

AI Can Spot Road Hazards. But Can It Explain a Crash?

4 days ago
4 min read

University of Hull researchers test the ability of frontier models like ChatGPT, Gemini and Claude on autonomous driving hazard perception, safety analysis, revealing a critical gap between recognising hazards and understanding how accidents could occur.


Imagine a self-driving car approaching a pedestrian who is partly hidden behind a parked van. The vehicle is travelling too fast, and there may not be enough time to stop.


Artificial intelligence might recognise the pedestrian and identify the situation as dangerous. But can it explain how several factors could combine to cause an accident, and produce the structured safety analysis engineers need to assess that risk?


That is the question behind new research from the Dependable Intelligent Systems (DEIS) research group at the University of Hull.


In a study published by Springer, Dr Zhibao Mian and Dr Koorosh Aslansefat investigated whether generative AI could go beyond identifying road hazards and help engineers analyse potential accidents.


Their preliminary findings reveal an important limitation: recognising danger is not the same as understanding how a failure could happen.


Three AI Models Put to the Test

The researchers evaluated three widely known generative AI models:

  • ChatGPT-4

  • Gemini 2.0 Flash

  • Claude 3.7 Sonnet


Each model was presented with an image of a driving scene and asked to produce a Fault Tree Analysis (FTA).


A Fault Tree is a structured diagram used by safety engineers to investigate how different failures and conditions can combine to cause an unwanted event, such as a vehicle collision.


For example, a pedestrian might be difficult to detect because of an obstruction. If this is combined with insufficient stopping distance or delayed braking, the situation could become dangerous.


A proper safety analysis must do more than list these hazards. It needs to explain how events relate to one another, identify the conditions needed for an accident and, where reliable data are available, support quantitative risk calculations.


The researchers compared the AI-generated analyses with a reference developed by a safety engineer.


What Did the Researchers Discover?

The models could describe potential hazards, but struggled to produce the structured and reliable safety analyses required for formal assessment.


The evaluation identified difficulties in three important areas:

  • Understanding the driving scene. Recognising objects was not enough. The models also needed to understand relationships between vehicles, pedestrians, road conditions and other factors.

  • Constructing accurate Fault Trees. The models struggled to organise hazards into the logical combinations used in formal safety engineering.

  • Quantifying risk. Producing dependable failure probabilities requires appropriate data, clear assumptions and correct calculations. The models did not demonstrate satisfactory performance in this part of the evaluation.


None of the evaluated models achieved a satisfactory rating across the assessed criteria.


Importantly, this was a preliminary proof-of-concept involving a single driving-scene case study. The findings do not establish that these models will fail in every driving scenario or safety analysis task.


Instead, they highlight why AI-generated explanations must be carefully checked before being used in safety-critical engineering.


Figure 1 diagram: a driving-scene image is given to ChatGPT-4, Gemini 2.0 and Claude 3.7. The AI-generated fault tree for collision risk is incomplete, showing only a pedestrian in front of the car, while the expert reference fault tree combines a pedestrian in front of the car AND high vehicle speed. Main finding: fault-tree logic is incomplete, quantitative risk analysis is weak, and hazards can be described.

Figure 1. Comparison of ChatGPT-4, Gemini 2.0 Flash and Claude 3.7 Sonnet in generating Fault Trees from a driving-scene image. The evaluation highlights limitations in scene understanding, logical structure and quantitative risk analysis.

The driving scene and fault-tree example used in the study were adapted from the report “Safety and Security Analysis for Autonomous Vehicles” by Robert Taylor, Jin Zhang, Igor Kozin and Jingyue Li.


Can AI Go Beyond Simply Detecting Danger?

The researchers believe generative AI still has potential to support safety engineering, but a more structured approach is needed.


They propose a conceptual framework that brings together visual AI, established safety knowledge and explainable AI.


The framework is designed to work in several stages.


First, AI would analyse an image or video to identify vehicles, pedestrians, signs and other relevant objects.


Next, a scene graph would organise these objects and describe their relationships, such as a pedestrian being hidden behind a vehicle.


This representation would then be connected to a safety knowledge graph containing established information about hazards, system failures and accident conditions.


The aim is to produce formal safety diagrams, including Fault Trees, that engineers can inspect and verify.


Another important element is Explainable AI (XAI). By linking the generated safety analysis to relevant visual evidence and safety knowledge, the proposed system could make it easier for experts to understand and challenge the AI's output.


The researchers also introduce a mathematical foundation for the framework. However, the complete system has not yet been implemented and validated.


Figure 2 diagram: an image or video input feeds object detection, relationship extraction and a scene graph; safety reasoning and artefact generation then uses scene graphs and expert safety knowledge to produce Fault Tree Analysis, with Failure Mode and Effects Analysis (FMEA) and Goal Structuring Notation (GSN) shown as future extensions.

Figure 2. Proposed framework combining visual scene understanding, scene graphs, safety knowledge and explainable AI to support the generation of formal safety analyses.


Could This Make Self-Driving Cars Safer?

Potentially, but the research does not yet demonstrate an improvement in autonomous vehicle safety.


Its focus is on AI-assisted safety assessment, not directly controlling how a self-driving car behaves on the road.


If validated, such an approach could help safety engineers explore accident scenarios, identify combinations of failures and produce more transparent safety analyses.


It could also reduce some of the manual effort involved in developing safety documentation.


However, formal validation and expert review remain essential. A convincing AI-generated explanation is not necessarily a correct one, and a plausible Fault Tree is not automatically a verified safety assessment.


What Happens Next?

The next step is to implement and evaluate the proposed framework.


Future work includes developing driving-scene datasets reviewed by safety experts, testing the accuracy of generated Fault Trees and investigating how the approach could support other established safety analysis methods.


The broader research question remains:

Can we move from AI systems that recognise dangerous situations to AI-assisted methods that help engineers explain and assess why those situations could lead to accidents?

For the University of Hull's Dependable Intelligent Systems group, the objective is to support safer, more transparent and more dependable intelligent systems, with AI assisting human safety expertise.


Explore the Published Research


What do you think? Should generative AI be used to assist safety engineers in evaluating autonomous vehicles, provided its results are independently verified?


PhD Student, AURA CDT

Research Social Media Manager

Member of Dependable Intelligent Systems


Writer profile: Mohadeseh Mollapour, Writer. PhD Student, AURA CDT. Member of Dependable Intelligent Systems.

Comments


bottom of page