SevvenLabs
Case Studies/Automated Media Forensics & Metadata Extraction for Vehicle Claims
Automotive & Mobility

Automated Media Forensics & Metadata Extraction for Vehicle Claims

A production pipeline that checks every vehicle inspection photo and claim document for tampering, duplicates and poor quality, built into RealDealRide's existing Laravel and Cloudflare R2 stack.

RealDealRide logoBuilt forRealDealRideCar rental marketplace, USA · Apr – Jul 2026
Client
RealDealRide
Industry
Car rental marketplace
Service
AI & data engineering
Engagement
Apr – Jul 2026
Metadata fields
150+ per image
Files checked
Photos, PDF, DOCX
Storage
Cloudflare R2 + MySQL
Deployment
Docker, client's infrastructure
Automated Media Forensics & Metadata Extraction for Vehicle Claims
Context & Vision

Project Overview

RealDealRide is a peer-to-peer and commercial car rental marketplace operating across US cities. To protect vehicle owners and renters, the platform collects pre-trip and post-trip inspection photos, along with rental and damage claim documents in PDF and DOCX, stored through its Laravel app on Cloudflare R2.

Manual review could not reliably catch subtle digital tampering, recycled photos or screenshots, or blurry and unusable submissions at scale. SevvenLabs built an automated media forensics pipeline that screens every upload before a claim reaches a human reviewer.

The system runs as a Docker service next to the client's existing app. It reads from their MySQL database, streams files from R2 and writes its findings back into new tables the operations team can query.

Objective

RealDealRide needed a backend that could:

01

Detect photo and document fraud

Spot stripped metadata, editing software signatures such as Photoshop, iLovePDF or Adobe Acrobat, timestamp mismatches, and recycled photos or screenshots.

02

Enforce claim image quality

Score blur, brightness, contrast and resolution automatically, so unusable photos are caught before review.

03

Fit the existing stack

Work with the existing Laravel MySQL database and Cloudflare R2 storage without adding a separate message broker.

Project media

See the data and the result

Architecture diagram of the RealDealRide database-as-a-queue worker showing pending, in-progress, completed and failed jobs, a reprocess CLI output, and four forensic check groups: screenshot and duplicate detection, OpenCV image quality gate, GPS and EXIF forensics, and PDF and DOCX tamper analysis
Database-as-a-queue worker and forensic checksThe background worker polls the client's MySQL media table in batches, streams files from Cloudflare R2 in memory and retries each file at most three times. Each image gets screenshot and duplicate checks, an OpenCV quality gate, GPS and EXIF forensics, and PDF/DOCX tamper analysis.
Execution Pipeline

Our Approach

We built the pipeline in three stages: ingest, analyse, then store a clear risk verdict.

01

Media ingestion

A Dockerized worker picks up new photos (JPG, PNG, WEBP, HEIC, TIFF) and documents (PDF, DOCX, DOC) from the client's MySQL media table and streams them from Cloudflare R2, with URL and MIME checks and SHA-256 hashing.

02

Image forensics engine

Extracts 150+ fields per image across EXIF, IPTC, GPS (coordinates, altitude, speed, direction and a Maps link), Pillow properties and OpenCV quality checks, then returns a PASS, WARN or FAIL verdict.

03

Duplicate and document checks

64-bit perceptual hashes catch screenshots and re-uploads of existing photos, and a document scanner flags suspicious PDF/DOCX producer software, creation vs. modification date gaps, encryption and stripped metadata.

04

Risk storage and tooling

Results land in Alembic-versioned MySQL tables (image_metadata and document_metadata) with validation notes and error trails, plus a reprocessing CLI and FastAPI + Celery/Redis REST endpoints.

Technical Hurdles & Resolutions

Challenges & Solutions

Fraud signals in photos and documents are subtle, and the pipeline had to run inside an existing production system.

01

Recycled photos and screenshots

Challenge

A screenshot of an earlier upload has a different file hash, so exact-match checks miss it.

Solution

We store a 64-bit perceptual hash for every image and compare Hamming distance (≤ 10 bits) in both SQL and Python, alongside SHA-256 for exact duplicates.

02

Edited documents

Challenge

Altered claim documents can look normal on screen.

Solution

The scanner reads PDF and DOCX metadata to flag editing tools, date mismatches, encryption and missing metadata, and stores them as risk signals.

03

No room for new infrastructure

Challenge

The client wanted no extra message broker and no files piling up on server disks.

Solution

We used the existing MySQL database as the job queue, streamed files from R2 in memory only, and capped retries at three so a bad file can't block the queue.

Measurable Impact

Results

RealDealRide moved from manual media inspection to automated forensic screening inside its existing Laravel and Docker setup.

Full forensic coverage

150+ metadata, GPS, quality and tamper attributes stored for each image, plus structured risk signals for PDF and DOCX files.

Automatic quality and fraud gate

Every upload gets a PASS, WARN or FAIL quality verdict and a screenshot flag, visible directly in the operations database.

Stable in production

In-memory streaming and three-attempt failure isolation keep the worker running without disk build-up or stuck queues.

Final Takeaway

Trust built into every upload

Instead of relying on reviewers to spot edited photos by eye, RealDealRide now screens every inspection photo and claim document automatically, using the database and storage it already had.

Want to build a similar AI solution?

Let’s consult with your engineering and product team to engineer reliable, production-grade ML models.

Schedule Consultation →