需要 Python 3.9-3.13,版本不匹配会装不上;btrack>=0.5.1 改用 C++17 编译,从源码构建需注意编译器支持;README 未说明默认端口或额外模型下载。

btrack
quantumjotMIT活跃维护基于贝叶斯推断的多目标跟踪库,用卡尔曼滤波和全局优化把细胞等目标的检测结果串成连续轨迹,适合处理拥挤、遮挡场景下的追踪。
Bayesian multi-object tracking
pip install btrackREADME 未说明显存或 GPU 要求;已测试平台为 x86_64 上的 macOS>=11、Ubuntu>=20.04、Windows>=10.0.17763。
用贝叶斯概率网络做多目标跟踪的 Python 库,专为拥挤场景下的细胞轨迹重建设计
基于贝叶斯推断的多目标跟踪库,用卡尔曼滤波和全局优化把细胞等目标的检测结果串成连续轨迹,适合处理拥挤、遮挡场景下的追踪。
核心能力
- 用贝叶斯信念矩阵评估每条潜在连接的后验概率
- 结合空间位置与外观信息进行轨迹连接
- 先构建无分裂事件的可靠 tracklet,再全局组装
- 用多假设检验与整数规划求全局最优轨迹
- 提供 Napari 插件 arboretum 做图可视化
容易踩的坑
- v0.7.0最新正式版2025-09-29 · 2025-09-29 02:01 UTC
btrack v0.7.0
:tada: Major release to provide updated compatibility with napari 0.6!
What's Changed
- Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows by @dependabot[bot] in https://github.com/quantumjot/btrack/pull/410
- Update .readthedocs.yaml by @quantumjot in https://github.com/quantumjot/btrack/pull/415
- Unpin pydantic by @kephale in https://github.com/quantumjot/btrack/pull/414
- Update runners by @quantumjot in https://github.com/quantumjot/btrack/pull/417
- Cleanup by @quantumjot in https://github.com/quantumjot/btrack/pull/416
- Update deploy workflow by @quantumjot in https://github.com/quantumjot/btrack/pull/419
- Update deploy workflow by @quantumjot in https://github.com/quantumjot/btrack/pull/420
- workflow updates by @quantumjot in https://github.com/quantumjot/btrack/pull/423
- update to verbose deployment by @quantumjot in https://github.com/quantumjot/btrack/pull/424
- add back pypi deployment by @quantumjot in https://github.com/quantumjot/btrack/pull/425
New Contributors
- @dependabot[bot] made their first contribution in https://github.com/quantumjot/btrack/pull/410
- @kephale made their first contribution in https://github.com/quantumjot/btrack/pull/414
Full Changelog: https://github.com/quantumjot/btrack/compare/v0.6.5...v0.7.0
- v0.7.0rc1pre-release2025-09-27 · 2025-09-27 19:08 UTC
查看更新说明
What's Changed
🎉 Major release to provide updated compatibility with napari 0.6!
- Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows by @dependabot[bot] in https://github.com/quantumjot/btrack/pull/410
- Update .readthedocs.yaml by @quantumjot in https://github.com/quantumjot/btrack/pull/415
- Unpin pydantic by @kephale in https://github.com/quantumjot/btrack/pull/414
- Update runners by @quantumjot in https://github.com/quantumjot/btrack/pull/417
- Cleanup by @quantumjot in https://github.com/quantumjot/btrack/pull/416
- Update deploy workflow by @quantumjot in https://github.com/quantumjot/btrack/pull/419
- Update deploy workflow by @quantumjot in https://github.com/quantumjot/btrack/pull/420
- workflow updates by @quantumjot in https://github.com/quantumjot/btrack/pull/423
- update to verbose deployment by @quantumjot in https://github.com/quantumjot/btrack/pull/424
- add back pypi deployment by @quantumjot in https://github.com/quantumjot/btrack/pull/425
New Contributors
- @dependabot[bot] made their first contribution in https://github.com/quantumjot/btrack/pull/410
- @kephale made their first contribution in https://github.com/quantumjot/btrack/pull/414
Full Changelog: https://github.com/quantumjot/btrack/compare/v0.6.5...v0.7.0
- v0.6.6rc5pre-release2025-09-27 · 2025-09-27 18:54 UTC
查看更新说明
What's Changed
- update to verbose deployment by @quantumjot in https://github.com/quantumjot/btrack/pull/424
Full Changelog: https://github.com/quantumjot/btrack/compare/v0.6.6rc3...v0.6.6rc5
- v0.6.6rc4pre-release2025-09-27 · 2025-09-27 18:48 UTC
查看更新说明
What's Changed
- update to verbose deployment by @quantumjot in https://github.com/quantumjot/btrack/pull/424
Full Changelog: https://github.com/quantumjot/btrack/compare/v0.6.6rc3...v0.6.6rc4
- v0.6.6rc3pre-release2025-09-27 · 2025-09-27 18:24 UTC
查看更新说明
What's Changed
- workflow updates by @quantumjot in https://github.com/quantumjot/btrack/pull/423
Full Changelog: https://github.com/quantumjot/btrack/compare/v0.6.6rc2...v0.6.6rc3
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。

Bayesian Tracker (btrack) 🔬💻
btrack is a Python library for multi object tracking, used to reconstruct trajectories in crowded fields.
Here, we use a probabilistic network of information to perform the trajectory linking.
This method uses spatial information as well as appearance information for track linking.
The tracking algorithm assembles reliable sections of track that do not contain splitting events (tracklets). Each new tracklet initiates a probabilistic model, and utilises this to predict future states (and error in states) of each of the objects in the field of view. We assign new observations to the growing tracklets (linking) by evaluating the posterior probability of each potential linkage from a Bayesian belief matrix for all possible linkages.
The tracklets are then assembled into tracks by using multiple hypothesis testing and integer programming to identify a globally optimal solution. The likelihood of each hypothesis is calculated for some or all of the tracklets based on heuristics. The global solution identifies a sequence of high-likelihood hypotheses that accounts for all observations.
We developed btrack for cell tracking in time-lapse microscopy data.
Installation
btrack has been tested with (Python 3.9-3.13)
on
x86_64 macos>=11, ubuntu>=20.04 and windows>=10.0.17763.
Note that btrack<=0.5.0 was built against earlier versions of
Eigen which used C++11, as of btrack>=0.5.1
it is now built against C++17.
Installing the latest stable version
pip install btrack
Usage examples
Visit btrack documentation to learn how to use it and see other examples.
Cell tracking in time-lapse imaging data
We provide integration with Napari, including a plugin for graph visualization, arboretum.

Video of tracking, showing automatic lineage determination
Development
The tracker and hypothesis engine are mostly written in C++ with a Python wrapper. If you would like to contribute to btrack, you will need to install the latest version from GitHub. Follow the instructions on our developer guide.
Citation
More details of how this type of tracking approach can be applied to tracking cells in time-lapse microscopy data can be found in the following publications:
Automated deep lineage tree analysis using a Bayesian single cell tracking approach
Ulicna K, Vallardi G, Charras G and Lowe AR.
Front in Comp Sci (2021)
Local cellular neighbourhood controls proliferation in cell competition
Bove A, Gradeci D, Fujita Y, Banerjee S, Charras G and Lowe AR.
Mol. Biol. Cell (2017)
@ARTICLE {10.3389/fcomp.2021.734559,
AUTHOR = {Ulicna, Kristina and Vallardi, Giulia and Charras, Guillaume and Lowe, Alan R.},
TITLE = {Automated Deep Lineage Tree Analysis Using a Bayesian Single Cell Tracking Approach},
JOURNAL = {Frontiers in Computer Science},
VOLUME = {3},
PAGES = {92},
YEAR = {2021},
URL = {https://www.frontiersin.org/article/10.3389/fcomp.2021.734559},
DOI = {10.3389/fcomp.2021.734559},
ISSN = {2624-9898}
}
@ARTICLE {Bove07112017,
author = {Bove, Anna and Gradeci, Daniel and Fujita, Yasuyuki and Banerjee,
Shiladitya and Charras, Guillaume and Lowe, Alan R.},
title = {Local cellular neighborhood controls proliferation in cell competition},
volume = {28},
number = {23},
pages = {3215-3228},
year = {2017},
doi = {10.1091/mbc.E17-06-0368},
URL = {http://www.molbiolcell.org/content/28/23/3215.abstract},
eprint = {http://www.molbiolcell.org/content/28/23/3215.full.pdf+html},
journal = {Molecular Biology of the Cell}
}