Skip to content

roseDwayane/AIEEG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IC-U-Net

Cover Page

Introduction

This is the Computational NeuroErgonomics x NeuroEducation (CNElab) on EEG artifacts removal end-to-end process: IC-U-Net: A U-Net based Denoising Autoencoders using Mixtures of Independent Components for Automatic EEG Artifact Removal, written in Pytorch. This journal has been accept by NeuroImage (IF:7.4). The aim of this project is to

  • A novel EEG artifact removal method, IC-U-Net, is proposed.
  • IC-U-Net is built based on the U-Net architecture with a loss function ensemble.
  • IC-U-Net is trained using mixtures of EEG sources decomposed by independent component analysis.
  • IC-U-Net does not require parameter tuning and can simultaneously remove various types of artifacts.
  • IC-U-Net can facilitate the extraction of relatively more brain sources from noisy EEG signals.

Requirements

  • Python >= 3.8.13
  • numpy >= 1.19.2
  • Pytorch >= 1.11.0 (can just use cpu)
  • scipy >= 1.10.1

Below we assume the working directory is the repository root.

  • Using pip in your virtual environment

    # Install the dependencies
    pip install -r requirements.txt
  • (if requirements.txt is not work)

    pip install numpy
    pip install torch torchvision torchaudio
    pip install scipy

Data Specification

plot The data format must be a two-dimensional array (30 channels, any timepoint), and the order of the channels please refer to the figure above.

The sample data sampledata.csv (30, 12568) is stored under the ./sampledata folder, where the sample rate is 256 Hz.

Running Step

  • Step 1: Setting the parameters. Please modify main.py file in following scope:
# parameter setting
input_path = './sampledata/'
input_name = 'sampledata.csv'
sample_rate = 256 # input data sample rate
modelname = 'ICUNet' # or 'UNetpp'
output_path = './sampledata/'
output_name = 'outputsample.csv'
  • Step 2: Runing main.py in your terminal:
python main.py

Sample Results

(writing)

Evaluated Dataset

We evaluate the model with lane-keeping drive data collected and walking experiment from scientific data and mygooglecloud.

Ethics approval All participants completed informed consent forms after receiving a complete explanation of the study. The Institutional Review Board of Taipei Veterans General Hospital approved the study protocol.

Consent to participate All of the participants provided written informed consent prior to participation. The consent regarding publishing their data as a scientific report was also included.

Acknowledgement

This work was supported by the Ministry of Science and Technology, Taiwan (project numbers: MOST 110-2636-E-007-018 and 109-2636-E-007-022), and by the Research Center for Education and Mind Sciences, National Tsing Hua University. No funding source had involved in any of the research procedures.

About

using unet to reconstruct signal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages