Abstract
Pet owners are increasingly becoming conscious of their pet’s necessities and are paying more attention to their overall wellness. The well-being of their pets is intricately linked to their own emotional and physical well-being. Some veterinary system solutions are emerging to provide proactive healthcare options for pets. One such solution offers the continuous monitoring of a pet’s activity through accelerometer tracking devices. Based on data collected by this application, in this paper, we study different time aggregation and three unsupervised machine learning techniques to identify anomalies in pet behaviour data. Specifically, three algorithms, Isolation Forest, Local Outlier Factor, and K-Nearest Neighbour, with various thresholds to differentiate between normal and abnormal events. Results conducted on ten pets (five cats and five dogs) show that the most effective approach is to use daily data divided into periods. Moreover, the Local Outlier Factor is the best algorithm for detecting anomalies when prioritizing the identification of true positives. However, it also produces a high false positive ratio.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Bhuyan, M.H., Bhattacharyya, D.K., Kalita, J.K.: Network anomaly detection: methods, systems and tools. IEEE Commun. Surv. Tut. 16(1), 303–336 (2014)
Budiarto, E., Permanasari, A., Fauziati, S.: Unsupervised anomaly detection using K-means, local outlier factor and one class SVM. In: ICST, pp. 1–5 (2019)
Chandola, V., Banerjee, A., Kumar, V.: Anomaly detection: a survey. ACM Comput. Surv. (CSUR) 41(3), 1–58 (2009)
Fahim, M., Sillitti, A.: Anomaly detection, analysis and prediction techniques in IoT environment: a systematic literature review. IEEE Access 7, 81664–81681 (2019)
Friedmann, E., Katcher, A.H., Lynch, J.J., Thomas, S.A.: Animal companions and one-year survival of patients after discharge from a coronary care unit. Publ. Health Rep. 95(4), 307–312 (1980)
Goldstein, M., Uchida, S.: A comparative evaluation of unsupervised anomaly detection algorithms for multivariate data. PLoS ONE 11(4), e0152173 (2016)
Headey, B., Grabka, M.: Health correlates of pet ownership from national surveys. In: McCardle, P., McCune, S., Griffin, J.A., Maholmes, V. (eds.) How Animals Affect Us: Examining the Influences of Human–Animal Interaction on Child Development and Human Health, pp. 153–162. American Psychological Association (2011)
Ho, J., Hussain, S., Sparagano, O.: Did the COVID-19 pandemic spark a public interest in pet adoption? Front. Vet. Sci. 8, 444 (2021)
Iivari, A.: Anomaly detection techniques for unsupervised machine learning (2022)
Koren, O., Koren, M., Peretz, O.: A procedure for anomaly detection and analysis. Eng. Appl. Artif. Intell. 117, 105503 (2023)
Kuo, C.: Handbook of anomaly detection with python: outlier detection (2022). https://medium.com/dataman-in-ai/handbook-of-anomaly-detection-with-python-outlier-detection-1-introduction-c8f30f71961c
McNicholas, J.: The role of pets in the lives of older people: a review. Working Older People 18(3), 128–133 (2014)
Mench, J.: Why it is important to understand animal behavior. ILAR J. 39(1), 20–26 (1998)
Molnar, C.: Interpretable machine learning (2023). https://christophm.github.io/interpretable-ml-book/global.html
Moses, L., Malowney, M.J., Wesley Boyd, J.: Ethical conflict and moral distress in veterinary practice: a survey of North American veterinarians. J. Vet. Intern. Med. 32(6), 2115–2122 (2018)
Nassif, A.B., Talib, M.A., Nasir, Q., Dakalbab, F.M.: Machine learning for anomaly detection: a systematic review. IEEE Access 9, 78658–78700 (2021)
Schwab, K.: The Fourth Industrial Revolution. Currency (2017)
Sgueglia, A., Di Sorbo, A., Visaggio, C.A., Canfora, G.: A systematic literature review of IoT time series anomaly detection solutions. Fut. Gener. Comput. Syst. 134, 170–186 (2022)
Tana, J., Forss, M., Hellsten, T.: The use of wearables in healthcare–challenges and opportunities (2017)
Zhong, S., Fu, S., Lin, L., Fu, X., Cui, Z., Wang, R.: A novel unsupervised anomaly detection for gas turbine using isolation forest. In: 2019 IEEE International Conference on Prognostics and Health Management (ICPHM), pp. 1–6 (2019)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2025 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Silva, I., Ribeiro, R.P., Gama, J. (2025). Anomaly Detection in Pet Behavioural Data. In: Meo, R., Silvestri, F. (eds) Machine Learning and Principles and Practice of Knowledge Discovery in Databases. ECML PKDD 2023. Communications in Computer and Information Science, vol 2134. Springer, Cham. https://doi.org/10.1007/978-3-031-74627-7_10
Download citation
DOI: https://doi.org/10.1007/978-3-031-74627-7_10
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-74626-0
Online ISBN: 978-3-031-74627-7
eBook Packages: Artificial Intelligence (R0)