I.INTRODUCTION

Deepfake is a facial video forgery technique that continually evolves, using artificial intelligence to generate fake videos. Due to the deepfake model, it produces videos of people doing things that do not happen, making it hard to distinguish the real from the fake with the naked eye [1]. As a result, these deepfake models can be exploited for malicious purposes, including spreading false information and violating others’ privacy, leading to serious security and privacy issues [2]. Malicious actors create deepfakes based on false profiles to spread disinformation on social media. Therefore, it is vital to develop effective detection methods to prevent the misuse of deepfake techniques [3]. Deep learning (DL) approaches, namely convolutional neural networks (CNNs) and generative adversarial networks (GANs), are commonly used for both creating and detecting fake videos. Most existing deepfake detection models rely on temporal and spatial inconsistencies, such as unnatural blink patterns and misaligned facial movements for accurate detection [4].

Existing detection methods become less effective and face a major challenge: they lack generalization capability due to their evolving nature [5]. Most existing studies focus on detecting deepfake images or videos using DL techniques, which are categorized into CNN-based models and region CNN (RCNN)-based approaches. A CNN-based technique uses facial images from video frames to train and predict at the image level. In deepfake videos, these algorithms utilize only the spatial information from a single frame [6]. However, previous deepfake detection models only use spatial data, making it difficult to distinguish between real and fake face images leading to lower detection performance [7]. To address this issue, transfer learning models, namely the long short-term memory (LSTM) model and its variants, are most appropriate to address the temporal aspects of video data [8]. The key challenge in deepfake detection is that existing DL models struggle to differentiate between authentic and manipulated facial images while processing video frames. Despite advancements, these models often fail to detect subtle artifacts in high-quality deepfakes, leading to misclassification. Variations such as lighting, compression, and facial expressions further complicate detection and decrease accuracy. Additionally, models trained on specific datasets may not generalize well to new manipulation techniques, which limits their effectiveness in real-world applications.

Several methods are developed for deepfake detection using different types of datasets that involve conventional machine learning models and DL architectures. The advantages and limitations of the existing deepfake detection models are discussed as follows: Xiong et al. [8] introduced a bidirectional LSTM (Bi-LSTM) and multi-head self-attention network (BMNet) method for deepfake detection. Deep features were extracted from 68 facial landmarks effectively, and MHSA was enabled to capture detailed and localized features from different regions of the face. BiLSTM was used to model temporal dependencies, which effectively classified whether a video was real or forged. However, it struggled with traditional models for classification because of its limited sensitivity to temporal features. El-Gayar et al. [9] developed a detection model for deepfake videos based on graph neural network (GNN). The batch normalization technique was used to normalize the input by adjusting and speeding up training. Mini-batch GNN extracted structural features effectively, and a block CNN stream was used to extract visual features from the images. Fusion networks were enabled to combine the outputs from mini-GNN and CNN streams, and then dense layers were used for classification. However, some deepfake types, such as swapped faces, were presented less in the dataset, which introduced a class imbalance and made it difficult for the model to learn and detect those classes effectively.

Prathibha et al. [10] introduced a DL-based framework for deepfake video detection, which was based on a self-attention residual block. Deepfake detection involved a normalization technique that was used to adjust pixel values to prepare data for the model; self-attention residual module helped to extract detailed facial features by focusing on essential parts. Xception-Net was well suited for image-based tasks such as video frame classification, which adapted new synthetic data and improved generalization. However, storing and using videos or images of people caused privacy issues, which required a privacy preservation mechanism to protect sensitive data. Ramadhani et al. [11] introduced a video vision transformer (ViViT) method for deepfake detection. A Depth-wise Separable Convolution (DSC) block was integrated with Convolution Block Attention Module (CBAM) to capture detailed and localized features from different regions of the face for accurate deepfake detection. The introduced ViViT was used to model temporal dependencies, which essentially classified whether a video is real or forged. However, it struggled with traditional models for classification because of its limited sensitivity to temporal features. Boongasame et al. [12] developed a detection method named LSTM model with Visual Graph Geometry-16 (LSTM-VGG-16) for deepfake videos. The batch normalization technique was used to normalize the input by adjusting and speeding up training. The VGG-16 extracted structural features effectively, and the CNN stream was used to extract visual features from the images. After the feature was extracted from the VGG-16 model, the LSTM model was used for classification. However, class imbalance occurred due to some deepfake types, such as swapped faces, which were represented less in the dataset. This made the model learn more effectively and detect those less-represented classes accurately.

Rathore et al. [13] presented a multi-layer-based GAN model for deepfake video detection. To enhance deepfake detection, the presented model utilized a three-layer GAN to accurately categorize the input video into fake and real. An advantage of this introduced model was that multiple layers in the classification framework of GAN identified the fake images and enhanced generalizability. However, the model struggled to distinguish between real and fake images that led to manipulation of sensitive data. Agarwal and Haneef [14] presented a Convolutional GAN (Con-GAN) method for deepfake detection through eye-blinking feature processing. Initially, frames were preprocessed using the Sequential Adaptive Bilateral Wiener (SABiW) filtering for noise removal, while face detection was performed via a two-dimensional (2D) Haar discrete wavelet transform (DWT). A transfer learning approach was used to extract the features, namely a depth-wise separable residual network. However, the presented Con-GAN model struggled with conventional models for classification because of its limited sensitivity to temporal features. Gupta et al. [15] developed an improved transformer model along with a dual-order frequency attention module based on FreqFaceNet for deepfake detection. The developed FreqFaceNet model extracted the frequency-based features to ensure minimal interference of noise, which occurred due to image compression or low resolution. An advantage of the FreqFaceNet model was that it utilized two attention mechanisms, such as wavelet attention and Fourier attention, to improve deepfake detection. However, it struggled to differentiate between real and fake images in deepfake types, namely swapped faces.

Uddin et al. [16] suggested a ViT model framework for deepfake video detection. The suggested model involved a face tampering detection framework that integrated a multi-level DWT and a ViT to identify fake images. The ViT extracted multi-level frequency features using DWT and captured global inconsistencies across local face areas. However, storing and using videos or images of people caused privacy concerns, which required a privacy preservation mechanism to protect sensitive data. Ziyuan Cheng et al. [17] developed a detection model based on the Multi-Scale Interactive Dual Stream network (MSIDSnet) to detect deepfake in images. In the network, spatial and frequency streams were separated, and a multi-scale fusion module captured both global and fine-grained facial features. Subsequently, MSIDSnet was used to detect and manipulate images in the spatial domain and acquired fine-grained information about high-frequency noise. However, the developed MSIDSnet model struggled to differentiate between real and fake images because of certain deepfake types, such as swapped faces.

Existing detection methods often struggle with redundant data and limited sensitivity to long-term temporal dependencies. Recent DL-based detection models often show reduced effectiveness when identifying complex deepfake types due to gradient saturation. The GNN and CNN architectures failed to effectively integrate temporal dependencies, which limits their capacity to identify subtle motion inconsistencies, such as irregular blinking. This directly impacts accurate detection of fake content and impacts overall model accuracy. To address these limitations, a dual strategy-based Puma optimization algorithm (POA) with a stacked long short-term memory (DSPO-SLSTM) model by utilizing a dual-strategy optimization algorithm is proposed to filter redundant data and isolate highly discriminative features. The integration of a sech-activated stacked LSTM further mitigates gradient saturation, enabling the system to capture subtle temporal inconsistencies across video sequences. This combination ensures precise identification of complex manipulations while maintaining high detection accuracy across diverse datasets.

The key contributions of this research are as follows: Initially, the video data is preprocessed through frame-by-frame extraction and image sharpening, followed by face localization using a cascaded object detection model to enhance the deepfake detection model. The most relevant features are extracted from the transfer learning-based approaches, namely InceptionNet-V3 and EfficientNet-B0. The proposed DSPO algorithm utilizes a new mechanism for changing phase between exploration and exploitation with a dual strategy, namely heavy-tailed (HT) distribution walks and an adaptive parameter tuning to address the algorithm’s limitations for selecting the best set of features efficiently. For detection, an SLSTM with a sech activation function is used for capturing and learning the complex information that identifies the fake images precisely.

This research paper is structured as follows: Section II explains the methodology used for detecting real and fake images. Section III represents simulation experiments and discussion, and Section IV describes the conclusion of this research.

II.METHODOLOGY

The proposed deepfake detection framework consists of four main stages: data acquisition from benchmark datasets, preprocessing, feature extraction, the proposed feature selection method, and finally, the deepfake detection process. Figure 1 depicts a conceptual diagram of the proposed deepfake detection model. First, raw images are collected from three different benchmark datasets and preprocessed to transform the raw data into an enhanced version for further analysis. Next, two transfer learning-based models are utilized for extracting relevant features, which are then integrated to obtain the most important feature set. An optimization algorithm is then proposed to efficiently select the most suitable features based on their natural behavior. Finally, using the selected features, an improved DL model is developed to differentiate between real and fake images for accurate detection.

Fig. 1. Proposed deepfake detection framework using the DSPO-SLSTM model based on three different datasets.

A.DATASET ACQUISITION

To improve deepfake detection, three distinct datasets are used in this research: Forensic Face ++ (FF++), Celeb-DF, and Celeb-DF-V2.

FF++: This dataset [18] contains a collection of forgery videos, categorized into four distinct types: DeepFakes (DF), FaceSwap (FS), Face2Face (F2F), and NeuralTextures (NT). Each category includes 1,000 videos selected from YouTube. The collection features a total of 1,000 original videos alongside 4,000 manipulated videos. The frame sizes vary, with raw videos in 1080p resolution, medium compressed videos in 720p, and highly compressed videos in 480p. Figure 2 illustrates sample real and fake images of FF++ dataset.

Fig. 2. Real and fake sample images of FF++ dataset.

Celeb-DF: The Celeb-DF dataset [19] includes both genuine and deepfake-generated videos, all with visual quality comparable to those commonly found on the internet. This dataset contains video of 52 celebrities, considering factors such as age, ethnic group, and gender. It includes 5,639 deepfake videos and 590 original videos from YouTube. Figure 3 represents real and fake sample images from the Celeb-DF dataset.

Fig. 3. Real and fake sample images of Celeb-DF dataset.

Celeb-DF-V2: This dataset [19] consists of both real and deepfake videos, totaling 6,229 videos. Similar to the Celeb-DF dataset, the data here is categorized into 5,639 manipulated videos and 590 real videos of celebrities, all downloaded from YouTube. These video frames are then fed into the preprocessing phase for enhanced deepfake detection.

B.PREPROCESSING

After data acquisition, videos are transformed into image frames [20] to facilitate efficient identification of fake images. The images are then sharpened and resized to 224×224 using a resizing technique, and faces are cropped from the frames with the vision cascade object detection method. This helps localize facial features effectively, thereby improving the accuracy of deepfake detection.

C.FEATURE EXTRACTION

Following preprocessing, images are passed to the feature extraction phase to identify and select meaningful patterns and characteristics. The features extracted assist in distinguishing between real and manipulated (deepfake) images efficiently. In this research, transfer learning-based models such as InceptionNet-V3 and EfficientNet-B0 are used to extract deepfake features for detecting real and fake images. These models generate deep features from preprocessed images, aiding the detection model in differentiating between normal and deepfake images. The architecture and processes of both InceptionNet-V3 and EfficientNet-B0 models are described below: InceptionNet-V3 [21] is a transfer learning approach that combines convolutional layers, max pooling layers, and inception modules, which involve multiple parallel convolutional layers with varying filter sizes. Its architecture enables effective feature extraction at multiple spatial scales, enhancing the model’s ability to accurately detect fake images. The output is then passed through subsequent CNN layers, such as a Global Average Pooling (GAP) layer to reduce spatial dimensions, followed by a dropout layer and a batch_normalization layer.

The EfficientNet-B0 model [22] offers a balance among all dimensions, including width, depth, and resolution, using a set of fixed scaling coefficients that satisfy specific constraints. The EfficientNet model has different versions, with the simplest being EfficientNet-B0. Other EfficientNet configurations are derived from EfficientNet-B0 with different scaling values. The EfficientNet-B0 architecture includes 18 convolution layers, each utilizing either k = (3 × 3) or k = (5 × 5) kernels to extract deep features efficiently. After extracting features from the pretrained models, the feature concatenation technique is employed to combine multiple features into a single long vector by stacking them sequentially. Features are merged along a shared dimension, allowing the model to learn from all features collectively without losing their individual properties.

This feature extraction architecture employs a two-stage training strategy, utilizing frozen convolutional backbones from InceptionNet-V3 and EfficientNet-B0 to preserve general spatial features. Simultaneously, custom GAP and dense layers are fine-tuned on deepfake datasets to capture specific forgery patterns. Feature fusion occurs through the concatenation of vector outputs, as shown in Equation (1):

zfused=[Vinc⊕Veff]
where zfused denotes the high-dimensional fused feature vector that serves as input for subsequent feature selection and temporal modeling phases; Vinc indicates the feature vector extracted from InceptionNet-V3 with a dimensionality of 2,048, while Veff represents the feature vector extracted from EfficientNet-B0 with a dimensionality of 1,280, and ⊕ indicates the concatenation operator, which stacks the two individual vectors sequentially to form a single integrated vector with a combined dimensionality of 3,328. To facilitate temporal modeling, these features are extracted across a sequence of ST = 30 frames, forming an input tensor of shape (16, 30, 3,328) for the SLSTM. This high-dimensional representation provides the DSPO algorithm with a diverse pool of multi-scale features, ensuring a robust selection process during optimization. These features are then fed into the proposed feature selection model.

D.PROPOSED OPTIMIZATION-BASED FEATURE SELECTION

After feature extraction, the combined feature vector denoted as zfused features is forwarded to the proposed feature selection approach using an optimization algorithm to identify the most relevant features. In deepfake detection, the feature selection process is crucial because it helps the detection model focus on the most informative and discriminative features to accurately distinguish between real and fake images. However, standard feature selection techniques, such as filter-based and wrapper methods, often rely on greedy or local search strategies that yield suboptimal feature sets. Therefore, in recent years, optimization algorithms, namely genetic algorithm (GA), particle swarm optimization (PSO), and other swarm intelligence or metaheuristic algorithms, are widely used for feature selection due to their efficient search capabilities across the feature space. In this research, a POA [23], a recently developed metaheuristic algorithm, is used for selecting the most important features from the extracted set.

Most of the metaheuristic optimizers are inspired by natural behaviors to perform optimization by generating random solutions. Parameters are changed for exploration factors within each optimization algorithm. However, the proposed POA employs a new mechanism for switching between exploration and exploitation phases. Additionally, both phases utilize two distinct mechanisms to carry out optimization processes. In this algorithm, the most relevant feature, known as the best solution, is represented as the male puma within the entire search space, which is referred to as the puma’s territory. Other solutions, considered irrelevant features, are represented as female pumas. In this context, the best solution, the full search space, and other solutions are denoted as male puma, puma’s territory, and female puma, respectively. In POA, the phase change mechanism ensures that all solutions pass into either the exploitation or exploration phases during each iteration. The experience phase and the unexperienced phase are the main stages of this change mechanism, helping to balance exploration and exploitation in the POA algorithm [23]. Furthermore, the primary phases, such as initialization, exploration, and exploitation, are described below.

1).INITIALIZATION

The population of pumas in POA is initialized in the search space to find optimal parameters among the total population. This process is mathematically expressed in Equation (2):

Xi,j=lbD+r·(ub−lb)  where  D=1,2,…,m
where Xi,j represents candidate solutions and their positions, lb and Ub indicate lower and upper bounds, respectively, r stands for a random vector, D indicates the dimension index, and m represents the total dimensionality. Each puma represents a candidate solution, which is used to select the best set of features.

2).EXPLORATION PHASE

During the exploration stage, the best feature sets are selected by utilizing the puma’s foraging behavior to search for food. In this phase, pumas search randomly for food within their territory (search space) or move randomly toward other pumas to utilize their prey. First, the puma population is initialized and organized in ascending order. Then, the positions of the puma are updated during the exploration phase, as mathematically formulated in Equation (3):

F1 explore=PF1(Sv explore1ST)
where F1 represents the exploration force used to determine the search intensity of pumas during the exploration phase, SV denotes exploration speed or velocity, which indicates the step size of the first search vector, and ST is the total speed constant, respectively.

3).EXPLOITATION PHASE

In the exploitation stage, the POA employs two distinct operators to enhance solutions within the search space. To obtain an optimal set of features, two mechanisms are used in this phase, based on puma behaviors such as hunting with ambush and sprinting. Pumas typically hide in bushes, trees, or on rocks to surprise their prey, and this ambush strategy is reflected in the exploitation phase to select the best features. The mathematical expression of the exploitation phase is given in Equation (4), and the optimal fitness function is evaluated in the exploration and exploitation phases using Equations (5) to (8):

F2 exploit=PF2(Sv exploit1ST)
Ftexplore=PF1·Ciexplore−Ci+1exploreTtexplore
Ftexploit=PF2·Ciexploit−Ci+1exploitTtexploit
where
PF1=PF1_initial×(1−iterMaxiteration)
PF2=PF2_initial×(1−iterMaxiteration)
where F2 represents a secondary exploitation force used to refine the position toward the best solution, and Ftexplore and Ftexploit denote the total force generated at the current iteration t for exploration and exploitation phases, respectively. Sv exploit1 indicates initial exploitation velocity, ST represents the total territory constant, Ttexploit denotes the time step, and Ci specifies the current position of the ith puma. Ci+1 represents the subsequent position or target point used to calculate the directional vector of movement, PF1 and PF2 indicate primary factors for exploration and exploitation, respectively, which are dynamic weights controlling the influence of each phase at a given time. PF1_initial and PF2_initial denote the initial user-defined values, the current iteration is denoted by iter, and 1−iterMaxiteration specifies a liner decay function. This is a linear decay function that ensures that, as the algorithm proceeds, the forces (PF1 and PF2) gradually decrease. It allows the model to make large jumps early on (Exploration) and very small, precise adjustments toward the end (Exploitation). However, the proposed POA is promising but sensitive to parameter settings, with risks of premature convergence and high computational cost impacting the selection of the best feature set, thus reducing accuracy and degrading deepfake detection efficiency. Therefore, a dual strategy is employed in this research to address the optimization challenge and enhance deepfake detection. Techniques such as HT distribution walk and adaptive weight tuning are the dual strategies used to overcome the algorithm’s limitations and efficiently select the best feature set.

4).HT DISTRIBUTION WALK STRATEGY

To improve the search capability of puma in the search space for finding the optimal set of features during exploration, HT perturbation is integrated, as shown in Equation (9):

Ftexplore=PF1·Ciexplore−Ci+1exploreTtexplore+λ·HT·(α)
where Ftexplore represents the optimal exploration value; λ denotes an adaptive scaling parameter for the exploration step size; HT·(α)=η·x|y|1/α refers to the HT perturbation term, where α indicates the stability index; η denotes the amplitude controller that regulates the height of exploration jumps; x and y represent samples from a normal distribution; 1/α denotes the exponential power that determines the probability of making large jumps. A smaller α results in “heavier tails” and more frequent long-range jumps.

By including random jumps of varying sizes, the POA escapes the issue of getting stuck in local optima. This HT perturbation mechanism prevents the algorithm from converging too early on redundant feature subsets that seem optimal within a limited search area. Furthermore, this HT perturbation-based exploration strategy promotes a more diverse and informative selection of features. During initial iterations, by analyzing broader regions of the search space, the POA algorithm ensures a comprehensive evaluation of potential feature combinations before making the final decision. Additionally, this HT perturbation strategy effectively addresses limitations of POA such as premature convergence and enhances computational efficiency by selecting a more concise feature set, which allows for faster processing.

The POA algorithm avoids redundant feature subsets that only identify obvious artifacts, such as prominent pixel-level inconsistencies, by escaping local optima. Moreover, the HT perturbation mechanism enables a wide search to detect subtle “hidden” weak signals. This approach ensures a robust selection of critical deepfake indicators, including abnormal eye-blinking rates and inconsistent lip synchronization.

5).ADAPTIVE PARAMETER TUNING STRATEGY

Next, an adaptive weight updating strategy for parameter tuning is introduced in POA to enhance feature selection, as described in Equations (10–12):

Cit+1=Cit+atexploit·(Cbestt−Cit)
atexploit=2−2·E0·ωt·(tT)
ωt=r·[ωinit(ωinit−ωend)·(1e−1·(e(1T)−1))]
where Cit denotes current position ith puma, Cbestt represents best puma (best solution), E0 indicates a random value range between [−1,1], and r stands for a random weight adjustment factor. ωinit and ωend represent initial and final weight values, respectively, t indicates current iteration, and T denotes maximum iteration, respectively. In POA, the adaptive control parameter in Equation (11) regulates the puma’s movement toward the best solution during exploitation. Here, the initial value 2 enables stronger convergence in early stages, while the decreasing term ensures fine-tuned local search as iterations progress. The adaptive weight strategy in Equation (12) dynamically adjusts search pressure based on iteration feedback.

The proposed adaptive weight tuning strategy minimizes manual parameter calibration and reduces sensitivity to human bias. By dynamically balancing exploration and exploitation, it ensures the algorithm remains robust across diverse forgery types and changing environmental conditions. This approach effectively filters out unreliable signals, resulting in a more precise and efficient selection of high-quality deepfake indicators. These features are passed to the final detection phase using the SLSTM model.

E.DEEPFAKE DETECTION

The selected features are fed as input to the SLSTM model to learn facial information and detect fake images, improving deepfake detection. In this research, an LSTM model is used for identifying fake images, as it can efficiently capture sequential dependence and refined temporal patterns. Although the images are static, they are part of video frames, where the LSTM model [24] identifies hidden inconsistencies across the frames as well as within the frames. However, the neural network struggles to capture this information, which can affect accurate detection of fake images. Therefore, an improved LSTM is employed to distinguish real from fake images more efficiently. The LSTM is an enhanced recurrent neural network that uses memory blocks instead of neurons. Each memory block contains three gates: input, output, and forget gate as well as a memory cell to process the data from input to output. Figure 4 represents the architecture of the LSTM model. The memory cell in the LSTM helps remember long-term dependencies and detects minute temporal information efficiently.

Fig. 4. Architecture of the LSTM cell.

However, the conventional LSTM model effectively captures basic temporal relationships but overlooks deeper hierarchical patterns across different levels of abstraction. Additionally, traditional LSTM models tend to overfit and struggle to learn generalized features, which are essential for detecting unseen deepfakes in images. Therefore, this research proposes a stacked LSTM to improve deepfake detection performance, as presented in Fig. 5. By integrating two LSTM models, increasing the model’s depth allows it to learn complex information from selected features, enhancing generalization and making the detection more robust against unseen fake images. The proposed SLSTM extends the traditional LSTM model by stacking multiple hidden LSTM layers, each comprising several memory cells. These stacked LSTM hidden layers make the model deeper and more effective at distinguishing between real and fake images facilitating efficient deepfake detection. The three gates and memory cell in SLSTM are mathematically described in Equations (13–18):

it=σ(Wi*[ht−1,xt]+bi)
ot=σ(Wo*[ht−1,xt]+bo)
ft=σ(Wf*[ht−1,xt]+bf)
C^t=sech(Wc*[ht−1,xt]+bc)
Ct=ft*Ct−1+it*Ct
ht=ot×sech(Ct)
where it, ot, ft, and ct denote input, output, forget, and memory cell, respectively. W and b denote the weight and bias of the three gates and the memory cell, respectively, and ht represents the hidden state; and sech denotes the hyperbolic secant activation function.

Fig. 5. Proposed SLSTM architecture for deepfake detection.

The sech activation function provides a smooth and bounded output in [0, 1], which helps stabilize the update of a memory cell in the SLSTM model. Unlike conventional activation functions that can cause values to explode or vanish, sech prevents numerical instability and reduces the risk of gradient saturation. By offering a sharper, more focused peak than the sigmoid function, it delivers a more effective gradient that alleviates vanishing gradient problems. The sech function enhances the stability and learning capacity of deep (stacked) architectures by maintaining proper memory cell updates. This allows the SLSTM to effectively capture long-term temporal dependencies and subtle artifacts in deepfake videos that conventional models often fail to recognize. The mathematical representation of this sech activation is expressed in Equation (19):

f(x)=2ex+e−x
where ex and e−x denote exponential functions. Using sech in stacked LSTMs improves deepfake detection by mitigating the vanishing gradient issue common with sigmoid, enabling deeper layers to learn subtle temporal inconsistencies in manipulated videos. Its bounded, strictly positive nature prevents the exploding activations seen with rectified linear unit (ReLU), ensuring numerical stability during long-sequence processing, such as frame-by-frame analysis. This stability results in faster convergence and more accurate weight updates, directly enhancing the model’s ability to distinguish natural facial movements from synthetic artifacts in deepfake videos.

To ensure evaluation integrity and prevent data leakage, dataset partitioning takes place at the video source level rather than the frame level. This protocol ensures that frames from the same video or specific identities do not appear in both training and testing phases, providing a true measure of generalization to unseen faces. By using 80:10:10 split, the validation set facilitates early stopping to prevent overfitting, while the testing set remains entirely isolated until the final assessment. During preprocessing, face crops are resized to 224 × 224 pixels to preserve critical high-frequency textures, such as skin pores, while maintaining computational efficiency. Subsequently, 30 consecutive frames per segment are extracted and normalized to a [0, 1] range to provide a consistent temporal window for analysis. The SLSTM identifies irregular biometric rhythms, such as inconsistent lip synchronization or eye-blinking, which often remain undetectable in static images. By analyzing motion continuity, the architecture detects temporal discontinuities, including subtle flickering at facial boundaries resulting from the generative process. This focus on temporal sensitivity enables the model to distinguish synthetic artifacts from natural movements accurately.

III.RESULTS AND DISCUSSION

The experimental analysis of the DSPO-SLSTM-based detection model in deepfake detection utilizing three distinct datasets, namely FF++, Celeb-DF, and Celeb-DF-V2, is depicted in this section. The DSPO-SLSTM and comparison models are implemented using MATLAB 2020b on a system with 16 GB RAM, an i7 processor, and Windows 10 OS.

Experimental Setup:

Tables I and II show the parameter settings for the proposed DSPO-SLSTM models used in deepfake detection through video clips. These parameters for the DSPO algorithm and SLSTM network are determined through a systematic selection process instead of random assignment. Initial values for population size and learning rates are based on standard benchmarks for the POA and LSTM architectures to establish a reliable baseline. Hyperparameters such as learning rate and batch size are refined via grid search to ensure efficient convergence. Specifically, the learning rate of 0.001 maintains a balance between training speed and update accuracy, preventing instability in the loss curve. The batch size of 16 enables necessary randomness to help the model escape local optima in complex video data while maintaining stable gradient updates. Finally, dataset-specific adjustments include setting maximum iterations to T=50, providing sufficient time for the feature selection process to reach a steady state across the complex FF++, Celeb-DF, and Celeb-DF-V2 datasets.

Table I. Parameter settings of the proposed DSPO algorithm along with the conventional POA

ParametersValues
POAProposed DSPO algorithm
Maximum iteration100100
Lower bound0.000.00
Upper bound1.001.00
Search agent3030
PF10.500.50
PF20.500.50
PF30.300.30

Table II. Parameter settings of the proposed SLSTM method for three benchmark datasets

ParametersValues
FF++ datasetCeleb-DF datasetCeleb-DF-V2 dataset
Initial learning rate0.00150.0010.0004
Gradient decay factor0.60.750.8
Epochs505050
Batch size323232

To ensure a rigorous evaluation, the datasets FF++, Celeb-DF, and Celeb-DF-V2 are split using an 80:10:10 ratio for training, validation, and testing. The training set is used to optimize SLSTM weights and the DSPO feature selection, while the validation set helps tune hyperparameters and implement early stopping to prevent overfitting. To verify the statistical significance of the results, K-fold cross-validation is employed, rotating through multiple iterations for consistent performance across different subsets. Furthermore, the DSPO-SLSTM maintains a high area under the curve (AUC) by identifying general biological inconsistencies rather than dataset-specific artifacts. Standard performance metrics such as accuracy, precision, recall, and the Matthews correlation coefficient (MCC) are used for a comprehensive assessment of the model’s reliability, beyond just simple classification rates.

A.PERFORMANCE METRICS

Various performance measures are utilized in this research to assess the effectiveness of the DSPO-SLSTM method in deepfake detection. Evaluation metrics include precision, sensitivity, accuracy, F1-score, specificity, and MCC, respectively. The mathematical formulas for these metrics are given in Equations (20–25):

Accuracy=TP+TNTP+FP+FN+TN×100
Precision=TPTP+FP
Recall=TPTP+FN
F1−score=2×Precision×SensitivityPrecision+Sensitivity
Classification Error=(100−Accuracy)
MCC=TP×TN−FP×FN(TP+FP)(TP+FN)(TN+FP)(TN+FN)
where TP and TN denote true positive and true negative, respectively; FP and FN represent false positive and false negative, respectively.

B.PERFORMANCE ANALYSIS

A quantitative and qualitative evaluation of the DSPO-SLSTM deepfake detection model is conducted, comparing it with state-of-the-art methods utilizing FF++, Celeb-DF, and Celeb-DF-V2 datasets. This section presents the analysis of the proposed feature selection, detection model, and their performance. The performance of the proposed model including its feature extraction, selection, and detection components is evaluated with existing state-of-the-art approaches using various metrics.

1).PROPOSED FEATURE SELECTION

Figure 6 demonstrates the performance of the DSPO algorithm for deepfake detection using FF++ dataset. Figure 7 illustrates the feature selection performance of DSPO combined with different optimization algorithms for deepfake detection on the Celeb-DF dataset. Figure 8 presents the performance analysis of the DSPO-based feature selection model with various optimization algorithms on benchmark datasets including Celeb-DF-V2. Optimization algorithms such as Grey Wolf Optimization (GWO), GA, Cheetah Optimization Algorithm (COA), and conventional PO are used in comparison with the proposed DSPO algorithm.

Fig. 6. Evaluation results of the proposed DSPO algorithm with different optimization algorithms for feature selection using FF++ dataset.

Fig. 7. Performance evaluation of the proposed DSPO algorithm with different optimization algorithms for feature selection using Celeb-DF dataset.

Fig. 8. Performance analysis of different optimization algorithms with the proposed DSPO algorithm used for feature selection based on Celeb-DF-V2 dataset.

2).DETECTION MODEL

A quantitative and qualitative analysis of the DSPO-SLSTM detection model is carried out, comparing it with various DL methods for identifying deepfake images. Tables III–V display the performance evaluation of the SLSTM-based detection model using FF++, Celeb-DF, and Celeb-DF-V2 datasets. DL methods such as CNN, traditional LSTM, and Bi-LSTM are evaluated, both with and without feature selection.

Table III. Performance evaluation of the SLSTM model based on feature selection using FF++ dataset

MethodsFeature selectionAccuracy (%)Recall (%)MCC (%)Precision (%)F1-score (%)
CNNNo94.07694.10990.70596.10995.098
LSTM92.90995.29892.10992.193.671
Bi-LSTM95.9193.03592.10695.06694.039
SLSTM98.99194.40196.49799.21199.306
Proposed DSPO-CNNYes94.62564.65891.25496.65895.647
Proposed DSPO-LSTM93.45895.84792.65892.64894.220
Proposed DSPO-Bi-LSTM96.45893.58492.65495.61494.588
Proposed DSPO-SLSTM99.5499.9597.04599.7699.854

Table IV. Performance evaluation of SLSTM model based on feature selection using Celeb-DF dataset

MethodsFeature selectionAccuracy (%)Recall (%)MCC (%)Precision (%)F1-score (%)
CNNNo95.19193.3992.88894.88894.133
LSTM91.88893.08991.79695.43494.247
Bi-LSTM95.55897.88595.85596.91697.398
SLSTM99.18499.71497.97899.29499.503
Proposed DSPO-CNNYes95.45793.65593.15495.15494.399
Proposed DSPO-LSTM92.15493.65892.3649694.814
Proposed DSPO-Bi-LSTM96.12498.15496.12497.48597.818
Proposed DSPO-SLSTM99.7599.9898.546799.8699.92

Table V. Performance evaluation of SLSTM model based on feature selection using Celeb-DF-V2 dataset

MethodsFeature selectionAccuracy (%)Recall (%)MCC (%)Precision (%)F1-score (%)
CNNNo91.75592.58990.77090.73491.652
LSTM93.18893.77992.30293.36693.572
Bi-LSTM95.75596.01993.74094.73495.372
SLSTM98.27498.07194.75595.21196.620
Proposed DSPO-CNNYes93.02193.45792.03692.00092.723
Proposed DSPO-LSTM94.05695.04493.56894.63294.838
Proposed DSPO-Bi-LSTM97.02196.88795.00596.7496.441
Proposed DSPO-SLSTM99.5498.9496.02196.4897.694

A comparative performance analysis of the sech activation functions and existing activation functions using the SLSTM architecture is shown in Table VI. The results indicate that the proposed SLSTM with sech function enhances deepfake detection by providing a focused gradient that mitigates the vanishing gradient problem. This allows the model to better capture subtle temporal inconsistencies across video sequences. The bell-shaped curve acts as a soft-thresholding filter, emphasizing high-quality biometric signals and reducing noise from compression or lighting conditions. Additionally, its smooth, symmetric activation ensures numerical stability in stacked architectures, leading to more accurate detection of synthetic artifacts.

Table VI. Performance evaluation of sech activation function in SLSTM model with existing activation functions

ConfigurationsDatasetAccuracy (%)Recall (%)MCC (%)Precision (%)F1-score (%)
SLSTM-sigmoidFF++97.4297.5594.8597.3097.42
SLSTM-ReLU98.1598.3095.9098.0598.17
SLSTM-Tanh98.6498.5096.2298.7098.60
SLSTM-Leaky ReLU98.9299.1096.7598.8598.97
SLSTM-sech99.5499.9597.04599.7699.854
SLSTM-sigmoidCeleb-DF97.8098.0595.6097.6597.85
SLSTM-ReLU98.3598.5096.7098.2298.36
SLSTM-Tanh98.9099.1297.4598.8098.96
SLSTM-Leaky ReLU99.2599.4098.1099.2099.30
SLSTM-sech99.7599.9898.546799.8699.92
SLSTM-sigmoidCeleb-DF-V296.1095.8592.2094.1594.99
SLSTM-ReLU97.5596.9093.8095.0595.97
SLSTM-Tanh98.2097.7594.5595.8096.77
SLSTM-Leaky ReLU98.9598.4095.4096.2097.29
SLSTM-sech99.5498.9496.02196.4897.694

The statistical reliability of the DSPO-SLSTM model is evaluated using the measures presented in Table VII. A Wilcoxon signed-rank test is conducted to compare the proposed architecture against the baseline, yielding a p-value of less than 0.05. This result confirms that the observed performance improvements stem from the model design rather than random variation. Moreover, a minimal standard deviation of ±0.04, along with narrow 95% confidence intervals across all datasets, demonstrates consistent performance. These statistical findings provide objective evidence that the accuracy gains are significant, validating the effectiveness of the dual-strategy optimization and sech-activated temporal modeling.

Table VII. Statistical stability and significance analysis of the DSPO-SLSTM model in deepfake detection

DatasetMetricMean value (%)Std. deviation (±%)95% confidence interval (CI)p-Value (vs. baseline)
FF++Accuracy99.54±0.04[99.42, 99.66]0.014
Celeb-DF99.75±0.05[99.63, 99.87]0.013
Celeb-DF V299.54±0.06[99.38, 99.70]0.012

3).GRAPHICAL REPRESENTATION

The graphical representation involves visual tools used to present and explain the data and comparison between models. This visual representation makes complex results easier to understand, highlighting patterns and allowing visual model comparison. In this research, the AUC curve, standard deviation, and confusion matrix are used to illustrate the performance of the proposed DSPO-SLSTM model for deepfake detection. Figure 9 (a) confusion matrix, (b) ROC, and (c) standard deviation show the performance of the proposed deepfake detection model using the FF+ dataset. Figure 10 (a) confusion matrix, (b) ROC, and (c) standard deviation display the performance of the DSPO-LSTM model on the Celeb-DF dataset. Figure 11 (a) confusion matrix, (b) ROC, and (c) standard deviation depict the performance of the DSPO-LSTM model on the Celeb-DF-V2 dataset.

Fig. 9. Graphical representation of proposed DSPO-SLSTM model in terms of the (a) confusion matrix, (b) AUC curve, and (c) standard deviation for deepfake detection.

Fig. 10. Graphical representation of the proposed DSPO-SLSTM model in terms of (a) confusion matrix, (b) AUC curve, and (c) standard deviation for deepfake detection.

Fig. 11. Graphical representation of the proposed DSPO-SLSTM model in terms of (a) confusion matrix, (b) AUC curve, and (c) standard deviation for deepfake detection.

In Fig. 9 (a), the confusion matrix shows that the DSPO-SLSTM model correctly identifies 397 TN, 398 TP, and only five misclassifications (two FN and three FP). This graphical data indicates that the proposed method can accurately distinguish between real and fake images, demonstrating the model’s strong discriminative ability. Figure 9 (b) clearly shows that both real and fake classes achieve an AUC of 1.00, indicating that the model is highly effective at distinguishing between classes across all thresholds, with zero overlap between class distributions.

  • •For Celeb-DF-dataset:

From Fig. 10 (a–c), showing the confusion matrix, ROC curve, and standard deviation, the figure demonstrates exceptional deepfake detection performance of the DSPO-SLSTM model on the Celeb-DF dataset. The near-perfect confusion matrix, with only one misclassification per class, and high AUC scores confirm excellent class separability. The consistently high values across accuracy, precision, recall, F1-score, and MCC along with minimal standard deviation reflect the model’s robustness. These results highlight how DSPO optimizes critical features and SLSTM’s strength in capturing temporal dependencies.

  • •For Celeb-DF-V2 dataset:

Similarly, Fig. 11 (a–c) illustrate the confusion matrix, ROC curve, and standard deviation for the DSPO-SLSTM model testing on the Celeb-DF-V2 dataset, showing outstanding performance. The confusion matrix with only one misclassification per class and AUC scores of 0.999, 0.998, and 1.000 indicate near-perfect class separation. The evaluation metrics such as accuracy, precision, recall, F1-score, and MCC also achieve improved results with low standard deviations, demonstrating the model’s stability. These findings confirm the effectiveness of the DSPO in extracting optimized temporal features and classifying deepfakes reliably.

C.CROSS-VALIDATION WITH K-FOLDS

Table VIII illustrates the k-fold cross-validation results for the proposed DSPO-SLSTM model across three benchmark datasets. The optimal performance at k = 5 reflects the best balance between training data size and model stability. At lower k values such as 2 and 3, the smaller training sets limit the model’s ability to learn complex temporal dependencies and biometric irregularities typical of deepfakes, leading to higher bias. The transition to k = 5 provides sufficient data for the DSPO algorithm to learn generalized features rather than dataset-specific artifacts, yielding a significant performance boost. At k = 7, performance declines because the model reaches its maximum informational capacity, and the smaller validation sets introduce higher variance without providing additional insights for deepfake detection.

Table VIII. Performance of the DSPO-SLSTM across varying K-fold cross-validation configurations

k-foldsAccuracy (%)Recall (%)MCC (%)Precision (%)F1-score (%)
FF++ dataset
k = 297.8598.1295.2097.9098.01
k = 398.6098.8596.1598.7298.78
k = 599.5499.9597.04599.7699.854
k = 799.1599.4096.8099.2599.32
Celeb-DF dataset
k = 298.1098.3596.0598.2098.27
k = 398.9599.1097.4099.0599.07
k = 599.7599.9898.546799.8699.92
k = 799.4099.6598.1599.5099.57
Celeb-DF-V2 dataset
k = 297.2096.5093.8594.1095.28
k = 398.4597.8094.9095.3596.56
k = 599.5498.9496.02196.4897.694
k = 799.0598.5595.6596.1097.31

Ablation Study:

Table IX represents the ablation study results of the DSPO-SLSTM deepfake detection approach across three publicly available datasets. The baseline model utilizing single-stream feature extraction demonstrates that individual CNN architectures lack the diversity needed to capture all types of forgeries in deepfake detection. In contrast, integrating InceptionNet-V3 and EfficientNet-B0 offers multi-scale spatial features that greatly enhance detection accuracy over the baseline. The absence of the DSPO feature selection results in lower accuracy due to processing redundant and irrelevant spatial data, indicating that without an optimization mechanism, the inclusion of non-discriminative features introduces noise, impairing the system’s ability to spot critical deepfake indicators. Omitting the stacked LSTM causes a significant decline in performance, highlighting its crucial role in detecting temporal inconsistencies and motion artifacts that static CNNs fail to identify. Replacing the sech activation function with traditional layer Tanh leads to lower MCC scores. This demonstrates that the sech activation function helps prevent gradient saturation and ensures numerical stability during training of deep architectures. Additionally, the sech activation function improves deepfake detection by enabling the SLSTM to better capture long-term temporal inconsistencies such as irregular eye-blinking and lip synchronization.

Table IX. Ablation study of the DSPO-SLSTM architecture evaluating the impact of individual components on detection accuracy

VariantComponents removedDeepfake datasets
FF++ (%)Celeb-DF (%)Celeb-DF-V2 (%)
BaselineNo feature extraction, No DSPO, No SLSTM (static CNN only) (single CNN only)92.1591.4090.12
w/o InceptionNet-V3 and EfficientNet-B0No combined feature extraction (single stream only)94.3093.8592.45
w/o DSPOAll extracted features used (no optimization)96.8596.4095.10
w/o SLSTMSingle frame analysis (no temporal modeling)95.1594.8093.90
w/o sech activation functionReplaced sech with the traditional activation function Tanh98.6498.9098.20
ProposedFull DSPO-SLSTM (with combined feature extraction and sech activation function)99.5499.7599.54

D.SENSITIVITY ANALYSIS

To assess the stability and robustness of the proposed architecture, a sensitivity analysis is performed on three main variables: population size (N), the scaling parameter (α), and the learning rate. For the DSPO algorithm, increasing the population size from 10 to 50 improves feature diversity; however, accuracy gains become marginal beyond N=30, while computational costs increase linearly. This indicates that the algorithm is resilient to changes in population size. Regarding the scaling parameter (α) in the HT walk, values between 1.2 and 1.8 offer optimal convergence speeds. Extreme values cause erratic behavior or local optima, but the adaptive tuning strategy effectively manages these fluctuations to maintain consistent final accuracy.

For the SLSTM network, a learning rate of 0.001 achieves an ideal balance between training speed and gradient stability. Rates exceeding 0.01 lead to instability in the sech activation gradients, while rates below 0.0001 cause premature performance. Across diverse datasets, the proposed model remains highly robust at the 0.001 level, consistently achieving an MCC above 0.98. Overall, this analysis confirms that the DSPO-SLSTM model is highly stable. The adaptive parameter tuning acts as a self-correcting mechanism, allowing the system to adjust dynamically during the iteration process to maintain peak performance despite varying initial conditions.

1).COMPARATIVE STUDY

Comparative analysis of the proposed deepfake detection model is compared with the existing research methods using the FF++, Celeb-DF, and Celeb-DF-V2 benchmark datasets. Table X presents a comparative study of the DSPO-SLSTM model against previous deepfake detection algorithms on these datasets. The approaches in [16–19,21–25] are used for comparison with the DSPO-SLSTM model. To ensure fair and consistent evaluation, performance metrics are standardized across all comparative analyses. The accuracy values from previous studies, originally reported as decimals, are converted to percentages, while AUC remains in decimal format. This uniform scaling allows for a clearer comparison of the proposed DSPO-SLSTM with existing benchmarks.

Table X. Comparative evaluation of the DSPO-SLSTM model for deepfake detection using three benchmark datasets with various detection methods

Detection methodsDatasetsAccuracy (%)AUC
BMNet [16]FF++95.5498.60%
Celeb-DF80.2075.72
Multi-fusion between GNN and CNN [17]FF++95.09N/A
Celeb-DF98.90.98
DSC-CBAM-ViViT [18]FF++90.27N/A
Celeb-DF-V287.17N/A
LSTM-VGG-16 [19]Celeb-DF97.01N/A
GAN [21]FF++94.8999.90
Celeb-DF-V292.3495.40
Con-GAN [22]FF++98.9198.92
Celeb-DF-V298.89N/A
FreqFaceNet [23]FF++0.9390.981
Celeb-DF0.9830.998
DWT-ViT [24]FF++98.860.9995
Celeb-DF99.720.9996
MSIDNet [25]FF++95.5195.34
Celeb-DF-V299.3099.11
Proposed DSPO-SLSTM methodFF++99.5499.899
Celeb-DF99.7599.96
Celeb-DF-V299.5499.26

The DSPO-SLSTM method achieved better performance than all existing CNN, GAN, and ViT-based approaches in accuracy and AUC across all benchmark datasets. This improvement results from integrating multi-scale spatial feature fusion with the DSPO optimization algorithm, which isolates the most discriminative features while filtering redundant data. The sech-activated SLSTM captures long-term temporal inconsistencies more effectively than traditional sequential models, ensuring robust detection across both compressed and high-quality deepfake videos.

IV.CONCLUSION

This research proposed the DSPO-SLSTM architecture to improve deepfake detection by addressing feature redundancy. By integrating multi-scale spatial features from InceptionNet-V3 and EfficientNet-B0, the model established a diverse set of foundational features. The proposed DSPO algorithm balanced exploration and exploitation through an HT distribution walk and adaptive parameter tuning to select highly discriminative features. These optimized features were processed by an SLSTM utilizing a sech activation function to capture complex temporal inconsistencies. By mitigating gradient saturation, this configuration allowed the model to learn subtle, long-term motion anomalies across video sequences, ensuring high precision in distinguishing authentic frames from manipulated content. Ablation results confirmed that each component was vital, as removing the DSPO algorithm, SLSTM, and sech activation significantly impacted detection accuracy and robustness. Additionally, the comparative analysis demonstrated that the proposed method attained better performance than state-of-the-art approaches, including BMNet and DWT-ViT, by identifying subtle artifacts such as facial flickering and irregular motion transitions. Experimental results of DSPO-SLSTM showed that the model achieved high detection accuracy across three benchmark datasets such as FF++, Celeb-DF, and Celeb-DF-V2.

Future Work: This research mainly focuses on visual, spatial and temporal artifacts, which excludes the analysis of textual and audio-based forgeries. Furthermore, the computational demands of the dual-stream feature extraction pose challenges for deployment on resource-constrained devices. To address these constraints, future work will explore transformer-based architectures to enhance detection capabilities across both visual and textual data. This expansion will enable a more comprehensive approach for identifying complex synthetic media by integrating multimodal analysis.