Automated Sleep Stage Scoring Using k-Nearest Neighbors Classifier
Automated Sleep Stage Scoring Using k-Nearest Neighbors Classifier - Published in JOSS (2020)
Science Score: 93.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 4 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: ieee.org, joss.theoj.org -
○Committers with academic emails
-
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Repository
A matlab package for automated sleep scoring using the k-nearest neighbors algorithm
Basic Info
- Host: GitHub
- Owner: teamPSG
- License: gpl-2.0
- Language: MATLAB
- Default Branch: master
- Size: 529 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Metadata Files
README.md
k-Nearest Neighbors Classifier-Based Sleep Staging (kNNSS)
Welcome to kNNSS software
kNNSS is a Matlab package for automated sleep stage scoring using the k-nearest neighbors algorithm. Compared to other automated sleep scoring packages its main advantage is simplicity and the use of physiologically relevant, human-interpretable features. The code is documented in the following JOSS publication:
LICENSE
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
Using kNNSS
Compatibility and dependencies
kNNSS was tested in Matlab R2014b and R2018a. The software uses the Signal Processing Toolbox and the Statistics and Machine Learning Toolbox from Matlab. Also, some functions from the Chronux Toolbox are used to calculate spectral properties of data (see below for a list of files). European Data Format (EDF; https://www.edfplus.info/) files are read using Brett Shoelson's (brett.shoelson@mathworks.com) edfread() function. Hjorth parameters are calculated by hjorth() a function written by Alois Schloegl (a.schloegl@ieee.org) as part of the BIOSIG-toolbox. This GitHub project is self-containing, no further downloads are required.
Chronux Toolbox file list
changerowto_column.m, dpsschk.m, getfgrid.m, getparams.m, mtfftc.m, mtspecgramc.m, mtspectrumc.m
Folder content
Example_Data: this directory contains three sub-directories. IntermRes is initially empty, intermediate files generated during the execution of the test scripts will be stored here. RawData contains polysomnographycal recordings from Thomas Kilduff's laboratory at SRI International in EDF format. Sub-folder EDF contain raw recordings, sub-folder FFT stores associated manual sleep scores used to train classifiers and test prediction efficacy.
Function_Library: this directory stores all the necessary Matlab functions required by kNNSS. Functions inputs and outputs are described in detail in the function header. Use Matlab's help to read about details of each function. A list of high-level purpose of functions is found in the Readme in this folder.
Software_Verification: a set of scripts to test the code on your system are in this folder. For a detailed description see the Readme in this folder.
JOSS_Paper: contains the manuscript submitted to the Journal of Open Source Software. The journal paper will provide background to the software, a summary of our work, applications and references.
Installation
All functions are stored in the FunctionLibrary folder. Simply adding this folder to Matlab's function path will take care of installation. Alternatively, check out contents of the SoftwareVerification folder.
Top-level inputs and outputs
kNNSS reads raw electrophysiological data from file. Currently the European Data Format and Matlab files are supported but see generatestatespace.m in FunctionLibrary to see how additional formats can be added. Manual scores are read together with the data. These are typically text files that come in many format.
Once the algorithm finishes predicting labels the output is a Matlab structure type variable, containing a cell array of strings in its fields. Strings correspond to predicted labels.
Getting help
For more information please do not hesitate to contact Tams Kiss (kiss.t (at) wigner.hu).
Thank you!
Owner
- Name: Tamás Kiss
- Login: teamPSG
- Kind: user
- Location: Budapest, Hungary
- Company: Wigner RCP
- Website: http://cneuro.rmki.kfki.hu/people/kiss
- Repositories: 1
- Profile: https://github.com/teamPSG
JOSS Publication
Automated Sleep Stage Scoring Using k-Nearest Neighbors Classifier
Authors
Global Research and Development, Pfizer Inc, Groton, CT, USA, Department of Computational Sciences, Wigner Research Centre for Physics, Budapest, Hungary
Tags
Supervised clustering Polysomnography Power spectrum MATLABGitHub Events
Total
Last Year
Committers
Last synced: 10 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Tamás Kiss | b****r@s****u | 19 |
| teamPSG | 6****G | 3 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0