PROJECT STUDY

Asset Health Monitor

Catch the fault while it is still a trend.

Predictive maintenance for pumps, compressors and fans: sensor faults kept apart from machine faults, alert limits learned per asset and load band, and remaining useful life as a range in running hours.

Explore the build
Illustration of the asset health dashboard: a Line 2 grid of pumps, compressors, a fan and a motor with pump P-104 flagged as a warning, beside its drive-end bearing vibration rising above a grey normal band, an anomaly score strip, contributing-signal bars and a remaining-useful-life range.
Original interface illustration · Synthetic demo data.View larger

At a glance

Capabilities
7
Technologies
12
Year
2026

The challenge

Process plants run hundreds of pumps, compressors and fans that degrade slowly before they fail.

Fixed vibration limits fire too late, because a bearing is already damaged when it crosses an alarm level, or too often, because a pump at full load vibrates more than at half load and one limit cannot fit both.

Many nuisance alarms are not machine problems at all: a stuck transmitter, a drifting pressure sensor or a gap in the historian looks like an anomaly and sends a mechanic to a healthy machine. Reliability teams need early warnings they can trust, the signals behind each one, and an honest estimate of how long a degrading asset can keep running.

What we built

Asset Health Monitor turns plant telemetry into early, explainable warnings, with a Python pipeline, a FastAPI service and a React dashboard for reliability engineers, maintenance planners and instrument technicians.

Batch and streaming ingestion

History arrives in batches over HTTP and live telemetry through an asyncio consumer that handles out-of-order, late and duplicated messages, into a Parquet lake partitioned by day and queried with DuckDB

Batch and streaming ingestion

History arrives in batches over HTTP and live telemetry through an asyncio consumer that handles out-of-order, late and duplicated messages, into a Parquet lake partitioned by day and queried with DuckDB

Sensor health before asset health

Every signal is checked for gaps, stuck values, flatlines at an instrument rail, spikes and drift before anything is scored. A suspect signal is masked and raised as an advisory for instrumentation instead of paging a mechanic

Normal learned per asset and load

Windows are labelled stopped, transient, settling or one of up to three steady load bands, and each band gets its own Isolation Forest and PCA monitor, with limits set per asset by extreme value theory and per-signal contributions behind every score

An alert lifecycle with verdicts

Alerts open after persistence, escalate, clear with hysteresis and stay one alert per episode. Technicians acknowledge and resolve them as a confirmed fault, a false alarm or a sensor fault, precision is tracked by week and model version, and machine alerts export as work-order rows in CSV

Remaining useful life as a range

A load-corrected health indicator, an onset found by CUSUM and an exponential fit with a block bootstrap give P10, P50 and P90 running hours to the vibration limit, or a status that says why no estimate is honest

A dashboard for the reliability team

A plant overview grid, asset pages with signals, anomaly index, regime shading, contributions and the model card, an alert inbox with a verdict form, a sensor health matrix, a remaining-life chart with its uncertainty band and the evaluation report

A plant simulator with ground truth

24 pumps, compressors and fans in six areas run on a production schedule with duty and standby rotation, start-ups and trips, while machine faults, sensor faults and measurement artefacts are injected and recorded, so an evaluation command can score the pipeline against what really happened

How it works

  1. Ingest batch and stream

    Readings are validated against one contract and appended to a Parquet lake partitioned by UTC day, so history is never rewritten and duplicates are dropped on read. The streaming consumer keeps a watermark with 10 minutes of allowed lateness and closes each 30-minute window once the watermark passes its end, so batch and stream build identical windows for the same stateful processor.

  2. Check every sensor first

    Each signal in each window is checked for gaps, stuck values, rail flatlines, spikes and drift. While a machine runs, motor current predicts what bearing temperature, discharge pressure and flow should read, and one of them departing alone from that prediction for six hours is drift; a settled shutdown adds an offset check.

  3. Learn normal per load

    Eleven features per window come from the healthy signals. Clustering load features with k-means, with the number of bands chosen by silhouette, finds up to three steady load bands; starts and load steps count as transients and settling, and a load never seen in training is marked novel rather than scored.

  4. Score against learned limits

    Each band has a robust scaler, an Isolation Forest and a PCA monitor that combines squared prediction error with Hotelling's T-squared. Limits come from a generalised Pareto fit to the declustered tail of out-of-fold scores, solved for 0.02 false alerts per asset-day, and each score becomes an index that is 0 at the median healthy score and 1 at the limit.

  5. Alert, review and learn

    A machine alert opens after two windows at or above the limit, escalates to alarm at twice the limit or when the P10 of remaining life falls under 72 hours, and clears after four windows below 0.8. A recurrence within 72 hours reactivates the same alert. Verdicts feed precision by week and model version, and retraining refits on a baseline the verdicts have cleaned.

  6. Estimate remaining life

    Vibration, corrected for load through the asset's own healthy current-to-vibration relationship, is watched by a CUSUM. After an onset, an exponential curve is fitted in running hours every three hours by a vectorised Levenberg-Marquardt and bootstrapped with moving blocks into 200 refitted curves, whose crossings of the vibration limit give the P10 to P90 range.

  7. Evaluate against ground truth

    An evaluation command simulates fresh plants with seeds the demo does not use, trains each asset on its first 21 days and scores event-based precision, recall and lead time, false alerts per asset-day and sensor-fault rejection. Simulated run-to-failure units score remaining-life RMSE, interval coverage and the prognostic horizon.

Engineering insights

A warning is only useful when the reliability team trusts it, so every stage is built to keep false alarms, dead sensors and falsely precise numbers out of the inbox.

Stack by layer

Frontend
  • React
  • TypeScript
  • Vite
  • TanStack Query
  • React Router
  • ts-pattern
  • ts-belt
  • CSS Modules
  • SVG
Backend
  • Python
  • FastAPI
  • Pydantic
  • Uvicorn
  • asyncio
Data
  • DuckDB
  • Apache Parquet
  • joblib
AI
  • scikit-learn
  • SciPy
  • NumPy
  • Isolation Forest
  • PCA
  • k-means
Infrastructure
  • uv
  • pytest
  • Vitest
  • Testing Library
  • Playwright
  • Ruff
  • mypy
  • Biome
  • Docker Compose
  • GitHub Actions
  1. A stuck sensor never pages a mechanic

    Sensor checks run before scoring, a suspect signal is masked from the detectors and its advisory goes to instrumentation. Drift needs a witness: motor current predicts the other signals, so a lone departure is the instrument, while a temperature rise that comes with rising vibration stays with the machine. On three synthetic evaluation plants, 20 of 21 injected sensor faults raised no machine alert

  2. Alert limits from extreme value theory

    Each asset's limits come from a generalised Pareto fit to the declustered tail of its out-of-fold anomaly scores, pooled across its load bands and solved for 0.02 false alerts per asset-day, so a limit means the same on a quiet pump and a noisy fan. On three synthetic plants the demo does not use, all 18 injected machine faults were detected at 0.0074 false machine alerts per monitored asset-day

  3. Normal depends on the load

    A pump at full load vibrates more than at half load, so each steady load band gets its own detectors: the Isolation Forest flags features leaving their range, the PCA monitor flags signals breaking their usual relationships, and contributions name the signals behind each score. When a sensor is masked, the PCA monitor is refit for that pattern and the forest's missing features are filled with their conditional expectation, so a dead sensor does not look like an anomaly

  4. Remaining life as a range, in running hours

    Stopped time is not wear, so the curve is fitted in running hours, and residuals of a degrading machine are autocorrelated, so the bootstrap resamples them in contiguous blocks. A short, flat or poorly fitting trend returns a status instead of a falsely precise number

  5. Verdicts decide what the model learns

    Retraining leaves out windows inside confirmed faults, sensor faults and unresolved alerts, so the model cannot learn a fault as normal, and admits a false alarm's windows only after seven days with no confirmed fault, because a vibration trend can show a defect before a walk-down can

Design system

Industrial clarity follows the high-performance HMI approach of ANSI/ISA-101: neutral grey keeps a healthy plant visually quiet and colour is reserved for abnormal states, so a reliability engineer scanning dozens of assets sees the few that need attention first.

Colour palette

  • Plant grey#f4f5f7Page background, so a healthy plant stays visually quiet
  • Surface#ffffffCards, asset tiles and charts
  • Line#d9dde3Hairlines, card borders and gridlines
  • Ink#1b2430Text, live values, data lines, the alert limit on score charts and the navigation rail
  • Muted slate#5b6675Labels, units, axes and secondary text
  • Alarm red#d92d20Machine alarms only: white text on red badges with a triangle, and index values over twice the limit
  • Warning amber#f79009Developing anomalies only: a fill under ink text and index values over the limit, never text on white
  • Advisory blue#2e90faSensor and data-quality advisories routed to instrumentation, with ink text
  • Colour

    Plant grey, white surfaces, hairlines and ink carry normal operation. Alarm red, warning amber and advisory blue appear only for abnormal states, and blue belongs to sensor problems alone, so an instrument issue never looks like a machine alarm

  • State shapes

    Every state has a shape and a word: a triangle for alarm, a diamond for warning, a circle with an i for a sensor check, a grey ring for normal, a grey square for stopped and a dashed ring for no data, so a colour-blind reader or a glare-washed wall screen still tells them apart

  • Typography

    Inter, bundled with @fontsource so nothing loads from a font CDN on a plant network, with tabular numerals for table cells, axis ticks and live values on a compact 11 to 26 px scale. Weight rather than colour marks emphasis

  • Components

    In-house React components on CSS custom properties and CSS modules, with no UI library: sparkline asset tiles over a grey learned-normal band, SVG score and signal charts with a regime ribbon in greys and a linked crosshair, contribution bars, a remaining-life band chart with a crossing histogram, an alert inbox with a verdict form and a sensor matrix

  • Accessibility

    Text pairs meet WCAG AA and are checked in tests, and amber is never text on white. Values reachable by hover also appear in a table view, a tile or a list, and layouts run from 390 px phones to 1440 px desktops with a navigation rail on wide screens

Where this fits

Plants with critical rotating equipment can apply the same pattern: trustworthy sensor data first, baselines learned per operating regime and warnings a technician can confirm. Explore our AI solutions, analytics dashboards and manufacturing work, or talk to us about your assets.

talk to us about your assets

Let’s connect the dots

Let's put these ideas to work.

Share a process, product, or problem you want to improve. We will work through the possibilities together.

Discuss your project