Sparse autoencoders mine CT scans and lab results for candidate disease markers
Glyph turns medical AI models' embeddings of 41,628 patients' records into labelled concepts, then tests which predict future disease in held-out cohorts, including at other hospitals.

Automated searches of hospital records for early signs of disease usually test only the features someone chose to measure in advance. A 2026 preprint from Stanford's MIMI group, which has not yet been peer reviewed, describes Glyph, a pipeline that tries to let the data propose its own candidates. It reads what large pretrained medical models have learned and then puts those candidates through statistical screening.
The starting point is the embedding: the long vector of numbers a foundation model (a large model pretrained on broad data) produces to summarise an input. Glyph uses three such models, one per kind of data. Merlin reads abdominal CT volumes, Qwen3-Embedding-8B reads the radiology reports, and a model the authors call Labs FM reads laboratory results. At one hospital, the Discovery Site with 14,652 patients, the team trained a sparse autoencoder for each data type. This is a small network that rewrites a dense embedding as a handful of active features out of many, so that each feature can be inspected on its own. The result was 4,285 features: 3,315 from reports, 343 from images and 627 from labs. The encoders were then frozen and applied unchanged, with no retraining or recalibration, to three held-out cohorts. These were an Internal Test set of 3,667 patients, External Site #1 with 17,224 patients, and an out-of-state External Site #2. Each surviving feature was given a text label and a code whose prefix marks its source: R for report, I for imaging, L for lab.
The outcomes were 141 disease categories built from billing codes (Phecodes), appearing one to four years after the CT scan. They were chosen because the foundation-model embeddings predicted them well. The authors tested 604,185 feature-outcome pairs against a strict multiple-testing cut-off of p ≤ 8.28×10⁻⁸. Of these, 4,463 associations passed, involving 397 concepts. Without any adjustment, 69.3% reproduced at the Internal Test site and 74.3% at External Site #1. At External Site #2 the figure was 54.7%, counting only report and imaging associations, because too few patients there had lab results.
Some hits recover known biology. A report concept for cirrhosis and varices, R85, predicted primary liver cancer at all four sites, with odds ratios ranging from 1.64 at External Site #2 to 2.55 at the Internal Test site. Others are harder to read. An imaging concept the authors could only describe as an uncharacterised hepatobiliary pattern, I87, was linked to 96 of the 141 outcomes. The authors also report that nearly half of the high-risk imaging concepts were not consistently documented in the radiologists' reports. One example is distended bowel, linked to 5 of 20 infection outcomes.
Much of the signal shrank once confounders were accounted for. The team used double machine learning, a method that uses predictive models to strip out the influence of confounding variables. They adjusted for 16 confounders: age, sex, race, BMI, alcohol use, smoking and the ten most strongly associated concepts from other data types. After this step, 1,198 of the 4,463 associations (26.8%) kept an adjusted odds ratio above 1.0 at Discovery, and I87 kept 52 of its 96. In a separate grouped analysis for dementia, a group of imaging concepts for atherosclerosis and calcification fell from an odds ratio of 2.28 to 1.41 but stayed significant. A group of report-based concepts fell from 1.61 to 0.93 and did not.
For 21 outcomes, a co-scientist agent screened 342,647 PubMed papers and assembled 411 markers from the literature. Adding each outcome's top ten Glyph concepts raised held-out AUC, a measure of how well a model ranks patients who later develop the disease above those who do not, from 0.749 to 0.774. The authors put this at a 3.34% relative gain. The gain was uneven: sepsis rose from 0.673 to 0.706, while dementia went from 0.871 to 0.870. The top Glyph concepts reproduced 64.8% of the time, against 41.2% for the top ten literature markers. Against a billing-code association study, Glyph reproduced more often, 69.3% against 49.1% at the Internal Test site. However, the billing codes yielded more significant associations overall.
The authors list several limits. Everyone in the cohort had an abdominal CT, which tilts the population towards abdominal illness. Billing codes are noisy, so some future disease may already have been present but undocumented. The analysis is retrospective and associational. The adjustment results were sensitive to the threshold used to pick confounders, and medication use and genetics were largely left out. Concept labels do not fix a precise clinical meaning, and some concepts mix several things. Each concept was measured at a single time point. The code and a server for querying the concepts with AI agents have been released.
Sparse autoencoders have appeared in braintankAI mostly as tools for looking inside AI models. One study used them to find word classes inside LLaMA-3-8B (earlier story). Another used them to rebuild an AI-text detector on features with plain-English descriptions (earlier story). Glyph points the same tool outwards, treating the features as hypotheses about patients rather than about the network.
- Paper
- Glyph: An Interpretability Engine for AI-Driven Scientific Discovery in Clinical Data
- Authors
- Robbie Holland, Ashwin Kumar, Mateus A. Esmeraldo, David Le, Andrea Fisher, Jiazhen Pan et al.
- Venue
- arXiv preprint — not yet peer reviewed · 6 November 2026
- Link
- arxiv.org/abs/2611.08922
- Index
- stacks.braintank.ai
- Code
- github.com/StanfordMIMI/Glyph
- Cite


