Biological age is a single number meant to say how worn a body is compared with others of the same calendar age. It is usually built from blood tests, DNA methylation, or wearable activity. A newer and cheaper idea is to read it from clinical notes with a language model. Every hospital already has these notes, and they describe frailty, comorbidity, and function in ways lab panels miss. The trouble is that notes are written, not measured. Sicker patients get longer notes, more notes, and more follow-up visits. The patients whose records span many years are, by construction, the ones who kept coming back alive. A model that reads a long, concatenated record may also weight text by where it sits in the input rather than by when it was written. A text-derived clock could therefore predict death very well while mostly counting pages, reacting to input order, and learning from survivors.
This proposal builds such a clock on MIMIC-IV, a public hospital database with notes, labs, and linked death dates. It asks one question: how much of its prognostic signal survives once three non-physiological routes are closed? The first route is documentation intensity, a linguistic confounder. The second is presentation position, an order artifact. The third is selective return to hospital, an attrition artifact. The contribution is a clock trained to close these routes, together with a set of counterfactual tests that separate "measures the patient" from "measures the paperwork." An independent lab-based clock and mortality serve as the external references.
Core Claim
A clinical-note clock should meet three conditions. Its age should not rise when clinically empty text is added. Its age should not change when the same dated notes are presented in a different order. Its within-patient trajectory should not look flatter than it really is merely because frail patients stop reappearing.
We claim that a naive embedding-plus-survival-head clock fails all three measurably. We further claim that one combined change fixes this at small cost in mortality discrimination:
- project documentation-intensity directions out of a reduced text representation;
- train with date-preserving order augmentation;
- calibrate with inverse-probability-of-return weights.
The newest part is treating documentation intensity as the confounder of interest. It is simultaneously a style feature of the text and a consequence of informative observation. We also separate position in the input from time in the patient's life. Positional-bias work has never had to make that distinction, because the order of options on a quiz carries no meaning, whereas the order of hospital admissions does.
What Prior Work Gives and Leaves Open
The clock design borrows from existing aging clocks.
- OMICmAge trains EMRAge, a Cox mortality model on 19 routine labs in about 31,000 biobank participants. It then distills that model into methylation. It uses no narrative text, and it names missing EMR data as a limitation.
- MotionAge maps a predicted mortality hazard back to an "age" through sex-specific inverse calibration. It also down-weights unreliable sensor epochs by wear coverage instead of imputing them. We reuse both ideas. Its LLMAge comparison, which prompts an LLM on clinical features, is the nearest text-side clock in the file, but it was never probed for confounding or order sensitivity.
The deconfounding tools come from causal text work, which motivates the proposal and supplies part of the method.
- Isolated Causal Effects of Natural Language shows two things. Dense embeddings capture the outcome well but leave almost no comparable texts: every document is unique. SVD reduction restores that overlap without losing much of the outcome signal. We adopt the reduction step.
- Causal Effects of Linguistic Properties removes metadata signals with a gradient-reversal adversary. It is our alternative removal mechanism.
- Lin et al. assume all confounding is visible in the text. Here the key confounder, how intensely a patient is documented, is visible in the text and is produced by an external observation process. That combination is why an attrition correction is needed alongside the text correction.
Two pieces of clinical-note modeling are directly relevant.
- Causal Representation Learning from Multimodal EHRs under Non-Random Modality Missingness shows that whether a note or test exists at all is informative: patients with complete modalities are sicker. It corrects predictions with a cross-fitted rectifier. It works at the level of presence versus absence, not the content or volume of the text, and it targets acute outcomes rather than an age measure. We extend its logic to volume and to repeat visits.
- ClinicalMamba reads up to 16k tokens of concatenated notes and never tests whether ordering changes its representation.
- SNOW extracts note features for mortality prediction without survival or style adjustment.
For order effects, FairJudge trains judges to be order- and length-invariant using preference pairs of flipped presentations. We borrow the flipped-presentation training signal. We restrict it to reorderings that do not change the time information in the record.
For truncation, Proximal Survival Analysis for Dependent Left Truncation handles cohorts where people are observed only if they survived to entry. It uses proxy variables for the unmeasured confounding. It is formulated on low-dimensional covariates, and we use it only as a sensitivity analysis on the final scalar age, not inside the text model.
Research Program
Cohort and targets. Adults in MIMIC-IV with at least one discharge summary form the cohort. Each patient's record is the set of their dated notes up to an index admission. The primary target is all-cause mortality within one year of index discharge, using MIMIC-IV's linked death dates.
Lab-based reference clock. In parallel, we fit a Cox model on routine labs from the same admissions, in the spirit of EMRAge. It cannot be an exact replication, because the lab panel differs. This clock is never used in training the text clock. Its role is to act as an independent physiological reference: a text age that tracks the lab age after removing paperwork effects is evidence that it measures physiology.
Text clock pipeline. Notes are encoded by a clinical encoder. Each note block carries an explicit date header. Block embeddings are pooled with weights learned over time since index, following MotionAge's masked pooling, rather than weights over input position. The pooled vector is SVD-reduced to restore overlap.
Removing documentation intensity. We define a documentation-intensity vector per patient: note count, total tokens, the fraction of the text that is templated boilerplate, and the number of distinct authors. We remove its linear signature from the reduced representation by null-space projection. As an ablation, we remove it adversarially with gradient reversal.
Order augmentation. During training, each record is presented under several permutations of its admission blocks with dates held fixed. A consistency penalty is added on the predicted log-hazard across permutations. This penalty is the FairJudge flipped-order idea, restated as a regression constraint.
Age calibration. The log-hazard is mapped to age through sex-specific inverse calibration against chronological age.
Attrition weighting. A patient's text-age trajectory can only be estimated if they are readmitted. We fit a model predicting readmission within the study window from index-admission labs, text age, and demographics. Trajectory estimates use inverse-probability-of-return weights, which assumes return depends only on those observed quantities. Because return is plausibly driven by unmeasured health, we add two further analyses. The first is a pattern-mixture sensitivity analysis that tilts the unobserved non-returners' trajectories by a range of assumed values. The second is a proximal analysis in the style of Wang, Ying and Xu. It uses the count of prior outpatient-type notes as a proxy for unmeasured health-seeking. It is secondary and reported only if the proxy conditions are defensible.
Baselines
Chronological age. The naive reference point is chronological age in a Cox model for one-year mortality. Every clock must beat it in concordance to be worth discussing.
Lab-based clock. This is the strongest structured competitor. It is fit on the identical patients and splits with the same Cox tuning budget. EMRAge's reported mortality hazard ratio is 4.53 versus 3.95 for PhenoAge in the MGB discovery set (OMICmAge), which suggests such clocks are hard to beat. That figure comes from a different cohort and lab panel, so it is context, not a target.
Naive text clock. This is the strongest text competitor and the thing we expect to be flattering but wrong. It has the same encoder, pooling, and Cox head, with no projection, no order augmentation, and no weights. Reference numbers on nearby tasks exist but are not comparable to our target. MotionAge-FRC reports a C-index of 0.848 and AUROC of 0.852 for mortality in NHANES participants aged 40+ (MotionAge). No reported result was found on Lacuna for any note-derived biological age clock on MIMIC-IV one-year mortality. No numerical result was found on Lacuna for LLMAge either.
Zero-shot LLM-age prompt. An LLMAge-style baseline prompts an open LLM with the same dated record to estimate biological age. It is run under chronological, reverse, and shuffled presentation.
Fairness of comparison. All learned models share patient-level train/validation/test splits, the same hyperparameter search budget, and the same encoder checkpoint.
Ablations. These isolate each ingredient: the projection alone, order augmentation alone, and weighting alone, plus the full model.
What counts as success. Beating the naive text clock does not mean higher concordance; we expect a small concordance drop. It means all of the following:
- a padding response indistinguishable from zero;
- a permutation spread well below one year of predicted age;
- retained mortality concordance within intensity strata;
- higher partial correlation with the lab clock after conditioning on documentation intensity.
The full model must also add discrimination on top of the lab clock. Otherwise the text is contributing nothing physiological.
Why not just…?
Why not just add note count and length as covariates in the survival model? This is the most serious alternative, and it may well work for the population-level hazard ratio. It does not repair the individual age. Two patients with identical physiology but different documentation still receive different text ages. Only the downstream regression is adjusted, and a clock is used precisely as a per-person number. The covariate-adjusted naive clock is included as its own baseline, and the padding test settles the question directly. If the covariate-adjusted clock's within-stratum mortality concordance and its lab-clock agreement match the projected clock's, we will report that the simple fix suffices for prognosis. In that case the proposal's claim narrows to the per-person age and trajectory measures.
Why not just average predictions over several orderings at inference? Permutation averaging, the circular-evaluation idea, removes order sensitivity by brute force. Its costs are two. It multiplies inference cost by the number of permutations. It also averages over biased readings instead of producing one unbiased reading. We run it with eight permutations as a baseline. If it matches the trained model's spread and concordance, order augmentation adds only a speed benefit and we will say so.
Why not just use the lab clock and ignore notes? If text adds nothing beyond labs once paperwork effects are removed, that is the answer and a useful negative result. The test is incremental concordance of the deconfounded text age in a Cox model that already contains the lab age and chronological age. Notes carry frailty, cognition, and social information that no lab panel holds, so we expect a gain. But the experiment is designed so that no gain is an interpretable outcome.
Why not just impute the missing follow-up with standard chained-equations imputation? That assumes return to hospital is random given observed covariates. The file's evidence from CRL-MMNAR is that clinical observation is driven by severity. The pattern-mixture analysis shows how much conclusions move under departures from that assumption. Imputation is run as a comparison arm.
Proposed Experiments
Padding counterfactual (documentation intensity). We insert clinically empty material into held-out records: duplicated normal review-of-systems templates and repeated medication-reconciliation boilerplate. The measured quantity is the change in predicted age. A naive clock that gains years from boilerplate is measuring paperwork.
Intensity-stratified validation. Within deciles of the documentation-intensity vector, we report mortality concordance and the partial correlation with the lab clock.
Semi-synthetic check. We regenerate synthetic outcomes as a known function of the lab clock plus a planted dependence on note length. This checks whether each method recovers the lab-only effect. It mirrors the semi-synthetic design of Lin et al.
Date-fixed permutation test (position versus time). For each test patient, we present the admission blocks chronologically, reverse-chronologically, and in random orders, with date headers unchanged. The primary statistic is the per-patient standard deviation of predicted age across presentations. We also run a contrast test that keeps order but corrupts the dates. A model that reads time correctly should change its prediction when dates move, and should not change it when only positions move.
Attrition test (trajectory). Among patients with two or more admissions, we estimate the slope of text age against calendar time. We compare three estimates: unweighted, inverse-probability-weighted, and under the pattern-mixture range. The hypothesis is that unweighted slopes are flatter, especially at older ages. This would be the survivor artifact documented in longitudinal cohorts.
External check. We refit in the eICU database only for the cross-sectional parts, since its linkage does not support the trajectory test. This tests whether the paperwork effect and its fix transfer across 208 hospitals with different documentation cultures.
Decisive outcome. The proposal succeeds if two things hold. The naive text clock shows a large padding response, a large permutation spread, and flattened trajectories. The full model removes all three while retaining discrimination beyond the lab clock. It fails, informatively, if either the covariate-adjusted or permutation-averaged baseline achieves the same.
References
- OMICmAge quantifies biological age by integrating multi-omics with electronic medical records
- MotionAge: A Deep Learning Framework for Biological Age Prediction from Wearable Activity
- Isolated Causal Effects of Natural Language
- Causal Effects of Linguistic Properties
- Causal Representation Learning from Multimodal EHRs under Non-Random Modality Missingness
- ClinicalMamba: A Generative Clinical Language Model on Longitudinal Clinical Notes
- Agent-Based Feature Generation from Clinical Notes for Outcome Prediction
- FairJudge : An Adaptive, Debiased, and Consistent LLM-as-a-Judge
- Proximal Survival Analysis for Dependent Left Truncation