What it is for
This is a sophomore research project at New Mexico Tech (NMT) that utilizes an AI model as a safety layer for drone control. The model is trained on EEG data to determine whether a user's action is deterministic (high-confidence) or hesitant (low-confidence). Based on this confidence level, the system modifies drone movement to ensure hesitant actions are performed safely or canceled, while deterministic actions are executed as intended. The project evaluates three models—CSP + LDA Pipeline, EEGNet, and BIOT—on BCI Competition IV - Dataset 2a to identify the best candidate for real-time safety applications.
How to use it
- Install Python 3.11+ (version 3.12.3 recommended) and add it to your PATH.
- Clone the repository: git clone https://github.com/MichaelCreel/bci-intent-recognition.git
- Navigate to the project directory and run setup.py to configure the environment (use 'python3 setup.py' on MacOS/Linux or 'python setup.py' on Windows).
- Activate the virtual environment (MacOS/Linux: source ./bci-env/bin/activate; Windows: .\bci-env\Scripts\Activate.ps1).
- Optional (Windows): Install Git Bash and create an alias 'alias python3=python' to support bash commands found in the README.
- Run tests/env_test.py to verify that required dependencies are imported correctly.
- Run tests/moabb_test.py to ensure datasets can be loaded from MOABB.
- Run tests/full_loso.py to perform leave-one-subject-out generalization tests, generating plots for accuracy, confidence calibration, and risk coverage.
Requirements
Requires Python 3.11+, MNE-Python, Braindecode, MOABB, Numpy, Matplotlib, Pandas, Scikit-learn, AutoReject, Torch, and Transformers. CUDA-enabled PyTorch is suggested for GPU acceleration if available.
Limits and missing details
This is an academic research prototype, not a ready-to-use consumer software tool. It focuses on offline model evaluation using the BCI Competition IV - Dataset 2a and does not provide detailed instructions for full real-time hardware integration with a physical drone. Some documentation examples use bash syntax, which may require Git Bash configuration on Windows systems.
AI-organized from captured source material; not independently tested. The source has changed; this introduction awaits an update.