Craft Fraud
Detector
A data-engineering pipeline that scores Etsy crochet and knitting shops for three kinds of fraud: AI-generated listings, stolen patterns and shops that flood the market with copies. It runs end to end from a single docker compose up.
in progress · thesis due Dec 2026
Who made this pattern?
Crochet and knitting patterns are cheap digital downloads, which makes them easy to fake. Some shops sell patterns for AI-generated photos of things that were never crocheted. Others copy a designer's photos and pattern and resell them, and some open with hundreds of listings at once. Buyers pay for patterns that don't work, and the designers who made the originals lose sales.
The thesis asks whether public shop data is enough to flag these shops automatically. It's a data-engineering thesis, so the contribution is the pipeline, the schema and the orchestration rather than a new model. The unit of evaluation is the shop, because that's how the ground truth is labeled.
From API to score.
Apache Airflow runs it as one DAG, with collection mapped across shops and the three scorers in parallel. Each scorer degrades gracefully: missing data gives a neutral score instead of an error, so one bad listing never fails a run. Photos are downloaded once, scored in memory and never stored. Only a perceptual hash and the detector scores are kept.
Three pillars.
Metadata
How the shop behaves.
- Shop age and active listings
- A young shop with a large catalog
- Sales per review
- Catalog breadth
- Missing or mismatched location
Text & reviews
How the listings and reviews read.
- Craft vocabulary in descriptions
- Descriptions copied across listings
- Shifts in review timing
- Repeat and cross-shop reviewers
- Duplicate review text
Photos
What the pictures show.
- Two off-the-shelf AI-image detectors, averaged and pinned by version
- Perceptual hashes matched across shops to find copied photos and their likely originals
- Photo quality
Small, honest, fast.
The shop model is a Bayesian logistic regression fit with a Laplace approximation, so every shop gets a probability and a credible interval, and every signal gets a weight you can read. Per-shop rates are stabilized with beta-binomial shrinkage, so a shop with three reviews isn't judged as confidently as one with three hundred.
I wrote my prior beliefs about each signal down before seeing any model results. On the labeled shops, neutral priors that let the data decide classified better, so production uses those. Because that choice was made after seeing results, a nested cross-validation repeats it blind inside each fold. It picked neutral priors in all five folds, with the same scores.
Buyer complaints in low-rated reviews go to a review queue but never into the score. The people labeling shops read those complaints, so scoring on them would leak the labels into the evaluation.
How well it works.
Five-fold cross-validation on 251 hand-labeled shops (November 2026). Labeling has since grown to over 400 shops, and the evaluation will be re-run once.
Against bigger models
| Model | F1 | Notes | |
|---|---|---|---|
| TabPFN (foundation model) | 0.956 | Comparison only | |
| Bayesian, neutral priors (production) | 0.944 | Readable weights and intervals | |
| Gradient boosting | 0.922 | Comparison only, untuned | |
| Bayesian, my written priors | 0.891 | Kept as a sensitivity check |
None of the pairwise differences between models is significant after a Holm correction (exact McNemar tests). TabPFN and the production model disagree on only four shops.
…at a fraction of the cost
Train on the labeled shops and score all 1,100+ collected shops. At equal accuracy, the interpretable model is about 270× faster, needs no license token and fits a daily DAG easily. TabPFN is built for GPUs, so a GPU would narrow the gap.
What I learned.
The optimizer can lie quietly
The first fit returned an AUC of 0.5 and odds ratios near 1043. Undamped Newton steps had diverged on nearly separable data. A step-halving (damped) Newton fixed it, and a regression test now guards against it.
Combining signals helps, narrowly
The composite beat the best single pillar, metadata, on 12 shops against 4 (p = 0.077), just short of the planned p < 0.05. It clearly beat the text and photo pillars. I fixed how many more shops to label before re-testing, rather than labeling until it passed.
Fraud is common in this corner
A random sample of 47 shops from the project's pattern searches put the fraud rate at about 37% (95% interval 24–51%). Searches sorted by newest favor young shops, so the Etsy-wide rate is likely lower.
Built to respect the source
Official API only, with no scraping or anti-bot evasion. Research use is approved, images are never stored, and no shop is named publicly as fraudulent.