How to build a fault tree from scratch — a worked SPAD example
Most FTA tutorials show you a finished tree and explain the symbols. The hard part is getting from a vague hazard ("the train shouldn't run a red light") to a top event you can quantify, then decomposing it without inventing branches that don't exist. This guide walks the workflow on a railway case: a Signal Passed at Danger (SPAD).
What we'll build, and why this example
A SPAD is when a train passes a signal showing danger without authority. It is a precursor to collisions, and railways in the EU report SPADs as one of the precursors among the Common Safety Indicators of Annex I of Directive (EU) 2016/798. The hazard is concrete, the failure routes run through signalling, train protection and human factors, and the structure — two barriers behind a driver — exercises both OR and AND gates.
By the end of this guide we'll have:
- A precisely scoped top event, with its unit stated: per approach to a signal at danger.
- A decomposition by barrier: what has to fail for the train to pass the signal.
- 8 basic events, each a probability per approach.
- The 9 minimal cut sets, ranked by probability.
- A top-event probability and a frank account of what it rests on.
- An importance ranking that says where risk-reduction effort goes next.
The finished tree is the SPAD template that ships with FTA Studio; the interactive version is embedded below. Its data are illustrative assumptions, not field data.
Step 1Define the top event
The top event is a Boolean — it either happened or it did not — so it has to be phrased so that, in principle, you could check it. "Trains are unsafe" can't be checked. "Train passes a signal at danger without authority" can.
- Observable. A reasonable observer with the right data could decide whether it occurred. A train occupying the track beyond a signal at danger is observable; "the driver was inattentive" is a state of mind.
- Single, specific. One hazard per tree. The collision that may follow a SPAD is a separate analysis (an event tree, or a tree with SPAD as an input).
- Independent of the mitigation. Don't write "SPAD that the train protection fails to catch" as the top event: the protection is part of the system being analysed, so it goes inside the tree.
The phrase "on one approach" fixes the unit, and every basic event has to be expressed in it: a probability per approach, not a rate per hour or a probability per year. Mixing the two is the commonest arithmetic error in a fault tree, and the earlier version of this guide made it. A rate of SPADs per year then follows by multiplying by the number of approaches to signals at danger in a year.
Write down what you will compare the result with before you quantify. That criterion is the duty holder's — it is not in the fault tree — and if the result does not meet it, you have a system that needs changes, not a model that is wrong.
Step 2First-level decomposition
Walk back one step from the top event: under what conditions does a train pass a signal at danger? On a line with train protection there are two barriers between a driver's error and a SPAD — the driver, and the protection that supervises the train and applies the emergency brake. A signal that wrongly shows proceed defeats both at once. So:
G-001 · Signal shows proceed when it should show dangerOR
A wrong-side failure. Driver and protection both read a proceed aspect and neither has reason to stop. Any one of several failures causes it — hence OR.
G-003 · Driver does not stop at the signalOR
The driver does not see or misreads the aspect, or sees it and brakes too late. Either error alone takes the train past the signal unless something else stops it — hence OR.
G-004 · Train protection does not stop the trainOR
The protection is a chain in series: the trackside data must reach the train, the on-board unit must command the brake, and the brake must stop the train in time. Any one link failing defeats it — hence OR, not AND.
The driver and the protection are joined by an AND, G-002: with the signal correct, a SPAD needs the driver to fail to stop and the protection to fail to stop the train. The top gate is an OR of G-001 and G-002. That is the shape of defence in depth: a barrier in series with another goes under an AND, the parts of one barrier go under an OR.
Step 3Drill each branch to basic events
Signalling (G-001, OR)
- BE-001 — Interlocking or signal controller gives a wrong-side output.
- BE-002 — Signal head lights a proceed aspect in error.
- BE-003 — Cable fault energises a proceed aspect.
Only wrong-side failures belong here. A lamp that goes dark is not one: a dark signal is treated as the most restrictive aspect, so it stops the train rather than passing it.
Driver (G-003, OR)
- BE-004 — Driver does not see or misreads the danger aspect.
- BE-005 — Driver sees the aspect but brakes too late.
Train protection (G-004, OR)
- BE-006 — Trackside data transmission fails to give the stop.
- BE-007 — On-board train protection fails to command the emergency brake.
- BE-008 — Emergency brake does not stop the train in time.
The full structure, drawn live below, is the SPAD template. Pan, zoom and click any node to see its description, failure mode, detection and data.
Step 4Attach data to the basic events
8 basic events, one unit: probability per approach. The two driver events are human-error probabilities per approach. The hardware events are unavailabilities: a fault that stays hidden until a periodic test is present on a given approach with average probability λτ/2, where λ is its rate and τ the test interval. The values are illustrative assumptions for this example; a real analysis cites a source for each.
| UID | Basic event | Data | Probability per approach |
|---|---|---|---|
BE-001 | Interlocking or signal controller gives a wrong-side output | λ = 2 × 10⁻⁹ /h, τ = 4,380 h | 4.38 × 10⁻⁶ |
BE-002 | Signal head lights a proceed aspect in error | λ = 1 × 10⁻⁹ /h, τ = 4,380 h | 2.19 × 10⁻⁶ |
BE-003 | Cable fault energises a proceed aspect | λ = 5 × 10⁻¹⁰ /h, τ = 4,380 h | 1.10 × 10⁻⁶ |
BE-004 | Driver does not see or misreads the danger aspect | Q = 1 × 10⁻⁴ | 1.00 × 10⁻⁴ |
BE-005 | Driver sees the aspect but brakes too late | Q = 2 × 10⁻⁵ | 2.00 × 10⁻⁵ |
BE-006 | Trackside data transmission fails to give the stop | λ = 1 × 10⁻⁷ /h, τ = 8,760 h | 4.38 × 10⁻⁴ |
BE-007 | On-board train protection fails to command the emergency brake | λ = 1 × 10⁻⁵ /h, τ = 24 h | 1.20 × 10⁻⁴ |
BE-008 | Emergency brake does not stop the train in time | λ = 1 × 10⁻⁶ /h, τ = 24 h | 1.20 × 10⁻⁵ |
The test interval matters as much as the rate: the signalling's rate is thousands of times lower than the on-board unit's, but its faults are assumed to stay hidden for six months rather than a day, so the gap between their probabilities is far smaller than the gap between their rates.
Step 5Qualitative analysis — minimal cut sets
Before any numbers, reduce the tree to its minimal cut sets: the smallest combinations of basic events whose joint occurrence makes the top event true. The standard algorithm is MOCUS, which substitutes children into parents top-down and removes supersets.
TOP = G-001 OR G-002- Expand
G-001(OR):BE-001 OR BE-002 OR BE-003— three single-event cut sets. - Expand
G-002(AND):G-003 · G-004 = (BE-004 OR BE-005) · (BE-006 OR BE-007 OR BE-008). Distributing the AND over the ORs gives 2 × 3 = six two-event cut sets.
No cut set contains another, so all 9 are minimal. Ranked by probability:
| # | Cut set | Order | Probability per approach |
|---|---|---|---|
| 1 | BE-001 | 1 | 4.38 × 10⁻⁶ |
| 2 | BE-002 | 1 | 2.19 × 10⁻⁶ |
| 3 | BE-003 | 1 | 1.10 × 10⁻⁶ |
| 4 | BE-004 · BE-006 | 2 | 4.38 × 10⁻⁸ |
| 5 | BE-004 · BE-007 | 2 | 1.20 × 10⁻⁸ |
| 6 | BE-005 · BE-006 | 2 | 8.76 × 10⁻⁹ |
| 7 | BE-005 · BE-007 | 2 | 2.40 × 10⁻⁹ |
| 8 | BE-004 · BE-008 | 2 | 1.20 × 10⁻⁹ |
| 9 | BE-005 · BE-008 | 2 | 2.40 × 10⁻¹⁰ |
- The 3 single events are the wrong-side signal failures. They defeat both barriers at once, so nothing else has to fail. That is why wrong-side failures of signalling are held to the most demanding integrity requirements.
- Every driver error is paired with a protection failure. The six order-2 cut sets are the AND in G-002 at work: the protection turns the driver into one of two barriers.
Step 6Quantitative evaluation and importance
FTA Studio computes Q(top) exactly from a binary decision diagram of the tree: Q(top) = 7.73 × 10⁻⁶ per approach. Summing the cut-set probabilities instead — the rare-event approximation — gives 7.73 × 10⁻⁶. The two agree here because every cut set is small; the sum is an upper bound and is not close when single events are large, as on the earlier version of this tree.
Branch by branch: the wrong-side signal failures, G-001, are 7.66 × 10⁻⁶ per approach. The driver does not stop with probability 1.20 × 10⁻⁴ per approach and the protection fails to stop the train with probability 5.70 × 10⁻⁴ per demand, so the driver-and-protection branch, G-002, is 6.84 × 10⁻⁸. Without train protection the tree gives 1.28 × 10⁻⁴ per approach.
To turn this into a rate, multiply by the number of approaches to signals at danger. At an assumed 1,000 such approaches per train per year, the tree gives 7.73 × 10⁻³ SPADs per train per year.
Importance measures — where the next effort goes
The Fussell–Vesely importance of a basic event is the fraction of Q(top) coming from cut sets that contain it:
| Basic event | Fussell–Vesely |
|---|---|
BE-001 Interlocking wrong-side output | 56.6% |
BE-002 Signal head wrong-side | 28.3% |
BE-003 Cable wrong-side | 14.2% |
BE-004 Driver does not see the aspect | 0.74% |
BE-005 Driver brakes too late | 0.15% |
BE-006 Trackside data transmission | 0.68% |
BE-007 On-board protection | 0.19% |
BE-008 Emergency brake | 0.019% |
Under these assumptions the wrong-side signal failures carry almost all of the result, and the ranking rests on how long a wrong-side fault stays hidden. Testing the signalling monthly instead of every six months gives 1.33 × 10⁻⁶ per approach. That is the useful output of a fault tree at this stage: not the absolute number, which is only as good as the assumed data, but which assumption the answer depends on — here the test interval of the signalling, which is the first figure to source properly.
What this guide deliberately left out
- Dependence between the driver and the brake. Low adhesion makes the driver's braking too late (BE-005) and the emergency brake's stopping distance too long (BE-008) at the same time. Treating them as independent under-counts the risk. A shared basic event for low adhesion, or a β-factor common-cause group, would represent it.
- Train protection fitment. The tree assumes protection is fitted and active on every approach. Where it is not, the driver is the only barrier — the "without train protection" figure above — and the share of such approaches enters the tree as a conditioning event.
- Detection between tests. λτ/2 assumes a fault stays hidden until the next periodic test. A wrong-side failure may also be revealed sooner, by other trains or by the signaller, which would shorten the hidden time.
- Data. Every value is an assumption. Before the result can support a decision, each one needs a source.
Where to go next
- Open the tree in the editor via the embed above, or open the SPAD template in FTA Studio, to run the cut sets and importance yourself and change the data.
- Add parameter uncertainty — every value here is a point estimate. Lognormal distributions on each event give a 5th–95th percentile band on Q(top); the browser Monte Carlo tool runs it without your data leaving your machine.
- Repeat the process for your own top event. An observable top event with its unit stated, decomposition by barrier, one unit throughout, cut sets before numbers, importance before absolute values — the workflow is the same in any industry.
Sources
- Directive (EU) 2016/798 on railway safety, annexes (legislation.gov.uk copy)
- ERA — Implementation guidance for Common Safety Indicators
- EN 50126-1:2017 — Railway applications — RAMS — Part 1: Generic RAMS process
Every figure in this guide is computed by FTA Studio's engine from the SPAD template file; tests/site/template-claims.mjs recomputes them.