GithubHelp home page GithubHelp logo

anindya2306 / sleep-stage-classification-from-eeg-ml-vs-dl Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 3.5 MB

Implemented machine learning models (LGBM, CNN-LSTM) for sleep stage prediction from raw EEG signals, contributing to efficient diagnosis of sleep disorders.

License: MIT License

Jupyter Notebook 100.00%

sleep-stage-classification-from-eeg-ml-vs-dl's Introduction

Sleep Stage Prediction from Raw EEG Signals

In the modern age of rapid technological advancements and fast-paced lifestyles, sleep disorders have become increasingly common, negatively impacting health, productivity, and overall quality of life. Traditional diagnostic methods are expensive and time-consuming, leaving many vulnerable without timely intervention. This project aims to address this issue by utilizing machine learning models to analyze EEG recordings of patients, enabling efficient assessment of sleep quality and accurate diagnosis of sleep disorders.

Data

The input data consists of sequences of 30-second EEG epochs recorded from a single channel "Fpz-Cz", following the standards set by the AASM and R&K manuals. Each epoch is labeled as "W" (Wake), "N1" (Non-REM Stage 1), "N2" (Non-REM Stage 2), "N3" (Non-REM Stage 3), or "REM" (Rapid Eye Movement). The objective is to transform the raw time-series EEG data into a coherent hypnogram.

Methods

Two main approaches were adopted for sleep stage prediction:

  1. Feature-based Machine Learning Approach: Hand-crafted time and frequency domain features, including Cross Wavelet features, were extracted from each 30-second epoch. A LightGBM model was trained on these features to classify sleep stages based on their time-invariant properties.

  2. Hybrid CNN-LSTM Architecture: A hybrid model combining Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks was developed. CNNs learned to extract time-invariant features from raw single-channel EEG signals, while bidirectional LSTMs captured temporal information and sleep stage transition patterns.

The uniqueness of the hybrid model lies in its ability to adapt to various EEG datasets with different properties and scoring standards (e.g., AASM and R&K) without requiring manual feature engineering.

Results

Sample visualizations of sleep stage predictions are provided below:

[Insert sample photos of results here]

Reference

This project draws inspiration from the research paper: "DeepSleepNet: A Model for Automatic Sleep Stage Scoring based on Raw Single-Channel EEG" by Akara Supratak, Hao Dong, Chao Wu, Yike Guo.

Read the full paper here

This repository serves as a demonstration of utilizing machine learning techniques to predict sleep stages from raw EEG signals, contributing towards a more accessible and efficient method of diagnosing sleep disorders.

sleep-stage-classification-from-eeg-ml-vs-dl's People

Contributors

anindya2306 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.