Enhancing Privacy in the Early Detection of Sexual Predators Through Federated Learning and Differential Privacy

Khaoula Chehbouni, Martine De Cock, Gilles Caporossi, Afaf Taïk, Reihaneh Rabbany, Golnoosh Farnadi · DOI

Abstract

Online sexual grooming (OG) represents a critical threat to child safety, yet detection efforts often conflict with the fundamental right to digital privacy and end-to-end encryption. This paper presents a privacy-preserving pipeline for the early Sexual Predator Detection (eSPD) using Federated Learning (FL) and Differential Privacy (DP). By training models locally on user devices and aggregating updates with formal privacy guarantees, the proposed system identifies predatory behavior without centralizing sensitive chat logs. Experimental results on the PANC dataset demonstrate that this approach achieves performance comparable to invasive centralized systems, maintaining an F1-score of 0.82 and a low false positive rate, proving that child safety and data privacy can coexist.

Introduction

The surge in online grooming following the COVID-19 pandemic has placed immense pressure on social media platforms to implement effective detection mechanisms. However, traditional centralized monitoring requires "breaking" encryption to scan private messages, creating a significant tension between safety and privacy. This research addresses two primary technical hurdles: protecting sensitive user data from exposure and managing the highly imbalanced, non-Independent and Identically Distributed (non-IID) nature of real-world chat data, where the vast majority of users are not predators.

Methodology

The authors propose the early Sexual Predator Detection (eSPD) system, which utilizes a BERT-based architecture for feature extraction and a Logistic Regression classifier. To ensure privacy, the framework integrates Federated Learning with three distinct implementations of Differential Privacy:

  • Federated Learning (FL): Local training occurs on-device, and only mathematical model updates—rather than raw text—are shared with a central server.
  • Metric DP: Noise is added to text embeddings on the user's device to prevent the reconstruction of raw messages.
  • DP-SGD (Differentially Private Stochastic Gradient Descent): Noise is applied to gradients during local training to stop the model from memorizing specific private phrases.
  • DP-FedAvg: The central server adds noise to aggregated updates, providing "user-level" privacy to ensure the final model does not reveal the participation of any specific individual.

To address the data imbalance inherent in federated settings, the researchers employed a "warm-up" strategy, using a small, balanced, and publicly available dataset to provide local models with a baseline understanding of grooming patterns before training on private data.

Data and Evaluation

The study utilized the PANC dataset, a combination of the PAN12 benchmark (containing grooming examples from "Perverted Justice") and ChatCoder2. Conversations were segmented into windows of 150 messages to simulate real-time detection in ongoing chats.

Performance was measured using F-latency, a specialized metric that accounts for both the accuracy and the speed of detection—crucial for intervening before a predator can cause harm.

Key Insights and Results

The research demonstrates that formal privacy guarantees result in only a marginal reduction in utility. While a centralized model achieved an F1-score of 0.85, the Federated Learning model maintained a competitive 0.83.

Key findings include:

  • Optimal Privacy Flavor: DP-FedAvg emerged as the most practical solution, maintaining an F-latency of 0.63 while providing robust user-level privacy. In contrast, Metric DP suffered a higher utility cost, with F-latency dropping to 0.52.
  • False Positive Management: By implementing a "skepticism level"—a threshold requiring multiple suspicious message windows before flagging—the system maintained a 1% False Positive Rate (FPR). This is essential for preventing the "crying wolf" effect in real-world safety deployments.
  • User-Level Privacy: The authors conclude that user-level privacy (DP-FedAvg) is more effective for grooming detection than instance-level privacy, as predatory behavior is best identified across an entire conversation history rather than in isolated messages.

Limitations and Future Work

Despite the promising results, several challenges remain. The reliance on synthetic data from "Perverted Justice" may not perfectly mirror real-world grooming of children. Furthermore, the system's reliance on user reporting for new training data introduces potential self-reporting bias. The authors also highlight the risk of algorithmic bias against specific dialects and emphasize that these models should serve as decision-support tools for human moderators rather than autonomous tools for prosecution. Future research will focus on scaling DP-FedAvg for smaller platforms and refining models to better handle the nuances of real-world victim-predator interactions.

Summary updated

BibTeX
@inproceedings{chehbouni2025enhancing,
  author = {Khaoula Chehbouni and Martine De Cock and Gilles Caporossi and Afaf Taïk and Reihaneh Rabbany and Golnoosh Farnadi},
  title = {{Enhancing Privacy in the Early Detection of Sexual Predators Through Federated Learning and Differential Privacy}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i27.35005},
}
Figure