Skip to content
Another Fire
← All Advances

ADVANCES / REPORT 22

AI app helps identify threatened-species trade

Researchers trained object detectors on 39,941 images of elephant, pangolin, and tiger products plus lookalikes. A prototype smartphone app scored 91.3% accuracy and 0.86 F-score on an independent image test.

Anti-extinctionPeer reviewed · independent image test

A photograph is a lead, not a finding

A person inspecting a market stall can turn an object over, look at its grain, ask where it came from and take a closer photograph. Someone monitoring an online marketplace usually starts with whatever the seller chose to show. A polished object may resemble ivory in one image and reveal almost nothing about its material in another. A photo of several objects may contain one item of interest and a lot of irrelevant detail. Even an experienced observer who knows what to look for cannot examine every image as carefully as a single object in hand.

That is the opening for a system that can sort photographs before a person looks at them. The study in Conservation Biology trains an object detector on images of products derived from elephants, pangolins and tigers, alongside visually similar items that were not wildlife products. The detector looks for evidence within the picture and proposes where the relevant object is. The researchers also put the model in a prototype smartphone application. The point is not to turn a photo into a ruling about a seller. It is to make it easier to decide which photos merit the much slower work of corroboration.

The distinction between resemblance and identification matters here. A listing can show something that looks like a product from a threatened species without establishing that it was made from that species. An image may not even depict the object that would change hands. And identifying the material would not by itself decide whether the transaction meets the law in a particular jurisdiction. The output of an image detector can be useful at the first step without being admissible evidence for the last.

Learning from things that look alike

A detector trained entirely on clean photographs of known examples could learn to find the things that distinguish those photographs, not the objects a reviewer needs to identify. Lighting, backgrounds and the way a product is displayed can all be clues about where a picture came from. They can be poor clues about the material in the picture. The study builds its dataset from online images, enforcement seizures and market inspections. Its 39,941 images include lookalikes as well as target objects. The lookalikes matter because a detector that never sees a plausible alternative has little reason to learn why the alternative should be rejected.

The team uses Faster R-CNN, a model architecture that proposes regions of an image and classifies what it finds there. This is different from asking a model to say whether the entire picture depicts wildlife. A picture may show a table full of merchandise. A region proposal gives the reviewer a place to look and a way to see whether the model picked out the item that made the image interesting. The box does not add detail that the camera failed to capture. It does make the claim easier to inspect than a score attached to the photograph as a whole.

The researchers compare training one model across all three groups with training species-specific models. A combined detector is useful when the reviewer does not already know what kind of product might be in an image. It can also learn from contrasts between classes that would not be present in a separate model. But the classes do not need to be equally difficult. Products can differ in the extent to which processing has removed the visible traits that would make their origins recognizable. If the same image can plausibly show either a target material or a substitute, there is a limit to what can be decided from that image even with a better model.

The cost of asking for a closer look

The best-performing model in the authors' comparison used cross-entropy training across all three groups. It reached 84.2 percent overall accuracy, with 93.6 percent reported for pangolin, 90.3 percent for tiger and 71.1 percent for elephant. For anyone trying to decide what to do with the output, the distance between the elephant result and the other two is at least as important as the overall number. The combined performance does not mean every likely product in the collection could be flagged with the same reliability. A reviewer dealing mainly with elephant products should not expect to inherit the average of the three categories.

The study also tried a training objective called asymmetric focal loss. It increased recall, meaning the system caught more of the examples it was supposed to find, but reduced precision substantially: a smaller share of the things flagged were right. Neither side of that trade-off can be ignored. An investigator faced with a small number of urgent cases may want to catch as many leads as possible, even if several turn out to be wrong. A team watching a large marketplace may find that an increase in wrong leads makes it harder to get to any of them. The right comparison is not just between two model scores, but between two queues and what people have time to do with them.

The proportion of genuine targets in the incoming images changes that calculation. Imagine a marketplace in which the objects of interest are rare. Even a modest tendency to flag ordinary merchandise can generate more reviews than a team can handle, because there are so many more ordinary listings available to be mistaken. Conversely, a test collection deliberately enriched with useful examples is an appropriate way to compare detectors without reproducing the workload of a marketplace. Accuracy under one mixture of images does not tell an agency what portion of its daily alerts will be worth following.

From a phone screen to a reviewable decision

On an independent test set, the prototype phone application reached 91.3 percent accuracy and an F-score of 0.86. The F-score combines precision and recall; the two figures supply different descriptions of how the prototype performed on that set. Neither establishes that putting a model on a phone made it more accurate than it was in the earlier comparison. They concern different evaluations. The phone result shows that the detector could be used through an interface for reviewing images and could perform on a separate set, not that the researchers measured the outcome of an enforcement program using it.

In practice a reviewer would still need to follow the evidence beyond the proposed box. That could mean looking for clearer images, context about a listing, documents concerning origin or a specialist assessment of the item. The distinction is also important when the model finds nothing. An unflagged image could contain an object whose distinguishing features were hidden by the angle or lost in processing. A system used as the only way to select images for review would leave those errors invisible unless someone periodically looked at a sample of the images it passed over.

The conservation value of the prototype depends on where the saved attention goes. A good first pass could free reviewers to spend more time on difficult cases, including the ones where photographs cannot settle the question. It could also reveal where the categories need better examples rather than a more confident threshold. At the point where a model can direct a person's attention, the practical standard is not whether the colored box looks convincing. It is whether the people doing the work can find more of the objects worth examining and still see clearly where the photograph stops being enough.

← Return to Advances