S12
Station 12

From a P&ID to an asset decision.

I read a synthetic as-built drawing, extracted 25 tagged assets into a SQL register, scored inspection risk, and shipped the outputs an engineering team actually uses: Excel, DXF, GeoJSON, and a Power BI-style report.

25 tags9 overdue inspections 12 open work orders8 high-risk assets 6 SQL queriesSynthetic data

The problem

Drawings and decisions live apart

A station has a current P&ID, an equipment register, inspection dates, and a work-order backlog. In practice those live in four places. The drawing is the physical truth; the spreadsheet is the plan; the CMMS is the history. Nothing forces them to agree.

What a team actually needs

Not another dashboard. A defensible answer to: which asset should we look at first, and why? That requires drawing provenance, condition, inspection overdue, open work, and consequence in one place.

What I built

Read the drawingTags, line numbers, loops, revision cloud.
Build the register25 assets with type, service, dates, coordinates.
Model in SQLAssets, inspections, work orders, risk view.
Score and rankLikelihood × condition × consequence × overdue.
Ship outputsExcel, DXF, GeoJSON, report.

Architecture

P&ID-12-001as-built drawing
→
Asset registerSQLite · 3 tables · 1 view
→
Risk viewoverdue + open WOs + score
Excelformatted register + formula summary
DXFlayered AutoCAD drawing
GeoJSONEPSG:4326 asset points
Reportfilters, matrix, map, action list

One build script regenerates every output from the same source data, so the drawing, workbook, map, and report cannot drift apart.

The data model

TableRowsPurpose
assets25Tag, type, service, drawing sheet, line number, criticality, condition, inspection dates, coordinates.
inspections75Routine and scheduled inspections per asset; supports overdue logic and history.
work_orders14Priority, type, status, owner, due date; joins to assets by tag.
v_asset_risk25Computes overdue days, open work orders, risk score, and band.

How the score works

risk = criticality weight (18/36/54)
+ condition factor (0/12/25)
+ min(days overdue, 90) × 0.25
+ open work orders × 4
capped at 100 · bands: High ≥ 70 · Medium ≥ 45

Transparent on purpose. A planner can see why an asset moved, argue with the weights, and change them.

What it found

Assets
25
Overdue
9
Open WOs
12
High risk
8
RankTagRiskWhy it matters
1PSV-200198 HighPoor condition, 62 days overdue, open set-pressure work order.
2P-101A94 High80 days overdue; two open WOs including a seal leak.
3MCC-0192 High144 days overdue — longest in the register — plus thermographic scan outstanding.
4L-100192 High91 days overdue; coating holiday at support 14.

Screenshots

Station 12 report overview

The report answers one question: where should the team spend the next hour?

Station 12 P&ID and extracted tags

P&ID-12-001 Rev C. Every tag, line number and sheet reference traces back to a callout on this sheet.

What I’d do with real data

  • Ingest ILI anomaly lists, CP survey data, and SCADA pressure/flow.
  • Join CMMS work-order history and cost (SAP PM / Maximo).
  • Replace the heuristic with a consequence model: population, environment, volume, outage impact.
  • Add drawing OCR/tag validation so the register stays tied to the current revision.
  • Publish the Power BI semantic model with scheduled refresh and row-level security by region.
  • Close the loop: every high-risk asset gets an owner and a date.

Second prototype: Sentinel

Sentinel is a read-only leak-confidence and response layer above SCADA. It fuses pressure, flow, volume balance, GIS, and field response into one operator-facing alarm with evidence and a timeline.

Open the Sentinel prototype →