Skip to main content

This package uses Generative Adversarial Networks (GANs) to augment EEG data to enhance classification performance.

Project description

EEG-GAN

We here use Generative Adversarial Networks (GANs) to create trial-level synthetic EEG samples. We can then use these samples as extra data to train whichever classifier we want to use (e.g., Support Vector Machine, Neural Network).

GANs are machine learning frameworks that consist of two adversarial neural network agents, namely the generator and the discriminator. The generator is trained to create novel samples that are indiscernible from real samples. In the current context, the generator produces realistic continuous EEG activity, conditioned on a set of experimental variables, which contain underlying neural features representative of the outcomes being classified. For example, depression manifests as increased alpha oscillatory activity in the EEG signal, and thus, an ideal generator would produce continuous EEG that includes these alpha signatures. In contrast to the generator, the discriminator determines whether a given sample is real or synthetically produced by the generator. The core insight of GANs is that the generator can effectively learn from the discriminator. Specifically, the generator will consecutively produce more realistic synthetic samples with the goal of “fooling” the discriminator into believing them as real. Once it has achieved realistic samples that the discriminator cannot discern, it can be used to generate synthetic data—or in this context, synthetic EEG data.

You can find our documentation here

Feel free to contribute!

LICENSE

Copyright 2023, Brown University, Providence, RI.

                    All Rights Reserved

Permission to use, copy, modify, and distribute this software and its documentation for any purpose other than its incorporation into a commercial product or service is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Brown University not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission.

BROWN UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ANY PARTICULAR PURPOSE. IN NO EVENT SHALL BROWN UNIVERSITY BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

The TTS-GAN package is provided under the Apache license v.2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eeggan-2.0.2.tar.gz (42.5 MB view details)

Uploaded Source

Built Distribution

eeggan-2.0.2-py3-none-any.whl (39.5 MB view details)

Uploaded Python 3

File details

Details for the file eeggan-2.0.2.tar.gz.

File metadata

  • Download URL: eeggan-2.0.2.tar.gz
  • Upload date:
  • Size: 42.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for eeggan-2.0.2.tar.gz
Algorithm Hash digest
SHA256 9e304ca874ae0d5e5c52ec989b67c3ff5804e7b0e4aa38dae75c2f91a830a288
MD5 2dc2851d64fec1ac04826bb045d113d2
BLAKE2b-256 688bec74771b17f6cccd52268bf3c3cf72a33df28f85c03a3bef7b64dfde1a0e

See more details on using hashes here.

File details

Details for the file eeggan-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: eeggan-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 39.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for eeggan-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ec1792e86aff102d1071af7e54825a850d36beb03eebe68828e5ee3eef34c356
MD5 902c677f4d4e5a617e5dbe6da8f54887
BLAKE2b-256 5d1be4dc5818c843cb9a05924db16eb321d1018e82897e5506ac5f089d4ac28f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page