Design an Audio Deepfake Detection System

Hard45 min
1 / 31
System design answer

Design an Audio Deepfake Detection System

Hard45 min31 sections
understanding•5 min read

Problem Statement: Synthetic Speech as a Systems Problem

Frames the audio deepfake problem as a pipeline with a score, a policy and a human review loop, and separates the two workloads the design must serve.

The problem in one paragraph

A cloned voice can ask a bank help desk to reset a password, impersonate a finance director on a call, or give a news clip a false origin. Human listeners are poor at spotting modern synthetic speech under phone compression, so a platform needs a system that scores audio, explains the score, keeps an audit trail, and sends uncertain cases to people. This design covers that system: audio in, calibrated score out, decision logged, and labels fed back into the model.

Two workloads hiding in one design

The same core detector serves two very different workloads. Live call scoring must decide inside a few seconds on narrowband telephony audio, usually 8 kHz after G.711 or a comparable codec, and it must keep up with thousands of calls at once. Batch media scanning receives uploaded files, often wideband or full band, and can take minutes per file, but it must produce a report that an analyst can defend months later. Treating them as one pipeline with one queue is the first mistake most candidates make. The shared parts are feature extraction, the detector ensemble and score calibration. The different parts are ingress, latency budget, storage and the human workflow.

Why it is harder than a classifier

Three properties make this a systems problem rather than a model problem.

First, the base rate is tiny. Most calls are genuine and real attacks are rare. A detector with a 0.1 percent false positive rate looks excellent on a benchmark, yet on 3 million calls a day it raises about 3,000 alerts for roughly 30 real attacks. Every threshold is therefore an operations decision with a cost measured in analyst minutes.

Second, the target moves. Generators change every few months, codecs change what the detector hears, and attackers can post-process audio to blur the artifacts a detector relies on. A model that scored well last quarter can quietly lose its edge, so drift monitoring and a retraining loop are part of the core design.

Third, the evidence is sensitive. A voice is biometric data in many jurisdictions. The system stores audio, features and verdicts, so access control, retention and deletion are requirements from the first diagram, not add-ons.

Scope of this design

This answer covers detection, provenance checks, scoring, human review and governance. It does not explain how to create synthetic speech or how to defeat a detector. Where attacks shape the design, they appear as threat classes that the system must measure and defend against.

What the interviewer is testing

The interviewer wants to see whether you can separate the score from the decision. A score is a calibrated probability. A decision is a policy that combines that score with the tenant's false-alarm budget, the value of the call and the reviewer capacity. Strong candidates name the base-rate problem early, put a number on the review cost, and state that a missing watermark is not evidence of a fake.

Key Highlights

  • •Live calls need a verdict every 2 seconds on 8 kHz telephony audio; uploads need a file report on wideband audio. Share the model, not the pipeline.
  • •At 3 million calls a day and an assumed attack rate of 0.001 percent, a 0.1 percent false positive rate still produces about 3,000 alerts for about 30 real attacks.
  • •Scores are calibrated probabilities. Decisions are per-tenant policies layered on top of them, versioned and stored with each verdict.
  • •Provenance checks (C2PA manifests, watermarks) answer a different question from the classifier and are fused as separate evidence, never folded into one number.
Lead With the Base Rate
Say early that the attack rate is far below the false alarm rate of a good detector. That one sentence changes the threshold, the review design and the storage model, and it shows you reason in operating points rather than accuracy headlines.
Store the Policy Version With Every Verdict
Return the calibrated score and the policy version together. When a tenant asks why a call was held, you can replay the decision against the exact threshold that was active at that moment.

Section Rescue Kit

Buzzwords to use:

Base-Rate FallacyCalibrated Score

Safe statements:

  • "The first thing I would pin down is the attack rate, because it decides how many false alarms the review team can absorb."
  • "I will keep the score, the policy and the evidence as three separate records so any verdict can be explained later."
Design an Audio Deepfake Detection System - System Design | WinJob | WinJob