Abdelsalam.ai

Featured Research

Hybrid Adaptive Brain-Computer Interface Using Artificial Intelligence for Controlling Industrial Robots and Medical Assistive Devices

M.Sc. thesis (JAMK University of Applied Sciences) engineering a hybrid adaptive Brain-Computer Interface that decodes real-time EEG with deep learning to control industrial robotic manipulators and medical assistive devices.

M.Sc. Thesis · Completed 2026JAMK University of Applied Sciences, Jyväskylä, Finland
PythonPyTorchTensorFlowScikit-learnBrainFlowMNE-PythonROS 2GazeboNumPy / SciPyLinuxDockerGit

Research Problem

Manual control is impractical in two very different contexts: for users with severe motor impairment, and in industrial settings where hands-free operation is needed. This project investigates whether a single hybrid, adaptive BCI architecture can address both — enabling hands-free, non-invasive EEG control of industrial robotic manipulators and medical assistive devices.

Research Question

Can a single hybrid, adaptive AI architecture reliably decode motor-imagery EEG in real time to control both industrial robotic manipulators and medical assistive devices, while adapting to inter- and intra-session EEG non-stationarity?

System Architecture

[01]EEG AcquisitionBrainFlow · hardware-agnostic streaming
[02]Signal ProcessingMNE-Python · filtering, artifact rejection
[03]Feature ExtractionSpatial features from processed epochs
[04]Machine LearningCNN / LSTM decoding, CSP + LDA/SVM baseline
[05]Adaptive LearningOnline recalibration across sessions
[06]ROS 2Node graph · velocity and pose commands
[07]GazeboSimulation-first verification
[08]Robot ControlShared control, collision avoidance, safety

The system is architected as a modular ROS 2 node graph: real-time EEG acquisition and decoding feed a hybrid adaptive AI core, which translates decoded motor-imagery intent into validated velocity and pose commands for the robot, with simulation-first verification in Gazebo before hardware deployment.

EEG Acquisition

Real-time EEG acquisition uses BrainFlow for hardware-agnostic streaming, feeding an end-to-end Python pipeline built for continuous, real-time signal capture.

Signal Processing

MNE-Python handles filtering, artifact rejection, epoching and spatial feature extraction ahead of classification.

Artifact Rejection

Artifacts are removed using Independent Component Analysis (ICA) within the MNE-Python preprocessing pipeline, ahead of epoching and feature extraction.

Feature Extraction

Spatial features are extracted from preprocessed EEG epochs, feeding both the deep learning classifiers and the classical CSP-based baseline.

Machine Learning

Motor-imagery intent is decoded using deep learning classifiers trained and evaluated in PyTorch and TensorFlow, benchmarked against classical machine learning baselines built in Scikit-learn.

CNN / LSTM

CNN and LSTM architectures were designed, trained and evaluated in PyTorch/TensorFlow for motor-imagery intent decoding from EEG.

CSP + LDA / SVM Baselines

Deep learning classifiers were benchmarked against classical CSP (Common Spatial Patterns) feature extraction combined with LDA and SVM classifiers in Scikit-learn, providing a non-deep-learning baseline for comparison.

Adaptive Learning

An online learning layer continuously recalibrates the decoder against inter- and intra-session EEG non-stationarity — the defining adaptive component of the system, designed to reduce per-session recalibration time without full retraining.

ROS 2

The robot-side control stack is a modular ROS 2 node graph that translates decoded neural intent into validated velocity and pose commands.

Gazebo

All robot behavior is verified in Gazebo simulation before any hardware deployment — a simulation-first approach used to de-risk real-world testing.

Shared Control

A shared-control arbitration layer blends decoded human intent with autonomous motion planning and collision avoidance, so low-confidence neural commands degrade safely rather than producing unintended motion.

Safety

Human-robot interaction safety is enforced through workspace limits, velocity clamping, confidence thresholding, and a watchdog-driven emergency-stop path, keeping the system fail-safe under signal dropout or decoder uncertainty.

Experiments

In Progress

Classifiers were evaluated via cross-validation across multiple subjects, benchmarked against the classical CSP + LDA/SVM baselines above. The CV leaves the exact subject count and full experimental protocol as placeholders — add specifics here once finalized.

Edit in src/data/featured-research.ts

Results

In Progress

Cross-validated decoding accuracy and per-session recalibration improvements were measured during the thesis. Results under final validation — no numbers are reported here to avoid presenting unverified findings.

Edit in src/data/featured-research.ts

Future Work

In Progress

Planned next steps — broader validation, publication of finalized results, and possible extensions of the shared-control approach — will be added here.

Edit in src/data/featured-research.ts

Code / GitHub

In Progress

A link to the project's public repository will be added here once the codebase is ready to share.

Edit in src/data/featured-research.ts

Publications

In Progress

The completed M.Sc. thesis is listed on the Publications page. Any further papers, preprints or technical reports will be added here and cross-linked from that page.

Edit in src/data/featured-research.ts