Can an AI Camera Follow the Same Fish Across an Aquarium?

Use a two-view zebrafish benchmark to understand fish tracks, identity swaps and the limits of a household camera.

Several small fish swim among plants in a glass tank with a camera outside.
After two fish cross, the head count may remain correct even if their individual tracks switch.

Two similar fish cross behind a plant and emerge on opposite sides. A camera can count two fish before and after while giving their movement histories to the wrong individuals. An AI model that detects fish and a tracker that links the detections have different jobs. That distinction matters whenever an aquarium app reports that one particular fish has changed its behavior.

How the benchmark establishes a reference

Pedersen and colleagues built 3D-ZeF with synchronized views of freely moving zebrafish. Its eight sequences contain between one and ten fish. They annotated head positions and boxes to evaluate a tracking system in three dimensions. Their baseline compared two detectors, including a learned Faster R-CNN head detector. The reference tracks give a reviewer something to check when the algorithm loses a fish at a crossing. Pedersen and colleagues, 3D-ZeF tracking benchmark (PDF)

A futuristic fish with a transparent body and metallic fins is depicted in an underwater environment.
Check identities just before and after two fish cross paths.

A second view can reveal separation that the first camera misses. When both views are obscured, a plausible continuation of a track is still an inference. The study evaluates a particular setup and species. A household tank with reflective glass, plants and different fish presents a fresh validation question.

Count detections and identity swaps separately

Pause immediately before a crossing. Mark the last reliable positions. Advance until the fish are visible again, then record what distinguishes them: a continuous path, a clear individual marking or evidence from the other view. If two paths remain possible, keep the interval unresolved. An app that always draws an unbroken line can conceal how little evidence supports the assignment.

A vibrant illustration of a fish swimming amidst abstract shapes and lines.
Two correct counts can conceal an identity swap between frames.

Scoring only head count rewards a system that finds both fish even when their labels swap. For tracking, count missed detections, false detections and identity switches. Also record the time for which an individual track remains usable. One identity swap can invalidate a daily distance for an individual while leaving the number of fish in the frame correct.

What does one unusual track warrant?

Save the clip, the camera angle and the last verified identity. Compare observations from a similar time and lighting condition. A gap in the track could mean the fish moved behind a plant, the camera lost contrast, or the software assigned its identity elsewhere. Movement alone cannot diagnose the fish or determine a change in tank chemistry.

A person is observing a fish tank while using their smartphone.
Remote review works best when the original clip accompanies the alert.

A farm camera faces the same problem when it reports multiple views of one visible wound. What an Underwater AI Camera Can See on a Farmed Fish

Try it with the evidence

Audit a two-fish crossing

Source notes. Illustrative clip. Before a crossing the left fish has a distinct tail spot and is labeled A. Afterward the spot is visible on the right fish, now labeled B. Two fish are visible in each of ten reviewed frames. The app reports ten correct frame counts.

Prompt. Explain what the ten frame counts establish. Decide whether identity remained correct, identify the visual reference and specify which individual-level summaries require checking.

Check your reading

The count was two in every reviewed frame. The spotted fish changed from A to B, showing an identity error. The spot supports the finding across the crossing. Recheck distance, feeding visits and time spent in a location for both tracks before interpreting individual trends.

Illustrated field notes

Water and equipment readings
A row of cylindrical glass containers filled with water and various objects, likely for display or demonstration purposes.
Water-quality measurements and fish positions have different units.
Futuristic Control Room Monitoring Water Parameters
A suggested water adjustment needs an independently checked reading.
An underwater scene with coral reefs and marine life illuminated by artificial lighting.
A different light schedule can change the quality of the image.
An aquarium with a filtration system in a living room setting.
A filter record can help explain changes in visibility.
A serene winter scene with a window as its central focus.
Keep a measured temperature alongside a software alert.
A well-maintained aquarium or terrarium with a diverse array of plants and fish.
A counted fish supplies no direct evidence of water chemistry.
An aquarium with a curved glass wall, featuring various fish and plants, set against a mountainous landscape.
A water change can alter reflections and visible backgrounds.
A large screen displays an underwater scene in a controlled environment.
A missing track can reflect a camera problem or an obstructed view.
Food, populations and surroundings
An automated feeding system pours out gold or metal beads from a machine arm onto a tray.
A visit to a feeding area is not a measurement of food consumed.
A fish with a unique scale pattern is shown in an underwater setting, surrounded by symbols that may represent biometric data points.
A visual change can warrant a closer look while its cause remains uncertain.
An aquarium with various fish swimming in it, including a clownfish and a guppy or neon tetra.
Changes to surfaces or vegetation can obscure familiar tracking landmarks.
An aquarium with coral formations illuminated by blue light.
A coral observation requires an appropriate reference for that organism.
A woman is standing in front of a large screen displaying complex data and information.
A group movement change can have several explanations.
A colorful fish is showcased against a blurred background of lights, likely in an aquarium setting.
A proposed species identification is easier to check with the original image.
Household records and routines
An underwater scene with an aquatic life exhibit featuring a large tank filled with various fish and plants.
Keep cleaning events in the log when reviewing abrupt movement changes.
A coral reef aquarium with vibrant colors and intricate details.
Electrical energy use needs a meter reading over the same interval.
A hand holds a tablet displaying an app with customizable care profiles for plants.
An individual history needs a consistently verified identity.