{"notes":[{"id":"face-antispoofing/oulu-npu","category":"face-antispoofing","legacyPath":"face-antispoofing/1706-oulu-npu","legacySlug":"1706-oulu-npu","legacyPaths":[],"title":"OULU-NPU","subtitle":"Four Challenges","author":"Z. Yuan","paperDate":"2017","publishedOn":"2025-04-07","paperTitle":"OULU-NPU: A Mobile Face Presentation Attack Database with Real-World Variations","paperUrl":"https://doi.org/10.1109/fg.2017.77","bibliography":{"title":"OULU-NPU: A Mobile Face Presentation Attack Database with Real-World Variations","authors":["Zinelabinde Boulkenafet","Jukka Komulainen","Lei Li","Xiaoyi Feng","Abdenour Hadid"],"url":"https://doi.org/10.1109/fg.2017.77","pdfUrl":null,"codeUrl":null,"preprint":null,"publication":{"venue":"FG","year":2017,"kind":"conference","url":"https://doi.org/10.1109/fg.2017.77"},"citation":"@inproceedings{faceantispoofingoulunpu2017,\n  title = {{OULU-NPU: A Mobile Face Presentation Attack Database with Real-World Variations}},\n  author = {Zinelabinde Boulkenafet and Jukka Komulainen and Lei Li and Xiaoyi Feng and Abdenour Hadid},\n  year = {2017},\n  booktitle = {FG},\n  url = {https://doi.org/10.1109/fg.2017.77},\n  doi = {10.1109/fg.2017.77}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/oulu-npu.80eaef5c4786.bib"},"thumbnail":{"src":"/content/papers/assets/1f6db7796acea77759e4d6e9af8f2830acc77c33647bb21fc9bb55434e37b2de.jpg","width":856,"height":556},"locale":"en","path":"/content/papers/en/face-antispoofing/oulu-npu.84458771fc8d.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"discussion","text":"Discussion","depth":2},{"id":"protocol-i-the-impact-of-lighting-changes","text":"Protocol I: The Impact of Lighting Changes","depth":3},{"id":"protocol-ii-the-impact-of-attack-tool-variations","text":"Protocol II: The Impact of Attack Tool Variations","depth":3},{"id":"protocol-iii-the-impact-of-camera-device-variations","text":"Protocol III: The Impact of Camera Device Variations","depth":3},{"id":"protocol-iv-the-hellish-three-in-one-challenge","text":"Protocol IV: The Hellish Three-in-One Challenge","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"face-antispoofing/celeba-spoof","relation":"comparison","topic":"Evaluating face anti-spoofing across capture conditions"},{"id":"face-antispoofing/fas-survey","relation":"comparison","topic":"Evaluating face anti-spoofing across capture conditions"}]},{"id":"face-antispoofing/celeba-spoof","category":"face-antispoofing","legacyPath":"face-antispoofing/2007-celeba-spoof","legacySlug":"2007-celeba-spoof","legacyPaths":[],"title":"CelebA-Spoof","subtitle":"Large-Scale Anti-Spoofing Trials","author":"Z. Yuan","paperDate":"2020-07-24","publishedOn":"2025-04-13","paperTitle":"CelebA-Spoof: Large-Scale Face Anti-Spoofing Dataset with Rich Annotations","paperUrl":"https://arxiv.org/abs/2007.12342","bibliography":{"title":"CelebA-Spoof: Large-Scale Face Anti-Spoofing Dataset with Rich Annotations","authors":["Yuanhan Zhang","Zhenfei Yin","Yidong Li","Guojun Yin","Junjie Yan","Jing Shao","Ziwei Liu"],"url":"https://arxiv.org/abs/2007.12342","pdfUrl":"https://arxiv.org/pdf/2007.12342","codeUrl":null,"preprint":{"id":"2007.12342","submittedOn":"2020-07-24","url":"https://arxiv.org/abs/2007.12342"},"publication":{"venue":"ECCV","year":2020,"kind":"conference","url":"https://arxiv.org/abs/2007.12342"},"citation":"@misc{faceantispoofingcelebaspoof2020,\n  title = {{CelebA-Spoof: Large-Scale Face Anti-Spoofing Dataset with Rich Annotations}},\n  author = {Yuanhan Zhang and Zhenfei Yin and Yidong Li and Guojun Yin and Junjie Yan and Jing Shao and Ziwei Liu},\n  year = {2020},\n  eprint = {2007.12342},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2007.12342}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/celeba-spoof.06c9d70d71ee.bib"},"thumbnail":{"src":"/content/papers/assets/fdb845bded858262ac4fcc65a7383ccae6e4b649afaf1a59ddb3b435294067db.jpg","width":1224,"height":604},"locale":"en","path":"/content/papers/en/face-antispoofing/celeba-spoof.1bc47a7c0061.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"celeba-spoof-dataset","text":"CelebA-Spoof Dataset","depth":3},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"evaluation-metrics","text":"Evaluation Metrics","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"ablation-study","text":"Ablation Study","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"face-antispoofing/oulu-npu","relation":"comparison","topic":"Evaluating face anti-spoofing across capture conditions"},{"id":"face-antispoofing/fas-survey","relation":"comparison","topic":"Evaluating face anti-spoofing across capture conditions"}]},{"id":"face-antispoofing/fas-survey","category":"face-antispoofing","legacyPath":"face-antispoofing/2210-fas-survey","legacySlug":"2210-fas-survey","legacyPaths":[],"title":"FAS Survey","subtitle":"A Chronicle of Attacks and Defenses","author":"Z. Yuan","paperDate":"2022","publishedOn":"2025-04-06","paperTitle":"Deep Learning for Face Anti-Spoofing: A Survey","paperUrl":"https://doi.org/10.1109/tpami.2022.3215850","bibliography":{"title":"Deep Learning for Face Anti-Spoofing: A Survey","authors":["Zitong Yu","Yunxiao Qin","Xiaobai Li","Chenxu Zhao","Zhen Lei","Guoying Zhao"],"url":"https://doi.org/10.1109/tpami.2022.3215850","pdfUrl":null,"codeUrl":null,"preprint":null,"publication":{"venue":"IEEE Transactions on Pattern Analysis and Machine Intelligence","shortVenue":"IEEE TPAMI","year":2022,"kind":"journal","url":"https://doi.org/10.1109/tpami.2022.3215850"},"citation":"@article{faceantispoofingfassurvey2022,\n  title = {{Deep Learning for Face Anti-Spoofing: A Survey}},\n  author = {Zitong Yu and Yunxiao Qin and Xiaobai Li and Chenxu Zhao and Zhen Lei and Guoying Zhao},\n  year = {2022},\n  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},\n  url = {https://doi.org/10.1109/tpami.2022.3215850},\n  doi = {10.1109/tpami.2022.3215850}\n}\n","citationPath":"/content/papers/citations/face-antispoofing/fas-survey.f79e503f3fb9.bib"},"thumbnail":{"src":"/content/papers/assets/c71b58d45d99e8f0cf029d00c76849cfbaec8261bfb81c2c19e63e8d721c7e75.jpg","width":1224,"height":836},"locale":"en","path":"/content/papers/en/face-antispoofing/fas-survey.76e34d1d5412.md","headings":[{"id":"fas-framework","text":"FAS Framework","depth":2},{"id":"overview-of-deep-learning-methods","text":"Overview of Deep Learning Methods","depth":3},{"id":"evaluation-metrics","text":"Evaluation Metrics","depth":3},{"id":"evaluation-protocols","text":"Evaluation Protocols","depth":3},{"id":"rgb-based-fas","text":"RGB-based FAS","depth":2},{"id":"hybrid-methods","text":"Hybrid Methods","depth":2},{"id":"traditional-deep-learning-methods","text":"Traditional Deep Learning Methods","depth":2},{"id":"binary-classification-supervision","text":"Binary Classification Supervision","depth":3},{"id":"pixel-level-supervision","text":"Pixel-level Supervision","depth":3},{"id":"generalization-oriented-deep-learning-methods","text":"Generalization-Oriented Deep Learning Methods","depth":2},{"id":"facing-unknown-environments","text":"Facing Unknown Environments","depth":3},{"id":"facing-unknown-attacks","text":"Facing Unknown Attacks","depth":3},{"id":"multi-sensor-deep-learning-methods","text":"Multi-Sensor Deep Learning Methods","depth":2},{"id":"discussion","text":"Discussion","depth":2},{"id":"architecture-design-and-model-interpretability","text":"Architecture Design, and Model Interpretability","depth":3},{"id":"representation-learning","text":"Representation Learning","depth":3},{"id":"real-world-open-set-testing","text":"Real-World Open-Set Testing","depth":3},{"id":"universal-and-integrated-attack-detection","text":"Universal and Integrated Attack Detection","depth":3},{"id":"privacy-preserving-training-methods","text":"Privacy-Preserving Training Methods","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"face-antispoofing/oulu-npu","relation":"comparison","topic":"Evaluating face anti-spoofing across capture conditions"},{"id":"face-antispoofing/celeba-spoof","relation":"comparison","topic":"Evaluating face anti-spoofing across capture conditions"}]}],"text":"Face recognition systems are the first-line biometric systems facing users.\n\nMany phones offer face unlock, although sensors and anti-spoofing designs vary by product.\n\n## Defining the Problem\n\nPhysical presence requires a separate liveness check.\n\nPast research has found that by simply downloading a target's photo from social media, six major systems at the time (Face Unlock, Facelock Pro, Visidon, etc.) could easily be bypassed with just a photo. Even liveness detection designs that ask for blinking eyes or head turns could be fooled using video recordings.\n\nWhile there are several publicly available datasets for PAD (Presentation Attack Detection) benchmarking, the evaluation methods of these datasets are somewhat \"idealized.\" Common within-dataset evaluations do not necessarily require unseen devices, environments, or attack tools at test time.\n\nAdditionally, the recording conditions of these datasets do not align with typical mobile phone use, as some use fixed webcams or DSLRs rather than the handheld capture typical of phone authentication.\n\nThe authors believe that a new dataset is needed to address this \"generalization failure\" problem.\n\n\n> [!TIP]\n> \n> PAD stands for Presentation Attack Detection.\n> \n> A presentation attack presents biometric characteristics or artifacts to the capture subsystem with the aim of interfering with its operation. Its goals may include:\n> \n> - Impersonate another target identity (Impersonation Attack)\n> - Obfuscate one's own identity (Obfuscation Attack)\n> \n> These scenarios are classified as Presentation Attacks (PA).\n\n\n## Solving the Problem\n\nThis paper aims to solve the dataset issue.\n\nTo address the problem of \"over-idealized datasets that cannot generalize to real-world mobile scenarios,\" the authors focus on three sources of variations (covariates) in their dataset design:\n\n1. **Unknown environmental conditions** (lighting and background)\n2. **Different photographic devices**\n3. **Attack tools PAI (print and replay types)**\n\n---\n\nThe authors collected videos of 55 participants (15 female, 40 male) in three different scenarios, resulting in a total of 5940 video clips.\n\nThese three scenarios vary in lighting and background to simulate different \"lighting conditions\" users face in everyday mobile phone use:\n\n- **Session 1**: Open office, windows in the back, lights on, natural light.\n- **Session 2**: Conference room, only indoor lights, no natural light.\n- **Session 3**: Small office, windows in front, both indoor lights and natural light.\n\nAs shown in the image below:\n\n\n\n![session](/content/papers/assets/1f6db7796acea77759e4d6e9af8f2830acc77c33647bb21fc9bb55434e37b2de.jpg)\n\n\n\nEach participant recorded two video clips per session (registration + authentication), holding the supplied test phones to capture themselves. Each video was limited to 5 seconds, simulating a real unlocking process.\n\nThe videos were recorded using 6 mobile phones with \"decent\" front-facing camera quality:\n\n- Samsung Galaxy S6 edge (5MP)\n- HTC Desire EYE (13MP)\n- MEIZU X5 (5MP)\n- ASUS Zenfone Selfie (13MP)\n- Sony XPERIA C5 Ultra Dual (13MP)\n- OPPO N3 (16MP rotating camera)\n\nAll videos were recorded in Full HD (1920×1080) using a standardized camera app. Although several phones claimed to have the same 13MP camera, the video quality differences were still significant (yes, we all know that camera specifications alone aren’t trustworthy).\n\nThe video quality across different phones is shown in the image below:\n\n\n\n![different camera](/content/papers/assets/c991f544ec80cb8a3f20b091b74d1f6bd3b760582cebd0f123387e882e6833e5.jpg)\n\n\n\n---\n\nAttack samples must be difficult to make the challenge meaningful. Therefore, the authors used the rear camera to capture high-resolution still photos and videos of participants, which were then printed or played back to create two types of attacks:\n\n- **Print Attack**: A3 glossy paper, using two printers (Canon C6011 & PIXMA iX6550)\n- **Replay Attack**: Played back on two screens (19-inch Dell UltraSharp + MacBook Retina)\n\nThe attack setup is shown below:\n\n\n\n![attack](/content/papers/assets/1aa32d5a4fcc87a093a838b0d1992f9b1747d3acbd27ee58d30b050fc2ec34d5.jpg)\n\n\n\nThe video recording process is also carefully controlled:\n\n- Print attacks were carried out by hand-holding the photo with slight shaking, mimicking real movements.\n- Replay attacks were conducted with the setup fixed, ensuring the screen edges were not visible to avoid cheating features.\n\nThis makes the attacks harder by reducing obvious shortcuts such as screen borders; it does not eliminate every possible dataset bias.\n\n---\n\nFinally, the authors designed four systematic protocols to test generalization ability:\n\n1. **Protocol I – Environmental Generalization**: Test whether the system can still differentiate between genuine and fake faces under different lighting and backgrounds.\n2. **Protocol II – Attack Tool Generalization**: Train using one printer or display and test with a completely new one to see if the model breaks down.\n3. **Protocol III – Device Generalization (Leave-One-Camera-Out)**: In each round, exclude one phone from the model's training, and see if it can correctly distinguish fake and real videos from a new phone.\n4. **Protocol IV – The Ultimate Challenge**: Change the environment, attack tool, and device all at once to simulate real-world variations, testing all factors together.\n\nAll protocols split the 55 participants into training, validation, and testing groups (20/15/20 participants), keeping subject identities disjoint. Model selection and threshold tuning must still respect the development/test split.\n\nThe dataset’s configuration is shown in the table below:\n\n\n\n![dataset](/content/papers/assets/cb0a1997767072c484f5557386f050b3ab8fa49c22125f51f514eff4f718fb17.jpg)\n\n\n\nThe imported table above is from the old site. Its Protocol I test-set count differs from the final paper's Table II: the final version lists 240 genuine and 960 attack videos, or 1,200 test videos in total, rather than the image's 600.\n\n## Discussion\n\nThe authors used a baseline model to test the four protocols, aiming to see if current mainstream PAD methods can survive in the real world.\n\nThe paper uses the PAD error rates APCER and BPCER, together with their average, ACER. The three should not all be described as independent metrics specified by the standard:\n\n- **APCER**: The proportion of attacks of a given presentation attack instrument category classified as bona fide. Overall APCER in this paper is the highest rate across attack categories.\n- **BPCER**: The proportion of bona fide presentations classified as attacks.\n- **ACER**: The average of APCER and BPCER.\n\n  $$\n  \\text{ACER} = \\frac{\\text{APCER} + \\text{BPCER}}{2}\n  $$\n\nThe test-set decision threshold is first chosen at the development-set EER operating point.\n\nFor the model, the authors use LBP as the baseline, but instead of grayscale images, features are directly extracted from the HSV and YCbCr color spaces.\n\nThe process is as follows:\n\n1. Detect face → crop → normalize to 64×64 small images.\n2. Use $LBP^{u2}_{(8,1)}$ to extract texture features from each color channel.\n3. Feed into a Softmax classifier for training and prediction.\n\nLet’s now look at how well this baseline method generalizes in each scenario.\n\n\n> [!TIP]\n> \n> **Why not use RGB?**\n> \n> The authors follow earlier comparisons in which HSV and YCbCr features worked better than RGB or grayscale for this color-texture method. These spaces separate brightness and color cues; this does not make RGB universally inferior.\n\n\n### Protocol I: The Impact of Lighting Changes\n\n![protocol1](/content/papers/assets/d3a364eba4f543199cfa1dffac22cf36e467ca15d3a3469a5ed2438b91c8901a.jpg)\n\n\n> [!TIP]\n> \n> In the chart, the last column shows ACER, and the lower the number, the better. This applies to all subsequent charts as well.\n\n\nThis is the simplest protocol.\n\nFirst, the model is trained using Session 3 data and then tested using Session 3 data:\n\n> **ACER is 2.7%, excellent performance.**\n\nNext, the model is trained using Session 1 and 2 data and tested on Session 3:\n\n> **ACER jumps from 2.7% to 13.5%.**\n\nThis indicates that once lighting changes, the recognition accuracy falls apart.\n\nThe overall BPCER rises from 2.4% to 21.3%, showing that the environmental shift mainly makes genuine presentations look like attacks. The paper treats this as a generalization problem for texture-based PAD.\n\n### Protocol II: The Impact of Attack Tool Variations\n\n![protocol2](/content/papers/assets/f3efdd8ccf1526bc0b2596578d05f1005337bbbb6a19d1e0ff7eedc1f3ac45eb.jpg)\n\nIn the second round, the authors trained the model using Printer 1 + Display 1 and then tested it using Printer 2 + Display 2. For comparison, the control used Printer 2 + Display 2 for training, development and testing.\n\nThe results were as follows:\n\n- When the attack tool stayed the same, the ACER was **7.2%**.\n- After changing the tool, ACER became **14.2%**.\n\nThe change has a larger effect on print attacks: their ACER rises from 6.1% to 14.2%, while replay-attack ACER rises from 7.2% to 9.2%.\n\n### Protocol III: The Impact of Camera Device Variations\n\n![protocol3](/content/papers/assets/22d3a36de1d5e9ffaf457e0ca108405f7bd5ead7e657dde819f7b2aaf60428c6.jpg)\n\n![protocol3](/content/papers/assets/b9d0347b3ace988f28af16ca75d137728fc3f474203303c82d410c4a31616789.jpg)\n\nIn the third round, the **LOCO Protocol (Leave-One-Camera-Out)** was used.\n\nIn each round, 5 phones were used for training, and the 6th phone’s recognition ability was tested.\n\nWithout changing phones, mean ACER is 6.3%. Under LOCO, it rises to 12.1%, with substantial differences between phone folds.\n\nIn other words:\n\n> **Changing a phone is like entering a different world.**\n\nThe color, clarity, and lens characteristics of the images all differ, presenting a major challenge for models based on \"color texture.\"\n\n### Protocol IV: The Hellish Three-in-One Challenge\n\n![protocol4](/content/papers/assets/c7d72a0f2da70f870518a6984bc900a12122a4be8d685f92e5b9b10a5bc3e03d.jpg)\n\nThe fourth round, the most difficult challenge: **Lighting + Attack Tool + Camera Device** are all changed!\n\nMean ACER across the six phones reaches 27.2%, compared with 12.1% when only the phone changes. Earlier rounds looked more promising, but combining all three variations causes a much larger PAD error.\n\nFor Phone 6, print-attack APCER reaches **100%**: every print-attack video in that test fold is classified as bona fide. This is a PAD result, not a failure to detect the faces themselves.\n\nThis confirms that generalization under a single variable is not equivalent to real-world generalization.\n\n## Conclusion\n\nIn this paper, the authors conducted structured protocol testing on three major sources of variation (environment, device, and attack method). The protocols offer a consistent way to assess generalization; cross-dataset research did not begin with this paper.\n\nAlthough this dataset is still in its early stages regarding attack types (only print and replay), it advanced systematic evaluation of domain shift and robustness across scenarios in FAS, and it influenced the subsequent design of large dataset evaluations.\n\nThe authors' final words in the paper:\n\n> We invite the research community to consider this new database.\n\nFor us today, this is no longer just an invitation, but a classic and essential step.\n","imageSizes":{"/content/papers/assets/1f6db7796acea77759e4d6e9af8f2830acc77c33647bb21fc9bb55434e37b2de.jpg":{"width":856,"height":556},"/content/papers/assets/c991f544ec80cb8a3f20b091b74d1f6bd3b760582cebd0f123387e882e6833e5.jpg":{"width":1224,"height":356},"/content/papers/assets/1aa32d5a4fcc87a093a838b0d1992f9b1747d3acbd27ee58d30b050fc2ec34d5.jpg":{"width":908,"height":508},"/content/papers/assets/cb0a1997767072c484f5557386f050b3ab8fa49c22125f51f514eff4f718fb17.jpg":{"width":1224,"height":404},"/content/papers/assets/d3a364eba4f543199cfa1dffac22cf36e467ca15d3a3469a5ed2438b91c8901a.jpg":{"width":1224,"height":184},"/content/papers/assets/f3efdd8ccf1526bc0b2596578d05f1005337bbbb6a19d1e0ff7eedc1f3ac45eb.jpg":{"width":1224,"height":184},"/content/papers/assets/22d3a36de1d5e9ffaf457e0ca108405f7bd5ead7e657dde819f7b2aaf60428c6.jpg":{"width":1224,"height":264},"/content/papers/assets/b9d0347b3ace988f28af16ca75d137728fc3f474203303c82d410c4a31616789.jpg":{"width":1224,"height":260},"/content/papers/assets/c7d72a0f2da70f870518a6984bc900a12122a4be8d685f92e5b9b10a5bc3e03d.jpg":{"width":1224,"height":260}}}
