Sandbox — LSD is in active testing. All systems operational·payments are test-mode (no real charges).
Overview Use Cases News Docs Tool Store Support Community Get LSD
Use cases/ Manufacturing/ Catching sensor drift across a production week
Drift dashboard with flagged tags across a full production week replace with screenshot · 1600 × 900

Catching sensor drift across a production week

Load a week of machine sensor CSVs, resample them onto one time base, and baseline every tag. Drift and step-change detectors flag the sensors that moved, and the pipeline delivers a live dashboard plus a ranked maintenance shortlist.

Beginner ⏱ 20 min sensorsdrifttime-seriesspcmaintenance

Drift doesn't announce itself#

A pressure transducer rarely fails outright. It reads one percent high on Tuesday, two by Thursday, and by the time scrap shows up the trend is three weeks old. Raw-value alarms miss it because every threshold was set for a healthy sensor, and eyeballing forty tags in a historian client is nobody's idea of a Friday afternoon.

Why a canvas beats a notebook#

The whole point of this pipeline is that the detectors are tunable in real time. Thresholds live on sliders, not in a config cell you re-run; when maintenance argues a flag is too sensitive, you drag it and the shortlist updates while they watch. Every step previews as you build, so a bad timestamp column or a unit mix-up surfaces at load time, not after an hour of plotting. And because intermediates are cached, next week's folder recomputes in seconds instead of re-crunching the whole history.

What you need#

A folder of per-day, per-machine CSV exports with a timestamp column and one column per tag. No live historian connection required — this works from the flat files your PLC vendor already dumps to a share. Twenty minutes gets you from folder to shortlist.

Step by step

How it's built

  1. #033 · Load 01

    Drop the week of sensor logs

    Drag the whole logs folder — one CSV per machine per day — onto the canvas. A single @load node batches all 35 files, unions their columns, and previews the merged table. Timestamps parse automatically, even with mixed formats across machines.

    Batched sensor CSVs merged into one previewed table replace with screenshot · 1200 × 750
  2. 02

    Resample onto one time base

    Add an @shape resample step and set a 1-minute grid with mean aggregation. Jittery timestamps from different PLCs snap onto one shared time base so every tag lines up. The preview chart redraws the moment you change the interval.

    Resample step with tags aligned on a 1-minute grid replace with screenshot · 1200 × 750
  3. #034 · Shape 03

    Baseline every tag

    Chain a baseline step that takes each tag's Monday median as its reference and rescales the week to percent-of-baseline. Sensors with different units and ranges become directly comparable. Flat lines mean healthy; anything sloping is a suspect.

    Baselined tags plotted as percent deviation from Monday replace with screenshot · 1200 × 750
  4. #035 · Shape 04

    Flag drift and step changes

    Add the drift detector and set two thresholds with sliders — slope per day for slow drift, jump size for step changes. Flags appear on the chart the moment a tag crosses either one. Tighten a slider and watch borderline sensors flip in and out of the flagged list.

    Drift detector with threshold sliders and flagged tags replace with screenshot · 1200 × 750
  5. #036 · Deliver 05

    Publish the dashboard and shortlist

    Wire an @deliver dashboard showing every flagged tag with its drift score, plus a CSV export of the maintenance shortlist ranked by severity. Next week, drop the new folder on the same canvas — cached intermediates mean only the new files recompute.

    Drift dashboard beside the ranked maintenance shortlist replace with screenshot · 1200 × 750
The pipeline

Every step used, at a glance

Load

A week of logs

Batch-load daily machine sensor CSVs into one merged, time-parsed table.

CSV
Shape

Baseline & detect

Resample to one grid, baseline each tag, and flag drift and step changes with tunable thresholds.

Deliver

Dashboard + shortlist

Publish a live drift dashboard and export a maintenance shortlist ranked by severity.

CSV
35 files
batched in one drop
2 sliders
tune both detectors live
Ranked
maintenance shortlist

More use cases