Package for fitting Hidden Multivariate pattern model to time-series
Project description
HMP
HMP is an open-source Python package to analyze neural time-series (e.g. EEG) to estimate Hidden Multivariate Patterns. HMP is described in Weindel, van Maanen & Borst (2024, paper ) and is a generalized and simplified version of the HsMM-MVPA method developed by Anderson, Zhang, Borst, & Walsh (2016).
As a summary of the method, an HMP model parses the reaction time into a number of successive events determined based on patterns in a neural time-serie (e.g. EEG, MEG). Hence any reaction time (or any other relevant behavioral duration) can then be described by a number of cognitive events and the duration between them estimated using HMP. The important aspect of HMP is that it is a whole-brain analysis (or whole scalp analysis) that estimates the peak of trial-recurrent multivariate events on a single-trial basis. These by-trial estimates allow you then to further dig into any aspect you are interested in a signal:
- Describing an experiment or a clinical sample in terms of events detected in the EEG signal
- Describing experimental effects based on the time onset of a particular event
- Estimating the effect of trial-wise manipulations on the identified event presence and time occurrence (e.g. the by-trial variation of stimulus strength or the effect of time-on-task)
- Time-lock EEG signal to the onset of a given event and perform classical ERPs or time-frequency analysis based on the onset of a new event
- And many more (e.g. evidence accumulation models, classification based on the number of events in the signal,...)
Documentation
The documentation for the latest version is available on readthedocs: https://hmp.readthedocs.io/en/latest/welcome.html
To get started
To get started with the code you can run the different tutorials in docs/source/notebooks after having installed HMP (see documentation)
- General aspects on HMP (tutorial 1)
- The different estimation methods (tutorial 2)
- Applying HMP to real data (tutorial 3)
- Load your own EEG data
Citation:
To cite the HMP method you can use the following paper:
Weindel, G., van Maanen, L., & Borst, J. P. (2024). Trial-by-trial detection of cognitive events in neural time-series. Imaging Neuroscience, 2, 1-28.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hmp-1.0.0b2.tar.gz.
File metadata
- Download URL: hmp-1.0.0b2.tar.gz
- Upload date:
- Size: 60.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e0d680d586cfb36e37f39ae30562c66571f1eebabb58b3c40b735820e31060a
|
|
| MD5 |
6596a7e2defa4a35ca4ade35a7dc4932
|
|
| BLAKE2b-256 |
ce9e5d3e097feb0df032827e99e59b3b4a724669e2b762610def70d84b92d821
|
File details
Details for the file hmp-1.0.0b2-py3-none-any.whl.
File metadata
- Download URL: hmp-1.0.0b2-py3-none-any.whl
- Upload date:
- Size: 50.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c35a0219921140b9c3b6f128767da3b9090d9c014019f1c20295725a847431f
|
|
| MD5 |
0abb93a944b8909f8ef0fe20d301a31c
|
|
| BLAKE2b-256 |
e48a64c84bc9e36c7a45c6ea7b83b8e632225c655df5b865cb9829d81cb4392e
|