What this app does
Explore synthetic respiratory SOFA scoring scenarios in your browser. The app runs staged Python locally through Pyodide, compares simulated score probabilities with the reference distribution, and is not clinical decision support.
- No patient-level data or server backend.
- Scenario runs test one parameter set.
- Sweeps compare a small grid of parameter values.
Scenario vs Sweep
Use Scenario to test one parameter set and inspect the resulting respiratory SOFA probability distribution. Use Sweep to test sensitivity across plausible observation intervals, measurement-noise levels, and room-air thresholds.
Switching panes keeps values in place during the current browser session. Scenario and Sweep use separate controls; Scenario edits do not automatically become the Sweep base. Refresh or Reset restores defaults.
Scenario results
Waiting for a completed run.
Run a scenario to populate key probability and divergence results.
SOFA probability vs reference
Bars show the simulated scenario probability for each respiratory SOFA score. The vertical marker shows the reference probability.
The probability comparison appears after a completed scenario run.
Uncertainty
Bootstrap intervals summarize uncertainty across simulated replicates for each score probability.
Sweep results
Waiting for a completed sweep.
Sweeps are useful when you want to know whether conclusions are robust to charting frequency, measurement noise, or room-air classification assumptions.
Run a sweep to populate workload and maximum probability results.
Heatmap-ready rows
Each cell is one sweep combination. Darker cells indicate higher values for the selected metric, not necessarily better or worse performance.
The sweep heatmap appears after a completed sweep.
Summary table
The table lists the first 100 sweep rows and keeps CSV downloads available for full exports.
About and safety
The browser app runs the staged Python package in Pyodide. Scoring and
simulation logic remain in src/sofa_resp_sim/; JavaScript only
collects inputs, renders returned tables, and downloads exports.