Exploring the Role of Loss Functions in Deepfake Detection

With deepfakes becoming more common, it's increasingly difficult to separate real content from manipulated ones. As vast amounts of data are generated daily, the need for effective deepfake detection becomes increasingly critical. We aim to apply a basic CNN model to check if an image is real or fake. We examine how various loss functions, including binary cross-entropy, focal loss, and hinge loss, impact training and detection performance. The models were evaluated on a dataset of 190,335 images with a focus on accuracy and loss. Binary Cross-Entropy performs well on balanced datasets, Focal Loss shows superior performance in imbalanced datasets, and Hinge Loss provides robust margin-based classification. Our findings provide insights into the optimal loss functions for enhancing the performance of deepfake detection models. At 92.70% training accuracy and a 0.0118 training loss, the Focal Loss model emerged as the best, providing a solid foundation for future advancements in deepfake detection.

Authors

Institutions

Publication Details

Published
2025-04-17
DOI
https://doi.org/10.1109/icdsbs63635.2025.11031727
Primary Topic
Digital Media Forensic Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Exploring the Role of Loss Functions in Deepfake Detection

Ritu Rani, Arun Sharma, Anjali Sharma
Digital Media Forensic Detection
article

Exploring the Role of Loss Functions in Deepfake Detection

Ritu Rani, Arun Sharma, Anjali Sharma
article en

Abstract

With deepfakes becoming more common, it's increasingly difficult to separate real content from manipulated ones. As vast amounts of data are generated daily, the need for effective deepfake detection becomes increasingly critical. We aim to apply a basic CNN model to check if an image is real or fake. We examine how various loss functions, including binary cross-entropy, focal loss, and hinge loss, impact training and detection performance. The models were evaluated on a dataset of 190,335 images with a focus on accuracy and loss. Binary Cross-Entropy performs well on balanced datasets, Focal Loss shows superior performance in imbalanced datasets, and Hinge Loss provides robust margin-based classification. Our findings provide insights into the optimal loss functions for enhancing the performance of deepfake detection models. At 92.70% training accuracy and a 0.0118 training loss, the Focal Loss model emerged as the best, providing a solid foundation for future advancements in deepfake detection.

Indira Gandhi Delhi Technical University for Women (IN)
Climate action
Openalex Percentile: Top 88%
Digital Media Forensic Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Exploring the Role of Loss Functions in Deepfake Detection — Ritu Rani, Arun Sharma, et al. · (2025) | TGRS Research Map | TGRS