Flamehaven LogoFlamehaven.space
back to writing
What an AI Reasoning Engine Built for Alzheimer's Metabolic Research: A Code Walkthrough

What an AI Reasoning Engine Built for Alzheimer's Metabolic Research: A Code Walkthrough

A code walkthrough of an AI reasoning engine for Alzheimer’s metabolic research, showing how literature ingestion, causal inference, and executable biomarker scaffolds generate falsifiable pre-validation hypotheses.

Series

RExSyn Nexus-BioPart 9 of 10
View all in series
Cover image for What an AI Reasoning Engine Built for Alzheimer's Metabolic Research: A Code Walkthrough
Scope & Disclosure
This post documents an output from Rexsyn Engine v0.7.8 (Run v13).
Status: Hypothesis generation stage — pre-validation.
Data used: Public literature only. No patient cohort data.
Numerical thresholds without citations are engine-generated estimates.
This is not a clinical guideline, regulatory submission, or peer-reviewed finding.

1. Thirteen Attempts. This One Actually Said Something.

The engine stopped summarizing and started interpreting

Twelve runs produced nothing worth keeping.
Not because the outputs were wrong — they were structurally coherent, mechanistically plausible, properly formatted. The problem was subtler: they were syntactically correct but semantically empty.
The kind of text that reads like a research paper but leaves no residue after you finish it.
Run thirteen was different.
The change was not more data.
It was not better prompting.
It was not stylistic polish.
The change was this:
The engine stopped summarizing and started interpreting.
Specifically, it engaged with the clinical meaningfulness debate around CLARITY-AD — not merely extracting the reported −0.45 CDR-SB delta, but reasoning about what that magnitude implies biologically if amyloid clearance is upstream of degeneration.
That interpretive shift is what made this run worth documenting.

2. Why the Amyloid Question Is Legitimate

The Amyloid Question

The amyloid cascade hypothesis has structured Alzheimer's drug development for over three decades.
From the best available trial data:
CLARITY-AD (lecanemab, n=1,795)
  • CDR-SB: −0.45 (27% slowing)
  • ARIA-E: 12.6% | ARIA-H: 17.3%
  • Statistically significant
  • Clinical meaningfulness debated (~0.5–1.0 MCID typically cited)
The statistical work is clean.
But amyloid removal does not halt neurodegeneration.
And cognitively normal individuals with high amyloid burden exist.
Independent longitudinal analyses of ADNI and related cohorts have reported strong associations between FDG hypometabolism and accelerated conversion risk, and temporal modeling studies suggest metabolic changes may precede overt amyloid positivity in some trajectories.
This is not proof of causal priority.
But it is enough to justify asking:
What if metabolic failure is not downstream — but parallel or upstream?
That is the substrate Rexsyn v0.7.8 was pointed at.

3. What Rexsyn Is

An Ai Reasoning pipeline

Rexsyn is an AI reasoning pipeline.
It is not a drug discovery platform.
It is not a biomarker validator.
It is not a clinical model.
It operates in three stages:
  1. Literature ingestion — structured extraction of mechanistic and causal claims
  1. Missing-link inference — assembling explicit causal chains across gaps
  1. Technical report output — formalized assessment with limitations stated
The goal is to evaluate whether a reasoning model can move from:
literature → structured hypothesis → testable computational scaffold
Run thirteen produced the first output with a falsifiable structure.
That is the minimum bar for science.

4. Core Causal Proposal

Core Causal Proposal

Metabolic decoupling precedes proteopathy.
Synthesized chain:
None of these links are novel individually.
The contribution is structural integration.

5. The MSI Framework

The MSI Framework

Proposed composite biomarker:
All weights (50/35/15) are inference-derived.
Proposed threshold:
This value is an engine-generated prior, not an empirical cutoff.

6. Literature Ingestion Log — Rexsyn v0.7.8

The following sources were automatically ingested during Stage 1 (structured causal extraction). Causal and mechanistic claims were parsed, weighted by citation density and mechanistic specificity, and passed to the missing-link inference stage.

Stage 1 — Literature Ingestion (Run v13)

Below is the Stage 1 ingestion list for this run. Each source was converted into structured causal and mechanistic claims before entering the missing-link inference stage.
Note: weighting is heuristic (pre-validation), not a validated scoring method.
Ingested: 11 sources → causal graph assembled → missing-link inference initiated (target question: metabolic decoupling → proteopathy temporal ordering)

6. The Code

The Executable Scaffold

What distinguishes this run from the prior twelve is alignment between:
  • conceptual hypothesis
  • executable scaffold
Not validation — but structural coherence.

1) Acylcarnitine Scoring


2) Persistent Homology on FDG-PET


3) ANLS ODE (solve_ivp, RK45)


6. The Part Most Technical Posts Skip: What’s Broken

#
Component
Weakness
1
MSI
Weights unvalidated
2
MSI
Threshold 0.38 not empirical
3
TDA
Distance metric oversimplified
4
TDA
Static PET only
5
ANLS
ATP coefficient theoretical
6
ANLS
Kinetic parameters estimated
7
Sobol
Parameter bounds inferred
8
Architecture
No cohort batching
9
Validation
No cross-validation
10
Causality
Ordering not proven
This is not a biodmarker

7. Validation Path

  1. Fit acylcarnitine decay to ADNI metabolomics
  1. Validate TDA entropy on ADNI FDG-PET
  1. Compare MSI against A/T/N framework
  1. Replace ANLS parameters with empirically derived constants
  1. Define falsification conditions for each threshold

8. Final Assessment

Final Assessment

Run thirteen produced a coherent mechanistic proposal.
That is the minimum requirement for science.
It is also all this run produced.

Rexsyn Engine v0.7.8. Hypothesis generation only. No patient data. Numerical values without citation are engine-generated estimates.
 

Share

Continue the series

View all in series

Related Reading