NeuralManifoldDynamics: A Versioned Measurement Contract for Low-Dimensional Neural-Manifold Trajectories
NeuralManifoldDynamics: A Versioned Measurement Contract for Low-Dimensional Neural-Manifold Trajectories
Where did the research take place?
The study site has not been established. Author addresses may differ from where the research occurred.
A plain-language reading has not been prepared for this paper yet.
Original abstract
Changelog v2.4 — MEG support, HRV v0.1, block-native v2, geometry contract Major additions MEG ingest (exploratory/beta)- `meg_mag_*`, `meg_grad_*`, `meg_*` feature columns extracted from Neuromag FIF files via MNE-Python.- Shadow mapping routes MEG features through the existing 9D coordinate contract — each `meg_*` type maps to the same subcoordinate slot as its `eeg_*` counterpart; no changes to the projection machinery.- For simultaneous MEEG recordings: explicit row-source provenance under `row_source/` (schema: `mndm.row_source.v1`), replacing the implicit positional half-split assumption.- New `features_projection_z` HDF5 export surface applies the configured transform pipeline (log10 → robust-z → clip) before export. Required for MEG spectral features, where raw physical power (~10⁻²⁵ W) collapses to near-zero under raw-space robust-z.- Validated on a 5-subject pilot from ds003645 (readiness score 0.7879). Labeled exploratory — not yet confirmed at full 18-subject scale. Embodied Anchoring: concrete modality implementations (v2.3 introduced the principle)- ECG / HRV v0.1: Superwindow time-domain surface (`ecg_hrv_hr_mean_bpm`, `ecg_hrv_ibi_mean_ms`, `ecg_hrv_sdnn_ms`, `ecg_hrv_rmssd_ms`, `ecg_hrv_pnn50`, `ecg_hrv_nn_count`, artifact/coverage/quality flags) via configurable centered window (default 60 s). Optional complexity columns (`ecg_hrv_sampen`, `ecg_hrv_dfa_alpha1`) when enabled. Manifest tag: `anchor_hrv_v0_1`.- *PPG surface*: Per-epoch rate, amplitude, variability, and quality flags when PPG channels are present; feeds `vascular_index` in `anchor_state`.- *Pupillometry surface*: Per-epoch diameter, volatility, blink-rate proxy, and quality score when pupil traces are present.- Automatic ECG polarity correction (validated on ds006848: 92.7% of epochs had inverted polarity; after correction, population median HR 76.2 bpm, RMSSD 40.7 ms).- HRV contamination gating: `ecg_hrv_*` columns carry contamination flags when superwindow overlaps task events. Block-native v2 sidecar ecosystem- `block_native_qc.json`, named window profiles, `source_window_index` provenance.- Built-in parquet/CSV sidecars alongside HDF5.- Inter-network Jacobian coupling columns (`coupl_*`) in block-native sidecars; stage-level pooling fallback for short-trial datasets. Other additions `anchor_auto_fit`: one-shot per-run cohort anchor fitting — resolves most `cohort_anchored` skip cases without manual anchor preparation.- `standard_invalidity_v1` geometry contract: versioned policy for `coords_9d` duplicate-subcoordinate tolerance with per-subject diagnostics; always-on time-grid contract auditing.- `participants.extra_tables`: generic clinical TSV join (UPDRS items, longitudinal tables) embedded into per-subject H5 output. Demonstrated on ds007526.- Conventional EEG coma pack extended: suppression ratio, burst-suppression proxy, spectral ratios, and reactivity proxies for clinical ICU datasets. - `openneuro_ingest` downloads now run through `uvx openneuro-py@latest` by default (`download.use_uvx`, default true; `OPENNEURO_PREFER_UVX` env override). Workaround installed openneuro-py versions broken by upstream OpenNeuro GraphQL schema changes (e.g. 2026.3.0 `Cannot query field "key" on type "DatasetFile"`). `uv` added to `requirements.txt`; `openneuro-py` pin bumped to `>=2026.4.1`. Production validation (six additional cohorts) Dataset (open neuro) n (subjects) Notes ds003838 30 HRV v0.1 + block-native; 27,670 windows; vagal_index listen–mem13 Cohen's d = 1.995 (Wilcoxon p = 1.2×10⁻¹⁰) ds006036 88 Block-native ds007526 277 recordings Parkinson gait/rest + clinical TSV join ds003490 75 Dual-anchor rerun ds003506 84 Dual-anchor rerun ds003509 75 Dual-anchor rerun v2.3 — Embodied Anchoring Principle, coordinate anchoring, event/block layers Major additions - Explicit coordinate anchoring (introduced in the 2.1 line, formalized in 2.3): - `coords_3d_subject_anchored` / `coords_9d_subject_anchored`: preserves within-subject/session-relative geometry. - `coords_3d_cohort_anchored` / `coords_9d_cohort_anchored`: uses a frozen feature anchor for cross-subject and cross-group comparisons. - `/feature_anchors/*`: per-feature center/scale statistics with release-bound `anchor_id` / `anchor_hash` provenance.- Embodied Anchoring Principle: additive body-state surface (`anchor_state`, `anchor_state_dot`, `anchor_quality`) aligned to the same epoch grid as `mnps_3d`, without redefining the canonical chart. Optional `anchor_coupling` for downstream body-brain covariation diagnostics. Four index slots: `vagal_index`, `sympathetic_index`, `anchor_index`, `vascular_index`.- `geometry_contract`: always-on mathematical validity reporting for canonical geometry exports.- `event_locked`: generic derived analysis layer for short-event-centered questions.- `block_native`: generic derived analysis layer for sustained-block / task-segment questions. Other additions - DANDI and PhysioNet ingest/download support.- Sleep-spindle detection support (YASA-based annotation alignment).- NWB and WFDB source format support.- Conventional EEG comparator packs alongside the MNPS contract.- HRV-oriented embodied-anchor features and task-segment-driven block-native export (demonstrated on ds003838).- Regional EEG via channel-group trajectories (frontal, central, parietal-occipital, temporal) with optional CSD preprocessing (λ² = 1e-5, stiffness = 4.0). --- v2.1 — Explicit coordinate layers, MNDM contract formalization Major change: MNDM 2.1 explicitly separates exported coordinate layers: - `subject_anchored`: preserves subject/session-relative geometry.- `cohort_anchored`: uses a frozen feature anchor for cross-subject and cross-group comparisons. Additional functionality: - Added DANDI and PhysioNet ingest/download support.- Added sleep-spindle detection support.- Added support for NWB and WFDB source formats. NeuralManifoldDynamics defines a versioned ingest-layer measurement contract for deriving canonical 3D neural-manifold trajectories, stratified 9D coordinates, and local Jacobian-based dynamical summaries from (i)EEG, fMRI and MEG (beta version). The system emphasizes deterministic preprocessing, explicit coverage handling, regional manifold dynamics, and auditable HDF5 outputs, providing a reproducible measurement layer for downstream dynamical analysis rather than interpretive inference. Github link to NeuralManifoldDynamics