Abstract

An encryption frame of medical image with watermark based on hyperchaotic system is proposed in this paper. Medical information, such as the patients’ private information, data needed for diagnosis, and information for authentication or protection of medical files, is embedded into the regions of interest (ROI) in medical images with a high capacity difference-histogram-based reversible data-hiding scheme. After that, the watermarked medical images are encrypted with hyperchaotic systems. In the receiving end, the receiver with encryption key can decrypt the image to get similar images for diagnosis. If the receiver has the key for data hiding at the same time, he/she can extract the embedded private information and reversibly recover the original medical image. Experiments and analyses demonstrate that high embedding capacity and low distortion have been achieved in the process of data hiding, and, at the same time, high security has been acquired in the encryption phase.

1. Introduction

The rapid development of the Internet makes life more convenient than ever before. However, just as the old saying: every leaf has two sides, the Internet brings us not only convenience but also many problems. Leakage of privacy is one of the most important things. For example, medical information, such as EHRs (Electronic Health Records) [1], is often closely related to patients’ privacies which should be kept secret. Medical images for diagnosis need to be protected in order to prevent malicious tampering. There are two ways for solving these problems: one is encryption, and the other one is information hiding. As a traditional solution of secure communication on insecure channels, encryption has been widely explored [210], and many of the encryption schemes have introduced chaotic systems to enhance the security of encryption. Information hiding (or data hiding) is a newly proposed way for secure communication although the ideology occurred quite a long time ago. With the development of data hiding and digital watermarking, many schemes have been proposed to embed information into medical images [1, 3, 11, 12] for the protection of private information and the authentication of medical images. These schemes utilized in medical images made full use of the intrinsic features of medical images and achieved nice results too. Obviously, both encryption and data hiding have their advantages in secure communication; what if we combine them together for better protection of medical image and private information?

Recently, some novel schemes combining the data hiding and encryption have been proposed [1, 3, 8, 1216]. Among them, schemes can be divided into three categories: the first one is encryption before data hiding [1316]; the second one is encryption after data hiding; the third one is fusion of encryption and data hiding [3]. From the information hider’s point of view, information can be hidden in the spatial domain, the encrypted domain [1316], or both of the two domains [8]. In [3], additional information is firstly coded with a quantization index modulation (QIM) method; then this coded information is encrypted with traditional encryption methods (such as RC4 algorithm); finally, the encrypted coded information is embedded into medical image with the simple least significant bit (LSB) substitution method. The scheme is not reversible due to the LSB substitution. Reversible data hiding schemes in encrypted images are proposed in [13, 14]. The image is encrypted with a stream cipher, and then information is embedded into the encrypted images by modifying a small proportion of those encrypted data. In the receiving end, the encrypted image containing additional data is firstly decrypted to get similar versions of the original images; then, the embedded data can be extracted and the original image can be reversibly recovered with the data hiding key and the spatial correlation features in natural images [13]. It is reversible; however, the hiding capacity is rather low. In [14], an improvement is proposed to increase the hiding capacity of the scheme proposed in [13]. However, the hiding capacity is still not large enough after the improvement. The separation of data extraction and recovery of original images is achieved in [16]. There are two keys in the whole scheme. The image is firstly encrypted with the encryption key. Then, the encrypted image is passed to data hider. Additional information is embedded into the encrypted image with a data-hiding key. In the receiving end, the additional information can be extracted with only the data-hiding key. The similar (not reversible) image can be recovered with only the encryption key. If someone has the two keys, he/she can both extract the additional information and reversibly recover the original image. In [15], medical images are firstly divided into blocks; then, three LSB planes substitution is utilized in the regions of noninterest (RONI) in medical images for hiding the additional data. In [8], a reversible data hiding scheme in encrypted images by reserving room before encryption is proposed. The self-embedding of LSB planes guarantees the reversibility of LSB substitution embedding.

Different from all the schemes mentioned above, a novel encryption frame for medical image with watermark based on hyperchaotic system is proposed in this paper. Additional data, such as patients’ private information and data for the authentication of medical images, is firstly embedded into the ROI of the original medical image with a difference-histogram shifting method. Then, the medical image with data embedded is encrypted with a hyperchaotic system. After that, the encrypted medical images with watermarks can be transmitted publicly and safely on the Internet. Besides, if there are not clear distributions of ROI and RONI in some images, the proposed scheme can still be imposed on the whole images. In the receiving end, the encrypted image is firstly decrypted to get the similar image with watermark. Then, the ROI of the image with hidden data is detected and hidden data is extracted. Finally, the original medical image is reversibly recovered. Different from most existing data hiding methods in medical images that hide data in the RONI of medical images, the proposed scheme hides data in the ROI of medical images. Moreover, histograms of difference image blocks are utilized for better increasing the hiding capacity and decreasing the distortion of reversible data-hiding scheme. The hyperchaotic system can produce large key space and sensitivity for encryption and this guarantees the safety of the communication.

2.1. The Hyperchaotic System for Encryption

Chaotic system is a kind of nonlinear system that is very sensitive to the initial states and system parameters. The nonperiodic features and pseudorandomness of chaotic systems are beneficial to encryption. Encryption scheme based on chaos was proposed in 1989 [17]. Since then, many encryption schemes based on different chaotic systems have been proposed in the following. For example, an encryption scheme based on logistic map was proposed in [18]. In [2], Arnold cat map was introduced to shuffle the positions of image pixels, and a hyperchaotic system was utilized to confuse both the plain-image and the cipher-image. In [19], an image encryption scheme based on a three dimensional (3D) chaotic map, which could defeat many existing attacks, was proposed. Hyperchaotic system has more than one positive Lyapunov exponent; thus, the complexity of encryption schemes based on hyperchaotic system is higher; therefore, it is more suitable for the design of encryption schemes.

2.2. Reversible Data Hiding

Reversible data hiding refers to the process to hide data into cover media, which guarantees the reversible recovery of the original cover image after data extraction. There are three main categories of reversible data-hiding schemes; the first one is compression based [20], the second one is difference expansion based [21], and the third one is histogram modification based [22]. Schemes based on histogram modification cause less distortion to the cover image, so they are suitable for data hiding in images that require higher qualities, such as medical images. However, the obvious drawback of histogram modification-based data-hiding schemes is that the hiding capacity is limited. In order to increase hiding capacity of this kind of schemes, some measures such as raising the peak points’ height of the histogram or increasing the number of peak points can be utilized. In [23], an optimization of the prediction accuracy of the target pixels was proposed to raise the heights of the peak points in the histogram to increase the embedding capacity. A -image reversible hiding method that can restore the cover image and confidential images from stego-image was proposed to increase the security of the data hiding [24]. In [25], the embedding capacity was increased by multi-employing invariability of the mean value of pixels, and the embedding distortion is greatly controlled by embedding more bits into smooth image blocks and fewer bits into the other blocks with complex texture. In [26], a multilevel embedding scheme was proposed to increase the capacity of histogram modification-based reversible data scheme. In [27], the original image was firstly sampled and then a predicted image based on sampled images was acquired. The difference images between the predicted image and these sampled images were calculated to get the histogram of difference image for data embedding.

2.3. ROI Detection of Medical Images

Different from natural images, medical images always have consecutive region of interest (core content that contains clinical findings) and region of noninterest (background), denoted by ROI and RONI for short, respectively. Many selection algorithms have been proposed to separate the ROI and RONI. Some early but still-in-use methods, such as [12], regard the ROI as a rectangle. These methods are easy and flexible but not intelligent. Recently, some new methods have been proposed [1, 11]. In [11], a pixel-based scanning method from both (left and right) sides to the center was proposed, and a threshold determined the contour of ROI. The average intensity of the RONI blocks should approach to zero, while the average intensity of the ROI blocks would be much bigger. Therefore, a block-based scheme was used to calculate the average intensity in [1]. In order to get better performance, a filter was used to preprocess the images before energy calculation.

Most of the existing watermarking schemes embed information into RONI because they cause no distortion to the core area of medical images. However, these RONI embedding schemes may cause significant changes to cover images if the ROI and RONI are considered as a whole. The RONI embedding is easily detected by others. Besides, the RONI is usually cropped when preprocessing medical images for better storage. It is inconvenient and insecure to embed data in the RONI.

3. Proposed Encryption Scheme of Medical Image with Watermark

The flowchart of the whole scheme is presented in Figure 1. Firstly, a block-energy-based algorithm is proposed to determine the ROI of the original medical image. Secondly, the preprocessed additional data is embedded into the ROI of the medical image with a histogram modification-based data-hiding scheme. Finally, the watermarked image is encrypted utilizing a hyperchaotic system. The decryption and data extraction process are presented in Figure 2. After receiving the encrypted medical image, the receiver decrypts it to get medical image with watermarks. Then, ROI of the watermarked image is detected. Finally, additional data is extracted and the original image is recovered reversibly.

3.1. ROI Detection

The medical image with size is firstly divided into blocks with size . Obviously, the amount of blocks is . Then, the average energy of every block is calculated by the following: where represents the average energy of the current block, represents the position of image blocks, and is pixel value. Finally, compare the average energy value of every block with an adaptive threshold to determine whether a block belongs to ROI or not: if , then it belongs to the ROI; else, the block belongs to the RONI.

3.2. Reversible Data Hiding Based on Histogram Modification

Additional information is preprocessed and encoded into binary stream before it is embedded into ROI blocks of medical images. A reversible data-hiding algorithm based on histogram of difference image blocks is proposed for the information embedding. This algorithm can be preceded together with ROI detection process. Once one ROI block is detected, it can be used for information embedding immediately. The detailed algorithm is described as follows.(1)Preprocess and encode additional data into binary streams and divide the binary streams into segments according to ROI blocks.(2)Scan every ROI block pixel by pixel to get the pixel sequence , where represents the position of image blocks.(3)Calculate difference of neighbor pixels of to get difference sequence .(4)Construct histogram of difference sequence , and then find two peak points and and their corresponding nearest zero points and .(5)Shift the histogram bidirectionally and embed bit streams of medical information into the gaps, and then difference pixel sequence with hidden information is acquired, denoted by .(6)Form the pixel sequence of watermarked blocks with the original pixel sequence and . For every element in the block sequence : , where and are elements of pixel sequence and , respectively.(7)Reconstruct the block with sequence .(8)Repeat step (2) to step (7) until all the information is embedded into different blocks of ROI.

The threshold for the detection of ROI of medical images and the sizes of ROI blocks and additional information are encoded as the key for data extraction. The data extraction key can be sent to the receiving end alone or along with the watermarked medical image. It can be encrypted by symmetric encryption algorithm or by the public-key encryption algorithm. In the symmetric encryption scheme, the key for data extraction is encrypted with the same key that is shared between the sending end and the receiving end. In public-key encryption, the data extraction key is encrypted by the public key in the sending end, whereas it can be decrypted by the private key of the receiver. It is more secure to use the public-key encryption for the delivery of key for data extraction.

3.3. Encryption Scheme Based on Hyperchaotic System

The medical image with watermark is encrypted with a series of random numbers. A hyperchaotic system by Gao et al. [28] is used to generate the discrete random numbers for encryption: where , , , , and are parameters, and when , , , , and , the system is hyperchaotic. The attractors of the hyperchaotic system with parameters , , , , and are shown in Figure 3.

Then, the encryption algorithm is as follows.(1)Iterate the hyperchaotic system for times by Runge-Kutta algorithm to get the four discrete states sequences of the system.(2)Then, these decimal fractional sequences are preprocessed for encryption as follows: where is the th value of sequence , represents the absolute value of , and returns the nearest integers less than or equal to .(3)Construct the encryption sequence with : where , , , and is the size of image to be encrypted.(4)Do exclusive OR (XOR) operation between every pixel of the image to be encrypted and encryption sequence : where represents the ciphered pixel and XOR means bitwise exclusive OR; then, is written back to the encrypted image.

The initial value and iteration parameters of the hyperchaotic system are encoded as the key, denoted by , for decryption.

3.4. Decryption Scheme and Data Extraction

The encrypted medical image with hidden information is received by the remote receiver for diagnosis. The original medical image is reversibly recovered and the information embedded is extracted with the following steps.(1)Generate the encryption sequence with key as the encryption process.(2)Do XOR between the encrypted image and the encryption sequence : where represents the decrypted pixel and is the decrypted image.(3)Divide image into blocks with the same sizes as that of embedding process, and then calculate the average energy of each block to determine the ROI of the image with threshold , which is the same as the threshold of the ROI detection procedure in Section 3.1.(4)Calculate the differences of pixels in every ROI block to get difference pixel sequence . Then, scan the sequence to extract the hidden information. Consider the following.(a)If the two peak points , then the bit “” is extracted when the pixel value or in the sequence is encountered, and the bit “” is extracted when the pixel value or in sequence is encountered.(b)Or else, the bit “” is extracted when the pixel value or in sequence is encountered, and the bit “” is extracted when pixel value or in sequence is encountered.(5)Reversibly recover the original sequence of every ROI block through an iteration of , , and itself: and , where is the elements of the sequence .

The reason why the thresholds in the receiving end are the same as the original one is that the embedding process-based histogram of difference image blocks causes little distortion to the original image, which can be ignored in the calculation of average energy of ROI blocks.

4. Experimental Results and Analysis

Three groups of test medical images with different sizes are presented in Figure 4. In Figure 4, the sizes of images for test are , , and in the three rows, respectively.

4.1. ROI Detection

For the tested images with different sizes, such as , , and , different sizes of blocks and different thresholds are utilized. The block size is equal to for images with size , and the threshold is ; the block size is equal to for images with size , and the threshold is ; the block size is equal to for images with size , and the threshold is . The test results are presented, respectively, in Figure 5. The regions marked white are used for information embedding. Different sizes and different shapes of ROI can be acquired with different parameters (block size and threshold) according to actual requirements. In Figure 5, subimages (a), (b), and (c) are the original medical images and their corresponding detected ROIs are subimages (d), (e), and (f).

4.2. Original Medical Image versus Image with Watermark

The original medical images and images after reversible data hiding are presented in Figure 6. In Figure 6, image (d) is the watermarked image of image (a), with 32 bits embedded into every block, and the total number of ROI blocks is 86. The PSNR between image (a) and image (d) is 58.82. Image (e) is the watermarked image of image (b), with 16 bits embedded into every block, and the total number of ROI blocks is 84. The PSNR between image (b) and image (e) is 57.85. Image (f) is the watermarked image of image (c), with 8 bits embedded into every block, and the total number of ROI blocks is 74. The PSNR between image (c) and image (f) is 60.16.

4.3. Embedding Capacity and PSNR of Medical Images with Different Sizes

The embedding capacity and the corresponding PSNR of different medical images of different sizes are presented in Tables 1, 2, and 3. Medical images of different sizes are divided into different blocks; therefore, the numbers of ROI blocks are different due to the block energy-based ROI detection method. Besides, the thresholds for ROI detection of different medical images are different too. According to our experiments, the proper amount of blocks of every medical image is 256 (i.e., ). Higher capacities with higher PSNR have been achieved compared with the scheme proposed in [16]. To ensure the reversibility, at least pixels are needed for one bit information in [13], which means that at most 256 bits can be embedded into one image with size , which is lower compared with the proposed scheme.

4.4. Encryption and Decryption

The experimental results of encryption and decryption are shown in Figures 7, 8, and 9. The watermarked medical images, their encrypted versions, their right decrypted versions, their wrong decrypted versions, and their corresponding histograms with sizes , , and are presented in the three groups of figures, respectively. It can be clearly seen that without the correct key, the decrypted images are random noise like pixels. In each group of images and their corresponding histograms, subimage (d) is the decrypted images with random streams. Subimage (e) is the decrypted images with wrong initial values, and only difference is introduced in the chaotic system. Actually, the initial values of hyperchaotic system are in the encryption while in the wrong decryption 2 the initial values are . Therefore, high sensitivity has been achieved through the hyperchaotic system.

4.5. Security Analysis

Fine encryption methods should resist different kinds of attacks, such as known-plain-text, cipher-text-only attack, differential attack, statistical attack, and various brute-force attacks [12]. Different security analyses are performed in the following.

(a) Key Space Analysis. Key space should be large enough to make brute-force attacks infeasible. In the proposed scheme, -bit rational numbers are selected for the generation of random sequences, which are large enough to resist all kinds of brute-force attacks.

(b) Correlation of Two Adjacent Pixels. In this section, correlation between two adjacent pixels is calculated by the following formulas; 4096 pairs of two adjacent horizontal pixels, two adjacent vertical pixels, and two adjacent diagonal pixels are randomly selected, respectively. Consider the following:

Figure 10 presents the correlation of im11 from Figure 4. The correlation of two adjacent pixels of the same row, of the same column, and of the same diagonal is presented, respectively. The correlation of the original image is presented in the first row, while correlation of the encrypted image is presented in the second row. The detail coefficients of im11, im21, and im31 from Figure 4 are presented in Table 4.

4.6. Special Features Compared with Existing Schemes

(a) Information Embedding into ROI of Medical Images. Existing watermarking or data-hiding schemes [1, 11, 12] for medical images embed information into RONI, which may cause no distortion to the ROI. However, these kinds of methods can only be applied in medical images with RONI, but usually there are large quantities of medical images that do not have RONI, and this may result in that the scheme is unable to be used. Another advantage of ROI embedding schemes is that little distortion will be caused to the image, which means that information hiding is imperceptible. Due to the embedding scheme based on histogram modification, the ROI detection process of information extraction and original image recovery can use the same threshold used in the information embedding process.

(b) Reversible Data Hiding with High Capacity and High PSNR. In the proposed reversible data-hiding scheme, histograms of difference image blocks are used. For medical images, distortion must be low after data hiding. The histogram-based schemes change the grey value of every pixel by one at most (increasing by one, decreasing by one, or remaining the same), which guarantees the high PSNR between the original image and its watermarked image. Besides, the height of peak point of histogram and number of peak-zero point pairs are both increased through a reasonable pixel-by-pixel scan pattern and the block-divide operation; thus, high capacity is achieved in the scheme. Thus, compared with [13, 14, 16], higher capacity and higher image quality are achieved after reversible data hiding. Scheme proposed in [3] can achieve high capacity; however, it is not reversible.

(c) Combination of Chaos-Based Encryption and Information Hiding. There are many schemes designed for privacy protection of medical images and their corresponding EHRs, most of which can be catalogued into two aspects: encryption and information hiding. Encryption schemes are extensively used in information communication and image transfer on public channels. In the proposed scheme, without the correct key, random like pixels will never be decrypted; even with a very small error, an entire different image will be decrypted. However, encrypted images’ transfer on the Internet may arouse other people’s attention, and the intruder may be stimulated to decrypt it. Thus, just encryption always makes it insecure for information transmission in some degree. Reversible data-hiding scheme can conceal the communication process of hidden information and thus has its inherent advantage in secure communication. The combination of encryption and information hiding offers a multilevel protection of information communication. Besides, different from existing joint encryption and data-hiding schemes [3, 8, 1316], the reversible data-hiding process is done before encryption.

4.7. Applications Based on the Proposed Scheme

The hidden data in the proposed scheme can be any digitalized information. Besides patients’ EHRs mentioned above, the information for authentication and protection of medical images can also be embedded with the proposed scheme. Thus, various kinds of applications can be implemented.

5. Conclusions

An encryption scheme frame for medical image with watermarking is proposed in this paper. Private medical information is embedded into ROI of medical images with a histogram-based reversible data-hiding scheme. The watermarked medical image is encrypted with a hyperchaotic system. In the receiver end, medical information can be extracted and the original medical image can be reversibly recovered. Compared with standalone encryption or watermarking scheme, the proposed scheme is a fusion of encryption and watermark, and it not only has large space of secret key, but it also has large capacity of watermark embedding. Experimental results testified the effectiveness of the scheme.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

The authors would like to thank the support from National Science Fund of China (Grant no. 60873117) and Key Program of Natural Science Fund of Tianjin (Grant no. 11JCZDJC16000), China.