Skip to main content

MiSleep: Mice Sleep EEG/EMG visualization, scoring and analysis.

Reason this release was yanked:

spectrum abnormal

Project description

MiSleep

MiSleep is for EEG/EMG signal processing and visualization

logo

The name 'MiSleep' is from 'Mice Sleep' and sounds like 'my sleep'.


Get start

pip install misleep

Find the directory where you installed misleep, run

python -m misleep

If you use the miniconda or anaconda, the path will be like D:/miniconda3/envs/misleep/Lib/site-packages.

See https://bryanwang.cn/MiSleep/ for a simple documentation.


Some features

  1. Free self-define data structure

You can organize your data with matlab structure like this:

data.EEG = AN_ARRAY_OF_EEG_DATA;
data.EMG_DIFF = AN_ARRAY_OF_EMG_DIFFERENTIAL_DATA;
% Channel name must be the same with you defined above
data.channels = {'EEG' 'EMG_DIFF'};
% Sampling frequency for each channel of data
data.sf = {256 256};
% Acquisition time of your data
data.time = {'20240409-18:00:00'}; 

Or if your data format is .edf, misleep will also support well.

  1. Event Detection

For sleep spindle and sleep slow-wave activities detection, you can check the tools menu for event detection. The auto stage will coming soon.

  1. Self-define config.ini

There is a config.ini in the root directory of MiSleep source package, multiple parameters can be self define there, check config.ini for detail.

  1. Auto stage

Finally, now we have the auto stage function! Check it in the tool. The overall test accuracy of NREM and Wake is higher than 90%, and for REM, the accuracy is higher than 80%. Currently the model's result is rather fragmented in the state transition segments, we will add some constraints to fix this.

Future: Open for suggestions :).


Cite this work

If you use this software, please cite it as below. Xueqiang Wang. (2024). BryanWang0702/MiSleep. Zenodo. https://doi.org/10.5281/zenodo.14511905

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

misleep-0.2.16.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

misleep-0.2.16-py2.py3-none-any.whl (11.3 MB view details)

Uploaded Python 2Python 3

File details

Details for the file misleep-0.2.16.tar.gz.

File metadata

  • Download URL: misleep-0.2.16.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for misleep-0.2.16.tar.gz
Algorithm Hash digest
SHA256 e51dbe47d314b22c2f23ea94b59e4a295b41f753a7e5ee1ae60ca64c24b350f2
MD5 38c38f91f206b96d5505ac6a450cfd75
BLAKE2b-256 7bb4ed1455c2c3474d9e0c5b5f63e2e5b807df489ae90330479700b0af60df37

See more details on using hashes here.

File details

Details for the file misleep-0.2.16-py2.py3-none-any.whl.

File metadata

  • Download URL: misleep-0.2.16-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.3 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for misleep-0.2.16-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d3548df57337e16e28cfb7481692fc65df8a67376084587ad326582d3cdfdd21
MD5 4ac79b3234e8689e4d0170bd55eefe97
BLAKE2b-256 61d518238c25256bf5901a621103ae114cfeec60057eef2c47598ddf1da87b82

See more details on using hashes here.

Supported by

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