Theory-Anchored Hyperbolic Oversampling for Rare Clinical Outcomes

Clinical prediction models fail most often on the patients who matter most: the rare, severe, or atypical cases that make up a small fraction of any cohort. The usual fix is to invent extra minority patients. SMOTE, the most common method, draws a straight line between two real minority patients and places a synthetic one somewhere along it. That line can pass through regions no real patient occupies, for example halfway between a severe injury caused by one mechanism and a severe injury caused by another. We propose to decide which pairs of rare patients may be blended by first placing every patient in a curved space. In a hyperbolic space (a geometry in which room grows exponentially with distance from the center, so tree-like data fit without crowding), a patient's distance from the center is fixed by an established clinical severity scale rather than learned. Their direction from the center is learned from the remaining features with a manifold approximation method, UMAP, which builds a neighbor graph and lays it out in few dimensions. Two rare patients are blended only if they are close in this space. Because they then share both a severity level and a branch, the synthetic patient stays inside a clinically coherent region.

The claim is narrow and testable. When a cohort's minority classes sit on different branches of a severity hierarchy, choosing interpolation partners in a severity-anchored hyperbolic layout produces synthetic patients that raise rare-class recall more than Euclidean manifold oversampling, hyperbolic retrieval without a theory anchor, or plain reweighting. When no such hierarchy exists, the benefit should vanish. The main test bed is traumatic brain injury outcome prediction, where an 8-level recovery scale is imbalanced and hierarchical and where a hyperbolic method has already been published.

Core Claim

Three findings in the file motivate the design. First, oversampling partners should be chosen on the data manifold rather than by straight-line distance. Manifold Distance-Based Over-Sampling Technique for Class Imbalance Learning (MDOTE) embeds data with Locally Linear Embedding, finds minority neighbors in that embedding, and interpolates in the original feature space only between verified neighbors. It beats SMOTE, ADASYN and MWMOTE on 23 UCI datasets. Its embedding, however, is flat. Second, flat embeddings discard hierarchy. Hyperbolic Representation Learning for Spatial Biology shows with conditional mutual information that Lorentzian embeddings of cell types carry hierarchical label information that Euclidean ones lack entirely (1.06 vs 0.00). It stops at analysis and never uses the geometry for prediction or rebalancing. Third, Hyperbolic Geometric Graph Representation Learning for Hierarchy-imbalance Node Classification argues that imbalance is often a mismatch across hierarchy levels, not just a count mismatch. It treats the embedding norm as depth, but only on citation and web graphs.

What none of these do is fix depth from outside the data. In existing hyperbolic clinical models, the distance from the center is whatever the exponential map or the optimizer produces. HICL-TBI projects tabular features into the Poincaré ball with a fixed curvature and retrieves neighbors for a frozen TabPFN, a pretrained transformer that classifies a table by reading labeled rows as context. Is Hyperbolic Space All You Need for Medical Anomaly Detection? learns curvature, but only as a free parameter. The theory-driven feature literature suggests a different source of depth. Psychological Forest shows that 13 theory-engineered features beat both raw inputs and the reference behavioral model (MSE×100 of 0.87 vs 0.99). Medical Knowledge-Guided Deep Learning shows that physiologically grounded transformations beat generic augmentation under extreme imbalance. We borrow that stance and let a validated clinical scale determine each patient's radius.

Research Program

Each patient has a feature vector $x_i$ and a theory score $s_i \in [0,1]$. The score comes from admission severity instruments recorded in the cohort. For TBI these are coma-scale and CT-based severity measures where available; TBI-MH103 includes quantitative CT measurements. The mapping is written down before any outcome data are examined. We compute a UMAP layout $y_i$ on the hyperboloid, starting from the open hyperbolic UMAP code released with the spatial-biology paper. We add one term that pins each point's geodesic distance from the origin $o$ to a monotone function of its score:

$$ \mathcal{L} = \mathcal{L}_{\text{UMAP}}(\{y_i\}) + \lambda \sum_i \big(d_H(o, y_i) - \rho(s_i)\big)^2 , $$

where $\mathcal{L}_{\text{UMAP}}$ is the usual cross-entropy between the high-dimensional neighbor graph and the layout, $d_H$ is hyperbolic distance, $\rho(s) = r_{\min} + (r_{\max} - r_{\min})\,s$ maps severity to radius, and $\lambda$ controls how hard the anchor binds. The neighbor graph is built from all features except those that define $s_i$. As a result, direction encodes how patients differ at a given severity, and radius encodes the severity itself.

Synthesis follows MDOTE's safety logic in the new geometry. For each minority patient we take its $k$ nearest same-class neighbors by $d_H$ in the layout. We discard partners whose theory score differs by more than a band $\delta$. We interpolate in the original feature space. Categorical features are copied from the nearer parent, and theory-derived features are recomputed from the interpolated raw inputs rather than interpolated themselves. Synthetic rows are added to the context of a frozen TabPFN, which matches the HICL-TBI setting, and separately to the training set of a gradient-boosted tree model, so that conclusions do not depend on one learner.

We also measure the mechanism directly, not only downstream accuracy. The first mechanistic measure is an invasion rate: the fraction of synthetic rows whose five nearest real neighbors in the original space are mostly of another class. This is MDOTE's failure criterion. The second is a branch-crossing rate: the fraction of synthetic rows whose parents fall in different clusters of a held-out clustering of real minority patients. A third question is whether the severity anchor makes results less sensitive to curvature, which HICL-TBI names as a limitation of its fixed-curvature design. We test this with a curvature sweep.

Baselines

The naive reference point is frozen TabPFN given the raw, imbalanced training set, with no resampling and no retrieval. On the 8-class ODC-TBI registry ($N=2545$), HICL-TBI reports this at 35.48% accuracy. Every method must show gains over it on balanced metrics, not only on accuracy.

The strongest existing method on this exact question is HICL-TBI. It performs Fréchet imputation and density-aware retrieval in the Poincaré ball and feeds the retrieved rows to frozen TabPFN. It reports 36.33% accuracy on ODC-TBI, 84.00% on the Pilot cohort ($N=102$), and 86.15% on TBI-MH103 ($N=504$) with hyperbolic imputation versus 85.06% with Euclidean nearest-neighbor imputation. We rerun it on our identical folds and use its imputation for every method so that missing-value handling is held constant. Beating it means higher macro-F1 and higher recall on the three rarest outcome levels. The gain must hold across repeated stratified cross-validation, on paired comparisons, with an accuracy loss under one point. HICL-TBI reports no macro-F1 or per-class recall; no reported result was found on Lacuna for those metrics, so we produce them ourselves.

The strongest oversampling competitor is MDOTE, reimplemented with its original Locally Linear Embedding. No reported result was found on Lacuna for MDOTE's per-dataset AUC values; the file records only that it wins a Wilcoxon test against SMOTE. SMOTE itself is included as the conventional reference.

Reweighting baselines receive equal treatment. Class-weighted gradient boosting with a threshold tuned on validation data, and TabPFN with balanced-per-class retrieved context, get the same number of hyperparameter trials on inner folds as our method. All resampling methods add the same number of synthetic rows per class and use the same TabPFN context cap.

Two ablations isolate the key ingredient. The first keeps the hyperbolic layout but frees the radius ($\lambda=0$), which tests whether the theory anchor matters beyond curvature. The second keeps the anchored radius but replaces the theory score with a random permutation of it. This tests whether the benefit comes from the clinical content of the scale or merely from imposing any radial ordering.

Why not just…?

Why not just reweight the loss or move the decision threshold on a strong learner? This is the most serious threat. With strong modern learners, reweighting often matches resampling, and nothing in the file shows otherwise for clinical tables. The class-weighted boosting and balanced-context TabPFN baselines exist to settle it. If either matches our rare-class recall on ODC-TBI within fold noise, we will report that synthesis is unnecessary there. The remaining question would then be whether the invasion and branch-crossing diagnostics still favor anchored synthesis in the small Pilot and TBI-MH103 cohorts, where reweighting has very few real rare patients to draw on.

Why not just use MDOTE or Euclidean UMAP to pick neighbors? Flat manifold verification already prevents synthetic points from entering majority regions. What it cannot prevent is crowding among peripheral branches of a hierarchy, and the zero conditional mutual information of Euclidean embeddings in the spatial-biology study suggests that this crowding discards exactly the branch information we need. The direct comparison is the branch-crossing rate under MDOTE, under Euclidean UMAP verification, and under our method. A downstream gap without a matching diagnostic gap would mean our explanation is wrong.

Why not just use HICL-TBI's hyperbolic retrieval, since it is already hyperbolic? HICL-TBI improves accuracy by under one point on ODC-TBI. Its retrieval chooses which real rows TabPFN sees but never adds rare examples, and its depth is whatever the exponential map produces. The free-radius ablation and the HICL-TBI rerun together separate three contributions: curvature, synthesis, and the theory anchor.

Why not just add the severity score as a feature? Every baseline already receives it. The score's role here is geometric, controlling which pairs may be blended. The permuted-score ablation shows whether that role carries information beyond the score's value as a predictor.

Proposed Experiments

The primary experiment runs all methods on ODC-TBI, TBI-MH103 and the Pilot TBI cohort. We use ten repeats of stratified five-fold cross-validation, with smaller fold counts on the Pilot cohort, and report macro-F1, balanced accuracy, per-class recall, accuracy (for comparison with published figures) and calibration error. Given the Pilot cohort's size, results there are treated as a variance check, not as evidence of a win.

A negative control uses a subset of the UCI datasets from the MDOTE study, where no clinical theory exists. We substitute a data-derived depth proxy and expect hyperbolic verification to match MDOTE, not beat it. A win on data with no clear hierarchy would suggest the gain comes from tuning rather than geometry.

A structure check applies the anchored layout to the NFBC1966 low-back-pain cohort from An Unsupervised Learning Approach for Multimodal Low Back Pain Stratification. There, STarT Back and ÖMPSQ psychosocial scores serve as the theory anchor. The check is whether the layout still recovers the published three subgroups, whose assignment was predictable with accuracy 0.87–0.89, when it is not asked to.

The decisive result has three parts. The proposal succeeds if anchored synthesis beats HICL-TBI, MDOTE and tuned reweighting on ODC-TBI rare-class recall, if it lowers the branch-crossing rate relative to both flat and free-radius variants, and if the permuted-score ablation erases the gain. It fails if permuting the score or dropping the anchor leaves performance unchanged. In that case the theory scale would be doing no geometric work, and the honest conclusion would be that hyperbolic neighbor selection, not clinical theory, carries whatever benefit remains.