Non-invasive Growth Monitoring of Small Freshwater Fish in Home Aquariums via Stereo Vision

This paper proposes a non-invasive, refraction-aware stereo vision system that utilizes a YOLOv11-Pose network and specialized epipolar constraints to accurately estimate the length of small freshwater fish in home aquariums, validated on a new dataset of endangered Sulawesi ricefish.

Clemens Seibold, Anna Hilsmann, Peter Eisert

Published 2026-03-09
📖 5 min read🧠 Deep dive

Imagine you have a tiny, shy pet fish in your home aquarium. You love watching it, but you also want to know if it's growing healthy and strong. The old-fashioned way to check its size? You'd have to catch it, pull it out of the water, and measure it with a ruler. But that's stressful for the fish, and if you do it too often, you might hurt it.

This paper introduces a digital "magic ruler" that measures fish without ever touching them. It uses a special camera setup and some clever computer tricks to figure out exactly how long a fish is, even when it's swimming fast, hiding behind plants, or when the water distorts the view.

Here is how the system works, broken down into simple steps:

1. The "Two-Eyed" Camera (Stereo Vision)

Think of how you have two eyes. Your brain combines what both eyes see to understand how far away things are (depth). This system uses two cameras side-by-side, acting like a pair of eyes.

  • The Problem: When you look through a fish tank, the glass and water bend the light (refraction). It's like looking through a funhouse mirror; straight lines look curved. Standard computer vision tools get confused by this and can't measure distances accurately.
  • The Fix: The researchers taught the computer to understand the "bending" rules of the glass and water. They created a special map (called epipolar curves) that tells the computer exactly where a fish seen in the left camera should appear in the right camera, even if the image is warped.

2. The "Super Detective" AI (YOLOv11-Pose)

Once the cameras are set up, the system needs to find the fish. It uses an AI called YOLOv11-Pose.

  • What it does: Imagine a super-fast detective scanning the tank. It doesn't just draw a box around the fish; it pinpoints specific body parts like the mouth, eyes, fins, and tail.
  • The "Quality Score": Sometimes the fish is blurry, hiding behind a plant, or swimming straight toward the camera (making it look like a tiny dot). The AI has a special "honesty check." It assigns a quality score to every fish it sees:
    • High Quality: "I can clearly see the mouth and tail. I'm confident!"
    • Low Quality: "It's too blurry or hidden. I shouldn't guess."
    • Why this matters: If the computer guesses the size of a blurry fish, it ruins the data. So, the system automatically throws away the "low quality" guesses, just like you would ignore a blurry photo when trying to measure something.

3. The "3D Puzzle Solver" (Triangulation)

Once the AI finds a fish in both camera views and confirms the image is clear, it plays a game of 3D puzzle.

  • It takes the "mouth" point from the left camera and the "mouth" point from the right camera.
  • Using the special "bending light" math, it calculates exactly where that mouth is floating in 3D space.
  • It does the same for the tail.
  • Finally, it measures the distance between the 3D mouth and the 3D tail. Bam! You have the fish's length.

4. The "Swimming Direction" Filter

The system is smart enough to know when a fish is trying to trick it.

  • If a fish swims directly toward the camera, its body looks like a small circle. The AI can't tell how long it is.
  • The system checks the angle: "Is this fish swimming at me?" If yes, it ignores that measurement. It only measures fish swimming sideways, where the length is visible.

5. The "Template" Trick (Refining the Details)

To get super precise measurements, the system tries to "zoom in" on the fish's features.

  • It takes a tiny square image of the fish's eye from the left camera and tries to find that exact same square in the right camera.
  • The Catch: This works great if the background is plain (like a white wall). But if the background is full of plants and rocks, the computer gets confused, thinking a leaf is the fish's eye.
  • The Result: The researchers found that this "zoom-in" trick helps accuracy in simple tanks but can actually make things worse in messy, plant-filled tanks. So, the system adapts based on the environment.

Why This Matters

This technology is a game-changer for:

  • Home Aquarium Owners: You can keep a log of your fish's growth without ever stressing them out.
  • Conservationists: They can monitor endangered species (like the tiny Sulawesi ricefish used in this study) to see if they are healthy or sick.
  • Fish Farms: It helps farmers spot sick fish early by noticing if their growth has stalled.

In a nutshell: This paper teaches computers how to be patient, honest, and mathematically smart enough to measure tiny, wiggly fish through glass and water, all without the fish ever knowing they are being measured. It turns a messy, distorted underwater world into precise, reliable data.