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 LGH=sφ(x,m) on a k-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 s=0 limit recovers the homogeneous Laplace equation LGH=0 (classical manifold regularization solves the same equation but minimizes the Dirichlet energy tr(H⊤LGH), a different penalty form). The source sφ 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 K+ Macro-F1 of 0.61 (best baseline 0.55), with consistent gains on Ca2+ and Mg2+ 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.
Figures & tables
Figure 1: Overview of the MINN architecture. The input signal is mapped to a latent embedding by the encoder hθ , 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 sϕ define the manifold operator residual ( Manifold Branch ). Dashed arrows indicate gradient flow from the two loss terms.
K +
Ca 2+
Mg 2+
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
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 .
Figure 2: (a) K + 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 ± 1 std for MINN. (b) Mean source norm ∥Si∥2 by K + class ( ± 1 std); minority classes (hypo, hyper) exhibit larger source norms than the majority class, suggesting the source compensates for label imbalance.
Variant
K + ( ↑ )
Ca 2+ ( ↑ )
Mg 2+ ( ↑ )
MINN (full)
0.61 ±.02
0.50 ±.02
0.40 ±.03
− Operator residual ( λ=0 )
0.54 ±.03
0.44 ±.03
0.35 ±.03
− Source ( sϕ=0 )
0.56 ±.02
0.46 ±.03
0.36 ±.04
− Poisson → Classical reg.
0.55 ±.03
0.45 ±.03
0.36 ±.03
− Learned source → Label-only
0.57 ±.02
0.45 ±.03
0.36 ±.03
− Latent → Logit constraint
0.56 ±.03
0.46 ±.03
0.37 ±.03
Table 2: Ablation study results (Macro-F1 ± std, 100% labeled data, 5 seeds). Best in bold .
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
Symbol
Description
x∈RD
Input signal
m∈Rp
Auxiliary metadata vector
y∈{1,…,B}
Categorical label ( B classes)
N,T,d
Training samples, prediction tasks, embedding dimension
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 LGH=0 via the Dirichlet penalty tr(H⊤LGH) ; MINN solves the inhomogeneous Poisson equation LGH=S via the squared-residual penalty ∥LGH−S∥22 . Setting S=0 in MINN recovers the homogeneous Laplace equation but with a squared-Laplacian (biharmonic) penalty, which is a different functional from the Dirichlet penalty.
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 ± 1-hour window. Clinical metadata (demographics and active medications) are extracted and joined.
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.
Beats per window ( N )
K + 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
Appendix
Table 5: Beat-window sensitivity analysis: K + Macro-F1 (mean ± std, 5 seeds) across input segmentation lengths N . Default highlighted 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
Appendix
Table 6: K + Macro-F1 sensitivity to neighbor count k (at λ=0.1 ) and constraint weight λ (at k=15 ), 100% labeled data, 5 seeds. Defaults in bold .
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
Appendix
Table 7: K + Macro-F1 with and without the manifold operator residual for two encoder architectures (mean ± std, 5 seeds).
Electrolyte
Bin
Train
Val
Test
K +
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)
Ca 2+
Hypo
1,616 (814)
202 (102)
201 (101)
Normal
7,465 (3,762)
933 (470)
932 (470)
Hyper
965 (486)
121 (61)
119 (60)
Appendix
Table 8: Dataset statistics: recordings (unique patients) per electrolyte bin after lab matching. Not all recordings have lab results for all three electrolytes.
K +
Ca 2+
Mg 2+
Stratum
n
MINN
RN+FiLM
best base
MINN
RN+FiLM
best base
MINN
RN+FiLM
best base
Male
∼9 k
0.61 ±.02
0.56 ±.03
0.55 ±.02
0.50 ±.02
0.46 ±.03
0.45 ±.03
0.40 ±.03
0.37 ±.04
0.36 ±.03
Female
∼9 k
0.61 ±.03
0.57 ±.03
0.55 ±.02
0.49 ±.03
0.46 ±.03
0.44 ±.03
0.39 ±.03
0.36 ±.04
0.35 ±.03
Age <50
∼5 k
0.62 ±.02
0.58 ±.03
0.55 ±.02
0.51 ±.03
0.47 ±.03
0.45 ±.03
0.41 ±.03
0.38 ±.04
0.36 ±.03
Age 50 – 70
∼7 k
0.61 ±.02
0.56 ±.03
0.55 ±.02
0.50 ±.02
0.46 ±.03
0.45 ±.03
0.40 ±.03
0.36 ±.04
0.36 ±.03
Age >70
∼6 k
0.59 ±.03
0.55 ±.04
0.52 ±.02
0.47 ±.03
0.43 ±.04
0.41 ±.03
0.37 ±.04
0.34 ±.05
0.32 ±.03
Appendix
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.
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
Appendix
Table 10: Subgroup stress test: K + 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 ≥1 prior hypoK lab draw in the EHR; the test-draw label distribution remains 3-class.
Setting
Method
K + F1 ( ↑ )
Ca 2+ F1 ( ↑ )
Mg 2+ F1 ( ↑ )
In-distribution
ECGFounder
0.55 ±.01
0.44 ±.03
0.35 ±.03
MINN
0.61 ±.02
0.50 ±.02
0.40 ±.03
Temporal split (2008–2016 → 2017–2019)
ECGFounder
0.51 ±.03
0.39 ±.04
0.30 ±.05
MINN
0.59 ±.04
0.48 ±.04
0.39 ±.05
Care-unit split (ICU → ED)
ECGFounder
0.47 ±.05
0.34 ±.06
0.27 ±.06
MINN
0.57 ±.04
0.46 ±.05
0.37 ±.05
Appendix
Table 11: Within-MIMIC distribution-shift stress tests: K + /Ca 2+ /Mg 2+ Macro-F1 (mean ± std, 5 seeds). In-distribution rows repeat Table 1 headlines for reference.
Table 14: Per-class AUCPR for hypo and hyper classes (mean ± std, 5 seeds). Best in bold .
Method
ECE ( ↓ )
ECGFounder
0.124 ±.012
Poisson Learning
0.116 ±.011
Logit Adj.
0.105 ±.010
MINN
0.083 ±.009
Appendix
Table 15: ECE (15 bins) on K + test set (mean ± std, 5 seeds).
Labeled fraction
Electrolyte
Method
1%
5%
10%
25%
50%
100%
K +
ECGFounder
0.29 ±.04
0.37 ±.03
0.43 ±.03
0.49 ±.02
0.53 ±.02
0.55 ±.01
Poisson Learning
0.27 ±.04
0.35 ±.03
0.40 ±.03
0.44 ±.02
0.47 ±.02
0.49 ±.03
Logit Adj.
0.25 ±.04
0.33 ±.03
0.41 ±.03
0.47 ±.02
0.51 ±.02
0.53 ±.02
MINN
0.38 ±.05
0.47 ±.03
0.52 ±.02
0.56 ±.02
0.59 ±.02
0.61 ±.02
Ca 2+
ECGFounder
0.28 ±.04
0.33 ±.03
0.36 ±.03
0.40 ±.02
0.42 ±.02
0.44 ±.03
Appendix
Table 16: Macro-F1 at reduced labeled fractions for all three electrolytes (mean ± std, 5 seeds). Best in bold .
Comparison
Electrolyte
Mean Δ F1 (MINN − baseline)
Paired t -test p
MINN vs. ECGFounder
K +
+0.06
0.003
MINN vs. ECGFounder
Ca 2+
+0.06
0.012
MINN vs. Logit Adj.
K +
+0.08
0.001
MINN vs. Logit Adj.
Ca 2+
+0.07
0.004
Appendix
Table 17: Paired t -test p -values for headline comparisons (5 seeds, two-sided). MINN vs. ECGFounder for K + and Ca 2+ both reject the null at p<0.05 ; MINN vs. Logit Adj. shown for reference.
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
Appendix
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.
Electrocardiogram classification uses machine learning to identify heart rhythms and cardiac conditions from ECG waveforms for screening, diagnosis, and monitoring.
Department of Biomedical Engineering, Eindhoven University of Technology, Eindhoven, the Netherlands · Institute for Biomedical Engineering, University and ETH Zurich, Zurich, Switzerland