Facial Recognition

Identifying Faces with Embeddings

Facial recognition uses neural networks to convert a face image into a compact embedding vector. Same person → embeddings are close. Different people → embeddings are far apart. Recognition is nearest-neighbor search in this embedding space.

Verification vs Identification

Face Verification (1:1)

Is this face the same person as this reference? Compare two embeddings; if distance is below a threshold, it's a match. Used in phone unlock, passport control, building access.

Face Identification (1:N)

Who is this person, out of N known individuals? Compare query embedding to entire database; return the closest match. Used in surveillance systems, photo tagging, law enforcement databases.

The Recognition Pipeline

1

Face detection — Locate all faces in the image (bounding boxes).

2

Alignment — Normalize pose and scale by aligning facial landmarks (eyes, nose, mouth) to standard positions. Crucial for consistent embeddings.

3

Embedding extraction — Run the aligned face through a CNN trained with contrastive or triplet loss. Output: a vector of 128–512 numbers.

4

Matching — Compare the embedding against the database. Verify (threshold check) or identify (nearest neighbor).

Privacy and Bias Concerns

Technically powerful, ethically contested

Accuracy bias: commercial systems have significantly higher error rates for darker-skinned individuals and women due to unrepresentative training data. An incorrect match in law enforcement has severe consequences.

Surveillance: facial recognition can identify people without their knowledge in public spaces, threatening anonymity and freedom of assembly. Several jurisdictions have banned government use. Responsible deployment requires disclosure, consent, human review, and regular bias audits.

Need Help?

Ask the AI assistant about facial recognition, how face embeddings work, or the privacy and bias concerns this technology raises.