Abstract: In this paper, we describe and study the indicator mining problem in the online sex advertising domain. We present an in-development system, FlagIt (Flexible and adaptive generation of Indicators from text), which combines the benefits of both a lightweight expert system and classical semi-supervision (heuristic re-labeling) with recently released state-of-the-art unsupervised text embeddings to tag millions of sentences with indicators that are highly correlated with human trafficking. The FlagIt technology stack is open source. On preliminary evaluations involving five indicators, FlagIt illustrates promising performance compared to several alternatives. The system is being actively developed, refined and integrated into a domain-specific search system used by over 200 law enforcement agencies to combat human trafficking, and is being aggressively extended to mine at least six more indicators with minimal programming effort. FlagIt is a good example of a system that operates in limited label settings, and that requires creative combinations of established machine learning techniques to produce outputs that could be used by real-world non-technical analysts.
Introduction
Law enforcement agencies face a daunting "needle in a haystack" challenge when investigating human trafficking (HT). They must navigate hundreds of millions of online advertisements, the vast majority of which are unrelated to trafficking. Identifying specific behavioral "indicators"—such as frequent movement between cities, suggestions of multiple individuals in a single ad, or "risky" language—is essential for generating actionable leads.
However, developing machine learning models for this domain is fraught with difficulties. The data volume is immense, yet "gold standard" labeled data for specific indicators is virtually non-existent. Furthermore, indicators are rare, making random sampling for labeling inefficient. Finally, the language used in these advertisements is highly irregular, characterized by slang, intentional misspellings, and non-standard formatting designed to evade simple filters.
The FlagIt System Architecture
FlagIt addresses these challenges through a hybrid architecture that blends domain expertise with automated machine learning. The system is designed to operate effectively with a minimal labeling budget, requiring only 140 labeled sentences per indicator.
The pipeline consists of several key components:
- Webpage Preprocessing: Raw HTML from high-activity domains is processed to extract clean text. Using the Readability Text Extractor (RTE), the system identifies approximately 1.92 million unique sentences.
- Lightweight Expert System (LES): Instead of relying solely on deep learning, domain experts define shallow pattern-matching rules using glossaries, regular expressions, and NLP tags via the spaCy toolkit. Rules are weighted by strength: Positive (P), Strong Positive (Sp), Negative (N), and Strong Negative (Sn).
- Smart Partitioning and Weakly Supervised Sampling: The LES rules are used to partition the corpus into seven distinct sets based on rule triggers. This ensures that the small human labeling budget (20 sentences per partition) covers a diverse and representative sample of the data, rather than just the most obvious cases.
- Unsupervised Embeddings: The system utilizes fastText to create vector representations. The authors found that fastText’s sub-word information approach is particularly effective at handling the "dirty" data and irregular language of the HT domain compared to document-level models like paragraph2vec.
- Semi-Supervised Iteration: An initial classifier trained on the 140 labeled sentences is used to predict labels for the entire corpus. The system then employs a heuristic re-labeling strategy, taking the most certain predictions to augment the training set and re-train the model, significantly boosting performance without additional human intervention.
Data and Evaluation
The system was developed using a 54 GB dataset of webpages scraped from domains known for sex advertising (e.g., backpage.com). Evaluation focused on five critical indicators: incall, outcall, movement, risky, and multi-girl.
Results and Insights
FlagIt achieved promising results, with average F-measure scores approaching 80%. It outperformed baseline models by 2–13% across four of the five indicators. A key finding was the efficacy of the semi-supervised step, which consistently improved F-measures by 1–9%.
Several insights emerged from the development process:
- Rules as a "Cold Start": Expert rules are most valuable not as a final classifier, but as a mechanism to intelligently sample data for human labeling in zero-label environments.
- Simplicity in Noise: In domains with high noise (typos, slang), simpler architectures like fastText often prove more robust than complex deep learning models.
- Human-in-the-loop Efficiency: By focusing human effort on a strategically partitioned subset of data, high-quality models can be built with only a few hours of expert time.
Conclusion and Future Work
FlagIt demonstrates that creative combinations of established ML techniques can produce powerful tools for real-world, high-stakes domains like human trafficking investigation. Currently integrated into tools used by over 200 law enforcement agencies, the system is being expanded to include over a dozen indicators. Future work will focus on improving explainability for non-technical users and analyzing the correlations between different indicators to better identify organized trafficking rings.
Summary updated