Skip to main content

Anomaly Detection in Pet Behavioural Data

  • Conference paper
  • First Online:
Machine Learning and Principles and Practice of Knowledge Discovery in Databases (ECML PKDD 2023)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 2134))

  • 91 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. 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)

    Article  MATH  Google Scholar 

  2. 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)

    Google Scholar 

  3. Chandola, V., Banerjee, A., Kumar, V.: Anomaly detection: a survey. ACM Comput. Surv. (CSUR) 41(3), 1–58 (2009)

    Article  MATH  Google Scholar 

  4. Fahim, M., Sillitti, A.: Anomaly detection, analysis and prediction techniques in IoT environment: a systematic literature review. IEEE Access 7, 81664–81681 (2019)

    Article  MATH  Google Scholar 

  5. 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)

    Google Scholar 

  6. Goldstein, M., Uchida, S.: A comparative evaluation of unsupervised anomaly detection algorithms for multivariate data. PLoS ONE 11(4), e0152173 (2016)

    Article  PubMed  PubMed Central  MATH  Google Scholar 

  7. 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)

    Google Scholar 

  8. Ho, J., Hussain, S., Sparagano, O.: Did the COVID-19 pandemic spark a public interest in pet adoption? Front. Vet. Sci. 8, 444 (2021)

    Article  Google Scholar 

  9. Iivari, A.: Anomaly detection techniques for unsupervised machine learning (2022)

    Google Scholar 

  10. Koren, O., Koren, M., Peretz, O.: A procedure for anomaly detection and analysis. Eng. Appl. Artif. Intell. 117, 105503 (2023)

    Article  MATH  Google Scholar 

  11. 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

  12. McNicholas, J.: The role of pets in the lives of older people: a review. Working Older People 18(3), 128–133 (2014)

    Article  MATH  Google Scholar 

  13. Mench, J.: Why it is important to understand animal behavior. ILAR J. 39(1), 20–26 (1998)

    Article  PubMed  Google Scholar 

  14. Molnar, C.: Interpretable machine learning (2023). https://christophm.github.io/interpretable-ml-book/global.html

  15. 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)

    Article  PubMed  PubMed Central  MATH  Google Scholar 

  16. 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)

    Article  Google Scholar 

  17. Schwab, K.: The Fourth Industrial Revolution. Currency (2017)

    Google Scholar 

  18. 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)

    Article  MATH  Google Scholar 

  19. Tana, J., Forss, M., Hellsten, T.: The use of wearables in healthcare–challenges and opportunities (2017)

    Google Scholar 

  20. 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)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Inês Silva .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2025 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics