Posts

Showing posts from July 6, 2026

I Built a BFIU-Compliant AML Detection System in Python (Here's Why the Kaggle Approach Doesn't Work

I Built a BFIU-Compliant AML Detection System in Python (Here's Why the Kaggle Approach Doesn't Work)

Most AML tutorials end with a confusion matrix and a 99% accuracy score. Here's why that doesn't work — and what I built instead. I've been working in fintech compliance data for a while. The one thing I kept noticing: every "fraud detection project" on GitHub or Kaggle uses the same dataset — the UCI credit card fraud dataset from 2013. It has 284,000 rows, 30 features labeled V1-V28, and approximately zero explanatory value for anyone who wants to understand how financial crime actually works. So I built something different. The problem with the standard approach Real transaction monitoring engines don't work like Kaggle competitions. They don't take a CSV, train a model, and output a probability score. They work like this: A rule engine runs first — deterministic, auditable, regulatory-cited rules that generate alerts Those alerts get scored and triaged by risk tier An ML layer reduces false positives among the high-risk alerts ...

Why ML-Based AML Systems Fail in Bangladesh and How to Fix Them

Image
Photo by ray rui on Unsplash I still remember the day our AML system crashed due to false positives, causing a backlog of over 10,000 transactions. It was a nightmare. Our team had to manually review each transaction, and it took us weeks to clear the backlog. The problem was not just the false positives, but also the fact that our system was not designed to handle the unique characteristics of the Bangladeshi market. The Hidden Problem In Bangladesh, the BFIU guidelines require us to monitor transactions above BDT 100,000. However, most AML systems are designed with a one-size-fits-all approach, which does not take into account the local nuances. For example, in Bangladesh, we have a large number of microtransactions, which can trigger false positives. Additionally, the MFS threshold monitoring requirements are unique to Bangladesh, and most systems are not designed to handle these requirements. Technical Breakdown & Logic Flow To solve this problem, we needed to design a syste...