Focused archive of EEG subject-identification experiments using the BED dataset. This project comes from my work in the HERO research lab at UCI and ties to the Sensors 2022 publication listed below. The code is lightly curated for readability while preserving original research behavior.
- We explored whether brainwaves could be used for person identification as an alternative to traditional identifiers like passwords, IDs, face, fingerprint, or voice.
- I was drawn to this because EEG biometrics is still early-stage, with real room for new engineering and research contributions.
- This repository captures the core EEG-ID experimentation workflow, plus practical artifact handling and debugging decisions from that process.
code/train_XGBoost.py- classical BED identification baseline.code/train_4layer_neural_network.py- 4-layer PyTorch baseline.code/main.py+code/classifiers/- deep-learning runs (EEGNet/ResNet/Inception).code/load_and_preprocess_data.py- BED.matloading and preprocessing.
- Use Python 3.9+.
- Install dependencies:
python -m pip install -r requirements.txt
- Place BED feature files at:
BED/Features/Identification/SPEC/SPEC_rest_closed.mat(required for default run)BED/Features/Identification/SPEC/SPEC_rest_open.matandBED/Features/Identification/SPEC/SPEC_image.mat(only needed if changing run mode)
- From repo root, run:
python code/train_XGBoost.py
- Outputs are written to:
saved_datasets/XGBoost/<timestamp>/saved_datasets/model_weights_XGBoost.pkl
how_i_detect_and_remove_eeg_artifacts.pdf- artifact detection/removal approach and rationale.validation_loss_paradox.pdf- notes on validation loss vs. accuracy behavior.
- Dataset files are external and not included in this repository.
- Environment versions are not pinned to a historical lockfile.
- Some scripts retain legacy module naming from the original archive by design.
- Project paper: https://doi.org/10.3390/s22239547
- BED dataset paper (data source): https://doi.org/10.1109/JIOT.2021.3061727
- BED dataset record (data source): https://doi.org/10.5281/zenodo.4309471
APA: Benomar, M., Cao, S., Vishwanath, M., Vo, K., & Cao, H. (2022). Investigation of EEG-Based Biometric Identification Using State-of-the-Art Neural Architectures on a Real-Time Raspberry Pi-Based System. Sensors, 22(23), 9547. https://doi.org/10.3390/s22239547
If this repository is useful in your work, please cite:
@article{benomar2022investigation,
title={Investigation of EEG-Based Biometric Identification Using State-of-the-Art Neural Architectures on a Real-Time Raspberry Pi-Based System},
author={Benomar, M. and Cao, S. and Vishwanath, M. and Vo, K. and Cao, H.},
journal={Sensors},
volume={22},
number={23},
pages={9547},
year={2022},
doi={10.3390/s22239547}
}Archival research code; reproducibility may require version pinning and local data setup.