Remaining useful life (RUL): report an interval, not one number
Learn how RUL is defined, what each of three common approaches needs as data, and how to report P10, P50 and P90 values with a worked trend calculation.
See when a health indicator may reach its threshold, with an uncertainty band.
How to read the time left to threshold and its uncertainty.
When will a worn part reach its limit? A single date hides how uncertain that answer is. Horizon tracks a health indicator, such as vibration or pressure drop, and filters out the noise. A Kalman trend model estimates the rate of wear, and thousands of simulated futures show the spread. You read a window, not a date: early, likely, late. Enter your planning lead time, and the forecast becomes a decision. Load your own series, or try a scenario. The forecast is a guide, not a guarantee.
Narration: synthetic voice (Piper, voice “Joe”, CC0 public domain). Captions are burned into the video.
Pick a scenario. All are mathematically generated examples, not real machine data.
Drop a CSV file here
One numeric column: the row number is the time. With a date column, elapsed days are used.
The time your team needs to prepare. The forecast is read against this time.
Pale: measured. Dark: level. Band: likely path (P10–P90).
Bars: simulated paths crossing in each window. Colours: zones versus lead time.
The needle compares the most likely crossing (P50) with the planning lead time.
If the line moves away from zero in the direction of degradation, degradation is speeding up. Shade: ±2 standard deviations.
Bars: error on the last 20% (RMSE; lower is better).
Six steps: prepare the series and the threshold, track the trend with a damped Kalman filter, project the future by simulation, read the crossing times as percentiles, compare with two simple models, then apply the decision rules.
Each row is one time point, and at least 12 are needed. The direction comes from the overall trend; the threshold is the value where the function is lost. On your own data the threshold is pre-filled automatically: that is only a starting point, so replace it with your real limit.
Median of successive time gaps: the typical spacing between points.
Elapsed time.
In automatic mode H is at least 2E and at least 50 spacings. In manual mode H = h·Δt, with h between 50 and 400 steps.
Number of simulation steps; at most 400.
Length of one simulation step.
| Setting | Value | Note |
|---|---|---|
| Minimum points | 12 | for the model; the model comparison needs 20 or more |
| Maximum points | 1,500 | longer series are reduced to groups of equal row count, each averaged |
| Steps N_s | 2 – 400 | at most 400 steps |
| Direction | ±1 | falls if Σ(t − t̄)(y − ȳ) < 0, rises otherwise |
Source horizon/horizon.js · wasm/kutupml.js
The indicator is tracked with two numbers: the current level and the degradation rate. At each new measurement the filter corrects both and removes measurement noise. The rate is damped: strong damping flattens the forecast, weak damping lets the degradation rate carry on.
State equation, level: the level moves at the rate.
State equation, rate: it decays by e−κΔt per step; with κ = 0 it stays constant.
The process-noise covariance Q is a 2 × 2 matrix; its three entries are given by these equations.
Measurement: observed value = level plus measurement noise.
Innovation ε: the prediction error.
S: variance of the innovation.
Correction; the rate is corrected the same way, with Pℓb.
Likelihood: in automatic mode q_ℓ, q_s, R and κ are searched to maximise this value.
The level and rate on the chart come from a backward RTS smoother; at the last point they equal the filtered values, where the forecast starts.
Backward difference: between the smoothed and the predicted state.
RTS gain.
| Setting | Value | Note |
|---|---|---|
| Initial state | OLS | first at most 6 points; Pℓℓ = R + 10⁻⁶·range², Pbb = (range / T)², Pℓb = 0 |
| Noise start | r₀ = (1.4826·MAD)² / 2 | MAD: median absolute deviation of successive differences; R = r₀ |
| Other starts | 10⁻³·r₀·Δt̄ · 10⁻⁴·r₀/Δt̄ · κT = 0.3 | Δt̄ = T / (n − 1); starts for q_ℓ, q_s, κT |
| Search | Nelder–Mead | ≤ 260 iterations; log q_ℓ, log q_s, log R ∈ [−40, 25]; log κT ∈ [−7, 3.5] |
| Manual mode | κ = 0 | q_ℓ, q_s and R are typed in; the rate behaves as a random walk |
Source dev/native/kutupml.c · wasm/kutupml.js · horizon/horizon.js
Starting from today’s uncertain level and rate, 500 to 1,200 possible futures are drawn forward (default 1,000). Each path moves in steps: the level changes at the current rate, the rate fades, and random noise is added at each step. The moment a path first reaches the threshold, that time is recorded.
For intuition only: without noise and damping the level would move in a straight line, and the time left would be roughly the formula below. Horizon does not compute this; it only gives a simple comparison.
Noise-free, undamped straight-line assumption. L: threshold; ℓ: level; b: rate.
Start: z are independent standard normal draws.
M is the Cholesky factor of the last filtered covariance: M11 = √Pℓℓ, M21 = Pℓb / M11, M22 = √(Pbb − M21²).
Each step uses the same state equations, with δt in place of Δt.
u is noise with covariance Q(δt), drawn through its Cholesky factor.
Crossing time: h is the first step in which ℓh+1 passes the threshold; f is the linear interpolation inside that step.
For falling indicators the comparison is ≤.
| Setting | Value | Note |
|---|---|---|
| Paths N_p | 1,000 | 500, 1,000 or 1,200 can be chosen |
| Seed | 7 | the same seed and input give the same result |
| Steps | N_s ≤ 400 | δt = H / N_s |
| Already crossed | P(crossing) = 1 | if the latest level is already beyond the threshold, no simulation runs; the percentiles show 0 |
Source dev/native/kutupml.c · horizon/horizon.js
The percentiles of the crossing times over all paths are read. P50 is the crossing time in the middle of the spread; P10 and P90 are its lower and upper ends. Paths that never reach the threshold within the horizon are placed last. P(crossing) is the share of paths that cross within the horizon.
: the k-th smallest crossing time of all paths, counting from 0; non-crossing paths count as ∞. is defined only if position falls among the crossing paths; otherwise “beyond horizon”.
Share of paths that cross within the horizon.
Level band: the q percentile of the paths’ levels at each step (linear interpolation). It is a different thing from the crossing-time percentiles.
| Setting | Value | Note |
|---|---|---|
| · · | read directly from the sorted crossing times; no interpolation | |
| P10–P90 range | ≈ 80% | only when both ends are defined; otherwise “beyond horizon” |
| Level band | each step | linear interpolation over path levels; shaded on the chart |
Source dev/native/kutupml.c · horizon/horizon.js · wasm/kutupml.js
A straight line and a quadratic curve are fitted to the same data and extended into the future. To judge which predicts the future better, the last 20% of the points are held back and predicted (hold-out). The model with the lowest error drives the forecast; the three distributions are combined with weights.
Time is measured from the last point.
Least squares: is the current value; for the linear model .
Least-squares solution.
The covariance is the uncertainty of the coefficients.
m: number of coefficients (linear 2, quadratic 3).
For each path the coefficients are drawn from this distribution.
The time t where the curve meets the threshold is solved. Only roots with 0 ≤ t ≤ H and a slope in the crossing direction are kept; for the quadratic, the smallest non-negative root, otherwise the larger one.
Number of training points; the remaining points are the hold-out.
Hold-out error: fitted on the first n_e points and measured on the rest.
Kalman hold-out: run forward from the last filtered state, without noise.
Combined distribution: weighted by the inverse squared error; without a comparison the weights are equal.
F is evaluated on 401 points; the combined percentiles are read from F.
Driver model: the model with the lowest RMSE. The main forecast and the verdict are read from its distribution; without a comparison the Kalman model drives.
| Setting | Value | Note |
|---|---|---|
| Models | linear · quadratic · Kalman | comparison needs at least 20 points; with fewer, Kalman drives |
| Hold-out share | 20% | first ⌊0.8n⌋ points train; the rest test |
| Paths (linear, quadratic) | min(2,000, N_p) | coefficient draws |
| Curve band | coefficient uncertainty | no future noise is added to the linear and quadratic bands; the band can look narrow |
Source dev/native/kutupml.c · horizon/horizon.js · wasm/kutupml.js
The verdict follows five rules, tried in order; the first that holds decides. The planning lead time L is compared with P10 (the early edge) and with P50 (the most likely time).
Extra warning: if the models’ P50 values differ by more than 20%, or one model’s P50 is undefined while the driver’s is defined, the text asks you to read the range as wider than shown.
| Setting | Value | Note |
|---|---|---|
| Lead time L | 14 | in the chosen unit (days, hours, cycles or samples) |
| Rule 3 limit | 0.5 | crossing probability |
| Rule 4 multiplier | 2 × L | watch limit |
| Model spread | 20% | warning limit for the spread of the P50 values |
Source horizon/horizon.js
Pick a measurable quantity that moves in one direction as the machine degrades: vibration RMS, filter differential pressure, a wear measurement. It should reflect the degradation mechanism, and the threshold should be the value where the function is lost, on the same indicator.
The future is uncertain because of load, maintenance, environment and noise, and a single date hides that. The P10–P90 band carries the uncertainty of the level and rate and the process noise. It does not show the uncertainty of the fitted parameters or the measurement noise, and it does not cover effects the model does not contain, such as sudden damage.
There is no fixed number. In practice a few hundred points and a clear trend help; a short record that is only noise gives a weak forecast. Earlier failures and the trend before them are very valuable. At least 12 points are needed; the model comparison runs from 20 points.
Horizon compares the most likely crossing (P50) and the early edge (P10) with your planning lead time. If the smoothed latest level is already beyond the threshold, it says Attention. Otherwise it first checks the probability of crossing within the horizon: below one half it says No crossing expected. Otherwise, if P10 is shorter than the lead time it raises Attention: at least one in ten simulated futures crosses before that time. If the most likely crossing is less than twice the lead time, it says Watch. Changing the lead time changes the decision, not the event.
No. The calculation runs in your browser in a WebAssembly module written in C. Nothing is sent anywhere and it is gone when you close the page. Files you export stay with you.
Learn how RUL is defined, what each of three common approaches needs as data, and how to report P10, P50 and P90 values with a worked trend calculation.
Learn the predict and update steps, what the gain K means, and how a level-and-slope state yields a smoothed health indicator together with its rate of change.
Compute MTBF, MTTR and availability from a hypothetical record, then see why MTBF is not a lifetime and how the Weibull shape parameter β bears on scheduled replacement.
Connect sensor behavior to operating context, maintenance events and a false-alarm budget.
Let’s review your data source, your existing system and the decision you want to improve.