Personalized rTMS treatment recommendation with retrieval-augmented LLM reasoning
Open Access
- 7 November 2025
- journal article
- research article
- Published by Springer Nature in Brain Informatics
- Vol. 12 (1) , 1-12
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.Keywords
Funding Information
- Haoran Xie (HLCA/E/301/23)
- Fu Lee Wang (R7035)
- Yanmei Shen (82201703)
This publication has 38 references indexed in Scilit:
- EEG microstate as a biomarker of personalized transcranial magnetic stimulation treatment on anhedonia in depressionBehavioural Brain Research, 2025
- Should rTMS be considered a first-line treatment for major depressive episodes in adults?Clinical Neurophysiology, 2024
- Deep transcranial magnetic stimulation for treatment-resistant depression: A systematic review and meta-analysis of randomized controlled studiesAsian Journal of Psychiatry, 2024
- ECNU-LLM@CHIP-PromptCBLUE: Prompt Optimization and In-Context Learning for Chinese Medical Tasks2024
- Leveraging Large Language Models for Decision Support in Personalized OncologyJAMA Network Open, 2023
- Depression and suicide2022
- Neurophysiological effects of repetitive transcranial magnetic stimulation (rTMS) in treatment resistant depressionClinical Neurophysiology, 2021
- Evidence-based guidelines on the therapeutic use of repetitive transcranial magnetic stimulation (rTMS)Clinical Neurophysiology, 2014
- Safety, ethical considerations, and application guidelines for the use of transcranial magnetic stimulation in clinical practice and researchClinical Neurophysiology, 2009
- Efficacy and Safety of Transcranial Magnetic Stimulation in the Acute Treatment of Major Depression: A Multisite Randomized Controlled TrialBiological Psychiatry, 2007