Skip to main content

Counterfactual Image Enhancement for Explanation of Face Swap Deepfakes

  • Conference paper
  • First Online:
Pattern Recognition and Computer Vision (PRCV 2022)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13535))

Included in the following conference series:

Abstract

Highly realistic AI generated face swap facial imagery known as deepfakes can easily deceive human eyes and have drawn much attention. Deepfake detection models have obtained high accuracies and are still improving, but the explanation of their decisions receives little attention in current research. Explanations are important for the credibility of detection results, which is essential in serious applications like the court of law. The explanation is a hard problem, apart from the deep detection models are black boxes, the particular reason is that high-quality fakes often have no human-eye-sensitive artifacts. We call the artifacts that can be detected by models but are not human-eye-sensitive as subtle artifacts. In this work, we attempt to explain model detected face swap images to humans by proposing two simple automatic explanation methods. They enhance the original suspect image to generate its more real and more fake counterfactual versions. By visually contrasting the original suspect image with the counterfactual images, it may become easier for humans to notice some subtle artifacts. The two methods operate on pixel and color spaces respectively, they do not require extra training process and can be directly applied to any trained deepfake detection models. We also carefully design new subjective evaluation experiments to verify the effectiveness of proposed enhancement methods. Experiment results show that the color space enhancement method is more preferred by the tested subjects for explaining high-quality fake images, compared to the other pixel space method and a baseline attribution-based explanation method. The enhancement methods can be used as a toolset that helps human investigators to better notice artifacts in detected face swap images and to add weights on proofs.

This work is supported by the National Key Research and Development Program of China under Grant No. 2021YFC3320103 and the National Natural Science Foundation of China (NSFC) under Grants 61902400, U19B2038, 61972395 and a grant from Young Elite Scientists Sponsorship Program by CAST (YESS).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Code available at https://github.com/NiCE-X/Deepfake_explain.

References

  1. DeepFakeDetection. https://ai.googleblog.com/2019/09/contributing-data-to-deepfake-detection.html

  2. DFDC top performer. https://github.com/selimsef/dfdc_deepfake_challenge

  3. FaceSwap. https://github.com/MarekKowalski/FaceSwap

  4. Ciftci, U.A., Demir, I., Yin, L.: FakeCatcher: detection of synthetic portrait videos using biological signals. IEEE Trans. Patt. Anal. Mach. Intell. (2020)

    Google Scholar 

  5. Dolhansky, B., et al: The DeepFake detection challenge dataset. arXiv preprint arXiv:2006.07397 (2020)

  6. Fong, R., Patrick, M., Vedaldi, A.: Understanding deep networks via extremal perturbations and smooth masks. In: Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 2950–2958 (2019)

    Google Scholar 

  7. Fong, R.C., Vedaldi, A.: Interpretable explanations of black boxes by meaningful perturbation. In: Proceedings of the IEEE International Conference on Computer Vision, pp. 3429–3437 (2017)

    Google Scholar 

  8. He, Y., et al.: ForgeryNet: a versatile benchmark for comprehensive forgery analysis. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4360–4369

    Google Scholar 

  9. Jiang, L., Li, R., Wu, W., Qian, C., Loy, C.C.: DeeperForensics-1.0: a large-scale dataset for real-world face forgery detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2889–2898

    Google Scholar 

  10. Li, L., Bao, J., Yang, H., Chen, D., Wen, F.: FaceShifter: towards high fidelity and occlusion aware face swapping. arXiv preprint arXiv:1912.13457 (2019)

  11. Li, L., et al.: Face X-ray for more general face forgery detection. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 5001–5010

    Google Scholar 

  12. Li, Y., Chang, M.C., Lyu, S.: In Ictu oculi: exposing AI created fake videos by detecting eye blinking. In: 2018 IEEE International Workshop on Information Forensics and Security (WIFS), pp. 1–7. IEEE (2018)

    Google Scholar 

  13. Li, Y., Yang, X., Sun, P., Qi, H., Lyu, S.: Celeb-DF: a large-scale challenging dataset for DeepFake forensics. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3207–3216

    Google Scholar 

  14. Malolan, B., Parekh, A., Kazi, F.: Explainable deep-fake detection using visual interpretability methods. In: 2020 3rd International Conference on Information and Computer Technologies (ICICT), pp. 289–293. IEEE (2020)

    Google Scholar 

  15. Molnar, C.: Interpretable machine learning. Lulu. com (2020)

    Google Scholar 

  16. Nguyen, H.H., Fang, F., Yamagishi, J., Echizen, I.: Multi-task learning for detecting and segmenting manipulated facial images and videos. arXiv preprint arXiv:1906.06876 (2019)

  17. Nirkin, Y., Keller, Y., Hassner, T.: FSGAN: subject agnostic face swapping and reenactment. In: Proceedings of the IEEE International Conference on Computer Vision, pp. 7184–7193

    Google Scholar 

  18. Peng, B., et al.: DFGC 2021: a DeepFake game competition. In: 2021 IEEE International Joint Conference on Biometrics (IJCB), pp. 1–8. https://doi.org/10.1109/IJCB52358.2021.9484387

  19. Peng, B., Fan, H., Wang, W., Dong, J., Lyu, S.: A unified framework for high fidelity face swap and expression reenactment. IEEE Trans. Circ. Syst. Video Technol. 32, 3673–3684 (2021)

    Google Scholar 

  20. Pino, S., Carman, M.J., Bestagini, P.: What’s wrong with this video? Comparing explainers for deepfake detection. arXiv preprint arXiv:2105.05902 (2021)

  21. Rossler, A., Cozzolino, D., Verdoliva, L., Riess, C., Thies, J., Nießner, M.: FaceForensics++: learning to detect manipulated facial images. In: Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 1–11

    Google Scholar 

  22. Selvaraju, R.R., Cogswell, M., Das, A., Vedantam, R., Parikh, D., Batra, D.: Grad-CAM: visual explanations from deep networks via gradient-based localization. In: Proceedings of the IEEE International Conference on Computer Vision, pp. 618–626

    Google Scholar 

  23. Woods, W., Chen, J., Teuscher, C.: Adversarial explanations for understanding image classification decisions and improved neural network robustness. Nat. Mach. Intell. 1(11), 508–516 (2019)

    Article  Google Scholar 

  24. Zi, B., Chang, M., Chen, J., Ma, X., Jiang, Y.G.: WildDeepfake: a challenging real-world dataset for DeepFake detection. In: Proceedings of the 28th ACM International Conference on Multimedia, pp. 2382–2390 (2020)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jing Dong .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Peng, B., Lyu, S., Wang, W., Dong, J. (2022). Counterfactual Image Enhancement for Explanation of Face Swap Deepfakes. In: Yu, S., et al. Pattern Recognition and Computer Vision. PRCV 2022. Lecture Notes in Computer Science, vol 13535. Springer, Cham. https://doi.org/10.1007/978-3-031-18910-4_40

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-18910-4_40

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-18909-8

  • Online ISBN: 978-3-031-18910-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics