How Data Scientists Use Nearest Neighbors for Anomaly Detection episode artwork

EPISODE · 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 · host 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 metadata supplied by the publisher feed · Published Jul 7, 2026

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

PodParley-generated summary based on available episode metadata and transcript content.

NOW PLAYING

How Data Scientists Use Nearest Neighbors for Anomaly Detection

0:00 9:00

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

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.

What is this episode about?

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

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

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!