Veridex
Hybrid ResNet-50 + BiLSTM · 82 % test accuracy

Spot the manipulated in seconds.

Veridex extracts faces, runs them through a fine-tuned hybrid CNN-LSTM, and returns a calibrated REAL / FAKE verdict for any short clip — entirely on your machine, no upload to third parties.

No file is sent to a third-party server. Inference runs locally against the Flask backend on your machine.

veridex.local /detect

Sample upload

📼

clip_001.mp4 · 6.3 MB

32 frames · 30 fps · 224×224 face crops

  • Frames extracted: 32 / 32
  • Faces detected: 32
  • Inference: ResNet-50 → BiLSTM(128, 1, bidir)

Result

FAKEexample

99.27 % probability fake · threshold 0.575

Confidence 99.27 %

P(fake)
99.27 %
P(real)
0.73 %
Inference
3.42 s
Device
CPU

0.0 %

Test accuracy

0.000

ROC-AUC

0

Videos in study set

0

Face frames per video

Use cases

Built around the four manipulation families in FaceForensics++.

The model was trained against deepfakes, face-swaps, reenactments, and neural-texture synthesis — and calibrated so the real class isn't drowned out by the 4-to-1 fake skew in the dataset.

🎭

Face-swap detection

Spots identity transplants from FaceSwap-family models — even when blending boundaries are smoothed.

FAKE

FaceSwap test clip · 97 % p(fake)

🗣️

Reenactment & lip-sync

Catches Face2Face-style mouth-and-pose puppeteering by exploiting temporal artefacts across frames.

FAKE

Face2Face test clip · 99 % p(fake)

🧬

Neural texture synthesis

Detects neural-rendered textures even when single-frame artefacts are imperceptible to the human eye.

FAKE

NeuralTextures test clip · 95 % p(fake)

✅

Authentic content

Calibrated threshold prevents over-flagging — real videos get a confident REAL label without retraining.

REAL

Untouched test clip · 0.4 % p(fake)

How it works

Four steps, ~15 seconds, fully local.

The whole pipeline lives on your machine — feature extraction, face detection, model inference. No third-party API, no upload anywhere.

  1. 01

    Upload a clip

    Drag a short video into the detector, or click to pick. mp4, mov, mkv, webm and avi up to 50 MB.

  2. 02

    Faces are extracted locally

    32 evenly-spaced frames are pulled from the video and passed through MTCNN to locate and crop a single face per frame.

  3. 03

    Hybrid model runs on your CPU

    The fine-tuned ResNet-50 backbone produces a 2 048-d feature per face; a BiLSTM aggregates the temporal sequence into one logit.

  4. 04

    Calibrated REAL / FAKE verdict

    The logit is compared to the val-tuned threshold (0.575). You get a label, confidence, frame counts, and timing — all in JSON.

pipeline.tracelive
upload»clip_022.mp4 (4.8 MB)
frames»32 / 32 extracted
faces»32 / 32 detected (MTCNN)
backbone»ResNet-50 → 32 × 2048 features
head»BiLSTM(128, 1, bidir) → 1 logit
prob_fake»0.0044
threshold»0.575
verdict»REAL · 99.56 % confidence
elapsed»14.32s
Why Veridex

A research demo that doesn't oversell itself.

Most deepfake demos either hide behind an opaque API or quote accuracy figures without context. Veridex is built the other way: metrics are surfaced, threshold choices are explained, and you can retrain the whole thing on a laptop.

Calibrated thresholds

Decision threshold tuned on validation for macro-F1 — not a stock 0.5 — so the imbalanced class doesn't dominate.

Honest about its limits

Real-class recall is 73 % at the deployed threshold — we report it, alongside the rest, on the About page.

Local-only inference

Uploads stay on your machine. The Flask backend runs the model on CPU and deletes the file after each prediction.

Reproducible pipeline

Three scripts to retrain end-to-end on the same hardware: extract → train head → evaluate. Documented step-by-step.

Typed errors, not 500s

Bad uploads — wrong type, no faces, too short — return JSON error codes the UI renders inline. No mystery crashes.

Open source

Every line of model, training, and frontend code is in the repo under MIT. Nothing is hidden behind an SDK.

FAQ

Questions you'll probably ask.

If something is missing here, the README and the engineering docs in the repo have a deeper trace of the design decisions.

A 1 000-video subset of FaceForensics++, split 700 / 150 / 150 across train, val, and test. The fake class spans deepfakes, face2face, faceswap, and neuraltextures manipulations. Real videos come from the FaceForensics++ originals split.

Generalisation to unseen manipulations is a known weakness of any model trained on a single forgery family. Veridex was trained on four — if a new manipulation shares low-level statistics with one of them, the model often catches it. If it's a fundamentally different generation pipeline, expect lower confidence and higher error rates.

The dataset is 4 : 1 fake : real, with only 140 unique real training videos. WeightedRandomSampler and threshold calibration close most of the gap (real-recall is 73 % at the deployed threshold, up from 5.5 % at the default 0.5), but more real data is the only durable fix.

They stay on your machine. The Flask backend writes the file to a temp directory under app/static/uploads/, runs the model, and deletes the file on the way out. Nothing is sent to a third-party API.

About 15 seconds end-to-end on a 2-core 7th-gen i5 CPU — dominated by ResNet-50 forward over 32 face crops. On a GPU it would be sub-second; the model is loaded once at server startup, so there is no per-request load cost.

Yes. The repo's TRAINING_GUIDE walks through both the CPU path (cache features once, train just the head) and the GPU path (full end-to-end fine-tune on Colab) with exact commands.

No — and we say so on the About page. Veridex is a research demo. Predictions are probabilistic, real-recall is not 100 %, and the model has only been evaluated on FaceForensics++.