Skip to main content

Random walk analysis tool using graph neural networks

Project description

ReadTheDocs Project generated with PyScaffold

GRATIN (Graphs on Trajectories for Inference)

Gratin is an analysis tool for stochastic trajectories, based on graph neural networks.

First, each trajectory is turned into a graph, in which positions are nodes, and edges are drawn between them following a pattern based on their time difference.

Then, features computed from normalized positions are attached to nodes : cumulated distance covered since origin, distance to origin, maximal step size since origin…

These graphs are then passed as input to a graph convolution module (graph neural network), which outputs, for each trajectory, a latent representation in a high-dimensional space.

This fixed-size latent vector is then passed as input to task-specific modules, which can predict the anomalous exponent or the random walk type. Several output modules can be trained at the same time, using the same graph convolution module, by summing task-specific losses.

The model can receive trajectories of any size as inputs. The high-dimensional latent representation of trajectories can be projected down to a 2D space for visualisation and provides interesting insights regarding the information extracted by the model (see details in the paper).

Warning

Gratin relies on the pytorch-geometric package. See here to install it on your machine.

Reference

  • Hippolyte Verdier, Maxime Duval, François Laurent, Alhassan Cassé, Christian Vestergaard, et al.. Learning physical properties of anomalous random walks using graph neural networks. 2021. : https://arxiv.org/abs/2103.11738

  • Hippolyte Verdier, François Laurent, Alhassan Cassé, Christian L. Vestergaard, Christian G. Specht, Jean-Baptiste Masson A maximum mean discrepancy approach reveals subtle changes in α-synuclein dynamics. 2022 : https://doi.org/10.1101/2022.04.11.487825

Note

This project has been set up using PyScaffold 4.1.3. For details and usage information on PyScaffold see https://pyscaffold.org/.

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

gratin-0.1.2.tar.gz (3.0 MB view hashes)

Uploaded Source

Built Distribution

gratin-0.1.2-py2.py3-none-any.whl (54.0 kB view hashes)

Uploaded Python 2 Python 3

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