Skip to content

Commit c56c117

Browse files
authored
Add EEG Athlete Project to BrainHack School (#408)
1 parent e1bc695 commit c56c117

File tree

9 files changed

+116
-0
lines changed

9 files changed

+116
-0
lines changed
189 KB
Loading

content/en/project/eeg_athlete_performance/correlation_graph.png:Zone.Identifier

Whitespace-only changes.
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
---
2+
type: "project" # DON'T TOUCH THIS ! :)
3+
date: "2025-06-19" # Date you first upload your project.
4+
# Title of your project (we like creative title)
5+
title: "EEG Athlete Project: Brain Activity During Golf Performance"
6+
7+
# List the names of the collaborators within the [ ]. If alone, simple put your name within []
8+
names: [Samantha Bjelis, Fardin Islam]
9+
10+
# Your project GitHub repository URL
11+
github_repo: https://github.com/brainhack-school2025/islam_project
12+
13+
# If you are working on a project that has website, indicate the full url including "https://" below or leave it empty.
14+
website:
15+
16+
# List +- 4 keywords that best describe your project within []. Note that the project summary also involves a number of key words. Those are listed on top of the [github repository](https://github.com/brainhack-school2023/JDaoust_project.git), click `manage topics`.
17+
# Please only lowercase letters
18+
tags: ["EEG", "sports neuroscience", "golf", "data analysis", "bootstrapping"]
19+
20+
# Summarize your project in < ~75 words. This description will appear at the top of your page and on the list page with other projects..
21+
22+
summary: "Using EEG band power to investigate cognitive states during golf swings and correlate them with subjective performance ratings."
23+
24+
# If you want to add a cover image (listpage and image in the right), add it to your directory and indicate the name
25+
# below with the extension.
26+
image: "project_image.png"
27+
---
28+
29+
## Project definition
30+
---
31+
### Background
32+
33+
Cognitive states such as focus, relaxation, and arousal are known to influence athletic performance, particularly in precision sports like golf. Electroencephalography (EEG) offers a non-invasive way to monitor neural activity and derive insights about cognitive engagement through frequency band analysis. Prior studies have associated increased alpha and theta power with focused attention and automaticity, while beta and gamma activity are linked to heightened alertness and motor preparation.
34+
35+
The aim of this project is to explore how EEG-derived band power dynamics relate to subjective performance ratings of golf swings, as rated by the athletes themselves. This work contributes to a growing field of neurofeedback and cognitive training in sports.
36+
37+
### Tools
38+
Python Libraries:
39+
MNE: EEG preprocessing and visualization
40+
numpy, pandas: Data manipulation
41+
matplotlib, seaborn: Plotting and statistical graphics
42+
scipy.stats: Correlation analysis
43+
sklearn: (optional for classification or clustering)
44+
45+
Signal Processing: Welch’s method for power spectral density estimation.
46+
47+
### Data
48+
Participants: Golf athletes performing standardized swing tasks.
49+
EEG Data: Multi-channel EEG signals recorded during golf swings.
50+
Subjective Ratings: Swing quality scores rated by the athletes on a Likert-type scale immediately post-swing.
51+
Electrode Layout: Standard 10-20 system with key channels such as Fz, Cz, Pz, etc.
52+
53+
### Pipeline
54+
Preprocessing
55+
Bandpass filter: 1–50 Hz
56+
Artifact rejection (e.g., blink or muscle noise via thresholding or ICA)
57+
58+
Feature Extraction
59+
Compute Relative Band Power for:
60+
Theta (4–8 Hz)
61+
Alpha (8–12 Hz)
62+
Beta (12–30 Hz)
63+
Gamma (30–45 Hz)
64+
Normalize power per epoch across channels
65+
66+
Statistical Analysis
67+
Correlation analysis: Pearson’s r between each frequency band (per channel) and shot quality scores.
68+
Bootstrapping: Resample correlation coefficients to assess stability and confidence intervals, especially for alpha band (often hypothesized to relate to motor preparation).
69+
Topographical Maps: Visualize band power distributions across the scalp for high- vs. low-rated swings
70+
71+
### Project deliverables
72+
At the end of this project, these files will be made available:
73+
1) To extract relative band power (Theta, Alpha, Beta, Gamma) from EEG recordings during golf swing preparation and execution.
74+
2) To assess the relationship between EEG features and subjective swing performance scores.
75+
3) To explore statistical and visual analysis methods (e.g., correlation, bootstrapping, topographical mapping) that may inform real-time cognitive training tools.
76+
77+
## Results
78+
Correlation Between EEG Band Power and Shot Score
79+
Scatter plots were generated to assess linear relationships between relative EEG band power and subjective golf shot scores (rated out of 10).
80+
Key findings:
81+
Alpha band power showed a moderate positive correlation with shot scores (r = 0.43), suggesting increased alpha may relate to better perceived performance.
82+
Theta, Beta, and Gamma bands showed weak or no correlation with shot quality (r = -0.07, 0.00, and 0.14 respectively), indicating less consistent relationships.
83+
84+
##### Figure 1. Correlation between EEG power bands and score
85+
![](correlation_graph.png)
86+
87+
EEG Topographical Maps
88+
Topographic visualizations of average relative EEG power for each frequency band (from Muse headset – 4 channels) reveal distinct spatial patterns:
89+
Alpha activity is more prominent over posterior regions, consistent with literature linking it to relaxed focus and motor readiness.
90+
Gamma activity showed asymmetric right-side prominence.
91+
Beta and Theta distributions were more uniformly diffuse, with Beta slightly higher at posterior sites.
92+
93+
##### Figure 2. EEG Topographical Map for One Shot
94+
![](topo_maps.png)
95+
96+
### Tools I learned during this project
97+
This project helped me build hands-on experience across several domains of neurodata analysis and scientific computing:
98+
MNE-Python: I learned to use the MNE library to preprocess EEG data, extract band power using Welch’s method, and visualize scalp topographies. This was my first time working with MNE, and it gave me a strong foundation in EEG signal workflows.
99+
Scipy.stats: I applied statistical functions such as Pearson correlation and bootstrapping to quantify relationships between brain activity and behavioral performance — gaining confidence in interpreting significance levels and confidence intervals.
100+
Git & GitHub Workflow: I practiced version control using Git and contributed to the BrainHack School repository via pull requests. I also learned how to structure markdown-based project documentation.
101+
102+
## Conclusion and acknowledgement
103+
This preliminary analysis supports the potential of EEG-based monitoring for assessing cognitive states in sports performance. Alpha power, in particular, may serve as a target for real-time neurofeedback to enhance swing execution. Future work could involve real-time decoding models, athlete-specific baselines, and integration into wearable feedback systems.
104+
105+
I would like to thanks all the Brainhack School organizators and all the crew. Mostly, thanks for this awesome opportunity!
106+
107+
## References
108+
Crews, D. J., & Landers, D. M. (1993). Electroencephalographic measures of attentional patterns prior to the golf putt. Medicine & Science in Sports & Exercise, 25(1), 116–126. https://doi.org/10.1249/00005768-199301000-00018
109+
110+
Gramfort, A., Luessi, M., Larson, E., Engemann, D. A., Strohmeier, D., Brodbeck, C., ... & Hämäläinen, M. S. (2013). MEG and EEG data analysis with MNE-Python. Frontiers in Neuroscience, 7, 267. https://doi.org/10.3389/fnins.2013.00267
111+
112+
Mirifar, A., Beckmann, J., & Ehrlenspiel, F. (2017). Neurofeedback as supplementary training for optimizing athletes' performance: A systematic review with implications for future research. Neuroscience & Biobehavioral Reviews, 75, 419–432. https://doi.org/10.1016/j.neubiorev.2017.02.005

content/en/project/eeg_athlete_performance/index.md:Zone.Identifier

Whitespace-only changes.
14.8 KB
Loading
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[ZoneTransfer]
2+
ZoneId=3
3+
ReferrerUrl=https://www.google.com/
4+
HostUrl=https://www.mattcraddock.com/img/MatlabTopo.png

content/en/project/eeg_athlete_performance/project_image.png:Zone.Identifier:Zone.Identifier

Whitespace-only changes.
212 KB
Loading

content/en/project/eeg_athlete_performance/topo_maps.png:Zone.Identifier

Whitespace-only changes.

0 commit comments

Comments
 (0)