scikit-neuromsi


Namescikit-neuromsi JSON
Version 1.0.2 PyPI version JSON
download
home_pageNone
SummaryImplementation of multisensory integration models in Python
upload_time2025-07-12 16:11:37
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseCopyright (c) 2021, Paredes, Renato; Cabral, Juan All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords multisensory integration computational neuroscience cognitive modelling behaviour simulation perception
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Scikit-NeuroMSI
![logo](https://raw.githubusercontent.com/renatoparedes/scikit-neuromsi/main/res/logo_banner.png)

<!-- BODY -->

[![scikit-neuromsi](https://github.com/renatoparedes/scikit-neuromsi/actions/workflows/ci.yml/badge.svg)](https://github.com/renatoparedes/scikit-neuromsi/actions/workflows/ci.yml)
[![Documentation Status](https://readthedocs.org/projects/scikit-neuromsi/badge/?version=latest)](https://scikit-neuromsi.readthedocs.io/en/latest/?badge=latest)
[![PythonVersion](https://img.shields.io/pypi/pyversions/scikit-neuromsi.svg)](https://pypi.org/project/scikit-neuromsi/)
[![PyPI](https://img.shields.io/pypi/v/scikit-neuromsi)](https://pypi.org/project/scikit-neuromsi/)
[![Coverage Status](https://coveralls.io/repos/github/renatoparedes/scikit-neuromsi/badge.svg?branch=main)](https://coveralls.io/github/renatoparedes/scikit-neuromsi?branch=main)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![License: BSD-3-Clause](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![https://github.com/leliel12/diseno_sci_sfw](https://img.shields.io/badge/DiSoftCompCi-FAMAF-ffda00)](https://github.com/leliel12/diseno_sci_sfw)
[![DOI](https://img.shields.io/badge/doi-10.1101/2025.05.26.656124-red)](https://doi.org/10.1101/2025.05.26.656124)
[![PyPI Downloads](https://static.pepy.tech/badge/scikit-neuromsi)](https://pepy.tech/projects/scikit-neuromsi)

**Scikit-NeuroMSI** is an open-source Python framework that simplifies the implementation of neurocomputational models of multisensory integration.

## Motivation

Research on the neural mechanisms underlying multisensory integration—where unisensory signals combine to produce distinct multisensory responses—has surged in recent years. Despite this progress, a unified theoretical framework for multisensory integration remains elusive. **Scikit-NeuroMSI** aims to bridge this gap by providing a standardized, flexible, and extensible platform for modeling multisensory integration, fostering the development of theories that connect neural and behavioral responses.

## Features

**Scikit-NeuroMSI** was designed to meet three fundamental requirements in the computational study of multisensory integration:

- **Modeling Standardization**: Standardized interface for implementing and analyzing different types of models. The package currently handles the following model families: Maximum Likelihood Estimation, Bayesian Causal Inference, and Neural Networks.

- **Data Processing Pipeline**: Multidimensional data processing across spatial dimensions (1D to 3D spatial coordinates), temporal sequences, and multiple sensory modalities (e.g., visual, auditory, touch).

- **Analysis Tools**: Integrated tools for parameter sweeping across model configurations, result visualization and export, and statistical analysis of model outputs.

In addition, there is a **core** module with features to facilitate the implementation of new models of multisensory integration.

## Requirements

You need Python 3.10+ to run scikit-neuromsi.

## Installation

Run the following command:

```bash
pip install scikit-neuromsi
```

or clone this repo and then inside the local directory execute:

```bash
pip install -e .
```

## Usage Examples

### Run models of multisensory integration

Simulate responses from existing models of multisensory integration (e.g.  audio-visual causal inference network from Cuppini et al. (2017)):

```python
from skneuromsi.neural import Cuppini2017

# Model setup
model_cuppini2017 = Cuppini2017(neurons=90, 
                                position_range=(0, 90))

# Model execution
res = model_cuppini2017.run(auditory_position=35, 
                            visual_position=52)

# Results plot
ax1 = plt.subplot()
res.plot.linep(ax=ax1)
ax1.set_ylabel("neural activity")
ax1.set_xlabel("stimulus location (deg)")
```
![model_result](https://raw.githubusercontent.com/renatoparedes/scikit-neuromsi/main/res/cuppini2017_output.png)

### Simulate experimental paradigms

Simulate multisensory integration experiments (e.g. causal inference under spatial disparity - "ventriloquist effect") using the parameter sweep tool:

```python
from skneuromsi.sweep import ParameterSweep
import numpy as np

# Experiment setup
spatial_disparities = np.array([-24, -12, -6, -3, 3, 6, 12, 24])

sp_cuppini2017 = ParameterSweep(model=model_cuppini2017,
                                target="visual_position",
                                repeat=1,
                                range=45 + spatial_disparities)

# Experiment run
res_sp_cuppini2017 = sp_cuppini2017.run(auditory_position=45,
                                        auditory_sigma=4.5,
                                        visual_sigma=3.5)

# Experiment results plot
ax1 = plt.subplot()
res_sp_cuppini2017.plot(kind="unity_report", label="Cuppini 2017", ax=ax1)
ax1.set_xlabel("visual position (deg)")
```
![unity_report_result](https://raw.githubusercontent.com/renatoparedes/scikit-neuromsi/main/res/causal_inference_output.png)

For more detailed examples and advanced usage, refer to the [Scikit-NeuroMSI Documentation](https://scikit-neuromsi.readthedocs.io/).

## Contribute to Scikit-NeuroMSI

We welcome contributions to Scikit-NeuroMSI! 

If you're a multisensory integration researcher, we encourage you to integrate your models directly into our package. If you're a software developer, we'd love your help in enhancing the overall functionality of Scikit-NeuroMSI. 

For detailed information on how to contribute ideas, report bugs, or improve the codebase, please refer to our [Contribuiting Guidelines](https://github.com/renatoparedes/scikit-neuromsi/blob/main/CONTRIBUTING.md).

## License

Scikit-NeuroMSI is under
[The 3-Clause BSD License](https://github.com/renatoparedes/scikit-neuromsi/blob/main/LICENSE.txt)

This license allows unlimited redistribution for any purpose as long as
its copyright notices and the license’s disclaimers of warranty are maintained.

## How to cite?

If you want to cite Scikit-NeuroMSI, please use the following references:

> Paredes, R., Cabral, J. B., & Series, P. (2025). Scikit-NeuroMSI: A Generalized Framework for Modeling Multisensory Integration. bioRxiv, 2025-05. doi: https://doi.org/10.1101/2025.05.26.656124

>Paredes, R., Series, P., Cabral, J. (2023). Scikit-NeuroMSI: a Python framework for multisensory integration modelling. IX Congreso de Matematica Aplicada, Computacional e Industrial, 9, 545–548.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "scikit-neuromsi",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "multisensory integration, computational neuroscience, cognitive modelling, behaviour simulation, perception",
    "author": null,
    "author_email": "Renato Paredes <paredesrenato92@gmail.com>, \"Juan B. Cabral\" <jbcabral@unc.edu.ar>",
    "download_url": "https://files.pythonhosted.org/packages/33/b5/5c3f33e73914a05b60dcec46521b20a615aa300e03509efc86c143f84789/scikit_neuromsi-1.0.2.tar.gz",
    "platform": null,
    "description": "# Scikit-NeuroMSI\n![logo](https://raw.githubusercontent.com/renatoparedes/scikit-neuromsi/main/res/logo_banner.png)\n\n<!-- BODY -->\n\n[![scikit-neuromsi](https://github.com/renatoparedes/scikit-neuromsi/actions/workflows/ci.yml/badge.svg)](https://github.com/renatoparedes/scikit-neuromsi/actions/workflows/ci.yml)\n[![Documentation Status](https://readthedocs.org/projects/scikit-neuromsi/badge/?version=latest)](https://scikit-neuromsi.readthedocs.io/en/latest/?badge=latest)\n[![PythonVersion](https://img.shields.io/pypi/pyversions/scikit-neuromsi.svg)](https://pypi.org/project/scikit-neuromsi/)\n[![PyPI](https://img.shields.io/pypi/v/scikit-neuromsi)](https://pypi.org/project/scikit-neuromsi/)\n[![Coverage Status](https://coveralls.io/repos/github/renatoparedes/scikit-neuromsi/badge.svg?branch=main)](https://coveralls.io/github/renatoparedes/scikit-neuromsi?branch=main)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![License: BSD-3-Clause](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n[![https://github.com/leliel12/diseno_sci_sfw](https://img.shields.io/badge/DiSoftCompCi-FAMAF-ffda00)](https://github.com/leliel12/diseno_sci_sfw)\n[![DOI](https://img.shields.io/badge/doi-10.1101/2025.05.26.656124-red)](https://doi.org/10.1101/2025.05.26.656124)\n[![PyPI Downloads](https://static.pepy.tech/badge/scikit-neuromsi)](https://pepy.tech/projects/scikit-neuromsi)\n\n**Scikit-NeuroMSI** is an open-source Python framework that simplifies the implementation of neurocomputational models of multisensory integration.\n\n## Motivation\n\nResearch on the neural mechanisms underlying multisensory integration\u2014where unisensory signals combine to produce distinct multisensory responses\u2014has surged in recent years. Despite this progress, a unified theoretical framework for multisensory integration remains elusive. **Scikit-NeuroMSI** aims to bridge this gap by providing a standardized, flexible, and extensible platform for modeling multisensory integration, fostering the development of theories that connect neural and behavioral responses.\n\n## Features\n\n**Scikit-NeuroMSI** was designed to meet three fundamental requirements in the computational study of multisensory integration:\n\n- **Modeling Standardization**: Standardized interface for implementing and analyzing different types of models. The package currently handles the following model families: Maximum Likelihood Estimation, Bayesian Causal Inference, and Neural Networks.\n\n- **Data Processing Pipeline**: Multidimensional data processing across spatial dimensions (1D to 3D spatial coordinates), temporal sequences, and multiple sensory modalities (e.g., visual, auditory, touch).\n\n- **Analysis Tools**: Integrated tools for parameter sweeping across model configurations, result visualization and export, and statistical analysis of model outputs.\n\nIn addition, there is a **core** module with features to facilitate the implementation of new models of multisensory integration.\n\n## Requirements\n\nYou need Python 3.10+ to run scikit-neuromsi.\n\n## Installation\n\nRun the following command:\n\n```bash\npip install scikit-neuromsi\n```\n\nor clone this repo and then inside the local directory execute:\n\n```bash\npip install -e .\n```\n\n## Usage Examples\n\n### Run models of multisensory integration\n\nSimulate responses from existing models of multisensory integration (e.g.  audio-visual causal inference network from Cuppini et al. (2017)):\n\n```python\nfrom skneuromsi.neural import Cuppini2017\n\n# Model setup\nmodel_cuppini2017 = Cuppini2017(neurons=90, \n                                position_range=(0, 90))\n\n# Model execution\nres = model_cuppini2017.run(auditory_position=35, \n                            visual_position=52)\n\n# Results plot\nax1 = plt.subplot()\nres.plot.linep(ax=ax1)\nax1.set_ylabel(\"neural activity\")\nax1.set_xlabel(\"stimulus location (deg)\")\n```\n![model_result](https://raw.githubusercontent.com/renatoparedes/scikit-neuromsi/main/res/cuppini2017_output.png)\n\n### Simulate experimental paradigms\n\nSimulate multisensory integration experiments (e.g. causal inference under spatial disparity - \"ventriloquist effect\") using the parameter sweep tool:\n\n```python\nfrom skneuromsi.sweep import ParameterSweep\nimport numpy as np\n\n# Experiment setup\nspatial_disparities = np.array([-24, -12, -6, -3, 3, 6, 12, 24])\n\nsp_cuppini2017 = ParameterSweep(model=model_cuppini2017,\n                                target=\"visual_position\",\n                                repeat=1,\n                                range=45 + spatial_disparities)\n\n# Experiment run\nres_sp_cuppini2017 = sp_cuppini2017.run(auditory_position=45,\n                                        auditory_sigma=4.5,\n                                        visual_sigma=3.5)\n\n# Experiment results plot\nax1 = plt.subplot()\nres_sp_cuppini2017.plot(kind=\"unity_report\", label=\"Cuppini 2017\", ax=ax1)\nax1.set_xlabel(\"visual position (deg)\")\n```\n![unity_report_result](https://raw.githubusercontent.com/renatoparedes/scikit-neuromsi/main/res/causal_inference_output.png)\n\nFor more detailed examples and advanced usage, refer to the [Scikit-NeuroMSI Documentation](https://scikit-neuromsi.readthedocs.io/).\n\n## Contribute to Scikit-NeuroMSI\n\nWe welcome contributions to Scikit-NeuroMSI! \n\nIf you're a multisensory integration researcher, we encourage you to integrate your models directly into our package. If you're a software developer, we'd love your help in enhancing the overall functionality of Scikit-NeuroMSI. \n\nFor detailed information on how to contribute ideas, report bugs, or improve the codebase, please refer to our [Contribuiting Guidelines](https://github.com/renatoparedes/scikit-neuromsi/blob/main/CONTRIBUTING.md).\n\n## License\n\nScikit-NeuroMSI is under\n[The 3-Clause BSD License](https://github.com/renatoparedes/scikit-neuromsi/blob/main/LICENSE.txt)\n\nThis license allows unlimited redistribution for any purpose as long as\nits copyright notices and the license\u2019s disclaimers of warranty are maintained.\n\n## How to cite?\n\nIf you want to cite Scikit-NeuroMSI, please use the following references:\n\n> Paredes, R., Cabral, J. B., & Series, P. (2025). Scikit-NeuroMSI: A Generalized Framework for Modeling Multisensory Integration. bioRxiv, 2025-05. doi: https://doi.org/10.1101/2025.05.26.656124\n\n>Paredes, R., Series, P., Cabral, J. (2023). Scikit-NeuroMSI: a Python framework for multisensory integration modelling. IX Congreso de Matematica Aplicada, Computacional e Industrial, 9, 545\u2013548.\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2021, Paredes, Renato; Cabral, Juan\n        All rights reserved.\n        \n        Redistribution and use in source and binary forms, with or without\n        modification, are permitted provided that the following conditions are met:\n        \n        * Redistributions of source code must retain the above copyright notice, this\n        list of conditions and the following disclaimer.\n        \n        * Redistributions in binary form must reproduce the above copyright notice,\n        this list of conditions and the following disclaimer in the documentation\n        and/or other materials provided with the distribution.\n        \n        * Neither the name of the copyright holder nor the names of its\n        contributors may be used to endorse or promote products derived from\n        this software without specific prior written permission.\n        \n        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n        AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n        IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n        ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n        LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n        CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n        SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n        INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n        CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n        ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n        POSSIBILITY OF SUCH DAMAGE.",
    "summary": "Implementation of multisensory integration models in Python",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/renatoparedes/scikit-neuromsi",
        "Repository": "https://github.com/renatoparedes/scikit-neuromsi"
    },
    "split_keywords": [
        "multisensory integration",
        " computational neuroscience",
        " cognitive modelling",
        " behaviour simulation",
        " perception"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2581a5379adca9709dadc6125c2ea0aeb684a54e818deaea09bbae3793172f55",
                "md5": "00a97a0b822dda7d287d2662e277d150",
                "sha256": "12c3658faa4b514656a749676dc6df6908ca78ce6e1ba51889f034a6e33bdd6a"
            },
            "downloads": -1,
            "filename": "scikit_neuromsi-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "00a97a0b822dda7d287d2662e277d150",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 100053,
            "upload_time": "2025-07-12T16:11:30",
            "upload_time_iso_8601": "2025-07-12T16:11:30.886196Z",
            "url": "https://files.pythonhosted.org/packages/25/81/a5379adca9709dadc6125c2ea0aeb684a54e818deaea09bbae3793172f55/scikit_neuromsi-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "33b55c3f33e73914a05b60dcec46521b20a615aa300e03509efc86c143f84789",
                "md5": "42e07217890c1a1d76de710632f36eea",
                "sha256": "2f0df0dd4b4cd4b5db2dfdb78dcbe6b472d281432a7b1756628734a5b2d2f229"
            },
            "downloads": -1,
            "filename": "scikit_neuromsi-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "42e07217890c1a1d76de710632f36eea",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 77647,
            "upload_time": "2025-07-12T16:11:37",
            "upload_time_iso_8601": "2025-07-12T16:11:37.300153Z",
            "url": "https://files.pythonhosted.org/packages/33/b5/5c3f33e73914a05b60dcec46521b20a615aa300e03509efc86c143f84789/scikit_neuromsi-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-12 16:11:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "renatoparedes",
    "github_project": "scikit-neuromsi",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "scikit-neuromsi"
}
        
Elapsed time: 1.80607s