On the Challenges of Creating Datasets for Analyzing Commercial Sex Advertisements to Assess Human Trafficking Risk and Organized Activity

Pablo Rivas, Pablo Rivas 0001, Tomás Cerný, Alejandro Rodríguez Pérez, Javier Turek, Laurie Giddens, Gisela Bichler, Stacie PetterarXiv 2024 · DOI

Abstract

Analyzing commercial sex advertisements for human trafficking (HT) risk presents significant technical and ethical hurdles, including high data volume, adversarial text, and the need to protect victim privacy. This paper details an automated, reproducible pipeline designed to process over 5 million advertisements. By employing custom-trained Named Entity Recognition (NER) and graph-based "relatedness" analysis, the methodology enables the identification of organized activity and trafficking indicators at scale. The results highlight a staggering 90% duplication rate in raw data and demonstrate the efficacy of Longformer-based models in extracting entities from messy, coded text.

Introduction

Identifying Human Trafficking (HT) risk within commercial sex advertisements is a critical yet daunting task for law enforcement and researchers. The domain is characterized by high-volume data that becomes obsolete rapidly and is frequently obfuscated by "adversarial" text—slang, emojis, and coded language designed to evade detection. Traditional research methods, which often rely on manual labeling or small, static datasets, fail to scale to the millions of ads generated annually.

Furthermore, the ethical implications of handling personally identifiable information (PII) of potential victims necessitate a balance between scientific transparency and safety. This work addresses these challenges by proposing a standardized, automated methodology for building reliable datasets and generating pseudo-labels for organized activity and trafficking risk without compromising the safety of vulnerable individuals.

Methodology

The researchers developed a multi-stage pipeline to transform raw, scraped data into a structured format suitable for analysis while minimizing human oversight.

1. Scraping and Normalization

The study began with the collection of 5,053,249 commercial sex advertisements over a two-year period. Unlike standard natural language processing (NLP) tasks, the normalization process specifically preserved emojis and slang, as these elements often contain vital contextual cues for identifying trafficking patterns.

2. Deduplication

Initial analysis revealed a massive duplication rate of approximately 90%. Using Levenshtein distance with a 0.5 threshold, the team pruned the 5 million ads down to 515,865 unique records. This high rate of duplication is not merely a processing hurdle but a significant indicator of automated or organized posting behavior.

3. Custom Named Entity Recognition (NER)

Standard NER models are generally ineffective against the adversarial nature of these ads, where phone numbers or social media handles may be intentionally obscured (e.g., "P-H-0-N-E" or embedded in emojis). The researchers fine-tuned Longformer and XLNet models on a manually labeled subset of 1,810 ads to extract identifiers such as phone numbers and locations more accurately.

4. Relatedness Graph and Pseudo-Labeling

Extracted entities were used to construct a "Relatedness Graph," where nodes represent individual ads and edges represent shared identifiers. This graph structure allowed for the generation of pseudo-labels:

  • Organized Activity Detection (OAD): Ads belonging to large connected components (clusters) were flagged as likely organized activity.
  • HT Risk Prediction (HTRP): Heuristics were applied to metadata—for instance, flagging ads where the same identifier appeared in different geographical locations (over 300 miles apart) within a short timeframe.

Data and Ethical Considerations

The final refined dataset consisted of 515,865 unique ads derived from the original 5 million. Due to the sensitive nature of the data and the potential risk to victims, the authors have opted for methodological transparency over data transparency. The raw dataset is not publicly available; instead, the authors provide the protocol and methodology to allow other researchers to reproduce the process safely.

Results and Discussion

Graph Structure and Organized Activity

The analysis identified 287,192 connected components within the relatedness graph. While the majority of ads (184,877) were isolated nodes, the researchers discovered one massive cluster containing over 1,000 connected nodes. Such large clusters are clear indicators of large-scale, coordinated organized activity that would be impossible to detect through manual review.

Model Performance

Longformer emerged as the superior architecture for entity extraction. Its ability to handle long-range dependencies and out-of-vocabulary tokens made it particularly well-suited for the "messy" text found in commercial sex ads. Statistical validation using a Wilcoxon rank-signed test (p-value = 0.004) confirmed that the automated labeling was statistically significant, providing a robust proxy for real-world trafficking indicators.

Limitations and Future Work

Despite the success of the pipeline, several limitations remain. The reliance on hard identifiers and the "300-mile rule" for HTRP may miss sophisticated traffickers who rotate contact information or operate within smaller geographic regions. Additionally, the heterogeneity of scraped data often requires nuanced interpretation that remains difficult to automate fully.

Future research should focus on integrating "human-in-the-loop" systems to refine pseudo-labels and developing more adaptable models capable of keeping pace with the evolving coded language used by criminal networks. The study concludes that while automated pipelines cannot replace ground-truth investigation, they provide a vital tool for navigating the scale and complexity of human trafficking in the digital age.

Summary updated

Abstract

Our study addresses the challenges of building datasets to understand the risks associated with organized activities and human trafficking through commercial sex advertisements. These challenges include data scarcity, rapid obsolescence, and privacy concerns. Traditional approaches, which are not automated and are difficult to reproduce, fall short in addressing these issues. We have developed a reproducible and automated methodology to analyze five million advertisements. In the process, we identified further challenges in dataset creation within this sensitive domain. This paper presents a streamlined methodology to assist researchers in constructing effective datasets for combating organized crime, allowing them to focus on advancing detection technologies.
BibTeX
@misc{rivas2024challenges,
  author = {Pablo Rivas and Pablo Rivas and Tomás Cerný and Alejandro Rodríguez Pérez and Javier Turek and Laurie Giddens and Gisela Bichler and Stacie Petter},
  title = {{On the Challenges of Creating Datasets for Analyzing Commercial Sex Advertisements to Assess Human Trafficking Risk and Organized Activity}},
  year = {2024},
  eprint = {2405.13348},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.13348},
}
Figure