deeptrack

DeepTrack2 is a modular Python library for generating, manipulating, and analyzing image data pipelines for machine learning and experimental imaging.

https://github.com/deeptrackai/deeptrack2

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README
  • Academic publication links
    Links to: nature.com
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.5%) to scientific vocabulary

Keywords

biophysics computational-pipelines data-augmentation deep-learning image-processing machine-learning microscopy optics photonics soft-matter superresolution
Last synced: 6 months ago · JSON representation ·

Repository

DeepTrack2 is a modular Python library for generating, manipulating, and analyzing image data pipelines for machine learning and experimental imaging.

Basic Info
Statistics
  • Stars: 208
  • Watchers: 7
  • Forks: 57
  • Open Issues: 38
  • Releases: 20
Topics
biophysics computational-pipelines data-augmentation deep-learning image-processing machine-learning microscopy optics photonics soft-matter superresolution
Created almost 6 years ago · Last pushed 6 months ago
Metadata Files
Readme License Citation Zenodo

README-pypi.md

DeepTrack2 - A comprehensive deep learning framework for digital microscopy.

PyPI version Python version

Installation Getting Started Examples Advanced Tutorials Developer Tutorials Cite us License

DeepTrack2 is a modular Python library for generating, manipulating, and analyzing image data pipelines for machine learning and experimental imaging.

TensorFlow Compatibility Notice: DeepTrack2 version 2.0 and subsequent do not support TensorFlow. If you need TensorFlow support, please install the legacy version 1.7.

The following quick start guide is intended for complete beginners to understand how to use DeepTrack2, from installation to training your first model. Let's get started!

Installation

DeepTrack2 2.0 requires at least python 3.9.

To install DeepTrack2, open a terminal or command prompt and run: bash pip install deeptrack or bash python -m pip install deeptrack This will automatically install the required dependencies.

Getting Started

Here you find a series of notebooks that give you an overview of the core features of DeepTrack2 and how to use them:

Overview of how to use DeepTrack 2. Creating images combining DeepTrack2 features, extracting properties, and using them to train a neural network.

Simulating a spherical particle with different image modalities and generating a movie where this particle diffuses with passive Brownian motion.

Using sources to load image files and to train a neural network.

Tracking a point particle with a convolutional neural network (CNN) using simulated particles resolved through a microscope with aberrations.

Characterizing spherical aberrations of an optical device with a convolutional neural network (CNN) using simulated images in the training process.

Characterizing aberrations of an optical device with the optimization framework Optuna.

Tracking multiple particles using a U-net trained on simulated images.

Tracking and distinguishing particles of different sizes in brightfield microscopy using a U-net trained on simulated images.

Single-shot unsupervised object detection using LodeSTAR.

Using PyTorch gradients to fit a Gaussian generated by a DeepTrack2 pipeline.

Examples

These are examples of how DeepTrack2 can be used on real datasets:

Training a fully connected neural network to identify handwritten digits using MNIST dataset.

Tracks experimental videos of a single particle.

- DTEx213 Multi-Particle tracking

Detecting quantum dots in a low SNR image.

- DTEx214 Particle Feature Extraction

Extracting the radius and refractive index of particles.

  • DTEx215 Cell Counting

Counting the number of cells in fluorescence images.

  • DTEx216 3D Multi-Particle tracking

Tracking multiple particles in 3D for holography.

  • DTEx217 GAN image generation

Using a GAN to create cell image from masks.

Specific examples for label-free particle tracking using LodeSTAR:

  • DTEx231A LodeSTAR Autotracker Template

  • DTEx231B LodeSTAR Detecting Particles of Various Shapes

  • DTEx231C LodeSTAR Measuring the Mass of Particles in Holography

  • DTEx231D LodeSTAR Detecting the Cells in the BF-C2DT-HSC Dataset

  • DTEx231E LodeSTAR Detecting the Cells in the Fluo-C2DT-Huh7 Dataset

  • DTEx231F LodeSTAR Detecting the Cells in the PhC-C2DT-PSC Dataset

  • DTEx231G LodeSTAR Detecting Plankton

  • DTEx231H LodeSTAR Detecting in 3D Holography

  • DTEx231I LodeSTAR Measuring the Mass of Simulated Particles

  • DTEx231J LodeSTAR Measuring the Mass of Cells

Specific examples for graph-neural-network-based particle linking and trace characterization using MAGIK:

  • DTEx241A MAGIK Tracing Migrating Cells

  • DTEx241B MAGIK to Track HeLa Cells

Advanced Tutorials

This section provides a list of advanced topic tutorials. The primary focus of these tutorials is to demonstrate the functionalities of individual modules and how they work in relative isolation, helping to provide a better understanding of them and their roles in DeepTrack2.

Developer Tutorials

Here you find a series of notebooks tailored for DeepTrack2's developers:

Documentation

The detailed documentation of DeepTrack2 is available at the following link: https://deeptrackai.github.io/DeepTrack2

Cite us!

If you use DeepTrack 2.1 in your project, please cite us:

https://pubs.aip.org/aip/apr/article/8/1/011310/238663 "Quantitative Digital Microscopy with Deep Learning." Benjamin Midtvedt, Saga Helgadottir, Aykut Argun, Jess Pineda, Daniel Midtvedt & Giovanni Volpe. Applied Physics Reviews, volume 8, article number 011310 (2021).

See also:

https://nostarch.com/deep-learning-crash-course Deep Learning Crash Course Benjamin Midtvedt, Jess Pineda, Henrik Klein Moberg, Harshith Bachimanchi, Joana B. Pereira, Carlo Manzo & Giovanni Volpe. 2025, No Starch Press (San Francisco, CA) ISBN-13: 9781718503922

https://www.nature.com/articles/s41467-022-35004-y "Single-shot self-supervised object detection in microscopy." Benjamin Midtvedt, Jess Pineda, Fredrik Skrberg, Erik Olsn, Harshith Bachimanchi, Emelie Wesn, Elin K. Esbjrner, Erik Selander, Fredrik Hk, Daniel Midtvedt & Giovanni Volpe Nature Communications, volume 13, article number 7492 (2022).

https://www.nature.com/articles/s42256-022-00595-0 "Geometric deep learning reveals the spatiotemporal fingerprint of microscopic motion." Jess Pineda, Benjamin Midtvedt, Harshith Bachimanchi, Sergio No, Daniel Midtvedt, Giovanni Volpe & Carlo Manzo Nature Machine Intelligence volume 5, pages 7182 (2023).

https://doi.org/10.1364/OPTICA.6.000506 "Digital video microscopy enhanced by deep learning." Saga Helgadottir, Aykut Argun & Giovanni Volpe. Optica, volume 6, pages 506-513 (2019).

Funding

This work was supported by the ERC Starting Grant ComplexSwimmers (Grant No. 677511), the ERC Starting Grant MAPEI (101001267), and the Knut and Alice Wallenberg Foundation.

Owner

  • Name: DeepTrackAI
  • Login: DeepTrackAI
  • Kind: organization

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: DeepTrack2
message: >-
  If you use this software, please cite it through
  this publication: Benjamin Midtvedt, Saga
  Helgadottir, Aykut Argun, Jesús Pineda, Daniel
  Midtvedt, Giovanni Volpe. "Quantitative Digital
  Microscopy with Deep Learning." Applied Physics
  Reviews 8 (2021), 011310.
  https://doi.org/10.1063/5.0034891
type: software
authors:
  - given-names: Benjamin
    family-names: Midtvedt
    orcid: 'https://orcid.org/0000-0001-9386-4753'
  - given-names: Jesus
    family-names: Pineda
    orcid: 'https://orcid.org/0000-0002-9197-3451'
  - given-names: Henrik
    family-names: Klein Moberg
    orcid: 'https://orcid.org/0000-0001-7275-6921'
  - given-names: Harshith
    family-names: Bachimanchi
    orcid: 'https://orcid.org/0000-0001-9497-8410' 
  - given-names: Carlo
    family-names: Manzo
    orcid: 'https://orcid.org/0000-0002-8625-0996'
  - given-names: Giovanni
    family-names: Volpe
    orcid: 'https://orcid.org/0000-0001-5057-1846'

GitHub Events

Total
  • Create event: 71
  • Release event: 2
  • Issues event: 35
  • Watch event: 45
  • Delete event: 62
  • Member event: 3
  • Issue comment event: 52
  • Push event: 762
  • Pull request review comment event: 64
  • Pull request review event: 74
  • Pull request event: 244
  • Fork event: 10
Last Year
  • Create event: 71
  • Release event: 2
  • Issues event: 35
  • Watch event: 45
  • Delete event: 62
  • Member event: 3
  • Issue comment event: 52
  • Push event: 762
  • Pull request review comment event: 64
  • Pull request review event: 74
  • Pull request event: 244
  • Fork event: 10

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 43
  • Total pull requests: 130
  • Average time to close issues: about 1 year
  • Average time to close pull requests: 8 days
  • Total issue authors: 27
  • Total pull request authors: 10
  • Average comments per issue: 0.72
  • Average comments per pull request: 0.09
  • Merged pull requests: 77
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 21
  • Pull requests: 126
  • Average time to close issues: 20 days
  • Average time to close pull requests: 5 days
  • Issue authors: 14
  • Pull request authors: 8
  • Average comments per issue: 0.19
  • Average comments per pull request: 0.08
  • Merged pull requests: 76
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • BenjaminMidtvedt (6)
  • giovannivolpe (5)
  • shuyiloe (4)
  • freeforhub (2)
  • cmanzo (2)
  • avi-xd (2)
  • HarshithBachimanchi (2)
  • Konccept (1)
  • incrl (1)
  • arthurfl (1)
  • akaShakku02 (1)
  • JChonpca (1)
  • gorkamunoz (1)
  • elindgren (1)
  • po60nani (1)
Pull Request Authors
  • Pwhsky (53)
  • mirjagranfors (27)
  • giovannivolpe (16)
  • JChonpca (11)
  • BenjaminMidtvedt (10)
  • cmanzo (9)
  • SkariZ (1)
  • adrishasarkar (1)
  • HarshithBachimanchi (1)
  • GabrielFernandezFernandez (1)
Top Labels
Issue Labels
enhancement (5) resolved (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 757 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 3
  • Total versions: 98
  • Total maintainers: 3
pypi.org: deeptrack

A deep learning framework to enhance microscopy, developed by DeepTrackAI.

  • Versions: 98
  • Dependent Packages: 0
  • Dependent Repositories: 3
  • Downloads: 757 Last month
Rankings
Forks count: 6.0%
Stargazers count: 6.1%
Average: 8.1%
Dependent repos count: 9.0%
Downloads: 9.4%
Dependent packages count: 10.0%
Last synced: 6 months ago

Dependencies

.github/workflows/python-app.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
package.json npm
pyproject.toml pypi
requirements.txt pypi
  • Sphinx ==2.2.0
  • matplotlib *
  • more_itertools *
  • numpy *
  • numpydoc *
  • pandas *
  • pint <0.20
  • pydata-sphinx-theme *
  • scikit-image *
  • scipy *
  • tensorflow *
  • tensorflow-datasets *
  • tensorflow-probability *
  • tqdm *
setup.py pypi