AquaPulse
Robust computer vision and uncertainty estimation for aquatic ecosystems
Non-invasive fish detection, tracking and population estimation for turbid rivers. It runs at 52.6 FPS on a laptop GPU and turns raw underwater video into counts with uncertainty, extinction-risk estimates and a ready-made PDF report.
- 52.6 FPS
- RTX 4060 laptop GPU
- 142.8 FPS
- NVIDIA A100 server
- +34.2%
- Detection recall under severe turbidity
- 3.2 ms
- Preprocessing cost per frame
Abstract
The problem and the idea
Monitoring fish in turbid rivers and coastal waters runs into severe optical degradation, overlapping specimens, fast movement and predator–prey interactions that a camera simply cannot see. AquaPulse is an end-to-end open-source framework that fuses CUDA-accelerated optical preprocessing, deep neural detection, persistent multi-object tracking, stochastic data assimilation and a local LLM. It produces continuous, non-invasive censuses without disturbing the habitat, and gives early warning of population collapse even when apex predators stay hidden.
Pipeline
How it flows
- Data
- Model / compute
- Processing
- Control step
- Output / guard
- 1 Fisheye 3D ray warp 1.2–8.5 ms · CUDA
- 2 MSRCR dehazing 2.0–16.0 ms · LAB CLAHE
- 3 YOLOv8 ensemble 4.2–88.1 ms · TensorRT
- 4 BoT-SORT + ByteTrack 1.5–5.2 ms · Kalman
- 5 EnKF update 0.8–2.1 ms · 100 members
- 6 4-pane HUD 2.1–6.4 ms · OpenCV
- 1 Lock specimen Unique track ID + crop
- 2 GBIF taxonomy REST + disk cache
- 3 Diversity metrics Shannon H' · Pielou J'
- 4 Llama 3 agent Ollama · voice dialogue
- 5 LaTeX report Auto-compiled PDF
Method
How it works
-
1
Optical preprocessing
Dual-fisheye 360° footage is remapped to rectilinear video by GPU grid sampling, then Multi-Scale Retinex with Colour Restoration recovers true surface colour in turbid water.
-
2
Detection & tracking
A prioritised YOLOv8 weight ensemble detects specimens; BoT-SORT (camera-motion compensation + Re-ID) and ByteTrack keep persistent IDs so fish are never double-counted.
-
3
Stochastic assimilation
Deduplicated prey counts are assimilated into a Lotka–Volterra predator–prey SDE with a 100-member Ensemble Kalman Filter, estimating unobserved predators and Monte-Carlo extinction risk.
-
4
Trajectory forecasting
A neural SDE with a graph-attention drift term forecasts 30-second movement cones for each specimen and the swarm.
Results
What it delivers
| Hardware | Preprocessing | Inference | Total |
|---|---|---|---|
| NVIDIA RTX 4060 Laptop | 3.2 ms | 12.4 ms | 52.6 FPS |
| NVIDIA A100 GPU Server | 1.1 ms | 4.2 ms | 142.8 FPS |
| Intel Core i7 (CPU only) | 24.5 ms | 88.1 ms | 8.8 FPS |
- Real time on consumer hardware: over 50 FPS on a laptop GPU and 140+ FPS on a server.
- Dehazing adds only 3.2 ms per frame while lifting detection recall by 34.2% in severe turbidity.
- Each session exports annotated video, per-frame tracks, analytical plots and an automatically compiled LaTeX PDF report.
- Ships as a Docker image, a Linux .deb package, a Windows installer and a Flutter Android app.
Models & downloads
Download and run it
parsabe/AquaPulse
Hugging Face model
Get everything
# Command line
pip install -U huggingface_hub
hf download parsabe/AquaPulse --local-dir aquapulse
# Python
from huggingface_hub import snapshot_download
path = snapshot_download("parsabe/AquaPulse")
# Git (large files via LFS)
git lfs install
git clone https://huggingface.co/parsabe/AquaPulse
Built with
- PyTorch
- CUDA
- YOLOv8
- BoT-SORT
- ByteTrack
- EnKF
- Ollama · Llama 3
- Flutter
- Docker
Acknowledgements
Built on Ultralytics YOLOv8, BoT-SORT, ByteTrack and Ollama. Species taxonomy and reference images come from the Global Biodiversity Information Facility (GBIF). The data-assimilation approach follows Björn Sprungk's course on probabilistic forecasting and data assimilation.
BibTeX
@misc{aquapulse2026,
author = {Besharat, Parsa},
title = {{AquaPulse}: Robust Computer Vision and Uncertainty Estimation for Aquatic Ecosystems},
year = {2026},
url = {https://www.researchgate.net/publication/413441552}
}