Skip to main navigation Skip to search Skip to main content

Personalized rTMS treatment recommendation with retrieval-augmented LLM reasoning

Research output: Journal Publications › Journal Article (refereed) › peer-review

Abstract

Repetitive transcranial magnetic stimulation (rTMS) is an effective, non-invasive neuromodulation therapy for major depressive disorder (MDD) and treatment-resistant depression (TRD). However, current clinical practice typically relies on standardized protocols that may not adequately account for individual patient variability. To address this gap, we propose a novel, interpretable framework for personalized rTMS treatment recommendations that combines a pretrained sentence embedding model with large language model (LLM)-based reasoning in a retrieval-augmented generation (RAG) setting. Specifically, our approach leverages a pretrained sentence embedding model to encode structured patient profiles into a dense semantic representation, enabling the retrieval of clinically similar cases. These retrieved examples serve as few-shot prompts for in-context learning (ICL), enabling the LLM to reason over these examples and synthesize customized rTMS treatment parameters. Unlike previous approaches that focus solely on individual aspects of personalization, our framework integrates all key parameters (frequency, intensity, and stimulation mode) into a comprehensive recommendation. We systematically evaluated various sentence embedding models and LLMs. Among them, Bge-large-en-v1.5 for few-shot retrieval and GPT-4o-mini for reasoning achieved the highest rTMS protocol matching accuracy of 78.18% using 15 few-shot examples. Our approach is fine-tuning-free, interpretable, and adaptable to real-world, resource-poor clinical settings, providing a promising step forward in data-driven personalized neurostimulation therapy.

Original languageEnglish
Article number29
JournalBrain Informatics
Volume12
Issue number1
Early online date7 Nov 2025
DOIs
Publication statusPublished - 1 Dec 2025

Bibliographical note

Publisher Copyright:
© The Author(s) 2025.

Funding

The work described in this paper was fully supported by a grant from the Research Grants Council of the Hong Kong Special Administrative Region, China (Project No. LU HLCA/E-301/23), UGC Research Matching Grant Scheme of Hong Kong (R7035), National Natural Science Foundation of China (Grant No. 82201703), and Hunan Provincial Natural Science Foundation of China (2023JJ60085).

Keywords

  • Semantic retrieval
  • Sentence embedding
  • LLM reasoning
  • Personalized rTMS recommendation

Fingerprint

Dive into the research topics of 'Personalized rTMS treatment recommendation with retrieval-augmented LLM reasoning'. Together they form a unique fingerprint.

Cite this