Skip to content

About

Python TensorFlow CNN Model trained on EEG signals to classify schizophrenia vs. control, with 98% accuracy in distinguishing neural patterns.

Topics

Resources

Stars

11 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

🧠 EEG Schizophrenia Classification — CNN Model

A deep learning approach using Convolutional Neural Networks (CNNs) to classify Schizophrenia (SZ) vs Control (HC) subjects from EEG recordings — achieving up to 98% accuracy.


🚀 Overview

This project leverages EEG (electroencephalogram) data to distinguish between schizophrenia and healthy control subjects through a convolutional neural network trained on preprocessed EEG signals.

By combining spatial–temporal EEG feature learning and advanced signal preprocessing (via MNE and SciPy), the model identifies neural patterns consistent with schizophrenia-related connectivity disruptions.


🧩 Tools & Frameworks

  • Python (NumPy, Pandas, SciPy)
  • TensorFlow / Keras (CNN modeling & training)
  • Scikit-learn (evaluation & metrics)
  • MNE-Python (EEG data processing & visualization)
  • Matplotlib / Seaborn (plotting & diagnostics)

📊 Dataset

  • Source: RePol Dataset (Elżbieta Olejarczyk & Wojciech Jernajczyk)
  • Description: EEG recordings from 45 subjects (both schizophrenia and control groups).
  • Recording Specs: 19 channels, 250 Hz sampling rate, ~20 min sessions per participant.
  • Preprocessing:
    • Bandpass filtering (1–45 Hz)
    • Artifact rejection (ICA & thresholding)
    • Channel normalization

🧠 Research Inspiration

Graph-based analysis of brain connectivity in schizophrenia
E. Olejarczyk, W. Jernajczyk — PLOS ONE
View Paper →

This study demonstrated that functional connectivity graphs derived from EEG data can reveal disrupted neural network organization in schizophrenia — inspiring this model’s exploration of deep spatial representations through CNNs.


🧬 Model Architecture

  • Input: 1D EEG signal windows per channel
  • Layers:
    1. 1D Convolution (spatial filtering)
    2. Batch Normalization
    3. Max Pooling
    4. Dropout (regularization)
    5. Dense Layers (feature fusion)
    6. Softmax Output (binary classification: SZ / HC)
  • Optimizer: Adam
  • Loss: Binary Cross-Entropy

📈 Results

Metric Score
Accuracy 0.98
Precision 0.97
Recall 0.98
F1-Score 0.975

Confusion matrix and ROC-AUC visualizations confirm robust generalization across subjects.


🔁 Future Improvements

  • Integrate Graph Neural Networks (GNNs) for functional connectivity learning.
  • Explore EEGNet and Transformer-based models for temporal attention.
  • Incorporate frequency-band-specific features (delta–gamma decomposition).
  • Develop subject-wise cross-validation for improved clinical realism.

About

Python TensorFlow CNN Model trained on EEG signals to classify schizophrenia vs. control, with 98% accuracy in distinguishing neural patterns.

Topics

Resources

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages