PSA Simulator

Calls POST /api/psa/simulate. Falls back locally if backend is offline.

Ready

Inputs

Rule Thresholds

Pressure Replay

Detection Summary

Heatmap

Feature Table

BedStepCyclePstartPendRateErrHealthGuess

Repair ROI

Calls GET /api/repair/payload. Uses fallback if backend is offline.

Ready

Scenario

Unit Savings

Top Beds

Daily Worklist

Real Data Import

Upload a SCADA/historian CSV, review detected tags, then run the same rule engine used by the simulator.

No file selected

1. Select CSV

Supported layouts

Wide: timestamp, B01_P, B01_STEP...
Long: timestamp, bed_id, pressure, step

Mapping

Select a file and preview it.

Imported Pressure Replay

Import Diagnosis

Warnings

None

Imported Step Features

BedStepSegmentStartEnd PstartPendEarly RateFull Slope HealthDiagnosis

Historian Baseline Learning

Learn normal bed/step behavior from known-good historian data, then compare operating data against both history and peer beds.

No baseline trained

1. Train Healthy Baseline

Use a historian export from a period believed to be healthy and stable.

Saved Baseline

2. Analyze Operating Data

Operating Pressure Replay

Bed Health Ranking

Learned Model

Train a baseline to see learned beds, steps, and segment counts.

Top Learned Anomalies

BedStepSegmentLevel Baseline ScorePeer ScoreCombinedPersistence HealthDiagnosis

Valve Diagnostic Intelligence

Combine bed-pressure behavior with valve commands and position feedback to isolate likely valve/path faults.

No valve file analyzed

Operating Historian

Expected wide tags

B01_P, B01_STEP
B01_VENT_CMD, B01_VENT_FB
B01_FEED_CMD, B01_FEED_FB
Similar tags for PRODUCT, PURGE, EQ.

Pressure Replay

Priority Valve / Path Ranking

Diagnostic Summary

Valve Diagnostics

BedValveSeverityConfidence Likely FaultMax DelayMismatch Pressure SupportEvidence

Valve Command / Feedback Events

BedValveEventTime DelaySeverityFinding

Pressure Replay Investigation

Zoom, filter, navigate anomalies, compare cycles, and inspect actual pressure against a learned expected profile.

Load a cycle/trend analysis first

Investigation Controls

Cycle Navigation

Display

Drag across the pressure chart to zoom. Shift + drag pans the current window.

Anomaly Navigator

Select an anomaly below to focus the pressure plots and display its supporting evidence.

Pressure Replay — Investigation View

Full range
Drag to zoom or move across the plot to inspect values.

Pressure Residual — Actual minus Expected

Residual near zero indicates behavior close to the learned/derived expected profile.

Cycle Overlay Comparison

Select one bed and one step to overlay comparable cycles on a common elapsed-step axis.
Choose a bed and step to compare cycles.

Selected Evidence

Investigation Summary

Engineering Evidence Workspace

Combine valve, pressure, cycle, sequence, and persistence evidence into an inspectable engineering finding.

Run Cycle & Trend Intelligence first

Build Evidence

Save Investigation

Priority Finding

Evidence Finding Detail

Build Engineering Evidence and select a finding to review the engineering basis.

Evidence Scorecard

Likely Causes

Recommended Checks

Cycle Evidence / Persistence

Saved Investigations

Investigations saved under the currently selected project.

Saved Investigation Detail

Select a saved investigation above to review its recorded evidence.

Projects & Persistent History

Store projects, units, learned baselines, analysis runs, and maintenance events in local SQLite.

SQLite ready

Create Project

Select Project

Create Unit

Project Dashboard

Units

Learned Baselines

Saved learned pressure baselines available for historical comparison and future analyses.

ID Name Unit Source Created

Saved Analyses

IDTypeFileSummaryCreated

Save Current Work

Maintenance Event

Analysis Review

Reload and inspect saved SQLite analyses without rerunning the source CSV.

Select a saved analysis

Saved Run

No analysis loaded.

Saved Pressure Replay

Move over the plot to inspect values.

Saved Trend Ranking

Stored Result Summary

Stored JSON


      

Maintenance Effectiveness

Compare saved analyses before and after service to verify whether valve/path health improved.

Select a project and analyses

Automatic Event Pairing

Overall Result

Interpretation

Valve / Path Comparison

BedValveBeforeAfter Conf ΔPersistence ΔAbnormal/10 ΔEffectivenessScore

Operations & Backup

Export/import projects and create SQLite backups.

Ready

Project Archive

Import Project

SQLite Backup

Backup Scope

Project ZIP = one project and its units, baselines, analyses, maintenance events.

SQLite backup = complete local application history.

Source code remains backed up through Git/GitHub.

Run Order

  1. Start backend: uvicorn main:app --reload --port 8010
  2. Start frontend: python3 -m http.server 8000
  3. Open http://localhost:8000
  4. Click Test Backend

This version is the bridge between your static prototype and a real backend-driven product.