ORIGINAL RESEARCH article

Front. Pediatr.

Sec. Social Pediatrics

Volume 13 - 2025 | doi: 10.3389/fped.2025.1591828

This article is part of the Research TopicEarly Recognition and Intervention of Bullying and Cyberbullying: Strategies, Challenges, and SolutionsView all articles

Comparing Machine Learning Models with a Focus on Tone in Grooming Chat Logs

Provisionally accepted
  • Department of Information Systems and Media, Uppsala University, Uppsala, Sweden

The final, formatted version of the article will be published soon.

In online spaces, children are vulnerable to exploitation and sexual predators. Groomers contact minors in online chat rooms with the intent of sexual abuse. This study investigates how new deep learning models compare to traditional machine learning models in detecting grooming conversations and predatory authors. Furthermore, we detect the underlying tones used by predators and explore how these affect detection capabilities. Our goal is to better understand predator tactics and to advance automatic grooming detection in order to protect children in online spaces. The PAN12 chat logs, which contain grooming chat conversations, were used as the dataset for the research. These chat conversations were sorted into sentiments through the DistilBERT classifier based on the predator tone. SVMs and the LLaMA 3.2 1B large language model by Meta were then trained and fine-tuned on the different sentiments. The results measured through precision, recall and F 1 score show that the large language model performs better in grooming detection than traditional machine learning. Moreover, performance differences between the positive and negative sentiment are captured and indicate that positive tone improves detection while negative toned grooming conversations have nuanced patterns that are harder to distinguish from non-grooming. This shows that groomers employ varying strategies to gain access to their victims. Lastly, with an F 1 score of 0.99 and an F 0.5 score of 0.99, the LLaMA 3.2 1B model outperforms both traditional machine learning, as well as previous versions of the large language model in grooming author detection.

Keywords: Grooming detection, Online predators, sentiment analysis, Large language models, predator tone, social exchange theory

Received: 11 Mar 2025; Accepted: 30 May 2025.

Copyright: © 2025 Hamm and McKeever. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Steve McKeever, Department of Information Systems and Media, Uppsala University, Uppsala, 75120, Sweden

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.