abhisheks008 / DL-Simplified

Deep Learning Simplified is an Open-source repository, containing beginner to advance level deep learning projects for the contributors, who are willing to start their journey in Deep Learning. Devfolio URL, https://devfolio.co/projects/deep-learning-simplified-f013
https://quine.sh/repo/abhisheks008-DL-Simplified-499023976
MIT License
316 stars 290 forks source link

Drowsiness detection using EEG signals using DL #784

Closed KamakshiOjha closed 1 week ago

KamakshiOjha commented 2 weeks ago

Deep Learning Simplified Repository (Proposing new issue)

:red_circle: Project Title : Drowsiness Detection Using EEG Signals
:red_circle: Aim : To develop a deep learning model to detect drowsiness from EEG signals using various algorithms and compare their performance to identify the best-fitted algorithm based on accuracy scores.
:red_circle: Dataset : https://figshare.com/articles/dataset/EEG_driver_drowsiness_dataset/14273687
:red_circle: Approach :

  1. Exploratory Data Analysis (EDA):

    • Analyze and preprocess the EEG dataset.
    • Visualize EEG signals and class distributions.
  2. Model Development:

    • Implement the provided deep learning model using TensorFlow and Keras.
    • Develop and implement three additional models:
      1. Convolutional Neural Network (CNN).
  3. Model Training and Evaluation:

    • Train each model on the EEG dataset.
    • Evaluate models using accuracy, precision, recall, and F1-score.
    • Compare performances to identify the best model.
  4. Visualization and Conclusion:

    • Visualize training and validation metrics.
    • Provide insights and conclusions based on model comparisons.

๐Ÿ“ Follow the Guidelines to Contribute in the Project :


:red_circle::yellow_circle: Points to Note :


:white_check_mark: To be Mentioned while taking the issue :


Happy Contributing ๐Ÿš€

All the best. Enjoy your open source journey ahead. ๐Ÿ˜Ž

github-actions[bot] commented 2 weeks ago

Thank you for creating this issue! We'll look into it as soon as possible. Your contributions are highly appreciated! ๐Ÿ˜Š

abhisheks008 commented 2 weeks ago

What are the CNN architectures you are planning to use here? Apart from CNN what are the models you are planning to implement for this EEG dataset?

@KamakshiOjha

KamakshiOjha commented 2 weeks ago

Input Layer:

Convolutional Layers:

Combined Branch:

Global Pooling and Fully Connected Layers:

KamakshiOjha commented 2 weeks ago

Since my dataset consists of EEG signals, I've experimented with various CNN architectures to find the best results. Additionally, I've incorporated an attention mechanism into my model to enhance its performance.

abhisheks008 commented 2 weeks ago

Input Layer:

  • Input Shape: (30, 128, 1)

Convolutional Layers:

  • Branch 1:

    • Conv2D with 16 filters, kernel size (1, 3), ReLU activation
    • Conv2D with 32 filters, kernel size (1, 3), ReLU activation
    • Conv2D with 64 filters, kernel size (1, 3), ReLU activation
    • cbam_block applied to the output
  • Branch 2:

    • Conv2D with 16 filters, kernel size (1, 5), ReLU activation
    • Conv2D with 32 filters, kernel size (1, 5), ReLU activation
    • Conv2D with 64 filters, kernel size (1, 5), ReLU activation
    • cbam_block applied to the output
  • Branch 3:

    • Conv2D with 16 filters, kernel size (1, 7), ReLU activation
    • Conv2D with 32 filters, kernel size (1, 7), ReLU activation
    • Conv2D with 64 filters, kernel size (1, 7), ReLU activation
    • cbam_block applied to the output

Combined Branch:

  • The outputs from the branches are combined using an Add layer.
  • Further Convolutional Layers:

    • Conv2D with 64 filters, kernel size (1, 3), ReLU activation
    • Conv2D with 128 filters, kernel size (1, 3), ReLU activation
    • Conv2D with 128 filters, kernel size (1, 3), ReLU activation

Global Pooling and Fully Connected Layers:

  • GlobalAveragePooling2D applied to the last convolutional layer.
  • Fully connected (Dense) layers:

    • Dense with 512 units, ELU activation
    • Dense with 256 units, ELU activation
    • Dense with 128 units, ELU activation
    • Dense with 32 units, ELU activation
    • Output Dense with 2 units, Softmax activation (for classification)

Cool. Go ahead with this approach.

Assigned @KamakshiOjha

github-actions[bot] commented 1 week ago

Hello @KamakshiOjha! Your issue #784 has been closed. Thank you for your contribution!