MiSleep
MiSleep is for EEG/EMG signal processing and visualization
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
- 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.
- 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.
- 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.
- 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)
| File | Size | Uploaded | |
|---|---|---|---|
| misleep-0.2.19.tar.gz | 5.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|