Optimization of animal detection in thermal images using YOLO architecture
Abstract
The article presents research on animal detection in thermal images using the YOLOv5 architecture. The goal of the study was to obtain a model with high performance in detecting animals in this type of images, and to see how changes in hyperparameters affect learning curves and final results. This manifested itself in testing different values of learning rate, momentum and optimizer types in relation to the model's learning performance. Two methods of tuning hyperparameters were used in the study: grid search and evolutionary algorithms. The model was trained and tested on an in-house dataset containing images with deer and wild boars. After the experiments, the trained architecture achieved the highest score for Mean Average Precision (mAP) of 83\%. These results are promising and indicate that the YOLO model can be used for automatic animal detection in various applications, such as wildlife monitoring, environmental protection or security systems.References
J. Witczuk et al. “Exploring the feasibility of unmanned aerial vehicles andthermal imaging for ungulate surveys in forests - preliminary results. International Journal of Remote Sensing”. In: International Journal of Remote Sensing 39.15-16 (2018), pp. 5504–5521. doi: 10.1080/01431161.2017.1390621.
A. Vecvanags et al. “Ungulate Detection and Species Classification from CameraTrap Images Using Reti-naNet and Faster R-CNN”. In: Entropy 24.3 (2022), p. 353. doi: 10.3390/e24030353.
Mateusz Choiński et al. “A First Step Towards Automated Species Recognition from Camera Trap Images of Mammals Using AI in a European TemperateForest”. In: (2021), pp. 299–310. doi: 10.1007/978-3-030-84340-3 24.
M. Ivansic-Kos, M. Kristo, and M. Pobar. Human Detection in Thermal Imaging Using YOLO. 5th International Conference on Computer and Technology Applications, pp. 19-24. 2019. doi: 10.1145/3323933.3324076.
M. Kristo, M. Ivasic-Kos, and M. Pobar. “Thermal Object Detection in Difficult Weather Conditions Using YOLO”. In: IEEE Access PP.3 (2020), pp. 125459–125476. doi: 10.1109/ACCESS.2020.3007481.
Ippalapally R., S. H. Mudumba, and H. R. Adkay M. Nandi Vardhan. Human Detection in Thermal Imaging Using YOLO. Object Detection Using ThermalImaging, 17th India Council International Conference (INDICON), pp. 19-24, New Delhi, India. 2020. doi: 10.1145/3323933.3324076.
A. Ulhaq et al. “Automated Detection of Animals in Low-Resolution AirborneThermal Imagery”. In: Remote Sensing PP.3 (2021), pp. 125459–125476. doi:10.1109/ACCESS.2020.3007481.
Popek, L., Perz, R., and Galiński, G. “Comparison of Different Methods of Animal Detection and Recognition on Thermal Camera Images”. In: Electronics12.270 (2023), pp. 125459–125476. doi: 10.3390/electronics12020270.
J. Cilulko, P. Janiszewski, and M. et al. Bogdaszewski. “Infrared thermal imaging in studies of wild animals”. In: European Journal of Wildlife Researche 59 (2013), pp. 17–23. doi: 10.1007/s10344-012-0688-1.
L. Tan, T. Huangfu, and L. et al. Wu. “Comparison of RetinaNet, SSD, and8 YOLO v3 for real-time pill identification”. In: BMC Med Inform Decis Mak (2021). doi: 10.1186/s12911-021-01691-8.
Jocher Glen. YOLOv5 by Ultralytics (Version 7.0) [Computer software]. access: 13.06.2023. 2014. doi: 10.5281/zenodo.3908559.
Isa, I. S. et al. “Optimizing the Hyperparameter Tuning of YOLOv5 for Underwater Detection”. In: IEEE Access 10 (2022), pp. 52818–52831. doi: 10.1109/ACCESS.2022.3174583.
Kaichao You et al. “How does learning rate decay help modern neural networks?”In: arXiv preprint arXiv:1908.01878 (2019). doi: 10.48550/arXiv.1908.01878.
Bryan Lim, Stefan Zohren, and Stephen Roberts. “Enhancing time-series momentum strategies using deep neural networks”. In: The Journal of Financial Data Science (2019). doi: 10.3905/jfds.2019.1.015.14
Thomas M Breuel. “The effects of hyperparameters on SGD training of neuralnetworks”. In: arXiv preprint arXiv:1508.02788 (2015). doi: 10.48550/arXiv.1508.02788.
Imran Khan Mohd Jais, Amelia Ritahani Ismail, and Syed Qamrun Nisa. “Adam optimization algorithm for wide and deep neural network”. In: Knowledge Engineering and Data Science 2.1 (2019), pp. 41–46.
E. Bisong. “Google Colaboratory. In Building Machine Learning and Deep Learning Models on Google Cloud Platform”. In: (2019)
.
Q. Xu et al. “Effective Face Detector Based on YOLOv5 and Superresolution Reconstruction.” In: Computational and mathematical methods in medicine (2021) doi: 10.1155/2021/7748350.
Downloads
Published
Issue
Section
License
Copyright (c) 2023 International Journal of Electronics and Telecommunications

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
1. License
The non-commercial use of the article will be governed by the Creative Commons Attribution license as currently displayed on https://creativecommons.org/licenses/by/4.0/.
2. Author’s Warranties
The author warrants that the article is original, written by stated author/s, has not been published before, contains no unlawful statements, does not infringe the rights of others, is subject to copyright that is vested exclusively in the author and free of any third party rights, and that any necessary written permissions to quote from other sources have been obtained by the author/s. The undersigned also warrants that the manuscript (or its essential substance) has not been published other than as an abstract or doctorate thesis and has not been submitted for consideration elsewhere, for print, electronic or digital publication.
3. User Rights
Under the Creative Commons Attribution license, the author(s) and users are free to share (copy, distribute and transmit the contribution) under the following conditions: 1. they must attribute the contribution in the manner specified by the author or licensor, 2. they may alter, transform, or build upon this work, 3. they may use this contribution for commercial purposes.
4. Rights of Authors
Authors retain the following rights:
- copyright, and other proprietary rights relating to the article, such as patent rights,
- the right to use the substance of the article in own future works, including lectures and books,
- the right to reproduce the article for own purposes, provided the copies are not offered for sale,
- the right to self-archive the article
- the right to supervision over the integrity of the content of the work and its fair use.
5. Co-Authorship
If the article was prepared jointly with other authors, the signatory of this form warrants that he/she has been authorized by all co-authors to sign this agreement on their behalf, and agrees to inform his/her co-authors of the terms of this agreement.
6. Termination
This agreement can be terminated by the author or the Journal Owner upon two months’ notice where the other party has materially breached this agreement and failed to remedy such breach within a month of being given the terminating party’s notice requesting such breach to be remedied. No breach or violation of this agreement will cause this agreement or any license granted in it to terminate automatically or affect the definition of the Journal Owner. The author and the Journal Owner may agree to terminate this agreement at any time. This agreement or any license granted in it cannot be terminated otherwise than in accordance with this section 6. This License shall remain in effect throughout the term of copyright in the Work and may not be revoked without the express written consent of both parties.
7. Royalties
This agreement entitles the author to no royalties or other fees. To such extent as legally permissible, the author waives his or her right to collect royalties relative to the article in respect of any use of the article by the Journal Owner or its sublicensee.
8. Miscellaneous
The Journal Owner will publish the article (or have it published) in the Journal if the article’s editorial process is successfully completed and the Journal Owner or its sublicensee has become obligated to have the article published. Where such obligation depends on the payment of a fee, it shall not be deemed to exist until such time as that fee is paid. The Journal Owner may conform the article to a style of punctuation, spelling, capitalization and usage that it deems appropriate. The Journal Owner will be allowed to sublicense the rights that are licensed to it under this agreement. This agreement will be governed by the laws of Poland.
By signing this License, Author(s) warrant(s) that they have the full power to enter into this agreement. This License shall remain in effect throughout the term of copyright in the Work and may not be revoked without the express written consent of both parties.