Problem
Trendyol runs a single-catalog marketplace: a product is created once and then sold by many sellers. The Data Quality team finds duplicate products and merges them, a process called product unification. The old flow searched by title, so many returned candidates were unrelated. It then scored image similarity with perceptual hashes (pHash), which are sensitive to resizing and compression. True duplicates fell under the merge threshold, and lowering the threshold risked merging different products.
Example from the article: two listings of the same toy house set with different image resolution and quality got a pHash similarity of only 0.742.
Solution in brief
Image vectors from a model trained by the data science team sit in a vector search engine, so candidates are found by image instead of title. A machine learning model then takes product details and the image scores and predicts whether a candidate is a duplicate. The pair that scored 0.742 with pHash scored 0.981 with vector search.
Questions this case answers
- How to detect duplicate records of the same object in a shared catalog when candidate retrieval by text returns many unrelated items and a fixed similarity threshold either misses true duplicates or merges different objects
- How to measure similarity of images that show the same object but differ in resolution and compression when hash-based fingerprints are too sensitive to small edits
- How to find duplicate product listings in a single-catalog marketplace where many sellers create the same product?
- How to score image similarity of product photos when the same product comes in different resolution and compression?
Tools and methods
- Vector search — retrieves the most similar product images for a reference product and returns IDs and scores.
- Image embedding model — turns each product image into a vector; trained by the data science team on product data.
- Duplicate product predictor — ML model that takes product details and image scores and outputs matched or not matched.
- pHash (legacy) — perceptual hash used before; the baseline that missed duplicates.
Google or a one-time email code. No password.