Home / Guides / Build a fault tree — SPAD worked example
Foundations · Worked example

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).

≈ 15 min read Worked tree: rail / SPAD Standards: IEC 61025, EN 50126
Corrected 24 October 2026 The earlier version of this guide built a tree whose top OR let a driver error cause a SPAD even when the train protection worked, put the train protection and its brake under an AND although they act in series, added per-demand probabilities to probabilities over a year, called the event count nine in one place and eight in another, called SPAD a CSM-RA indicator, and said the rare-event approximation was accurate to four or five decimal places (on that tree it gave 0.381 against an exact 0.371). The worked example is now rebuilt from the corrected SPAD template, and every number below is computed from it by FTA Studio's engine.

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:

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.

Top event TOP-001 On one approach to a signal that should be showing danger, the train passes it without authority.

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.

Common pitfall — putting every layer under the top OR An OR of "signalling fails", "protection fails" and "driver errs" says a driver error causes a SPAD on its own, even when the protection works — which is exactly what the protection exists to prevent. Before choosing a gate, ask whether the inputs are alternatives (OR) or must coincide (AND).

Step 3Drill each branch to basic events

Signalling (G-001, OR)

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)

Train protection (G-004, OR)

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.

Live tree · pan / zoom / click nodesOpen in new tab ↗

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.

UIDBasic eventDataProbability per approach
BE-001Interlocking or signal controller gives a wrong-side outputλ = 2 × 10⁻⁹ /h, τ = 4,380 h4.38 × 10⁻⁶
BE-002Signal head lights a proceed aspect in errorλ = 1 × 10⁻⁹ /h, τ = 4,380 h2.19 × 10⁻⁶
BE-003Cable fault energises a proceed aspectλ = 5 × 10⁻¹⁰ /h, τ = 4,380 h1.10 × 10⁻⁶
BE-004Driver does not see or misreads the danger aspectQ = 1 × 10⁻⁴1.00 × 10⁻⁴
BE-005Driver sees the aspect but brakes too lateQ = 2 × 10⁻⁵2.00 × 10⁻⁵
BE-006Trackside data transmission fails to give the stopλ = 1 × 10⁻⁷ /h, τ = 8,760 h4.38 × 10⁻⁴
BE-007On-board train protection fails to command the emergency brakeλ = 1 × 10⁻⁵ /h, τ = 24 h1.20 × 10⁻⁴
BE-008Emergency brake does not stop the train in timeλ = 1 × 10⁻⁶ /h, τ = 24 h1.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.

  1. TOP = G-001 OR G-002
  2. Expand G-001 (OR): BE-001 OR BE-002 OR BE-003 — three single-event cut sets.
  3. 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 setOrderProbability per approach
1BE-00114.38 × 10⁻⁶
2BE-00212.19 × 10⁻⁶
3BE-00311.10 × 10⁻⁶
4BE-004 · BE-00624.38 × 10⁻⁸
5BE-004 · BE-00721.20 × 10⁻⁸
6BE-005 · BE-00628.76 × 10⁻⁹
7BE-005 · BE-00722.40 × 10⁻⁹
8BE-004 · BE-00821.20 × 10⁻⁹
9BE-005 · BE-00822.40 × 10⁻¹⁰

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 eventFussell–Vesely
BE-001 Interlocking wrong-side output56.6%
BE-002 Signal head wrong-side28.3%
BE-003 Cable wrong-side14.2%
BE-004 Driver does not see the aspect0.74%
BE-005 Driver brakes too late0.15%
BE-006 Trackside data transmission0.68%
BE-007 On-board protection0.19%
BE-008 Emergency brake0.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

Where to go next

Sources

Every figure in this guide is computed by FTA Studio's engine from the SPAD template file; tests/site/template-claims.mjs recomputes them.