roseDwayane commited on
Commit
0a50e94
·
1 Parent(s): a20bf03
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -62,6 +62,11 @@ icunet = """
62
  ### Abstract
63
  Electroencephalography (EEG) signals are often contaminated with artifacts. It is imperative to develop a practical and reliable artifact removal method to prevent the misinterpretation of neural signals and the underperformance of brain–computer interfaces. Based on the U-Net architecture, we developed a new artifact removal model, IC-U-Net, for removing pervasive EEG artifacts and reconstructing brain signals. IC-U-Net was trained using mixtures of brain and non-brain components decomposed by independent component analysis. It uses an ensemble of loss functions to model complex signal fluctuations in EEG recordings. The effectiveness of the proposed method in recovering brain activities and removing various artifacts (e.g., eye blinks/movements, muscle activities, and line/channel noise) was demonstrated in a simulation study and four real-world EEG experiments. IC-U-Net can reconstruct a multi-channel EEG signal and is applicable to most artifact types, offering a promising end-to-end solution for automatically removing artifacts from EEG recordings. It also meets the increasing need to image natural brain dynamics in a mobile setting.
64
  """
 
 
 
 
 
65
 
66
  chkbox_js = """
67
  (state_json) => {
@@ -146,8 +151,8 @@ with gr.Blocks() as demo:
146
  """
147
  )
148
  with gr.Row():
149
- in_model_name = gr.Dropdown(choices=["ICUNet", "UNetpp", "AttUnet", "EEGART", "(mapped data)"],
150
- value="ICUNet",
151
  label="Model",
152
  scale=2)
153
  run_btn = gr.Button(scale=1, interactive=False)
@@ -155,12 +160,12 @@ with gr.Blocks() as demo:
155
 
156
 
157
  with gr.Row():
158
- with gr.Tab("EEGART"):
159
  gr.Markdown()
160
  with gr.Tab("IC-U-Net"):
161
  gr.Markdown(icunet)
162
  with gr.Tab("IC-U-Net++"):
163
- gr.Markdown()
164
  with gr.Tab("IC-U-Net-Att"):
165
  gr.Markdown()
166
  with gr.Tab("QuickStart"):
 
62
  ### Abstract
63
  Electroencephalography (EEG) signals are often contaminated with artifacts. It is imperative to develop a practical and reliable artifact removal method to prevent the misinterpretation of neural signals and the underperformance of brain–computer interfaces. Based on the U-Net architecture, we developed a new artifact removal model, IC-U-Net, for removing pervasive EEG artifacts and reconstructing brain signals. IC-U-Net was trained using mixtures of brain and non-brain components decomposed by independent component analysis. It uses an ensemble of loss functions to model complex signal fluctuations in EEG recordings. The effectiveness of the proposed method in recovering brain activities and removing various artifacts (e.g., eye blinks/movements, muscle activities, and line/channel noise) was demonstrated in a simulation study and four real-world EEG experiments. IC-U-Net can reconstruct a multi-channel EEG signal and is applicable to most artifact types, offering a promising end-to-end solution for automatically removing artifacts from EEG recordings. It also meets the increasing need to image natural brain dynamics in a mobile setting.
64
  """
65
+ unetpp = """
66
+ # IC-U-Net++
67
+ ### Abstract
68
+ Electroencephalographic (EEG) data is considered contaminated with various types of artifacts. Deep learning has been successfully applied to developing EEG artifact removal techniques to increase the signal-to-noise ratio (SNR) and enhance brain-computer interface performance. Recently, our research team has proposed an end-to-end UNet-based EEG artifact removal technique, IC-U-Net, which can reconstruct signals against various artifacts. However, this model suffers from being prone to overfitting with a limited training dataset size and demanding a high computational cost. To address these issues, this study attempted to leverage the architecture of UNet++ to improve the practicability of IC-U-Net by introducing dense skip connections in the encoder-decoder architecture. Results showed that this proposed model obtained superior SNR to the original model with half the number of parameters. Also, this proposed model achieved comparable convergency using a quarter of the training data size.
69
+ """
70
 
71
  chkbox_js = """
72
  (state_json) => {
 
151
  """
152
  )
153
  with gr.Row():
154
+ in_model_name = gr.Dropdown(choices=["IC-U-Net", "IC-U-Net++", "IC-U-Net-Attn", "ART", "(mapped data)"],
155
+ value="IC-U-Net",
156
  label="Model",
157
  scale=2)
158
  run_btn = gr.Button(scale=1, interactive=False)
 
160
 
161
 
162
  with gr.Row():
163
+ with gr.Tab("ART"):
164
  gr.Markdown()
165
  with gr.Tab("IC-U-Net"):
166
  gr.Markdown(icunet)
167
  with gr.Tab("IC-U-Net++"):
168
+ gr.Markdown(unetpp)
169
  with gr.Tab("IC-U-Net-Att"):
170
  gr.Markdown()
171
  with gr.Tab("QuickStart"):