Companion to Letters Before Numbers

Above the Noise Floor

A derived residual can be exactly right and completely useless. This is about the gap between having the relation and having a monitor: what noise does to it, how to set a threshold you can defend, why build tolerance and not the sensor is usually the limit, and how a life distribution becomes a maintenance date.

Why this page exists

Part X of Letters Before Numbers derived an analytical redundancy relation and showed it detecting four faults cleanly. That demonstration used noise-free simulated data. On a real sensor it does not work, and it fails by a factor of about forty thousand. This page starts from that failure, because the fix is more interesting than the original claim and because the reason it fails is worth understanding properly.

Part I

The statistic, not the residual

A relation is not a detector. What you compute from it decides everything.

01

A residual that cannot work

Here is the relation, unchanged. Two thermal nodes, the core temperature eliminated symbolically, leaving something testable from the case sensor and the known heat input alone:

the analytical redundancy relationR = C₁C₂·T₂'' + (C₁k₁₂ + C₁k₂₀ + C₂k₁₂)·T₂' + k₁₂k₂₀(T₂ - T₀) - k₁₂q
on noise free datahealthy: |R| < 1e-4 W    a 30% loss of k₁₂: peak 317 W
# which is what the original figure showed, and it is true

Now put a real sensor on it. A thermocouple with a quarter of a degree of noise, sampled every two seconds. The relation contains a second derivative of that signal, and a second derivative of noise is a catastrophe.

Figure 1

The same relation, with a real sensor on it

residual noise, closed form largest fault signal available
The rust curve is the standard deviation of the residual when nothing is wrong, driven entirely by sensor noise passing through the second derivative. The teal line is the peak residual a thirty percent loss of the coupling conductance produces. They cross only at absurdly slow sampling, and by then the transient carrying the information is gone. At the sensible settings the noise is roughly four orders of magnitude larger than the signal.
122,354 W
residual noise, measured over 40 runs
122,474 W
closed form prediction, 0.1% apart
317 W
peak signal from a 30% fault
0.0026
signal to noise, as published

That is not a tuning problem. No threshold rescues a statistic whose noise is four hundred times its signal. If you build this monitor and put it on a vehicle it will alarm constantly and detect nothing, and the failure will look like a software defect rather than what it is, which is a design error made three steps earlier.

02

Where the noise gain comes from

The pleasant part is that the size of the disaster is predictable in closed form, so you can see it coming before writing any code.

A residual is a linear operator applied to the measurement. Independent noise of standard deviation sigma at each sample, passed through a discrete second derivative built from two central differences, comes out with variance six over sixteen h to the fourth. The relation multiplies that by the product of the two capacitances:

noise standard deviation of the residualsigma_R = C₁·C₂·sigma·sqrt(6) / (4·h²)
at C₁C₂ = 3.2e6, sigma = 0.25 K, h = 2 spredicted 122,474 W  ·  measured 122,354 W over 40 runs

Three things follow immediately, and all three are visible in the formula rather than discovered by experiment.

Compute this first

Before implementing any model-based residual, propagate the sensor noise through it symbolically and compare the result with the fault signal you expect. It takes ten minutes and it is the single highest-value check in this whole subject. If the ratio is below one, stop and change the statistic, not the threshold.

03

The information is still there

Here is the part that changes how you should think about all of this. The catastrophe of Section 1 is a property of the statistic, not of the measurement. The fault information was never destroyed. It was discarded.

Watch what happens when you write it out. Let the fault change the measured signal by some waveform. The measurement is that plus noise, and the residual is the relation applied to both:

the residual, decomposedr(t) = H[ T₂healthy + ΔT₂(t) + n(t) ]
     = 0 + H[ΔT₂] + H[n]
optimal detector performanceSNR² = ∫ |H·ΔT₂|² / ( |H|²·σ² ) dω
       = ∫ |ΔT₂|² / σ² dω

# H cancels. Completely.

The fault and the noise pass through the same operator, so in the ratio that governs optimal detection the operator divides out. The best achievable detection performance depends only on how much the fault changes the measured signal, measured against the sensor noise, and not at all on how you chose to write the relation.

Figure 2

What is available against what the naive statistic gets

For each fault, the ceiling set by the physics and the sensor, against what a threshold on the raw relation actually achieves. Note the axis: each gridline is a factor of ten. The gap is between four and six orders of magnitude, and it is entirely self-inflicted.

This is worth stating plainly because it reframes the whole exercise. Deriving the relation is a modeling achievement. Turning it into a detector is a separate design problem, and the second one is where monitors are usually lost. The symbolic work of the parent page tells you what is knowable. It does not tell you how to know it, and assuming that a threshold on the derived expression is good enough is the mistake this page exists to name.

04

Four statistics from one relation

Same model, same data, same noise. Four different things to compute from it, scored identically by how well they separate healthy from faulted.

Figure 3

Detection performance of four statistics

Separation index between the healthy and faulted distributions of each statistic, from 400 Monte Carlo runs per case, plus the detection probability each achieves at a false alarm rate of one in a thousand. All four see exactly the same measurements.
The practical reading

If you know what the fault looks like, correlate against it. If you do not know its size, estimate the parameter. Thresholding the residual directly is defensible only when the relation is zero order in the measurements, which is to say when it contains no derivatives at all, which is rare and worth checking for.

05

Why the filter worked all along

There is a loose end in the parent page that this explains. Section 41 there ran an extended Kalman filter on this same model, with this same quarter degree of sensor noise, and it tracked a drifting conductance to two thousandths of a watt per kelvin. Meanwhile the residual of Section 36 could not see a thirty percent fault.

Both are true, and they are the same story from two ends. The Kalman filter is, for a linear Gaussian problem, the optimal estimator. It is quietly doing the matched filtering of Section 3: weighting each measurement by its information content, integrating over the whole history, and never differentiating anything. The residual was throwing that away one sample at a time.

ApproachWhat it does with the modelNoise behaviourOutput
raw relationevaluates it pointwiseamplifies by the order of the relationa scalar per sample, discard the rest
matched filteruses it to predict the fault waveformoptimal, integrates the windowone detection statistic per window
Kalman filteruses it as the propagation lawoptimal, integrates all historystate and parameter estimates with covariance
parity space, filteredevaluates a filtered relationpartial, limited by band overlapa residual with a usable threshold, sometimes

The estimator route costs more computation and needs a covariance you can defend. What it buys is that it uses the information rather than sampling it, and on any model where the fault is slow relative to the observation window that difference is not a refinement. It is the difference between working and not working.

Part II

Thresholds and time

Every alarm limit is a claim about how often you are willing to be wrong. Make the claim explicit.

06

Thresholds from a budget, not from a tuning session

Thresholds usually get set by running the monitor on some healthy data, seeing the biggest excursion, and adding margin. That produces a number nobody can defend and that nobody can adjust rationally when the fleet grows.

The defensible way round is to start from what you are willing to spend on false alarms and derive the threshold from the noise model you already have. A monitor testing once an hour for four thousand hours makes four thousand opportunities to be wrong. If the budget is one percent of units false alarming over that life, the per-test rate has to be about two and a half parts in a million, which is four and a half sigma, not three.

from budget to limitp_per_test = 1 - (1 - P_run)**(1/N_tests)
threshold = sigma_R * z(1 - p_per_test)
for a 1% run budget over 4,000 testsp_per_test = 2.5e-6 -> 4.62 sigma
# verified by simulation: 0.7% of healthy runs alarmed

Three sigma, the number everyone reaches for, gives a false alarm on essentially every unit over that many tests. The parent page's own simulation confirmed it: ninety-nine runs in a hundred tripped.

The fleet multiplier

Now multiply by the fleet. A one percent per-unit false alarm rate across two hundred thousand vehicles is two thousand wrongly flagged units, each of which may become a dealer visit and a replaced good part. The threshold is a warranty cost decision wearing a statistics costume, and it should be signed off by someone who owns that budget.

07

Slow drifts, and why a fixed threshold is the wrong test

Every wear mechanism produces a slow ramp, and a fixed threshold is a poor detector of slow ramps. It looks at each sample alone and throws away the fact that the last four hundred samples were all slightly high in the same direction.

The cumulative sum test keeps that memory. It accumulates the residual minus a small slack term, floors at zero, and alarms when the accumulation crosses a limit. Tuned to the same false alarm budget as the fixed threshold, it detects the same drift considerably earlier, and the advantage grows the slower the drift is.

Figure 4

A fixed limit and a CUSUM on the same drift, same false alarm budget

residual, noisy true drift CUSUM accumulation
Both detectors calibrated by simulation to alarm on under one percent of healthy 4,000 hour runs. The fixed limit sits at 4.62 sigma and waits for one sample to reach it. The CUSUM crosses its limit far earlier because a persistent bias of a fraction of sigma accumulates while noise does not.
Drift time constantFixed limit detects atCUSUM detects atFault size at the fixed alarmFault size at the CUSUM alarm
4,000 h42 h22 h1.04%0.55%
20,000 h170 h61 h0.85%0.30%
80,000 h550 h170 h0.69%0.21%

Read the last row. On the slowest drift, which is the one a real component actually exhibits, the cumulative test finds the fault three times sooner and at a third of the severity, for no extra sensor and no extra false alarms. The only cost is one stored accumulator per monitored parameter.

08

The smallest fault you can see, and why it stops improving

Given the noise, the model and an observation window, there is a smallest fault that is detectable at a stated confidence. It is computable rather than empirical, and it is the number a specification should contain instead of a vague claim about sensitivity.

Figure 5

Minimum detectable fault against observation window

Smallest loss of coupling conductance detectable at a separation index of four, against how long you are willing to watch. The improvement follows the usual square root of time for a while, and then stops dead at just under one percent.

That plateau is the interesting feature, and the parent page already explained it without knowing it had. The steady state gain of this system is one over the conductance to ambient, with the coupling conductance cancelling out entirely. Once the thermal transient has passed, the measurement contains no further information about the coupling, so every additional hour of watching adds noise and no signal.

In plain words

Watch longer and you learn more, until the thing you are trying to see stops affecting the measurement. After that, patience is not a substitute for excitation. If you need better than the plateau, you have to make the system move: a load step, a thermal cycle, an active test. That is a design requirement on the vehicle, discovered from the transfer function, and it is much cheaper to discover it now than after calibration fails.

Part III

Robustness, and honest limits

The residual does not know the difference between a fault and a unit that was built at the edge of tolerance.

09

Build tolerance makes residuals too

Everything so far treated the healthy model as exact. It is not. Every unit leaves the line with capacitances, conductances and loss coefficients scattered around nominal, and a residual computed with nominal parameters is non-zero on a perfectly healthy unit simply because that unit is not nominal.

This is not a small correction. With plus or minus ten percent on the capacitances and twelve on the conductances, the healthy fleet spread swamps the sensor noise by two orders of magnitude.

Figure 6

The healthy fleet, and where the faults sit inside it

Distribution of the steady state residual across 20,000 healthy units drawn from the stated build tolerances, with four fault signatures marked. A ten percent loss of the conductance to ambient lands well inside the healthy population and cannot be separated from it by any fleet-wide limit.
79.3 W
healthy spread from build tolerance
3.8 W
spread from sensor noise alone
16.6%
smallest detectable fault, fleet limit
0.93%
what the sensor alone would allow

The conclusion reorders the project plan. A better sensor buys nothing here. Faster sampling buys nothing. The binding constraint is manufacturing spread, and every hour spent on signal processing is an hour spent on the wrong problem.

10

The per-unit baseline

The fix follows directly from the diagnosis. If the problem is that units differ from each other, stop comparing a unit to the fleet and start comparing it to itself.

Learn each unit's own residual over its first hours of healthy service, store that as its baseline, and monitor the departure from it. The build tolerance cancels, because it is common to the baseline and the current reading. What remains is sensor noise and genuine change.

1.7σ
a 10% fault against the fleet spread
15.2σ
the same fault against its own baseline
~9×
improvement, from bookkeeping alone
0
new sensors required

Nine times the sensitivity for the cost of storing one number per vehicle. That is the best return available anywhere in this subject, and it is available only because the analysis identified the right limiting factor first.

Three things that break a baseline

Learning it while the unit is already degrading, which bakes the fault into the reference. Learning it under one operating condition and applying it under another, since the residual depends on load. And any repair or replacement, after which the baseline is describing a component that is no longer fitted and must be relearned. All three want an explicit baseline validity record, not an implicit one.

11

Sensor faults belong in the signature matrix

The parent page built a signature matrix over four process faults and concluded that the coupling conductance was uniquely isolable. That conclusion is correct within the fault set considered, and the fault set was incomplete.

A sensor is a component and it fails. Add a two kelvin bias on each of the two temperature sensors as candidate faults, recompute the signatures, and something uncomfortable appears.

Figure 7

Six faults in a two dimensional residual space

Each fault plotted as its direction and magnitude in the plane of the two residuals. A bias on the core temperature sensor lies at exactly the same angle as a loss of coupling conductance. The two are collinear, so no test on these two residuals can separate them, whatever the magnitudes.

A drifting core temperature sensor and a degrading thermal interface produce residuals in exactly the same direction, minus forty five degrees, differing only in size. The monitor that was going to report a confident single cause will report the interface, a technician will replace a good thermal pad, and the sensor will keep drifting.

What to do about it

Include sensor faults in the candidate set from the beginning; they are usually more common than the process faults you designed for. Where a sensor fault is collinear with a process fault, break the tie outside the residual space: a plausibility band on the raw reading, a cross-check against a second sensor at a known operating point, a cold-soak comparison at key-on when all temperatures should agree. Those tests cost nothing and they are the only thing standing between your diagnostic and a wrong part number.

12

Two faults can forge a third

The signature matrix rests on an assumption that is almost never stated: that exactly one thing is wrong. Drop it and the logic changes character completely.

Two residuals span a two dimensional space. Any two independent fault directions span that same space. So for any single fault, some weighted pair of two other faults reproduces its direction exactly, and the residuals cannot tell the difference.

Figure 8

Every verdict has an alias

For each single fault, the closest two-fault combination from the remaining candidates and how far off its direction is. Five of the six single faults have a two-fault alias that matches to within a tenth of a degree.

This is not a flaw in the method, it is arithmetic. With m relations you can distinguish at most m independent fault directions, and the number of possible multi-fault combinations grows much faster than m. Two relations and six candidate faults is a badly underdetermined problem the moment you allow more than one to be present.

13

What can honestly be reported

Putting Sections 9 through 12 together gives a hierarchy of claims, in decreasing order of how defensible they are. A diagnostic report should say which level it is making.

ClaimWhat it requiresUsually available?
Something changed on this unitA per-unit baseline and a threshold from a stated false alarm budgetYes, and it is worth far more than it sounds
The change is in this subsystemResidual direction distinguishable from other subsystemsOften
The change is this parameterA unique column in the signature matrix, over a fault set that includes sensorsSometimes
The change is this parameter, by this muchThe above, plus an identifiable parameter and an estimatorSometimes, and only with the identifiability check done
Exactly one thing is wrongA prior on multiple faults, or more relations than faultsRarely, and it is usually assumed rather than established

The first row deserves more respect than it gets. "This unit has departed from its own baseline by six sigma in a direction consistent with the cooling path" is an enormously useful thing to put in front of a technician, and it is honest. "Replace the thermal interface material" is more satisfying to write and, on the analysis above, frequently wrong.

Part IV

Decisions

A remaining life estimate that nobody acts on differently is a number, not a result.

14

From a distribution to a date

The parent page ended with a life distribution: a nominal of about 2,700 hours with a standard deviation of roughly 1,550. What it did not do is turn that into an action, and the step from one to the other is where most prognostics programmes quietly stop.

The mistake to avoid is scheduling at the mean. By construction, half the population fails before the mean of its own life distribution. A service interval set there converts a prognostic system into a slightly better guess about which half.

Figure 9

The life distribution, and what each candidate interval costs

replaced on plan failed in service first
Move the interval and watch the population split. Everything left of the line is replaced on schedule; everything right of it has already failed. The two shaded areas are the two ways of being wrong, and they are not equally expensive.
15

The cost ratio sets the interval

Which brings the decision down to one number: how much more an unplanned failure costs than a planned replacement. Roadside recovery, a damaged neighbouring component, a warranty claim and a customer who tells people about it, against a part and an hour of labour scheduled at a convenient time.

With that ratio in hand the optimal interval is the one minimizing expected cost per hour of service, and it can be read off directly from the life distribution.

Figure 10

Optimal replacement interval against the cost of failing in service

Expected cost per service hour against replacement interval, for four ratios of unplanned to planned cost. Each curve has a clear minimum, and the minimum moves earlier as the consequence of failure rises. At every ratio it sits well below the mean life.
Unplanned / planned costOptimal intervalUnits failing in serviceReading
32,525 h44.9%Cheap failures: run components close to their mean life
101,500 h21.5%Typical warranty economics for a serviceable part
301,125 h15.1%Failure damages something else
100925 h12.3%Safety or immobilization: replace at a third of mean life

Two things fall out that are worth carrying into a programme review. The optimal interval is never the mean and is usually a third to a half of it, so a prognostic that reports a mean and stops has done the arithmetic and withheld the answer. And narrowing the distribution is worth real money: the tighter the spread, the later you can safely schedule, which is precisely the payoff the uncertainty ranking of the parent page tells you how to buy.

16

What to log

Almost everything above depends on data that has to be recorded before anyone knows it will be needed. The list is short and the cost of getting it wrong is measured in vehicle-years.

The cheapest insurance

An accumulated damage integral is a handful of bytes and it cannot be reconstructed after the fact. If you log one thing beyond the alarm bit, log that.

Part V

Practice

17

A checklist

  1. Derive the relation symbolically, and check detectability and isolability before anything else. That is the parent page.
  2. Propagate the sensor noise through the relation in closed form and compare it to the expected fault signal. If the ratio is below one, the statistic is wrong, not the threshold.
  3. Compute the ceiling: how much the fault changes the measured signal, against the noise. That is what any detector can achieve at best.
  4. Choose the statistic to approach that ceiling. Matched filter if the waveform is known, parameter estimation if the size is not, a filtered residual only if the relation has low order.
  5. Add the build tolerance and recompute the smallest detectable fault. If tolerance dominates, stop working on signal processing and implement a per-unit baseline.
  6. Set the threshold from a stated false alarm budget over the whole service life and the whole fleet, not from three sigma.
  7. Use a cumulative test for anything that degrades slowly, which is everything that wears.
  8. Put sensor faults in the candidate set and recheck isolability. Break collinear ties with plausibility tests outside the residual space.
  9. State the multiple-fault assumption explicitly, and pick the claim level from Section 13 that the evidence actually supports.
  10. Convert the life distribution into an interval using the cost ratio, and report the interval rather than the mean.
  11. Log the baseline, the residual history, the duty bins and the model version.
18

Traps

SymptomCauseFix
The monitor alarms constantly and detects nothingNoise gain of a high-order relationChange the statistic, not the threshold. Sections 2 to 4
Sampling faster made it worseNoise gain goes as h to the minus order of the relationFilter or integrate rather than differentiate
Low-pass filtering did not helpSignal and noise occupy the same band after differentiationMatched filter or estimator
Works on the dyno unit, fails across the fleetBuild tolerance dominates sensor noisePer-unit baseline
Three sigma false alarms on nearly every unitThousands of tests per life, threshold set per-testDerive the limit from a whole-life budget
Slow wear is caught only when it is severeFixed threshold has no memoryCUSUM or another sequential test
Watching longer stopped helpingThe parameter has left the measured signal, usually at steady stateExcite the system, or accept the plateau as a specification
Good parts replaced repeatedlyA sensor fault collinear with the process faultAdd sensor faults to the matrix, add plausibility tests
The diagnosis changes month to monthA second fault arrived and rotated the residual directionTrack direction over time, treat rotation as evidence
Prognostics is accurate and nobody uses itA mean life was reported instead of a decisionApply the cost ratio and quote an interval
19

Glossary

Noise gain
How much a residual amplifies measurement noise. Computable in closed form from the relation, and the first thing to check.
Matched filter
Correlating the data against the waveform the fault would produce. Optimal for a known signal in white noise, and the ceiling every other detector is measured against.
Separation index (d-prime)
Distance between the healthy and faulted distributions of a statistic, in units of their pooled spread. A single number for how detectable something is.
False alarm budget
The rate of wrong alarms you are willing to accept over the whole service life and the whole fleet. Thresholds should be derived from it, not the reverse.
CUSUM
A sequential test that accumulates small persistent deviations. Detects slow drifts far earlier than a fixed limit at equal false alarm rate.
Minimum detectable fault
The smallest parameter change detectable at a stated confidence, given the noise and the window. The number a specification should contain.
Per-unit baseline
Each unit's own healthy residual, learned in service and subtracted thereafter, so build tolerance cancels.
Collinear faults
Two faults producing residuals in the same direction. Never separable by any test on those residuals, whatever their magnitudes.
Signature alias
A combination of several faults reproducing the signature of a single one. Unavoidable when candidate faults outnumber relations.
Cost ratio
Cost of an unplanned failure divided by the cost of a planned replacement. The one number that converts a life distribution into a service interval.
20

References

  1. Mazouchi, M. (2026). Letters Before Numbers. The parent monograph. Parts V and X in particular are assumed here.
  2. Gertler, J. (1998). Fault Detection and Diagnosis in Engineering Systems. Marcel Dekker. Structured and directional residuals, and the geometry of Section 11.
  3. Blanke, M., Kinnaert, M., Lunze, J., and Staroswiecki, M. (2016). Diagnosis and Fault-Tolerant Control, 3rd edition. Springer.
  4. Isermann, R. (2005). Model-based fault-detection and diagnosis: status and applications. Annual Reviews in Control, 29(1), 71-85. sciencedirect.com
  5. Basseville, M. and Nikiforov, I. V. (1993). Detection of Abrupt Changes: Theory and Application. Prentice Hall. The standard treatment of CUSUM and sequential detection. people.irisa.fr/Michele.Basseville/kniga
  6. Page, E. S. (1954). Continuous inspection schemes. Biometrika, 41(1-2), 100-115. The original cumulative sum test.
  7. Van Trees, H. L. (2001). Detection, Estimation, and Modulation Theory, Part I. Wiley. Matched filtering and the invariance argument of Section 3.
  8. Kay, S. M. (1998). Fundamentals of Statistical Signal Processing, Volume II: Detection Theory. Prentice Hall.
  9. Chen, J. and Patton, R. J. (1999). Robust Model-Based Fault Diagnosis for Dynamic Systems. Kluwer. Disturbance decoupling and robustness to model uncertainty.
  10. Frank, P. M. and Ding, X. (1997). Survey of robust residual generation and evaluation methods in observer-based fault detection systems. Journal of Process Control, 7(6), 403-424.
  11. Sankararaman, S. and Goebel, K. (2015). Uncertainty in prognostics and systems health management. International Journal of Prognostics and Health Management, 6(4). papers.phmsociety.org
  12. Jardine, A. K. S., Lin, D., and Banjevic, D. (2006). A review on machinery diagnostics and prognostics implementing condition-based maintenance. Mechanical Systems and Signal Processing, 20(7), 1483-1510. The maintenance decision framing of Part IV.
  13. Barlow, R. E. and Proschan, F. (1965). Mathematical Theory of Reliability. Wiley. Age replacement policies and the cost-rate minimization of Section 15.
  14. Goldberg, D. (1991). What every computer scientist should know about floating-point arithmetic. ACM Computing Surveys, 23(1), 5-48. dl.acm.org
On the numbers in this page

Every figure is measured, not asserted. The noise gain was checked against its closed form over 40 runs and agrees to 0.1 percent. The detection comparisons are 400 Monte Carlo runs per case. The threshold and CUSUM limits were calibrated by simulation to a verified false alarm rate. The fleet spread is 20,000 sampled units and the life decision is 400,000 samples. Absolute values depend on the example model; the orders of magnitude and the rankings are the point.