Craft Fraud
Detector
A data-engineering pipeline that flags fraudulent Etsy crochet and knitting shops by their AI-generated listings and by how fast they flood the market, and checks every photo against other shops for signs of pattern theft. It runs end to end, with no manual steps, from a single command.
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 439 hand-labeled shops (170 fraudulent, 269 legitimate), November 28, 2026. Of the 170 fraudulent shops, 159 were caught; 9 of the 269 legitimate shops were wrongly flagged.
Against bigger models
| Model | F1 | Notes | |
|---|---|---|---|
| Bayesian, neutral priors (production) | 0.941 | Readable weights and intervals | |
| TabPFN (foundation model) | 0.934 | Comparison only | |
| Gradient boosting | 0.918 | Comparison only, untuned | |
| Bayesian, my written priors | 0.890 | Kept as a sensitivity check |
Exact McNemar tests on the same folds: the production model is not significantly different from TabPFN (9 shops vs. 7, p = 0.80) or gradient boosting (16 vs. 8, p = 0.15), and it clearly beats the version with my written priors (21 vs. 4, p < 0.001).
…at a fraction of the cost
Benchmark from November 16: train on the labeled shops and score all 1,131 shops collected then. 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 the model leans on
Fraudulent shops caught, compared with the full model's 159, when one signal is removed and the model is refit on the same folds. The five that matter most span all three pillars. Removing shop age costs six fraud shops but doesn't reduce false alarms (9 rose to 10), so the legitimate shops the model flags aren't flagged just for being new.
Are the signals redundant?
Spearman correlations between the model's signals on the 439 labeled shops. Most fraud signs travel with a new shop: the strongest pair is shop age with the AI-image score (0.69), and no pair reaches 0.7. Every variance inflation factor is under 5 (the highest is shop age at 3.96), so the signals overlap without being redundant and the weights stay readable. One planned signal, a shop claiming to be US-based while located elsewhere, never occurred in the labeled shops and is left out.
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. It only happened with my written priors, which were too confident that every signal pointed toward fraud, so the search started far from where the data put the weights. With neutral priors the same optimizer converged normally. A step-halving (damped) Newton fixed it, gives identical results with neutral priors, and a regression test now guards against it.
Combining signals beats any one
On 251 shops, the composite beat the best single pillar (metadata) only narrowly: 12 shops vs. 4, p = 0.077. I fixed how many more shops to label before re-testing, rather than labeling until it passed. The one planned re-test on 439 shops gave 20 vs. 7, p = 0.019, meeting the target. It beats the text and photo pillars by far more.
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.
A real signal can still add nothing
Some fraud shops share near-identical photos with each other, which looks like one operator running several shops. On its own that sign is real: 14% of fraud shops vs. 6% of legitimate ones (p = 0.006). Added to the model, it caught no extra shops, because the other signals already flag those shops. I report it as error analysis rather than adding it.
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.