arXiv:2609.01971cs.CLSep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.01971

NS-Copilot: An LLM-Driven Agent System for Autonomous Neuroscience Analysis

Wuche Liu, Yiran Qiao, Linlin Hou, Rui Yang, Shusen Pu, Song Wang, Jing Ma

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

AI is rapidly advancing neuroscience, yet many laboratories fail to fully unleash its potential due to significant interdisciplinary barriers. While pre-trained neural models for physiological data are progressing quickly, their heterogeneous architectures and modality-specific constraints hinder systematic integration, selection, and evaluation. Despite recent advances in large language model (LLM)-based agent systems for intelligent scientific applications, existing approaches often still lack the domain expertise required to effectively select and coordinate diverse neuroscience pre-trained models and handle unique data types in this domain. We present NS-Copilot, an LLM-driven multi-agent system for neuroscience analysis that autonomously supports end-to-end workflows for diverse professional tasks. It unifies domain-specific pre-trained models and supports key neuroscience modalities, including EEG and extracellular spike data, through a natural-language interface. Given raw data and a task description, NS-Copilot orchestrates agents with specialized roles for planning, adaptive control, code generation, and result synthesis, enabling analysis without dataset-specific heuristics. We evaluate NS-Copilot on neuroscience benchmarks spanning Alzheimer's disease, Parkinson's disease, and working memory spike decoding. Across 8 trials per task, the system consistently outperforms strong baselines on the primary metric, demonstrating the ability of NS-Copilot for effective and scalable neuroscience analysis.

1 Introduction

Although AI is driving rapid progress in neuroscience, substantial interdisciplinary barriers still limit the field's ability to fully realize its potential. Pre-trained neural models for physiological data have advanced quickly (Jiang et al., 2024; Ouahidi et al., 2025; Ye et al., 2025; Azabou et al., 2023), but their heterogeneous architectures and modality-

specific constraints make systematic integration, model selection, and rigorous evaluation challenging (Xiong et al., 2026; Kastrati et al., 2025). Meanwhile, despite recent progress in both scientific and general-purpose LLM-based agent systems (Shen et al., 2023; Huang et al., 2026), most primarily rely on code generation or generic data analysis and machine learning toolkits which are often ill-suited for domain-specific applications, and lack the domain expertise needed to effectively select and coordinate diverse pre-trained neuroscience models and handle highly specialized data types. This gap highlights the need for an autonomous system that can support end-to-end neuroscience analysis workflows.

Despite its importance, this problem still presents three core challenges. First, bridging the interface gap between raw data and model-specific input requirements. Many pre-trained neuroscience models expect data in a highly specific and domain-dependent format, which includes particular sampling rates, channel layouts, and tensor shapes. This strict requirement reflects the deep architectural heterogeneity across the ecosystem. Preparing raw recordings to satisfy these stringent constraints requires an extremely deep understanding of both the underlying dataset structure and the target model's preprocessing pipeline, posing a prohibitive barrier for non-expert users. Second, selecting the optimal method or model for a specific neuroscience dataset and task. The ideal choice depends on a complex interplay of multiple factors: data modality (e.g., EEG vs. extracellular spikes), channel configuration, recording paradigm, and specific classification objectives. Since no single pre-trained architecture dominates across all conditions, the choice must be made per dataset. General-purpose AutoML systems (Erickson et al., 2020) do not search over domain-specific pre-trained models, and EEG benchmarks (Xiong et al., 2026) standardize evaluation but require man-ual per-model configuration. Third, adaptively optimizing the analytical workflow based on execution outcomes. Even when a suitable model is selected and the data is correctly formatted, the generated pipeline may yield suboptimal performance due to misaligned hyperparameters, ineffective feature engineering, or flawed evaluation strategies. Recovering from such failures requires conducting a diagnosis of the root cause and determining an optimization strategy to adaptively adjust the workflow, going beyond the code-level error correction addressed by existing self-repair methods (Chen et al., 2024; Shinn et al., 2023).

We propose NS-Copilot, an autonomous LLM-driven agent system for neuroscience analysis, which addresses the three aforementioned challenges through a unified pipeline, requiring only raw neural data and a natural-language task description. NS-Copilot integrates multiple pre-trained neuroscience models in different applications. To bridge the interface gap, a Coder agent automatically generates data preprocessing and model invocation code at runtime based on declarative tool specifications (which describe the input requirements of each model) inside our system. To resolve model selection, a Planner agent automatically analyzes user input and dataset metadata (modality, channel count, sampling rate, and class distribution), determines appropriate evaluation metrics, and constructs a dynamically prioritized queue of compatible models for selection. To achieve adaptive optimization, a Controller agent analyzes execution metrics, diagnoses the root causes of sub-optimal results, and dynamically routes the system toward targeted code patching (modify) or full strategy resynthesis by the Planner (replan). In the end, an Interpreter summarizes the final evaluation results.

In summary, our core contributions are as follows:

  • Unified pre-trained model orchestration framework. We propose NS-Copilot, a novel LLM-driven agent system that first integrates nine representative pre-trained models across different neuroscience data modalities and tasks, achieving fully automated neuroscience analysis without dataset-specific heuristics.

  • Automated model selection. We design the Auto Model Selection protocol, in which the Planner in NS-Copilot automatically analyzes dataset characteristics and user intention to determine the primary evaluation metric and construct a prioritized queue of compatible models, with early stopping triggered once a candidate surpasses a performance threshold.

  • Closed-loop diagnosis with explicit modify-vs-replan routing. We design an autonomous Controller that diagnoses suboptimal execution outcomes and explicitly routes between targeted code patching (modify) and full strategy resynthesis (replan), enabling iterative optimization without human intervention.

  • Empirical validation across diverse neural paradigms. We evaluate NS-Copilot on three benchmarks encompassing Alzheimer's disease, Parkinson's disease, and working memory decoding, where it outperforms every baseline on the primary metric of each.