Face Liveness Detection Dataset: What Data Is Needed to Train AI Models?

Face Liveness Detection Dataset: What Data Is Needed to Train AI Models?

Back To Blogs

Liveness · Anti-Spoofing · PAD Data

Face Liveness Detection Dataset: What Data Is Needed to Train AI Models?

Consented genuine and attack images and videos, covering print, replay, 2D and 3D mask, silicone and fabric mesh mask attacks. Available from GTS off-the-shelf, or custom-collected at scale for your devices and markets.

Liveness detection dataset sample showing a silicone mask presentation attackSilicone mask attack
Liveness detection dataset sample showing a printed photo presentation attackPrint attack
The guide

What data does a face liveness detection dataset need?

A face liveness detection dataset needs both real face samples and spoof samples. This allows AI models to learn the difference between a genuine person and a presentation attack. For example, useful data can include live selfies, videos, printed photos, screen replays, and masks. This kind of data is also called face anti-spoofing or presentation attack detection (PAD) data.

In addition, the dataset should cover different cameras, lighting conditions, facial poses, environments, and subjects. Accurate labels and metadata are also important because they help developers train, test, and improve liveness detection models.

What Is a Face Liveness Detection Dataset?

A face liveness detection dataset is a collection of facial images or videos used to train AI systems to determine whether a face is live or spoofed.

In simple terms, the model needs to answer: “Is this a real person in front of the camera?”

For instance, an attacker might use a printed photograph or a video displayed on a smartphone to bypass facial recognition. Therefore, liveness detection adds an additional security layer to biometric systems.

It can be used for:

  • Identity verification
  • Digital KYC
  • Banking security
  • Access control
  • Biometric authentication
  • Remote onboarding

What Data Does the Dataset Need?

A good dataset should contain several types of data. These include live faces, spoof attacks, environmental variations, device information, and detailed labels.

1. Live Face Images and Videos

First, collect genuine samples of real people. These can include selfies, photographs, and video sequences.

The dataset should contain different:

  • Facial expressions
  • Head movements
  • Poses
  • Camera angles
  • Distances
  • Natural movements

Furthermore, video samples can provide temporal information, such as blinking and facial movement.

2. Printed Photo Attacks

Next, include printed photographs as spoof samples. These attacks are important because an attacker can present another person’s photograph to a camera.

To improve diversity, use photographs with different:

  • Print qualities
  • Sizes
  • Paper types
  • Viewing angles
  • Distances
  • Brightness levels

As a result, the model can learn to identify different forms of printed-photo attacks.

See the GTS printed photo attack dataset.

3. Screen and Video Replay Attacks

In addition to printed photos, include digital replay attacks. For example, a face can be displayed on a smartphone, tablet, laptop, or monitor.

The dataset should vary screen brightness, display quality, distance, and viewing angle. This is especially useful because high-resolution screens can produce convincing spoof samples.

See the GTS monitor replay attack dataset.

4. Advanced Spoof Attacks

For more comprehensive projects, the dataset can include 3D masks and facial replicas.

However, the required attack types depend on the intended application. A high-security biometric system may need more advanced attacks than a basic research project.

See the GTS 3D paper mask, latex mask and 2D mask attack datasets, and our guide to face anti-spoofing datasets and attack types.

Environmental and Device Diversity

A reliable face liveness detection dataset should represent real-world conditions.

Therefore, include different:

  • Lighting conditions
  • Indoor and outdoor environments
  • Smartphones and webcams
  • Camera resolutions
  • Backgrounds
  • Facial poses

For example, a user may verify their identity in bright daylight or in a poorly lit room. Consequently, the model should not depend on one specific lighting condition.

Camera diversity is also important because different devices produce different exposure, color, sharpness, and compression characteristics.

What Labels Should Be Included?

At minimum, each sample should have a Live or Spoof label.

However, additional metadata can make the dataset more useful.

FieldExample
LabelLive / Spoof
Attack typePrint / Replay / Mask
Subject IDSubject_001
DeviceAndroid
LightingLow
EnvironmentIndoor
PoseFrontal
ModalityRGB

This information helps developers understand where a model performs well or fails.

Image vs. Video Data

Both formats can be useful. However, they provide different information.

Images can help models learn texture, reflections, screen artifacts, and other visual characteristics.

Videos, on the other hand, provide temporal information. For example, models can analyze facial movement, blinking, and changes between frames.

Therefore, the best format depends on the target application and model architecture.

How Large Should the Dataset Be?

There is no universal number of samples required for a good liveness detection model.

Instead, diversity is often more important than simply increasing the sample count.

For example, 100,000 similar images from one camera may be less useful than a smaller dataset containing multiple subjects, devices, environments, and attack types.

Therefore, focus on:

  • Subject diversity
  • Attack diversity
  • Camera diversity
  • Lighting variation
  • Multiple recording sessions

How Should the Dataset Be Split?

Finally, divide the data into training, validation, and test sets.

However, avoid placing the same subjects in both training and testing whenever possible. Otherwise, the model may learn characteristics of familiar faces and produce misleadingly high results.

A subject-independent test set can provide a more realistic measure of model performance.

What Makes a Good Face Liveness Detection Dataset?

A strong dataset should include:

  • Real face images and videos
  • Printed photo attacks
  • Screen and video replays
  • Advanced attacks where relevant
  • Different cameras and devices
  • Multiple lighting conditions
  • Diverse subjects
  • Different poses and expressions
  • Accurate labels
  • Useful metadata
  • Separate test data

Most importantly, the dataset should reflect the conditions in which the AI model will actually be deployed.

Final Takeaway

A face liveness detection dataset should contain much more than ordinary facial images. Instead, it should combine genuine faces with realistic spoof attacks and variations in devices, lighting, environments, and subjects.

Furthermore, detailed labels and carefully separated test data help developers build and evaluate more reliable AI models. By focusing on quality, diversity, and realistic attack scenarios, organizations can create training data that better supports real-world face liveness detection.

Attack coverage

Presentation attack types in our anti-spoofing datasets

Each attack is recorded with matching bona fide captures, device, lighting and demographic metadata.

Print attack sample from a GTS presentation attack detection dataset: a printed face photo held up to the cameraPrint attack

Print attack

Printed photo held flat, curved or moving in front of the camera.

Printed photo attack dataset →
Replay attack sample from a GTS face liveness detection dataset: a face shown on a phone screenReplay attack

Replay attack

Face video replayed on phones, tablets, laptops and monitors.

Monitor replay attack dataset →
2D cut-out mask attack sample from a GTS face anti-spoofing dataset2D / cut-out mask

2D / cut-out mask

Printed masks with eye, nose or mouth cut-outs, worn or held.

2D mask attack dataset →2D masks with eye-holes →
3D mask attack sample from a GTS face liveness detection dataset3D mask

3D paper / latex mask

Wrapped paper, 3D and latex masks worn by consented participants.

3D paper mask attack dataset →Latex mask attack dataset →
Silicone mask attack sample from a GTS presentation attack detection datasetSilicone mask

Silicone mask

High-fidelity silicone masks under varied lighting and angles.

Request silicone mask samples →
Fabric mesh mask attack sample from a GTS presentation attack detection datasetFabric mesh mask

Fabric mesh mask

Stretch fabric printed with a face and worn over the whole head.

Request mesh mask samples →

Need synthetic or face-swapped media as well? See the GTS deepfake detection dataset.

See the data

Sample capture clips from GTS presentation-attack datasets

Short, consent-cleared clips from GTS liveness capture sessions.

Print attack sample from a GTS presentation attack detection dataset: a printed face photo held up to the cameraPrint attack
Print attack sample clip
Replay attack sample from a GTS face liveness detection dataset: a face shown on a phone screenReplay attack
Replay attack sample clip
Silicone mask attack sample from a GTS presentation attack detection datasetSilicone mask attack
Silicone mask attack sample clip
3D mask attack sample from a GTS face liveness detection dataset3D mask attack
3D mask attack sample clip
How we capture

Sample frames from GTS capture sessions

Print, replay, 2D, 3D, silicone and fabric mesh mask attacks recorded by consented participants.

Case study: a liveness & PAD dataset for a leading biometrics company

Challenge

Fresh, diverse bona fide and attack data to strengthen face liveness models across devices and demographics.

Approach

Capture protocol → consented recruitment → live capture & attack creation → multi-layer QA.

Client name withheld for confidentiality.
Two ways to get data

Off-the-shelf datasets or custom procurement at scale

Off-the-shelf liveness datasets

Available from GTS, documented, sample on request.

DatasetType
Bona fide selfie & videoImage + video
Print attacks · cut-out masksVideo
Replay attacksVideo
3D mask attacks · latex masksVideo
Browse Datasets

Custom liveness data collection

Built around your attack taxonomy, devices and markets.

  • Consented participant network, balanced by age, gender and skin tone
  • Live capture: images, videos, active-liveness scripts
  • Attack creation: print, replay, 2D and 3D masks, fabric mesh, latex, silicone
  • Multi-stage QA, annotation and metadata in your schema
  • Privacy & consent by design
Scope a Custom Collection
FAQ

Liveness detection dataset FAQs

What is a liveness detection dataset?

A liveness detection dataset is a collection of genuine (bona fide) face images and videos together with spoof or attack samples, such as printed photos, screen replays and masks. It is used to train and test models that decide whether a real, live person is in front of the camera.

What is the difference between face anti-spoofing and presentation attack detection (PAD)?

They describe the same goal. Presentation attack detection is the formal term used in ISO/IEC 30107. Face anti-spoofing and liveness detection are the common industry terms for detecting fake faces presented to a camera.

Which attack types should an anti-spoofing dataset include?

At minimum, print and replay attacks. Most production systems also need cut-out paper masks and 3D masks such as latex or silicone, and increasingly deepfake and injection-style samples. The right mix depends on your threat model and the testing level you are preparing for.

Can GTS provide data to help prepare for iBeta Level 1 or Level 2 PAD testing?

Yes. We can supply and custom-collect data covering the attack types typically associated with Level 1 and Level 2 testing, for model training and internal pre-certification evaluation. GTS is a data provider, not a testing laboratory, and does not issue PAD certifications.

What is the difference between active and passive liveness data?

Passive liveness data consists of single images or short clips with no user action. Active liveness data includes scripted actions such as blinking, smiling, head turns or moving the phone closer. We can capture both in the same session.

Do you collect selfie liveness data for KYC and eKYC use cases?

Yes. We capture selfie images and videos on consumer smartphones in realistic home and outdoor conditions, matching how users complete digital onboarding.

How is participant consent handled?

Every participant gives documented, informed consent for the specific use of their biometric data before capture.

Can I get a free sample of a liveness dataset?

Yes. Request a sample through our contact form and tell us your use case, attack types and devices of interest.

Related reading: Face anti-spoofing datasets: attack types · Presentation attack detection (PAD) and ISO/IEC 30107-3 · 2D mask presentation attack detection

Get liveness & anti-spoofing dataset samples

Tell us the attacks, devices and demographics you need. We will share samples or scope a custom collection.

Request Samples   Browse Datasets

Contact Us

Technology

Quality Data Creation

Technology

Guaranteed TAT

Technology

ISO 9001:2015, ISO/IEC 27001:2013 Certified

Technology

HIPAA Compliance

Technology

GDPR Compliance

Technology

Compliance and Security

Let's Discuss your Data collection Requirement With Us

To get a detailed estimation of requirements please reach us.

Scroll to Top