Skip to main content

ResiliPy - A machine-learning based Mouse labelling GUI.

Project description

Readme

ResiliPy provides an accessible machine-learning based framework for classifying mice according to their stress resilience based on tracking data.

Motivation

Resilience research in mice using the chronic social defeat paradigm commonly depends on the social interaction (SI) ratio to group animals into those that are susceptible and resilient to stress. The SI ratio only considers the time spent near the aggressor mouse during the social interaction test, not considering many possible indicators of resilient or susceptible behaviour.

Here ResiliPy offers an alternative labelling approach that does not consider the distance to the aggressor animal directly, but rather takes the relative distances for each time point into consideration, setting up a distribution of relative distance measures. Using percentiles from this distribution gives more detailed information about the overall behaviour of the animals. In combination with preassigned resilience labels, a machine learning model is trained to classify new animals by their resilience.

To simplify use, the classification and pre-processing process has been integrated into a graphical user interface. Accordingly, no programming knowledge is required to use ResiliPy.

Structure

ResiliPy consists of three main modules:

Labeller

The Labeller performs the classification task itself on a dataset of unlabelled animals. Based on a loaded machine-learning model, an imported pre-processed (see Preprocessor) dataset can be classified.

Preprocessor

The given classification approach requires relative distance distributions extracted from the tracking data. This process if performed with the Preprocessor. Given raw Ethovision tracking files, the coordinates are transformed into the needed format. The extracted dataset can subsequently be used for labelling.

Builder

For classification, it is highly advisable to use a model that has been trained with comparable data. New machine learning models can be imported and used in ResiliPy. An optimised model can be imported into the Builder together with training data to create a .model file. This is then imported into the Labeller for classification.

Installation & Launch

With Python installed, ResiliPy can be installed via the Python Packaging Index (PyPI). In the terminal or command promt, type:

pip install resilipy

ResiliPy can be launched by typing in the terminal:

python -m resilipy

References

License

MIT License (MIT). See License file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resilipy-0.0.10.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

resilipy-0.0.10-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

Details for the file resilipy-0.0.10.tar.gz.

File metadata

  • Download URL: resilipy-0.0.10.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for resilipy-0.0.10.tar.gz
Algorithm Hash digest
SHA256 fbf1620d04fb01bda4857dc4e088809cdb031f0bebc70148f7405cc91dfdb01b
MD5 df528d27bb256445a2a2a0d38c17d519
BLAKE2b-256 d8c2d81f8a78568abd6eff2dfa849c320ac75cd20083982eb25ed0c72c7c13da

See more details on using hashes here.

File details

Details for the file resilipy-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: resilipy-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 30.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for resilipy-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 d329d9836495e64eb794076de1bb4b90a2c946b16d9cb2ebaac7b46b01098967
MD5 060295b0d6445595f3b3b9a60a486a72
BLAKE2b-256 4f3b4769231a871b01d6c5b4c39298656ee13b0926a33e9a2466d5d6be2a36ca

See more details on using hashes here.

Supported by

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