cover

Face Math Magic

How does a computer recognize a face?
**You unlock your phone with your face**. Your computer tags you in photos. Airport gates scan travelers and wave them t

You unlock your phone with your face. Your computer tags you in photos. Airport gates scan travelers and wave them through. How does a machine โ€” a thing with no eyes, no brain โ€” look at a face and know whose face it is?

First, the camera snaps a picture. But the computer doesn't see a face the way you do. You see eyes, a nose, a smile. Th

First, the camera snaps a picture. But the computer doesn't see a face the way you do. You see eyes, a nose, a smile. The computer sees a grid of numbers โ€” millions of tiny measurements of light and dark, one number for every pixel.

~~Now comes the magic:~~ a ++neural network++. It's called a network because it's built like a web of connections, and n

Now comes the magic: a neural network. It's called a network because it's built like a web of connections, and neural because it's loosely inspired by how brain cells link up. This network has been trained on millions of faces โ€” every shape, every age, every angle โ€” learning patterns the way you learned to tell cats from dogs.

The network **doesn't memorize faces**. Instead, it learns to measure them. ~~It finds the distance~~ between your eyes.

The network doesn't memorize faces. Instead, it learns to measure them. It finds the distance between your eyes. The curve of your cheekbones. The angle of your jaw. The shape of your nose. It finds dozens of measurements โ€” sometimes hundreds โ€” and writes them down as one long list of numbers, like a secret recipe that describes only your face.

That list is called an ++embedding++, and it's **your face translated into math**. Think of it _like a fingerprint made

That list is called an embedding, and it's your face translated into math. Think of it like a fingerprint made of numbers. Two photos of you, even with different lighting or a new haircut, produce very similar embeddings. A photo of someone else produces a completely different list.

When you hold your face up to your phone, the camera takes a new picture, the network generates a new **embedding**, and

When you hold your face up to your phone, the camera takes a new picture, the network generates a new embedding, and then the phone compares that embedding to the one it saved when you set up face unlock. It's like checking if two puzzle pieces match. If the numbers are close enough โ€” click, you're in.

The network gets better the more faces it sees. It learns that *glasses don't change who you are*. That **smiles and fro

The network gets better the more faces it sees. It learns that glasses don't change who you are. That smiles and frowns are just expressions, not new people. That shadows and sunlight shift the pixels but the measurements underneath stay steady. Every face teaches it something new about what makes a face a face.

~~So that's the trick.~~ **Your face becomes numbers**. The numbers become a pattern. The pattern becomes a match. And *

So that's the trick. Your face becomes numbers. The numbers become a pattern. The pattern becomes a match. And a machine that can't see the way you see learns to recognize you anyway โ€” not by memorizing your face, but by learning to measure it.

How was this book?

A Wonderleaf Book

Face Math Magic

โ€” How does a computer recognize a face? โ€”

Wonderleaf Editions
โ€” ex libris โ€”
A Wonderleaf Book

Face Math Magic

How does a computer recognize a face?

Wonderleaf Editions ยท MMXXVI
Scene 1
**You unlock your phone with your face**. Your computer tags you in photos. Airport gates scan travelers and wave them t
Face Math Magic2
Scene 1

You unlock your phone with your face. Your computer tags you in photos. Airport gates scan travelers and wave them through. How does a machine โ€” a thing with no eyes, no brain โ€” look at a face and know whose face it is?

3Face Math Magic
Scene 2
First, the camera snaps a picture. But the computer doesn't see a face the way you do. You see eyes, a nose, a smile. Th
Face Math Magic4
Scene 2

First, the camera snaps a picture. But the computer doesn't see a face the way you do. You see eyes, a nose, a smile. The computer sees a grid of numbers โ€” millions of tiny measurements of light and dark, one number for every pixel.

5Face Math Magic
Scene 3
~~Now comes the magic:~~ a ++neural network++. It's called a network because it's built like a web of connections, and n
Face Math Magic6
Scene 3

Now comes the magic: a neural network. It's called a network because it's built like a web of connections, and neural because it's loosely inspired by how brain cells link up. This network has been trained on millions of faces โ€” every shape, every age, every angle โ€” learning patterns the way you learned to tell cats from dogs.

7Face Math Magic
Scene 4
The network **doesn't memorize faces**. Instead, it learns to measure them. ~~It finds the distance~~ between your eyes.
Face Math Magic8
Scene 4

The network doesn't memorize faces. Instead, it learns to measure them. It finds the distance between your eyes. The curve of your cheekbones. The angle of your jaw. The shape of your nose. It finds dozens of measurements โ€” sometimes hundreds โ€” and writes them down as one long list of numbers, like a secret recipe that describes only your face.

9Face Math Magic
Scene 5
That list is called an ++embedding++, and it's **your face translated into math**. Think of it _like a fingerprint made
Face Math Magic10
Scene 5

That list is called an embedding, and it's your face translated into math. Think of it like a fingerprint made of numbers. Two photos of you, even with different lighting or a new haircut, produce very similar embeddings. A photo of someone else produces a completely different list.

11Face Math Magic
Scene 6
When you hold your face up to your phone, the camera takes a new picture, the network generates a new **embedding**, and
Face Math Magic12
Scene 6

When you hold your face up to your phone, the camera takes a new picture, the network generates a new embedding, and then the phone compares that embedding to the one it saved when you set up face unlock. It's like checking if two puzzle pieces match. If the numbers are close enough โ€” click, you're in.

13Face Math Magic
Scene 7
The network gets better the more faces it sees. It learns that *glasses don't change who you are*. That **smiles and fro
Face Math Magic14
Scene 7

The network gets better the more faces it sees. It learns that glasses don't change who you are. That smiles and frowns are just expressions, not new people. That shadows and sunlight shift the pixels but the measurements underneath stay steady. Every face teaches it something new about what makes a face a face.

15Face Math Magic
Scene 8
~~So that's the trick.~~ **Your face becomes numbers**. The numbers become a pattern. The pattern becomes a match. And *
Face Math Magic16
Scene 8

So that's the trick. Your face becomes numbers. The numbers become a pattern. The pattern becomes a match. And a machine that can't see the way you see learns to recognize you anyway โ€” not by memorizing your face, but by learning to measure it.

17Face Math Magic

~ finis ~

Tiny picture books for big little questions.

โ€” a small constellation of questions โ€”
โœฆWonderleaf
Editions