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
- Ritu Rani (ORCID: https://orcid.org/0000-0001-6219-8751)
- Arun Sharma (ORCID: https://orcid.org/0000-0002-2400-5485)
- Anjali Sharma
Institutions
- Indira Gandhi Delhi Technical University for Women (IN)
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