Skip to main content

A Python package for simulating and analyzing 1D chemotaxis models using noisy spatiotemporal data.

Project description

This has been built upon the paper "Learning partial differential equations for biological transport models from noisy spatiotemporal data". See https://arxiv.org/abs/1902.04733

We investigate methods for discovering the governing parameters of a partial differential equation (PDE) model for 1D chemotaxis from spatiotemporal data. Recent progress in this area includes sparse regression via SINDy and Physics-Informed Neural Networks (PINNs), both of which present unique challenges in the presence of noise. We analyze the performance and key vulnerabilities of both a Finite-Difference SINDy (FD-SINDy) framework and a PINN-based approach for this parameter discovery task. We then develop a novel, decoupled methodology that uses an artificial neural network (ANN) to denoise data and accurately approximate partial derivatives. We test these frameworks on the 1D chemotaxis PDE, a canonical model for biological transport. Our results highlight the critical challenges associated with derivative estimation and optimization in existing frameworks and show that our proposed decoupled approach provides a more robust path toward accurate model discovery from imperfect data.

You can view the detailed report here: Chemotaxis Findings.pdf

How to Use the Package

To run the code, please install the package and its dependencies from this repository.

  1. Installation

From your terminal, navigate to the project's root directory and run the following command to install the package:

pip install chemotaxis

  1. Usage

You can now import and run the modules directly from any Python script or notebook. The files should be run in the following order:

Generate Data: run generate_chemotaxis.py

Generate Derivatives: run generate_chemotaxis_derivatives.py

Run SINDy Model: run sindy_chemotaxis_model.py

Run PINN Model: run pinn_chemotaxis.py

Run ANN Denoiser: run ann_denoiser.py

Note: Some files (PINN and ANN-SINDy) are computationally intensive and may not run efficiently on a standard CPU. For those cases, running them on Google Colab is recommended.

-- Aditi Jantikar and Pavithra Ramesh

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

chemotaxis-0.1.1.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chemotaxis-0.1.1-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file chemotaxis-0.1.1.tar.gz.

File metadata

  • Download URL: chemotaxis-0.1.1.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for chemotaxis-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e324af857f746167035231e5257ba92189581b4801cf4520175c918b6dbd62f2
MD5 610e6a7e7dc103bc355886bf43c0a5a0
BLAKE2b-256 726569ffab3820542c1b3d78c5a9b04789caed8f99d0c1ad7b8ba7e842e0c200

See more details on using hashes here.

File details

Details for the file chemotaxis-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: chemotaxis-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for chemotaxis-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 68b1a1c45531526e736ce1e363ee77cfe50f9f0659597861ba32a993bf39cc23
MD5 ea6735e50eee4291a94e10190964afa9
BLAKE2b-256 bf224451fa24c4fb5a218ea8cdf292c2c7dc3b8b290f22bb61e8faca0a1873f4

See more details on using hashes here.

Supported by

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