{
  "abstract": "Objective To develop and evaluate Chain-of-Thought Outcome Prediction Engine (COPE), a reasoning-enhanced large language model, for predicting 90-day functional outcomes after acute ischaemic stroke (AIS) from unstructured clinical notes.Methods We included 464 patients with AIS who had discharge summaries and 90-day modified Rankin Scale (mRS) outcomes. COPE uses a two-step chain-of-thought (CoT) framework based on sequential open-source models (LLaMA-3-8B): the first generates intermediate clinical reasoning and the second outputs an mRS prediction. We compared COPE’s performance with GPT-4.1, ClinicalBERT, a structured variable-based machine learning model (XGBoost) and a single-step large language model (LLM) without CoT. Performance was evaluated using mean absolute error (MAE), accuracy within ±1 mRS point (±1 ACC) and exact accuracy (ACC).Results COPE achieved an MAE of 1.01 (95% CI 0.92 to 1.11), ±1 ACC of 74.4% (95% CI 69.9% to 78.8%) and ACC of 32.8% (95% CI 28.0% to 37.6%), comparable to GPT-4.1 (MAE, 1.00 (95% CI 0.90 to 1.09); ±1 ACC, 77.9% (95% CI 73.7% to 82.0%); ACC, 32.5% (95% CI 28.0% to 37.4%); p=0.72, 0.11 and 0.96). COPE demonstrated performance comparable to a strong structured-data baseline using XGBoost (MAE, 1.03 (95% CI 0.93 to 1.13); ±1 ACC, 73.9% (95% CI 69.4% to 78.5%); ACC, 33.3% (95% CI 28.5% to 38.2%); p=0.77, 0.87 and 0.89), and outperformed ClinicalBERT and the single-step LLM. Subgroup analyses showed consistent performance across sex and age, with higher error among older patients, those undergoing thrombectomy and those with longer summaries.Conclusions COPE, a reasoning-enhanced framework using lightweight, open-source LLMs, achieved performance comparable to a proprietary model and to strong traditional baselines while operating without model retraining or manual feature engineering. It offers an accurate and privacy-preserving solution for outcome prediction from unstructured clinical text.",
  "authors": [
    {
      "affiliations": [
        "Department of Radiology, Stanford University, Stanford, California, USA"
      ],
      "name": "Yongkai Liu"
    },
    {
      "affiliations": [
        "Department of Radiology, Stanford University, Stanford, California, USA"
      ],
      "name": "Helena Feng"
    },
    {
      "affiliations": [
        "Department of Radiology, Stanford University, Stanford, California, USA"
      ],
      "name": "Bin Jiang"
    },
    {
      "affiliations": [
        "Department of Radiology, Stanford University, Stanford, California, USA"
      ],
      "name": "Yixin Wang"
    },
    {
      "affiliations": [
        "Department of Neuroradiology, University of Texas MD Anderson Center, Houston, Texas, USA"
      ],
      "name": "Max Wintermark"
    },
    {
      "affiliations": [
        "UCLA, Los Angeles, California, USA"
      ],
      "name": "David Liebeskind"
    },
    {
      "affiliations": [
        "Department of Radiology, Stanford University, Stanford, California, USA"
      ],
      "name": "Michael Moseley"
    },
    {
      "affiliations": [
        "Department of Neurology, Stanford University, Stanford, California, USA"
      ],
      "name": "Maarten Lansberg"
    },
    {
      "affiliations": [
        "Department of Neurology, Stanford University, Stanford, California, USA"
      ],
      "name": "Gregory Albers"
    },
    {
      "affiliations": [
        "Department of Radiology, Stanford University, Stanford, California, USA"
      ],
      "name": "Jeremy Heit"
    },
    {
      "affiliations": [
        "Department of Radiology, Stanford University, Stanford, California, USA"
      ],
      "name": "Greg Zaharchuk"
    }
  ],
  "title": "COPE: Chain-of-Thought Prediction Engine for open-source large language model-based stroke outcome prediction from clinical notes",
  "uid": "92ed6afd-a03a-5f59-87f9-c9ab360cf993"
}
