Abstract
This paper presents a Fractional Fourier transform based reversible data hiding technique to secure the data transmitted over communication network. The proposed algorithm modifies the cover image to improve the robustness of data hiding technique. The cover image is transformed using Fractional Fourier Transform (FrFT) into a time-frequency domain and the optimal pixel locations for hiding the secret data are found using firefly algorithm. Firefly algorithm uses multi-objective function, which is a combination of Structural Similarity Index Measure (SSIM) and Bit Error rate (BER). The histogram shifting technique embeds secret data in the optimal pixel locations. The quality of test images is analyzed under varying payload as well as under varying fractional order. Experimental results conclude that this scheme produces good quality stego image. It has also been found from the simulation results that the proposed algorithm is more robust and reversible against various attacks as it provides lower bit error rate and higher normalization coefficient.
Keywords
Introduction
Due to the development in technologies, internet is preferred by most of the people to exchange information from one place to another across the world. However, one of the key issues while sending data over the internet is the security risk that it poses, i.e., the personal or private information may be compromised. Therefore, it is necessary to devise strategies to secure information during the process of information exchange. Data hiding involves protecting confidential data within another seemingly innocuous host media or cover media such as image, video, audio and text [1]. While secret information is embedded in a cover image, the focus is on two key issues. The first one is to create an embedded image with a tolerable level of quality in order to produce imperceptible image. The second is to create the embedded image that is tolerant to distortion, i.e., hidden data can be recovered even if the embedded image is attacked during communication. The cover image properties could be appropriately used in order to improve the robustness of data hiding techniques. By considering these aspects, embedding data in frequency domain becomes more popular than that of spatial domain techniques [2]. In frequency domain techniques, the frequency coefficients of the cover image are modified by applying a specific transformation function on the cover image. They are designed to be reversible and robust against various geometrical transformations and external attacks.
Frequency domain techniques employ transformation methods, such as integer cosine transform [3] or integer wavelet transform [4] to find frequency coefficients of the cover image. In Direct Cosine Transform (DCT) based reversible data hiding approach, one secret bit was embedded into two neighbouring DCT coefficients in an image block [5]. This approach offers a high degree of robustness towards a wide range of image processing operations. The secret payload is hidden in the high frequency coefficients of discrete wavelet transform (DWT) by using the statistical properties of the cover image [6]. The DWT works well against different image processing attacks. As it produces floating-point coefficients, embedded data is potentially lost during the reconstruction of cover image from inverse wavelet transform. This drawback is overcome by integer wavelet transform (IWT). The secret data is embedded into the middle frequency of the integer lifting wavelet domain by adjusting the histogram of the cover image [7].
Many research works are reported in the literature to find the best algorithm that can produce embedded images with minimum distortion and maximum embedding capacity and robustness. Optimization algorithms such as Genetic Algorithm (GA) [8], Particle Swarm Optimization (PSO) [9], and Bacterial foraging [10] have been widely used to identify the coefficients of the image in transform domain to embed data. In PSO based data hiding scheme in spatial domain, PSO finds the optimal pixel locations to embed secret bits in the cover image [11]. Even though the method results a good quality stego image, it is more vulnerable to various attacks during transmission and becomes less robust. In order to conceal the existence of the message, it is necessary to identify the optimal locations to hide the secret data.
As the firefly algorithm (FA) is very precise, robust and can be easily implemented, it is used for identifying optimal locations [12]. FA performs better even in noisy environments. The main advantage of firefly algorithm over other optimization algorithms is that it takes less computation time to produce optimal results. Firefly algorithm outperforms GA and PSO in terms of efficiency and success rate [13]. Fractional Fourier transform transforms the cover image from spatial to time-frequency domain. The histogram shifting technique embeds the secret bits in the optimal locations. Histogram shifting technique is preferred for data embedding due to its less computational complexity, high embedding capacity and high visual quality. It uses maximum and zero points (or minimum if no zero points are available) of histogram of image and shifts the values between these points [14]. The proposed method improves the quality of embedded image as well as the robustness of embedded payload against various attacks and the retrieves the cover image after extracting secret payload.
This paper can be organized as follows. Section 2 describes the Fractional Fourier Transform. Section 3 describes firefly algorithm. Section 4 explains the proposed algorithm. The experimental results are reported in Section 5. Finally, Section 6 concludes the paper.
Fractional fourier transform
The Fractional Fourier transform can be defined for all types of signals such as one dimensional and multidimensional, continuous and discrete, periodic and non-periodic signals [15]. FrFT defines the spectral content of the signal as well as the time location of the spectral components.
The Fourier transform can be elucidated as a rotation of time domain signal by an angle π/2 in the time - frequency plane, whereas FrFT of a signal can be described as rotation of the signal in the time - frequency plane by an arbitrary angle α= a π/2, where a is a fractional order and it is a real number. By making a certain angle with time axis, signal representation along this intermediate axis retains both time and frequency information. As the angle of rotation is a non-integer multiple of π/2, the transform is called Fractional fourier transform [16]. The representation of various domains corresponding to fractional order ‘a’ and rotation angle ‘α’ is shown in Fig. 1.

Representation of Various domains corresponding to the Fractional order ‘a’ and rotation angle ‘α’.
One of the special cases in FrFT with α=π/2 corresponds to the FT, and an FrFT with α= 0 corresponds to the identity operator. When α is not equal to a multiple of π/2, the FrFT is equivalent to perform α/(rmπ/2) times of FT [17, 18].
The a
th
fractional order Fractional Fourier transform of a signal x (t), with a rotation angle α= aπ/2, is defined by,
The inverse FrFT is defined as,
For analysis of two-dimensional (2D) signals such as images, a 2D version of the FrFT is used [19]. For an M×N matrix, the 2D FrFT is obtained by applying 1D FrFT to each row of the matrix and then to each column of the result. Thus, the 2D FrFT is given by,
In 2D FrFT, there are two angles of rotation α = aπ/2 and β = bπ/2 considered.
Firefly Algorithm is a population based nature-inspired metaheuristic optimization technique. The algorithm exploits the flashing behavior of fireflies. The bioluminescence process is responsible for flashing light of fireflies. The pattern of these rhythmic flashes is unique based upon the flashing rate and the amount of time for which flashes are perceived. The intensity (I) of flashing light decreases as the distance (r) increases and thus most fireflies can communicate over several hundred meters. While implementing the algorithm, the objective function associated with the flashing light has to be optimized [20].
Light intensity and attractiveness
The brightness is proportional to the objective function for a maximization problem. Firefly algorithm is based on two important things, first is the variation in light intensity and second is the attractiveness. The attractiveness of firefly is determined by its brightness which is connected with the objective function.
At particular location x, the brightness I of a firefly can be chosen as
The light intensity I (r) varies according to the inverse square law as given below:
Where I s is the intensity of the source.
For the fixed light absorption coefficient γ, the relative fluorescence intensity of firefly is given as,
The attractiveness η of a firefly is proportional to the light intensity seen by adjacent fireflies, so it will differ with distance r
ij
between firefly i and firefly j.
The light intensity decreases with distance from its source and light is also absorbed by air, so attractiveness should be allowed to vary with varying degree of absorption.
The spatial distance between any two fireflies i and j at position x
i
and x
j
is
The dimmer firefly i’s movement towards another brighter firefly j is calculated by
The proposed data hiding scheme attempts to find optimal locations adaptively in the cover image in time-frequency domain to hide a secret data so that the resultant stego image is of good quality. The Fractional Fourier Transform transforms the cover image from the spatial domain to time-frequency domain.
Embedding algorithm
The embedding technique finds optimal pixel locations in time-frequency domain using firefly Algorithm. The firefly algorithm uses multi objective function which is defined in such a way that both imperceptibility and robustness of the stego image are within an acceptable level. The imperceptibility of the stego image is obtained using Structural Similarity Index Measure (SSIM) [11] which is given as follows:
The robustness of the stego image is measured in terms of Bit Error Rate (BER) [11] which is defined as:
The optimal locations obtained in the FA module are then used to embed the secret data. The proposed framework for embedding a secret data in the cover image is shown in Fig. 2.

Proposed framework for embedding secret data in the cover image.
The steps to embed the secret data into cover image are presented below, Cover image of size M×N, Secret payload bits. Stego Image Read the cover image and the secret payload to be embedded in the cover image. Convert the secret data into binary form and then concatenate the binary bits to form secret word W. Let the length of W be LW. Divide the cover image into a number of blocks of size 8×8 as Bi, i = 1,2, ... ., t. Thus, the number of secret bits to be hidden in each block is found as Each spatial block is converted into time-frequency domain using Fractional Fourier Transform with the angle of rotation α ranges from 0 to 2π radians. Firefly Algorithm finds the best pixel locations to embed data in each block. The steps are as follows, Set the initial parameters:
n (Number of fireflies or Population size),
iter (Maximum number of iterations)
γ (weighting constant)
δ (step size factor, between 0 & 1)
C1
andC2 (constants)
rand (random number) The dimension of each firefly is equal to the number of pixels that must be hidden in each block. If r is 5 then each firefly represents the group of 5 pixels which is chosen from the 64 pixel block. In each iteration, for each firefly, the r secret bits are embedded in the firefly locations and the stego image block is obtained. Once the stego block is obtained, the SSIM of the original and stego block are calculated. During the extraction phase, the secret bits are extracted and BER is measured. Using SSIM and BER, the fitness value of the firefly with respect to the objective function as in Equation (15) is calculated. The minimum value of the objective function is stored as the best value. Then, the fireflies will choose random location and this process is repeated until one of the following conditions occur: •Maximum number of iterations is reached •No improvement in the successive iterations. •An acceptable result is found. Once the terminating condition occurs, then the corresponding location of the fireflies’ is the final location. The resulting location is the optimal location which, when used for data hiding, will provide high quality and robust image. The r bits from secret word W is embedded in the final location of each block. Histogram shifting method is used for embedding process. First, the entire pixel value of final location is decreased by 1. Then, the maximum value is found among the final locations. Now, the secret bits are embedded by modifying the maximum value. If the secret bit is 1, then the maximum value is increased by 1. If the secret bit is 0, then the maximum value is left unchanged. In this manner, entire data is embedded in the corresponding block. To ensure the reversibility of embedding, location map is used. The index of the final location and its maximum value has been stored in the location map. Location map will be transmitted as side information along with the stego image. Once the embedding process is over, all sub blocks are subjected to inverse Fractional Fourier transform to get the stego image.
Embedded Image of size M×N. Secret payload bits, Original cover image Divide the embedded image into a number of blocks of size 8×8. Apply Fractional Fourier transform to each stego block to convert into time-frequency domain. The maximum value of each stego image block is compared with the maximum value of the corresponding final location in the location map. If the maximum value of the stego image block is greater than the maximum value of the final location, then bit 1 is extracted, and if the maximum value of the stego image block is equal to the maximum value of final location, then bit 0 is extracted. The maximum value of the stego image block is decreased by 1 whenever secret bit 1 is extracted. Similarly, all secret bits are extracted from the corresponding block. To reproduce the cover image, inverse Fractional Fourier transform is applied to all the blocks.
Experimental results and discussions
An optimal reversible data hiding system must satisfy the properties such as imperceptibility, robustness and reversibility. In order to investigate the performance of the proposed data hiding algorithm, several experiments are conducted in a computer system equipped with Intel core i5 processor with 8 GB RAM and a clock speed of 2.5 GHz. Matlab R2018a. As shown in Fig. 3, four standard grayscale images of size 512×512, (a) Baboon, (b) House, (c) Lake, and (d) Lena, obtained from USC-SIPI (Image database) [21], are used as cover images.

(a) Cover Images, (a) Baboon (b) House (c) Lake (d) Lena.
The important issue while using the firefly algorithm for optimization is to select the appropriate population size (Number of fireflies). The firefly algorithm finds a more optimal solution as the population size grows, but it converges slowly due to its computational complexity (O (n2)), where n is the population size. If the population size is very small, then there is a chance of premature convergence. Hence, an optimal population size should be identified. In this experiment, the population size is varied as 5, 10, 15, 20 and 25. The number of iterations is fixed at 25. It has been observed from Table 1 that for Baboon and House images, lower BER and higher SSIM obtained at the population size of 15 and for Lake and Lena images, at the population size of 20. Further analysis has been carried out using this population size and it is discussed in the section below.
Effect of population size on fitness values
Effect of population size on fitness values
Effect of number of iterations on fitness values
With the population size of 15 for Baboon and House images, 20 for Lake and Lena images, the number of iterations has been varied between 5 and 30 with the interval of 5 to optimize pixel locations. From Table 2, it is inferred that for baboon and house images, lower BER and higher SSIM are obtained at 25th iterations, for Lake image at 20th iterations and for Lena image at 30th iterations. These results are carried over to next set of experiments.
Effect of number of iterations on fitness values
Imperceptibility means that the visual quality of the original cover image should not be degraded by the embedding process. It measures the amount of distortion produced by embedding data in the original cover. In order to measure the imperceptibility, Mean Squared Error (MSE), Peak Signal to Noise Ratio (PSNR) and Structural Similarity Index Measure (SSIM) are used.
Once the suitable values for population size and number of iterations are obtained using FA, the performance of the algorithm is investigated in terms of imperceptibility. Table 3 and Table 4 depict the PSNR (dB) and SSIM values respectively, of cover images after embedding the secret payload at various embedding rates. The perceptual quality of embedded image drops down when the number of bits embedded per block in the cover image increases. The Lena image offers a maximum PSNR of 53.40 dB and SSIM of 0.9988 at the embedding rate of 0.125 bpp. The PSNR obtained for all stego images is greater than 40 dB and SSIM is about 0.98. Hence, it is clear that the embedded payload is imperceptible to the human eye.
PSNR of stego images under varying payload at the fractional order a = 0.5
PSNR of stego images under varying payload at the fractional order a = 0.5
SSIM of stego images under varying payload at the fractional order a = 0.5
The same is illustrated in Fig. 4. As the number of bits embedded in cover image increases, the PSNR and SSIM values drop down and hence the quality of embedded image gets reduced.

Performance comparison of proposed method in terms of PSNR between original images and stego images (Baboon, House, Lake, Lena) under given embedding rate. a) PSNR b) SSIM.
Table 5 and Table 6 list the PSNR and SSIM values, respectively, of cover images after embedding a fixed payload of 12 KB at various fractional orders. The FrFT transform provides frequency coefficients with variations of its fractional order ‘a’. It is found that by using FrFT, high visual quality embedded image can be obtained. By adjusting ‘a’ to different values, FrFT achieves higher PSNR and SSIM, while preserving fidelity of the embedded images. The quality of embedded image gets changed as the fractional order changes. The Lena image offers a maximum PSNR of 49.29 dB and SSIM of 0.9972 for the fractional order of 0.5. From Table 5, it is understood that the algorithm provides better PSNR and SSIM when a = 0.5 (α = 45°).
PSNR after embedding a fixed payload of 12 KB in various cover images at different fractional order
SSIM after embedding a fixed payload of 12 KB in various cover images at different fractional order
Table 7 and Table 8 list the PSNR and SSIM values, respectively, of the Lena image for fractional order varying between 0.2 and 1.0 under varying payload. The quality of the stego image gets degraded as the embedding rate increases. The fractional order a = 0.5 gives better PSNR and SSIM compared to the other fractional orders. The embedded payload is highly imperceptible to the human eye as the PSNR is greater than 40 dB. The maximum amount of embedded payload without affecting the perceptual quality is about 32 KB.
PSNR values of Lena image after embedding data at different rates and at different fractional order
SSIM values of Lena image after embedding payload at different rates and at different fractional orders
Table 9 compares the PSNR and SSIM values of the proposed method with the existing methods in the literature. It is understood that the proposed method is better than the other approaches as it results in reduced distortion in the cover image by embedding the secret data in locations generated FA and thus produces a good quality image. The techniques proposed by Khodaei & Faez [22] and Bedi et al. [11] that are based on particle swarm optimization algorithm (PSO) and Abbasi et al. [23] which is based on Multilayered n-Bit Localization have good data embedding capacity, but they are less resistant to various attacks as LSB substitution is used to embed data.
Comparison of PSNR & SSIM of the proposed method and the existing methods in the literature
The proposed method is also compared with data hiding scheme, presented by Amsaveni & Arunkumar [12], which is based on firefly algorithm in spatial domain. Even though this work yields a PSNR of 52.86 dB (for Lena image) which is greater than proposed work, the resultant stego image is more vulnerable to intentional and unintentional attacks and also the cover image is irreversible. However, the proposed scheme is more robust and reversible as the secret payload is embedded into FrFT (reversible transform) frequency co-efficients.
Robustness is defined as the ability of the secret payload to withstand against various intentional attacks such as image processing operations and unintentional attacks such as addition of noise. Higher the degree of robustness, better the efficiency of the embedding algorithm. The metric used to test the robustness of a data hiding technique against various attacks is Bit error rate of the extracted payload against the original payload.
Generally, the stego image gets degraded and distorted due to addition of noise. The unintentional attacks such as gaussian noise, poisson noise, impulse noise, speckle noise and intentional attacks such as rotation, scaling, blurring, and cropping are applied to embedded images and robustness of the algorithm is tested. The Gaussian noise with a variance of 0.2 and 0.4, Speckle Noise with a variance of 0.05 and 0.10 and impulse noise with a variance of 0.05 and 0.1 are added to the embedded images. The image processing attacks such as rotation (5° and 10°), scaling (200% and 400%), blurring and cropping (10% and 25%) are also applied. Table 10 summarizes the experimental results against various attacks. As the BER is about 0.15 to 0.25 % of embedded payload, the proposed algorithm is more robust.
Effect of various attacks on BER when a secret payload of 12 KB is embedded in the cover images
Effect of various attacks on BER when a secret payload of 12 KB is embedded in the cover images
Reversibility is the ability to restore the original cover image from the embedded image. The algorithm is said to be reversible if the extracted cover image is similar to the original cover image. The metric used to measure the similarity between the two images is Normalized Cross-correlation Coefficient (NCC). NCC will approach to one if the extracted cover image resembles the original cover image. NCC [24] is defined as,
Various attacks like Gaussian noise, Poisson Noise, Impulse Noise, Speckle Noise, Rotation, Scaling, Blurring and Cropping are applied on embedded image. The original cover image is extracted and NCC of extracted cover image against original cover image is computed. Table 11 summarizes the experimental results for the proposed data hiding scheme against various attacks. As the NCC values are greater than 0.98, it is concluded that the algorithm exactly restores the original cover image and hence it is said to be reversible.
Effect of various attacks on NCC when secret payload of 12 KB is embedded in the cover images
In this paper, a reversible data hiding technique using firefly algorithm for embedding secret data in cover image in time-frequency domain is proposed. In this algorithm, the cover image has been transformed into time-frequency domain using FrFT and the optimal pixel locations for embedding the secret data are found by using firefly algorithm. The objective function for firefly algorithm is selected in such a manner that both visual quality and robustness of the embedded image are lying within an acceptable value. The histogram shifting technique embeds secret bits in the optimal pixel locations. The resultant embedded image is better in quality as the PSNR is greater than 40 dB. As BER and NCC are 0.25% of embedded payload and greater than 0.98 respectively, the stego image can able to withstand certain noise and image processing attacks during transmission. Due to the advancement in integrated circuit technology, reversible data hiding techniques may be implemented on field programmable gate arrays (FPGA) technology. This results in reduction in space, cost and embedding and extraction time in real time applications.
Conflict of interest
The authors declare that they have no conflict of interest
