Free SKILL.md scraped from GitHub. Clone the repo or copy the file directly into your Claude Code skills directory.
npx versuz@latest install hiyenwong-ai-collection-collection-skills-deep-learning-closed-loop-tms-bcigit clone https://github.com/hiyenwong/ai_collection.gitcp ai_collection/SKILL.MD ~/.claude/skills/hiyenwong-ai-collection-collection-skills-deep-learning-closed-loop-tms-bci/SKILL.md--- name: deep-learning-closed-loop-tms-bci category: ai_collection description: "Deep learning in brain-computer interfaces with closed-loop transcranial magnetic stimulation. Combines real-time EEG processing with adaptive TMS for neurological therapy. (arXiv:2604.11608, 2026-04-12)" tags: ["BCI", "deep learning", "closed-loop TMS", "EEG", "neurological therapy", "brain stimulation", "real-time processing"] source: "arXiv:2604.11608 (2026-04-12)" version: "v1" --- # Deep Learning in Closed-Loop TMS BCI (2026) ## Overview This paper explores the integration of deep learning methods with brain-computer interfaces (BCIs) that use closed-loop transcranial magnetic stimulation (TMS). The system processes EEG in real-time to adaptively deliver TMS for neurological therapy, creating a personalized treatment loop. ## Key Concepts ### 1. Closed-Loop TMS System - **Real-time EEG monitoring**: Continuous brain activity tracking - **Adaptive stimulation**: TMS parameters adjusted based on brain state - **Feedback loop**: Brain state → decision → stimulation → brain state - **Personalization**: Patient-specific parameter optimization ### 2. Deep Learning Components - **EEG signal processing**: CNN/RNN models for feature extraction - **State classification**: Identifying brain states requiring intervention - **Parameter prediction**: Recommending optimal TMS parameters - **Outcome prediction**: Predicting treatment effectiveness ### 3. Clinical Applications - **Depression treatment**: Targeting specific brain networks - **Stroke rehabilitation**: Enhancing neuroplasticity - **Chronic pain**: Modulating pain networks - **Cognitive enhancement**: Improving memory and attention ## Technical Framework ### EEG Processing Pipeline 1. **Preprocessing**: Filtering, artifact removal, normalization 2. **Feature extraction**: Deep learning-based representation 3. **State detection**: Classification of brain states 4. **Decision making**: Determining stimulation parameters 5. **TMS delivery**: Precise spatial and temporal targeting ### Deep Learning Architectures - **CNNs**: Spatial pattern recognition in EEG - **RNNs/LSTMs**: Temporal dynamics modeling - **Transformers**: Long-range dependency capture - **Reinforcement learning**: Adaptive parameter optimization ## Implementation Considerations ### Real-Time Requirements - **Latency**: < 100ms processing time for closed-loop operation - **Accuracy**: High classification accuracy for reliable stimulation - **Robustness**: Handling noise and artifacts in real-world settings - **Safety**: Preventing harmful stimulation patterns ### Clinical Validation - **Patient trials**: Controlled studies for efficacy - **Biomarker identification**: Predicting treatment response - **Long-term effects**: Monitoring sustained benefits - **Side effects**: Minimizing adverse outcomes ## Related Skills - `rl-closed-loop-eeg-tms` - `eeg-brain-connectivity-bci` - `deep-learning-eeg-tms-closed-loop` - `bci-rehabilitation-protocols` - `neural-digital-twins-bci` ## Trigger Words closed-loop TMS, BCI deep learning, real-time EEG processing, adaptive brain stimulation, neurological therapy BCI, EEG-TMS integration, personalized brain stimulation ## References - arXiv:2604.11608 (2026-04-12) - TMS-EEG literature