← Latest papers
💻 computer science

Pipeline Optimisation for Real-World Masked Face Recognition: YOLOv8 Detection, Landmark-Guided Cropping, and Multi-Model Embedding Benchmarking

This paper presents a systematic pipeline for robust masked face recognition that combines a fine-tuned YOLOv8 detector with landmark-guided upper-face cropping, demonstrating through extensive benchmarking that this multi-stage optimization significantly outperforms single-model approaches, particularly when using FaceNet with cosine similarity.

Original authors: Hamza Zidoum, Shihab Al Busaidi

Published 2026-06-24
📖 5 min read🧠 Deep dive

Original authors: Hamza Zidoum, Shihab Al Busaidi

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: The "Masked Face" Glitch

Imagine you have a very smart security guard (a computer system) who has spent years memorizing the faces of everyone in a building. This guard is excellent at recognizing people when they are wearing their normal clothes and have their whole face visible.

However, when the pandemic hit, everyone started wearing face masks. Suddenly, the guard got confused. The mask covered the nose, mouth, and chin—parts of the face the guard relied on heavily to say, "Yes, that's Bob!" The guard started failing, either missing people entirely or guessing the wrong person.

This paper asks: How do we fix the guard so they can recognize people even when they are wearing masks?

The Solution: A Three-Step Pipeline

The authors didn't just try to "retrain" the guard's brain from scratch. Instead, they built a three-step assembly line (a pipeline) to process the image before the guard looks at it. Think of it like preparing a meal before serving it to a picky eater.

Step 1: Finding the Face (The "Spotter")

The Problem: Old security cameras often use outdated software to find a face in a crowd. When a face is covered by a mask, these old programs get lost. They are like a child trying to find a specific toy in a messy room but only looking for the whole toy; if half is covered, they give up.

The Fix: The authors used a modern, high-tech "spotter" called YOLOv8.

  • The Analogy: Imagine a highly trained eagle that doesn't need to see the whole bird to know it's a bird. It can spot a bird just by seeing its head and eyes.
  • The Result: They taught this eagle specifically to look for masked faces. It became incredibly good at it, finding masked faces 91.9% of the time. In comparison, the old "child" (older software) only found them about 47% of the time.

Step 2: Cutting Out the Clutter (The "Chef")

The Problem: Even if the system finds the face, the mask is still there, blocking the view. It's like trying to read a book where someone has put a sticky note over the bottom half of the page. The text is still there, but it's messy and confusing.

The Fix: The authors used a tool called MediaPipe to act like a precise chef with a knife.

  • The Analogy: Instead of trying to read the whole messy page, the chef cuts out only the top half of the page (the eyes, forehead, and cheeks) where the text is clear and unobstructed. They throw away the sticky note (the mask) and the bottom half of the page.
  • The Result: By feeding the system only the clean, unmasked top part of the face, the recognition accuracy jumped massively. For their best system, accuracy went from a failing grade (46.5%) to a solid B+ (70.1%).

Step 3: The Comparison (The "Librarian")

The Problem: Once the system has a clean picture of the upper face, it needs to compare it to a database of known faces. There are different ways to do this comparison, like different ways to measure distance.

  • The Analogy: Imagine you are trying to match two puzzle pieces.
    • Method A (Euclidean): You measure the straight-line distance between the edges.
    • Method B (Cosine): You look at the angle and shape of the pieces, ignoring how big or small they are.
  • The Result: The authors tested three different "Librarians" (FaceNet, ArcFace, and VGG-Face). They found that the Cosine method (looking at the angle/shape) worked best for all of them. Interestingly, the "Librarian" with the smallest memory (FaceNet) actually did the best job, likely because it wasn't overthinking the details that were missing.

What They Discovered (The Takeaways)

  1. Old software fails: If you use old detection tools on masked faces, they will fail miserably. You need a modern tool specifically tuned for masks.
  2. Cutting is better than guessing: The biggest improvement didn't come from making the computer smarter; it came from cropping the image. Removing the blocked part of the face made the system much more accurate without needing to retrain it.
  3. Less is more: A simpler, more compact computer model (FaceNet) handled the missing information better than the complex, heavy models.
  4. Real masks are hard: The paper emphasizes that using real photos of people wearing real masks is crucial. Previous studies used fake, digital masks, which made the problem look easier than it actually is.

The Bottom Line

The paper concludes that you don't need to invent a completely new "super-brain" to recognize masked faces. Instead, you just need to optimize the process:

  1. Use a sharp eye to find the face.
  2. Cut out the messy, covered parts.
  3. Compare the clean parts using the right measuring tool.

By doing these three simple steps, the system becomes reliable again, even when everyone is wearing a mask.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →