Abstract
Face anti-spoofing has been widely exploited in recent years to ensure security in face recognition systems; however, this technology suffers from poor generalization performance on unseen samples. Most previous methods align the marginal distributions from multiple source domains to learn domain-invariant features to mitigate domain shift. However, the category information of samples from different domains is ignored during these marginal distribution alignments; this can potentially lead to features of one category from one domain being misaligned to those of different categories from other domains, although the marginal distributions across domains are well aligned from the whole point of view. In this paper, we propose a simple but effective conditional domain adversarial framework whose main goal is to align the conditional distributions across domains to learn domain-invariant conditional features. Specifically, we first construct a parallel domain structure and its corresponding regularization to reduce negative influences from the finite samples and diversity of spoof face images on the conditional distribution alignments. Then, based on the parallel domain structure, a feature extractor and a global domain classifier, which play a conditional domain adversarial game, are leveraged to make the features of the same category across different domains indistinguishable. Moreover, intra-domain and cross-domain discrimination regularization are further exploited in conjunction with conditional domain adversarial training to minimize the classification error of class predictors. Extensive qualitative and quantitative experiments demonstrate that the proposed method learns well-generalized features from fewer source domains and achieves state-of-the-art performance on six public datasets.
Similar content being viewed by others
Data Availibility Statement
The data that support the findings of this study are available from the authors upon reasonable request.
Notes
Datasets are treated as domains in this paper.
References
Akhtar, Z., Micheloni, C., & Foresti, G. L. (2015). Biometric liveness detection: Challenges and research opportunities. IEEE Security and Privacy, 13(5), 63–72.
Albuquerque, I., Monteiro, J., Darvishi, M., Falk, T. H., & Mitliagkas, I. (2019). Generalizing to unseen domains via distribution matching. arXiv preprint arXiv:1911.00804
Balaji, Y., Sankaranarayanan, S., & Chellappa, R. (2018). Metareg: Towards domain generalization using meta-regularization. Advances in Neural Information Processing Systems 31.
Ben-David, S., Blitzer, J., Crammer, K., Kulesza, A., Pereira, F., & Vaughan, J. W. (2010). A theory of learning from different domains. Machine Learning, 79(1), 151–175.
Boulkenafet, Z., Komulainen, J., Li, L., Feng, X., & Hadid, A. (2017). Oulu-npu: A mobile face presentation attack database with real-world variations. In IEEE international conference on automatic face and gesture recognition (pp. 612–618).
Boulkenafet, Z., Komulainen, J., & Hadid, A. (2016). Face spoofing detection using colour texture analysis. IEEE Transactions on Information Forensics and Security, 11(8), 1818–1830.
Chen, Z., Yao, T., Sheng, K., Ding, S., Tai, Y., Li, J., Huang, F., & Jin, X. (2021). Generalizable representation learning for mixture domain face anti-spoofing. arXiv preprint arXiv:2105.02453
Chingovska, I., Anjos, A., & Marcel, S. (2012). On the effectiveness of local binary patterns in face anti-spoofing. In: International conference of biometrics special interest group (pp. 1–7).
de Freitas Pereira, T., Komulainen, J., Anjos, A., De Martino, J. M., Hadid, A., Pietikäinen, M., & Marcel, S. (2014). Face liveness detection using dynamic texture. EURASIP Journal on Image and Video Processing, 1, 2–16.
de Freitas Pereira, T., Anjos, A., De Martino, J. M., & Marcel, S. (2013). Can face anti-spoofing countermeasures work in a real world scenario. In International conference on biometrics (pp. 1–8).
El-Din, Y. S., Moustafa, M. N., & Mahdi, H. (2021). Adversarial unsupervised domain adaptation guided with deep clustering for face presentation attack detection. arXiv preprint arXiv:2102.06864
He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. In IEEE conference on computer vision and pattern recognition (pp. 770–778).
Heusch, G., George, A., Geissbühler, D., Mostaani, Z., & Marcel, S. (2020). Deep models and shortwave infrared information to detect face presentation attacks. IEEE Transactions on Biometrics, Behavior, and Identity Science, 2(4), 399–409.
Hoffman, J., Mohri, M., & Zhang, N. (2018). Algorithms and theory for multiple-source adaptation. In Neural information processing systems (pp. 8256–8266).
Jia, Y., Zhang, J., Shan, S., & Chen, X. (2020). Single-side domain generalization for face anti-spoofing. In IEEE conference on computer vision and pattern recognition (pp. 8484–8493).
Jia, Y., Zhang, J., & Shan, S. (2021). Dual-branch meta-learning network with distribution alignment for face anti-spoofing. IEEE Transactions on Information Forensics and Security, 17, 138–151.
Jia, Y., Zhang, J., Shan, S., & Chen, X. (2021). Unified unsupervised and semi-supervised domain adaptation network for cross-scenario face anti-spoofing. Pattern Recognition, 115, 107888.
Li, H., Jialin Pan, S., Wang, S., & Kot, A. C. (2018). Domain generalization with adversarial feature learning. In IEEE conference on computer vision and pattern recognition (pp. 5400–5409).
Li, Y., Tian, X., Gong, M., Liu, Y., Liu, T., Zhang, K., & Tao, D. (2018). Deep domain generalization via conditional invariant adversarial networks. In European conference on computer vision (pp. 624–639).
Li, D., Yang, Y., Song, Y.Z., & Hospedales, T.M. (2017). Deeper, broader and artier domain generalization. In IEEE international conference on computer vision (pp. 5542–5550).
Li, H., He, P., Wang, S., Rocha, A., Jiang, X., & Kot, A. C. (2018). Learning generalized deep feature representation for face anti-spoofing. IEEE Transactions on Information Forensics and Security, 13(10), 2639–2652.
Li, H., Li, W., Cao, H., Wang, S., Huang, F., & Kot, A. C. (2018). Unsupervised domain adaptation for face anti-spoofing. IEEE Transactions on Information Forensics and Security, 13(7), 1794–1809.
Li, Y., Li, Y., Xu, K., Yan, Q., & Deng, R. H. (2016). Empirical study of face authentication systems under osnfd attacks. IEEE Transactions on Dependable and Secure Computing, 15(2), 231–245.
Liu, Y., Jourabloo, A., & Liu, X. (2018). Learning deep models for face anti-spoofing: Binary or auxiliary supervision. In IEEE conference on computer vision and pattern recognition (pp. 389–398).
Liu, S., Zhang, K. Y., Yao, T., Bi, M., Ding, S., Li, J., Huang, F., & Ma, L. (2021). Adaptive normalized representation learning for generalizable face anti-spoofing. In Proceedings of the 29th ACM international conference on multimedia (pp. 1469–1477).
Liu, S., Zhang, K.Y., Yao, T., Sheng, K., Ding, S., Tai, Y., Li, J., Xie, Y., & Ma, L. (2021) Dual reweighting domain generalization for face presentation attack detection. arXiv preprint arXiv:2106.16128
Li, H., Wang, S., He, P., & Rocha, A. (2020). Face anti-spoofing with deep neural network distillation. IEEE Journal of Selected Topics in Signal Processing, 14(5), 933–946.
Li, H., Wang, S., Wan, R., & Chichung, A. K. (2020). Gmfad: Towards generalized visual recognition via multi-layer feature alignment and disentanglement. IEEE Transactions on Pattern Analysis and Machine Intelligence, 14(5), 933–949.
Maaten, Lvd, & Hinton, G. (2008). Visualizing data using t-sne. Journal of Machine Learning Research, 9, 2579–2605.
Määttä, J., Hadid, A., & Pietikäinen, M. (2011). Face spoofing detection from single images using micro-texture analysis. In IEEE international joint conference on biometrics (pp. 1–7).
Motiian, S., Piccirilli, M., Adjeroh, D.A., & Doretto, G. (2017). Unified deep supervised domain adaptation and generalization. In IEEE international conference on computer vision (pp. 5715–5725).
Muandet, K., Balduzzi, D., & Schölkopf, B. (2013). Domain generalization via invariant feature representation. In International conference on machine learning (pp. 10–18).
Nichol, A., Achiam, J., & Schulman, J. (2018). On first-order meta-learning algorithms. arXiv preprint arXiv:1803.02999
Selvaraju, R. R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., & Batra, D. (2017). Grad-cam: Visual explanations from deep networks via gradient-based localization. In IEEE international conference on computer vision (pp 618–626).
Shao, R., Lan, X., Li, J., & Yuen, P. C. (2019). Multi-adversarial discriminative deep domain generalization for face presentation attack detection. In IEEE conference on computer vision and pattern recognition (pp. 10023–10031).
Shao, R., Lan, X., & Yuen, P. C. (2020). Regularized fine-grained meta face anti-spoofing. Conference on Artificial Intelligence, 34, 11974–11981.
Tu, X., Zhao, J., Xie, M., Du, G., Zhang, H., Li, J., Ma, Z., & Feng, J. (2019). Learning generalizable and identity-discriminative representations for face anti-spoofing. arXiv preprint arXiv:1901.05602
Tu, X., Zhang, H., Xie, M., Luo, Y., Zhang, Y., & Ma, Z. (2019). Deep transfer across domains for face antispoofing. Journal of Electronic Imaging, 28(4), 043001.
Wang, G., Han, H., Shan, S., & Chen, X. (2019). Improving cross-database face presentation attack detection via adversarial domain adaptation. In International conference on biometrics (pp. 1–8).
Wang, G., Han, H., Shan, S., & Chen, X. (2020). Cross-domain face presentation attack detection via multi-domain disentangled representation learning. In 2020 IEEE/CVF conference on computer vision and pattern recognition (CVPR) (pp. 6677–6686).
Wang, G., Han, H., Shan, S., & Chen, X. (2020). Cross-domain face presentation attack detection via multi-domain disentangled representation learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (pp. 6678–6687).
Wang, J., Lan, C., Liu, C., Ouyang, Y., & Qin, T. (2021). Generalizing to unseen domains: A survey on domain generalization. arXiv preprint arXiv:2103.03097
Wang, Z., Yu, Z., Wang, X., Qin, Y., Li, J., Zhao, C., Lei, Z., Liu, X., Li, S., & Wang, Z. (2021). Consistency regularization for deep face anti-spoofing. arXiv preprint arXiv:2111.12320
Wang, J., Zhang, J., Bian, Y., Cai, Y., Wang, C., & Pu, S. (2021). Self-domain adaptation for face anti-spoofing. arXiv preprint arXiv:2102.12129
Wang, Z., Zhao, C., Qin, Y., Zhou, Q., Qi, G., Wan, J., & Lei, Z. (2018). Exploiting temporal and depth information for multi-frame face anti-spoofing. arXiv preprint arXiv:1811.05118
Wang, G., Han, H., Shan, S., & Chen, X. (2020). Unsupervised adversarial domain adaptation for cross-domain face presentation attack detection. IEEE Transactions on Information Forensics and Security, 16, 56–69.
Wang, Y., Nian, F., Li, T., Meng, Z., & Wang, K. (2017). Robust face anti-spoofing with depth information. Journal of Visual Communication and Image Representation, 49, 332–337.
Wen, D., Han, H., & Jain, A. K. (2015). Face spoof detection with image distortion analysis. IEEE Transactions on Information Forensics and Security, 10(4), 746–761.
Yang, J., Lei, Z., & Li, S. Z. (2014). Learn convolutional neural network for face anti-spoofing. arXiv preprint arXiv:1408.5601
Yang, J., Lei, Z., Liao, S., & Li, S. Z. (2013). Face liveness detection with component dependent descriptor. In International conference on biometrics (pp. 1–6).
Yi, D., Lei, Z., Zhang, Z., & Li, S. Z. (2014). Face anti-spoofing: Multi-spectral approach. In Handbook of biometric anti-spoofing (pp. 83–102).
Yu, Z., Li, X., Shi, J., Xia, Z., & Zhao, G. (2020). Revisiting pixel-wise supervision for face anti-spoofing. arXiv preprint arXiv:2011.12032
Zhang, Z., Yan, J., Liu, S., Lei, Z., Yi, D., & Li, S. Z. (2012). A face antispoofing database with diverse attacks. In International conference on biometrics (pp. 26–31).
Zhang, K., Zhang, Z., Li, Z., & Qiao, Y. (2016). Joint face detection and alignment using multitask cascaded convolutional networks. IEEE Signal Processing Letters, 23(10), 1499–1503.
Zhao, H., Des Combes, R. T., Zhang, K., & Gordon, G. (2019). On learning invariant representations for domain adaptation. In International conference on machine learning (pp. 7523–7532).
Acknowledgements
This work was supported in part by the National Key Research and Development Program of China under Grant No. 2022YFC3310400, in part by the Natural Science Foundation of China (Grant Nos. 62106247, 62276263 and 62076240), in part by the Scientific Research Foundation of Department of Education of Hunan Province (Grant No. 22B0439), in part by the Beijing Municipal Natural Science Foundation (Grant No. 4222054).
Funding
This work was also supported in part by the Natural Science Foundation of China (Grant Nos. 62276263) and in part by the Beijing Municipal Natural Science Foundation (Grant No. 4222054).
Author information
Authors and Affiliations
Corresponding author
Additional information
Communicated by Zhouchen Lin.
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Below is the link to the electronic supplementary material.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Jiang, F., Li, Q., Liu, P. et al. Adversarial Learning Domain-Invariant Conditional Features for Robust Face Anti-spoofing. Int J Comput Vis 131, 1680–1703 (2023). https://doi.org/10.1007/s11263-023-01778-x
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11263-023-01778-x