Dataset Viewer
Auto-converted to Parquet Duplicate
episode
int32
0
599
family
stringclasses
11 values
x0
listlengths
5
5
signal
stringlengths
33
495
dt
float64
0.01
0.01
u
listlengths
2.02k
2.02k
y
listlengths
2.02k
2.02k
x
listlengths
2.02k
2.02k
0
zero
[ 0.5441810488700867, 0.01694287173449993, 0.011605286970734596, 1.9161186218261719, 0.1966436207294464 ]
{"family": "zero", "scale": 0.85}
0.014835
[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0(...TRUNCATED)
[[1.9470508098602295,0.192249596118927],[1.9026315212249756,0.15823909640312195],[1.9226808547973633(...TRUNCATED)
[[0.5441810488700867,0.01694287173449993,0.011605286970734596,1.9161186218261719,0.1966436207294464](...TRUNCATED)
1
zero
[0.724035918712616,-0.002483754651620984,-0.019669780507683754,3.1124088764190674,0.0038858891930431(...TRUNCATED)
{"family": "zero", "scale": 0.85}
0.014835
[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0(...TRUNCATED)
[[3.1141905784606934,-0.0031978939659893513],[3.101055860519409,0.07663416117429733],[3.095405817031(...TRUNCATED)
[[0.724035918712616,-0.002483754651620984,-0.019669780507683754,3.1124088764190674,0.003885889193043(...TRUNCATED)
2
zero
[ 0.646615743637085, 0.03171498700976372, 0.03753542900085449, 0.07914718985557556, 0.1339486688375473 ]
{"family": "zero", "scale": 0.85}
0.014835
[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0(...TRUNCATED)
[[0.0770210474729538,0.13154713809490204],[0.07232238352298737,0.12124965339899063],[0.0921354293823(...TRUNCATED)
[[0.646615743637085,0.03171498700976372,0.03753542900085449,0.07914718985557556,0.1339486688375473],(...TRUNCATED)
3
constant
[0.3418237864971161,-0.026476755738258362,-0.03119075298309326,2.882857322692871,0.25173383951187134(...TRUNCATED)
{"family": "constant", "scale": 0.85, "A": -0.5238535288485562}
0.014835
[-0.4452754855155945,-0.4452754855155945,-0.4452754855155945,-0.4452754855155945,-0.4452754855155945(...TRUNCATED)
[[2.888303279876709,0.2584210932254791],[2.8679816722869873,0.2142535150051117],[2.888700008392334,0(...TRUNCATED)
[[0.3418237864971161,-0.026476755738258362,-0.03119075298309326,2.882857322692871,0.2517338395118713(...TRUNCATED)
4
constant
[0.3957242965698242,0.020469915121793747,-0.004672850016504526,2.3753247261047363,0.2740083634853363(...TRUNCATED)
{"family": "constant", "scale": 0.85, "A": -0.5238535288485562}
0.014835
[-0.4452754855155945,-0.4452754855155945,-0.4452754855155945,-0.4452754855155945,-0.4452754855155945(...TRUNCATED)
[[2.380258321762085,0.2668554484844208],[2.3636415004730225,0.21145451068878174],[2.3678815364837646(...TRUNCATED)
[[0.3957242965698242,0.020469915121793747,-0.004672850016504526,2.3753247261047363,0.274008363485336(...TRUNCATED)
5
constant
[ 0.5912346839904785, -0.0350852832198143, 0.006603466812521219, 0.5872398614883423, 0.09059873968362808 ]
{"family": "constant", "scale": 0.85, "A": -0.5238535288485562}
0.014835
[-0.4452754855155945,-0.4452754855155945,-0.4452754855155945,-0.4452754855155945,-0.4452754855155945(...TRUNCATED)
[[0.5971380472183228,0.08842229843139648],[0.6088525652885437,0.1288931667804718],[0.571547329425811(...TRUNCATED)
[[0.5912346839904785,-0.0350852832198143,0.006603466812521219,0.5872398614883423,0.09059873968362808(...TRUNCATED)
6
step
[0.7949957847595215,0.005873448681086302,-0.026188915595412254,3.6203835010528564,0.0706921964883804(...TRUNCATED)
{"family": "step", "scale": 0.85, "A": -0.598586117868577, "t_step": 10.384310251294673}
0.014835
[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0(...TRUNCATED)
[[3.624056816101074,0.06540051102638245],[3.5914978981018066,0.13716527819633484],[3.575515747070312(...TRUNCATED)
[[0.7949957847595215,0.005873448681086302,-0.026188915595412254,3.6203835010528564,0.070692196488380(...TRUNCATED)
7
step
[0.4746704399585724,-0.010955428704619408,0.022538479417562485,1.4084687232971191,0.1790743470191955(...TRUNCATED)
{"family": "step", "scale": 0.85, "A": -0.598586117868577, "t_step": 10.384310251294673}
0.014835
[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0(...TRUNCATED)
[[1.417899250984192,0.1710602045059204],[1.4114245176315308,0.14738351106643677],[1.3871192932128906(...TRUNCATED)
[[0.4746704399585724,-0.010955428704619408,0.022538479417562485,1.4084687232971191,0.179074347019195(...TRUNCATED)
8
step
[ 0.439827561378479, 0.036372605711221695, -0.023344580084085464, 0.924250602722168, 0.03445964306592941 ]
{"family": "step", "scale": 0.85, "A": -0.598586117868577, "t_step": 10.384310251294673}
0.014835
[0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0(...TRUNCATED)
[[0.9257645010948181,0.032348278909921646],[0.9190885424613953,0.04531106352806091],[0.9293320178985(...TRUNCATED)
[[0.439827561378479,0.036372605711221695,-0.023344580084085464,0.924250602722168,0.03445964306592941(...TRUNCATED)
9
staircase
[ 0.7444049119949341, -0.02175937220454216, 0.02543160319328308, 2.1049153804779053, 0.2179424911737442 ]
{"family": "staircase", "scale": 0.85, "n_seg": 6}
0.014835
[-0.8366221785545349,-0.8366221785545349,-0.8366221785545349,-0.8366221785545349,-0.8366221785545349(...TRUNCATED)
[[2.0964672565460205,0.21539443731307983],[2.074740171432495,0.23157918453216553],[2.134185791015625(...TRUNCATED)
[[0.7444049119949341,-0.02175937220454216,0.02543160319328308,2.1049153804779053,0.2179424911737442](...TRUNCATED)
End of preview. Expand in Data Studio

HyperKKL observer benchmark

Simulated input-driven nonlinear plants for learning state observers (Kazantzis-Kravaris / Luenberger (KKL) observers, neural observers, filters with learned components): from the applied input u(t) and the noisy measurements y(t), estimate the full state x(t), including the unmeasured states. Every episode carries the true state, so any estimator can be scored with the same metric. The benchmark tests generalisation to new input shapes and new input event sequences inside the same actuator box, and robustness to incomplete model knowledge (missing physics, wrong parameters, colored heavy-tailed sensor noise).

Author: Yahias21. Citation: see below (placeholder).

Plants

12 plants: 6 dev plants (used for every design decision) and 6 held-out test plants (used once, with a frozen recipe). Single scalar input on every plant.

plant role n_x n_y measured unmeasured group what the partial model (f_known) misses
battery dev 5 2 dT (temperature rise, K), Vm (BMS voltage channel, V) SOC, V1 (fast RC voltage, V), V2 (slow RC voltage, V) window-starved the slow RC branch R2 || C2 (model: the textbook 1-RC equivalent circuit; V2 is not driven, not in the terminal voltage and dissipates no heat)
bioreactor dev 2 1 x2 (substrate) x1 (biomass) rich Monod saturation of the growth rate (model: first-order kinetics mu_max s / Ks)
duffing dev 2 1 x1 (position) x2 (velocity) window-starved the cubic stiffness -x1^3 (model: linear spring)
lorenz dev 3 1 x2 x1, x3 rich the coupling -x1 x3 in the measured equation
quad_tank dev 4 2 h1 (lower tank 1, cm), h2 (lower tank 2, cm) h3 (upper tank 3, cm), h4 (upper tank 4, cm) window-starved the square-root orifice law (model: flows linearised at the nominal equilibrium)
vdp dev 2 1 x1 (position) x2 (velocity) rich the nonlinear damping law mu (1 - x1^2) x2 (model: undamped oscillator)
cartpole_b test 4 2 x (cart position, m), th (pole angle, rad) v (cart velocity, m/s), om (pole rate, rad/s) rich large-angle pendulum terms (model: small-angle sin th = th, cos th = 1, no om^2)
fhn test 2 1 v (membrane potential) w (recovery variable) rich the recovery leak -eps b w
highway_traffic test 5 3 rho1 (density cell 1, veh/m), rho3 (density cell 3, veh/m), rho5 (density cell 5, veh/m) rho2 (density cell 2, veh/m), rho4 (density cell 4, veh/m) window-starved congestion in the fundamental diagram (model: free-flow q = v_free rho)
network test 10 3 v0, v1, v3 w0, w1, v2, w2, w3, v4, w4 rich the coupling edge 2-3 of the ring (model: chain 3-4-0-1-2, graph partly unknown)
rossler test 3 1 x2 x1, x3 rich the folding nonlinearity x1 x3
two_link_arm test 4 2 q1 (shoulder angle, rad), q2 (elbow angle, rad) dq1 (rad/s), dq2 (rad/s) absolutely starved Coriolis and centrifugal terms (model: M(q) qdd = tau - g(q) - kd qd)

Group (from a posterior Cramer-Rao information analysis of the C1 setting): window-starved = an observer with a fading memory of ~3/alpha seconds loses >= 40% of the attainable precision on the unmeasured states (long memory needed); rich = the recent window carries almost all the information; absolutely starved = poor even with unbounded memory. cartpole_b was classified after the original analysis with the same rule (ratio 1.03, rich).

Timing and input box:

plant dt samples per episode T t_ref alpha settle index input range u actuator
battery 0.014835 2024 30 1 1.5 1011 [-0.85, 0.85] affine
bioreactor 0.061803 1620 100 1 0.5 809 [-0.15, 0.15] (admissible interval [-0.25, 0.6]) saturating, u_bar 0.3, back-EMF k 0.167 on x2
duffing 0.010301 4856 50 1 3 2427 [-1, 1] saturating, u_bar 2, back-EMF k 1 on x2
lorenz 0.011126 4495 50 1 2 2247 [-1, 1] saturating, u_bar 2, back-EMF k 0.0333 on x2
quad_tank 0.05 6001 300 15 0.1 3000 [-1, 1] saturating, u_bar 2, back-EMF k 0.571 on x4
vdp 0.020601 2429 50 1 1.5 1214 [-1, 1] saturating, u_bar 2, back-EMF k 0.333 on x2
cartpole_b 0.017255 1740 30 1 1.5 869 [-1, 1] saturating, u_bar 2, back-EMF k 0.25 on x4
fhn 0.061803 1620 100 2 0.5 809 [-1, 1] saturating, u_bar 2, back-EMF k 0.4 on x1
highway_traffic 0.026105 7663 200 10 0.5 3831 [-0.15, 0.15] (admissible interval [-0.25, 0.6]) saturating, u_bar 0.3, back-EMF k 3.33 on x3
network 0.043509 2300 100 1.5 0.3 1149 [-1, 1] saturating, u_bar 2, back-EMF k 0.4 on x1
rossler 0.022252 7192 160 8 1 3595 [-1, 1] saturating, u_bar 2, back-EMF k 0.02 on x2
two_link_arm 0.012941 7729 100 2 2 3864 [-1, 1] saturating, u_bar 2, back-EMF k 0.1 on x3

t_ref is the plant's reference time (seconds per signal time unit; all input time scales are in t_ref units). alpha is the bandwidth of the reference KKL latent filter (exposed for KKL users; not needed otherwise). The actuator (saturating u_eff = u_bar tanh((u - k (x_j - x_ref)) / u_bar) with back-EMF) is part of the plant and known to the modeller in every setting.

cartpole_b is the bounded cart-pole (a slow cart-centering loop keeps the cart on a +-2.4 m track). The original unbounded cartpole (the cart position is a random walk; spread grows 9.4x from T to 5T) failed our inclusion (boundedness) check and is not part of the benchmark; it is provided only as the legacy-cartpole-* configs for reproducibility of earlier results.

Settings (what the modeller knows)

The data are always generated by the REAL plant; the settings differ in the real plant's parameters, the sensor, and the model a model-based method may use.

setting (config suffix) real plant sensor noise modeller's model data files
C1 nominal parameters white Gaussian, 3% of y_std exact f (knowledge="full") white
C3-partial nominal parameters white Gaussian, 3% of y_std f_known: the UNMODELLED term missing (knowledge="partial") white (same episodes as C1)
C3-mismatch30 every physical parameter off nominal by exp(+-0.3) (signs alternate over sorted names; operating-point parameters excluded) white Gaussian, 3% exact structure, NOMINAL parameters mismatch30
C3-realistic (= TEST-C3) 30% parameter mismatch AR(1) colored Student-t: e_k = 0.9 e_(k-1) + sqrt(1-0.81) w_k, w ~ unit-variance t(nu=3), scaled to 3% of y_std f_known at NOMINAL parameters realistic

C1 and C3-partial share their files (the modeller's knowledge does not change the data). In C3-mismatch30 and C3-realistic the trajectories x, u are identical episode by episode; only y differs. Process noise (all settings): Euler-Maruyama increments of 0.5% of each state's x_std per sqrt(second). A learned observer is trained on the real plant's data; a model-based filter must use the modeller's model (code/hyperkkl_bench: build_plant(cfg, knowledge=...), nominal parameters).

Splits and evaluation tiers

Every config has six splits. All inputs stay inside the same actuator box v(t) in [-1, 1] (u = u_scale v); what changes out of distribution is the input's shape or sequence, never its amplitude.

split episodes inputs role
train 600 11 training families: zero, constant, step, staircase, PRBS, square, sinusoid, multisine, ramp, AM, drive ('smooth driver') training (crossed design: each signal paired with 3 initial conditions)
validation 64 training families, independent draws model selection only
phase1 400 zero input, initial conditions over the whole operating domain autonomous (zero-input) episodes, e.g. for pre-training a base observer
id 64 training families (except zero) and ranges, unseen seeds in-distribution test
shape_ood 64 waveforms never used in training (chirp, filtered noise, triangle, sawtooth), same box and frequency band new input shapes
sequence_ood 64 the 'drive' family (pedal-like level/ramp events) with a 'stop-and-go' event sequence: large jumps between distant levels, shorter dwells, faster ramps new event sequences

Initial conditions are drawn from the plant's IC box (scrambled Sobol). Evaluation episodes use one signal and one initial condition each (independent units) and seeds that depend only on (plant, tier). The train/validation/phase1 splits are those of training seed 0 of our experiments. No subsampling was applied: every episode the generator produced is included. Episodes leaving 1.5x the operating envelope are redrawn with a fresh initial condition (up to 6 times); the few that still diverge are dropped, so some splits have fewer episodes:

plant data train validation phase1 id shape_ood sequence_ood
battery white 600 64 400 64 64 64
battery mismatch30 600 64 400 64 64 64
battery realistic 600 64 400 64 64 64
bioreactor white 600 64 400 64 64 64
bioreactor mismatch30 600 64 400 64 64 64
bioreactor realistic 600 64 400 64 64 64
duffing white 600 64 400 64 64 64
duffing mismatch30 600 64 400 64 64 64
duffing realistic 600 64 400 64 64 64
lorenz white 600 64 400 64 64 64
lorenz mismatch30 600 64 400 64 64 64
lorenz realistic 600 64 400 64 64 64
quad_tank white 600 64 400 64 64 64
quad_tank mismatch30 600 64 400 64 64 64
quad_tank realistic 600 64 400 64 64 64
vdp white 600 64 400 64 64 64
vdp mismatch30 600 64 400 64 64 64
vdp realistic 600 64 400 64 64 64
cartpole_b white 600 64 400 64 64 64
cartpole_b mismatch30 600 64 400 64 64 64
cartpole_b realistic 600 64 400 64 64 64
fhn white 600 64 400 64 64 64
fhn mismatch30 600 64 400 64 64 64
fhn realistic 600 64 400 64 64 64
highway_traffic white 600 64 400 64 64 64
highway_traffic mismatch30 600 64 400 64 64 64
highway_traffic realistic 600 64 400 64 64 64
network white 600 64 400 64 64 64
network mismatch30 600 64 400 64 64 64
network realistic 600 64 400 64 64 64
rossler white 600 64 399 64 64 64
rossler mismatch30 491 57 372 55 51 48
rossler realistic 491 57 372 55 51 48
two_link_arm white 600 64 335 64 64 64
two_link_arm mismatch30 600 64 305 64 64 64
two_link_arm realistic 600 64 305 64 64 64
legacy_cartpole white 600 64 400 64 64 64
legacy_cartpole mismatch30 600 64 400 64 64 64
legacy_cartpole realistic 600 64 400 64 64 64

Data format

Parquet, one row per episode (zstd). Columns:

column type meaning
episode int32 index within the split
family string input family (e.g. drive, chirp, zero)
x0 list[float32] (n_x) initial condition
signal string (JSON) the input realisation's parameters
dt float64 sample time (s); sample k is at t = k dt, k = 0..N
u list[float32] (N+1) applied input, held constant over [t_k, t_(k+1)) (zero-order hold)
y list[list[float32]] (N+1, n_y) noisy measurements
x list[list[float32]] (N+1, n_x) true state

Per-plant metadata in metadata/<plant>.json: state / sensor names and indices, unmeasured indices, x_std / y_std (metric and noise scales), x_mean, operating domain, dt, N, T, t_ref, alpha, nz, settle_frac / settle_index, input box and actuator, IC box, nominal and 30%-mismatched parameters, the UNMODELLED term, the system config for build_plant, per-setting sensor model and episode counts, and SHA-256 checksums of every file.

Loading

from datasets import load_dataset
import numpy as np, json
from huggingface_hub import hf_hub_download

ds = load_dataset("Yahias21/HyperKKL-benchmark", "vdp-C3-realistic")          # all six splits
ep = ds["sequence_ood"].with_format("numpy")[0]
x, y, u, dt = np.stack(ep["x"]), np.stack(ep["y"]), ep["u"], ep["dt"]       # (N+1, n_x), (N+1, n_y), (N+1,)
meta = json.load(open(hf_hub_download("Yahias21/HyperKKL-benchmark", "metadata/vdp.json",
                                      repo_type="dataset")))

Or read a split directly: pandas.read_parquet("data/vdp/realistic/id.parquet").

Metric

Settled NRMSE (per episode, then averaged over the 64 episodes of a tier):

NRMSE = sqrt( mean_(k >= settle) mean_j ((xhat_j(k) - x_j(k)) / x_std_j)^2 ),
settle = int(0.5 N)   (the second half of the episode; metadata settle_index)

x_std is fixed per plant (nominal plant, in-distribution inputs, after washout) and is the same for every setting and tier. Unmeasured-state NRMSE = mean over unmeasured states j of sqrt(mean_(k >= settle) (e_j(k)/x_std_j)^2). Normalised errors are clipped to [-100, 100] (non-finite -> 100); an episode is diverged if any |e_j / x_std_j| > 100 or the estimate is non-finite. Reference implementation: code/hyperkkl_bench/metrics.py (settled_nrmse(x, xhat, meta)).

Code

code/hyperkkl_bench/ (standalone, needs torch, numpy, scipy): systems.py, systems_extra.py (battery, network), systems_bounded.py (cartpole_b) with each plant's true dynamics f, the modeller's f_known and the declared UNMODELLED term, h, the saturating actuator and build_plant; sensors.py (the sensor models, incl. colored_t); signals.py (input families and tier definitions); simulate.py (RK4 + zero-order hold step); metrics.py.

import sys; sys.path.insert(0, "code")
from hyperkkl_bench import build_plant, load_meta
meta = load_meta("vdp", root=".")
plant = build_plant(meta["system_config"], perturb=0.3)              # real plant of C3-mismatch30 / C3-realistic
model = build_plant(meta["system_config"], knowledge="partial")      # modeller's model of C3-partial / C3-realistic

Provenance

Generated with the HyperKKL data generator (float64 RK4, input zero-order hold, process noise, then the sensor model; stored as float32). Episodes are exported from the generator's cache of our experiment runs. Exception: C3-mismatch30 of the test plants (and of legacy_cartpole) was not run in our experiments; its x, u are those of C3-realistic (identical by construction: same seeds, same real plant) and y was re-drawn as white Gaussian noise (3% of y_std) with the generator's sensor function on CPU with the same seed (metadata/<plant>.json: derived_white_from_realistic).

License

Code in code/: the same license as the HyperKKL code repository. Data: released with the code repository under the same terms. The battery plant here is a simulated 2-RC cell model; no measured battery data is included. The real battery dataset used elsewhere in our work (Panasonic 18650PF Li-ion data, P. Kollmeyer) is a third-party dataset and must be obtained from its source.

Citation

@misc{hyperkkl_benchmark,
  title  = {HyperKKL observer benchmark},
  author = {Yahias21},
  year   = {2026},
  note   = {Citation to be added}
}

Total size of the Parquet files: 5.24 GB.

Downloads last month
36