Skip to main content

BiaPy: Bioimage analysis pipelines in Python

Project description

BiaPy logo

BiaPy: Accessible deep learning on bioimages

Code consistency Upload BiaPy to PyPI Publish Docker image

🔥NEWS🔥: BiaPy's paper is finally out in Nature Methods! Check it out at: https://www.nature.com/articles/s41592-025-02699-y

For those who have no access to Nature Methods, here is the preprint at bioRxiv: https://www.biorxiv.org/content/10.1101/2024.02.03.576026v3

BiaPy is an open source library and application that streamlines the use of common deep-learning workflows for a large variety of bioimage analysis tasks, including 2D and 3D semantic segmentation, instance segmentation, object detection, image denoising, single image super-resolution, self-supervised learning, image classification and image to image translation.

BiaPy is a versatile platform designed to accommodate both proficient computer scientists and users less experienced in programming. It offers diverse and user-friendly access points to our workflows.

This repository is actively under development by the BiaPy Team, a group of contributors from different research institutions.

BiaPy workflows

Description videos

Find a comprehensive overview of BiaPy and its functionality in the following videos:

BiaPy history and GUI demo
BiaPy history and GUI demo at RTmfm by Ignacio Arganda-Carreras and Daniel Franco-Barranco.
BiaPy presentation
BiaPy presentation at Virtual Pub of Euro-BioImaging by Ignacio Arganda-Carreras.

User interface

You can also use BiaPy through our graphical user interface (GUI).

BiaPy GUI

Download BiaPy GUI for you OS

Project's page: [BiaPy GUI]

Scientific publications using BiaPy

López-Cano, Daniel, et al. "Characterizing Structure Formation through Instance Segmentation" (2023).

This study presents a machine-learning framework to predict the formation of dark matter haloes from early universe density perturbations. Utilizing two neural networks, it distinguishes particles comprising haloes and groups them by membership. The framework accurately predicts halo masses and shapes, and compares favorably with N-body simulations. The open-source model could enhance analytical methods of structure formation by analyzing initial condition variations. BiaPy is used in the creation of the watershed approach.

[Documentation (not yet)] [Paper]
Franco-Barranco, Daniel, et al. "Current Progress and Challenges in Large-scale 3D Mitochondria Instance Segmentation." (2023).

This paper reports the results of the MitoEM challenge on 3D instance segmentation of mitochondria in electron microscopy images, held in conjunction with IEEE-ISBI 2021. The paper discusses the top-performing methods, addresses ground truth errors, and proposes a new scoring system to improve segmentation evaluation. Despite progress, challenges remain in segmenting mitochondria with complex shapes, keeping the competition open for further submissions. BiaPy is used in the creation of the MitoEM challenge baseline (U2D-BC).

[Documentation] [Paper] [Toolbox]
Backová, Lenka, et al. "Modeling Wound Healing Using Vector Quantized Variational Autoencoders and Transformers." 2023 IEEE 20th International Symposium on Biomedical Imaging (ISBI). IEEE, 2023.

This study focuses on time-lapse sequences of Drosophila embryos healing from laser-incised wounds. The researchers employ a two-stage approach involving a vector quantized variational autoencoder and an autoregressive transformer to model wound healing as a video prediction task. BiaPy is used in the creation of the wound segmentation masks.

[Documentation] [Paper]
Andrés-San Román, Jesús A., et al. "CartoCell, a high-content pipeline for 3D image analysis, unveils cell morphology patterns in epithelia." Cell Reports Methods (2023)

Combining deep learning and 3D imaging is crucial for high-content analysis. CartoCell is introduced, a method that accurately labels 3D epithelial cysts, enabling quantification of cellular features and mapping their distribution. It's adaptable to other epithelial tissues. CartoCell method is created using BiaPy.

[Documentation] [Paper]
Franco-Barranco, Daniel, et al. "Deep learning based domain adaptation for mitochondria segmentation on EM volumes." Computer Methods and Programs in Biomedicine 222 (2022): 106949.

This study addresses mitochondria segmentation across different datasets using three unsupervised domain adaptation approaches, including style transfer, self-supervised learning, and multi-task neural networks. To ensure robust generalization, a new training stopping criterion based on source domain morphological priors is proposed. BiaPy is used for the implementation of the Attention U-Net.

[Documentation] [Paper]
Franco-Barranco, Daniel, et al. "Stable deep neural network architectures for mitochondria segmentation on electron microscopy volumes." Neuroinformatics 20.2 (2022): 437-450.

Recent deep learning models have shown impressive performance in mitochondria segmentation, but often lack code and training details, affecting reproducibility. This study follows best practices, comprehensively comparing state-of-the-art architectures and variations of U-Net models for mitochondria segmentation, revealing their impact and stability. The research consistently achieves state-of-the-art results on various datasets, including EPFL Hippocampus, Lucchi++, and Kasthuri++. BiaPy is used for the implementation of the methods compared in the study.

[Documentation] [Paper]
Wei, Donglai, et al. "Mitoem dataset: Large-scale 3d mitochondria instance segmentation from em images." International Conference on Medical Image Computing and Computer-Assisted Intervention. Cham: Springer International Publishing, 2020.

Existing mitochondria segmentation datasets are small, raising questions about method robustness. The MitoEM dataset introduces larger 3D volumes with diverse mitochondria, challenging existing instance segmentation methods, highlighting the need for improved techniques. BiaPy is used in the creation of the MitoEM challenge baseline (U2D-BC).

[Documentation] [Paper] [Challenge]

Authors

Name Role Affiliations
Daniel Franco-Barranco Creator, Implementation, Software design
  • Dept. of Computer Science and Artificial Intelligence, University of the Basque Country (UPV/EHU)
  • Donostia International Physics Center (DIPC)
Lenka Backová Implementation
  • Biofisika Institute
Aitor Gonzalez-Marfil Implementation
  • Dept. of Computer Science and Artificial Intelligence, University of the Basque Country (UPV/EHU)
  • Donostia International Physics Center (DIPC)
Ignacio Arganda-Carreras Supervision, Implementation
  • Dept. of Computer Science and Artificial Intelligence, University of the Basque Country (UPV/EHU)
  • Donostia International Physics Center (DIPC)
  • IKERBASQUE, Basque Foundation for Science
  • Biofisika Institute
Arrate Muñoz-Barrutia Supervision
  • Dept. de Bioingenieria, Universidad Carlos III de Madrid

External collaborators

Name Role Affiliations
Jesús Ángel Andrés-San Román Implementation
  • Instituto de Biomedicina de Sevilla (IBiS), Hospital Universitario Virgen del Rocío/CSIC/Universidad de Sevilla and Dept. de Biología Celular, Facultad de Biología, Universidad de Sevilla
  • Biomedical Network Research Centre on Neurodegenerative Diseases (CIBERNED)
Pedro Javier Gómez Gálvez Supervision, Implementation
  • Instituto de Biomedicina de Sevilla (IBiS), Hospital Universitario Virgen del Rocío/CSIC/Universidad de Sevilla and Dept. de Biología Celular, Facultad de Biología, Universidad de Sevilla
  • MRC Laboratory of Molecular Biology
  • Department of Physiology, Development and Neuroscience, University of Cambridge
Luis M. Escudero Supervision
  • Instituto de Biomedicina de Sevilla (IBiS), Hospital Universitario Virgen del Rocío/CSIC/Universidad de Sevilla and Dept. de Biología Celular, Facultad de Biología, Universidad de Sevilla
  • Biomedical Network Research Centre on Neurodegenerative Diseases (CIBERNED)
Iván Hidalgo Cenalmor Implementation
  • Optical cell biology group, Instituto Gulbenkian de Ciência, Oerias, Portugal
Donglai Wei Supervision
  • Boston College
Clément Caporal Implementation
  • Laboratoire d’Optique et Biosciences, CNRS, Inserm, Ecole Polytechnique
Anatole Chessel Supervision
  • Laboratoire d’Optique et Biosciences, CNRS, Inserm, Ecole Polytechnique

Citation

Please note that BiaPy is based on a publication. If you use it successfully for your research please be so kind to cite our work:

Franco-Barranco, D., Andrés-San Román, J.A., Hidalgo-Cenalmor, I.,
Backová, L., González-Marfil, A., Caporal, C., Chessel, A., Gómez-Gálvez, P.,
Escudero, L.M., Wei, D., Muñoz-Barrutia, A. and Arganda-Carreras, I.
BiaPy: accessible deep learning on bioimages. Nat Methods 22, 1124–1126 (2025).
https://doi.org/10.1038/s41592-025-02699-y

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

biapy-3.6.1.tar.gz (372.2 kB view details)

Uploaded Source

Built Distribution

biapy-3.6.1-py3-none-any.whl (434.6 kB view details)

Uploaded Python 3

File details

Details for the file biapy-3.6.1.tar.gz.

File metadata

  • Download URL: biapy-3.6.1.tar.gz
  • Upload date:
  • Size: 372.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for biapy-3.6.1.tar.gz
Algorithm Hash digest
SHA256 193600deef0949e621b3fb777dfeee2c485eb38f2e24b4f6ddda9c13d7d0e8b6
MD5 9c484378a71b3c2793e598975f8bd319
BLAKE2b-256 9073ffad26e7c3ad229b89aaf04c1e5aa0481098c550b37e15406ac0bc0b4668

See more details on using hashes here.

Provenance

The following attestation bundles were made for biapy-3.6.1.tar.gz:

Publisher: upload_biapy_to_pypi.yml on BiaPyX/BiaPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biapy-3.6.1-py3-none-any.whl.

File metadata

  • Download URL: biapy-3.6.1-py3-none-any.whl
  • Upload date:
  • Size: 434.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for biapy-3.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2da435ad459bf001dac80a2e6afb4a892e879d7f66aa8d009697a6a9622b1870
MD5 dc171ae8717f8e9afea73f323220d98f
BLAKE2b-256 2707917f18339b700b2930afbb4f6cb5cb4ca7dfe131f0dc01907d7798472e5b

See more details on using hashes here.

Provenance

The following attestation bundles were made for biapy-3.6.1-py3-none-any.whl:

Publisher: upload_biapy_to_pypi.yml on BiaPyX/BiaPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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