Boundary-Aware Context Grounding for A Low-Channel EEG Agent
Abstract
NeuraDock Agent combines a deterministic EEG processing engine with a language model interface to ensure accurate, hardware-aware analysis while maintaining local data security.
Large language models (LLMs) can make scientific software easier to use. However, a general model does not automatically know which measurements a particular sensor can support, which algorithms are implemented in the current software, or which conclusions are justified by a computed result. These distinctions are especially important for low-channel electroencephalography (EEG), where sparse spatial coverage and variable signal quality make plausible but unsupported interpretations easy to produce. We present NeuraDock Agent, an open-source architecture that separates a deterministic local EEG engine from a hardware-aware language layer. The numerical engine parses recordings, performs quality control, executes reviewed spectral workflows, and writes machine-readable artifacts. The LLM receives only a compact, allowlisted summary and a versioned context pack. The context describes the seven-channel hardware, reviewed workflows, result fields, implementation boundaries, scientific limits, and reference cases. Raw EEG and dense per-sample arrays remain local We evaluate the system at three levels. First, 12 recordings produced identical structured results over ten numerical repetitions, and a complete Rest/Task run produced identical result, report, and figure hashes over three repetitions. Second, request-capture and failure-injection experiments confirmed the tested data boundary and preservation of local artifacts under HTTP, malformed-output, and connection failures. Third, a boundary-awareness benchmark tested 36 ordinary and adversarial questions under four context ablations and two LLMs, yielding 288 outputs.These results support hardware- and implementation-aware grounding as a practical mechanism for calibrating what an EEG agent accepts, qualifies, or refuses; they do not establish clinical validity or a validated absolute cognitive-load index.
Community
This paper focuses on the safety and grounding layer of NeuraDock Agent: how to prevent an LLM connected to low-channel EEG software from overinterpreting noisy or limited signals.
Our architecture separates a deterministic local EEG engine from a boundary-aware language layer. Raw EEG and dense time-series data remain local, while the LLM receives only compact, allowlisted summaries and a versioned context pack that describes the hardware, implemented workflows, available result fields, and scientific limitations.
The broader goal is to build EEG agents that are useful but careful: able to explain what the current workflow supports, qualify uncertain results, and refuse unsupported interpretations.
We would welcome feedback from people working on AI agents, scientific software, biosignal analysis, LLM grounding, and human-AI interaction.
Get this paper in your agent:
hf papers read 2606.26519 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper