Evaluating LSTM and GRU for Video-Based Liveness Detection in Facial Recognition Systems

  • Zhumagalieva Saltanat
  • , Bilal Saoud*
  • , Ibraheem Shayea
  • , Zhanshuak Zhaibergenova
  • , Alisher Batkuldin
  • *Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Liveness detection in facial recognition systems is essential to counteract spoofing attacks, such as those involving photos, videos, or masks. Traditional methods, including hardware-based solutions like infrared cameras and software based approaches analyzing visual cues, often face challenges related to cost, complexity, and susceptibility to advanced spoofing techniques. Recent advancements in deep learning, particularly in the use of Recurrent Neural Networks (RNNs) such as Long Short-Term Memory (LSTM) and Gated Recurrent Unit (GRU) networks for capturing temporal dependencies, have shown promise in enhancing liveness detection. This study compares the performance of LSTM and GRU models for video-based liveness detection, highlighting their respective strengths and limitations. The LSTM model achieved a final validation accuracy of 87.5%, with a balanced precision, recall, and F1-score, and an overall accuracy of 88%. The GRU model achieved a final validation accuracy of 84.38%, with a slightly higher precision, recall, and F1-score for the positive class, and an overall accuracy of 84%. These results demonstrate that while LSTM models provide higher accuracy and better generalization, GRU models offer computational efficiency and faster training times. The findings underscore the potential of deep learning models to significantly improve the robustness and reliability of facial recognition systems against spoofing attacks.

Original languageEnglish
Title of host publicationSelected Papers from the International Conference on Artificial Intelligence - FICAILY2025 - Current Research, Industry Trends, and Innovations
EditorsAli Othman Albaji
PublisherSpringer Science and Business Media Deutschland GmbH
Pages269-282
Number of pages14
ISBN (Print)9783032002310
DOIs
Publication statusPublished - 2026
EventInternational Conference on AI: Current Research, Industry Trends, and Innovations, FICAILY 2025 - Tripoli, Libya
Duration: 9 Jul 202510 Jul 2025

Publication series

NameStudies in Computational Intelligence
Volume1229 SCI
ISSN (Print)1860-949X
ISSN (Electronic)1860-9503

Conference

ConferenceInternational Conference on AI: Current Research, Industry Trends, and Innovations, FICAILY 2025
Country/TerritoryLibya
CityTripoli
Period9/07/2510/07/25

Bibliographical note

Publisher Copyright:
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2026.

Keywords

  • Facial Recognition
  • GRU
  • Liveness Detection
  • LSTM
  • RNN
  • Spoofing Attacks

Fingerprint

Dive into the research topics of 'Evaluating LSTM and GRU for Video-Based Liveness Detection in Facial Recognition Systems'. Together they form a unique fingerprint.

Cite this