Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Enhancing face recognition privacy through the integration of differential privacy and convolutional neural network

  • Muhammad Minoar Hossain ,

    Roles Conceptualization, Formal analysis, Methodology, Writing – original draft

    minoarhossain16005@gmail.com

    Affiliations Department of Computer Science and Engineering, Mawlana Bhashani Science and Technology University, Santosh, Tangail, Bangladesh, Department of Computer Science and Engineering, Bangladesh University, Dhaka, Bangladesh

  • Mohammad Motiur Rahman

    Roles Investigation, Resources, Supervision, Validation, Visualization, Writing – review & editing

    Affiliation Department of Computer Science and Engineering, Mawlana Bhashani Science and Technology University, Santosh, Tangail, Bangladesh

Abstract

Protecting facial recognition privacy is crucial amid deep fake threats, biometric risks, and third-party database access concerns. Despite many recent face recognition methods achieving high accuracy, most existing works either ignore privacy protection or apply privacy mechanisms without designing CNN structures that effectively learn from heavily perturbed facial data. This research introduces a secure face recognition system based on Differential Privacy (DP), employing a Convolutional Neural Network (CNN) and face classifiers. In this study, we develop a CNN through the incorporation of multiple batch normalization layers. This CNN is capable of recognizing the randomized image of the DP technique. To ensure privacy, the face database undergoes perturbation using DP techniques before releasing to any unauthorized access. The CNN model learns from these perturbed images, extracting features that are subsequently used by a predictor to classify the face. The CNN model learns from these images and then this trained CNN extracts features from an image that needs to be recognized. Ultimately, a predictor classifies this face. We evaluate three DP techniques namely Laplacian, Gaussian, and DP-blur using four predictors to evaluate the privacy-preserving capabilities of the proposed method. Each DP technique is evaluated by varying privacy parameters from 0.5 to 8 with an interval of 0.5. This research employs two datasets, namely LFW and IC. The DP blur with Logistic regression predictors provides the highest privacy, achieving excellent accuracy rates of 97% and 77% for these datasets. This outcome surpasses all baseline methods. The research offers an in-depth analysis of various DP techniques to construct a secure face recognition system. The method will aid in the automatic recognition of faces while ensuring privacy.

1 Introduction

Analyzing the facial traits of any person to identify or confirm their identity is known as facial recognition. With the help of face recognition technology, a human face in a digital image or video frame may be matched to a database of faces [1]. This technology has a variety of applications impacting our regular life. These include digital voting, home automation, biometric authentication (e.g., unlocking computers, smartphones, or tablets), surveillance systems, digital classroom monitoring, secure financial transactions, social media activities (e.g., photo tagging and organizing), official attendance systems, and so on [2]. Because facial images are a clear representation of a person’s identity, the advancement of deepfake technology [3] is a great threat to facial images nowadays besides there are others privacy concerns due to the possibility that these images may be linked to other sensitive information, including financial, medical, personal records, and so on. Face recognition technology always requires matching facial features with face databases, which requires intricate computer operations on massive volumes of biometric data inputs. High-performance third-party servers are frequently used to accomplish this, which poses a risk. If unauthorized parties gain access to these systems, there is a serious risk to personal privacy. In addition, the growing use of facial recognition in a variety of fields from consumer apps to law enforcement highlights how urgent it is to address these privacy issues. A secure facial recognition system reduces the possibility of misuse and illegal access in addition to protecting private information [4]. To create a future where facial recognition technology may coexist peacefully with the guarantee of personal security and secrecy, it is crucial to strike a balance between technological advancement and privacy protection. Thus, this research aims to use Differential privacy (DP) to create privacy-focused systems that let people take advantage of facial recognition technology without risking their personal data.

DP is a tactic designed to preserve personal privacy when they share information about a group. The approach comprises identifying broad trends within the group while withholding specific information about individual members. This strategy can be utilized to hide the actual information of each image on a dataset while still offering the guarantee to capture the pattern of individual images. DP ensures that when any personal data is used to train or improve image recognition models, the impact of their particular information on the overall dataset is indistinguishable. This means that any specific image or set of images in the dataset does not unduly influence the outcome, thereby protecting the privacy of the individuals depicted. It introduces a layer of randomness to the data and makes it statistically tough to recognize specific contributions from any one individual [5]. Deep learning (DL) is a widely utilized technique that can able to identify the pattern of images from the dataset turned to private using DP [6]. Convolutional neural network (CNN) is the top priority as the DL approach to recognize image face [7]. These observations motivate this research to enhance the privacy of existing face recognition processes by the integration of DP with CNN. Most existing privacy-preserving face recognition studies focus mainly on applying a single DP mechanism or traditional classifiers, while limited attention is given to designing CNN architectures that remain stable under different levels of randomized facial perturbation. This creates a practical gap where privacy is ensured, but recognition accuracy often declines sharply.

This research uses two datasets, each containing the face images of different people. The first dataset, LFW, is collected from an external public repository, while the second dataset (IC) is internally prepared by collecting face images from multiple verified image sources. (The details of the datasets are provided in the Materials and Methods section). For every dataset, a selection of images, eighty percent of the total, are subjected to privacy protection via the use of DP approaches. By injecting randomness and designating this private fraction as the dataset made available to any untrusted server, the suggested methodology effectively renders these images almost undetectable. After that, each private dataset is used to independently train a modified CNN model, which allows the machine to learn from these arbitrarily altered images. Next, the trained CNN model is saved so that it can be utilized as a feature extractor. Finally, this trained CNN model is applied to any regular image, and a classifier uses the generated characteristics from the model to identify faces. This work thoroughly analyzes multiple DP strategies for image alteration along with different privacy budgets and classifiers to improve face recognition privacy. The novelty of this work lies in jointly designing a lightweight CNN architecture with repeated batch normalization layers specifically for noisy private face images, evaluating three DP mechanisms under multiple privacy budgets, and integrating multiple classifiers under cross-validation within one unified privacy-preserving recognition framework. The points below summarize the significant contributions of this research at a glance:

  • Analysis of the performance of different DP techniques with variations of privacy budget for privacy preserving face recognition.
  • Constructing a CNN architecture to learn from randomized images for recognizing faces with privacy.
  • Performance analysis of different classifiers for recognizing faces using different DP techniques.

The next part of this paper discusses the existing methods relevant to this research. After that, the paper outlines the materials and methodology used in the study, followed by a presentation of the key findings. The final part offers concluding remarks and summarizes the overall contributions of the research.

2 Related works

Several existing works were analyzed to get the proper research gap and direction before developing the research. This section presents this research in detail. Chamikara et al. [8] developed a DP-based method for face recognition named PEEP. This method perturbed the face image by integrating the Laplacian DP technique with the eigenface of Principal component analysis (PCA) and thus ensured privacy. The Multilayer perceptron (MLP) classifier was utilized to recognize faces from perturbed images. This method attained a maximum accuracy of 90% for the specified privacy budget. The lack of cross-validation to assess the outcome was a fundamental limitation of this work. Kumar et al. [9] devised two techniques for face recognition where the initial approach involved integrating a CNN with the KNN classifier, and the second technique employed the Siamese network. This method lacked any privacy preservation mechanisms and did not incorporate cross-validation to assess the effectiveness of the results. Veerashetty and Patil [10] designed a face recognition method that involved extracting features from face images using two handcrafted techniques. These features were then optimized using the grasshopper optimization technique. Finally, a CNN model recognized the face from the features. This method offered an improvement of 1.78–8.90% accuracy over the existing methods. Lu et al. [11] developed a CNN-based face identification method by utilizing an augmented dataset. The results of this method showed outstanding performance with 99.5% accuracy, surpassing other traditional methods. Kumaar et al. [12] proposed a model to detect disguised faces by merging the CNN as a feature extractor with neural networks. The method effectively recognized disguised faces from the angles and ratios of several facial key points. Although the methods [912] competently recognize faces over the existing methods they did not provide any privacy preservation guarantee. Senekane [13] presented an image classification method that utilized the SVM algorithm with Differential Privacy (DP). The Laplacian mechanism ensured DP in this work. The method was applied to recognize numbers within images by employing various privacy budgets and SVM kernels. Shen et al. [14] proposed a DP-based image recognition model called RRN. The model consisted of an input layer, a perturbed layer, and several hidden layers. Privacy in RRN was ensured by the Laplacian mechanism implemented in the perturbed layer. RRN outperformed several standard methods based on the comparison results on different well-known datasets. Remerscheid et al. [15] modified a CNN architecture with DP and generated a model named SmoothNets to classify the image. This method utilized stochastic gradient descent based on DP to ensure sample randomization. The best outcome of this method was an accuracy of 73.5% with a privacy budget of 7. Despite ensuring privacy, the methods [1315] did not employ any cross-validation to evaluate results, and the privacy setup experimented with a particular technique only. Table 1 summarizes the existing works discussed till now based on their contributions and limitations.

thumbnail
Table 1. Comparison of related face recognition studies and key limitations.

https://doi.org/10.1371/journal.pone.0353565.t001

After reviewing earlier works and considering their limitations, this research aims to develop a DP-based face recognition system with CNN. That can also incorporate a comprehensive performance analysis of all potential DP techniques under different privacy budgets along multi-fold cross-validation.

3 Materials and Methods

Fig 1 provides a concise overview of the operational process of the proposed methodology. The principal objective of this procedural framework is to cultivate a facial privacy preservation recognition system employing DP. Definition 1 describes the DP with related parameters and subsequent subsections expound upon the contents of Fig 1 thoroughly.

thumbnail
Fig 1. Visualization of the working method of this research.

https://doi.org/10.1371/journal.pone.0353565.g001

Definition 1. A randomized procedure A fulfills ε-differential privacy for possible datasets and S and for possible outcomes O of the procedure if,

(1)

Here, P(.) is the probability response. The parameter ε is called the privacy budget and it controls privacy protection. Smaller values of ε present stronger privacy guarantees [16].

3.1 Dataset

This research utilizes two face image datasets to evaluate the proposed method under different data conditions. The first dataset is the Labeled Faces in the Wild (LFW) dataset [17], which is a widely used public benchmark for face recognition. It contains 13,233 images of various individuals collected from the web. To maintain class balance and ensure reliable learning, we impose a constraint by selecting individuals with at least 100 images. After applying this condition, the dataset is reduced to 1,140 images distributed across five classes, as presented in Table 2. The second dataset, referred to as the Indian Celebrities (IC) dataset [18], is prepared for this study by collecting face images of three publicly known Indian celebrities from multiple openly accessible online sources. This dataset contains a total of 215 images, where each class includes fewer than 100 samples. Sample images from this dataset are presented in Table 2. By using both the LFW dataset (with relatively larger samples) and the IC dataset (with smaller samples), the study evaluates the robustness of the proposed model under different data availability scenarios.

thumbnail
Table 2. Overview of the datasets of this research.

https://doi.org/10.1371/journal.pone.0353565.t002

The LFW dataset was obtained from its official public repository provided by the University of Massachusetts Amherst and was used in accordance with its terms of use and licensing conditions. The dataset consists of publicly available images intended for research purposes, and no additional permissions were required for its use in this work. For the IC dataset, all images were collected from publicly accessible sources and were used strictly for academic and research purposes. The dataset was prepared by the authors and is available through a public repository. No private or sensitive personal data were involved in the collection process. The data collection and usage complied with the respective terms and conditions of the source platforms.

This study does not involve direct interaction with human subjects, and all datasets used are either publicly available or collected from public sources in compliance with applicable data usage policies.

3.2 Preprocessed face

To extract face region The Haar Cascade (HC) technique is employed for each image initially. HC rapidly detects features resembling faces in the image using a cascade of simple classifiers. This technique effectively removes unwanted background data from the image and is efficient due to its speed. Each detected face image then undergoes conversion to grayscale, transforming pixel values into the 0–255 range in a single channel. Grayscale image is chosen owing to ease of processing and lower computational requirements compared to color images [19]. Ultimately normalization is applied to each gray image. This adjusts pixel values to the range of 0–1, ensuring the sensitivity value of DP to 1. Definition 2 provides detailed information on sensitivity.

Definition 2. For a function , where and are the set of possible datasets, the sensitivity is defined as the maximum amount by which can change when a single data point is added or removed,

(2)

Here, represents the norm of a vector. If uses the Manhattan norm, it corresponds to sensitivity. If the Euclidean norm is used, it corresponds to sensitivity [20]. Since normalization bounded the pixel vectors by 0 and 1, the maximum distinction between the two indices =1.

3.3 DP data

After the preprocessing, this research privatizes the face images using DP. Three techniques namely Laplacian, Gaussian, and DP-blur are experimented with to make the images private. Each of these techniques randomized the images with their mechanism. The perturbation of images is done by randomizing each pixel using any certain DP technique. Each of these DP techniques is described in detail below-

(i) Laplacian Method: The idea of the Laplacian mechanism is to add Laplace-distributed noise to the output of a function. This distributed noise is defined by function L(b) as,

(3)

Here, , and b are location and scale parameters respectively. The ultimate output from the Laplacian mechanism using ε-privacy budget and is [21],

(4)

(ii) Gaussian Method: This technique adds noise from the Gaussian distribution G(σ) defined by equation 5, where, σ is the standard deviation, and the final perturbation in is received by with equation 6,

(5)(6)

In Gaussian DP, the sensitivity ,and this method offers (ε, δ)-DP rather than ε-DP [22]. Definition 3 explains the concept of (ε, δ)-DP in detail.

Definition 3. The procedure A satisfies (ε, δ)-DP if, for any pair of neighboring datasets and S that differ in only one individual’s data, and for any set of possible outputs O,

(7)

Here, P(.) and ε are similar to ε-DP. The parameter δ (δ<<1 and δ > 0) is a non-negative real number, and it represents an additional, more relaxed bound on the probability of any event not covered by the main privacy guarantee. A smaller δ means a tighter bound on the overall privacy protection [23].

(iii) DP-Blur Method: This method does perturbation in the input image using the Laplacian mechanism. The perturbed image is then smoothed by applying Gaussian blur. So, the ultimate private image in DP-blur is,

(8)

Here, Gk is the convolution operation using the Gaussian kernel of K × K size and the sensitivity . DP-Blur ensures ε-DP [24]. Table 3 presents the various parameters of different DP techniques that are utilized to perturb face images.

3.4 Release to untrusted servers

Applying DP transforms face images into randomized images. These face image datasets can be safely released in any server where face-matching data are preserved. If any untrusted users attempt to access these data, they will receive perturbed samples. Since randomization occurs pixel-wise, it is also challenging to reconstruct the faces from the images. Therefore, the outcomes of DP are safe to release on any server, ensuring the privacy of face images. Releasing such perturbed face images to ensure privacy has great effectiveness ranging from national public server databases to bank client databases.

3.5 CNN model

In this research, we construct a modified CNN tailored to adapt to the randomized input of DP, as outlined in Table 4. The input image size for this CNN is 128 × 128. The architecture comprises seven Two-dimensional convolutional blocks (Conv2D) with a 3 × 3 kernel size. Each Conv2D block is followed by a Batch normalization (BatchNormalization or simply BN) block. A BN block is also placed before the last Dense layer of the network. These additional BN blocks help in learning from noisy data through its normalization and regularization effects. BN normalizes the activations of each layer by subtracting the mean and dividing by the standard deviation, and then scaling and shifting the result with learnable parameters and with a small constant c for numerical stability to avoid division by zero,

(9)

This helps to keep the activations within a reasonable range, preventing them from becoming too large or too small. In the case of perturbed images, where pixel values may vary widely, normalizing activations can provide a more stable learning process [25]. Two-dimensional max pooling (MaxPooling2D) with a size of 2 × 2 is used for the pooling operation. ReLU serves as the activation function in proposed CNN. ReLU is chosen as it allows the model to learn complex patterns by introducing non-linearities without saturating for positive values and it alleviates the vanishing gradient problem [26]. The optimizer employed in the network is Adam. Adam optimizer is preferred due to its adaptive learning rates and momentum. It combines momentum and root mean square of gradients, updating parameters with step size and small constant c for numerical stability as [27],

(10)

The CNN model is initially trained using a specific randomized dataset with a particular privacy budget of any DP technique. These training data are perturbed images released on any untrusted server. Once the CNN model is trained, it is reserved for future use. Any normal face image being needs to be recognized is passed to this trained CNN and from the flatten layer 15488 values are gathered. These values are the features of the face image and ultimately these features are fed to the classifier to identify the face. In this process, the recognition of faces and the evaluation of the proposed works are ongoing for all DP techniques with diverse privacy budgets.

3.6 Face recognition

The ultimate face recognition of an image is accomplished through the CNN features of that image by utilizing the classifier. This research analyzes the efficiency of four different classifiers namely Support vector machine (SVM), Random forest (RF), eXtreme gradient boosting (XGB), and Logistic regression (LR) for face recognition. Each of the classifiers is being evaluated along with DP techniques under privacy budget variations. In the following the mechanism of these classifiers is presented in detail-

(i) SVM: The SVM classifier aims to find the decision function by solving the optimization problem,

(11)(12)

Here, represent the input image with 15488 features from the CNN model, is the weight vector, is the bias term, is the regularization parameter, is the ith person’s name in server database, is the feature vector, and are slack variables. SVM recognizes person by [28],

(13)

(ii) RF: RF classifier operates by aggregating the predictions of multiple decision trees. Let represent the output of the ith decision tree i. The RF classifier combines the individual tree outputs through a voting mechanism to get the final RF prediction [29],

(14)

Here, N is the number of decision trees, is the indicator function. The final prediction is the name of person that receives the most votes from the individual i.

(iii) XGB: The XGB classifier combines the features of with a weighted sum of decision trees i to obtain a raw score for each class (i.e., person’s name) with number of trees [30],

(15)

The raw scores are then transformed using the softmax function to obtain class probabilities ,

(16)

(iv) LR: The LR classifier computes the logits for each class as [31],

(17)

where is the weight vector, is the bias for class and is feature vector from CNN for the input. The softmax function of equation (16) with is then applied to obtain the predicted probabilities . The class with the highest probability is selected as the outcome.

(18)

4 Result and discussion

The proposed CNN is trained using the Adam optimizer with learning rate 0.001, categorical cross-entropy loss, batch size 32, and 50 epochs. Early stopping is monitored based on validation loss to reduce overfitting. For each privacy budget and each DP mechanism, experiments are repeated under five-fold cross-validation, and the average accuracy is reported. The same train-test partition is maintained across classifier comparisons to ensure consistency. Standard deviation values across folds were also examined during evaluation, and only stable results were considered in the final comparison. All experiments are conducted using the Python programming language within the Spyder (Anaconda3) IDE. The desktop configuration comprises a Windows operating system running on an Intel-powered CPU with a clock speed of 3.60 GHz, featuring Nvidia’s RTX 2070 Super with 8 GB VRAM and 16 GB of RAM. To analyze the performance each of the datasets- LFW-Dataset and IC-Dataset are segregated 80%, and 20% for training and testing respectively. For ensuring privacy, the training images undergo perturbation using the DP technique, while the testing images remain unaffected. Accuracy (A) is used as the performance measurement parameter. For F number of face images that are recognized correctly from N number of samples in testing, the accuracy is defined as [32],

(19)

Figs 2 and 3 depict the overall accuracy of different classifiers on the LFW-dataset and IC-dataset, respectively, using various ε values in the Laplacian technique. These visualizations reveal that LR consistently outperforms other classifiers in both datasets. In the LFW-dataset, LR achieves an accuracy of 56% at ε value of 0.5, which increases to 96% at ε value of 8. For the IC-dataset, LR exhibits an accuracy of 21% at ε value of 0.5, rising to 88% at ε value of 8. The observations from Figs 2 and 3 also indicate that at lower privacy budgets, classifier performance varies significantly. However, as privacy budgets increase, the overall accuracy of all classifiers improves.

thumbnail
Fig 2. The face recognition accuracy of the different classifiers under various privacy budgets in the Laplacian method for LFW-dataset.

https://doi.org/10.1371/journal.pone.0353565.g002

thumbnail
Fig 3. The face recognition accuracy of the different classifiers under various privacy budgets in the Laplacian method for IC-dataset.

https://doi.org/10.1371/journal.pone.0353565.g003

Figs 47 depict the performance of each classifier utilizing the Gaussian method on both datasets of this research Figs 5 and 6. These visualizations highlight the consistent effectiveness of the LR technique across all cases, outperforming other methods, while SVM consistently exhibits the lowest performance. In the LFW dataset, with privacy protection parameters set at δ = 10−5 and 10−6, LR achieves 67% and 68% accuracy respectively, for the highest privacy level at ε value of 0.5. Similarly, in the IC dataset, with privacy protection parameters set at δ = 10−5 and 10−6, LR yields 21% and 21.5% accuracy respectively, for the highest privacy level at ε value of 0.5. Notably, for both datasets, accuracy reaches 100% for both values of δ at the lowest privacy level with ε value of 8. The analysis of Figs 47 also underscores the superior performance of the Gaussian method compared to the Laplacian method.

thumbnail
Fig 4. The face recognition accuracy of the different classifiers under various privacy budgets in the Gaussian method with δ=10-5 for LFW-dataset.

https://doi.org/10.1371/journal.pone.0353565.g004

thumbnail
Fig 5. The face recognition accuracy of the different classifiers under various privacy budgets in the Gaussian method with δ=10-6 for LFW-dataset.

https://doi.org/10.1371/journal.pone.0353565.g005

thumbnail
Fig 6. The face recognition accuracy of the different classifiers under various privacy budgets in the Gaussian method with δ=10-5 for IC-dataset.

https://doi.org/10.1371/journal.pone.0353565.g006

thumbnail
Fig 7. The face recognition accuracy of the different classifiers under various privacy budgets in the Gaussian method with δ=10-6 for IC-dataset.

https://doi.org/10.1371/journal.pone.0353565.g007

Figs 813 depict the face recognition accuracy of various classifiers for DP-blur techniques in both the LFW and IC datasets across different parameter variations. The visualizations reveal that, except for K = 99 in the LFW-dataset, LR consistently outperforms other classifiers. However, at K = 99 in the LFW-dataset, SVM yields superior results. In all techniques of these outcome visualizations at ε value of 0.5 we get the strongest privacy and at ε value of 8 we get the weakest privacy. In Fig 8, at K = 15 for the LFW-dataset with the ε value of 0.5, LR achieves an accuracy of 55%, while at the ε value of 8, LR achieves 100% accuracy. Fig 9 demonstrates that for the LFW-dataset, at K = 45 and the ε value of 0.5, LR achieves an accuracy of 72%. Conversely, at the ε value of 8, LR exhibits a high accuracy of 96%. Fig 10 shows that for the LFW-dataset, at K = 99 and the ε value of 0.5, SVM attains an accuracy of 50%. However, at the ε value of 8, SVM demonstrates a notable accuracy of 73%. Moving on to Fig 11, for the IC-dataset, with K = 15 and the ε value of 0.5, LR achieves an accuracy of 49%. In contrast, at the ε value of 8, LR showcases a remarkable accuracy of 100%. In Fig 12, at K = 45 for the IC-dataset with the ε value of 0.5, LR provides an accuracy of 70%, while at the ε value of 8, LR delivers an accuracy of 93%. Fig 13 indicates that for the IC-dataset, when K equals 99 and the ε value is 0.5, LR achieves an accuracy of 53%. On the other hand, at the ε value of 8, LR attains an accuracy of 77%.

thumbnail
Fig 8. The face recognition accuracy of the different classifiers under various privacy budgets in the DP-blur method with K = 15 for LFW-dataset.

https://doi.org/10.1371/journal.pone.0353565.g008

thumbnail
Fig 9. The face recognition accuracy of the different classifiers under various privacy budgets in the DP-blur method with K = 45 for LFW-dataset.

https://doi.org/10.1371/journal.pone.0353565.g009

thumbnail
Fig 10. The face recognition accuracy of the different classifiers under various privacy budgets in the DP-blur method with K = 99 for LFW-dataset.

https://doi.org/10.1371/journal.pone.0353565.g010

thumbnail
Fig 11. The face recognition accuracy of the different classifiers under various privacy budgets in the DP-blur method with K = 15 for IC-dataset.

https://doi.org/10.1371/journal.pone.0353565.g011

thumbnail
Fig 12. The face recognition accuracy of the different classifiers under various privacy budgets in the DP-blur method with K = 45 for IC-dataset.

https://doi.org/10.1371/journal.pone.0353565.g012

thumbnail
Fig 13. The face recognition accuracy of the different classifiers under various privacy budgets in the DP-blur method with K = 99 for IC-dataset.

https://doi.org/10.1371/journal.pone.0353565.g013

This research compares proposed CNN with other established CNN techniques namely VGG-19, ResNet-50, InceptionV3, and Xception [33], using the standard LFW dataset and LR classifier. The best DP technique DP-blur is utilized in this comparison. Besides, transformer-based models like vision transformer [34], swin transformer [35], and hybrid CNN-transformer [36] are also analyzed. The analysis of this comparison is presented in Table 5. This table proves proposed CNN has a superb capability to preserve privacy during face recognition.

thumbnail
Table 5. Performance comparison of different CNN techniques.

https://doi.org/10.1371/journal.pone.0353565.t005

The proposed CNN achieved better performance mainly because it is designed specifically for learning from differentially private noisy images rather than from ordinary face images only. In conventional architectures such as VGG-19, ResNet-50, InceptionV3, and Xception, the network depth is much larger and the models are originally optimized for large-scale natural image learning. In our case, the privacy perturbation changes pixel distribution significantly, so a simpler architecture with repeated batch normalization performed more effectively. The added batch normalization layers helped stabilize noisy activations at several stages of feature learning, which improved convergence and reduced sensitivity to perturbation noise. Among the classifiers, LR produced the most stable results because the extracted CNN features became linearly separable after the final dense representation. More complex classifiers such as RF and XGBoost sometimes reacted inconsistently to highly perturbed features, while LR maintained a more balanced decision boundary under different privacy budget.

Table 6 presents a comparison of various techniques based on specific criteria such as each of these techniques employs the DP technique, ensures evaluation through cross-validation, and is applied to face identification. Notably, the proposed method stands out as the sole approach that meets all these criteria. While some methods omit cross-validation, others forego the use of DP. Additionally, certain techniques, even if focused on privacy, only undergo testing with a single privacy mechanism. Thus, we can assert that the proposed method represents a notable advancement over the existing baseline model.

thumbnail
Table 6. Proposed research Vs baseline models.

https://doi.org/10.1371/journal.pone.0353565.t006

The comparison of Table 7 shows that the methods of Chamikara et al. and Shen et al. are most comparable to our research. Although these two techniques do not utilize cross-validation in their actual paper. Adding five-fold cross-validation, we employ these methods in the well-known LFW-dataset and compare the results in Table 7. The scenario of Table 7 proves that our research outperforms baseline techniques vastly.

thumbnail
Table 7. Performance comparision of DP-based face recognition methods.

https://doi.org/10.1371/journal.pone.0353565.t007

5 Conclusion

This research introduces a privacy-preserving face recognition model, enhancing the security of face recognition databases on servers. We use a unique CNN architecture capable of recognizing faces in differentially private randomized images. The CNN is both simple and lightweight, delivering exceptional performance, with some additional batch normalization layers. We evaluate the efficiency of the proposed method by incorporating multiple DP techniques and face image classifiers. For all techniques, our face recognition model ensures strong privacy with higher accuracy and outperforms the existing state-of-the-art approaches. The best results, with 97% and 77% accuracy, are obtained for two datasets, LFW and IC, using the proposed CNN with the DP-blur privacy technique and LR classifier. The privacy budget is set at 1.5 to achieve these optimal results. However, Among the evaluated classifiers, LR shows the most consistent behavior across almost all privacy settings, particularly under DP-blur, suggesting that the extracted features from the proposed CNN become highly discriminative even under perturbation. In comparison with alternative CNN architectures, the proposed lightweight model provides stronger adaptation to noisy private images because of its repeated normalization strategy and lower architectural complexity. These observations indicate that privacy-aware architecture design is more effective than directly applying deeper conventional networks to privatized facial data. The proposed framework has practical applicability in environments where facial databases are stored on third-party or semi-trusted servers, including banking systems, attendance systems, healthcare verification platforms, and public service authentication. Since privacy perturbation is applied before data release, the method reduces the risk of biometric misuse while preserving operational recognition capability. Looking ahead, we aim to extend this work to other image recognition methods that rely on untrusted servers.

Acknowledgments

The authors would like to express their sincere gratitude to all the members of the Department of Computer Science and Engineering of Mawlana Bhashani Science and Technology University for their support and assistance in diverse steps of this research.

References

  1. 1. Hazim Barnouti N, Sameer Mahmood Al-Dabbagh S, Esam Matti W. Face recognition: a literature review. Int J Appl Inform Syst. 2016;11(4):21–31.
  2. 2. Rusia MK, Singh DK. A comprehensive survey on techniques to handle face identity threats: challenges and opportunities. Multimed Tools Appl. 2023;82(2):1669–748. pmid:35702682
  3. 3. Chesney B, Citron D. Deep fakes: a looming challenge for privacy, democracy, and national security. Calif L Rev. 2019;107:1753.
  4. 4. Zhao S, Zhang L, Xiong P. PriFace: a privacy-preserving face recognition framework under untrusted server. J Ambient Intell Human Comput. 2023;14(3):2967–79.
  5. 5. Liu C, Yang J, Zhao W, Zhang Y, Li J, Mu C. Face image publication based on differential privacy. Wireless Commun Mobile Comp. 2021;2021(1).
  6. 6. Abadi M, Chu A, Goodfellow I, McMahan HB, Mironov I, Talwar K, et al. Deep learning with differential privacy. In: Proceedings of the 2016 ACM SIGSAC conference on computer and communications security, 2016. 308–18.
  7. 7. Swapna M, Sharma YK, Prasad BMG. A survey on face recognition using convolutional neural network. Data engineering and communication technology: proceedings of 3rd ICDECT-2K19. Singapore: Springer Singapore; 2020. 649–61.
  8. 8. Chamikara MAP, Bertok P, Khalil I, Liu D, Camtepe S. Privacy preserving face recognition utilizing differential privacy. Comp Security. 2020;97:101951.
  9. 9. Kumar CR, N S, Priyadharshini M, E DG, M KR. Face recognition using CNN and siamese network. Measurement: Sensors. 2023;27:100800.
  10. 10. Veerashetty S, Patil NB. Texture-based face recognition using grasshopper optimization algorithm and deep convolutional neural network. Lecture notes in electrical engineering. Springer Singapore; 2021. 43–59. https://doi.org/10.1007/978-981-33-4909-4_4
  11. 11. Lu P, Song B, Xu L. Human face recognition based on convolutional neural network and augmented dataset. Syst Sci Control Eng. 2020;9(sup2):29–37.
  12. 12. Kumaar S, Vishwanath RM, Omkar SN, Majeedi A, Dogra A. Disguised facial recognition using neural networks. 2018. 28–32.
  13. 13. Senekane M. Differentially private image classification using support vector machine and differential privacy. Mach Learn Know Extra. 2019;1(1):483–91.
  14. 14. Shen Z, Zhong T, Sun H, Qi B. RRN: a differential private approach to preserve privacy in image classification. IET Image Process. 2023;17(7):2192–203.
  15. 15. Remerscheid NW, Ziller A, Rueckert D, Kaissis G. Smoothnets: optimizing cnn architecture design for differentially private deep learning. arXiv preprint. 2022.
  16. 16. Geng Q, Viswanath P. The optimal mechanism in differential privacy. In: 2014 IEEE International symposium on information theory. 2014. 2371–5. https://doi.org/10.1109/isit.2014.6875258
  17. 17. Labeled faces in the wild home. 2023. https://scikit-learn.org/0.16/datasets/labeled_faces
  18. 18. Hossain M. Minoar. 2023. https://github.com/Minoar/Hossain/blob/master/IndianCelebrities.rar
  19. 19. Viola P, Jones M. Rapid object detection using a boosted cascade of simple features. In: Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition. CVPR 2001. I-511-I–518. https://doi.org/10.1109/cvpr.2001.990517
  20. 20. Ponomareva N, Hazimeh H, Kurakin A, Xu Z, Denison C, McMahan HB, et al. How to DP-fy ML: a practical guide to machine learning with differential privacy. J Artifi Intell Res. 2023;77:1113–201.
  21. 21. Croft W, Sack J-R, Shi W. Differential privacy via a truncated and normalized laplace mechanism. J Comput Sci Technol. 2022;37(2):369–88.
  22. 22. Balle B, Wang YX. Improving the gaussian mechanism for differential privacy: Analytical calibration and optimal denoising. In: International Conference on Machine Learning. 2018. 394–403.
  23. 23. Dong J, Roth A, Su WJ. Gaussian differential privacy. In: 2019. https://arxiv.org/abs/1905.02383
  24. 24. Fan L. Differential privacy for image publication. In: Theory and practice of differential privacy (TPDP) workshop. 2019. 6.
  25. 25. Ioffe S, Szegedy C. Batch normalization: accelerating deep network training by reducing internal covariate shift. In: International conference on machine learning. 2015. 448–56.
  26. 26. Agarap AF. Deep learning using rectified linear units (relu). arXiv preprint. 2018.
  27. 27. Kingma DP, Ba J. Adam: a method for stochastic optimization. arXiv preprint. 2014.
  28. 28. Steinwart I, Christmann A. Support vector machines. Springer Science & Business Media; 2008.
  29. 29. Biau G, Scornet E. A random forest guided tour. TEST. 2016;25(2):197–227.
  30. 30. Chen T, Guestrin C. Xgboost: A scalable tree boosting system. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016. 785–94.
  31. 31. Bishop CM, Nasrabadi NM. Pattern recognition and machine learning. New York: Springer; 2006
  32. 32. Hossain MM, Hasan MM, Rahim MA, Rahman MM, Yousuf MA, Al-Ashhab S, et al. Particle swarm optimized fuzzy CNN with quantitative feature fusion for ultrasound image quality identification. IEEE J Transl Eng Health Med. 2022;10:1800712. pmid:36226132
  33. 33. Rahman W, Faruque MGG, Roksana K, Sadi AHMS, Rahman MM, Azad MM. Multiclass blood cancer classification using deep CNN with optimized features. Array. 2023;18:100292.
  34. 34. Bousaid R, El Hajji M, Es-Saady Y. Facial emotions recognition using vit and transfer learning. In: 2022 5th International Conference on Advanced Communication Technologies and Networking (CommNet). 2022. 1–6. https://doi.org/10.1109/commnet56067.2022.9993933
  35. 35. Subramaniam N, Murugesan B, Ravikumar G, Elango V, Narayanan V. Emotion analysis on face recognition with swin transformer in deep learning. In: AIP Conference Proceedings, 2025. 020024. https://doi.org/10.1063/5.0266626
  36. 36. Wang Y, Qiu Y, Cheng P, Zhang J. Hybrid CNN-transformer features for visual place recognition. IEEE Trans Circuits Syst Video Technol. 2023;33(3):1109–22.