Posts

Showing posts from May 27, 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 ...

How I Used Python to Automate STR Filing and Saved My Fintech from Regulatory Headaches

Image
Photo by mk. s on Unsplash I still remember the night I got a call from our compliance head, telling me that we had missed filing over 500 Suspicious Transaction Reports (STRs) with the Bangladesh Financial Intelligence Unit (BFIU). The deadline was just hours away, and the penalty for late filing would be crippling - BDT 100,000 per report. Our team had been manually reviewing transactions, but the volume had become overwhelming. That's when I knew I had to act fast. I decided to automate the STR filing process using Python, a language I had been experimenting with for months. But I had no idea if it would work, or if I could even finish on time. The Hidden Problem Standard approaches to automating STR filing often rely on pre-built rules and templates. But in Bangladesh, the regulatory landscape is unique. The BFIU guidelines are constantly evolving, and our fintech's specific requirements made it difficult to find an off-the-shelf solution. I had to consider the BDT 100,000...