Paxmod × AIML
How We Built Grooming Detection with the Australian Institute for Machine Learning

Grooming is not a bad word. It is a pattern. Most chat moderation looks for a single toxic message: a slur, a threat, a link. Grooming defeats that entirely. A predator's early messages are indistinguishable from ordinary friendly chat. The danger is not any one line, it is the trajectory across dozens of turns, from building rapport, to isolation, to secret-keeping, to escalation. A per-message filter, however good, is structurally blind to it.
That is why we partnered with the Australian Institute for Machine Learning (AIML), through the Industrial AI SME Grant Program, to build a system that reads a conversation the way a trained analyst would: as a whole, not one message at a time.
What we built
Instead of scoring messages one at a time, the system models a conversation as a graph. Each message is a node, enriched with a fine-tuned BERT understanding of the text, and the connections between messages let a Graph Attention Network learn how risk builds across turns. It operates over a sliding window of recent messages, which keeps cost bounded even as conversations grow long enough to run at more than a million messages per day.
How the attention works
The attention mechanism is the heart of it. For each message, the model learns how much weight to give its neighbours. Phase-advanced messages (“how old r u”, “are u alone?”) draw the attention, while genuinely benign chatter is largely ignored. The result is a per-user risk score that no single message could produce on its own.
The results
Adding conversational structure is what closes the gap. A BERT-only per-message classifier sits near 50 to 60% precision. Adding the Graph Attention Network over the conversation graph lifts precision to ~92% at 81% recall on the PAN12 benchmark. Precision is the operative metric: a system that raises constant false alarms gets switched off.
| Edge strategy | Precision | Recall | F1 | F2 |
|---|---|---|---|---|
| Sequential | 0.92 | 0.82 | 0.87 | 0.84 |
| Cross-speaker | 0.87 | 0.77 | 0.82 | 0.79 |
| Full connectivity | 0.79 | 0.75 | 0.77 | 0.76 |
Table 1. Predator-class metrics by graph edge-construction strategy on the PAN12 test set. The simple sequential graph outperforms denser alternatives: added edges introduce more noise than signal.
Why trajectory beats keywords
Grooming escalates through phases, each weighted more heavily than the last. Individually benign messages accumulate into a rising risk signal, and the model flags the user as risk crosses the threshold, before explicitly sexual content ever appears. A per-message filter, seeing each turn alone, never accumulates this signal.
Why this matters now
Regulators have caught up with the threat. The UK Online Safety Act now expects proactive protections against grooming, the EU Digital Services Act and renewed child-protection rules raise the bar, COPPA governs US kids' platforms, and Australia's under-16 measures are in force. “We filter profanity” no longer clears it. This is the research edge we are bringing into Paxmod, so studios get detection built with a world-class AI institute without standing up a trust-and-safety research team of their own.
Built through the Industrial AI SME Grant Program, an AIML initiative supported by the South Australian Government via the Department of State Development's Research and Innovation Fund. Benchmark figures are reported on the PAN12 Sexual Predator Identification corpus.