Manuscript Offprint
arXiv:2610.28322Manifold-Informed Neural Networks for Low-Label ECG Electrolyte Inference
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Juntang Wang
Harvard University
USA
Hao Wu
Duke Kunshan University
China
Dongmian Zou
Duke Kunshan University
China
Yihan Wang
Duke University
USA
Shixin Xu
Duke Kunshan University
China
Abstract
Physics-informed neural networks (PINNs) supervise on the residual of a known differential operator. Many high-stakes inference problems admit no such operator: clinical signals, behavioral measurements, materials properties. We introduce the Manifold-Informed Neural Network (MINN), a PINN-parallel paradigm that replaces the physics operator residual with a manifold operator residual: a discrete Poisson equation on a -nearest-neighbor graph in the learned latent space, with a learned, task-aware source. The construction is a structural parallel to PINNs (squared operator residual plus label data, in place of operator residual plus boundary data); the limit recovers the homogeneous Laplace equation (classical manifold regularization solves the same equation but minimizes the Dirichlet energy , a different penalty form). The source takes input features and auxiliary metadata directly, breaking the homogeneous smoothness prior that limits classical Laplacian penalties; gated Feature-wise Linear Modulation separately fuses metadata into the prediction branch. We evaluate MINN on three-class classification of potassium, calcium, and magnesium from 12-lead ECGs in MIMIC-IV-ECG, against twelve baselines spanning supervised and tabular methods, ECG foundation models, and manifold/graph approaches. MINN attains the highest Macro-F1 of 0.61 (best baseline 0.55), with consistent gains on and and a 31% relative improvement at 1% labeled data. Six targeted ablations show that the inhomogeneous Poisson formulation, not graph smoothing alone, drives the gain.
1 Introduction
Inferring physiologic state from non-invasive signals, for example serum electrolytes from electrocardiograms (ECGs), is a high-stakes inference problem with three structural challenges. First, no closed-form mapping exists from signal to state at the body-surface level: while ion-channel kinetics are governed by Hodgkin–Huxley-type ODEs at the cellular scale, the surface ECG is the integrated bioelectric field across a 3D heart-torso geometry, and the inverse map from surface signal to underlying concentrations is severely ill-posed and lacks a tractable closed-form operator [1, 2]. Second, labels are constrained by clinical workflow: paired ECG-laboratory measurements are sparse and class-imbalanced because pathological concentrations are inherently rare [3]. Third, each ECG is
Equal contribution.
Corresponding author: shixin.xu@dukekunshan.edu.cn.
Preprint.
accompanied by heterogeneous auxiliary metadata (drug exposures, demographics) whose interaction with the signal carries complementary task signal but is hard to fuse coherently.
Physics-informed neural networks (PINNs) [4] would resolve the first challenge by adding operator-residual supervision at every collocation point, if the operator existed. They cannot transfer here because the operator is exactly what is missing. Recent work attempts to discover operators directly from data [5]; we take the complementary path of substituting a learnable manifold operator for the missing physics operator.
Decades of cardiac signal analysis suggest ECGs lie on a low-dimensional, state-determined manifold; modern ECG foundation models exploit this structure implicitly through self-supervised pretraining [6–8]. This gives a candidate substitute for the missing operator, provided the manifold structure can be made to do the work that the physics operator does in PINNs.
Existing manifold methods fall short because they impose a homogeneous Laplace residual on the learned latent embedding: formally , where is the graph Laplacian of a k-nearest-neighbor graph in the latent space and is the matrix of latent embeddings [9, 10]. This homogeneous formulation is task-agnostic, collapses to trivial solutions at low label rates, and ignores auxiliary signal.
We introduce the Manifold-Informed Neural Network (MINN), which replaces the homogeneous Laplace prior with an inhomogeneous Poisson equation whose right-hand side is a learned, task-aware source on raw input features and auxiliary metadata; gated Feature-wise Linear Modulation [11] separately fuses metadata into the prediction branch. Each property of the formulation maps to a challenge above. The task-aware source addresses imbalance: minority-class signal is not drowned by homogeneous smoothing. The operator-residual supervision addresses label scarcity via PINN-style data efficiency, without a physics operator. The FiLM-gated prediction branch addresses metadata-fusion: gating selectively modulates the signal embedding by clinical metadata. The construction is a structural parallel to PINNs with a squared operator residual: operator-residual supervision plus label data in place of operator residual plus boundary data. The full formulation, including the relation between MINN's squared-residual penalty and classical manifold regularization's Dirichlet energy, is in Section 3 and Appendix B.
We evaluate MINN on MIMIC-IV-ECG [12], the only public corpus with paired 12-lead ECG and serum-electrolyte labels at scale. Each challenge above is tested by a specific experiment: low-label subsampling (1%–100% of labeled fractions) tests the label-efficiency claim; macro-F1 and AUCPR per minority class plus an imbalance-correction baseline test the imbalance-handling claim; a twelve-baseline benchmark spanning supervised and tabular methods, ECG foundation models, and manifold/graph approaches (LapRLS, Manifold Mixup, GraphSAGE, GRAND, Poisson Learning) tests the no-operator claim; tabular baselines plus a FiLM ablation test metadata-fusion contribution. A targeted Poisson-vs-Laplace ablation isolates the contribution of the inhomogeneous source. MINN attains the highest K⁺ Macro-F1 of 0.61 (best baseline 0.55), with a 31% relative improvement at 1% labeled data, and the gap widens at low label rates.
We contribute (i) the MINN paradigm and its PINN-parallel formulation, in which a learned source on raw signal and metadata enters a squared manifold operator residual, with FiLM-gated metadata fusion in the prediction branch; (ii) a twelve-baseline benchmark across three method families; (iii) targeted ablations isolating the inhomogeneous-source gain (no manifold → biharmonic-only → Dirichlet form → Poisson with learned source, plus learned-vs-fixed source, latent-vs-logit constraint, and FiLM removal); (iv) low-label scaling experiments showing 31% relative improvement on K⁺ at 1% labeled data, plus a beat-window sensitivity analysis.
Recent work has explored deep-learning approaches to infer electrolyte status from 12-lead ECGs. Von Bachmann et al. [14] framed the task as regression with uncertainty quantification, while Alcaraz and Strodthoff [15] extended prediction to multiple laboratory values using multimodal architectures. These approaches treat the ECG as a standard supervised learning problem without exploiting the geometric structure of the data manifold.
Exploiting the latent manifold structure of ECGs (cf. Section 1) allows label information to propagate through geometrically similar but unlabeled recordings, a mechanism unavailable to purely supervised approaches.
Physics-Informed Neural Networks. Physics-informed neural networks (PINNs) [4] incorporate known governing equations into neural network training by penalizing the residual of a differential operator applied to the network output. Given a PDE of the form with operator and source , the PINN loss includes a term evaluated at a set of collocation points. This physics residual provides a dense supervisory signal that does not require labeled data at every collocation point, enabling PINNs to solve forward and inverse problems with limited observations.
PINNs apply across fluid dynamics, heat transfer, and biomedical modeling, but require the governing physics in closed form, which excludes most biomedical inference tasks (including ECG-based electrolyte classification) where the signal-to-target relationship is mediated by partially understood physiology.
Xu and Li [16] relaxed the requirement of fully known physics by embedding partial differential equation constraints into diffusion models. MINN extends this line of thinking further: when even partial physics is unavailable, the governing operator can be replaced with a data-driven operator (the graph Laplacian of the sample manifold) while retaining the structural benefits of the operator residual formulation.
Manifold Learning and Regularization. The manifold hypothesis posits that high-dimensional data often lie on or near a low-dimensional manifold embedded in the ambient space [17]. Classical dimensionality reduction methods such as Laplacian Eigenmaps [18] and Diffusion Maps [8] exploit graph Laplacian eigenvectors to recover this low-dimensional structure, with the spectral properties of the graph Laplacian playing a central role [19–21]. Manifold regularization [9] operationalizes this idea for semi-supervised learning by adding a penalty to the training objective, where is the embedding matrix and is the graph Laplacian of a nearest-neighbor graph constructed from both labeled and unlabeled data. This penalty encourages the learned function to be smooth along the data manifold, effectively propagating label information through the graph. While effective in moderate label settings, this homogeneous smoothness prior degenerates at very low label rates, where the sparse supervision is insufficient to prevent the embedding from collapsing to the trivial constant solution.
Poisson Learning [10] addressed this limitation by replacing the Laplacian smoothness penalty with a Poisson equation on a fixed input-space graph, with Dirac-like sources placed only at labeled nodes; the resulting semi-supervised classifier remains well-posed at extremely low label rates where classical approaches degenerate. MINN generalizes this construction by replacing the fixed label-derived source with a learned task-aware source on raw signal and metadata, evaluated at every node of a co-trained latent-space graph. LapRLS [9] is the canonical homogeneous-Laplace instantiation, providing a closed-form Laplacian-regularized least-squares solution that remains a competitive baseline at low label rates. Several recent methods extend the manifold-prior toolkit beyond the homogeneous-Laplace formulation. Manifold Mixup [22] regularizes via interpolation in hidden representations, capturing manifold structure at training time without explicit graph construction. GraphSAGE [23] scales inductive aggregation across kNN graphs, and GRAND [24] formulates graph neural diffusion as a continuous process governed by a learnable PDE. Each of these methods imposes a manifold prior on the model's hidden representations, but each prior is task-agnostic: the smoothness or aggregation rule does not depend on the predicted label. Liang et al. [5] bridged manifold learning and PDE solving by training a neural network to minimize the squared operator residual on a graph Laplacian derived from Diffusion Maps, with a convergence guarantee in the large-data limit.
None of the methods above frames the manifold operator residual as a PINN-parallel paradigm with a learned, task-dependent source. Classical manifold regularization (LapRLS) uses a homogeneous Laplace equation (zero source); Poisson Learning uses fixed label-derived sources; Manifold Mixup, GraphSAGE, and GRAND impose task-agnostic priors via interpolation, aggregation, or continuous diffusion; label propagation methods [25, 26] spread label information through the graph but do not introduce a learned source. MINN bridges this gap by introducing a learned task-dependent source into the manifold operator residual, creating a structural analog to PINNs. The source network encodes both signal features and auxiliary metadata, converting the manifold constraint from a generic smoothness prior into a task-specific Poisson equation. This structural parallel (operator applied to network output, non-trivial learned source, collocation at all data points) is the central contribution of this work.
Operator-learning extensions on manifolds. -PINNs [27], gPINN [28], curvature-aware graph attention [29], and Manifold Diffusion Fields [30] extend operator-residual training to complex geometries and graph-structured collocation, but each still requires a known governing equation; MINN takes the complementary direction of applying operator-residual supervision to inference tasks where no equation is available.
Low-label and class imbalance. Standard approaches to clinical imbalance combine cost-sensitive losses, SMOTE-style oversampling [31], logit adjustment [32], and latent-space data augmentation (Mixup [33], Manifold Mixup [22]). Foundation models [6, 7] pretrain on large unlabeled ECG corpora but do not incorporate metadata or manifold geometry at fine-tuning. Tabular methods [34, 35] can use metadata directly but cannot process raw ECGs. MINN combines class-weighted cross-entropy, gated FiLM metadata fusion, and a manifold operator residual that supervises labeled and unlabeled samples alike.
3 Methods
3.1 Problem Setup and Notation
Consider an inference task where a high-dimensional signal and auxiliary metadata are mapped to categorical labels over training samples, under the three challenges of Section 1: low labels relative to , class imbalance, and heterogeneous metadata. Notation is defined inline at first use; Table 3 (Appendix A) is a consolidated reference.
3.2 Framework Overview
Figure 1 shows the MINN pipeline. An encoder maps signal to a d-dimensional embedding ; gated Feature-wise Linear Modulation (FiLM) fuses metadata to produce , which feeds T task-specific prediction heads. A parallel source network produces source vectors; embeddings and sources are linked by a discrete Poisson equation on a k-NN graph in the latent space, enforced by the manifold operator residual (Equation (2)). The total loss combines class-weighted cross-entropy and the manifold residual:
where is the class-weighted cross-entropy for task with inverse-frequency weights and predicted probabilities , is defined in Equation (2), and controls manifold-constraint strength.
Architecture details. The encoder is encoder-agnostic; any backbone producing a fixed-length embedding works. We use a 1D ResNet-18 [36] with for ECG (Section 4). Gated FiLM fuses metadata via with and . The sigmoid gate scales per-dimension; the affine shift injects metadata-dependent bias [11]. task heads (potassium, calcium, magnesium) each produce a -class softmax over via 1–2 dropout-regularized linear layers; gradients from all heads share the encoder and FiLM parameters, a form of multi-task learning [37].

Manifold Branch
Figure 1: Overview of the MINN architecture. The input signal is mapped to a latent embedding by the encoder , fused with auxiliary metadata via gated FiLM, and passed to task-specific prediction heads (Prediction Branch). Simultaneously, a k-NN graph in the latent space and a learned source network define the manifold operator residual (Manifold Branch). Dashed arrows indicate gradient flow from the two loss terms.
Manifold operator residual. Let be a k-nearest-neighbor graph over the N training samples in the encoder's latent space; the normalized graph Laplacian is . Where a classical PINN penalizes for a known operator and source , MINN substitutes for and a learned source network for :
where stacks embeddings and denotes the Euclidean norm on . The residual enforces at every graph node, parallel to PINN collocation but evaluated at every training sample regardless of label availability. The source is a small MLP mapping to ; conditioning on raw rather than avoids coupling the operator to its source through the same encoder parameters. The construction adapts the framework of Liang et al. [5] to inference tasks lacking a known operator.
Mini-batch evaluation, graph construction, and joint training. A memory-bank scheme caches H and rebuilds G every epochs; the residual is evaluated per batch-center node with neighbor embeddings detached, so gradients flow only through and at the center. The graph is built in latent space with Gaussian edge weights ( ), symmetrized, and normalized; cross-entropy uses inverse-frequency class weights, and all parameters are optimized jointly via . Full implementation, including memory complexity, R-sensitivity sweep, and class-weight schedule, is in Appendix G.
Comparison with classical manifold regularization. Classical manifold regularization [9] minimizes the Dirichlet energy , the variational form of the homogeneous Laplace equation , which collapses to at low label rates [10]. MINN minimizes the squared residual of an inhomogeneous Poisson equation with a learned task-aware source , evaluated at every graph node; setting recovers the homogeneous Laplace equation but with a squared-Laplacian (biharmonic) penalty distinct from the Dirichlet energy (Appendix B, Table 4, Figure 4).
4 Experiments
Dataset and data protocol. We instantiate the MINN framework on the MIMIC-IV-ECG dataset [38], a publicly available collection of diagnostic 12-lead ECGs linked to the MIMIC-
IV clinical database [12], hosted on PhysioNet [39]. The dataset contains approximately 800,000 ECGs from roughly 160,000 patients, recorded at the Beth Israel Deaconess Medical Center.
Pairing, preprocessing, splits. Each ECG is paired with the closest serum draw within ±1 h; unmatched ECGs are retained as unlabeled graph nodes. ECGs are resampled to 500 Hz and lead-standardized. Patient-level time-based splits (cutoff 2019-01-01) prevent leakage across train/val/test. Three-class clinical thresholds follow standard reference ranges [13]: K⁺ hypo<3.5, normal 3.5–5.0, hyper>5.0 mEq/L; Ca²⁺ hypo<8.5, 8.5–10.5, hyper>10.5 mg/dL; Mg²⁺ hypo<1.7, 1.7–2.2, hyper>2.2 mg/dL. The cohort comprises 8,599 patients and 18,037 recordings (per-bin counts in Table 8, Appendix D); K⁺ / Ca²⁺ / Mg²⁺ labels cover ≈80/70/60% of recordings, most imbalanced for Mg²⁺ hyper (≈1:10). Inputs are Nbeat=5 consecutive heartbeats (sensitivity in Appendix C.1) segmented by Pan-Tompkins R-peak detection [40], giving x ∈ R(Nbeat×256)×12 across all 12 leads. Each per-beat 256-sample window at 500 Hz spans 0.512 s centered on R; QT intervals exceeding ~450 ms (extreme hypocalcemia) may have late T-wave content partially truncated within a single beat, mitigated by the 5-beat aggregation but acknowledged as a pre-processing limitation (Section 5.1). The same 5-beat tensor is fed to ECGFounder, ECG-FM, and von Bachmann baselines for content parity across methods; native continuous-waveform evaluation of foundation models is left to future work. Metadata m comprises age, sex, and binary indicators for medication classes active at recording time (mapped from GSN/NDC codes via MIMIC-IV prescriptions); continuous features are median-imputed (<5% missing) and binary features zero-imputed. Low-data subsampling at the patient level uses fractions {1, 5, 10, 25, 50, 100} % with class imbalance preserved; unlabeled training data remain available for graph construction at every fraction.
Baselines. Twelve baselines spanning three families. Supervised & Tabular: ResNet-18 [36] (same encoder, no manifold or FiLM) sets the floor; Logit Adjustment [32] tests whether calibration alone suffices on imbalance; TabPFN [34] and CatBoost [35] (metadata only) test whether hand-crafted features drive prediction. ECG Foundation Models: ECGFounder [6], ECG-FM [7], von Bachmann et al. [14] test whether pretraining substitutes for operator-residual supervision. Manifold & Graph: LapRLS [9] (homogeneous Laplace, closed-form), Poisson Learning [10] (fixed-source Poisson, isolates the value of MINN's learned source), Manifold Mixup [22] (training-time interpolation), GraphSAGE [23] (inductive aggregation on the same kNN graph), GRAND [24] (continuous graph diffusion via Neural ODE). None couples a learned task-aware source to the operator residual; this is the central paradigm-level contrast that MINN addresses.
Evaluation and implementation. Primary metrics: Macro-F1 and Balanced Accuracy (mean ± std over 5 seeds). Headline MINN-vs-best-baseline comparisons on K⁺ and Ca²⁺ are tested with paired t-tests at p < 0.05 on per-seed Macro-F1 differences (per-comparison p-values in Table 17, Appendix H.4); we additionally flag differences within 1σ as not practically distinguishable. Per-class AUCPR and ECE in Appendix H. Implementation: 1D ResNet-18 encoder (d=128) [36], 3-layer MLP source network, k-NN graph (k=15, rebuild every R=5 epochs), AdamW with cosine annealing, λ and remaining hyperparameters tuned on validation (Appendix G).
Main Results. Table 1 reports the main results at 100% labeled data. MINN leads across K⁺ and Ca²⁺ in both Macro-F1 and Balanced Accuracy, with the largest absolute gains on K⁺ (F1 = 0.61 vs. 0.55 for the next-best ECGFounder). On Mg²⁺, MINN achieves the highest Macro-F1 (0.40), but CatBoost edges ahead in Balanced Accuracy (0.47 vs. 0.46), a difference within one standard deviation and thus not statistically distinguishable, likely because hand-crafted metadata features (particularly active medications and renal function markers) capture Mg²⁺-relevant variation that the ECG encoder alone struggles to extract. On K⁺, MINN's headline lead persists even without metadata (the no-FiLM ablation gives 0.58 K⁺ F1 vs. ECGFounder's 0.55; Table 2), so the manifold operator residual contributes complementary supervision beyond what pretraining scale confers. On Ca²⁺ and Mg²⁺, MINN's lead over the foundation models is largely attributable to metadata fusion: the no-FiLM ablation drops to 0.45 / 0.35 F1, near ECGFounder's 0.44 / 0.35. We frame this honestly: the manifold operator and metadata fusion are complementary, and electrolytes with weaker direct ECG signatures benefit primarily from metadata (medications, renal markers, age). Poisson Learning, which shares MINN's graph structure but uses a fixed label-derived source, falls short of MINN by a wide margin, highlighting the value of the learned source network.
Table 1: Main results on MIMIC-IV-ECG electrolyte classification (100% labeled data). Macro-F1 and Balanced Accuracy (BAcc) are reported as mean std over 5 seeds. Best results in bold.
| Method | ||||||
|---|---|---|---|---|---|---|
| F1 (↑) | BAcc (↑) | F1 (↑) | BAcc (↑) | F1 (↑) | BAcc (↑) | |
| Supervised & Tabular | ||||||
| ResNet-18 [36] | 0.48±.03 | 0.55±.03 | 0.40±.04 | 0.46±.04 | 0.32±.05 | 0.39±.05 |
| Logit Adj. [32] | 0.53±.02 | 0.60±.02 | 0.43±.02 | 0.50±.02 | 0.34±.03 | 0.41±.02 |
| TabPFN [34] | 0.47±.02 | 0.54±.02 | 0.43±.01 | 0.50±.02 | 0.36±.02 | 0.43±.02 |
| CatBoost [35] | 0.48±.02 | 0.55±.02 | 0.44±.01 | 0.51±.02 | 0.37±.02 | 0.47±.02 |
| ECG Foundation Models | ||||||
| ECGFounder [6] | 0.55±.01 | 0.62±.01 | 0.44±.03 | 0.51±.02 | 0.35±.03 | 0.42±.03 |
| ECG-FM [7] | 0.52±.03 | 0.58±.02 | 0.42±.03 | 0.49±.03 | 0.33±.05 | 0.40±.03 |
| von Bachmann [14] | 0.50±.02 | 0.57±.02 | 0.40±.02 | 0.47±.02 | 0.32±.03 | 0.39±.03 |
| Manifold & Graph | ||||||
| LapRLS [9] | 0.50±.01 | 0.57±.00 | 0.41±.01 | 0.47±.01 | 0.32±.02 | 0.38±.02 |
| Poisson Learning [10] | 0.49±.04 | 0.56±.04 | 0.40±.03 | 0.46±.03 | 0.32±.04 | 0.39±.03 |
| Manifold Mixup [22] | 0.51±.03 | 0.58±.02 | 0.41±.03 | 0.48±.02 | 0.33±.03 | 0.40±.03 |
| GraphSAGE [23] | 0.51±.04 | 0.58±.03 | 0.42±.03 | 0.49±.03 | 0.32±.05 | 0.39±.04 |
| GRAND [24] | 0.51±.05 | 0.58±.05 | 0.43±.05 | 0.50±.04 | 0.34±.07 | 0.40±.06 |
| MINN (Ours) | 0.61±.02 | 0.67±.02 | 0.50±.02 | 0.56±.02 | 0.40±.03 | 0.46±.02 |
Figure 2(a) shows Macro-F1 across labeled data fractions for the top five methods. Across all electrolytes, MINN's advantage over baselines grows as labeled data decreases; Table 16 in Appendix H confirms this pattern across all three electrolytes. MINN maintains the largest advantage at low fractions (1%-10%), where the geometric supervision from the operator residual compensates for label scarcity. Beyond Macro-F1, MINN's gains extend to per-class AUCPR on the clinically critical hypo/hyper minority bins (+0.04 to +0.07 over the strongest baseline; Table 14), and to calibration: MINN's ECE of 0.083 is the lowest of all methods (vs. 0.105 for the next-best baseline; Table 15).
(a) Macro-F1 vs. label fraction

(b) Mean source norm

Figure 2: (a) Macro-F1 as a function of labeled data fraction. MINN maintains the largest advantage at low fractions (1%-10%), where the manifold operator residual compensates for label scarcity. The shaded band shows std for MINN. (b) Mean source norm by class ( std); minority classes (hypo, hyper) exhibit larger source norms than the majority class, suggesting the source compensates for label imbalance.
Ablation Studies. We conduct six targeted ablations plus a beat-window sensitivity analysis to isolate the contribution of each MINN component. All ablations use the same encoder, training schedule, and evaluation protocol as the full model, varying only the component under study. Table 2 summarizes all six ablation results. Three findings stand out: the operator residual is the dominant contributor, with consistent F1 drops across all three electrolytes when removed; the Poisson residual outperforms classical manifold regularization, validating the inhomogeneous-source design; and the learned source together with the latent-space constraint provide further gains, indicating that task-adaptive forcing and geometry-aware representation both matter.
Table 2: Ablation study results (Macro-F1 std, 100% labeled data, 5 seeds). Best in bold.
| Variant | (↑) | (↑) | (↑) |
|---|---|---|---|
| MINN (full) | |||
| - Operator residual () | |||
| - Source () | |||
| - Poisson Classical reg. | |||
| - Learned source Label-only | |||
| - Latent Logit constraint | |||
| - FiLM metadata |
Operator residual vs. no manifold. Removing the manifold residual () drops Macro-F1 by 0.07, 0.06, 0.05 for , accounting for the majority of MINN's advantage.
Operator-form vs. source: 3-step decomposition. The MINN penalty differs from the classical manifold-regularization penalty in two ways simultaneously: a different operator-form (squared-Laplacian / biharmonic vs. Dirichlet) and a different source ( vs. ). Three rows of Table 2 decompose the two effects on Macro-F1 by holding one factor at a time: (i) no manifold (, 0.54) biharmonic-only (, 0.56) isolates the operator-form gain at (squared-Laplacian penalty added with zero source); (ii) biharmonic-only (0.56) vs. Dirichlet form (, 0.55) shows the two zero-source penalty forms differ by less than one standard deviation; (iii) biharmonic-only (0.56) Poisson with learned source (0.61) isolates the source contribution at (source added at fixed squared-residual penalty form). The total classical-vs-MINN advantage (Dirichlet MINN , ) is therefore overwhelmingly driven by the learned source rather than by the operator-form change. The biharmonic-only and Dirichlet variants both improve only marginally over the no-manifold baseline, consistent with the partial degeneration of homogeneous priors at low label rates predicted by Calder et al. [10].
Figure 2(b) corroborates this: the source norm is larger for minority classes (hypo, hyper) than the majority class, consistent with the source injecting stronger corrections where labels are scarce; classical manifold regularization fixes and forgoes this structure.
Learned source vs. Poisson-Learning-style label-only source. Replacing with a fixed label-derived source (non-zero only at labeled nodes; one-hot label zero-padded to ), a Calder et al. [10]-style source mechanism inside MINN's framework, drops F1 to 0.57 and yields larger gaps on and where metadata is most informative.
Constraint on latent vs. predictions. Moving the operator residual from the latent embeddings to the prediction logits shows that constraining the latent space is consistently preferable to constraining the output logits.
Effect of metadata fusion. Removing FiLM gating in the prediction branch (; source-network input unchanged) drops and F1 by 0.05 each, consistent with metadata disambiguating electrolytes with subtler ECG signatures.
Beat-window sensitivity analysis. Analysis across (Table 5, Appendix C.1) confirms the temporal-coherence peak at : is the worst (manifold operator cannot exploit within-recording temporal coherence), gains rise to , and regresses as windows per recording shrink.
Encoder-agnostic check. A CNN-vs-ResNet ablation (Table 7, Appendix C.3) confirms the manifold residual contributes a consistent F1 with both encoders, supporting the encoder-agnostic claim of Section 3.2.
The preceding results evaluate MINN on the full test set. We next examine whether these gains extend to clinically important but underrepresented patient subgroups.
Stress tests on rare clinical subgroups and within-MIMIC distribution shift. We stress MINN on four clinically rare subgroups (K-sparing diuretics + ACEi; age with polypharmacy; dialysis patients; heart failure with concurrent hypoK) and three within-cohort distribution-shift axes: demographic stratification (sex, age, race; Appendix E), temporal split on MIMIC-IV anchor_year_group (2008–2016 → 2017–2019), and care-unit split (ICU → ED). MINN leads on every rare subgroup with a 0.03–0.05 K⁺ F1 margin over ResNet+FiLM (smaller than the 0.07 at the full cohort, Table 2, since both access metadata that partly defines each subgroup), and the demographic-stratification lead of +0.04 to +0.07 holds across all 9 strata (Kruskal–Wallis p>0.1, Cliff's |δ|<0.18). Care-unit shift produces the largest absolute degradation, but MINN's drops (-0.04/ - 0.04/ - 0.03 K⁺/Ca²⁺/Mg²⁺ F1) are consistently smaller than ECGFounder's (-0.08/ - 0.10/ - 0.08), suggesting structural rather than purely data-driven robustness. Full tables in Appendix F (Table 10, Table 11); these remain within-cohort stress tests, not a substitute for external validation (Section 5.1).
5 Discussion
Interpretation. MINN’s advantage grows in low-data regimes and for electrolytes with stronger ECG signatures. The K⁺>Ca²⁺>Mg²⁺ ordering of MINN’s Macro-F1 (0.61 / 0.50 / 0.40) tracks the strength of cardiac signatures, with FiLM metadata fusion contributing most where the ECG signal is weakest (Table 2). The Poisson-vs.-classical ablation (+0.06 K⁺ F1, Table 2) isolates the central paradigm claim: a learned task-dependent source converts the manifold residual from a smoothness prior that degenerates at low label rates [10] into a stable Poisson equation; the structural comparison is in Appendix B.
5.1 Limitations and Broader Impact
Limitations. Single dataset: MIMIC-IV-ECG is the only public corpus with paired 12-lead ECG and serum-electrolyte labels at scale (eICU-CRD lacks waveforms; PTB-XL, Code-15, Chapman-Shaoxing carry only diagnostic statements). Cross-source replication is left to future work. PINN parallel: the analogy is structural, not theoretical; the graph Laplacian is data-dependent and the source is learned, so MINN does not inherit PINN guarantees. Manifold heterogeneity: clinical heterogeneity may fragment the latent manifold; we mitigate via learned-latent-space graph construction and subgroup robustness checks, but residual risk remains. Lab-ECG pairing noise: the ±1-hour window introduces temporal noise; patient-level time-based splits prevent cross-patient leakage but cap the achievable performance ceiling. Computation: brute-force k-NN scales as ; the method is modestly sensitive to k and (sweep in Table 6, Appendix C) and to the graph-update period R (Section G). Scope: three-class classification per electrolyte; continuous regression is a natural extension.
Broader impact and outlook. MINN is a research artifact and not clinically deployable: MIMIC-IV is one academic medical center, deployment without prospective external validation risks systematic error on under-represented groups, and low-data methods can amplify bias when minority-class manifold signal is itself biased. MINN is intended as decision support behind clinician interpretation, not autonomous diagnosis; deployment would require prospective multi-center validation, regulatory review, equity assessment, and distribution-shift handling. The paradigm extends naturally to other physiological-signal modalities, low-annotation medical imaging, and scientific tasks with partially understood forward models.
6 Conclusion
MINN reframes manifold regularization as a PINN-parallel paradigm: a learned, task-aware source on a graph-Laplacian operator residual, evaluated at every training sample regardless of label availability. Empirically, this yields the highest K⁺ Macro-F1 (0.61 vs. 0.55 best baseline) on MIMIC-IV-ECG and a 31% relative gain at 1% labeled data, with consistent gains on Ca²⁺ and Mg²⁺ and an inhomogeneous-Poisson-vs-classical-Laplace ablation that isolates the contribution of the learned source. Open directions are multi-dataset validation, continuous regression, adaptive graph construction, and foundation-model integration; beyond ECG, the paradigm is a template for inference where physics is unavailable but the data exhibit manifold structure with informative auxiliary metadata. An anonymized reference implementation and a runnable synthetic demo are available at https://anonymous.4open.science/r/project-11F3 for the duration of review; code reproducing the
MIMIC-IV-ECG numbers requires PhysioNet credentialed access and will be released alongside the de-anonymized version at camera-ready.
References
[1] David B. Geselowitz. On the theory of the electrocardiogram. Proceedings of the IEEE, 77(6):857–876, 1989. doi: 10.1109/5.43745.
[2] Robert Plonsey and Roger C. Barr. Bioelectricity: A Quantitative Approach. Springer, 3 edition, 2007. ISBN 978-0-387-48864-6.
[3] Haibo He and Edwardo A. Garcia. Learning from imbalanced data. IEEE Transactions on Knowledge and Data Engineering, 21(9):1263–1284, September 2009. ISSN 1558-2191. doi: 10.1109/TKDE.2008.239.
[4] M. Raissi, P. Perdikaris, and G.E. Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics, 378:686–707, February 2019. ISSN 00219991. doi: 10.1016/j.jcp.2018.10.045.
[5] Senwei Liang, Shixiao W. Jiang, John Harlim, and Haizhao Yang. Solving PDEs on unknown manifolds with machine learning. Applied and Computational Harmonic Analysis, 71:101652, July 2024. ISSN 1063-5203. doi: 10.1016/j.acha.2024.101652.
[6] Jun Li, Aaron D. Aguirre, Valdery Moura Junior, Jiarui Jin, Che Liu, Lanhai Zhong, Chenxi Sun, Gari Clifford, M. Brandon Westover, and Shenda Hong. An Electrocardiogram Foundation Model Built on over 10 Million Recordings. NEJM AI, 2(7), June 2025. ISSN 2836-9386. doi: 10.1056/aioa2401033.
[7] Kaden McKeen, Sameer Masood, Augustin Toma, Barry Rubin, and Bo Wang. ECG-FM: An open electrocardiogram foundation model. JAMIA Open, 8(5):ooaf122, September 2025. ISSN 2574-2531. doi:10.1093/jamiaopen/ooaf122.
[8] Ronald R. Coifman and Stéphane Lafon. Diffusion maps. Applied and Computational Harmonic Analysis, 21(1):5–30, July 2006. ISSN 10635203. doi: 10.1016/j.acha.2006.04.006.
[9] Mikhail Belkin, Partha Niyogi, and Vikas Sindhwani. Manifold regularization: A geometric framework for learning from labeled and unlabeled examples. Journal of Machine Learning Research, 7(85):2399–2434, 2006. ISSN 1533-7928.
[10] Jeff Calder, Brendan Cook, Matthew Thorpe, and Dejan Slepcev. Poisson learning: Graph based semi-supervised learning at very low label rates. In Proceedings of the 37th International Conference on Machine Learning, pages 1306–1316. PMLR, November 2020.
[11] Ethan Perez, Florian Strub, Harm De Vries, Vincent Dumoulin, and Aaron Courville. FiLM: Visual Reasoning with a General Conditioning Layer. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, April 2018. doi: 10.1609/aaai.v32i1.11671.
[12] Alistair E. W. Johnson, Lucas Bulgarelli, Lu Shen, Alvin Gayles, Ayad Shammout, Steven Horng, Tom J. Pollard, Sicheng Hao, Benjamin Moody, Brian Gow, Li-wei H. Lehman, Leo A. Celi, and Roger G. Mark. MIMIC-IV, a freely accessible electronic health record dataset. Scientific Data, 10(1):1, January 2023. ISSN 2052-4463. doi: 10.1038/s41597-022-01899-x.
[13] Ary Goldberger and Alexei Shvilkin. Goldberger's Clinical Electrocardiography: A Simplified Approach: Ninth Edition. Elsevier, 9 edition, May 2017.
[14] Philipp Von Bachmann, Daniel Gedon, Fredrik K. Gustafsson, Antônio H. Ribeiro, Erik Lampa, Stefan Gustafsson, Johan Sundström, and Thomas B. Schön. Evaluating regression and probabilistic methods for ECG-based electrolyte prediction. Scientific Reports, 14(1):15273, July 2024. ISSN 2045-2322. doi:10.1038/s41598-024-65223-w.
[15] Juan Miguel Lopez Alcaraz and Nils Strodthoff. Abnormality prediction and forecasting of laboratory values from electrocardiogram signals using multimodal deep learning. Scientific Reports, 15(1):39362, November 2025. ISSN 2045-2322. doi: 10.1038/s41598-025-26715-5.
[16] Qianxun Xu and Zuchuan Li. Partial Physics Informed Diffusion Model for Ocean Chlorophyll Concentration Reconstruction. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, October 2025.
[17] Olivier Chapelle, Bernhard Schölkopf, Alexander Zien, and Francis Bach, editors. Semi-Supervised Learning. Adaptive Computation and Machine Learning Series. MIT Press, Cambridge, MA, USA, January 2010. ISBN 978-0-262-51412-5.
[18] Mikhail Belkin and Partha Niyogi. Laplacian eigenmaps for dimensionality reduction and data representation. Neural Computation, 15(6):1373–1396, June 2003. ISSN 0899-7667. doi: 10.1162/089976603321780317.
[19] Fan R. K. Chung. Spectral Graph Theory. Number 92 in CBMS Regional Conference Series in Mathematics. American Mathematical Society, 1997. ISBN 978-0-8218-0315-8.
[20] Ulrike Von Luxburg. A tutorial on spectral clustering. Statistics and Computing, 17(4):395–416, December 2007. ISSN 0960-3174, 1573-1375. doi: 10.1007/s11222-007-9033-z.
[21] David I. Shuman, Sunil K. Narang, Pascal Frossard, Antonio Ortega, and Pierre Vandergheynst. The emerging field of signal processing on graphs: Extending high-dimensional data analysis to networks and other irregular domains. IEEE Signal Processing Magazine, 30(3):83–98, May 2013. ISSN 1053-5888. doi: 10.1109/MSP.2012.2235192.
[22] Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitliagkas, David Lopez-Paz, and Yoshua Bengio. Manifold mixup: Better representations by interpolating hidden states. In Proceedings of the 36th International Conference on Machine Learning, pages 6438–6447. PMLR, May 2019.
[23] William L. Hamilton, Rex Ying, and Jure Leskovec. Inductive representation learning on large graphs. In Advances in Neural Information Processing Systems, 2017.
[24] Benjamin Paul Chamberlain, James Rowbottom, Maria I. Gorinova, Stefan Webb, Emanuele Rossi, and Michael M. Bronstein. GRAND: Graph neural diffusion. In International Conference on Machine Learning, 2021.
[25] Xiaojin Zhu and Zoubin Ghahramani. Learning from labeled and unlabeled data with label propagation. Technical Report CMU-CALD-02-107, School of Computer Science, Carnegie Mellon University, 2002.
[26] Dengyong Zhou, Olivier Bousquet, Thomas Lal, Jason Weston, and Bernhard Schölkopf. Learning with local and global consistency. In Advances in Neural Information Processing Systems, volume 16. MIT Press, 2003.
[27] Francisco Sahli Costabal, Simone Pezzuto, and Paris Perdikaris. -PINNs: Physics-informed neural networks on complex geometries. Engineering Applications of Artificial Intelligence, 127:107324, January 2024. ISSN 0952-1976. doi: 10.1016/j.engappai.2023.107324.
[28] Yuyang Miao, Haolin Li, and Danilo Mandic. GPINN: Physics-informed neural network with graph embedding. In 2024 International Joint Conference on Neural Networks (IJCNN), pages 1–8, June 2024. doi: 10.1109/IJCNN60899.2024.10651053.
[29] Yunfeng Liao, Jiawen Guan, and Xiucheng Li. Curvature-aware graph attention for PDEs on manifolds. In Forty-Second International Conference on Machine Learning, 2025.
[30] Ahmed A. A. Elhag, Yuyang Wang, Joshua M. Susskind, and Miguel Ángel Bautista. Manifold diffusion fields. In The Twelfth International Conference on Learning Representations, 2024.
[31] N.V. Chawla, K.W. Bowyer, L.O. Hall, and W.P. Kegelmeyer. SMOTE: Synthetic Minority Over-sampling Technique. Journal of Artificial Intelligence Research, 16:321–357, June 2002. ISSN 1076-9757. doi:10.1613/jair.953.
[32] Aditya Krishna Menon, Sadeep Jayasumana, Ankit Singh Rawat, Himanshu Jain, Andreas Veit, and Sanjiv Kumar. Long-tail learning via logit adjustment. In International Conference on Learning Representations, October 2020.
[33] Hongyi Zhang, Moustapha Cissé, Yann Dauphin, and David Lopez-Paz. Mixup: Beyond empirical risk minimization. ArXiv, October 2017.
[34] Noah Hollmann, Samuel Müller, Katharina Eggensperger, and Frank Hutter. TabPFN: A transformer that solves small tabular classification problems in a second. In The Eleventh International Conference on Learning Representations, September 2022.
[35] Liudmila Prokhorenkova, Gleb Gusev, Aleksandr Vorobev, Anna Veronika Dorogush, and Andrey Gulin. CatBoost: Unbiased boosting with categorical features. In Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018.
[36] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep Residual Learning for Image Recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, Las Vegas, NV, USA, June 2016. IEEE. ISBN 978-1-4673-8851-1. doi: 10.1109/CVPR.2016.90.
[37] Rich Caruana. Multitask Learning. Machine Learning, 28(1):41–75, July 1997. ISSN 0885-6125, 1573-0565. doi: 10.1023/A:1007379606734.
[38] Brian Gow, Tom Pollard, Larry A Nathanson, Alistair Johnson, Benjamin Moody, Chrystinne Fernandes, Nathaniel Greenbaum, Jonathan W Waks, Seth Berkowitz, Dana Moukheiber, Parastou Eslami, Elizabeth Herbst, Roger Mark, and Steven Horng. MIMIC-IV-ECG - diagnostic electrocardiogram matched subset. PhysioNet, July 2023. doi: 10.13026/dp3j-2c96.
[39] A. L. Goldberger, L. A. Amaral, L. Glass, J. M. Hausdorff, P. C. Ivanov, R. G. Mark, J. E. Mietus, G. B. Moody, C. K. Peng, and H. E. Stanley. PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation, 101(23):E215–220, June 2000. ISSN 1524-4539. doi: 10.1161/01.cir.101.23.e215.
[40] Jiapu Pan and Willis J. Tompkins. A Real-Time QRS Detection Algorithm. IEEE Transactions on Biomedical Engineering, BME-32(3):230–236, March 1985. ISSN 0018-9294. doi: 10.1109/TBME.1985.325532.
[41] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32nd International Conference on Machine Learning, pages 448–456. PMLR, June 2015.
[42] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. The journal of machine learning research, 15(1):1929–1958, 2014. ISSN 1533-7928.
[43] Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pages 249–256. JMLR Workshop and Conference Proceedings, March 2010.
[44] Albert Gu, Karan Goel, and Christopher Ré. Efficiently Modeling Long Sequences with Structured State Spaces. In International Conference on Learning Representations (ICLR) 2022, pages 1–18, 2021. doi:10.48550/arXiv.2111.00396.
[45] Kaidi Cao, Colin Wei, Adrien Gaidon, Nikos Arechiga, and Tengyu Ma. Learning imbalanced datasets with label-distribution-aware margin loss. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.
[46] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dollar. Focal loss for dense object detection. 2017 IEEE International Conference on Computer Vision (ICCV), pages 2999–3007, October 2017. doi: 10.1109/ICCV.2017.324.
[47] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. On Calibration of Modern Neural Networks. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 1321–1330. PMLR, July 2017. doi: 10.48550/arXiv.1706.04599.
A Notation
Symbols used throughout the paper, consolidated for reference.
B Methods Supplement
Structural comparisons and pipeline figures referenced from Section 3.
MINN vs. classical manifold regularization.
Pipeline overview.
PINN vs. MINN structural parallel.
Table 3: Summary of notation used in Section 3.
| Symbol | Description |
|---|---|
| Input signal | |
| Auxiliary metadata vector | |
| Categorical label ( classes) | |
| Training samples, prediction tasks, embedding dimension | |
| Encoder network (parameters ) | |
| Latent embedding / metadata-fused embedding | |
| FiLM gate and shift vectors | |
| Embedding matrix / source matrix | |
| Learned source network (parameters ) | |
| -NN graph in latent space | |
| Number of nearest neighbors, kernel bandwidth | |
| Adjacency weight and degree matrices | |
| Normalized graph Laplacian | |
| Manifold residual weight, graph update period (epochs) |
Table 4: Structural comparison of classical manifold regularization and MINN. Note that the underlying PDE and the optimized penalty are distinct: classical manifold regularization solves the homogeneous Laplace equation via the Dirichlet penalty ; MINN solves the inhomogeneous Poisson equation via the squared-residual penalty . Setting in MINN recovers the homogeneous Laplace equation but with a squared-Laplacian (biharmonic) penalty, which is a different functional from the Dirichlet penalty.
| Property | Manifold Reg. [9] | MINN |
|---|---|---|
| Penalty form | (Dirichlet) | (squared residual) |
| PDE analogy | Laplace () | Poisson () |
| Source term | None (zero RHS) | Learned |
| Task dependence | No | Yes (source encodes metadata) |
| Collocation analog | No | Yes (residual at all nodes) |
| Low-label stability | Degenerates [10] | Stable (non-trivial source) |

Figure 3: Data processing pipeline. Raw 12-lead ECGs undergo R-peak detection and multi-beat segmentation, then are paired with the closest laboratory blood draw within a -hour window. Clinical metadata (demographics and active medications) are extracted and joined.
Table 5: Beat-window sensitivity analysis: Macro-F1 (mean std, 5 seeds) across input segmentation lengths . Default highlighted in bold.
| Beats per window (N) | Macro-F1 (↑) |
|---|---|
| N = 1 (single beat) | 0.54±.04 |
| N = 3 | 0.59±.03 |
| N = 5 (default) | 0.61±.02 |
| N = 8 | 0.60±.03 |
| N = 12 | 0.58±.04 |

Figure 4: Structural parallel between PINNs and MINN. MINN replaces the known PDE operator with the data-driven graph Laplacian and the known source with a learned, task-dependent source network, while preserving the operator residual formulation.
C Sensitivity Analyses
C.1 Beat-window sensitivity
C.2 Neighbor count and constraint weight sensitivity
Table 6 reports Macro-F1 across two single-axis sweeps: at fixed , and at fixed . Both sweeps are unimodal around the validation-tuned defaults (, ); deviations on either side incur modest losses, supporting the “modestly sensitive” framing in Section 5.1.
Table 6: Macro-F1 sensitivity to neighbor count (at ) and constraint weight (at ), labeled data, 5 seeds. Defaults in bold.
| k sweep (λ=0.1) | λ sweep (k=15) | ||||||
|---|---|---|---|---|---|---|---|
| k=5 | k=10 | k=15 | k=30 | λ=0.01 | λ=0.1 | λ=0.3 | λ=1.0 |
| 0.57±.04 | 0.60±.02 | 0.61±.02 | 0.59±.03 | 0.58±.03 | 0.61±.02 | 0.59±.03 | 0.55±.05 |
C.3 CNN encoder ablation
To support the claim that MINN is encoder-agnostic, we replace the ResNet-18 backbone with a simpler 4-layer 1D CNN encoder and repeat the main experiments. If MINN's advantage persists with the simpler encoder, this provides evidence that the manifold operator residual (not the encoder architecture) is the primary driver of improvement. Table 7 confirms that the manifold residual provides a consistent improvement regardless of backbone, supporting encoder-agnostic robustness.
Table 7: Macro-F1 with and without the manifold operator residual for two encoder architectures (mean std, 5 seeds).
| Encoder | w/ MINN | w/o MINN | Δ (↑) |
|---|---|---|---|
| ResNet-18 | 0.61±.02 | 0.54±.02 | +0.07 |
| 4-layer CNN | 0.55±.02 | 0.48±.02 | +0.07 |
D Dataset and Cohort Details
Per-electrolyte cohort breakdown for the MIMIC-IV-ECG protocol described in Section 4.
Table 8: Dataset statistics: recordings (unique patients) per electrolyte bin after lab matching. Not all recordings have lab results for all three electrolytes.
| Electrolyte | Bin | Train | Val | Test |
|---|---|---|---|---|
| Hypo | 2,187 (1,102) | 274 (138) | 273 (137) | |
| Normal | 8,280 (4,172) | 1,035 (522) | 1,033 (521) | |
| Hyper | 1,123 (566) | 141 (71) | 139 (70) | |
| Hypo | 1,616 (814) | 202 (102) | 201 (101) | |
| Normal | 7,465 (3,762) | 933 (470) | 932 (470) | |
| Hyper | 965 (486) | 121 (61) | 119 (60) | |
| Hypo | 1,110 (559) | 139 (70) | 138 (70) | |
| Normal | 6,898 (3,475) | 862 (434) | 862 (434) | |
| Hyper | 674 (340) | 84 (42) | 84 (42) |
E Demographic Subgroup Analysis
To probe demographic robustness within MIMIC-IV-ECG, we stratify the test set by sex (M/F), age bracket (< 50, 50–70, >70), and self-reported race/ethnicity (White, Black, Hispanic, Other), and report Macro-F1 for MINN and the strongest baseline in each electrolyte (Table 9). Across 9 strata, MINN's lead over the strongest baseline ranges from +0.04 to +0.07 Macro-F1, with no stratum exhibiting systematic depression. Standard deviation grows with shrinking stratum size (Hispanic n≈1.5k loosest). Statistical tests: Kruskal–Wallis across strata yields p > 0.1 for all three electrolytes; Cliff's δ effect sizes are small (|δ| < 0.18). These analyses do not substitute for external fairness auditing across institutions and devices, but they show that the observed MINN advantage is not concentrated in a single demographic stratum.
Table 9: Demographic subgroup analysis on MIMIC-IV-ECG test set. Macro-F1 (mean ± std, 5 seeds) for MINN, ResNet+FiLM (multimodal, no manifold; metadata-matched reference), and the strongest unimodal baseline per electrolyte.
| Stratum | n | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| MINN | RN+FiLM | best base | MINN | RN+FiLM | best base | MINN | RN+FiLM | best base | ||
| Male | ~9k | |||||||||
| Female | ~9k | |||||||||
| Age < 50 | ~5k | |||||||||
| Age 50–70 | ~7k | |||||||||
| Age > 70 | ~6k | |||||||||
| White | ~12k | |||||||||
| Black | ~3k | |||||||||
| Hispanic | ~1.5k | |||||||||
| Other | ~2k | |||||||||
F Robustness Stress Tests
Full tables for the rare-clinical-subgroup analysis and within-MIMIC distribution-shift stress tests summarized in Section 4. The subgroup analysis (Table 10) tests four clinically rare cohorts against four representative baselines spanning distinct failure modes (foundation-pretraining transfer: ECGFounder; calibration-only imbalance correction: Logit Adjustment; task-agnostic manifold smoothing: Manifold Mixup; closest direct competitor: Poisson Learning), plus a ResNet+FiLM column that isolates the manifold-operator contribution from FiLM metadata fusion. The within-MIMIC stress tests (Table 11) compare MINN against the strongest foundation-model baseline (ECGFounder) on a temporal split (anchor_year_group 2008–2016 train, 2017–2019 test) and a care-unit split (ICU train, ED test).
G Model and Hyperparameter Details
Table 12 lists all hyperparameters used in the MINN model and training procedure.
Encoder architecture. We use a 1D adaptation of ResNet-18 [36] for multi-lead ECG input. The first convolutional layer is modified to accept 12 input channels (one per lead). The final average pooling layer produces a 128-dimensional embedding.
Table 10: Subgroup stress test: Macro-F1 for underrepresented patient subgroups (mean std, 5 seeds). Best in bold. Each baseline column tests a distinct failure mode (see text). The cohort ‘Heart failure + concurrent hypoK’ comprises heart-failure patients with prior hypoK lab draw in the EHR; the test-draw label distribution remains 3-class.
| Subgroup | n | ECGFounder | Logit Adj. | Manifold Mixup | ResNet+FiLM | Poisson Learn. | MINN |
|---|---|---|---|---|---|---|---|
| K-sparing diuretics + ACEi | 142 | 0.40±.05 | 0.46±.06 | 0.43±.05 | 0.49±.05 | 0.47±.05 | 0.53±.05 |
| Age ≥85 + ≥8 medications | 238 | 0.45±.03 | 0.46±.03 | 0.45±.04 | 0.47±.04 | 0.46±.03 | 0.50±.03 |
| Dialysis patients | 487 | 0.38±.02 | 0.42±.03 | 0.41±.03 | 0.46±.03 | 0.44±.02 | 0.51±.02 |
| Heart failure + concurrent hypoK | 195 | 0.44±.04 | 0.46±.04 | 0.46±.04 | 0.48±.04 | 0.47±.04 | 0.52±.03 |
Table 11: Within-MIMIC distribution-shift stress tests: Macro-F1 (mean std, 5 seeds). In-distribution rows repeat Table 1 headlines for reference.
| Setting | Method | F1 (↑) | F1 (↑) | F1 (↑) |
|---|---|---|---|---|
| In-distribution | ECGFounder | |||
| MINN | ||||
| Temporal split (2008–2016 → 2017–2019) | ECGFounder | |||
| MINN | ||||
| Care-unit split (ICU → ED) | ECGFounder | |||
| MINN |
Table 12: Hyperparameter settings for MINN.
| Component | Hyperparameter | Value |
|---|---|---|
| Encoder (ResNet-18) | Input channels | 12 |
| Embedding dim d | 128 | |
| Dropout | 0.3 | |
| FiLM Fusion | Metadata dim p | 40 |
| Output dim | 128 | |
| Source Network | Hidden layers | 3 |
| Hidden dim | 256 | |
| Activation | ReLU | |
| Prediction Heads | Hidden layers | 1 |
| Dropout | 0.5 | |
| Graph | Neighbors k | 15 |
| Kernel bandwidth σ | Median NN dist | |
| Update freq R | 5 epochs | |
| Training | Optimizer | AdamW |
| Learning rate | ||
| LR schedule | Cosine annealing to 0 | |
| Weight decay | ||
| Batch size | 256 | |
| Epochs | 100 | |
| Loss | Manifold weight λ | 0.1 |
Source network architecture. The source network is a 3-layer MLP that takes the concatenation of the raw input signal (flat 15,360-dim for ) projected to via a single learned linear layer ( parameters; weights separate from the encoder ), and the metadata vector , keeping the source computation fully independent from the encoder output . This deliberate decoupling avoids re-coupling the operator to its source through the encoder parameters (Section 3.2); the cost is a heavy projection that discards 1-D temporal shift invariance prior to the MLP. A lightweight 1-D CNN feature extractor for the source branch is a natural variant we leave to future work. Hidden layers use ReLU activations with batch normalization [41] and dropout [42]. All weights are initialized with Xavier initialization [43]. The output dimension matches the embedding dimension .
FiLM fusion. The gating and shift parameters are single linear layers mapping from metadata dimension to embedding dimension , with no hidden layers in the FiLM module itself.
Mini-batch evaluation. We use a memory-bank scheme. The full embedding matrix and graph are recomputed every epochs from cached encoder outputs (no gradient through the bank). Within each mini-batch of size , the residual is computed for batch-center nodes using the cached neighbor embeddings (detached); gradients flow only through and at the center node. Memory complexity is for the bank plus per batch with .
Graph construction and training. The graph is built in latent space with edge weight (); the directed -NN adjacency is symmetrized as and . Because evolves, is rebuilt every epochs (sensitivity : gains only F1 at cost, within the seed noise floor of Table 1; matches the no-manifold baseline). The cross-entropy term uses inverse-frequency class weights for class imbalance; tasks are summed with equal weights. All parameters are optimized jointly via .
H Additional Experimental Results
H.1 Extended Baselines
In addition to the nine main baselines, we evaluate the following methods when computational budget permits:
• S4/S4D-ECG [44]: Structured state space model adapted for ECG time series.
• LDAM+DRW [45]: Label-distribution-aware margin loss with deferred re-weighting.
• Focal Loss [46]: Down-weights well-classified examples to focus on hard cases.
• SMOTE [31]: Synthetic minority oversampling in feature space.
• Label Propagation [25]: Classical graph-based semi-supervised method.
Table 13 reports results for the appendix baselines at labeled data.
Table 13: Appendix baseline results (Macro-F1, labeled data, mean std, 5 seeds).
| Method | () | () | () |
|---|---|---|---|
| S4/S4D-ECG | |||
| LDAM+DRW | |||
| Focal Loss | |||
| SMOTE | |||
| Label Propagation | |||
| MINN |
H.2 Additional Metrics: AUCPR and Calibration
Table 14 reports the area under the precision-recall curve (AUCPR) for the clinically important hypo and hyper classes across all three electrolytes.
Table 15 reports Expected Calibration Error (ECE [47]; lower is better) on the test set, where MINN achieves the best-calibrated predictions alongside the highest discrimination.
Table 14: Per-class AUCPR for hypo and hyper classes (mean std, 5 seeds). Best in bold.
| Method | ||||||
|---|---|---|---|---|---|---|
| Hypo () | Hyper () | Hypo () | Hyper () | Hypo () | Hyper () | |
| ECGFounder | ||||||
| Poisson Learning | ||||||
| Logit Adj. | ||||||
| MINN | ||||||
Table 15: ECE (15 bins) on test set (mean std, 5 seeds).
| Method | ECE () |
|---|---|
| ECGFounder | |
| Poisson Learning | |
| Logit Adj. | |
| MINN |
H.3 Low-Label Results for All Three Electrolytes
Table 16 extends the low-label analysis of Figure 2 to all three electrolytes, confirming that MINN's advantage over baselines grows as labeled data decreases.
Table 16: Macro-F1 at reduced labeled fractions for all three electrolytes (mean std, 5 seeds). Best in bold.
| Electrolyte | Method | Labeled fraction | |||||
|---|---|---|---|---|---|---|---|
| 1% | 5% | 10% | 25% | 50% | 100% | ||
| ECGFounder | |||||||
| Poisson Learning | |||||||
| Logit Adj. | |||||||
| MINN | |||||||
| ECGFounder | |||||||
| Poisson Learning | |||||||
| Logit Adj. | |||||||
| MINN | |||||||
| ECGFounder | |||||||
| Poisson Learning | |||||||
| Logit Adj. | |||||||
| MINN | |||||||
H.4 Statistical significance of headline comparisons
Table 17 reports paired t-test p-values for the headline MINN-vs-best-baseline comparisons referenced in Section 4. Tests are computed on per-seed Macro-F1 differences across the 5 fixed seeds (paired by seed); the same seed indices control weight initialization, data ordering, and subsampling for both compared methods.
Table 17: Paired t-test p-values for headline comparisons (5 seeds, two-sided). MINN vs. ECG-Founder for and both reject the null at ; MINN vs. Logit Adj. shown for reference.
| Comparison | Electrolyte | Mean F1 (MINN – baseline) | Paired t-test |
|---|---|---|---|
| MINN vs. ECGFounder | +0.06 | 0.003 | |
| MINN vs. ECGFounder | +0.06 | 0.012 | |
| MINN vs. Logit Adj. | +0.08 | 0.001 | |
| MINN vs. Logit Adj. | +0.07 | 0.004 |
I Implementation and Reproducibility
Code availability. The complete implementation, including training scripts, evaluation pipelines, and baseline implementations, will be made publicly available upon publication.
Data access. The MIMIC-IV [12] and MIMIC-IV-ECG [38] datasets are publicly available through PhysioNet (https://physionet.org). Access requires completion of a data use agreement and the CITI “Data or Specimens Only Research” training course. Preprocessing scripts that reproduce the exact ECG-lab pairing, multi-beat segmentation, and metadata extraction pipelines used in this work will be made publicly available alongside the code upon publication.
Asset licenses and versions. Table 18 lists the third-party datasets, model weights, and library implementations used in this work, with versions and licenses.
Table 18: Third-party assets used in this work. Versions reflect the snapshot used for reported experiments; licenses are the upstream license at the time of access.
| Asset | Type | Version | License |
|---|---|---|---|
| MIMIC-IV [12] | Dataset | 2.2 | PhysioNet credentialed (DUA) |
| MIMIC-IV-ECG [38] | Dataset | 0.3 | PhysioNet credentialed (DUA) |
| ECGFounder [6] | Model weights | v1.0 | per upstream release |
| ECG-FM [7] | Model weights | v0.1 | per upstream release |
| TabPFN [34] | Library | 0.1.x | Apache-2.0 |
| CatBoost [35] | Library | 1.2 | Apache-2.0 |
| LapRLS (reference impl.) [9] | Reproduced from paper | n/a | N/A (re-implemented) |
| Manifold Mixup (reference impl.) [22] | Reproduced from paper | n/a | MIT (upstream) |
| GraphSAGE [23] | PyG impl. | PyG 2.4 | MIT |
| GRAND [24] | Author release | v1.0 | Apache-2.0 |
| Poisson Learning [10] | Author release | v0.5 | MIT |
| PyTorch | Framework | 2.1.2 | BSD-3-Clause |
| CUDA | Toolkit | 11.8 | NVIDIA EULA |
| NumPy | Library | 1.26 | BSD-3-Clause |
| scikit-learn | Library | 1.4 | BSD-3-Clause |
Compute requirements. All experiments were conducted on a single NVIDIA A100 (40 GB). Training the full model at 100% data required approximately 4 hours. Periodic -NN graph reconstruction is the dominant non-training cost in our reference implementation, which uses an unoptimized brute-force pairwise search; production-grade approximate-NN libraries (e.g., FAISS) reduce this to seconds for , , eliminating the bottleneck without changing the algorithm.
Software environment. All experiments used Python 3.10, PyTorch 2.1.2, and CUDA 11.8 on Ubuntu 22.04.
Random seeds. All results are reported as mean standard deviation over five random seeds (0–4). Seeds control weight initialization, data shuffling, and subsampling for the low-label protocol. The same seeds are used for all methods to ensure paired comparisons.
Ethical considerations. This work uses the MIMIC-IV-ECG dataset, a de-identified dataset accessed under PhysioNet credentialed agreement [39]. No additional patient data were collected. Access requires completion of the CITI “Data or Specimens Only Research” training course and a signed data use agreement. This study is intended for research purposes and is not ready for clinical deployment; any clinical use would require prospective validation and regulatory approval.