Problem
Careem is a ride-hailing and delivery marketplace. Some Captains (drivers and couriers) open several accounts to get more orders and bonuses. Honest Captains get fewer orders, and customers get a worse experience. Checking documents at registration did not stop it, because photos and documents can be manipulated. The fraud team needs a way to find such accounts afterwards, among millions of profile photos.
Example from the article: in the photo analysis, some groups were several accounts sharing similar photos, and others were chains of accounts with only pairs or triplets of similar photos.
Solution in brief
Take each Captain's profile photo, detect the largest face, and compute a face embedding with an open-source model. Search for the five nearest embeddings of every photo with a GPU FAISS index. Keep pairs whose Euclidean distance is under a threshold tuned for few false positives. Then filter out legitimate cases with business rules and manual review.
Questions this case answers
- How to detect duplicate accounts of one person in a marketplace when documents and photos can be manipulated
- How to find near-duplicate image embeddings across millions of items when pairwise comparison does not scale
- How to find drivers or couriers who registered several accounts to collect more orders and bonuses?
- How to compare millions of face photos for duplicates without comparing every pair?
Tools and methods
- face_recognition library — pretrained face detection and embeddings, free for commercial use
- FAISS-GPU — top-5 similarity search over about 2 million embeddings
- Euclidean distance threshold — decides which pairs are flagged
- Connected components — groups flagged photos into clusters of related accounts
- Amazon S3 — storage of Captain photos
- Manual review by a fraud team — checks a sample of flagged pairs and accounts before blocking
Google or a one-time email code. No password.