🧠 EEG Biomarker Analysis for Cognitive Impairment Post-Stroke

This project focuses on analyzing EEG biomarkers to assess different levels of cognitive impairment in stroke patients. Specifically, it uses Power Spectral Density (PSD) and functional connectivity to explore neural activity.

πŸ“‹ Table of Contents

πŸ” Overview

This project builds upon research exploring EEG biomarker analysis in stroke patients with varying degrees of cognitive impairment. The key methods include:

  • πŸ“ˆ Power Spectral Density (PSD): Analyzes brain wave frequencies (delta, theta, alpha, beta, gamma) to identify cognitive states.
  • 🌐 Functional Connectivity: Examines connectivity between brain regions to understand cognitive decline.

For more details, refer to:

πŸ“ Folder Structure

.
β”œβ”€β”€ avg_final_picture/
β”œβ”€β”€ datasetqw/
β”œβ”€β”€ microstate/
β”œβ”€β”€ picture/
β”œβ”€β”€ plotset_process_note_vision/
β”œβ”€β”€ plotsetavg_final_vision/
β”œβ”€β”€ Scripts/
β”œβ”€β”€ singel_mne_result/
β”œβ”€β”€ sperate_power/
β”œβ”€β”€ avg_plot_conc_metrix_circle.py
β”œβ”€β”€ plotsingle.py
β”œβ”€β”€ pyenv/
β”œβ”€β”€ .gitignore
└── README.md
  • πŸ–Ό avg_final_picture/: Contains final visualizations of EEG biomarkers.
  • πŸ“Š datasetqw/: Processed EEG datasets for cognitive impairment levels.
  • 🧩 microstate/: Microstate analysis results.
  • πŸ–Ό picture/: Images generated during analysis.
  • πŸ“ plotset_process_note_vision/: Notes and intermediate visualizations related to the analysis.
  • πŸ“ˆ plotsetavg_final_vision/: Final averaged EEG visualizations.
  • βš™οΈ Scripts/: Python scripts for EEG preprocessing, PSD analysis, and functional connectivity visualization.
  • πŸ“‚ singel_mne_result/: MNE-Python EEG analysis results.
  • πŸ“‰ sperate_power/: Power spectral analysis results.
  • πŸ“Š avg_plot_conc_metrix_circle.py: Script for plotting average connectivity circles.
  • πŸ“Š plotsingle.py: Script for plotting individual EEG signals.
  • πŸ’» pyenv/: Python virtual environment configuration files.
  • 🚫 .gitignore: Specifies files to be ignored by version control.

πŸ“Š Data

The data used in this project includes EEG recordings from stroke patients at varying levels of cognitive impairment. The key analysis focuses on PSD and functional connectivity in different brain regions.

  • πŸ‘¨β€βš•οΈ Participants: 32 total participants (8 healthy controls and 24 stroke patients with mild, moderate, and severe cognitive impairment).
  • πŸ’» EEG Recording: 44-channel EEG data collected at 2 kHz, analyzed using MNE-Python.

πŸ”§ Dependencies

Ensure you have the following dependencies installed:

  • Python 3.8+
  • MNE-Python
  • EEGLAB
  • numpy
  • matplotlib
  • scipy

You can install the required Python packages using:

pip install -r requirements.txt

πŸš€ Usage

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
  2. Activate the Python virtual environment:

    source pyenv/bin/activate
  3. Run the scripts:

    • To generate PSD plots:
      python avg_plot_conc_metrix_circle.py
    • To visualize individual EEG data:
      python plotsingle.py
  4. Review the output in the avg_final_picture/ and picture/ folders.

πŸ”— References

  1. Xu, M., Zhang, Y., Zhang, Y., Liu, X., & Qing, K. (2024). EEG biomarkers analysis in different cognitive impairment after stroke: an exploration study. Frontiers in Neurology, 15:1358167. Link to article
  2. Zhang, Y., Zhang, Y., Jiang, Z., Xu, M., & Qing, K. (2023). The effect of EEG and fNIRS in the digital assessment and therapy of Alzheimer’s disease. Frontiers in Neuroscience, 17:1269359. Link to article

Let me know if you'd like to add or modify anything further!