πŸ›‘οΈ FinSentry β€” Financial Transaction Anomaly & AML Detection

Unsupervised ML ensemble Β· AML typology rule engine Β· money-flow graph analysis β†’ explainable risk score per account.  Source & live Streamlit app β†—

Risk-score distribution

Accounts by risk band

AML typologies triggered (alert queue)

Daily value β€” flagged vs normal

Alert queue β€” accounts at MEDIUM risk or above

β€” click a row to investigate
AccountRiskBand RulesThroughputTop reason
Select an account from the Alert queue, or

Case

Reason codes

Key features

Transaction timeline

Money-flow network β€” top-risk accounts & counterparties

Red = critical/high alerts · node size ∝ risk · thicker edges carry more value.

Circular money flows detected

ROC curve

Confusion matrix (MEDIUM+ alert band)

Ensemble model score distributions

iso = Isolation Forest Β· lof = Local Outlier Factor Β· maha = robust Mahalanobis distance. The ensemble averages all three.

What this is

FinSentry scores every account in a transaction ledger for money-laundering risk by combining three independent signals β€” exactly the pattern real transaction-monitoring platforms use:

  • AML typology rule engine β€” structuring, smurfing, rapid movement / layering, circular flows (round-tripping), high velocity, cash-intensive, cross-border to high-risk jurisdictions, round amounts, odd-hour activity. Each fires a weighted, human-readable reason code.
  • Unsupervised ML ensemble β€” Isolation Forest + Local Outlier Factor + robust Mahalanobis distance over standardized behavioural features.
  • Money-flow graph analysis β€” circular flows, fan-in/out hubs and betweenness over material (high-value) flows.

The three are blended into a 0–100 risk score, banded LOW / MEDIUM / HIGH / CRITICAL, and ranked into an alert queue with reason codes. All data here is synthetic β€” generated with reproducible seeds, no real customer information.

This page is a static snapshot of a real pipeline run. The fully interactive tool (adjust data size, weights, upload your own ledger) is the Streamlit app in the GitHub repo.

FinSentry Β· Python Β· scikit-learn Β· NetworkX Β· SciPy Β· Plotly β€” front-end powered by a real pipeline run ().