DUSTrack: Semi-automated point tracking in ultrasound videos.
Project description
DUSTrack
Semi-automated point tracking in videos. Designed for ultrasound videos, but works with natural videos as well.
DUSTrack (Deep learning and optical flow-based toolkit for UltraSound Tracking) is a semi-automated framework for tracking arbitrary points in B-mode ultrasound videos. It combines deep learning with optical flow to deliver high-quality, robust tracking across diverse anatomical structures and motion patterns. The toolkit includes a graphical user interface that streamlines the generation of high-quality training data and supports iterative model refinement. It also implements a novel optical-flow-based filtering technique that reduces high-frequency frame-to-frame noise while preserving rapid tissue motion.
Features
- Hybrid approach: Combines deep learning with optical flow for accurate tracking
- User-friendly GUI: Streamlines training data generation and model refinement
- Noise reduction: Novel optical-flow-based filtering preserves rapid motion while reducing frame-to-frame noise
- Versatile: Works with ultrasound and other video types
- Flexible installation: Use GUI + optical flow only, or add deep learning capabilities
Learn more about DUSTrack in our preprint.
Installation
Option 1: GUI + Optical Flow Only (Recommended for Short Videos)
For tracking points in videos with a few hundred frames, this lightweight installation is sufficient:
pip install DUSTrack
Troubleshooting dependencies: If you encounter dependency issues, use conda with the provided requirements.yml file:
conda env create -n env-dustrack -f https://github.com/praneethnamburi/DUSTrack/raw/main/requirements.yml
conda activate env-dustrack
pip install DUSTrack
Option 2: Full Installation (Including Deep Learning)
For longer videos or ultrasound videos with repetitive motions, deep learning significantly reduces manual effort and improves tracking quality:
- Create a conda environment and install DeepLabCut by following these instructions
- Activate your DeepLabCut environment and install DUSTrack:
conda activate <your-dlc-env> pip install DUSTrack
Quick Start
from dustrack import DUSTrack
import datanavigator
# Launch the GUI with an example video
video_path = datanavigator.get_example_video() # or use your own video path
d = DUSTrack(video_path, "pn")
# The second argument is the name of the "layer" for storing tracking annotations
Next steps:
- Use the GUI to mark points of interest in your video (see Keyboard shortcuts)
- Track points using optical flow and/or train a deep learning model
- Export tracking results as a
.jsonfile for further analysis
For detailed tutorials and examples, see the documentation.
Documentation
Full documentation is available at DUSTrack.readthedocs.io.
Citation
If you use DUSTrack in your research, please cite our paper:
@article{namburi2025dustrack,
title={DUSTrack: Semi-automated point tracking in ultrasound videos},
author={Namburi, Praneeth and Pallar{\`e}s-L{\'o}pez, Roger and Rosendorf, Jessica and Folgado, Duarte and Anthony, Brian W},
journal={arXiv preprint arXiv:2507.14368},
year={2025}
}
Contributing
Contributions are welcome! Please feel free to:
- Submit a Pull Request with improvements or bug fixes
- Share your use cases and feedback (contact)
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
Project Link: https://github.com/praneethnamburi/DUSTrack
Acknowledgments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dustrack-1.0.0a1.tar.gz.
File metadata
- Download URL: dustrack-1.0.0a1.tar.gz
- Upload date:
- Size: 861.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a27c42453fe365749208db64b070796f026740295e4ae63796411794b49d43b
|
|
| MD5 |
f8e9d780272a6e54d45e051ea2f7c8e4
|
|
| BLAKE2b-256 |
cfc6612e9ebb874a3a52db2a7099956484a9b9ffaad48791454fa3b339996df9
|
File details
Details for the file dustrack-1.0.0a1-py3-none-any.whl.
File metadata
- Download URL: dustrack-1.0.0a1-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80e535e1143e74ffc570dbb4844ebd4549c9ab334199d0b4376606332fbaadbb
|
|
| MD5 |
49895bedbd8d5fa846fd6829efd2a23b
|
|
| BLAKE2b-256 |
2be96b6757aa323c15fe13d84e7ceb355f77ee0251e8f71c108bf08081f082fa
|