Dataset Viewer
Auto-converted to Parquet Duplicate
id
large_string
tier
int64
category
large_string
length
int64
n_channels
int64
n_channels_a
float64
n_channels_b
float64
question
large_string
options
list
answer
large_string
semantic_class
large_string
coupling_kind
float64
coupling_lag
float64
injection_kinds
list
injection_channels
list
injection_starts
list
injection_ends
list
channel_names
list
channel_values
list
seed
int64
523a52c125b1e9ad
2
classify_with_evidence
30,377
2
null
null
"Determine whether the time series contains an anomaly and, if so, identify it and its window. Respo(...TRUNCATED)
[]
"classify_with_evidence:{\"_L\": 30377, \"end\": 10596, \"kind\": \"Premature Ventricular Contractio(...TRUNCATED)
classify_pvc_L30377
null
null
[ "pvc" ]
[ "ECG_0", "ECG_1" ]
[ 10397 ]
[ 10596 ]
[ "ECG_0", "ECG_1" ]
[[-0.05771057307720184,0.006384850014001131,0.006384850014001131,0.3268619477748871,0.32686194777488(...TRUNCATED)
1,829,689,390
bf2ba44adf2a4f74
2
classify_with_evidence
7,828
2
null
null
"Determine whether the time series contains an anomaly and, if so, identify it and its window. Respo(...TRUNCATED)
[]
"classify_with_evidence:{\"_L\": 7828, \"end\": 6948, \"kind\": \"Premature Atrial Contraction (APC)(...TRUNCATED)
classify_apc_L7828
null
null
[ "apc" ]
[ "ECG_0", "ECG_1" ]
[ 6795 ]
[ 6948 ]
[ "ECG_0", "ECG_1" ]
[[1.028122901916504,1.6703912019729614,0.723890483379364,-0.7634676694869995,-1.6592628955841064,-2.(...TRUNCATED)
1,716,297,970
97278d72c29d5181
2
classify_with_evidence
16,300
2
null
null
"Determine whether the time series contains an anomaly and, if so, identify it and its window. Respo(...TRUNCATED)
[]
"classify_with_evidence:{\"_L\": 16300, \"end\": 7363, \"kind\": \"Premature Ventricular Contraction(...TRUNCATED)
classify_pvc_L16300
null
null
[ "pvc" ]
[ "ECG_0", "ECG_1" ]
[ 7095 ]
[ 7363 ]
[ "ECG_0", "ECG_1" ]
[[-0.19319987297058105,-0.22148174047470093,-0.13663612306118011,-0.051790520548820496,-0.4760185778(...TRUNCATED)
717,538,798
3c94a8d59678da7f
2
classify_with_evidence
8,146
2
null
null
"Determine whether the time series contains an anomaly and, if so, identify it and its window. Respo(...TRUNCATED)
[]
"classify_with_evidence:{\"_L\": 8146, \"end\": 5785, \"kind\": \"Premature Atrial Contraction (APC)(...TRUNCATED)
classify_apc_L8146
null
null
[ "apc" ]
[ "ECG_0", "ECG_1" ]
[ 5638 ]
[ 5785 ]
[ "ECG_0", "ECG_1" ]
[[-0.014576652087271214,0.05590348318219185,0.05590348318219185,0.07352351397275925,-0.0145766520872(...TRUNCATED)
1,442,277,524
afc5f35e9b030343
2
classify_with_evidence
9,630
2
null
null
"Determine whether the time series contains an anomaly and, if so, identify it and its window. Respo(...TRUNCATED)
[]
classify_with_evidence:{"_L": 9630, "kind": "No anomaly"}
classify_none_L9630
null
null
[]
[]
[]
[]
[ "ECG_0", "ECG_1" ]
[[0.3640986680984497,0.5186144113540649,0.6731300950050354,0.9821614623069763,1.291192889213562,1.44(...TRUNCATED)
1,767,646,640
e80065de766da2d3
2
classify_with_evidence
8,942
2
null
null
"Determine whether the time series contains an anomaly and, if so, identify it and its window. Respo(...TRUNCATED)
[]
"classify_with_evidence:{\"_L\": 8942, \"end\": 8430, \"kind\": \"Premature Ventricular Contraction (...TRUNCATED)
classify_pvc_L8942
null
null
[ "pvc" ]
[ "ECG_0", "ECG_1" ]
[ 8197 ]
[ 8430 ]
[ "ECG_0", "ECG_1" ]
[[0.4152753949165344,0.4152753949165344,0.6094735264778137,0.5447408556938171,0.6742063164710999,0.7(...TRUNCATED)
528,424,024
d6c755fc2fa91d57
2
classify_with_evidence
15,818
2
null
null
"Determine whether the time series contains an anomaly and, if so, identify it and its window. Respo(...TRUNCATED)
[]
"classify_with_evidence:{\"_L\": 15818, \"end\": 11556, \"kind\": \"Premature Ventricular Contractio(...TRUNCATED)
classify_pvc_L15818
null
null
[ "pvc" ]
[ "ECG_0", "ECG_1" ]
[ 11385 ]
[ 11556 ]
[ "ECG_0", "ECG_1" ]
[[0.05252179130911827,0.08615700155496597,0.11979220807552338,0.2879682779312134,0.18706263601779938(...TRUNCATED)
611,046,876
a9e49ffb34168c63
2
classify_with_evidence
8,654
2
null
null
"Determine whether the time series contains an anomaly and, if so, identify it and its window. Respo(...TRUNCATED)
[]
"classify_with_evidence:{\"_L\": 8654, \"end\": 8050, \"kind\": \"Premature Ventricular Contraction (...TRUNCATED)
classify_pvc_L8654
null
null
[ "pvc" ]
[ "ECG_0", "ECG_1" ]
[ 7867 ]
[ 8050 ]
[ "ECG_0", "ECG_1" ]
[[2.4676454067230225,2.3523778915405273,2.0065760612487793,1.5839290618896484,1.2765495777130127,1.0(...TRUNCATED)
1,259,381,419
f30e5e21d9aa683d
2
classify_with_evidence
11,414
2
null
null
"Determine whether the time series contains an anomaly and, if so, identify it and its window. Respo(...TRUNCATED)
[]
classify_with_evidence:{"_L": 11414, "kind": "No anomaly"}
classify_none_L11414
null
null
[]
[]
[]
[]
[ "ECG_0", "ECG_1" ]
[[-0.8801363706588745,-0.6047742962837219,-0.8407989144325256,-0.6047742962837219,-0.840798914432525(...TRUNCATED)
206,362,941
8e4cdebbb844dbf4
2
classify_with_evidence
7,924
2
null
null
"Determine whether the time series contains an anomaly and, if so, identify it and its window. Respo(...TRUNCATED)
[]
"classify_with_evidence:{\"_L\": 7924, \"end\": 825, \"kind\": \"Premature Atrial Contraction (APC)\(...TRUNCATED)
classify_apc_L7924
null
null
[ "apc" ]
[ "ECG_0", "ECG_1" ]
[ 627 ]
[ 825 ]
[ "ECG_0", "ECG_1" ]
[[-0.45735183358192444,-0.5015320181846619,-0.5015320181846619,-0.6782526969909668,-0.23645094037055(...TRUNCATED)
411,464,330
End of preview. Expand in Data Studio

AnomalyXL Generalization

Real-data, out-of-distribution generalization sets for the AnomalyXL time-series anomaly task, from the paper TimeRLM: Recursive Language Models Are General Temporal Reasoners.

Each row is a single, isolated anomaly (or a clean negative) spliced from a real clinical recording and cast into the exact anomalyxl-precise classify_with_evidence schema, so the timeseries_qa environment scores it unchanged. Because no synthetic signal appears here, performance on these sets measures zero-shot transfer of a recipe trained on AnomalyXL to genuine physiological domains.

The gold span is small relative to its window — a median of 1.7 s of ECG and 17.7 s of sleep signal — so localization is a genuine needle-in-a-haystack task.

Subsets

ltaf-anomaly/ — LTAF ECG (128 Hz)

  • Env name: ltaf_anomaly | channels: ECG_0, ECG_1
  • Rows: 250 (200 anomaly / 50 no-anomaly)
  • Anomaly: a single premature beat (PVC / APC) in normal sinus rhythm. Gold window: the RR bracket (previous → next beat) around the ectopic beat.
  • Kind balance: No anomaly 50 · Premature Atrial Contraction (APC) 99 · Premature Ventricular Contraction (PVC) 101
  • Window length: 60–1017 s (median 332 s), i.e. 7,691–130,228 samples.

sleep-anomaly/ — Sleep-PSG (200 Hz)

  • Env name: sleep_anomaly | channels: AIRFLOW, CHEST, ABD, SaO2
  • Rows: 250 (200 anomaly / 50 no-anomaly)
  • Anomaly: a single respiratory arousal bout (Central Apnea / Obstructive Apnea / Hypopnea / RERA). Gold window: the bout's native [start, end) range.
  • Kind balance: Central Apnea 50 · Hypopnea 50 · No anomaly 50 · Obstructive Apnea 50 · RERA 50
  • Window length: 60–640 s (median 313 s), i.e. 12,028–128,003 samples.

Construction

Every positive window is drawn so that it contains exactly one anomaly: the window is sampled inside a corridor clipped at the nearest neighbouring event, which guarantees no other event intrudes. 80% of rows are positives (carrying the anomaly kind and a [start, end) gold window); 20% are negatives (kind No anomaly, no window). Channels are per-channel z-normalized, and a single unified detect-and-classify prompt is used for both positives and negatives.

Windows span two length regimes — short (60–300 s) and long (≥ 300 s, stratified so every anomaly kind is equally represented, capped at ~131k samples to fit a reasoning model's context budget). Draws are seeded (42 for the short windows, 43 for the long ones), so the set is reproducible from the raw PhysioNet recordings with the builders released alongside the benchmark (anomalyXL/generalization_set/).

Schema

Columns follow anomalyxl-precise. Key fields:

  • answer"classify_with_evidence:" + json({"kind": <label>, "start": <int>, "end": <int>, "_L": <int>}); for negatives the payload is {"kind": "No anomaly", "_L": <int>} (no window).
  • channel_names / channel_values — the z-normalized series (list of channels).
  • length, n_channels, question, injection_kinds/channels/starts/ends, seed.

Scoring: kind_x_iou = (kind matches) × IoU of the predicted vs gold [start, end); a correct No anomaly prediction is credited on negatives.

Usage

The timeseries_qa environment takes either a local directory or a Hub shard as repo_or_path, where a #fragment selects the subset:

vf-eval timeseries_qa -m <model> \
  -a '{"dataset":"ltaf_anomaly","repo_or_path":"nz00shuuuu/anomalyxl-generalization#ltaf-anomaly","mode":"rlm"}'

vf-eval timeseries_qa -m <model> \
  -a '{"dataset":"sleep_anomaly","repo_or_path":"nz00shuuuu/anomalyxl-generalization#sleep-anomaly","mode":"rlm"}'

Related

Part of the TimeRLM / AnomalyXL collection: anomalyxl-precise, anomalyxl-coarse, and this generalization set.

Provenance & licensing

Windows are spliced from real clinical recordings (long-term AF ECG; overnight polysomnography). The underlying source recordings retain their original licenses and data-use agreements — consult those before any redistribution or non-research use. This repository is a derived, re-windowed research artifact.

Downloads last month
73

Collection including nz00shuuuu/anomalyxl-generalization