News
News
Home / News / How to Test AI Multi-Pet Identification: A Matrix for Similar Coats and Occlusion

How to Test AI Multi-Pet Identification: A Matrix for Similar Coats and Occlusion

Published on:2026-11-20
By:Engineering Team
Viewed:6

Milo and Otis are two brown tabby cats with nearly identical coats. Both are enrolled in the pet camera app. They cross in front of the camera, Milo disappears behind Otis, and they walk away in opposite directions. The camera correctly detects two cats when they separate, but the timeline credits Otis’s activity to Milo. A detection test can pass while the feature that pet parents rely on gets the event wrong.

For pet camera brands and technical product managers, multi pet identification testing starts with a product question. When the camera records an event, what evidence is enough to put an enrolled pet’s name on it? The matrix below tests that decision under conditions a household will encounter and shows how to count the results for a release review.

Score detection, tracking, and naming separately

  • Detection asks whether the camera finds each visible cat when it meets the test’s visibility rules. Two matched detections after the crossing tell you the camera found both cats.

  • Anonymous tracking asks whether detections across frames stay linked to the same physical cat. A track ID such as 17 is an internal label. It can stay with Milo through the crossing even if the system cannot name him.

  • Enrolled identity assignment asks whether the name attached to the event matches the real cat. A new anonymous track after re-entry can still map correctly to Milo. A stable track can also carry Otis’s name by mistake.


Keeping these layers separate makes a pet camera individual recognition failure easier to diagnose. A missed detection, a track reassigned to the other cat, and a wrong name on a stable track call for different fixes. The HOTA paper separates detection and cross-frame association and also accounts for localization. Its evaluation covers multi-object tracking. Naming an enrolled pet requires a separate comparison with independently verified household identities. HOTA: A Higher Order Metric for Evaluating Multi-Object Tracking

Build a scene validation matrix


Start with Milo and Otis alone, then introduce crossings, blind spots, and an unenrolled visitor. Repeat the scenes across households with similar-looking pets. Vary lighting, camera angle, distance, and which cat moves first. Record those conditions with the camera build and enrollment setup so a team can reproduce a failure.

Multi-pet test scenarios, expected results, and evidence
SceneActionExpected resultRecord
Single-cat baselineRecord Milo and Otis separately from the front, side, and rear.Each cat is detected and receives its own enrolled name when evidence supports it.Reference ID, view, detection, and first published name or unknown state.
Similar coats in viewKeep both cats visible, then repeat with their starting positions reversed.Two detections and distinct tracks. Names follow the cats as their positions change.Count of matched detections, track IDs, and name assignments for each cat.
Crossing occlusionHave one tabby pass in front of the other. Capture partial and full overlap in both directions.After separation, each name goes to its original cat or stays unknown while evidence is ambiguous.Overlap interval, tracks before and after overlap, switches, and event names.
One cat exits and returnsMilo leaves the frame while Otis remains. Repeat with different gaps and return edges.Otis keeps his identity. Milo is named within the specified window or logged as unresolved at the deadline.Gap duration, re-entry timestamp, time to correct name, and interim labels.
Both cats leaveClear the frame and have the cats return in the opposite order.Each name follows the returning cat. Ambiguous events remain unknown.Return order, each cat’s time to correct name, and first displayed labels.
Unenrolled visitorRecord a similar-looking visitor alone and alongside Milo.The visitor is detected and shown as unknown. Milo can still be named when identifiable.Visitor detections, unknown results, false enrolled names, and misses.
Wrong name and correctionReplay a verified mix-up, then inspect any automatic correction or supported manual edit.The correction updates the intended event. The original wrong name remains in the test record.First and final labels, correction time and source, and affected timeline entries.

Three-panel concept illustration of two similar tabby cats approaching, overlapping, and separating during a crossing.

Crossing occlusion concept illustration. Compare each tabby’s track and event label before overlap and after separation.

Two-panel concept illustration of a tabby leaving and a similar-looking tabby entering through the same doorway.

Exit and re-entry concept illustration. Start timing when the returning tabby becomes eligible for scoring again.

Establish ground truth before reviewing camera output


Use an observer or a synchronized reference camera to establish which cat is present. Keep reviewers blind to the tested system’s labels until they finalize the reference. Mark each cat’s actual identity, enrollment status, visibility, and event time. Use the reference view to verify identity, and use the tested camera’s view to decide eligibility. If the reference cannot establish identity, flag that event separately and report how many were excluded.

Before the run, define what qualifies as one expected event and how to match a published result to it. If both cats qualify during the same clip, score one event per cat. Include eligible events even when the camera generates no clip or alert. Mark fully hidden intervals so the test applies its visibility rules consistently. Record extra unmatched outputs separately so duplicate alerts and false detections remain visible.

Report counts by scene and household


Group reference-positive events by actual identity and enrollment status before looking at predictions. For enrolled pets, use every eligible event that should receive an enrolled name as the denominator for correct coverage, unknown rate, and miss rate. Give each event one outcome at the scoring point you defined in advance. A matched detection with the right name is correct, one with a different enrolled name is wrong, and a matched detection without a name is unknown. An event with no matched detection is a miss. Preserve the initial user-visible label when a later correction changes it.

For visitors, use all eligible events from verified unenrolled pets as a separate denominator. Report counts for detected and shown as unknown, incorrectly given an enrolled name, and missed. An unknown label can be the expected outcome for a visitor. For an enrolled pet, it represents an event that received no name.

Suppose a test has 100 events that should receive an enrolled name. It produces 76 correct names, 8 wrong names, 10 unknowns, and 6 misses. Correct coverage is 76/100 = 76%. The error rate among named events is 8/84 = 9.5% after rounding because 84 events received a name. The unknown rate is 10/100 = 10% and the miss rate is 6/100 = 6%. These hypothetical counts show how often a name was available and how often a published name was wrong.

Show raw counts and denominators for each scene within each household, along with the overall totals. Count track identity switches separately using a consistent cross-frame matching rule. A single switch can lead to several wrong event names. Record the switch once under the tracking rule and score each affected event under the attribution rule.

For re-entry, define the allowed window before testing from the intended product behavior. Start the clock at the first eligible frame after re-entry and stop it when the correct enrolled name becomes visible. Give the number named correctly by the deadline over all eligible re-entries. Report elapsed times for resolved cases and counts for late, wrong, unknown, and missed cases under your scoring rules. Keep early wrong names in the record even if the correct name appears before the deadline.

Assess feasibility for your camera


Use the matrix to specify where your product needs a name and where it can show an unknown state. Explore the AI algorithm modules and the Multi-Pet AI Module when scoping a candidate integration.

Send your household scenarios and recognition requirements for a feasibility assessment. Include the number of enrolled pets, how similar they look, where the camera sits, and which events need a name or a correction.

Frequently Asked Questions
Q:Can a camera keep the same track and still name the wrong cat?

A:Yes. The track can follow Milo consistently while the name assigned to it is Otis. Use the reference identity to score the published name separately from tracking continuity.

Q:How should we score an unknown label during a crossing?

A:Use the reference and your visibility rules. If a verified enrolled cat qualifies for an event and the system detects it without assigning a name, count an unknown. Score a miss if that eligible event has no matched detection.

Q:Does a returning cat need its old track ID?

A:A new track can satisfy the naming requirement if it receives the correct enrolled name within the defined window. If the product also promises track continuity across an exit, measure that requirement separately.

Relevant recommendations