The attack

A morph is a face built to pass as two people.

Two people blend their faces into one picture and put it on a passport or an ID. Face matching now says yes to either of them, so two people can travel on one document. Border agencies call it a morphing attack. The hard version is catching it from the photo on the document alone, with nothing beside it to compare.

The rule I set myself

This is a field where papers report 99%, and the number falls apart the moment it meets real photos. So I set the project up to make flattering results hard to get. No person appears on both the training and the test side, not even as half of a morph. The detector is tested on morphing tools it never saw in training. I wrote the scoring code and its tests before any model existed. And a modern neural network has to beat a 1990s texture method, or I say it didn't.

Three times the good news was wrong

  1. The 98% that wasn't. My first error rate was 1.6%. That was too good, so I went looking. 3,532 images from the "unseen" morphing tools had quietly slipped into training. Nobody overlapped, so my checks stayed quiet. What gave it away: every tool scored equally well, and generalisation never looks like that.
  2. Reading the frame, not the face. The texture method was partly spotting warp marks near the image edge. Cropping to the face roughly doubled the error. The honest number is the worse one.
  3. Two people called "001". Two datasets numbered their people the same way, so different people would have counted as one. I caught it before it did any damage.

What survived

PhotoTexture + SVMNeural net
Clean5.5%4.8% ± 1.1
JPEG, quality 904.4%10.5% ± 3.0
JPEG, quality 7022.8%56.8% ± 7.3
Shrunk to half size89.2%73.4% ± 4.7
Equal error rate: lower is better, 50% is a coin flip. Neural net results are averaged over three training seeds. Greyed rows are where neither method works any more.

On clean photos, the neural network only ties the 1990s method. Add compression too light to see and it gets measurably worse. Below that, both of them fall apart. An earlier single run seemed to show the network pulling ahead on badly damaged photos. It vanished once I ran three seeds, so I took it back.

My guess at why: the source photos are 1350 pixels wide and both detectors see 224. That throws away 97% of the pixels, and the fine skin texture where a morph shows is what goes first. That's the next experiment.

Everything here is a first pass on stand-in data, with simulated print-and-scan. Nothing is published.