PiEEG XR: A WebXR Brain-Computer Interface Platform for Neural-Adaptive Avatar Control in Mixed Reality
Preprint
- 1 June 2026
- preprint
- Published by MDPI AG in Preprints.org
Abstract
Contemporary extended reality (XR) systems deliver high-fidelity visual and spatial-audio immersion, yet the cognitive and affective states of the user remain invisible to the virtual environment. We present PiEEG XR, an open-source platform that bridges consumer-grade electroencephalography (EEG) hardware with WebXR-based mixed reality to produce real-time, neural-adaptive avatar behaviour. The system acquires multi-channel EMG at 250 Hz with 24-bit resolution via Bluetooth Low Energy 5 (BLE5), derives five canonical frequency-band power features (delta, theta, alpha, beta, gamma) using a rolling-window Fast Fourier Transform, and maps the resulting affective state estimates to VRM avatar facial expressions and interaction affordances rendered through a React Three Fiber / Three.js pipeline on the Meta Quest browser. A lightweight OSC bridge enables simultaneous streaming to social VR platforms such as VRChat. We describe the system design, the EEG-to-expression mapping heuristic, the WebXR spatial anchoring strategy, and an OSC parameter protocol. PiEEG XR represents an accessible entry point for affective computing research in immersive environments and demonstrates that production-ready neural-adaptive avatars can be deployed entirely within an open browser stack.Keywords
All Related Versions
This publication has 5 references indexed in Scilit:
- Mind-to-Face: Neural-Driven Photorealistic Avatar Synthesis via EEG DecodingarXiv, 2025
- Virtual, mixed, and augmented reality: a systematic review for immersive systems researchVirtual Reality, 2021
- Combining brain–computer interface and virtual reality for rehabilitation in neurological diseases: A narrative reviewAnnals of Physical and Rehabilitation Medicine, 2021
- Brain Dynamics During Arousal-Dependent Pleasant/Unpleasant Visual Elicitation: An Electroencephalographic Study on the Circumplex Model of AffectIEEE Transactions on Affective Computing, 2018
- Meditation states and traits: EEG, ERP, and neuroimaging studies.Psychological Bulletin, 2006