arXiv:2611.01394cs.LGNov 2026

Manuscript Offprint

arXiv:2611.01394

ERIA: An Instruction-Optimized Agent for Clinical EEG Reporting

Ahmed Sameh, Gayal Kuruppu, Neeraj Wagh, Bridger Brundy, Yogatheesan Varatharajah

ABSTRACT

Clinical EEG interpretation is substantially more complex than classifying short signal segments; it must assess technical quality, characterize background and behavioral states across long recordings, identify interictal and ictal abnormalities, reconcile uncertain evidence, and synthesize these findings into a clinically meaningful report. We introduce ERIA (EEG Reporting and Instruction-Optimized Agent), a locally deployable EEG interpretation framework that enables a single 27B language-model controller to analyze whole-recording EEGs by orchestrating specialized parametric and signal-processing tools. ERIA combines specialized tools for detecting background abnormality, sleep-wake states, seizure-like activity, and interictal epileptiform discharges with deterministic spectral, amplitude, symmetry, montage, and signal-quality analyses, covering multiple clinically relevant domains reflected in EEG reporting guidelines. Rather than relying on EEG-specific controller fine-tuning, a proprietary frontier model, or multi-agent orchestration, ERIA keeps the controller weights, specialist tools, and safety constraints fixed and optimizes only its natural-language analysis policy with GEPA (Genetic-Pareto), a reflective prompt optimizer, using feedback from expert-written EEG reports. Compared with the raw policy, GEPA substantially improves physician-aligned whole-recording report quality, while the resulting policy transfers to external EEG benchmarks. We evaluate performance on CerebraGloss-Bench short-segment clinical interpretation and BrainBench Foundational Analysis, where ERIA performs competitively with the models evaluated in the original benchmarks. These results show that carefully selected specialist tools and language-level policy optimization can extend the clinical and general EEG capabilities of a single locally executable model while preserving local inference, traceable tool use, and a comparatively simple deployment architecture.

1 INTRODUCTION

Expert visual review of patient data is still the standard practice for many clinical data modalities. This burden not only contributes to physician burnout but also introduces reviewer bias and errors in clinical decisions (Agarwal et al., 1998). This is especially true in neurology, where experts spend a significant amount of time visually reviewing and interpreting lengthy multi-channel time series of brain electrical activity, known as electroencephalography (EEG). EEG is a fundamental technology in neurological care, particularly in epilepsy, where it is one of the earliest tests performed due to its convenience and cost-effectiveness. However, expert EEG review is time-consuming, laborious, and error prone. As a result, there is a significant opportunity to augment the clinical EEG review process with machine learning (ML) (Tveit et al., 2023).

However, there are several challenges associated with developing a clinical-grade ML-based EEG review system. Clinical EEG interpretation is fundamentally a whole-recording reporting problem and must integrate technical quality, patient behavioral states, background activity, focal and generalized abnormalities, and an overall clinical interpretation. Established EEG reporting guidance from the American Clinical Neurophysiology Society (ACNS) reflects this breadth and emphasizes both systematic description of the recording and synthesis of the findings into a clinically meaningful interpretation (Tatum et al., 2016; Kane et al., 2017). Accurate event detection alone is therefore insufficient; evidence must be gathered across the recording and integrated into a coherent report. On the other hand, a practical clinical system must also operate under deployment constraints. Local inference can be especially attractive for sensitive clinical data because it allows institutions to keep patient information within their own infrastructure and reduces reliance on external model providers (Griot et al., 2025). This creates a practical tension: clinical EEG systems should support broad, evidence-based interpretation without requiring excessively large or complex deployment stacks.

Existing work has approached this problem from two complementary directions. The first develops EEG-language systems that produce clinical descriptions, reports, or interpretations directly from EEG signals or learned EEG representations. This direction includes report-generation systems such as EEGtoText (Biswal et al., 2019) and CELM (Pradeepkumar et al., 2026), as well as vision-language interpretation models such as CerebraGloss (Gu et al., 2026). Collectively, these approaches demonstrate increasingly capable mappings between EEG and clinical language, including long-recording report generation and fine-grained interpretation. These approaches, however, remain encoded within a fixed learned model or inference pipeline rather than an adaptive process in which a controller can actively select, combine, and revisit complementary specialist analyses. A second direction treats EEG and broader neuroscience analysis as an agentic process. Systems such as EEGAgent (Zhao et al., 2026), BrainAgent (Zhou et al., 2026b), and NS-Copilot (Liu et al., 2026) use language-model reasoning to coordinate analytical tools, pretrained models, or executable workflows, while BrainBench extends evaluation toward comprehensive instruction-conditioned EEG analysis (Zhou et al., 2026a). These approaches make evidence acquisition and multi-step analysis more flexible, but current systems typically rely on at least one of very large controllers, hosted frontier models, multi-agent coordination, or computationally heavier closed-loop execution. Moreover, whole-recording clinical report quality has not been rigorously evaluated against paired physician-authored references in this agentic setting.

Here we introduce ERIA, an EEG Reporting and Instruction-Optimized Agent, to bridge these two directions. ERIA retains the explicit evidence gathering of a tool-using agent while using a single 27B controller designed for local execution. Rather than mapping EEG representations directly into report text, the controller reasons over outputs from specialist EEG analyses and determines how those findings should be combined into a clinical interpretation. Its toolset is selected to cover the principal information categories required for clinical EEG reporting according to the ACNS guidelines (Tatum et al., 2016; Kane et al., 2017). We improve ERIA without EEG-specific fine-tuning of the controller or additional language-model agents. The controller weights, specialist tools, and safety constraints remain fixed; only the natural-language policy governing analysis and report synthesis is optimized. We use GEPA (Genetic-Pareto) to improve this policy from execution trajectories and textual feedback (Agrawal et al., 2026). Physician-authored reports provide the feedback signal, making whole-recording clinical interpretation the direct optimization target.

Experiments show that GEPA substantially improves physician-aligned whole-recording report quality over ERIA's raw policy and that the improvement transfers beyond the optimization task. The optimized policy achieves competitive performance on CerebraGloss-Bench for short-segment clinical interpretation and on BrainBench Foundational Analysis for broader EEG analysis (Gu et al., 2026; Zhou et al., 2026a). These results suggest that improving how a grounded EEG agent gathers and integrates evidence can benefit both clinical reporting and broader EEG-analysis capability. Our contributions are threefold: (1) we introduce a grounded single-controller architecture for local EEG analysis; (2) we develop a physician-report-driven approach to optimizing tool-use policy without EEG-specific controller fine-tuning; and (3) we show that the resulting policy improves both clinical EEG reporting and transfer to independent EEG benchmarks.

References (42)