1 Introduction

Biometric recognition [1] has been widely used for user authentication. However, there are privacy and security concerns associated with biometric recognition. One of the ways to enhance the privacy and security of traditional biometrics is provided by cancelable biometric. Different methods of cancelable biometric template generation proposed by researchers are discussed in research work [2]. In traditional biometric based application, user provides his biometric credentials to a sensor device. This sensor device will scan his biometric trait and discriminating features obtained from any machine learning method. These extracted features are stored into some standalone database. This whole process is known as Enrolment process in traditional biometric based systems. Afterwards, when a user presents his biometric credential at sensor device, again same features are extracted same as enrolment process and matching is performed with the stored representations. This matching process results in either granting access to the user or denial of the access. This process is known as authentication.

In contemporary scenarios with the evolution of new methods or techniques, it is possible to gain unauthorized access to the standalone database using software and/or hardware devices. It may result into compromise of the original biometric credentials. Due to the outspread of the corona virus disease (COVID), most activities are being performed in online mode which further increases the risk of private information such as user credentials i.e. username and password. Increased online activities have also increased the number of accounts corresponding to a single user i.e. accounts on e-commerce websites, internet banking and online learning platforms etc. and hence the need for user authentication has gone up sharply. If any of the sensitive user information such as password or biometric trait of one account is compromised, then it may also put on risk the security and privacy of other accounts. As humans have limited count of biometric traits such as iris, face, fingerprint, palmprint, ECG and voice etc. Hence, keep them secure from an adversarial attack is mandatory.

Cancelable biometric [2] plays an important role in providing security to biometric traits by transforming the original biometric in another irreversible domain. In cancelable biometric, instead of storing the original features directly into the database, firstly these features are destroyed/deformed by some transformation functions. The templates obtained after this transformation are totally meaningless in comparison to the original biometric as shown in Fig. 1. Further, these distorted versions of original biometric are stored in the database. There are four important characteristics [3] associated with these cancelable templates: (i) Diverse (ii) Non-invertible (iii) Revocable (iv) Performance. Diverse generally means each cancelable biometric template should be different from others or in other words no two persons should be allotted same cancelable biometric template. Non-invertible means original biometric features cannot be extracted with these cancelable biometric templates while Revocable property states that if cancelable biometric template of a person gets stolen or compromised then a new cancelable template will be allotted to him/her without compromising original biometric identity. Performance property states that cancelable biometric based system’s recognition rate should be same as traditional biometric based systems. It simply means recognition rate should not deteriorate using cancelable biometric template. The word cancelable means if one’s allotted cancelable biometric template gets compromised, a new template will be allotted to him by cancelling the previous one as happens in the case of Automatic Teller Machine (ATM) password. A strong transformation function is typically required for generation of strong cancelable biometric template.

Fig. 1
figure 1

Example of cancelable biometric template generated by proposed method

Random walk [4] (a.k.a. drunker’s walk) is a method which has been extensively used in image segmentation [5, 6]. In this method, a drunker randomly walks in left, right, up or down positions from the current position. Motivated by this concept, in this research work, two cancelable biometric template generation methods based on random walk (CBRW) have been proposed. As a biometric image may be thought of as a matrix of intensity values, we have tried to exploit random walk model to transform the current intensity values into other intensity values such that the original biometric is distorted. A sample image of cancelable biometric template corresponding to a face image is depicted in Fig. 1.

1.1 Contribution

In this paper, we have made following contributions:

  1. (i)

    Proposed two novel methods based on random walk model for generating cancelable biometric templates.

  2. (ii)

    Extensive experiments have been performed on eight publicly available gray and color biometric datasets.

  3. (iii)

    Proposed approaches are independent of the biometric trait used and hence experiments can be easily performed with other biometric modalities. In this work, experiments have been performed on three different biometric modalities i.e. face, iris and ear.

Besides the above contributions, there are some advantages of the proposed methods such as (a) Both methods are equally applicable to gray as well as color images (b) Performance of the proposed methods is superior than several other compared methods in qualitative as well as quantitative terms.

The rest of the paper is organized as follows: Section 2 briefly provides related work in cancelable biometric while Section 3 describes the proposed method in detail. In Section 4, experimental setup and results with qualitative, quantitative and histogram analysis are presented and discussed. Concluding remarks and future work are given in Section 5 at the end.

2 Related work

In literature, various methods for cancelable biometric template generation have been suggested. These methods are further classified into six categories [2]: (i) Cryptography (ii) Transformation (iii) Filter (iv) Hybrid (v) Multimodal and (vi) Others. Each of these categories is further contained several template generation methods.

Proposed methods comes under transformation based category which is one of the pioneer technique in the domain of cancelable biometric template generation in which original features are changed using different types of transformation such as Cartesian, Polar and Hadamard etc. In Cartesian transformation [3], image registration is required which is further followed by estimating position and orientation of singular points with respective minutiae positions. Fixed size cells are retrieved after dividing whole coordinate system. Cancelable biometric templates are formed by applying the changes in the cell positions. In Polar transformation [8], corresponding to the core position in polar coordinate, minutiae positions are calculated. In this transformation, polar regions are retrieved from the coordinate space. Further, changes are applied on these polar regions. Both these transformations are suffered from deviation problem such that if minutiae positions are changed in small scale in original biometric image, it can reflect a large deviation in the transformed minutiae domain. Fingerprint biometric is the most popular trait used in Cartesian and Polar transformation.

Hadamard transform is a non-sinusoidal, orthogonal transformation which is used for projection on to walsh functions. Walsh functions are set of square or rectangular waveforms whose elements consists with values of + 1 and − 1, used for projection. Hadamard transformation used Hadamard matrix in which pairwise orthogonal row vectors have values + 1 and − 1. Two variants of Hadamard transform are known namely partial Hadamard and full Hadamard. Partial Hadamard [11] matrix is obtained after selecting some rows from full Hadamard and is non invertible in nature while full Hadamard transformation matrix is invertible in nature. Two important advantages of partial Hadamard includes low computational cost and low storage requirement. Uhl et al. [12] have generated cancelable iris templates which used wavelet transformation as a transformation key matrix. The main advantage of this method includes no occurrence of data loss and no requirement of features alignment. In Multiplicative transform [13], cancelable biometric templates are formed by element wise multiplication of original features with some random vector. Sorting method is applied on indexes of this resulting vector which is further used for retrieval of biometric template.

Random Projection (RP) [14] is a non-invertible method. In this method, the extracted feature vector \( \mathbf {x} \in \mathbb {R}^{N}\) from a biometric is projected onto a random subspace A = [aij] (where \(\mathbf {A} \in \mathbb {R}^{n* N} \) with n < N). Here, each entry aij of A is an independent realization of a random variable. This process is described as follows:

$$ \mathbf{y} = \mathbf{Ax} $$
(1)

Here y is the n dimensional Random Projection vector and N dimensional feature vectors are embedded in a lower dimension space n [15]. Pillai et al. [17] have used Sectored Random Projections for generation of cancelable iris template. In this approach iris image is divided into many parts which are known as sectors. Further, random projection is applied on individual sectors. Lastly, these transformed sectors are again concatenated to form cancelable iris template. Punithavathi et al. [16] have proposed extended version of this method in which individual sectors are projected on Dynamic Random Projection Matrix (DRPM) which finally generates cancelable iris template. Here, DRPM matrix is retrieved from the iris features which remove the requirement of any external matrix for transformation. Kim et al. [18] have used Sparse Random Projection for generation of cancelable face template. In this method, random matrix has the value -1, 0 and + 1. The values used in random matrix is used for accelerating enrolment and authentication process.

3 Cancelable biometric template generation based on random walk

In this section, firstly generation of random walk matrix RW based on the popular random walk model is defined and then two methods for cancelable biometric template generation are proposed which are based on RW. In the following, the original biometric image is denoted as S of size a × b and another image R which is generated using uniform distribution and is of the same size as the secret image.

3.1 Generation of random walk matrix R W

In random walk or drunker’s walk method, a person is initially assumed to be present at the origin of the two dimensional plane and then he can move one step in any of the four directions i.e. left, right, up and down. Subsequently, he can move again in the four directions based on the position after the first step and so on. In this proposed work, one dimensional horizontal walk is used as shown in Fig. 2. There are two directions for random movement i.e. (i) Forward (towards positive x-axis) (ii) Backward (towards negative x-axis). The main objective is to transform the pixel values in S with the help of random matrix R as shown for a sample sub-image of size 10 × 10 in Fig. 3.

Fig. 2
figure 2

Example of one dimensional horizontal walk

Fig. 3
figure 3

Selection of 10 × 10 size sub-image from original biometric and random image and named them as secret image S and random matrix R

Based on random matrix R, the pixel values is modified in the original biometric image S. Suppose p and r are pixels location in matrix S and R respectively as shown in Fig. 3. Procedure for generation of RW is given in Algorithm 1. In the proposed Algorithm, (i,j) is the location for any pixel in two dimensional entities i.e. where i and j represent row and column number respectively.

While moving forward, it may happen that we reach the lower rightmost pixel of S i.e. (a,b) and still we have to go forward. This condition is termed as Overflow and we start moving forward from the upper left corner of image (i.e. position (1,1) of the image) as illustrated in Fig. 4c. Similarly, while moving backward, it may happen that we reach the upper left corner i.e. location (1,1) in the image and we still need to move backward. In this case, the backward movement is done from the bottom rightmost pixel i.e. (a,b) backward. This condition is termed as Underflow. The Algorithm 1 above represents the generation of random walk matrix for a gray scale image. For finding the random walk matrix for a color image, this Algorithm is applied on each of the channels (R,G,B). Next, two cancelable biometric template generation methods are discussed in which templates are generated with the help of RW matrix.

figure c
Fig. 4
figure 4

Illustration for computation of RW matrix (a) R(i,j) > 0 (b) R(i,j) < 0 (c) Overflow

Step-by-step procedure of generation of random walk RW matrix: For elaboration purpose 10 × 10 dimension sub-image S is selected but experiments have been accomplished on image size of 320 × 240. The following steps will be applicable on any image of any dimensions for generation of RW matrix :

  1. 1.

    Both S and R matrices should be of same dimensions. The R matrix contains both positive and negative integers. One null RW matrix of same size as S and R is created for storing the transformed pixels. Pixels in S will move in forward and backward direction according to value in R.

  2. 2.

    x is the pixel value at pth location in S and corresponding to same location, another pixel value y is chosen from rth location in R.

  3. 3.

    If the pixel value y at rth location in R is +ve then pixel value x at pth location in S will move in forward direction. Similarly, for -ve pixel value in R, pixel value x will step backward in S.

  4. 4.

    Let’s take a small example of one pixel value x at pth location in S has a value 151, corresponding to this pixel location, in R at rth location y pixel value is 20 as shown in Fig. 4a. According to proposed work, pth pixel will move in forward direction 20 steps ahead and reaches at qth location which is at 21st place and has pixel value z = 100. Now, add this pixel value z = 100 with original value x which is 151, this will give x + z = 251. Further, to keep the pixel in between 0 to 255 range modulus operation by 256 is used. Finally, we got 251 as transformed pixel value of x at pth location and stored in Rw. The x value at pth in original biometric has now transformed to value 251 instead of 151 in transformed domain and stored in corresponding location in Rw. Similarly, all other pixels will also have converted in same manner.

  5. 5.

    In case of color image, each channel (R, G, B) pixel values are ranged between 0 and 255. For maintaining this pixel range we have used mod function. The effectiveness of mod operation is illustrated by following example. Suppose x value in S is chosen at 4th location and has pixel value 219, corresponding to this location, y value in R is 19. As per proposed Algorithm 1, x will move in forward direction 19 steps ahead in S and reached at location 23rd, which has pixel value z = 100. Further addition of these two values x + z will result in 319. This resultant value is beyond standard pixel range. To resolve this problem, we have used mod function, 319mod256 results in 63. This 63 will now become new transformed value of x at 4th location in transformed domain and stored in Rw.

  6. 6.

    A 10 × 10 dimensions image results in total of 100 pixels. We need to perform transformation at 98th location in S, which has pixel value 88 and corresponding to this location, R contains pixel value 5 at 98th location. According to our method, we have to move 5 steps ahead in S, which results in pixel location 103rd, which is out of range as total number of pixels are 100. For handling this problem, we have provided solution of circular loop using mod function by 100 e.g. 103mod100, which results in 3. Now, in original biometric we stepped forward by 3 positions beyond 100th location and reached at 3rd location in S. The value at 3rd place is 148. Now, addition is performed between 148 and 88, which results in new pixel value 236. Now 236 mod 255 is 236, which is to assign for 98th location in transformed domain in R. The final value for 98th pixel is 236 instead of 88 in transformed domain. Same solution will work for underflow condition with negative values in R, which leads to move in backward direction.

3.2 Cancelable biometric template based on random walk using bit XOR (CBRW-BitXOR)

Here, we describe the method for generation of cancelable biometric template using BitXOR. The step-by-step procedure for cancelable biometric template generation using BitXOR method is given in Algorithm 2.

figure d

Initially, the random walk matrix is obtained using Algorithm 1. Next, XOR operation between S and RW is performed for generation of cancelable biometric template. Some sample images of ear, iris and face biometrics together with their corresponding cancelable biometric templates generated by proposed methods (BitXOR and BitCMP) and other popular methods are shown in Fig. 5. It can be seen from Figure that templates generated by proposed methods do not contain any traces of the original biometric while other methods do.

Fig. 5
figure 5

Qualitative analysis among color cancelable biometric template generated using Bin Salt [25], Gray Salt [25], RBit-XOR [19], Index of Max Hashing [9], Fused Structure [10], Permutation Indexing [7], CBRW-BitXOR (proposed) and CBRW-BitCMP (proposed) on CP ear [23], UTIRIS [24], ORL face [20] and IIT Delhi iris [22] datasets

3.3 Cancelable biometric template based on random walk using bit complement (CBRW-BitCMP)

Similar to the above Algorithm, in this subsection the method for generation of cancelable biometric template using Bit Complement is described. The proposed method uses random walk matrix RW for generating cancelable biometric templates. Further, Algorithm 3 presents step-by-step procedure of template generation using BitXOR method.

figure e

Initially, random walk matrix is obtained using Algorithm 1. Intermediate share I is generated by XOR operation performed between S and RW. Finally, the Bit Complement of the intermediate share is performed to get the cancelable biometric template. Some sample images of ear, iris, and face biometrics together with cancelable templates generated using proposed methods and other popular methods are shown in Fig. 5. It can be seen from Figure that no original credentials are revealed by both proposed methods while other methods are unable to distort the original biometric without revealing them.

The main difference between two proposed methods is that, the second method consist with one more step of bit complement BitCMP operation in addition to BitXOR operation whose output is taken as intermediate template I as described in Algorithm 3.

4 Experimental setup and results

4.1 Dataset description

Experiments have been performed of both proposed methods on three biometrics (both gray and color) viz. (i) Ear (ii) Iris and (iii) Face. The C arreira-P erpinan(CP) [23] ear dataset is publicly available dataset which consists with total of 102 ears images of 17 peoples. This dataset consists of both gray and color images. The U niversity of T ehran IRIS (UTIRIS) [24] dataset consists with 1540 iris images of 79 individuals. The dimensions of color dataset are 2048×1360 and for gray dataset dimensions are 1000×776. The O livetti R esearch L aboratory (ORL) face [20] dataset formerly known as American Telephone & Telegraph company. This dataset is formed by 400 gray images of 40 different subjects with various facial expressions. A leix Martinez and R obert Benavente (AR) face [21] dataset consists with 4000 images of 126 different individuals (70 males and 56 females). In IIT D elhi (IITD) iris [22] dataset (version 1.0) has 1120 iris images captured from 224 users (176 males and 48 females). A brief description about these datasets are provided in Table 1.

Table 1 Datasets description

The proposed method is free from minutiae points, iris codes, and minutiae cylinder codes. In this proposed work, cancelable biometric templates are generated for the whole image by giving equal weightage to all the pixels in the original biometric image. The size of an image as per our proposed work is 320×240 which means total number of 76800 pixels as features have been used while in the compared methods, Permutation Indexing [7], Index of Max Hashing [9], Fused Structure [10], Bin Salt [25], Gray Salt [25], typically 10 to 200 features have been used. For comparison of the proposed method with state of the art methods, we have used all the pixels in the image as features and rest of the method is kept same. The cancelable biometric templates generated by the proposed method and state-of-the-art methods are shown in Figs. 5 and 6 respectively. As we have not extracted any features from the image so that the proposed method is free from the alignment process. Further, in this method one random matrix is used for generation of cancelable biometric templates. This matrix is registered corresponding to a key or password. The user verification is performed when the user presents his/her cancelable template along with PIN or password. This method is useful for verification and results are presented in Table 7.

4.2 Qualitative analysis

Here, a qualitative analysis of cancelable biometric templates generated by proposed methods is presented. The quality of cancelable biometric templates generated by proposed method and other compared methods are shown in Fig. 5 for gray datasets while Fig. 6 shows cancelable biometric templates for color datasets. It can be seen from both these Figs. 5 and 6 that templates generated by proposed method for all datasets do not reveal any information about the original biometric while others methods do. A histogram analysis between original biometric S and cancelable biometric template C generated by proposed methods is also carried out. A histogram analysis between S and C is shown in Fig. 7 for gray datasets and Fig. 8 represents for color datasets using both proposed methods. It is easy to observe that histogram of cancelable template is flattened in most cases (except the color iris image) in comparison to respective original image histogram. This analysis concludes that the intruder cannot gain any information from the cancelable biometric template as they are totally distorted.

Fig. 6
figure 6

Qualitative analysis among color cancelable biometric template generated using Bin Salt [25], Gray Salt [25], RBit-XOR [19], Index of Max Hashing [9], Fused Structure [10], Permutation Indexing [7], CBRW-BitXOR (proposed) and CBRW-BitCMP (proposed) on CP ear [23], UTIRIS [24], AR face [21] and IIT Delhi iris [22] datasets

Fig. 7
figure 7

Histogram analysis between gray original biometric S and cancelable biometric template C generated by CBRW-BitXOR (proposed) on CP ear [23], UTIRIS [24], ORL face [20] and IIT Delhi iris [22] datasets

Fig. 8
figure 8

Histogram analysis between color original Biometric S and color Cancelable Biometric C template by CBRW-BitXOR (proposed) on CP ear [23], UTIRIS [24], AR face [21], and IIT Delhi iris [22] datasets

4.3 Quantitative analysis

A quantitative analysis is also carried out for cancelable templates generated by proposed methods and other compared methods. The performance of templates is measured in terms of Correlation (Cr), Mean Absolute Error (MAE), Number of Pixel Change Rate (NPCR), Peak Signal to Noise Ratio (PSNR), RMSE (Root Mean Square Error), SSIM (Structural Similarity) and UACI (Unified Average Changing Intensity). The ideal value for above mentioned measures for two similar images are given as: Correlation value is + 1 and − 1, MAE is 0, NPCR is 0, PSNR is infinite, RMSE is 0, SSIM is + 1 and − 1 and UACI is 0. In cancelable biometric based system, original biometric S and generated cancelable biometric template C should not be similar. Hence, the value for above mentioned performance measure in cancelable biometric domain should be opposite to ideal values. The values of these parameters in the case of cancelable biometric system should be minimum for Correlation, PSNR and SSIM. While for MAE, NPCR, RMSE, UACI values should be maximum. The computation formulae of above mentioned performance measures are given in Table 2. The quantitative results for both gray and color images are given in Tables 36. The detail description of seven performance measures is given below:

  • Correlation Coefficient: It is used to present the relation between the two images. Two images are related to each other in terms of three types of correlation values i.e. (i) Zero (ii) Positive and (iii) Negative correlation. The possible value of correlation is between − 1.0 to + 1.0. The zero value of correlation between C and S denotes that they are totally dissimilar. However, the negative value of correlation denotes that the cancelable template C resembles with the negative of the original biometric image S. While, the positive value denotes that cancelable biometric template C resembles the original biometric S. In cancelable biometric system, correlation coefficient should be near to zero.

    $$ C_{r}=\frac{{\sum}_{m}{\sum}_{n}\left( S_{mn}-\bar{S} \right)\left( C_{mn}-\bar{C} \right)}{\sqrt{\left( {\sum}_{m}{\sum}_{n} \left( I_{mn}-\bar{I}\right)\right)^{2}-\left( {\sum}_{m} {\sum}_{n}\left( S_{mn}-\bar{S} \right)\right)^{2}}} $$
    (2)

    Here S is the original biometric image and C is the cancelable biometric template corresponding to S. And, m and n are the row and column number respectively. Though, Smn and Cmn represents the pixel intensity at a location in S and C. Here, \(\bar {S}\) and \(\bar {C}\) are the mean of the S and C respectively. For color image, this method is applied on each channel (red, green and blue) followed by taking their average i.e. divided by number of channels i.e. three.

  • Mean Square Error: It denotes the sum of square of difference between the pixel intensity of two images at particular location. In this proposed work, the difference between the pixel intensity at each location in C and S is taken and squared. Further for taking the mean square error this resultant value is divided by the total number of pixels present in an image.

    $$ MSE=\frac{1}{W \times H} \sum\limits_{i=1}^{W}\sum\limits_{i=1}^{H} \left( S\left( i,j \right)- C\left( i,j \right)\right)^{2} $$
    (3)

    Here, \( S\left (i,j \right )- C\left (i,j \right )\) is error and W × H is the one image size or total number of pixels in an image. Its value can range from 0 to \(\infty \). For two similar images its value is 0 while for cancelable biometric based system its value should far from 0. Higher the distortion among two images higher will be the value of MSE.

  • Root Mean Square Error: It is a standard way of representing the mean square error in quantitative data. It is square root of mean square error as depicted in below equation. Like MSE, the value of RMSE also ranges between 0 to \(\infty \). The value of RMSE for two similar images is 0 while for cancelable biometric based system its value should far from 0. Higher value of RMSE denotes the two images are highly distorted to each other.

    $$ RMSE=\sqrt{MSE} $$
    (4)

    Here, MSE is Mean Square Error.

  • Peak Signal to Noise ratio: It is the ratio between the maximum possible intensity value power of an image and the power of noise that effect the image quality. In other words, it is ratio between maximum pixel intensity value and Root Mean Square Error.

    $$ PSNR \left( db\right) =20\log_{10}\frac{255}{\sqrt{MSE}} $$
    (5)

    Here, 255 is the maximum value of single channel. The relation between PSNR and MSE can be seen in above relation Which shows that if MSE between C and S is high then PSNR value will be low and vice versa. In case of cancelable biometric system, the value of MSE should be high which results in lower value of PSNR i.e. noise among the two images should be high.

  • Structural Similarity: It is another measure to represent how much difference is present between the two images. The value range of SSIM is between − 1 to 1. For two similar images the SSIM value is 1. In case of cancelable biometric system the value of SSIM should approach to 0.

    $$ SSIM (S,C)=\frac{\left( 2\mu_{S}\mu_{C} +T_{1}\right) \left( 2\sigma_{SC}+T_{2}\right)}{\left( {\mu_{S}^{2}}+{\mu_{C}^{2}}+T_{1} \right)\left( {\sigma_{S}^{2}}+{\sigma_{C}^{2}}+T_{2} \right)} $$
    (6)

    Here μS, μC are mean and σS, σC are variance and σSC is covariance between original image S and cancelable template C. However, T1 and T2 are constants

  • Mean Absolute Error: It is an absolute average value used to represent the distortion provided in the original biometric image. Its value also ranges between 0 to \(\infty \). For two similar images the value of MAE is 0 while for dissimilar images its value far from 0. In case of cancelable biometric system the value of MAE should be maximum.

    $$ MAE=\frac{1}{W \times H} \sum\limits_{i=1}^{W} \sum\limits_{i=1}^{H} |S\left( i,j \right)- C\left( i,j \right)| $$
    (7)

    Here, \( S\left (i,j \right )- C\left (i,j \right )\) is error between original image and corresponding cancelable biometric template. While W × H is the image size or total number of pixels in an image

  • Number of Pixel Change Rate: This measure is used to calculate the randomness between the two images. For two dissimilar images the value of NPCR is high. In cancelable biometric, its value should be high which represents the high extent of distortion in the cancelable template.

    $$ NPCR=\left( S_{i}, C_{j}\right)=\frac{ {\sum}_{i,j}D\left( i,j\right)}{W \times H} \times 100\% $$
    (8)

    Here (i) \(D\left (i,j\right )=0;\) if \( I\left (i,j\right ) = S\left (i,j\right )\) and (ii) \(D\left (i,j\right )=1; \) if \( I\left (i,j\right ) \neq S\left (i,j\right ). \)

  • Unified Average Changing Intensity: It is normalized form of the mean absolute error. It is also used to check the difference between the intensity value among two images. In cancelable biometric system, the value of UACI should be high. From our experimental results, it has been observed that some state-of-the-art methods have high value of UACI but still they are unable to hide glimpses of original biometric in corresponding cancelable templates.

    $$ UACI{=}\frac{1}{W \times H} {\times} \frac{ {\sum}_{i=1}^{W}{\sum}_{i=1}^{H}|I\left( i,j \right)- S\left( i,j \right)|}{255} \times 100\% $$
    (9)

    Here, 255 is maximum intensity value in single channel and \( I\left (i,j \right )- S\left (i,j \right )\) is error while W × H is image size

Table 2 Performance measures used in proposed work
Table 3 Quantitative results for gray images on CP ear, UTIRIS iris, ORL face and IIT Delhi iris datasets using proposed Algorithm 2
Table 4 Quantitative results for gray images on CP ear, UTIRIS iris, ORL face and IIT Delhi iris datasets using proposed Algorithm 3
Table 5 Quantitative results for color images on CP ear, UTIRIS iris, AR face and IIT Delhi iris datasets using proposed Algorithm 2
Table 6 Quantitative results for color images on CP ear, UTIRIS iris, AR face and IIT Delhi iris datasets by proposed Algorithm 3

The quantitative results of above performance measures obtained from proposed methods and state-of-the-art methods are given in Tables 3 and 4 for gray datasets while Tables 5 and 6 represents results for color datasets. It can be noticed from Tables 3 and 4 that the average Correlation between the original biometric and cancelable biometric template, generated by proposed methods, is almost zero which signifies that these two entities are not correlated. Although, for other compared methods the correlation between S and C is present. Further, the value of NPCR is highest for the proposed methods while lowest for PSNR. The RMSE is also maximum for the proposed methods while SSIM value is minimum which signifies that two patterns are structurally dissimilar. Hence, it can be seen that proposed methods outperform all the compared methods in terms of almost all performance measures except one or two on a variety of biometrics. Similar observations can be made on the experimental results on color images as shown in Tables 5 and 6 respectively. The performance of the proposed methods and state-of-the-art methods is also compared in terms of Equal Error Rate (EER), False Acceptance Rate (FAR), False Rejection Rate (FRR), Genuine Acceptance Rate (GAR). The results of verification measures are presented in Table 7.

Table 7 The performance of the proposed and state-of-the-art methods in terms of Genuine Accept Rate (GAR), False Acceptance Rate (FAR), False Rejection Rate (FRR) and Equal Error Rate (EER) for gray images on CP ear dataset using Bin Salt [25], Gray Salt [25], RBit-XOR [19], Index of Max Hashing [9], Fused Structure [10], Permutation Indexing [7] and proposed method

The red and blue entries in a column denote the method stood at first and second place respectively in terms of various performance measures. Both proposed methods have been compared with six other methods i.e. Bin Salt [25], Gray Salt [25], RBit-XOR [19], Index of Max Hashing [9], Fused Structure [10] and Permutation Indexing [7]. In a single result table, total 28 first and 28 second comparisons are present. This shows number of times a single method stood first and second places among total of 28 first and 28 second places. Total four Tables are present for all datasets (both gray and color). In this way, a total of 112 (= 28 first/second places in single Table × 4 Tables) first places and 112 second places are available in all the tables. Number of times individual method stood first and second place in all Tables is depicted by bar graph as shown in Fig. 9. From the bar graph, it can be seen that the proposed methods stood at first place 55 times out of 112 first places and second place 23 times out of 112 second places. Similarly, Index of Max Hashing stood 32 times first and 30 times second, Permutation Indexing stood 13 times first and 19 times second, Fused Structure stood 8 times first and 36 times second. However, RBit-XOR stood four times first and two times second, Bin Salt stood two times second while Gray Salt didn’t secure a single place in terms of performance measures.

Fig. 9
figure 9

Number of times following methods i.e. Bin Salt [25], Gray Salt [25], RBit-XOR [19], Index of Max Hashing [9], Fused Structure [10], Permutation Indexing [7] and Proposed method stood at first and second place in terms of quantitative measures

4.4 How performance measures satisfies the characteristics of cancelable biometric?

The main characteristics of cancelable biometric system is that the generated template should be distorted version of the original biometric. It should not reveal any information regarding its original credentials. In this proposed work, seven performance measures have been used for finding the relationship between original image (S) and cancelable biometric template (C) generated corresponding to the original image. The relation between performance measures and cancelable biometric characteristics is discussed below which is inspired from research work of Trivedi et al. [26]:

  • Diversity property in cancelable biometric template states that templates generated corresponding to single identity should be different. In this proposed work, cancelable templates are generated using BitXOR between original biometric S and random walk matrix RW. Further, this RW matrix is obtained from random matrix R. Hence for generating the different cancelable templates for same user, this random matrix needs to change which result in different templates for same user. The difference between old and new templates can be found by above discussed seven performance measures. The diversity between two templates generated for same user is shown in Table 8. From this Table, it can be seen that results are satisfying the dissimilar properties of two images. Hence, two templates generated for same user are different to each other. The results are presented for cancelable biometric templates generated by proposed Algorithm 2 for gray datasets. Similar results have been obtained for templates generated with Algorithm 3 and color datasets.

    Table 8 Performance measures used for showing the diversity property between two cancelable template generated for same user
  • Non-invertible property states that intruder should not able to retrieve the original credentials after accessing the cancelable templates. It simply means no reverse engineering process could reveal the original credential from the distorted ones. For satisfying this property, we have used computational complexity method which shows how much computational difficult is to obtain the original credential from cancelable template generated by proposed method. For generating the cancelable biometric templates three important steps are there. (i) Uniform distributed random image R (ii) Random walk matrix RW and (iii) Cancelable template generation using BitXOR operation. In this proposed work, 320×240 uniform distributed random image is used, from which by using proposed Algorithms another same size RW matrix is generated. Finally, this RW matrix is operated with original biometric S for generation of cancelable biometric template. Hence, the proposed method consists with many steps for providing distortion in original biometric. A rough computation complexity can be seen as 320×240 is the image size which results in total number of 76800 pixels and each image is represented by 8 bits per pixel. So the possible combination will be 76800256 or \(76800^{2^{8}}\). This results in very huge number of images. If the number of bits required to represent single pixel is 16 bits then complexity will be 7680065536. In case of color image, these combinations will become 7680016777216 (8 bits for single pixel i in each channel so total channels are three) i.e. RGB (3×8 = 24 bits for each pixel). This is for one image e.g. random image. For random walk matrix, same complexity will be applicable which results in 76800256 and 7680016777216 combinations for gray and color image respectively. Hence, the total complexity will be 2 × 76800256 and 2 × 7680016777216 for gray and color image. This means these number of combination will be required for getting the glimpse of the original biometric which is not computationally feasible.

  • Revocable property states that in case of adversary attack the previous allotted cancelable template should be discarded and a new should be allotted to the genuine user. In this proposed work, random walk matrix RW is used to provide the distortion in the original biometric which in turn depends on the random matrix R generated using uniform distribution method. With the help of this RW matrix, we can generate many cancelable biometric template and given to the genuine user in case of compromise. For experimental work, we have used 320×240 size images. For gray image, we can generate 76800256 (for 8 bits per pixel representation) number of possible combinations for uniform distributed random image R. For color image, these combinations will become 7680016777216 (24 bits for each pixel), which are very huge in count. By selecting any one of these combination (except the one used before), different cancelable biometric template can be allotted to the genuine user in case of compromise or adversarial attack.

  • Performance: The cancelable biometric templates generated by proposed methods are secure than templates generated by state-of-the-art methods as proved by quantitative and qualitative analysis. Hence it can be ensured that performance of the system will not deteriorate.

4.5 Discussion

Here, we critically analyse the experimental results presented in Tables 36. As already described, the proposed methods work equally well on gray as well as color biometric images. The proposed methods outperform all other methods in qualitative as well as quantitative terms. A qualitative analysis was done in Section 4.2 where the original biometric and the corresponding cancelable templates were shown. The reason behind other state-of-the-art methods revealing partial and full information about original biometric is that these methods use the original biometric along with other natural images while the proposed methods introduce randomness in the original image using random walk model. Further, histogram analysis shows that cancelable templates generated by proposed methods do not reveal any information regarding original image. This strengthens the fact that for any intruder, it would be extremely difficult to know about the original image. Afterwards, a quantitative analysis has also been presented for both gray and color datasets. A comparison between cancelable biometric templates generated by proposed methods and other methods has been presented based on several performance measures including Cr, RMSE, PSNR, SSIM, MAE, NPCR and UACI. Bar graph as shown in Fig. 9 represents which method performed better than others in terms of quantitative performance measures. In the bar graph, x-axis shows the method name while y-axis denotes the number of times a method stood first or second in quantitative results. It is clear from the bar graph that proposed methods stood first at many places.

4.6 Comparison of proposed method with state-of-the-art methods

In Bin Salt [25] and Gray Salt [25] methods, auxiliary data is added with original biometric to generate a cancelable template and this addition of auxiliary data is known as salting method. The main advantage of this method is simple for implementation while main disadvantage is to know the amount of auxiliary data needed to add with the original biometric image for cancelable template generation. Proposed methods are different from other methods in terms of security as template generated by these methods reveal partial and full information about the original biometric as depicted by Figs. 56. Both Bin Salt and Gray Salt methods used simple addition and subtraction operations which are invertible in nature. Both these methods are tested on only gray iris dataset. Proposed methods are different from the Index of Max Hashing [9] and Fused Structure [10] methods on the basis of quality of templates, limited number of biometric modalities and feature sets. For different datasets, templates generated by these methods reveal partial and full information about original credentials which is not reveal by proposed method. A comparative study among all methods is presented in Table 9. Further, comparison among proposed method with the state-of-the-art methods is also carried out in terms of histogram analysis.

Table 9 Comparison of the Proposed method with state-of-the-art methods

5 Conclusion and future work

This research work has proposed two novel methods for generation of cancelable biometric templates using random walk method. Towards this effect two methods are proposed viz. (a) Cancelable Biometric template generation based on Random Walk using Bit XOR (CBRW-BitXOR) (b) Cancelable Biometric template generation based on Random Walk using Bit Complement (CBRW-BitCMP) have been suggested and two novel algorithms have been proposed. Both of these algorithms employ another proposed algorithm for generation of random walk matrix. Extensive experiments are performed on a various biometric datasets including ear, iris and face. Proposed methods have been compared with other methods by qualitative and quantitative analysis. The qualitative analysis shows that proposed methods are able to transform original credentials without revealing them while other compared methods do reveal some structure of the original biometric. The quantitative analysis shows that the proposed methods outperform other compared methods in terms of seven performance measures i.e. Cr, MAE, RMSE, PSNR, UACI, SSIM and NPCR. The advantages of the proposed methods include: (i) Independence from the fact whether original biometric image is gray or color and (ii) No information about original credentials is revealed by proposed methods. In future work, new methods will be explored which result better in both qualitative and quantitative measures.