Can We Automate the Analysis of Online Child Sexual Exploitation Discourse?

Darren Cook, Miri Zilka, Heidi DeSandre, Susan Giles, Adrian Weller, Simon MaskellarXiv 2022 · DOI

Abstract

Automating the detection of predatory behavior in online chat logs is critical for scaling law enforcement interventions. This research presents a transformer-based approach that frames behavior detection as a Natural Language Inference (NLI) task. By incorporating multi-message context windows, the proposed models achieve substantial agreement with human experts, particularly in identifying complex psychological tactics like rapport building and boundary testing. While the models demonstrate high performance in explicit categories, challenges remain in detecting subtle, implicit grooming behaviors.

Introduction

Identifying online child sexual exploitation is a high-stakes race against time. Traditionally, law enforcement and researchers have relied on domain experts to manually annotate chat logs—a process that is incredibly slow, often exceeding 600 hours for just 24 chats. While previous AI research focused on the binary task of "predator vs. non-predator," this study tackles the more nuanced problem of behavioral analysis. Predators utilize complex psychological stages, such as rapport building and risk management, which are often implicit and highly context-dependent, making them difficult for standard machine learning models to detect.

Methods and Data

The study utilized the Perverted-Justice corpus, a repository of real-world chat logs between convicted offenders and decoys posing as minors. The dataset includes 24 full chat logs comprising 12,942 messages. A forensic psychology expert manually labeled 6,772 messages across 11 behavioral categories, such as Negotiation, Use of Sexual Topics, and Mitigation.

The researchers compared traditional supervised machine learning (e.g., Random Forest, SVM) using Bag-of-Words (BoW) features against a modern Deep Learning approach. The standout technique involved formulating behavior detection as a Natural Language Inference (NLI) task using RoBERTa-large. Instead of simple classification, the model determines if a message "entails" a specific behavioral hypothesis. To capture conversational nuance, the authors tested "Multi-Message Input" windows, comparing single messages against windows of 3 and 5 messages.

Key Results and Insights

The NLI-based models demonstrated significant improvements over traditional methods, particularly when context windows were expanded. For behaviors like "Rapport Building," moving from a single-message view to a 5-message window boosted the F1 score from 61% to over 81%, proving that predatory tactics are conversational rather than purely lexical.

Table 1: Performance metrics (Precision, Recall, and F1) for the best-performing NLI models across 11 behavioral categories. The number in parentheses next to the model indicates the context window size.

As shown in Table 1, the model achieved high F1 scores in categories like "Communication/Coordination" (85.5%) and "Testing Boundaries" (72.7%). However, more subtle behaviors like "Encouragement" and "Challenge" remained difficult to detect, with F1 scores peaking at approximately 29%.

Figure 1: F1 score performance relative to the number of positive training samples, illustrating the "few-shot" learning capabilities of the transformer models across different behavioral categories.

Figure 1 highlights the efficiency of the NLI approach. In 10 out of 11 categories, the transformer models outperformed traditional BoW models (trained on the full dataset) using as few as 50 labeled examples. This suggests that the models are highly effective "few-shot" learners for this domain, which is vital given the scarcity of expert-annotated data.

Discussion and Limitations

While the models achieved a mean Cohen’s kappa ($\kappa$) of 0.62—indicating "substantial agreement" with human raters—they still trail the 0.80 agreement level found between two human experts. Several hurdles remain for future research:

  1. The "Implicit" Gap: Models still struggle with behaviors that rely on long-term subtext or very subtle coercion.
  2. False Positives: The transformer occasionally learned rules that led to false positives, such as flagging logistical questions (e.g., "What time is it?") as predatory attempts to coordinate.
  3. Scaling Context: While 5-message windows helped, behaviors like "Control" likely require even broader conversational memory or a full history of the interaction.

Conclusion

This research represents an encouraging step toward building psychology-informed tools that can help law enforcement process mountains of data more effectively. While full automation remains elusive due to the inherent subjectivity of forensic analysis, these models provide a scalable way to augment human expertise in the fight against online exploitation.

Summary updated

BibTeX
@misc{cook2022can,
  author = {Darren Cook and Miri Zilka and Heidi DeSandre and Susan Giles and Adrian Weller and Simon Maskell},
  title = {{Can We Automate the Analysis of Online Child Sexual Exploitation Discourse?}},
  year = {2022},
  eprint = {2209.12320},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.12320},
}
Figure