Skip to content
How Data Scientists Use Nearest Neighbors for Anomaly Detection episode artwork

Jul 7, 2026 9 min

How Data Scientists Use Nearest Neighbors for Anomaly Detection

from The Data Science Podcast with Fexingo: Analytics, Machine Learning, and Data-Driven Conversations Hosted by Fexingo

In Episode 95 of The Data Science Podcast with Fexingo, Lucas and Luna dive into a practical yet underappreciated technique: using k-nearest neighbors for anomaly detection. They kick off with a real-world story from a major credit card processor that flagged a series of fraudulent transactions by measuring distance to the nearest legitimate patterns. Lucas explains why distance-based methods can outperform deep learning in low-signal, high-stakes settings, especially when you need interpretable reasons for each flag. Luna challenges him on scalability and the curse of dimensionality, and they discuss how companies like Stripe and PayPal have used variants of k-NN in production fraud pipelines. They also touch on the trade-offs between global and local outlier factors, and how to choose k when the definition of 'normal' shifts over time. A concrete segment on choosing distance metrics — Euclidean vs. Manhattan vs. cosine — gives listeners an actionable guideline. Mid-episode, they weave in a natural request for listener support, tying it back to the value of open-source tools. If you've ever wondered when to reach for a simple nearest-neighbor approach instead of a neural network, this episode gives you the framework. #DataScience #MachineLearning #AnomalyDetection #KNearestNeighbors #FraudDetection #OutlierDetection #DistanceMetrics #LocalOutlierFactor #Stripe #PayPal #CurseOfDimensionality #Interpretability #Technology #FexingoBusiness #BusinessPodcast #TechPodcast #DataSciencePodcast #ProductionML Keep every episode free: buymeacoffee.com/fexingo

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

How Data Scientists Use Nearest Neighbors for Anomaly Detection

0:00 9:00

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of The Data Science Podcast with Fexingo: Analytics, Machine Learning, and Data-Driven Conversations?

This episode is 9 minutes long.

When was this The Data Science Podcast with Fexingo: Analytics, Machine Learning, and Data-Driven Conversations episode published?

This episode was published on July 7, 2026.

Can I download this The Data Science Podcast with Fexingo: Analytics, Machine Learning, and Data-Driven Conversations episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.