This study explores the use of a Siamese neural network architecture to enhance classification performance in few-shot learning scenarios, with a focus on bovine facial recognition. Traditional methodologies often require large datasets, which can significantly stress animals during data collection. In contrast, the proposed method aims to reduce the number of images needed, thereby minimizing animal stress. Systematic experiments conducted on datasets representing both full and few-shot learning scenarios revealed that the Siamese network consistently outperforms traditional models, such as ResNet101. It achieved notable improvements, with mean values increasing by over 6.5% and standard deviations decreasing by at least 0.010 compared to the ResNet101 baseline. These results highlight the Siamese network’s robustness and consistency, even in resource-constrained environments, and suggest that it offers a promising solution for enhancing model performance with fewer data and reduced animal stress, despite its slower training speed.
The recognition of behavioral relationships related to aggression in pigs is an important task that is visually observed in the livestock industry. However, this task is laborious and susceptible to errors, which can be reduced through automation by visually classifying videos captured in a controlled environment. Video classification can be automated using techniques from computer vision and artificial intelligence, employing neural network methods. The primary techniques utilized in this study are variants of transformers: STAM, TimeSformer, and ViViT, as well as techniques using convolutions, such as ResNet3D2, ResNet(2+1)D, and CnnLstm. These techniques were compared to analyze their individual contributions. The performance was evaluated using metrics such as accuracy, precision, and recall. The TimeSformer technique demonstrated the most promising results in video classification, achieving a median accuracy of 0.729.
The development of techniques that can be used to analyze and detect animal behavior is a crucial activity for the livestock sector, as it is possible to monitor the stress and animal welfare and contributes to decision making in the farm. Thus, the development of applications can assist breeders in making decisions to improve production performance and reduce costs, once the animal behavior is analyzed by humans and this can lead to susceptible errors and time consumption. Aggressiveness in pigs is an example of behavior that is studied to reduce its impact through animal classification and identification. However, this process is laborious and susceptible to errors, which can be reduced through automation by visually classifying videos captured in controlled environment. The captured videos can be used for training and, as a result, for classification through computer vision and artificial intelligence, employing neural network techniques. The main techniques utilized in this study are variants of transformers: STAM, TimeSformer, and ViViT, as well as techniques using convolutions, such as ResNet3D2, Resnet(2+1)D, and CnnLstm. These techniques were employed for pig video classification with the objective of identifying aggressive and non-aggressive behaviors. In this work, various techniques were compared to analyze the contribution of using transformers, in addition to the effectiveness of the convolution technique in video classification. The performance was evaluated using accuracy, precision, and recall. The TimerSformer technique showed the best results in video classification, with median accuracy of 0.729.
30 April 2024 in Quantum Studies: Mathematics and Foundations