Skip to main content

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

Metadata

Release files for misleep 0.2.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for misleep 0.2.19
File Size Uploaded
misleep-0.2.19.tar.gz 5.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for misleep 0.2.19
File Interpreter ABI Platform
misleep-0.2.19-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 16.3 MB

Release files / misleep-0.2.19.tar.gz

Download URL misleep-0.2.19.tar.gz
Size 5.0 MB
Tags Source
SHA-256 checksum
How to use checksums
e0c81648faf58d68c5807cfb52a09c5ccfed608ce85c1f9c9972926bdb16331b
BLAKE2b-256 checksum
How to use checksums
ec22fb71780de5cff14d1b62619ae1bc3b8dd126fa4fb15df450bc7b82ccf9df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.18

Release files / misleep-0.2.19-py2.py3-none-any.whl

Download URL misleep-0.2.19-py2.py3-none-any.whl
Size 11.3 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
65eb86d5d1bff289e19f7aeaac9341308a4ec029122b3a0ee3513dc25565f0fc
BLAKE2b-256 checksum
How to use checksums
96c19146323256d6c1f6248fb0ca19a785ddcc0e8c1900e60f7ab0dd9badee50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.18

Release history Release notifications | RSS feed

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

This release

0.2.19 This release

2 release files

0.2.18

2 release files

0.2.17

2 release files

0.2.16

2 release files

0.2.13

2 release files

0.2.12

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.24

2 release files

0.1.23

2 release files

0.1.22

2 release files

0.1.21

1 release file

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page