GithubHelp home page GithubHelp logo

stuartfogel / countingsheeppsg Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 4.0 54.38 MB

EEGLAB-compatible analysis software for manual / visual sleep stage scoring, signal processing and event marking of polysomnographic (PSG) data for MATLAB.

Home Page: https://github.com/stuartfogel/CountingSheepPSG

License: GNU General Public License v3.0

MATLAB 100.00%
event-detection polysomnography psg signal-processing sleep sleep-analysis sleep-stage-scoring eeglab eeg eeg-preprocessing

countingsheeppsg's Introduction

Counting Sheep PSG

EEGLAB-compatible manual sleep stage scoring, signal processing and event marking of polysomnographic (PSG) data for MATLAB.

screenshot

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Mac, PC and Linux compatible.
Designed for use with EEGLAB 2023 or later (https://eeglab.org) on Matlab R2020b or later (R2022b or later recommended).
For use on continuous EEGLAB datasets (*.set).

Works best if recording includes (in the EEG.event structure):

  • Recording start time event (at first data point).
  • Lights Off and Lights On events.

Installing

Simply unzip 'countingSheepPSG' and add to Matlab path.
Alternatively, unzip and move folder to '~/eeglab/plugins/' directory for EEGLAB GUI integration.

Usage

  1. Launch by typing 'countingSheepPSG' at command prompt.
  2. Customize display montage in: ~/montages/sleep_montage_default.m (rename and save to new file)
  3. Loads an EEGlab PSG dataset for signal preprocessing and annnotation.

Supported Data Formats:

  • EEGLAB Datasets (default)
  • European Data Format (EDF)
  • Brain Products Format (VHDR)

Sleep Scoring Keyboard Shortcuts:

  • 0 - Wake
  • 1 - NREM 1
  • 2 - NREM 2
  • 3 - SWS
  • 4 - REM
  • . - Unscored
  • backspace/delete - delete seelcted event(s)

Event Marking Mode:

  • Single-point events can be created using single mouse click
  • Events with a duration can be created using mouse click-and-drag
  • Enable 'all channels' mode to mark events without a channel
  • Single-click existing event to select/deselect for delete/merge

Signal processing (using built-in EEGlab functions)

  • interpolate bad channels
  • downsampling
  • filtering
  • re-referencing (beta)
  • channel edit (beta)
  • Independent component analysis (ICA)
  • Artifact Subspace Reconstruction (ASR)
  • Power spectral analysis - FTT (beta)

Automatic Event Detection:

  • Automatic movement artifact detection
  • Automatic spindle detection (using EEGlab 'detect_spindles' plugin)
  • Automatic slow wave detection (using EEGlab 'PAA' plugin)
  • Spindle-slow wave coupling analysis (coming soon...)
  • Automatic rapid eye movement detection (coming soon...)

Authors

Stuart Fogel & Sleep Well.
School of Psychology, University of Ottawa, Canada.
uOttawa Sleep Research Laboratory.

A revision of sleepSMG. sleepSMG originally developed by:
Stephanie Greer and Jared Saletin.
Walker Lab, UC Berekeley, 2011.
https://sleepsmg.sourceforge.net
https://www.jaredsaletin.org/hume

Contact

https://www.uottawa-sleeplab.ca
https://www.sleepwellpsg.com
[email protected]

License

Copyright (C) Stuart Fogel & Sleep Well, 2022.
See the GNU General Public License v3.0 for more information.

This file is part of 'Counting Sheep PSG'. See https://github.com/stuartfogel/CountingSheepPSG for details.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above author, license, copyright notice, this list of conditions, and the following disclaimer.

  2. Redistributions in binary form must reproduce the above author, license, copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Counting Sheep PSG is intended for research purposes only. Any commercial or medical use of this software and source code is strictly prohibited.

countingsheeppsg's People

Contributors

stuartfogel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

countingsheeppsg's Issues

Error on calling CountingSheepPSG

Hi,

I was hoping to try using the plug in, but I encountered the following error upon calling CountingSheepPSG:

>> countingSheepPSG
Unrecognized property 'InputType' for class 'matlab.ui.control.EditField'.

Error in countingSheepPSG/createComponents (line 4289)
            app.markStr.InputType = 'alphanumerics';

Error in countingSheepPSG (line 4337)
                createComponents(app)

I am using MATLAB R2022a and have the latest version of eeglab installed and in path.

Thank you,
Marta

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.