← All projects
MS thesis · UC Riverside · Data Science 296B

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.

PythonApache AirflowPostgreSQLDockerEtsy Open API v3PyTorchBayesian logistic regression

in progress · thesis due Dec 2026

01 · The problem

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.

02 · Pipeline

From API to score.

CollectEtsy Open APIShop details, recent listings and reviews, within the daily quota.
StorePostgreSQLOne schema for shops, listings, reviews, image hashes and scores.
ScoreThree pillarsMetadata, text and reviews, photos. Each returns 0 to 1.
CombineShop signalsListing scores roll up to one row of signals per shop.
ModelBayesian scoreA fraud probability with a credible interval, per shop.

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.

03 · Signals

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
04 · Model

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.

05 · Results so far

How well it works.

0F1 score (95% CI 0.913–0.965)
0%false-positive rate (target: under 10%)
0AUC
0%of fraudulent shops caught

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

ModelF1Notes
Bayesian, neutral priors (production)0.941
Readable weights and intervals
TabPFN (foundation model)0.934
Comparison only
Gradient boosting0.918
Comparison only, untuned
Bayesian, my written priors0.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

Bayesian (production)
0.13 s
Gradient boosting
0.10 s
TabPFN (CPU)
34.4 s

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

Copied descriptions
−10
AI-image score
−8
Shop is new
−6
Active listings
−6
Catalog breadth
−5
Each of the other 12
0 to −3

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?

Active listingsActive listings × Shop is new: +0.04Young shop, big catalogYoung shop, big catalog × Shop is new: +0.58.58Young shop, big catalog × Active listings: +0.39.39Sales per reviewSales per review × Shop is new: +0.33.33Sales per review × Active listings: +0.13Sales per review × Young shop, big catalog: +0.08Catalog breadthCatalog breadth × Shop is new: +0.34.34Catalog breadth × Active listings: +0.27Catalog breadth × Young shop, big catalog: +0.32.32Catalog breadth × Sales per review: +0.20Missing locationMissing location × Shop is new: +0.38.38Missing location × Active listings: +0.07Missing location × Young shop, big catalog: +0.32.32Missing location × Sales per review: +0.12Missing location × Catalog breadth: +0.20Little craft vocabularyLittle craft vocabulary × Shop is new: +0.01Little craft vocabulary × Active listings: +0.01Little craft vocabulary × Young shop, big catalog: -0.05Little craft vocabulary × Sales per review: -0.02Little craft vocabulary × Catalog breadth: +0.16Little craft vocabulary × Missing location: -0.01Copied descriptionsCopied descriptions × Shop is new: +0.61.61Copied descriptions × Active listings: +0.20Copied descriptions × Young shop, big catalog: +0.43.43Copied descriptions × Sales per review: +0.23Copied descriptions × Catalog breadth: +0.38.38Copied descriptions × Missing location: +0.33.33Copied descriptions × Little craft vocabulary: +0.11Many languagesMany languages × Shop is new: +0.12Many languages × Active listings: +0.24Many languages × Young shop, big catalog: +0.18Many languages × Sales per review: +0.11Many languages × Catalog breadth: -0.01Many languages × Missing location: -0.03Many languages × Little craft vocabulary: -0.14Many languages × Copied descriptions: +0.15Review timing spikeReview timing spike × Shop is new: +0.59.59Review timing spike × Active listings: +0.25Review timing spike × Young shop, big catalog: +0.56.56Review timing spike × Sales per review: +0.17Review timing spike × Catalog breadth: +0.31.31Review timing spike × Missing location: +0.22Review timing spike × Little craft vocabulary: +0.01Review timing spike × Copied descriptions: +0.44.44Review timing spike × Many languages: +0.20Repeat reviewersRepeat reviewers × Shop is new: -0.11Repeat reviewers × Active listings: +0.35.35Repeat reviewers × Young shop, big catalog: +0.12Repeat reviewers × Sales per review: -0.35-.35Repeat reviewers × Catalog breadth: -0.12Repeat reviewers × Missing location: -0.12Repeat reviewers × Little craft vocabulary: -0.13Repeat reviewers × Copied descriptions: -0.06Repeat reviewers × Many languages: +0.14Repeat reviewers × Review timing spike: +0.07Top reviewer shareTop reviewer share × Shop is new: +0.52.52Top reviewer share × Active listings: -0.18Top reviewer share × Young shop, big catalog: +0.37.37Top reviewer share × Sales per review: -0.04Top reviewer share × Catalog breadth: +0.14Top reviewer share × Missing location: +0.23Top reviewer share × Little craft vocabulary: -0.02Top reviewer share × Copied descriptions: +0.17Top reviewer share × Many languages: -0.02Top reviewer share × Review timing spike: +0.35.35Top reviewer share × Repeat reviewers: +0.21Cross-shop reviewersCross-shop reviewers × Shop is new: +0.03Cross-shop reviewers × Active listings: +0.10Cross-shop reviewers × Young shop, big catalog: +0.03Cross-shop reviewers × Sales per review: +0.11Cross-shop reviewers × Catalog breadth: -0.07Cross-shop reviewers × Missing location: +0.07Cross-shop reviewers × Little craft vocabulary: -0.25Cross-shop reviewers × Copied descriptions: +0.02Cross-shop reviewers × Many languages: +0.02Cross-shop reviewers × Review timing spike: -0.18Cross-shop reviewers × Repeat reviewers: +0.15Cross-shop reviewers × Top reviewer share: -0.01Duplicate reviewsDuplicate reviews × Shop is new: -0.43-.43Duplicate reviews × Active listings: +0.35.35Duplicate reviews × Young shop, big catalog: -0.19Duplicate reviews × Sales per review: -0.12Duplicate reviews × Catalog breadth: -0.22Duplicate reviews × Missing location: -0.19Duplicate reviews × Little craft vocabulary: -0.08Duplicate reviews × Copied descriptions: -0.21Duplicate reviews × Many languages: +0.10Duplicate reviews × Review timing spike: -0.20Duplicate reviews × Repeat reviewers: +0.44.44Duplicate reviews × Top reviewer share: -0.48-.48Duplicate reviews × Cross-shop reviewers: +0.21AI-image scoreAI-image score × Shop is new: +0.69.69AI-image score × Active listings: +0.17AI-image score × Young shop, big catalog: +0.52.52AI-image score × Sales per review: +0.16AI-image score × Catalog breadth: +0.23AI-image score × Missing location: +0.28AI-image score × Little craft vocabulary: -0.09AI-image score × Copied descriptions: +0.55.55AI-image score × Many languages: +0.28AI-image score × Review timing spike: +0.48.48AI-image score × Repeat reviewers: +0.06AI-image score × Top reviewer share: +0.36.36AI-image score × Cross-shop reviewers: +0.04AI-image score × Duplicate reviews: -0.25Low-quality photosLow-quality photos × Shop is new: -0.21Low-quality photos × Active listings: +0.06Low-quality photos × Young shop, big catalog: -0.18Low-quality photos × Sales per review: -0.13Low-quality photos × Catalog breadth: -0.11Low-quality photos × Missing location: -0.05Low-quality photos × Little craft vocabulary: +0.02Low-quality photos × Copied descriptions: -0.03Low-quality photos × Many languages: -0.09Low-quality photos × Review timing spike: -0.23Low-quality photos × Repeat reviewers: -0.02Low-quality photos × Top reviewer share: -0.16Low-quality photos × Cross-shop reviewers: +0.04Low-quality photos × Duplicate reviews: +0.15Low-quality photos × AI-image score: -0.12Photos shared laterPhotos shared later × Shop is new: -0.01Photos shared later × Active listings: +0.08Photos shared later × Young shop, big catalog: -0.01Photos shared later × Sales per review: -0.05Photos shared later × Catalog breadth: +0.09Photos shared later × Missing location: +0.06Photos shared later × Little craft vocabulary: +0.11Photos shared later × Copied descriptions: +0.19Photos shared later × Many languages: +0.07Photos shared later × Review timing spike: +0.14Photos shared later × Repeat reviewers: +0.03Photos shared later × Top reviewer share: -0.00Photos shared later × Cross-shop reviewers: -0.11Photos shared later × Duplicate reviews: +0.02Photos shared later × AI-image score: +0.05Photos shared later × Low-quality photos: +0.08Shop is newActive listingsYoung shop, big catalogSales per reviewCatalog breadthMissing locationLittle craft vocabularyCopied descriptionsMany languagesReview timing spikeRepeat reviewersTop reviewer shareCross-shop reviewersDuplicate reviewsAI-image scoreLow-quality photos
rise togetherone rises as the other fallsValues shown at |ρ| ≥ 0.3

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.

06 · Findings

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.