Computer vision
Face Recognition, Liveness, and Biometrics
Understand face embeddings, enrollment, thresholds, open-set search, demographic effects, liveness, privacy, and operational safeguards.
By the end you can
- Distinguish face verification, identification, detection, and presentation-attack detection
- Explain enrollment, templates, similarity thresholds, and open-set rejection
- Evaluate error rates across demographics, devices, environments, and attack types
- Design biometric workflows with consent, fallback, retention, and human review
Key idea
Face detection is not face recognition, and liveness is not identity
A detector locates a face. Verification compares a claimant with an enrolled template, while identification searches a gallery; presentation-attack detection asks whether the capture appears to come from a live subject rather than a photo, replay, mask, or injection.
Each component has distinct labels, thresholds, attackers, and failure consequences.
The fourth task is the one product copy usually leaves vague. It is also the only one with a published testing standard. ISO/IEC 30107-3 sets out how presentation-attack detection is tested, how results are reported, and how known attack types are classified. Its second edition was published on 10 January 2023. It supplies the two error rates a liveness claim has to be stated in: APCER, the attack presentation classification error rate, and BPCER, the bona fide presentation classification error rate. NIST's Face Analysis Technology Evaluation (FATE) PAD programme adopts both the metrics and the definition. Its "Motivation" section reads: “A presentation attack (PA), as defined by the ISO/IEC 30107 standard on biometric presentation attack detection, is “the presentation of an artefact or of human characteristics to a biometric capture subsystem in a fashion intended to interfere with system policy”.”
So "liveness detection included", with no APCER, no BPCER and no list of attack types, is not a claim under that standard. It is a feature name.
One camera frame can pass liveness and still match the wrong person.
Visual
A biometric decision has more stages than a similarity score
Security depends on capture, identity binding, comparison, policy, and fallback. Five stages run in order. Enroll the identity, binding a verified person to one or more protected templates. Assess the capture for face quality, pose, occlusion, device integrity and presentation attacks. Produce a template under a versioned model and preprocessing pipeline. Compare or search, calculating similarity to a claimed template or to gallery candidates. Apply policy: accept, reject, step up authentication, or route to manual recovery.
CBP's Biometric Air Exit programme is a deployed system where those stages were measured separately. They did not fail together. The programme's Key Performance Parameters require a true accept rate of at least 97 percent of in-scope travelers and a false accept rate no greater than 0.1 percent. DHS's 2025 final rule on the collection of biometric data from aliens entering and departing the United States, effective 26 December 2025, reports internal CBP estimates of at least 98 percent TAR and 0.02 percent FAR.
Stage four held up under test. An independent test agent inside CBP ran an operational test and evaluation in May–June 2019, and GAO reported the findings in September 2020 and again in July 2022. Air exit correctly matched 98 percent of travelers' photos against galleries built from passenger manifests. It incorrectly matched a traveler to a gallery photo less than 0.1 percent of the time. Stage two is where the programme missed its own bar. Rebecca Gambler of the U.S. Government Accountability Office told a House subcommittee on 27 July 2022: “Specifically, the test agent found that air exit successfully captured the photos of approximately 80 percent of in-scope travelers on participating flights, short of the 97 percent minimum requirement.” The matcher was not the constraint. The camera was. CBP then moved to remove the 97 percent requirement.
A vendor accuracy figure describes stage four alone. It says nothing about the stage that decided how many people reached stage four at all.
1. Enroll identity
Bind a verified person to one or more protected biometric templates.
2. Assess capture
Check face quality, pose, occlusion, device integrity, and presentation attacks.
3. Produce a template
Encode the face under a versioned model and preprocessing pipeline.
4. Compare or search
Calculate similarity to a claimed template or gallery candidates.
5. Apply policy
Accept, reject, step up authentication, or route to manual recovery.
Comparison
Verification and identification create different risks
The candidate set and the decision question change the error surface.
One-to-one verification asks whether this capture matches the claimed enrolled identity. Small comparison set; the claimant supplies the identity; a threshold controls accept and reject. An account login.
One-to-many identification asks which gallery identity, if any, best matches the capture. Large search space; open-set rejection required, because the right answer may be "nobody"; candidate ranking precedes any decision. A duplicate-enrollment check.
Watchlist search asks whether the capture resembles anyone in a sensitive target list. Low base rates, a high false-alert burden, and human confirmation as the only thing between a ranked list and someone's front door. A controlled-access alert.
That last line is usually written as advice. What it costs when it is skipped is documented. Detroit police wrongfully arrested Robert Williams in January 2020, after a face-recognition search on a blurry surveillance still returned his expired driver's licence photo. The ACLU, the ACLU of Michigan and the University of Michigan Law School's Civil Rights Litigation Initiative sued in April 2021, and the parties settled Williams v. City of Detroit on 28 June 2024. The ACLU, counsel of record for Williams, records what the city agreed to: “Under the agreement, police will be required to back up face recognition results with independent and reliable evidence linking a suspect to a crime before making any arrest.”
The settlement also mandates training. And it requires an audit of every case since 2017 in which the department used face recognition to obtain an arrest warrant. Human confirmation is now written policy in Detroit: DPD Directive No. 203.11 states that a lineup “may never be conducted based solely on a facial recognition investigative lead”. The U.S. Commission on Civil Rights, which quoted that directive in September 2024, names seven known U.S. wrongful arrests from face recognition misidentification.
One-to-one verification
Does this capture match the claimed enrolled identity?
- Small comparison set
- Claimant provides identity
- Threshold controls accept/reject
- Example: account login
One-to-many identification
Which gallery identity, if any, best matches the capture?
- Large search space
- Open-set rejection required
- Candidate ranking precedes decision
- Example: duplicate enrollment
Watchlist search
Does the capture resemble anyone in a sensitive target list?
- Low base rates
- High false-alert burden
- Human confirmation essential
- Example: controlled access alert
Analogy
A key cut from a living body
A key can be cut to a shape measured from a person rather than manufactured. It can be convenient, but when its template leaks, the person cannot simply grow a new face.
A cut key gives the same answer every time it enters the lock, while biometric comparisons are probabilistic and vary with capture conditions. Revocability, template protection, and fallback are what the key makes visible.
Clearview AI is that argument at scale, with nobody's consent. On 3 September 2024 the Dutch Data Protection Authority, the Autoriteit Persoonsgegevens, fined the company €30.5 million and imposed compliance penalties of up to €5.1 million. The database behind the fine holds more than 30 billion scraped face photos, each converted into a unique biometric code. The final decision, dated 16 May 2024, found violations of Articles 5(1)(a), 6, 9(1), 12, 14, 15 and 27 GDPR. The European Data Protection Board records the €30,500,000 administrative fine and the central finding: “Clearview violates Article 9(1) GDPR, by processing a special category of personal data (biometric data)”. Clearview did not object, so it cannot appeal.
Aleid Wolfsen, who chairs the Dutch authority, gave the principle in one sentence when the fine was announced: “Facial recognition is a highly intrusive technology, that you cannot simply unleash on anyone in the world”. The fine is recoverable. The 30 billion codes were cut from faces that cannot be reissued.
A biometric is an identity signal, not a replaceable secret.
Thresholds translate overlap into security and exclusion
Genuine and impostor similarity distributions overlap. Lowering the threshold admits more genuine users and more impostors; raising it reduces false accepts while rejecting more legitimate users.
Choose operating points for the workflow, population, gallery size, and fallback; report false match and false non-match rates under the actual comparison protocol.
NIST measured what those thresholds do to different groups. The demographic-effects volume of its Face Recognition Vendor Test, NISTIR 8280, appeared in December 2019. Its reporting advice is blunt, and it is about the threshold you actually run: since “most systems are configured with a fixed threshold, it is necessary to report both false negative and false positive rates for each demographic group at that threshold. This is rarely done - most reports are concerned only with false negatives.”
One operating mode abandons the threshold entirely. NISTIR 8280 calls investigative search “a special-case application of identification algorithms where the threshold is set to zero so that all searches will produce a fixed number of candidates. In such cases, the false positive identification rate is 100% because any search of someone not in the database will still yield candidates”. Then it names the safeguard that is left: “what matters then is the human response”. GAO described the same output in law-enforcement terms in September 2023, where “identification searches compare a photo of a single unknown individual against a gallery of photos to determine if there is a potential match (i.e., an investigative lead)”.
The FBI gives that shortlist its exact dimensions. Its Privacy Impact Assessment for the Next Generation Identification Interstate Photo System, approved on 7 November 2024, states: “Specifically, a single photo will never be returned, but a gallery of two to fifty photos, with the LEA choosing the size of the gallery. If no choice is made, a default of twenty photos is returned.” Every response carries the caveat “This response is an INVESTIGATIVE LEAD ONLY. It is NOT positive identification of the subject.” The U.S. Commission on Civil Rights reported 34,014 investigative face recognition searches of the NGI-IPS in FY 2023.
That is what "no threshold" looks like as a product: a fixed-length list of ranked strangers, returned tens of thousands of times a year, with the accuracy question moved off the algorithm and onto whoever reads the list.
There is no context-free “accuracy” for biometric acceptance.
Example
Slices that belong in a face-system evaluation
Aggregate error can hide systematic differences and brittle capture conditions.
NIST IR 8491 is what slicing one component looks like when someone actually does it. Published on 20 September 2023, it is the tenth part of NIST's Face Analysis Technology Evaluation and it covers passive, software-based presentation-attack detection: 82 passive software-only PAD algorithms from 45 developers, roughly 20,000 attack presentations and 21,000 bona fide presentations, across 9 attack categories. The summary of what it found is not reassuring: “PAD performance varied widely across algorithms, use cases, and PA types, with only a small percentage of algorithms evaluated demonstrating notable detection capabilities.” The report is also explicit about its own boundary. It is silent on injection attacks. And it reports that zooming a print or replay attack, so that the photo frame and the hands are out of view, raises error rates across all algorithms.
- Demographic group and intersection: examine false matches and false non-matches, not only average rank. NISTIR 8280 found false positive rates differing by factors of 10 to beyond 100 times across demographics, against factors below 3 for false negatives.
- Age gap: compare enrollment and verification across months or years, and treat age as a false-match slice too. NISTIR 8280 reports elevated false positives in the elderly and in children.
- Pose and occlusion: include masks, glasses, head rotation, expression, and partial faces. NIST IR 8491 found that zooming a print or replay attack so the photo frame and hands leave the view raised error rates across all algorithms tested.
- Illumination and sensor: test infrared, visible light, webcams, phones, and compressed streams. CBP's air exit lanes captured approximately 80 percent of in-scope travelers against a 97 percent requirement, a failure no matching metric can see.
- Gallery scale: re-evaluate identification as the candidate database grows. The FBI's NGI-IPS returns two to fifty candidates, twenty by default, regardless of how large the gallery behind it has become, and served 34,014 investigative searches in FY 2023.
- Attack family: print, replay, 3D mask, deepfake, sensor bypass, and digital injection. NIST IR 8491 covered 9 attack categories across 82 algorithms. Its top security performer on PA Type 4, aware-001, still sat at BPCER 0.200 @ APCER=0.01 on impersonation stills, rejecting 20% of genuine users, and injection attacks fell outside the evaluation altogether.
Key idea
Demographic differentials must be measured at the chosen operating point
Group differences can arise from training representation, capture quality, algorithm design, aging, and interaction with devices; a single demographic accuracy number may hide threshold-specific disparities.
Use representative samples, uncertainty intervals, and matched protocols. Do not infer biological causes from observed performance differences.
NISTIR 8280 gives the shape of the differential, and it gives it by group. The report states that “using the higher quality Application photos, false positive rates are highest in West and East African and East Asian people, and lowest in Eastern European individuals”, and that “with domestic law enforcement images, the highest false positives are in American Indians”. On sex and age it is equally direct: “we found false positives to be higher in women than men, and this is consistent across algorithms and datasets”, and “we found elevated false positives in the elderly and in children”.
None of that is a property of faces, and the same summary supplies the disproof: “with a number of algorithms developed in China this effect is reversed, with low false positive rates on East Asian faces”. GAO reviewed the same NIST work in September 2023 and recorded that NIST “reported that performance differences varied by the algorithms tested, with some performing better than others. For a small number of the one-to-many algorithms, differences in false positives across demographic groups were undetectable. The extent of performance differences varied by the algorithm developer, type of error, and quality of the facial images.”
An effect that some developers reverse, and that a few algorithms do not exhibit at all, is a property of engineering choices. It is measurable at your threshold, on your population, or it is not measured.
Fairness analysis should examine who is falsely accepted, falsely rejected, delayed, or escalated.
Steps
Threat-model the whole biometric channel
Attack resistance extends beyond the recognition network. Each stage of the channel has its own documented failure.
Secure enrollment verifies identity binding and prevents duplicate or fraudulent enrollment. Every weakness in the document check behind enrollment is inherited for the life of the trait.
Protect capture by authenticating devices, detecting replay or injection, and preserving provenance. The route FinCEN names is a third-party webcam plugin feeding previously generated video into the check. NIST IR 8491 is the largest public PAD benchmark available, and it says outright that it is silent on injection attacks. No passive PAD score covers that route.
Protect templates through encryption, separated identifiers, restricted access and a revocation plan. The Dutch decision of 16 May 2024 is what an unprotected, unconsented template store looks like when a regulator reads Article 9(1) GDPR against it.
Limit decisions with least privilege, rate limits, thresholds and step-up authentication. 34,014 investigative searches in one fiscal year is a decision volume, not an incident.
Provide recovery: accessible non-biometric alternatives and a route of appeal for false rejection. CBP's air exit captured approximately 80 percent of in-scope travelers against a 97 percent minimum requirement, so the alternative path is the normal path for a substantial share of people. And Robert Williams needed a federal settlement, formalized 28 June 2024, to obtain the written rule that a face-recognition result is not on its own a reason to arrest anyone.
1. Secure enrollment
Verify identity binding and prevent duplicate or fraudulent enrollment.
2. Protect capture
Authenticate devices, detect replay or injection, and preserve provenance.
3. Protect templates
Encrypt, separate identifiers, restrict access, and plan revocation strategies.
4. Limit decisions
Use least privilege, rate limits, thresholds, and step-up authentication.
5. Provide recovery
Offer accessible non-biometric alternatives and appeal for false rejection.
Example
Practice: design face verification for account recovery
A bank considers face verification when customers lose their device, a situation already attractive to attackers.
The attack typology is published, so design against it rather than against a hypothetical. FinCEN issued an alert on deepfake fraud schemes against financial institutions on 13 November 2024. Since 2023, it reports, suspicious activity reports describing deepfake media used to defeat financial institutions' identity verification have increased. The alert names the injection route: “Some identity verification solutions may also flag possible attempts to circumvent verification checks, such as the use of third-party webcam plugins, which can let a customer display previously generated video rather than live video.” The FBI's Internet Crime Complaint Center issued a parallel public service announcement on 3 December 2024, on criminals using generative artificial intelligence to produce identification documents and real-time video for fraud.
- Define how enrollment identity was originally established, and write down what evidence bound the template to a person; a face-recovery flow can be no stronger than that original binding.
- Choose a threshold and a second factor for borderline matches, and state the false match and false non-match rates at that threshold rather than a single accuracy figure. NISTIR 8280 asks for both rates, per group, at the fixed threshold the system actually runs.
- Create tests for replay, digital injection, and stolen enrollment images. Use FinCEN's named route, a third-party webcam plugin serving previously generated video, and IC3's generative-AI identification documents and real-time video. Passive PAD scores do not answer this, because NIST IR 8491 is explicitly silent on injection.
- Specify a non-biometric recovery route for inaccessible or failed captures. In supervised airport lanes CBP captured approximately 80 percent of in-scope travelers against a 97 percent requirement, so the fallback is a design requirement rather than an edge case.
- Set retention, template deletion, audit, and incident-response rules. The €30.5 million fine and up to €5.1 million in compliance penalties levied against Clearview AI were for the store of biometric codes and its legal basis, not for any matching error.
Position
The error that varies most between groups is the one least often reported
Ask whether a face system works equally well for everyone, and you will usually be handed a failure-to-match rate by group. That answer describes the smaller effect. NISTIR 8280 reported that “false negatives tend to be more algorithm-specific, and vary often by factors below 3”, while “across demographics, false positives rates often vary by factors of 10 to beyond 100 times”. NIST's news release of 19 December 2019 carried the same magnitude in prose, quoting Grother on one-to-one matching: “The differentials often ranged from a factor of 10 to 100 times, depending on the individual algorithm”.
The two errors are not two versions of one harm. A false non-match is a door that does not open. The person tries again, or takes the fallback the product should already have. A false match attaches someone else's identity to your face. In investigative mode it does so from a list generated with the threshold set to zero, where, in NIST's words, “the false positive identification rate is 100%”. The FBI's Privacy Impact Assessment describes the artefact precisely: a gallery of two to fifty photos, twenty by default, each response stamped “This response is an INVESTIGATIVE LEAD ONLY. It is NOT positive identification of the subject.” There were 34,014 such searches of the NGI-IPS in FY 2023. Robert Williams was on one of those lists in January 2020. It took a lawsuit filed in April 2021 and a settlement on 28 June 2024 to convert that stamp into a rule Detroit officers must follow.
NIST also names who carries the false-match cost. The report states that “using the higher quality Application photos, false positive rates are highest in West and East African and East Asian people, and lowest in Eastern European individuals”, and that “with domestic law enforcement images, the highest false positives are in American Indians”. It adds that “we found false positives to be higher in women than men, and this is consistent across algorithms and datasets” and that “we found elevated false positives in the elderly and in children”.
The reporting habit hides all of this, and NIST is blunt about it. Since “most systems are configured with a fixed threshold, it is necessary to report both false negative and false positive rates for each demographic group at that threshold. This is rarely done - most reports are concerned only with false negatives.” So the convention reports the error that varies by factors below 3. It stays quiet about the one that varies by factors of 10 to beyond 100 times.
The differential is not a fact about faces either. NISTIR 8280 records that “with a number of algorithms developed in China this effect is reversed, with low false positive rates on East Asian faces”, and GAO records that NIST “reported that performance differences varied by the algorithms tested, with some performing better than others. For a small number of the one-to-many algorithms, differences in false positives across demographic groups were undetectable.” An effect that some developers reverse, and that a few algorithms do not show at all, is a property of systems, not of the people they look at. The reporting convention is part of what makes it look inherent.
So ask for false match rates per group, at the threshold you will actually run. Then ask what the list looks like at that threshold: how many names come back, what the response is stamped with, and who is required to do something else before that stamp becomes an arrest, an account lockout, or a border stop. An accuracy figure with no group and no threshold is not an answer to any of those questions.
Key takeaways
- Face detection, verification, identification, and presentation-attack detection are distinct components. Only the last has its own testing standard: ISO/IEC 30107-3:2023, which supplies the APCER and BPCER rates every liveness claim must be stated in.
- Enrollment binds a real identity to a protected template, and it is part of the security boundary. Clearview AI's store of more than 30 billion scraped photos, each turned into a unique biometric code, drew a €30.5 million fine from the Dutch Data Protection Authority on 3 September 2024.
- Thresholds trade false matches against false non-matches under a specific protocol and population. Investigative search sets the threshold to zero, so the false positive identification rate is 100%: the FBI's NGI-IPS returns two to fifty candidates, twenty by default, and did so 34,014 times in FY 2023.
- Open-set search, gallery scale, devices, age gaps, and attack families belong in evaluation. NIST IR 8491 tested 82 passive PAD algorithms from 45 developers over 9 attack categories, found performance varying widely, and covered no injection attacks at all.
- Demographic analysis must use relevant error types, thresholds, and uncertainty rather than one aggregate score. NISTIR 8280 found false positives varying by factors of 10 to beyond 100 times across demographics while false negatives varied by factors below 3, and it asks for both rates per group at the operating threshold.
- Biometric products need template protection, consent, fallback, appeals, retention rules, and incident response. CBP's air exit matched 98 percent but captured only approximately 80 percent of in-scope travelers, and the Williams v. City of Detroit settlement of 28 June 2024 forced independent evidence before any arrest.