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 inspections12 open work orders8 high-risk assets6 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.
Routine and scheduled inspections per asset; supports overdue logic and history.
work_orders
14
Priority, type, status, owner, due date; joins to assets by tag.
v_asset_risk
25
Computes 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
Rank
Tag
Risk
Why it matters
1
PSV-2001
98 High
Poor condition, 62 days overdue, open set-pressure work order.
2
P-101A
94 High
80 days overdue; two open WOs including a seal leak.
3
MCC-01
92 High
144 days overdue — longest in the register — plus thermographic scan outstanding.
4
L-1001
92 High
91 days overdue; coating holiday at support 14.
Screenshots
The report answers one question: where should the team spend the next hour?
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.
Explain it in two minutes
“This is an as-built P&ID. I read it for tags, line numbers, instrument loops, and the revision cloud that moved PSV-2001. Those 25 tags land in a SQL register; a view computes overdue days, open work orders, and a risk score. The report answers: where should we spend the next hour? PSV-2001 first — poor condition, 62 days overdue, open set-pressure work order. MCC-01 is 144 days overdue. The same data exports to Excel, DXF, and GeoJSON. Change the drawing, rerun the build, every output updates. Synthetic data — next step is ILI, SCADA, and the CMMS.”
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.