AIRi demo

From upload to verdict, and the reason why

Explainability · audio-only explanation

Where does the detector hear the fake?

  • Spectrogram
  • Relevance mask (U-Net)
  • Ground truth: vocoded 1–2 kHz
  1. Spectrogram
  2. Relevance mask
  3. Ground truth
  4. Faithfulness check
Keep relevant mask ⊙ X stays fake
Keep irrelevant (1 − mask) ⊙ X flips to real
Listen

Late fusion · video input

Three cores, one weighted score

final = 0.5·lipsync + 0.4·audio + 0.1·video

Lipsync core w = 0.5 —
Audio core w = 0.4 —
Video core w = 0.1 —
Weighted final 0.5 —

Each core returns p(fake). Weights are renormalised over the cores that returned a score, so a core that fails simply drops out. Scores above 0.5 read as fake.

How it works

Four ideas behind the pipeline

One entry point for audio and video. An audio file goes straight to the audio core. A video is split across audio, video and lipsync cores whose scores are fused. When the input is audio only, an explainability model shows which parts of the spectrogram drove the decision.

  1. 01

    Route by input type

    An audio file goes only to the audio core, and its score is the final score. For a video, ffmpeg extracts the soundtrack for the audio core, and the video itself goes to the video and lipsync cores.

  2. 02

    Three independent cores

    Each core returns the probability that the input is fake. Audio: a frozen encoder with a logistic-regression head. Video: a frozen encoder with a CNN head. Lipsync: AV-HuBERT features, an alignment network and a fusion head, trained on real videos only. The cores run in separate environments because their dependencies clash.

  3. 03

    Late fusion

    final = 0.5·lipsync + 0.4·audio + 0.1·video

    The weights are renormalised over the cores that produced a score. If a core fails, for example because the lipsync core finds no face, its score is dropped and the others are reweighted.

  4. 04

    Explaining audio decisions

    The explainability model is a U-Net mask predictor that highlights the time–frequency regions behind a “fake” decision. Keep the relevant regions and the decision holds; keep the rest and it flips. Here only the 1–2 kHz band was vocoded, so the ground truth is known.

Run it on your own files

The full pipeline, retraining scripts and setup notes are on the model card.

$ python detect.py INPUT_FILE --json
Open model card