Skip to content

sappoPrivy/Causal_asymmetries_in_epilepsy_using_CCM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

74 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Epileptic Seizure Analysis: Asymmetries in Causality using Convergent Cross Mapping

Degree Project in Computer Science and Engineering, First cycle, 15 credits
Code developed by Tenzin Sangpo Choedon, Spring 2025

πŸ“„ Abstract

Exploring brain connectivity is essential to gain a deeper understanding of epileptic seizure dynamics. Particularly, effective connectivity is used for detecting causal relationships between neural regions, with Granger Causality (GC) being a widely recognized measurement. However, identifying the specific EEG channels that are causally involved in epilepsy remains a challenge. Convergent Cross Mapping (CCM) has been developed to address these limitations of GC. Despite the potential of CCM, there have been minimal real applications in epilepsy. Additionally, previous research suggests that there is a stronger directional causal influence on certain brain regions during seizures. Therefore, this study explores causal asymmetries across channels in epilepsy by applying CCM to EEG data. The methodology of this study involves preprocessing the data from the CHB-MIT dataset, passing it into the CCM algorithm, tuning the CCM parameters, and evaluating the resulting causality across non-seizure, preictal and ictal states through asymmetry measures. The results indicate that causality patterns are generally more asymmetric during pre-seizure and seizure activity compared to non-seizure activity. Furthermore, results from individual channels suggest that channels 20 and 21, as well as channels 6 and 12 most consistently exhibit the highest asymmetry in causality for pre-seizure and seizure activity, respectively, which is partially consistent with previous findings. It is concluded that CCM can be applied, with the improvements of scalable methods, to identify potential EEG channels that are important for underlying directional connectivity involved in seizure dynamics.

πŸ—‚οΈ Table of Contents

πŸ—οΈ Project Structure

root/
β”œβ”€β”€ src/ # Python scripts for preprocessing, computing and evaluating ccm scores
β”œβ”€β”€ docs/ # Documentations such as the thesis report and select few generated illustrations
β”œβ”€β”€ data/ # CHB-MIT dataset is loaded and stored here
β”œβ”€β”€ README.md
└── .gitignore

βœ… Prerequisites

Python 3.7+

  • Required Python packages (install via pip):
    pip install numpy scipy pandas matplotlib pyEDM

CCM

  • Download Python juypiter version from here

CHB-MIT

  • Download dataset from here and store it in root/data folder

πŸš€ Usage

Run the scripts in this order:

  1. Preprocess data
    python src/preprocess_data.py
  2. Compute CCM on subjects
    python src/process_CCM_subjects.py
  3. Evaluate CCM results of all subjects
    python src/eval_CCM_subjects.py

πŸ“˜ Key Findings

More details in the Thesis

Overall Asymmetry Index Distribution

Overall Asymmetry Channel Frequencies

About

Anaysing Asymmetries in Causality using Convergent Cross Mapping for Epilepsy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages