# Anomaly Detection: The Bad Boy of Data Science

- Speaker: [Bar Vinograd](/wiki/speakers/bar-vinograd.md)
- Event: [Reversim Summit 2019](/wiki/years/2019.md)
- Video: https://www.youtube.com/watch?v=FOoLZwN-wMQ
- Transcript: [/transcripts/2019/73-FOoLZwN-wMQ.md](/transcripts/2019/73-FOoLZwN-wMQ.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Data Science](/wiki/topics/data-science.md), [Machine Learning](/wiki/topics/machine-learning.md), [Debugging](/wiki/topics/debugging.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker explores the practical application of anomaly detection in data science through a business case study involving a taxi company in Porto. The talk contrasts anomaly detection with other machine learning tasks, emphasizing the need for close collaboration with product managers and domain experts to define what constitutes a meaningful anomaly. The speaker demonstrates three anomaly detection methods—statistical thresholds, time-series decomposition, and density-based clustering—while highlighting the importance of preprocessing, benchmarking, and actionable insights. Ultimately, listeners learn how to design robust anomaly detection systems that avoid false positives and deliver real business value.

## Key points

- [2:06](https://www.youtube.com/watch?v=FOoLZwN-wMQ&t=126s) Anomaly detection differs from other data science domains because it lacks explicit labels and requires close collaboration with product managers to define what an anomaly actually is.
- [4:17](https://www.youtube.com/watch?v=FOoLZwN-wMQ&t=257s) The speaker introduces a case study based on taxi GPS data from Porto to explore different business use cases and anomaly detection techniques.
- [5:22](https://www.youtube.com/watch?v=FOoLZwN-wMQ&t=322s) The first use case identifies drivers taking unnecessarily long routes to the airport, utilizing simple statistical thresholds like standard deviations from the mean.
- [6:30](https://www.youtube.com/watch?v=FOoLZwN-wMQ&t=390s) Raw data often contains noise and false positives, such as GPS jumps or unavoidable detours, which require proper cleaning and contextual benchmarking.
- [11:57](https://www.youtube.com/watch?v=FOoLZwN-wMQ&t=717s) For time-series data like daily ride counts, simple standard deviation fails because of trends and seasonality, requiring decomposition models to analyze prediction errors.
- [14:12](https://www.youtube.com/watch?v=FOoLZwN-wMQ&t=852s) Detected anomalies must be actionable for the business; otherwise, alerting users about anomalies they cannot fix provides no real value.
- [15:13](https://www.youtube.com/watch?v=FOoLZwN-wMQ&t=913s) A spatial demand use case uses grid mapping, euclidean distance, and density-based clustering to detect unusual geographic demand shifts like festivals.
- [19:41](https://www.youtube.com/watch?v=FOoLZwN-wMQ&t=1181s) The design process should always start with a clear business use case rather than blind data exploration, followed by noise reduction, normalization, and iterative refinement.

## Takeaways

- Always start anomaly detection projects with a specific business use case rather than exploring data blindly.
- Incorporate context and normalization to filter out noise and prevent false positives caused by expected variations.
- Ensure that the anomalies you detect are truly actionable for the business stakeholders who receive the alerts.

## Questions this talk answers

- How do you handle false positives and noise in anomaly detection models?
- When should you use time-series decomposition versus simple statistical thresholds for anomaly detection?
- How can you ensure that detected anomalies translate into actionable business decisions?

## Technologies

GPS, PCA, Google

## Tags

anomaly detection, business intelligence, clustering, data science, machine learning, time series
