Preprint
Article

This version is not peer-reviewed.

PiEEG XR: A WebXR Brain-Computer Interface Platform for Neural-Adaptive Avatar Control in Mixed Reality

Submitted:

29 May 2026

Posted:

01 June 2026

You are already at the latest version

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: 
;  ;  ;  ;  ;  ;  ;  ;  
Subject: 
Engineering  -   Other
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated