Skip to content
Technology

Liveness Detection: How AI Knows You're a Real Person, Not a Photo

Liveness detection checks that a real person is in front of the camera, not a printed photo, a screen replay, a mask or a deepfake. It uses cues like depth, texture, reflections and movement such as blinking or head turns. It is essential for face unlock and ID checks; a celebrity lookalike search does not need it.

Liam BradleyJune 11, 2026 · 4 min read
A wall of Venetian carnival masks
Image: Marek Ślusarczyk (Tupungato) Photo portfolio, CC BY 3.0, via Wikimedia Commons (resized)

What Is a Presentation Attack?

A presentation attack is an attempt to spoof a face recognition system by presenting an artificial representation of a face rather than a live face. Common attacks include: printed photo attacks (holding a photo of the target in front of the camera), screen replay attacks (showing the target's face on a phone or tablet), 3D mask attacks (wearing a 3D-printed or sculpted mask), and deepfake video attacks (using AI-generated video).

Face recognition systems without anti-spoofing are vulnerable to these attacks. A system that only checks whether the face matches a database entry, without checking whether a live face is present, can be defeated by presenting the correct photo.

How Liveness Detection Works

Multiple technical approaches to liveness detection exist. Texture analysis detects the characteristic flat texture and rectilinear artefacts of printed or displayed images. 3D depth sensing (used in iPhone Face ID) confirms the face is a three-dimensional object at the expected depth. Motion-based approaches require the user to perform specific movements (blink, turn head) that are difficult to replicate in a replay attack. Passive video analysis detects rPPG (remote photoplethysmography), the subtle colour changes in skin caused by blood pulsation, which cannot be replicated by a static photo.

For Ollie's celebrity matching application, presentation attack vulnerability is less concerning than for identity verification applications, the attack incentive is lower. But as AI face generation improves, detecting AI-generated input will become relevant for maintaining database integrity.

Frequently Asked Questions

What is liveness detection?

A security technique that verifies a real, living face is present rather than a photo, screen display, or 3D mask. It prevents 'presentation attacks' that defeat standard face recognition.

Try it yourself

Find your celebrity lookalike

Upload a photo and see which celebrities you look most like. Free to try, and your photo is never stored.

Find my celebrity look alike

Related Articles