Research

Documentation

Everything needed to run the study, analyse recordings and share results. There is nothing to install: the platform runs in a modern browser on Windows, macOS or Linux.

Quick start

  1. Open the Training lab, choose the Quick preset for a first look or Standard for the full protocol, and press Run experiment.
  2. Keep the tab open and visible. The first run downloads the MIT-BIH records (about 90 MB) and stores them in the browser, so later runs start immediately.
  3. When the run finishes it becomes the active run. Open Model comparison, Noise robustness and Explainability to read the results.
  4. Open ECG analysis to classify a recording of your own, or a test record from MIT-BIH, with the trained models.

Background tabs run slower

Browsers throttle timers and GPU work in hidden tabs. Training continues in the background, but it can take several times longer; keep the tab in the foreground for the fastest runs. Navigating between pages of the platform does not interrupt a run, but closing or reloading the tab does.

Browser and hardware

ItemRecommendation
BrowserA current version of Chrome, Edge, Firefox or Safari with WebGL 2 enabled. On Windows, Chrome and Edge give the most dependable GPU acceleration.
GPUAny GPU with WebGL 2 support. An NVIDIA RTX 3050 (6 GB) is far more than enough: the CNN has about 19,000 parameters and peak video memory use stays well below 1 GB.
Memory8 GB of RAM works; 16 GB is comfortable. A standard run keeps a few hundred MB of beats and features in memory.
StorageAbout 100 MB of browser storage for cached recordings and runs.
Without a GPUTensorFlow.js falls back to the CPU backend. Everything still works, but CNN training is several times slower.

The top bar shows the compute device the browser reports. If it reads Software GPU or CPU only, hardware acceleration is not active (see below).

Windows and RTX GPUs

On Windows, Chrome and Edge run WebGL through Direct3D, so the NVIDIA driver is used automatically when hardware acceleration is on. To make sure the RTX GPU is used:

  1. Update the NVIDIA driver (GeForce Experience or the NVIDIA website).
  2. In Chrome or Edge, open Settings, then System, and switch on Use graphics acceleration when available; restart the browser.
  3. On laptops with integrated plus NVIDIA graphics, open Windows Settings, System, Display, Graphics, add your browser and set it to High performance, so it runs on the RTX GPU instead of the integrated one.
  4. Reload the platform. The compute badge in the top bar should name the NVIDIA GPU.

The validation suite reports the backend that TensorFlow.js selected (webgl means GPU).

Training lab

The lab runs nine stages in order: dataset loading and preprocessing, the patient-level split with leakage audit, Random Forest, SVM, CNN, evaluation, noise robustness, explainability and saving. Progress, timings, live CNN learning curves and a log are shown while it runs. The configuration panel exposes the split scheme, filter cut-offs, normal-beat cap, model hyperparameters, noise types, SNR levels and the explainability analysis; changing any setting switches the preset to Custom. The methodology describes every default.

PresetWhat changesTypical use
Quick400 normal beats per record, 8 CNN epochs, 40 trees, 256 kernel features, 3 noise types at 4 SNRs on 5-minute segmentsA first look, slower machines
Standard1,200 normal beats per record, up to 14 CNN epochs with early stopping, 80 trees, 512 kernel features, 4 noise types at 5 SNRs on 10-minute segmentsResults for reports
CustomAny combinationAblations and sensitivity analyses

Runs, export and publishing

  • Stored in this browser: each completed run (results and trained models) is saved in the browser’s IndexedDB. Clearing site data removes it.
  • Active run: the selector in the top bar chooses which run every results page and the analysis page use.
  • Export and import: download a run as one JSON file from the run table in the lab and import it again on any device.
  • CSV: the model comparison page exports all metrics with confidence intervals; the analysis page exports beat-level predictions and probabilities.
  • Publishing: the site owner can publish a run so that every visitor sees it. Publishing requires the lab publish key, which the owner configures for the site. Published runs store results and model weights on the site; no uploaded patient data is ever published.

Analysing your own ECG

FormatWhat to uploadNotes
WFDBThe .hea header and its .dat file(s); optionally an annotation file (.atr)Formats 212, 16, 61, 80, 160, 24, 32 and 8. With annotations, predictions are compared with the reference labels.
EDF / EDF+One .edf fileAnnotation channels are skipped. Units are read from the header (µV, mV or V).
CSV / TXTOne column per lead, optional header row and time columnComma, semicolon, tab or whitespace separated. The sampling rate is inferred from a time column when present; otherwise enter it.
  • The models were trained on lead MLII at 360 Hz. Recordings at other rates are resampled; other leads can be analysed but predictions are less reliable, and the page says so.
  • At least 10 seconds are needed; at most 60 minutes are analysed.
  • Click a beat in the ECG or the table to see probabilities and explanations from all three models.
  • The MIT-BIH option offers only test-partition records, so the models have never seen those patients.

Reading the results

  • Macro-F1 averages the F1 score over N, S, V and F, so rare classes count as much as normal beats. Accuracy alone is misleading because about nine in ten beats are normal.
  • Confidence intervals come from resampling test patients, not beats. Overlapping intervals mean the data cannot separate the models with confidence.
  • Sensitivity and PPV per class are the quantities reported by AAMI EC57 and by most of the literature.
  • Robustness curves run from clean signals on the left to the strongest noise on the right.

Validation suite

The validation suite holds automated tests with fixed acceptance criteria: WFDB decoding, header and annotation parsing, checksums and initial values of a downloaded record, beat counts against the PhysioNet record directory, analytic filter responses, resampling, FFT identities, QRS detection on synthetic and real data, feature extraction, metric and statistical formulas, Random Forest and SVM sanity checks, CNN training, serialisation and the Integrated Gradients completeness property, determinism and the leakage audit. Run them all with one click; tests marked live data download records from PhysioNet through the site.

Data and privacy

  • Recordings you upload for analysis are read and processed in your browser and are never sent to a server.
  • MIT-BIH and Noise Stress Test files are fetched from PhysioNet through the site, cached on the site and in your browser. The databases are de-identified and distributed under the Open Data Commons Attribution License v1.0.
  • Published runs contain metrics, configuration, model weights and example beats from the public test records only.

Architecture

LayerResponsibility
WFDB readerHeader, signal (format 212 and others) and annotation parsing with checksum verification
Signal processingButterworth and notch design, zero-phase filtering, resampling, Welch spectra, Pan-Tompkins detection
FeaturesBeat segmentation, RR context, patient template and 38 hand-crafted features
ModelsCNN (TensorFlow.js, WebGL), RBF-kernel SVM and Random Forest (TypeScript)
EvaluationConfusion matrices, AAMI metrics, ROC and precision-recall, bootstrap intervals, McNemar tests
Robustness and XAINSTDB noise injection, Grad-CAM, Integrated Gradients, occlusion, ablation and permutation importance
PipelineOrchestrated experiment with progress, cancellation and logging
RegistryRuns in browser storage; published runs in the site database and file storage

Troubleshooting

SymptomWhat to do
Download errors in the dataset stagePhysioNet may be briefly unavailable. Run again: records already downloaded stay cached.
Training is very slowCheck that the compute badge names a GPU, keep the tab in the foreground, or use the Quick preset.
The tab runs out of memoryClose other heavy tabs, lower the normal-beat cap or use the Quick preset.
Explanations do not load for a published runThe trained models of that run are downloaded on demand; check the connection and try again.
Few beats detected in an uploadCheck the units and sampling rate, and choose a lead where the QRS complex is clearly visible.
Runs disappearedRuns live in browser storage and are removed when site data is cleared. Export important runs as JSON.

Academic research platform. Not a clinically validated diagnostic device; never use its output for diagnosis or treatment.

Data: MIT-BIH Arrhythmia and Noise Stress Test databases (PhysioNet, ODC-By 1.0).