Applied ML · Classification · Entity resolution · Ranking

Who should we reach? A pipeline that answers it.

Every researcher record arrives as raw text: a name, a department, some interests, a list of papers. The pipeline turns that into a decision. It resolves the record to one person, places them in a field and subfields, fills in their profile, and ranks them by work history against the campaign. A fast local model does most of the work. An LLM handles the uncertain cases. People make the final call wherever the system is unsure.

  • scikit-learn
  • LLM (Grok) · webhook protocol
  • Title fingerprinting
  • PostgreSQL advisory locks
  • FastAPI background workers
10M+
Records classified & deduplicated
2,000+
Universities, by department
4.5×
Outreach open rate
8% → 36% within two months, targeted shortlists vs the old blind lists

The pipeline

Department first, then work history.

Two questions decide whether a researcher is worth reaching: what field are they in, and how active and senior are they in it. Each stage below answers part of that, and each one is safe to re-run.

Classification pipeline Records are resolved to one identity, then a local classifier decides the confident cases. Uncertain cases go to an LLM, and anything still uncertain goes to human review. Classified records are ranked by work history. Human corrections feed back into training. Raw profile dept · interests · papers Identity resolution title fingerprints Local classifier confident → write LLM classify · enrich Work-history ranking shortlist for marketing unsure Human review · corrections become training labels ambiguous match low confidence retrain

Identity resolution: one person, one record

Names are a weak signal and papers are a strong one. Each profile keeps a bounded set of papers: the newest, plus the most-cited of the rest. Each paper gets a 64-bit fingerprint of its title. Two profiles merge only when they share a fingerprint and their names are compatible. A single candidate with no shared paper, or paper lists that disagree, opens a review question instead of guessing.

precision over recall

Department → field: confidence-gated local model

A scikit-learn classifier, trained in-process, reads the department name and research interests and predicts the major field. It writes only above a confidence threshold. Labels are weighted by trust: values a person entered or verified count more than machine-written ones. The model's own unchecked predictions are excluded from training, so it never learns from itself. It retrains in the background when labels change, under an advisory lock.

cheap · fast · deterministic

LLM classification & enrichment, with provenance

Records the local model is unsure about go to an LLM in batches over a webhook protocol. Classification is constrained to the company taxonomy: one field, one to three subfields spelled exactly as the taxonomy spells them, and a few research phrases drawn from the papers. Enrichment fills title, location, highest qualification and career start year. It writes only into empty fields, never over a human's value. Every write is marked with source, run and evidence, plus a low-confidence flag when the model says it's unsure.

taxonomy-constrained auditable

Work-history ranking

With a field attached, researchers are ranked against a campaign's target areas. The signals are fit to the subfield, publication output per year, citation weight, recency of work and seniority. The ranking is joined to a deliverability score kept per contact and per domain (safe, risky, not tested, do not send), so the shortlist is both relevant and reachable.

relevance × reachability

Human-in-the-loop, by design

Ambiguous identities, low-confidence classifications and flagged records go to a review queue. When a person edits a value, its machine mark is cleared and it becomes a high-trust training label. The system gets better from the work people already do.

closed feedback loop

How it behaves

Decide what you're sure of, escalate the rest.

Confidence gating

Illustrative

The concept, not production figures. Predictions above the threshold are written automatically; everything below goes to the LLM or a reviewer.

Outreach open rate

Open rate, %

Moving from blind lists to classified, work-history-ranked shortlists raised the open rate from 8% to 36% within two months, a 4.5× improvement.

Design decisions

Why hybrid, not "LLM everything".

DecisionWhy
Local model before the LLMMost records are easy. Settling them locally keeps cost and latency low, and saves the LLM for the cases that need it.
Never train on unchecked outputStops the model reinforcing its own mistakes.
Fill-empty-only LLM writesHuman knowledge always wins, and every machine value can be traced and reverted.
Merge only on shared papersA false merge corrupts two people's records and is far costlier than a review question.
Watchdog-driven batchesStalled LLM runs are closed and their records released. Dropped webhooks are retried, and runs never stack past the lane limit.
Earlier work: before this pipeline I built revenue forecasting (Prophet + ARIMA) and payment-timing clustering (K-Means + DBSCAN) for the finance suite. See the finance ML →