SharkTrack Documentation
Video kindly shared by Pelagios Kakunja
SharkTrack
A software that detects sharks and rays in underwater videos and computes MaxN 21x faster, with machine learning.
What is SharkTrack?
To protect sharks and rays, scientists and conservationists monitor their populations with underwater videos (i.e. BRUVS, RUVS, ROVs). This process requires them to manually analyse 1000s of hours of videos, which is extremely time-consuming.
SharkTrack is an AI-enhanced video annotation pipeline that uses computer vision to detect and track sharks/rays in BRUVS videos and computes ecology metrics (MaxN), used by ecologists.
We tested the performance of SharkTrack in Varini et al 2024 and found out that:
21x Faster
Computes MaxN semi-automatically, 21 times faster than manual annotation.
89% Accuracy
At detecting shark/ray in unseen locations as a single 'elasmobranch' class.
Runs Anywhere
Works on a standard laptop β no experience or advanced tech requirements needed.
Currently used by 14 research/conservation organizations
Click a location to explore
How Does It Work?
SharkTrack analyses BRUVS in two steps:

Step 1: Automatic Processing
- (a) Ingests all underwater videos in a hard drive or folder
- (b) Automatically detects and tracks elasmobranchs
- (c) Saves sightings in a CSV
- (d) Saves a screenshot for each detected elasmobranch
Step 2: Manual Review
Scroll through the screenshot (detected individuals) and:
- (e) Delete false detections (i.e. algae, trash)
- (f) Classify the species of detected elasmobranchs by renaming the screenshot filename
- (g) With a script, SharkTrack updates all sightings with the new species classifications and outputs the species-specific MaxN
Two Modes
- π Analyst Mode β Detect and track sharks in the videos. Use it to derive relative abundance with MaxN metrics.
- π Peek Mode β Just detect sharks in videos. Use it for faster analysis but without tracking or MaxN computations downstream.
Both modes run on a standard laptop and do not require WiFi.
Get Started
SharkTrack is publicly available and free to use. Follow our step-by-step guides:
If you donβt have experience with Python, donβt fear! By following the guide step-by-step you will have SharkTrack up and running in less than 10 minutes.
Contact us if you have any questions.
Publication
If you use SharkTrack, please cite:
Varini, F. et al (2024). SharkTrack. GitHub. Available at https://github.com/filippovarini/sharktrack
@article{varini2024sharktrack, title={SharkTrack: an accurate, generalisable software for streamlining shark and ray underwater video analysis}, author={Varini, F. and Gayford, J. H. and Jenrette, J. and Witt, M. J. and Garzon, F. and Ferretti, F. and Glocker, B.}, journal={arXiv preprint arXiv:2407.20623}, year={2024}}This repository is licensed with the MIT License.
Please submit any issue on GitHub. We aim to respond within a week.
Contributors
This software and related work was supported by the efforts of Filippo Varini, Joel H. Gayford, Jeremy Jenrette, Matthew J. Witt, Francesco Garzon, Francesco Ferretti, Sophie Wilday, Mark E. Bond, Michael R. Heithaus, Danielle Robinson, Devon Carter, Najee Gumbs, Vincent Webster, Ben Glocker, Fabio De Sousa Ribeiro, Rajat Rasal, Orlando Timmerman, Natalie Ng, Rui Wen Lim, Michael Sellgren, Lara Tse, Steven Chen, Maria Pia Donrelas, Manfredi Minervini, Xuen Bei (Bay) Chin, Adam Whiting, Aurora Crocini, Gabriele Bai, Stephanie Guerinfor.
Contribution
This project welcomes contributions as pull requests, issues, or suggestions by email.
This is the first step of a broader effort to develop generalisable marine species classifiers. We are looking for contributors for this project. If you want to get involved in AI-driven Ocean Conservation please email us.