Downloads · 30 days
0
Neurazum/bai-Mind-64
bai-Mind-64 is a text generation model from Neurazum. Use it when you need the model to write or continue text. It is set up for keras. The card lists the license as cc-by-nc-sa-4.0.
Classify imagined speech commands from EEG brain signals using deep learning.
Downloads · 30 days
0
Access
Public
Updated Jun 19, 2026
Repo size
5.7 MB
Likes
1
Public
Click a slice to open those files.
.h55.7 MB · 100%
From the Hugging Face model README
Classify imagined speech commands from EEG brain signals using deep learning.
This project enables Brain-Computer Interface (BCI) applications by decoding imagined directional commands ("Up", "Down", "Left", "Right") from EEG brain signals. Users think about a direction without speaking, and the system predicts their intended command.
pip install -r requirements.txt
import numpy as np
from tensorflow import keras
# Load pre-trained model
model = keras.models.load_model('path/to/your/model.h5')
# Your EEG data (1 second, 64 channels, 250 Hz sampling)
eeg_data = np.random.randn(250, 64) # Replace with real EEG
# Make prediction
prediction = model.predict(eeg_data.reshape(1, 250, 64))
classes = ['Up', 'Down', 'Left', 'Right']
predicted_command = classes[np.argmax(prediction)]
print(f"Predicted command: {predicted_command}")
print(f"Confidence: {np.max(prediction):.3f}")
from analysis import InnerSpeechAnalyzer
# Initialize predictor
analyzer = InnerSpeechAnalyzer('path/to/your/model.h5')
predictor = analyzer.create_real_time_predictor()
# Real-time loop
while True:
eeg_data = capture_eeg_signal() # Your EEG acquisition function
command, confidence = predictor.predict_thought(eeg_data)
if confidence > 0.8:
execute_command(command) # Your command execution
print(f"Executing: {command}")
Your EEG data should be:
✅ Ready-to-use pre-trained model
✅ Real-time prediction for BCI applications
✅ Custom training with your own EEG data
✅ Multiple architectures (CNN-LSTM, Transformer)
✅ EEG preprocessing pipeline included
✅ Cross-platform support (Windows, macOS, Linux)
tensorflow>=2.8.0,<3.0.0
scikit-learn>=1.0.0
numpy>=1.21.0
scipy>=1.7.0
pandas>=1.3.0
mne>=1.0.0
matplotlib>=3.5.0
seaborn>=0.11.0
# User thinks "forward" → wheelchair moves forward
# User thinks "left" → wheelchair turns left
# User thinks "up" → lights turn on
# User thinks "down" → lights turn off
# User thinks "right" → character moves right
# Mental commands for game control
This project is in the BETA phase. Use at your own risk. Due to the process, low accuracy rates may be observed. In addition, since the data belongs to <span style="color: #ff8d26; "><b>Neurazum</b></span>, the function structure may change in future models.
CC-BY-NC-SA 4.0 - see LICENSE file for details.
Enable mind-controlled technology with EEG! 🚀
<span style="color: #ff8d26; "><b>Neurazum</b> AI Department</span>