01 Lecture3-Safety
01 Lecture3-Safety
Certification of Autonomous
Vehicles
Lecture 3: Automotive Safety
Instructor: Prof. Marsha Chechik
11
ISO 26262 follows a Safety Lifecycle
Goals
Requirements
43
HARA ISO 26262 Vehicle
Validation
Test
Safety
Concept
Verification
Test
Architecture
HW/SW Dev
Safety Case
Hazard analysis
is iterative over the
life of the project!
46
How do we construct correct, safe and
reliable software?
Rigorous software engineering
We have a defence-
in-depth approach to
the software development
process itself – driven by
identification of a single
point of failure (SPOF).
47
What is a ‘hazard’?
48
What is ‘hazard analysis’?
• Document hazards
• Document hazard controls – how to mitigate each hazard
• Hazard analysis introduces a different way of thinking about our systems
and processes
• There is lots of anecdotal evidence to suggest that we find and mitigate more
hazards when we follow some systematic process designed to perform the
hazard analysis
• Hazard analysis is mandatory in safety critical domains
• Nuclear, medical, chemical process industry, …
• And part of following standards in automotive domain
49
HA Flavours
• Lots to choose from
• Hazard & Operability Study (HAZOPS)
• Fault Tree Analysis (FTA)
• Failure Modes and Effects Analysis (FMEA)
• Failure Modes and Effects Criticality Analysis (FMECA)
• Functional Resonance Accident Model (FRAM)
• System-Theoretic Process Analysis (STPA)
50
Concept – ISO 14971
51
FTA
• Top down
• Process
• Define the TOP event to be analyzed
• Identify the lower level events which may lead to the TOP event and complete
the gates
• (optional) Find minimal cut sets (qualitative)
• (optional) Calculate the failure rate of TOP event (quantitative)
• Cut set = events that together cause the top event (sometimes
called a fault path)
52
Example FTA: Insulin Pump
53
Example FTA: Insulin Pump
54
Example FTA: Insulin Pump
55
FMEA
56
Example Process FMEA
57
Example FMEA: Insulin Pump
Functional decomposition of the insulin pump
58
Example FMEA: Insulin Pump
59
FMEA Safety Requirements
60
Motivation for STPA
• Question: Why do so many cars in Canada not have their rear lights on
at night?
61
STPA
From Nancy Leveson
62
STPA
63
Example STPA: Insulin Pump
Viewed as a control system
64
Example STPA: Insulin Pump
Hazards included
65
Example STPA:
Insulin Pump
66
Safety Cases
Goals
Requirements
68
Assurance Process
69
Assurance Case
• A.k.a. safety case, security case, privacy case, etc.
• An artifact that shows how each of the important
claims about the system can be argued for, ultimately
from evidence obtained about the system
• Evidence can come in many forms:
• test results
• analyses
• model checking results
• expert opinion
• etc.
• The argument is often informal
• “sufficient”
• “adequate”
…with some degree of confidence 70
Safety (Assurance) Case Types: Textual
71
Safety (Assurance) Case Types: Graphical
72
Assurance Case Modeling with GSN – Goal
Structuring Notation
73
Example: Power Sliding Door System
27
Power Sliding Door Safety Case
PSD
75
Incremental development: The answer to the
Complexity/Time Crunch?
• Idea: Reuse existing safety assurance arguments for minor
design changes (e.g. towing features)
• Sounds promising! What are the results?
Toyota Unintended Acceleration (UA)
• Brake Echo Check failsafe system for UA
only received “brake transitions”
• If your foot is already on the brake
…and then a UA event occurs,
you may have to completely take foot off
the brake & reapply to trigger failsafe
system!
2015 Ford Fusion vehicles equipped with a
mechanical key and dual screen cluster, 30
minutes after the ignition is turned off, the
Body Control Module (BCM) allows the key to
be removed when the transmission is not in
Park.
76
Part 573 Safety Recall Report 14V-736
Problem: Support for System and Safety
Evolution
• … correctly
• … quickly (via scalable automated tool support)
• … while facilitating product-level and product-line reuse
R R’
77
System change: Removing Redundant
Switch in Power Sliding Door (PSD)
System S
Δ: removal of
redundant switch Safety goal remains
the same.
System S’
(evolved) How you achieve it &
why you believe it
changes.
78
Naïve Evolution of Safety Case
PSD
79
Solution: Model Based Impact Assessment
System Megamodel
Human-in-the-loop refinement
Model-Based Impact
Assessment Algorithm Annotated Assurance Case
Traceability
Assurance Case
Model Slicers
[MODELS16]: original approach
[SafeComp17]: improved approach, assurance case slicer, cost-savings analysis
80
Begin with original safety case
81
Based on traceability between system and
safety case…
82
Safety informed evolution of safety case
(after review and refinement by engineers)
85
ISO 26262 Assurance Case Template for ADAS
86
Even your keychain might be part of the
problem!
• A 1.6 mm difference in a $0.57 part!
87
Ignition Switch (keychain) Recall Revisited
• Explicit Safety Assurance
Case helps system
understanding
• Provides basis for
evaluating changes
88
Toyota Acceleration – from 2014
talk by Philip Koopman
• NASA did not find a smoking gun but found plenty of questionable
practices, involving both hardware and software
• Jury found that ETCS defects caused a death
• We will look only at the software portion of the stack