TL;DR
NeuroPilot is an LLM-driven multi-agent system that automates the notoriously brittle end-to-end lifecycle of neuroimage processing, including data standardization, preprocessing, and quality control (QC). By digitalizing neuroimaging expertise into flexible, model-invocable skills, it compresses a traditional 2–3 month processing and training timeline into a single week while maintaining rigorous human-in-the-loop oversight.
What Problem Does This Paper Address?
Neuroimaging research relies on excellent, highly mature standalone community tools (such as fMRIPrep, FreeSurfer, and dcm2bids). However, stitching these tools together into a reliable, large-scale batch-processing pipeline is incredibly difficult.
Currently, orchestrating these workflows requires fragile, project-specific scripts that break easily across different computing environments. Furthermore, Quality Control (QC) remains highly subjective, labor-intensive, and poorly documented. When lab personnel change, institutional memory is lost, making it difficult to track down anomalous results. NeuroPilot addresses this "glue" problem by replacing rigid, manual orchestration with an intelligent, autonomous agent framework.
Methods
Instead of relying on hardcoded, static dependency graphs (like traditional workflow managers), NeuroPilot leverages agentic AI to read filesystems, run shell commands, and reason over results. The system packages neuroimaging expertise into three declarative, LLM-invocable skills:
dcm2bids-skill: Automatically inspects raw files (looking inside files for magic bytes rather than relying on fragile extensions) to handle messy real-world data and standardizes them into the Brain Imaging Data Structure (BIDS) format.neuroimage-pre-skill: Dynamically reads available modalities and routes datasets to the optimal preprocessing pipeline (e.g., automatically separating adult workflows from specialized, contrast-optimized infant pipelines).qc-agent-skill: Drives an evidence-based, semi-automated 5-stage structural QC process (Raw Image, Brainmask, Registration, Segmentation, and Surface). It automatically flags anomalies and proposes ranked repair candidates via an interactive 3-D browser dashboard.
Importantly, NeuroPilot enforces a human-in-the-loop model. The agent handles the mechanical heavy lifting, but stops to request explicit human approval for any consequential or hard-to-reverse decisions (such as deleting data or dismissing a subject). Every human interaction is permanently recorded in an append-only audit ledger to guarantee full provenance.
Datasets
The authors demonstrated NeuroPilot’s massive scalability and generalizability by deploying it across 17 distinct cohorts encompassing more than 123,000 subjects. The datasets span from infant to aging populations and cover multiple MRI modalities (structural, functional, and diffusion). Key datasets evaluated include:
- UK Biobank (~71,852 subjects)
- ABCD (11,617 subjects)
- PPMI (10,277 subjects)
- ADNI (4,122 subjects)
- EBDS (444 infant subjects; including CONTE2 and TWINS2)
Key Insights and Ideas
- Skills as Units of Capability: Rather than wiring tools into a rigid pipeline, each skill is a self-describing package containing natural-language descriptions of when it applies, reference procedures, parameterized scripts, and strict input/output checkpoints. This allows the LLM to dynamically chain actions based on context.
- Cohort-Relative QC Grading: Universal anatomical thresholds for QC do not exist because of variations in scanners and protocols. NeuroPilot solves this by dynamically grading each subject against the empirical distribution of its own cohort (e.g., flagging a subject if its registration score falls below 2 standard deviations of the cohort mean).
- Targeted Error Repair: Instead of completely discarding a failed subject or re-running an entire 12-hour pipeline, the QC agent isolates the failure stage and applies targeted fixes (like running a partial FreeSurfer surface rebuild), reducing repair times to just 2–4 hours.
Key Results
- Timeline Compression: NeuroPilot successfully compressed the traditional 2–3 month timeline required for training staff and processing complete datasets into a single week.
- Robust Conversion: The DICOM-to-BIDS conversion achieved a 96.5%–99.8% success rate across all cohorts, with 100% accuracy in small-batch pilots. Every single conversion failure was successfully traced back to corrupt source data rather than pipeline errors.
- Infant Pipeline Success: On the highly challenging infant structural-connectivity pipeline (EBDS cohort), NeuroPilot achieved a 100% (201/201) completion rate on inputs validated by the QC agent.
- Effective Automated Repairs: The automated brain-extraction fixes successfully cut the skull-strip exclusion metric by an average of 27% across the fix-cohort subjects, while surface repairs consistently improved cortical topology.
Limitations and Future Work
- LLM Misclassification Risks: While minimized by strict checkpoints, drop-checks, and human sign-off gates, LLMs can still occasionally misclassify a series or misinterpret highly ambiguous metadata.
- Screening vs. Diagnosis: The cohort-relative QC system is designed to screen for statistical outliers rather than diagnose subtle, highly localized anatomical defects, meaning a human eye is still required for final validation.
- Downstream Statistical Robustness: This study focuses primarily on pipeline execution, routing, and structural QC scale. A systematic audit of the downstream statistical robustness of the generated connectivity estimates is left for future work.
Summary updated