TopoCryptoEEG: End-to-End Encrypted Framework for Brainprint Authentication
Organizations: The authors are with the Information Engineering University, Zhengzhou 450001, China
Abstract
Brainprint authentication enables continuous identity verification, but EEG data are privacy-sensitive. Existing feature-level encrypted authentication (FLEA) schemes protect extracted features under a trusted-client assumption. We show theoretically and empirically that a compromised client with access to plaintext query features and continuous authentication scores can exactly recover a registered template after finitely many interactions. To address this risk, we propose TopoCryptoEEG, a homomorphic-encryption-based framework that encrypts preprocessed EEG data at the client and performs feature extraction, template matching, score computation, and threshold centering on ciphertexts at the server. This extends protection from extracted features to preprocessed EEG data and removes the client-side plaintext-feature interface exploited by the attack. For efficient encrypted authentication, we develop Multi-Window Topology-Aware Encoding (MWTE) and a Topographic Branch Model with Linear Fusion (TopoFuse-MLP) to preserve EEG spatial information while limiting multiplicative depth. Query-Patch Coordinate Packing (QPCP) and Lane-Preserving BSGS Evaluation (LP-BSGS) further reduce ciphertext operations. Experiments on HGD and BCICIV-2a show high authentication accuracy, with homomorphic computation taking 1-2 s on CPUs and about 14 ms on GPUs. TopoCryptoEEG achieves over 18x average speedup over the EER (IMWUT 2025) baseline, supporting practical privacy-preserving brainprint authentication.
Figures & tables
| Measure | HGD | BCICIV-2a |
| Attack instances | 91 | 40 |
| Queries per attack | 158 | 286 |
| Queries to rank 32 (successes) | 33 (91/91) | 33 (40/40) |
| Relative error at 33 queries | ||
| Mean | ||
| Maximum | ||
| Metric | HGD | BCICIV-2a |
| Total subjects | 14 | 9 |
| Calibration subjects | 7 | 4 |
| Test subjects | 7 | 5 |
| Training windows | 4480 | 2592 |
| Calibration windows | 1120 | 1152 |
| Test windows | 1120 | 1440 |
| Method | AUC (%) | EER (%) | BA (%) | TAR@ FAR=1% (%) | TAR@ FAR=5% (%) | Latency per claim (s) | RAM (GiB) |
| CryptoFace [ 11 ] | 98.04 0.41 | 4.75 0.83 | 93.94 1.93 | 86.15 6.67 | 95.26 1.30 | 1416.45 | 47 |
| EER [ 9 ] | 95.81 0.39 | 10.35 0.42 | 90.22 0.28 | 36.57 6.49 | 76.18 2.96 | 27.00 | 16.18 |
| TopoCryptoEEG (ours, ) | 99.50 0.16 | 3.15 0.56 | 96.63 0.70 | 91.61 1.86 | 97.94 0.93 | 1.616 | 13.62 |
| TopoCryptoEEG (ours, ) | 99.93 0.03 | 1.21 0.28 | 98.51 0.52 | 98.28 1.04 | 99.83 0.19 | 1.578 | 14.03 |
| Method | AUC (%) | EER (%) | BA (%) | TAR@ FAR=1% (%) | TAR@ FAR=5% (%) | Latency per claim (s) | RAM (GiB) |
| CryptoFace [ 11 ] | 69.82 1.24 | 33.48 1.63 | 62.26 1.83 | 19.60 3.51 | 36.89 3.70 | 1451.9 | 56 |
| EER [ 9 ] | 72.02 0.66 | 34.46 0.35 | 65.18 0.49 | 7.10 0.26 | 23.72 0.77 | 28.58 | 16.26 |
| TopoCryptoEEG (ours, ) | 96.21 0.11 | 9.96 0.22 | 89.66 0.24 | 52.22 2.30 | 81.00 0.70 | 1.431 | 14.69 |
| TopoCryptoEEG (ours, ) | 98.39 0.41 | 6.45 0.88 | 93.06 1.19 | 73.61 7.84 | 91.77 2.01 | 2.043 | 15.11 |
| Dataset | Method | AUC (%) | EER (%) | BA (%) | TAR@1% (%) | TAR@5% (%) |
| HGD | BrainprintNet [ 38 ] | 99.93 0.06 | 0.96 0.51 | 98.41 0.42 | 98.90 0.83 | 99.70 0.34 |
| ADN [ 39 ] | 99.77 0.44 | 1.61 2.12 | 97.80 2.95 | 94.61 10.33 | 98.44 3.21 | |
| DARN [ 40 ] | 91.96 1.46 | 16.10 1.43 | 82.07 1.52 | 38.07 2.43 | 56.70 2.42 | |
| TopoFuse-MLP (Ours) | 99.93 0.03 | 1.21 0.28 | 98.51 0.53 | 98.28 1.04 | 99.83 0.19 | |
| BCICIV-2a | BrainprintNet [ 38 ] | 91.46 0.34 | 17.84 0.45 | 82.05 0.45 | 41.69 6.62 | 60.90 1.70 |
| ADN [ 39 ] | 66.97 10.23 | 38.48 7.06 | 64.74 5.62 | 2.90 5.86 | 20.80 9.79 |
| Metric | HGD | BCICIV-2a |
| Plaintext BA (%) | 97.5 | 90.0 |
| Ciphertext BA (%) | 97.5 | 90.0 |
| Decision agreement (%) | 100 | 100 |
| Mean error | ||
| Maximum absolute error | ||
| Minimum decision margin |
| Metric | Method | HGD | BCICIV-2a |
| Mean latency (ms) | CPU (Ours) | ||
| GPU (Ours) | |||
| FLEA | 13.5 | 12.9 | |
| Memory / GPU memory (GiB) | CPU (Ours) | 14.03 | 15.11 |
| GPU (Ours) | 22.26 | 22.26 | |
| FLEA | 0.041 | 0.035 |
| Dataset | Method | AUC (%) | EER (%) | BA (%) | TAR@1% (%) | TAR@5% (%) |
| HGD | D: MWTE | 99.93 0.03 | 1.21 0.28 | 98.51 0.52 | 98.28 1.04 | 99.83 0.19 |
| C: Topo_single | 99.50 0.16 | 3.15 0.56 | 96.63 0.70 | 91.61 1.86 | 97.94 0.93 | |
| B: Stat_no_topo | 97.48 0.52 | 8.79 1.04 | 90.50 0.95 | 69.51 6.09 | 86.56 2.81 | |
| A: Raw EEG | 75.89 2.01 | 31.17 1.84 | 69.20 1.84 | 4.53 0.46 | 18.47 1.72 | |
| BCICIV-2a | D: MWTE | 98.39 0.41 | 6.45 0.88 | 93.06 1.19 | 73.61 7.84 | 91.77 2.01 |
| C: Topo_single | 96.21 0.11 | 9.96 0.22 | 89.66 0.24 | 52.22 2.30 | 81.00 0.70 |
| Configuration | Ciphertext packing | Linear transformation | Backend | Input encryption | MultiplyPlain | Rotate | Square |
| H0 | Independent patches | Naive | CPU | 12 | 3817 | 3219 | 27 |
| H1 | Independent patches | Standard BSGS | CPU | 12 | 3817 | 663 | 27 |
| H2 | QPCP | Naive | CPU | 1 | 261 | 243 | 3 |
| H3 | QPCP | LP-BSGS | CPU | 1 | 261 | 57 | 3 |
| H4 | QPCP | LP-BSGS | GPU | 1 | 261 | 57 | 3 |
| Qingyu Zeng is currently working toward the Ph.D. degree with Information Engineering University, under the supervision of Prof. Lei Sun. His research interests mainly include brain-computer interface security. |
| Lei Sun received the Ph.D. degree from Information Engineering University in 2006, where he is currently a professor. He has authored or coauthored more than 60 papers in national and international journals and conference proceedings. His research interests mainly include information system security, identity authentication, and artificial intelligence security. |
| Shuai Zhang received the M.S. degree from Information Engineering University in 2023, where he is currently working toward the Ph.D. degree under the supervision of Prof. Lei Sun. His research interests mainly include EEG decoding, biometric recognition, and unsupervised domain adaptation. |
| Ting Zhang received the M.S. degree in computer science. She is currently a Lecturer. Her research interests include LLM security, homomorphic encryption, privacy-preserving computation, and secure biometric authentication. |
| Xiuqing Mao received the master’s degree from Information Engineering University in 2005. He is currently an associate professor, and he is currently working toward the Ph.D. degree at Information Engineering University. He has authored or coauthored more than 20 papers in national and international journals and conference proceedings. His main research interests include artificial intelligence security, brain-computer interface security, and identity authentication. |
| Min Zhao is currently working toward the Ph.D. degree with Information Engineering University, supervised by Professor Lei Sun. Her research interests include brain-computer interface and identity authentication. |
| Wenle Dong is currently working toward the M.S. degree with Information Engineering University, under the supervision of Prof. Lei Sun. His research interests mainly include secure biometric authentication. |
Biometric Identification
Biometric identification matches or verifies people and animals using distinctive physical, physiological, or behavioral signals.
See all 140 papers