CareGraph: An Auditable Hybrid AI Framework for Evidence-Grounded Personalized Longitudinal Health Intelligence
Organizations: California, United States
Abstract
Artificial intelligence is transforming personalized healthcare, yet fragmented clinical, self reported, and wearable evidence remains difficult to interpret and trace. We present CareGraph, an auditable hybrid AI framework that converts heterogeneous records into prioritized trends, missing context indicators, bounded next steps, discussion questions, and provenance linked explanations. CareGraph organizes evidence without diagnosing, predicting outcomes, selecting treatment, or making autonomous clinical decisions. Its pipeline covers deterministic analysis, context detection, graph construction, constrained language model synthesis, evidence validation, safety controls, and release gating. Tests used synthetic cohorts of 400 patients each for development, validation, and holdout. On holdout data, a frozen ordinary least squares trend rule with a sufficiency gate achieved 0.827 accuracy, 0.837 macro F1 with a 95 percent confidence interval of 0.819 to 0.854, and 0.974 insufficient data F1. Missing context detection achieved 0.815 strict micro F1 versus 0.318 for the legacy detector. On an authored holdout benchmark, safety ruleset version 1.2 achieved 1.000 precision, 0.950 recall, and 0.974 F1. An audit requiring graph retrieval across 80 patients yielded 79 syntheses and 78 presentations without fallback; one output was blocked and one failed closed because of an invalid evidence key. Against monolithic GPT 5.6 on 56 matched patients, CareGraph was faster at 40.15 versus 49.62 seconds, shorter at 661 versus 1,163 words, and showed better exploratory lexical alignment with longitudinal targets; the baseline used fewer tokens and cited more raw evidence. Graph auditing verified provenance and deterministic retrieval; incremental graph effects on generation require paired evaluation. CareGraph offers a safety bounded foundation for intelligent personalized health systems.
Figures & tables
| Component | Logic | Input | Output | Boundary |
|---|---|---|---|---|
| Trend Agent | Deterministic numerical | Labs + scenario inventory | Trend class + sufficiency state | No clinical significance |
| Missing-Context Agent | Rule-based | Normalised patient domains + scenario | Canonical missing-context items | Scenario-conditioned benchmark |
| Conflict Resolver | Rule-based | Assembled record | Conflict state | Narrow family-history scope |
| Knowledge Graph | Deterministic transform | Patient state + upstream evidence | Nodes, edges, ranked evidence | No graph reasoning |
| Personalised Insight | Deterministic transform | Patient state + trends + context | Structured insight | Heuristic confidence |
| AI Synthesis | External LLM | Authorised evidence registry | Schema-constrained synthesis | Optional generative layer; no autonomous diagnosis or treatment |
| Step | Operation | Fail-closed condition or recorded state |
|---|---|---|
| 1 | Load the versioned patient record, manifests, prompt/configuration hashes, and required runtime flags. | Missing source, malformed record, or manifest/hash mismatch. |
| 2 | Apply the sufficiency gate, classify trends, detect scenario-conditioned missing context, and resolve supported conflicts. | Emit reason-coded insufficient state; do not silently coerce unusable measurements. |
| 3 | Assemble the patient state, construct typed graph nodes/edges, and deterministically rank top- evidence. | Abort when graph is required but unavailable; retain graph provenance and retrieval metadata. |
| 4 | Construct and the deterministic insight payload; freeze model, schema, prompt hash, and input hash. | Reject unknown evidence types or an empty authorised registry for required synthesis. |
| 5 | Generate schema-constrained synthesis, or use deterministic fallback only when fallback is permitted. | Raise on API/parse failure under --require-ai ; record fallback reason otherwise. |
| 6 | Validate patient identity, schema, evidence-key membership, and evidence completeness for every finding and action. | Any invalid key or unsupported required item stops safety and presentation. |
| Cohort | Seed | Patients | Trend labels | Missing/safety labels | Role |
|---|---|---|---|---|---|
| Development | 20260731 | 400 | 1,700 | 567 | Method/rule development |
| Validation | 20260801 | 400 | 1,700 | 587 | Selection and freeze verification |
| Held-out test | 20261802 | 400 | 1,700 | 564 | One-shot final component evaluation |
| Excluded nominal test | 20260802 | 400 | 1,700 | — | Not analysed; preview exposure |
| Safety development | Authored split | — | — | 49 examples | Ruleset development |
| Safety held-out | Locked authored split | — | — | 39 examples | One-shot safety evaluation |
| Class | Precision | Recall | F1 | Support |
|---|---|---|---|---|
| Decreasing | 0.783 | 0.863 | 0.821 | 351 |
| Increasing | 0.826 | 0.870 | 0.847 | 469 |
| Insufficient data | 0.949 | 1.000 | 0.974 | 350 |
| Stable | 0.767 | 0.651 | 0.704 | 530 |
| Detector | TP | FP | FN | Precision | Recall | Micro-F1 |
|---|---|---|---|---|---|---|
| Legacy | 177 | 371 | 387 | 0.323 | 0.314 | 0.318 |
| Version 2 | 542 | 224 | 22 | 0.708 | 0.961 | 0.815 |
| Ruleset | TP | TN | FP | FN | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| v1.1 | 2 | 19 | 0 | 18 | 1.000 | 0.100 | 0.182 |
| v1.2 | 19 | 19 | 0 | 1 | 1.000 | 0.950 | 0.974 |
| Measure | Value |
|---|---|
| Patients audited | 400 |
| Available graph-evidence items | 19,531 |
| Retrieved top-10 items | 4,000 |
| Mean nodes per patient | 46.0 |
| Mean saved edges per patient | 48.8 |
| Mean retrieval fraction | 0.207 |
| Study element | Evaluated sample | Evidence in this study | Role in research program |
|---|---|---|---|
| Trend held-out test | 1,700 labels | Frozen one-shot evaluation | Core analytical validity |
| Missing-context held-out test | 400 patients / 564 labels | Strict generator-truth evaluation | Core context-detection validity |
| Safety held-out test | 39 examples | Frozen authored benchmark | Bounded safety-rule validity |
| Graph provenance audit | 400 patients | Structural and lineage evaluation | Provenance infrastructure |
| Condition C deterministic comparison | 80 patients | Schema and key-contract evaluation | Deterministic output contract |
| 80-patient graph-required AI batch | 80 scheduled | 79 syntheses; 78 presentations | Operational reliability and failure analysis |
| Metric | Monolithic mean | CareGraph mean | Mean diff. M C | Holm | Rank-biserial |
|---|---|---|---|---|---|
| Duration (s) | 49.62 | 40.15 | +9.46 | 0.821 | |
| Input tokens | 5,172 | 10,143 | 4,971 | 1.000 | |
| Output tokens | 4,010 | 3,033 | +976 | 0.936 | |
| Total tokens | 9,182 | 13,176 | 3,994 | 1.000 | |
| Output words | 1,163 | 661 | +502 | 1.000 | |
| Findings | 4.86 | 4.41 | +0.45 | 0.794 |
| Category | Threat |
|---|---|
| Synthetic coupling | Generator scenarios and missingness may favour schema-aligned rules and do not reproduce clinical prevalence, ambiguity, or documentation practice. |
| Trend construct | The scenario-to-expected-lab inventory remains coupled to the generator schema; stable and selected biomarker results are weaker than directional classes. |
| Missing-context truth | Strict labels are scenario-conditioned and omit some plausible or contradictory states; current metrics measure agreement with generator truth rather than complete clinical relevance. |
| Safety benchmark | Only 88 authored examples were available across development and held-out sets; the benchmark has no independent expert annotation and retains one held-out treatment-plan miss. |
| Operational safety specificity | Medication-change rules matched benign documentation phrases and cross-sentence proximity; generated-output specificity requires sentence-bounded refinement. |
| Matched comparison cohort | The 56-patient final-prompt cohort represents six scenario groups and is not balanced across all eight; paired results describe this matched subset. |
Clinical Decision Support
Clinical Decision Support uses data, medical knowledge, and AI to help clinicians assess patients and choose tests, diagnoses, and treatments.
See all 242 papers