Giter VIP home page Giter VIP logo

aieeg's Introduction

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.

aieeg's People

Contributors

rosedwayane avatar

Stargazers

 avatar Kober Zhang avatar ITRookie avatar  avatar  avatar Tony avatar Seyed (Yahya) Shirazi avatar Ping-Chen Tsai  avatar  avatar  avatar weiwu avatar xiyuan030 avatar James  avatar  avatar Jack Jiang avatar Fred Turkington avatar AdaTian avatar  avatar  avatar  avatar MouMlng avatar  avatar Nima Moradi avatar Spencer Bialek avatar Yuhong Ren avatar 張家凱 avatar Chih-Sheng (Tommy) Huang avatar

Watchers

Chih-Sheng (Tommy) Huang avatar  avatar

aieeg's Issues

Readme Update

Hello,
Could you please add more details in the readme on how to use the pretrained model for our own data ?
Thank you in advance,
Best regards,
Mathieu

tiny bug ?

Hello,

thanks a lot for open sourcing your code for this interesting work!

I think there is a bug in this line: shouldn't it be output_freq = output_freq / torch.std(output_freq) ?

Thanks in advance,
Christina

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.