Case study

Salmon Feed Pellet Counting at the Edge on NVIDIA Jetson

A land-based salmon farm needed to know how many feed pellets leave the tank uneaten, the signal for whether fish are over- or under-fed. Counting tiny pellets in turbulent outflow video by eye is impossible at scale.
  • Client: A land-based salmon farm
  • Industry: Aquaculture
  • AI capability: Computer Vision
Underwater view of a salmon tank with young salmon swimming and dozens of small yellow boxes marking feed pellets detected by the model
mAP50 on the held-out test set
0.81
F1 score on the held-out test set
0.73
Real-time inference on the edge device (PyTorch model)
~14 FPS

The challenge

Tiny pellets in turbulent water, next to particles that look like feed

Feeding salmon well means giving them as much as they will eat without overfeeding, which wastes expensive feed and affects water quality. The camera looks at turbulent outflow water full of visual noise, the pellets are only 1.5 to 12 mm across, and fish excrement and other particles look much like feed. The system also had to run unattended on low-power hardware next to the tank, without depending on a cloud connection.

What we built

Detect, track and count on a Jetson beside the tank

Each pellet gets an ID and is counted once as it crosses the counting region.

  1. Stage 1

    Data and annotation

    We annotated pellets frame by frame in the client's underwater outflow videos in CVAT, keeping each pellet's movement consistent across successive frames.
  2. Stage 2

    Detection model

    We trained YOLO detectors in several rounds (YOLOv11 first, YOLO26 later), added synthetic augmented training data and ran Weights & Biases hyper-parameter sweeps. Doubling annotations from 500 to 1,000 images lifted mAP50 from 0.36 to 0.63 at 0.3 confidence.
  3. Stage 3

    Tracking and counting

    Multi-object tracking gives each pellet an ID, and a defined counting region counts each pellet once as it crosses, so pellets are not double-counted across frames.
  4. Stage 4

    Edge deployment

    The model runs on an NVIDIA Jetson with the camera attached, as systemd services that start automatically and run unattended. TensorRT and multiprocessing variants were benchmarked.
  5. Stage 5

    Monitoring

    A FastAPI service exports metrics to Prometheus. Grafana shows the live camera stream, an exponentially smoothed pellet count, pellet distribution and model FPS, and frames with detections are saved to cloud storage.
  • Tracking view: each pellet gets an ID, and it is counted once as it crosses the counting region.

The impact

A live pellet count the farm can feed by

  • mAP50 0.81 and F1 0.73 on held-out data
  • About 14 FPS on the edge device
  • Runs unattended as auto-starting services

The system is deployed on an NVIDIA Jetson Orin NX at the client's site, with camera tuning, an auto-starting dashboard and cloud archiving of detected frames. The best model reached mAP50 0.81 and F1 0.73 on the held-out test set and runs at about 14 FPS on the edge device. The farm gets a live, smoothed pellet count on a Grafana dashboard: the signal it needs to tune feeding.

Project showcase

More from the project

Discuss a similar project
  • The Grafana dashboard: pellet counts over rolling windows and the exponentially smoothed count over time.

Book a strategy session

Talk to an AI engineer about your project

Tell us what you want to automate. The first call is a 30-minute working session with an engineer, not a sales pitch.

  • Send the form, it takes 2 minutes
  • We reply within 1 business day, under NDA if you need it
  • A 30-minute call to scope feasibility and next steps

Tell us about your project

By submitting, you agree to our Privacy Policy. We never share your details.