Wearable brain-computer interfaces stream scalp EEG (electrical brain activity recorded at the scalp) to a server that decodes what the user intends, such as an imagined left-hand movement. The same stream also carries a stable signature of who the user is. Person-identifying brainprints are stably embedded in EEG mindprints identified people with 98% single-day accuracy and told identical twins apart 94.87% of the time, using simple spectral features. Work on compressive sensing, meaning recording a few random linear mixtures of the sensor channels instead of all of them, has argued that a secret mixing matrix compresses and encrypts the data in one cheap step. That argument only protects against eavesdroppers on the wireless link. The server that holds the key, and that stores data it may mine years later, still receives everything, including the brainprint.
We propose to choose the sensor's mixing matrix so that the dimensions it throws away are the ones that carry identity. Compression then becomes a privacy filter as well as a bandwidth saver. A frozen pre-trained EEG foundation model is adapted to these few mixed channels with low-rank adapters, so the server decodes intent directly from the compressed measurements and never reconstructs the raw signal. In two sentences: the sensor transmits $M \ll C$ linear mixtures of its $C$ channels, chosen to keep intent-relevant directions and to discard person-identifying ones, then scrambled with a keyed rotation for the wireless link. A cheaply adapted foundation model decodes intent from those mixtures, and we measure how much better a strong re-identification attacker does on them than chance.
Core Claim
Random compressive sensing does not remove identity. A random projection approximately preserves distances between signals, so an attacker probe trained on the measurements should still re-identify users. A projection whose null space (the set of directions it maps to zero) is aligned with the between-subject variability removes the linearly identifying content before transmission. At the same compression ratio, it should cost little in task accuracy once a foundation model is adapted to it. The core prediction is a better trade-off curve between task accuracy and re-identification accuracy than random sensing, sensor-side noise addition, or no protection, at a sensor cost of one small matrix-vector multiply per sample.
Mechanism
Let $x_t \in \mathbb{R}^C$ be the EEG channel vector at time $t$. From a multi-subject pool of training subjects, estimate two covariances. $\Sigma_{task}$ is the covariance of class-conditional means within each subject, which captures intent. $\Sigma_{id}$ is the covariance of per-subject means after removing task effects, which captures the brainprint. The sensing matrix is $\Phi = Q U$. Here $U \in \mathbb{R}^{M \times C}$ is fixed and solves
$$U^\star = \arg\max_{U U^\top = I} \operatorname{tr}\!\left( (U(\Sigma_{id} + \lambda I)U^\top)^{-1} U \Sigma_{task} U^\top \right),$$
whose solution is the top $M$ generalized eigenvectors of the pair $(\Sigma_{task}, \Sigma_{id} + \lambda I)$, with $\lambda$ a ridge term. $Q \in \mathbb{R}^{M \times M}$ is an orthogonal rotation generated per session from a short chaotic seed, following the key-management logic of chaotic compressive sensing reviewed by Yuan Fang et al. and used in the BBN chaotic CS scheme. The sensor sends $y_t = \Phi x_t$. The server, which shares the seed, undoes $Q$. It then applies a frozen brainwave foundation model whose input embedding is remapped to the $M$ virtual channels, and it trains low-rank adapters in both the attention and the feed-forward layers.
Two design facts motivate this split. First, the twin study localizes identity mostly to frontal and prefrontal cortex, while motor imagery lives over sensorimotor cortex, so the two should be at least partly separable in space. Second, Are Large Brainwave Foundation Models Capable Yet? found three things relevant here. Freezing the backbone of LaBraM or NeuroGPT costs 8–10% accuracy. Rank-2 LoRA on LaBraM reaches 0.777 with about 67k trainable parameters. EEG models need adapters in both attention and feed-forward layers. That paper supplies the adaptation method. We use it on inputs the backbone was never pre-trained on, which is the main risk on the utility side.
A second stage replaces the spatial-only $U$ with one that acts on filter-bank-expanded channels, so that spectral identity cues can also be projected out. It is used only if spatial projection leaves high spectral leakage, because it raises sensor cost.
Relation to Prior Work
The compressive-sensing-as-encryption line plays a motivating role. Yushu Zhang et al. treat the measurement matrix as a symmetric key. Kryptein and Haotian Chi et al. report large energy and transmission savings at the edge. All of them assume a trusted receiver that reconstructs the full signal. We keep their cheap sensor and drop both the reconstruction and the trusted-receiver assumption.
The closest existing work is DCMG. It classifies images directly from compressed measurements and adds noise drawn from the measurement matrix's null space, so the noise vanishes in $y$ while obscuring $x$. DCMG uses the null space to hide the input from someone who lacks the matrix, and it uses small networks trained from scratch on MNIST and CIFAR-10. We do the reverse: we deliberately place identity in the null space, so the information is absent from $y$ even for a receiver that knows $\Phi$. We also decode with an adapted foundation model on EEG.
Null-LoRA constrains adapter updates to a null space of the weights. That is a statement about what the model can change, not about what the input contains. We borrow only the intuition.
MF-SCSN keeps raw EEG local and sends shallow-network features, which it reports reach 51.2% on BEETL targets. Its features are neither compressed nor tested against identity probes. Our design runs no network on the sensor.
The hyperbolic-sine chaotic BCI scheme encrypts EEG channels for the link. It does no compression, and its chaotic generator needs 29 seconds per $10^6$ bits on a CPU. We need only a seed-driven $M \times M$ rotation per session.
Joint quantization and diffusion constrains our claims. Linear compressive sensing is open to known-plaintext attacks, which recover the matrix from pairs of plain and encrypted signals. We therefore claim nothing cryptographic about $Q$ beyond per-session rekeying. The privacy claim rests on $U$, which is public by design.
Research Program
We first estimate $\Sigma_{task}$ and $\Sigma_{id}$ on training subjects pooled from the BEETL source sets and BCI Competition IV 2a. We then report how much between-subject variance survives at each $M$, compared with random projections. This step decides whether identity and intent separate linearly at all. Second, we adapt LaBraM and NeuroGPT with rank-2 to rank-16 LoRA on $y$, with a learned input embedding, and fix all hyperparameters on held-out training subjects. Third, we build the strongest attacker we can. It has full knowledge of $\Phi$. It uses a logistic regression on band power as in the twin study, and a deep convolutional probe trained on $y$ from enrolled sessions. It is tested on later sessions of the same subjects, which is how a curious server would re-identify returning users. Fourth, we compare against a learned variant in which $U$ is trained end to end with the adapters and an adversarial identity head. This tells us whether the closed-form projection leaves much on the table.
Baselines
The naive reference is LaBraM with rank-2 LoRA on raw, uncompressed EEG, the configuration for which Lee et al. report 0.777 accuracy. We rerun it on our splits to get both its task accuracy and its re-identification rate, since that paper reports no privacy measurement. It sets the utility ceiling and the leakage worst case.
As a classical anchor on BCI Competition IV 2a, FBCSP reports a mean Cohen's kappa of 0.569. Any compressed private decoder falling below this is not useful.
The key ablation is random chaotic compressive sensing at the same $M$, with the same rotation, the same adapters and the same tuning budget. This is the conventional simultaneous compression-and-encryption baseline. It differs from our method only in whether the null space is chosen. Beating it means re-identification at least 20 points lower at matched task accuracy, or task accuracy higher at matched re-identification.
The strongest competitor on the privacy question is sensor-side adversarial representation learning, in the spirit of MF-SCSN but with a gradient-reversal identity head. A small network on the device transmits features trained to hide identity. We give it the same transmitted dimension and report its on-device multiply count.
We also include sensor-side Gaussian noise at matched task accuracy. For the efficiency paradox, we include EEGNet and EEGInception trained directly on $y$; the latter reaches 0.733 mean accuracy on clear EEG per Lee et al.
No reported result was found on Lacuna for any decoder operating on compressed EEG measurements, or for re-identification from compressed EEG. Those numbers are produced here.
Why not just…?
Why not just compress conventionally and encrypt with AES? This protects the link well, and arguably better than a linear rotation. But it hands the server the full signal, which carries the brainprint and is open to retrospective mining as Gaudry et al. warn. If the server is trusted, AES plus standard compression is the right answer and our encryption layer adds nothing. Our contribution is the server-facing projection. The comparison against raw EEG with a re-identification probe shows exactly what AES leaves exposed.
Why not just use random compressive sensing, which already encrypts? Random projections roughly preserve geometry, so we expect an identity probe given $\Phi$ to succeed almost as well as on raw data. The random-sensing ablation tests this directly. If random sensing already pushes re-identification near chance, the shaping idea is unnecessary, and we would report that.
Why not just train the encoder adversarially to forget identity? This is the real threat. A nonlinear on-device encoder could beat a linear projection on the privacy trade-off. Its costs are a neural network on the sensor and leakage that is only as good as the adversary used in training. Our design has neither cost, and its linear guarantee does not depend on a particular adversary. If the adversarial encoder dominates even after charging for sensor compute, the proposal reduces to using the linear projection as a cheap first stage. The learned-$U$ variant and the matched-transmission comparison settle this.
Why not just add differential-privacy noise? Scalp EEG already has a low signal-to-noise ratio, and isotropic noise removes intent and identity alike. A projection removes identity directions selectively. The matched-utility noise baseline quantifies the gap.
Why not skip the foundation model and train EEGNet on the measurements? Given the 1.2-point margin Lee et al. found on clear EEG, this may well match us. We report it as a full baseline. Our claim does not depend on the foundation model winning, only on the projection.
Decisive Checks
The idea stands or falls on three results. First, at a compression ratio of at least three, the privacy-shaped projection must cut deep-probe re-identification on later sessions well below random sensing while staying within a few points of raw-EEG LoRA on task accuracy. Second, held-out subjects never used to estimate $\Sigma_{id}$ must show the same suppression, since otherwise the projection merely memorizes training identities. Third, the deep probe's advantage over the linear probe must stay small, since a large gap means the identity information survives nonlinearly in $y$. If the second or third check fails, the linear null-space story is wrong for EEG, and the learned encoder becomes the recommendation.
References
- Person-identifying brainprints are stably embedded in EEG mindprints
- Overview of Compressed Sensing: Sensing Model, Reconstruction Algorithm, and Its Applications
- A Chaotic Compressive Sensing Based Data Transmission Method for Sensors within BBNs
- Are Large Brainwave Foundation Models Capable Yet ? Insights from Fine-Tuning
- A Review of Compressive Sensing in Information Security Field
- Kryptein: a compressive-sensing-based encryption scheme for the internet of things
- e-SAFE: Secure, Efficient and Forensics-Enabled Access to Implantable Medical Devices
- Practical Privacy-Preserving MLaaS: When Compressive Sensing Meets Generative Networks
- Null-LoRA: Low-Rank Adaptation on Null Space
- Federated deep transfer learning for EEG decoding using multiple BCI tasks
- Secure Communication Scheme for Brain-Computer Interface Systems Based on High-Dimensional Hyperbolic Sine Chaotic System
- Joint quantization and diffusion for compressed sensing measurements of natural images
- Filter Bank Common Spatial Pattern Algorithm on BCI Competition IV Datasets 2a and 2b
- Projections and the Potential Societal Impact of the Future of Neurotechnologies