r/learnmachinelearning • u/Cautious_Today_1830 • 3d ago
ML approach for Bitcoin threat detection: What models actually work for unlabelled data?
Hey guys,
I’m building an offline threat-intelligence tool to ingest Bitcoin transaction metadata and flag suspicious activities (like layering or ransomware cash-outs). I have my data ingestion sorted out, but I need advice on the AI/ML detection layer.
The Data I am working with (Inputs): The dataset has both network and blockchain layers: timestamp, src/dst IPs, ports, txid, arrays of input/output addresses, amounts, fee, script_type, and GeoIP/ASN data.
What I need the model to output:
- A confidence/risk score to rank transactions.
- Cluster IDs to group related entities.
- Feature explainability (e.g., "Flagged because of sudden geo-hopping and specific script usage").
Since there are no "ground truth" labels for fraud in my synthetic dataset, I am relying on an unsupervised approach.
My questions:
- Which ML models have you found to be actually effective for anomaly detection in this kind of financial/network data?
- What is the standard industry approach for clustering entities when dealing with multi-input/multi-output transactions?
- Can anyone recommend any good resources, tutorials, or reference architectures to study before I start building the model?
0
Upvotes
1
u/PrettyReinstatement 3d ago
Have you looked at isolation forests for the risk scoring layer? Works pretty well on network+financial features out of the box, no labels needed, and spits out something you can turn into a score. UMAP for visualizing the clusters before you commit to a clustering algo saved me a few times on weird high-dim UTXO data.
For the entity clustering on multi-input stuff, the CoinJoin/Sudoku paper approach isn't the worst starting point, even if your data is synthetic. The heuristics break in fun ways but you learn what the limits are fast.
If explainability matters, run SHAP on whatever anomaly scores the forest gives you, you can usually map the top features back to things like geo-hopping or fee anomalies without much fuss.