All entries

    Precision–Recall Curves for Deepfake Classifiers

    Pick a detector threshold with a precision–recall curve, then check whether the same operating point survives a different dataset.

    A researcher adjusts a threshold on a chart beside film frames
    Conceptual pixel-art illustration.

    Pick a detector threshold with a precision–recall curve, then check whether the same operating point survives a different dataset.

    Build the example

    With 20 true manipulated clips, a threshold that flags 15 clips including 12 true positives yields 80% precision and 60% recall. Lowering the threshold may catch more examples and send more false positives to review. Include a no-skill precision baseline equal to prevalence for each evaluation set.

    Write out the positive and negative counts before plotting. A threshold with twelve true positives and three false positives yields the same precision whether the unseen remainder contains five or fifty false negatives, but recall changes. Add the corresponding operating point to the chart and verify it matches the confusion matrix computed from the same threshold.

    Watch the failure boundary

    A threshold chosen for a balanced validation set can generate many more false alarms on data where manipulated clips are rare. Publish the positive rate and the number of review items alongside precision. The curve helps compare operating points, while the actual selected threshold belongs with the model release.

    Verify the behavior

    Choose a threshold using held-out validation labels, not external test results. Report counts at the fixed operating point and state how you aggregated the curve. Average precision and trapezoidal integration use different definitions, so label which measure the script computes.

    FURTHER READING

    Sources

    Technical references checked .

    END OF ENTRY / 64
    Eeshan Singh with Big Ben in London
    BEHIND THE JOURNAL

    Eeshan Singh

    I’m Eeshan Singh Pokharia, an AI Full Stack Developer and CoFounder of UltraFit360. I work across AI features, full-stack product development, and web and mobile experiences—from Figma and frontend interactions to the systems behind them.

    A threshold chosen for a balanced validation set can generate many more false alarms on data where manipulated clips are rare. Publish the positive rate and the number of review items alongside precision. The curve helps compare operating points, while the actual selected threshold belongs with the model release.

    Meet the author
    THE CONVERSATION

    Your side of the story.