Hotspotter Issue

In which Wildbook did the issue occur? Whiskerbook

What operating system were you using? Mac OS 11.5.2

What web browser were you using? Safari

What is your role on the site? researcher

What happened? When doing matching with hotspotter, I’m seeing two issues happening.

  1. It looks like there are a few instances of comparisons being done between the wrong orientations of the individuals in the images, i.e. right side compared to left side. Example at link below

https://tier1.dyn.wildme.io:5014/api/query/graph/match/thumb/?extern_reference=chjbcazskhxwdodi&query_annot_uuid=5e41fdbc-0643-4fbe-9e03-717d727a0c3a&database_annot_uuid=3ee72e15-1441-42a3-bfd7-58e73bb75a8c&version=heatmask

  1. I’m seeing instances of the background being matched in some of the images. A few examples below; the second link also shows another instance of comparing wrong orientations.

https://tier1.dyn.wildme.io:5014/api/query/graph/match/thumb/?extern_reference=cgzedtfhjqfgcyce&query_annot_uuid=c426c608-caef-469c-8dc3-f5c4c61c3948&database_annot_uuid=f9ad80e1-57de-47f6-b702-8a98b8cf442f&version=heatmask

https://tier1.dyn.wildme.io:5014/api/query/graph/match/thumb/?extern_reference=iuocsvgnymykdrgb&query_annot_uuid=f6014cdf-9fc9-4628-9ed7-6adf633a2d88&database_annot_uuid=0ef915ea-5da7-4278-9fda-fea9314c1f39&version=heatmask

Hi @cotron.1

TLDR; The viewpoint predictor made a few bad predictions (e.g., back instead of right), causing a wider or different set of annotations to be considered. In the short term, you can manually remove and redraw the annotations, setting the correct viewpoint in the process. If this happens frequently, we may in the future need to retrain the leopard detector with Jhalana Reserve Forest data too. Also recommended: pre-rotate leopard photos to the horizontal to allow for Hotspotter matching (we don’t have an orientation-correcting ML network for leopards (yet), though we can generate one in the future.)

Here are links to the corresponding Encounters and the machine learning viewpoint predictions:

https://www.whiskerbook.org/encounters/encounter.jsp?number=fe66ff87-4b94-4a14-a076-cef4fa574439

https://www.whiskerbook.org/encounters/encounter.jsp?number=642020b5-f812-4646-862c-9b10739b1c51

https://www.whiskerbook.org/encounters/encounter.jsp?number=24823e8d-82c9-4ea1-9c6e-6fef977e5c82

In essence, it looks like the ML predicted “back” for 2/3 cases, which causes a different query against database annotations. Here’s what a “back” viewpoint matching query looks like:

VIEWPOINT CLAUSE: && (viewpoint == null || viewpoint == 'back' || viewpoint == 'upbackright' || viewpoint == 'upback' || viewpoint == 'upbackleft' || viewpoint == 'backright' || viewpoint == 'backleft' || viewpoint == 'downbackright' || viewpoint == 'downback' || viewpoint == 'downbackleft')
PART CLAUSE: usePartsForIdentification=null

Versus a “right” viewpoint matching attempt:

VIEWPOINT CLAUSE: && (viewpoint == null || viewpoint == 'right' || viewpoint == 'upfrontright' || viewpoint == 'upright' || viewpoint == 'upbackright' || viewpoint == 'frontright' || viewpoint == 'backright' || viewpoint == 'downfrontright' || viewpoint == 'downright' || viewpoint == 'downbackright')

So what we consider to match against does vary by the viewpoint predicted for an annotation. The short-term fix is to review your data for annotations with bad viewpoint predictions and manually correct them. Here is a docs page about that process:

and this link to your data may be the fastest way to roll over and check those viewpoints:

https://www.whiskerbook.org/encounters/thumbnailSearchResults.jsp

In the longer-term, if we see a lot of these, retraining the African leopard detector to include this subspecies data may improve the detector all around with additional, more diverse data.

Also quick note: neither the current detector nor Hotspotter autorotate images for comparison, the first example above would likely not yield a match in Hotspotter even if “right” were predicted as the viewpoint. I recommend manually rotating and reuploading the image to the Encounter. We do have an orientation network that would be a great addition to this detector, but it wasn’t around when we did the first training of this detector. I’m hoping in the future we can have the system autorotate images.

Thanks,
Jason