Wild Terrestrial Animal Re-Identification Based on an Improved Locally Aware Transformer with a Cross-Attention Mechanism

The wildlife re-identification recognition methods based on the camera trap were used to identify different individuals of the same species using the fur, stripes, facial features and other features of the animal body surfaces in the images, which is an important way to count the individual number o...

Full description

Bibliographic Details
Main Authors: Zhaoxiang Zheng, Yaqin Zhao, Ao Li, Qiuping Yu
Format: Article
Language:English
Published: MDPI AG 2022-12-01
Series:Animals
Subjects:
Online Access:https://www.mdpi.com/2076-2615/12/24/3503
_version_ 1827642198555885568
author Zhaoxiang Zheng
Yaqin Zhao
Ao Li
Qiuping Yu
author_facet Zhaoxiang Zheng
Yaqin Zhao
Ao Li
Qiuping Yu
author_sort Zhaoxiang Zheng
collection DOAJ
description The wildlife re-identification recognition methods based on the camera trap were used to identify different individuals of the same species using the fur, stripes, facial features and other features of the animal body surfaces in the images, which is an important way to count the individual number of a species. Re-identification of wild animals can provide solid technical support for the in-depth study of the number of individuals and living conditions of rare wild animals, as well as provide accurate and timely data support for population ecology and conservation biology research. However, due to the difficulty of recording the shy wild animals and distinguishing the similar fur of different individuals, only a few papers have focused on the re-identification recognition of wild animals. In order to fill this gap, we improved the locally aware transformer (LA transformer) network structure for the re-identification recognition of wild terrestrial animals. First of all, at the stage of feature extraction, we replaced the self-attention module of the LA transformer with a cross-attention block (CAB) in order to calculate the inner-patch attention and cross-patch attention, so that we could efficiently capture the global information of the animal body’s surface and local feature differences of fur, colors, textures, or faces. Then, the locally aware network of the LA transformer was used to fuse the local and global features. Finally, the classification layer of the network realized wildlife individual recognition. In order to evaluate the performance of the model, we tested it on a dataset of Amur tiger torsos and the face datasets of six different species, including lions, golden monkeys, meerkats, red pandas, tigers, and chimpanzees. The experimental results showed that our wildlife re-identification model has good generalization ability and is superior to the existing methods in mAP (mean average precision), and obtained comparable results in the metrics Rank 1 and Rank 5.
first_indexed 2024-03-09T17:25:10Z
format Article
id doaj.art-a74da4c5438d41609e2f1a53bfeb0d47
institution Directory Open Access Journal
issn 2076-2615
language English
last_indexed 2024-03-09T17:25:10Z
publishDate 2022-12-01
publisher MDPI AG
record_format Article
series Animals
spelling doaj.art-a74da4c5438d41609e2f1a53bfeb0d472023-11-24T12:50:51ZengMDPI AGAnimals2076-26152022-12-011224350310.3390/ani12243503Wild Terrestrial Animal Re-Identification Based on an Improved Locally Aware Transformer with a Cross-Attention MechanismZhaoxiang Zheng0Yaqin Zhao1Ao Li2Qiuping Yu3College of Mechanical and Electronic Engineering, Nanjing Forestry University, Nanjing 210037, ChinaCollege of Mechanical and Electronic Engineering, Nanjing Forestry University, Nanjing 210037, ChinaCollege of Mechanical and Electronic Engineering, Nanjing Forestry University, Nanjing 210037, ChinaCollege of Mechanical and Electronic Engineering, Nanjing Forestry University, Nanjing 210037, ChinaThe wildlife re-identification recognition methods based on the camera trap were used to identify different individuals of the same species using the fur, stripes, facial features and other features of the animal body surfaces in the images, which is an important way to count the individual number of a species. Re-identification of wild animals can provide solid technical support for the in-depth study of the number of individuals and living conditions of rare wild animals, as well as provide accurate and timely data support for population ecology and conservation biology research. However, due to the difficulty of recording the shy wild animals and distinguishing the similar fur of different individuals, only a few papers have focused on the re-identification recognition of wild animals. In order to fill this gap, we improved the locally aware transformer (LA transformer) network structure for the re-identification recognition of wild terrestrial animals. First of all, at the stage of feature extraction, we replaced the self-attention module of the LA transformer with a cross-attention block (CAB) in order to calculate the inner-patch attention and cross-patch attention, so that we could efficiently capture the global information of the animal body’s surface and local feature differences of fur, colors, textures, or faces. Then, the locally aware network of the LA transformer was used to fuse the local and global features. Finally, the classification layer of the network realized wildlife individual recognition. In order to evaluate the performance of the model, we tested it on a dataset of Amur tiger torsos and the face datasets of six different species, including lions, golden monkeys, meerkats, red pandas, tigers, and chimpanzees. The experimental results showed that our wildlife re-identification model has good generalization ability and is superior to the existing methods in mAP (mean average precision), and obtained comparable results in the metrics Rank 1 and Rank 5.https://www.mdpi.com/2076-2615/12/24/3503wild terrestrial animal re-identificationcross-attention mechanismlocally aware transformerlocal feature differences
spellingShingle Zhaoxiang Zheng
Yaqin Zhao
Ao Li
Qiuping Yu
Wild Terrestrial Animal Re-Identification Based on an Improved Locally Aware Transformer with a Cross-Attention Mechanism
Animals
wild terrestrial animal re-identification
cross-attention mechanism
locally aware transformer
local feature differences
title Wild Terrestrial Animal Re-Identification Based on an Improved Locally Aware Transformer with a Cross-Attention Mechanism
title_full Wild Terrestrial Animal Re-Identification Based on an Improved Locally Aware Transformer with a Cross-Attention Mechanism
title_fullStr Wild Terrestrial Animal Re-Identification Based on an Improved Locally Aware Transformer with a Cross-Attention Mechanism
title_full_unstemmed Wild Terrestrial Animal Re-Identification Based on an Improved Locally Aware Transformer with a Cross-Attention Mechanism
title_short Wild Terrestrial Animal Re-Identification Based on an Improved Locally Aware Transformer with a Cross-Attention Mechanism
title_sort wild terrestrial animal re identification based on an improved locally aware transformer with a cross attention mechanism
topic wild terrestrial animal re-identification
cross-attention mechanism
locally aware transformer
local feature differences
url https://www.mdpi.com/2076-2615/12/24/3503
work_keys_str_mv AT zhaoxiangzheng wildterrestrialanimalreidentificationbasedonanimprovedlocallyawaretransformerwithacrossattentionmechanism
AT yaqinzhao wildterrestrialanimalreidentificationbasedonanimprovedlocallyawaretransformerwithacrossattentionmechanism
AT aoli wildterrestrialanimalreidentificationbasedonanimprovedlocallyawaretransformerwithacrossattentionmechanism
AT qiupingyu wildterrestrialanimalreidentificationbasedonanimprovedlocallyawaretransformerwithacrossattentionmechanism