neural-networks-meet-chaos:-new-image-encryption-scheme-promises-speed-and-security
Neural Networks Meet Chaos: New Image Encryption Scheme Promises Speed and Security

Neural Networks Meet Chaos: New Image Encryption Scheme Promises Speed and Security

Every day, billions of images travel across digital networks, many of them carrying information that must never fall into the wrong hands. Military reconnaissance photographs, medical scans, financial documents and biometric records all move through channels where unauthorized access, interception and manipulation are constant threats. Conventional encryption methods, designed primarily for text and general-purpose data, often struggle to keep pace with the sheer volume and redundancy of image data, which makes them slow, inefficient or vulnerable when applied to pixel arrays. A new study published in Neural Computing and Applications by Ebrahim Zarei Zefreh and Mohammad Heydari of the University of Isfahan’s Khansar Campus in Iran proposes an answer that fuses two seemingly unrelated tools: the chaotic mathematics of nonlinear dynamics and the pattern-recognition power of deep convolutional neural networks.

The scheme, named CNNHSIE, short for Convolutional Neural Network and Hyperchaotic System-based Image Encryption, is built around three core components. The first is a hyperchaotic system, a class of dynamical systems that exhibit not just one but multiple positive Lyapunov exponents, meaning their trajectories diverge exponentially in several independent directions at once. This extreme sensitivity to initial conditions makes hyperchaotic sequences ideal for generating pseudo-random matrices that look statistically indistinguishable from true noise to any observer who does not possess the exact initial values. In CNNHSIE, the hyperchaotic system produces the random matrix that drives both the scrambling of pixel positions and the alteration of pixel values, two operations that cryptographers call permutation and diffusion.

Permutation and diffusion are the twin pillars of image encryption. Permutation rearranges the positions of pixels so that the spatial structure of the original image is destroyed, while diffusion changes the actual pixel values so that even a single-bit change in the plaintext cascades through the entire ciphertext. Traditional schemes often perform these operations in separate, sequential passes, which can be computationally expensive and can leave exploitable structure behind. The Iranian researchers tackled this bottleneck with two novel techniques. The first, called HSPT for high-speed permutation technique, reorders pixels with an efficiency that dramatically reduces encryption time compared with conventional sorting-based or swapping-based permutation strategies. The second, DPDT for dynamic pixel diffusion technique, modifies pixel values in a way that adapts dynamically during the encryption process rather than following a fixed pattern, making it substantially harder for an attacker to model or reverse the transformation.

What sets CNNHSIE apart from many previous chaos-based cryptosystems is its incorporation of a convolutional neural network into the key-generation process. Specifically, the authors employ the VGG16 architecture, a deep convolutional network originally developed for large-scale image classification, to extract features from the plain image itself. These extracted features are then used to compute the public key. This design choice has an elegant consequence: the encryption key material is tied to the unique statistical fingerprint of each individual image, so even minor differences between two plaintext images lead to different key components. An attacker who obtains the ciphertext for one image gains no reusable shortcut for decrypting another, because the network-derived key material is image-specific and changes from one input to the next.

The researchers evaluated CNNHSIE rigorously using standard test images from the USC-SIPI image database, a widely used benchmark repository maintained by the University of Southern California, along with public datasets drawn from Radiopaedia, an open-access radiology resource, and Kaggle, the popular machine-learning data platform. The inclusion of medical imaging datasets is significant, because medical images are among the most sensitive classes of data transmitted over networks, and regulatory frameworks around the world impose strict confidentiality requirements on them. A scheme that performs well on both natural photographic images and clinical scans has a broader practical reach than one tested only on generic benchmarks.

The headline results are striking. For the standard 1024 by 1024 pixel test image known as Male, CNNHSIE achieved a unified average changing intensity, or UACI, of 33.4809 percent, a number that sits almost exactly at the theoretical ideal of 33.46 percent for a perfectly random-looking ciphertext. The number of pixels change rate, or NPCR, reached 99.6140 percent, meaning that when the encryption key was perturbed by even a minuscule amount, more than 99.6 percent of all ciphertext pixels changed value, the hallmark of extreme key sensitivity. The information entropy of the encrypted image measured 7.9998 bits out of a theoretical maximum of 8 bits for an 8-bit image, indicating that the distribution of pixel values in the ciphertext is essentially uniform and carries virtually no exploitable information about the original.

Correlation analysis told a similarly compelling story. Adjacent pixels in a natural image are almost always highly correlated, because neighboring pixels tend to have similar brightness values. Effective encryption must drive this correlation to zero in every direction, horizontal, vertical and diagonal. CNNHSIE produced ciphertexts with near-zero correlation coefficients across all tested directions, confirming that the permutation and diffusion stages thoroughly destroyed the statistical structure of the plaintext. Perhaps most importantly for real-world deployment, the scheme achieved these security metrics while encrypting the large 1024 by 1024 Male image in just 0.1216 seconds, a speed that places it firmly in the territory of real-time applications such as live video streaming, secure telemedicine consultations and on-the-fly transmission of surveillance imagery.

The authors report that CNNHSIE demonstrated the ability to resist a variety of common attacks, including the chosen-plaintext and known-plaintext attacks that plague weaker image cryptosystems. In a chosen-plaintext attack, an adversary deliberately encrypts specially crafted images to probe the internal workings of the algorithm; image-specific key material derived from the VGG16 feature extractor makes such probing far less informative, because the relationship between plaintext and key changes with every input. The combination of hyperchaotic pseudo-randomness, dynamic diffusion and neural key generation creates multiple independent layers of defense, so a weakness in any single layer does not compromise the whole system. High key sensitivity further ensures that brute-force attempts to guess the chaotic initial conditions face an astronomically large search space with no smooth gradient to follow.

This work sits within a rapidly growing research frontier that merges deep learning with chaos-based cryptography. Earlier efforts have explored DNA encoding schemes combined with fractional-order hyperchaotic systems, Latin square constructions, Joseph traversal and discrete Fourier transforms, and several groups have experimented with neural networks for key generation or ciphertext post-processing. Zefreh himself has a track record in this area, with prior publications on Latin square-based encryption and parallel diffusion-confusion cryptosystems. What distinguishes the new contribution is the explicit pairing of a proven, off-the-shelf feature extractor with high-speed permutation and dynamic diffusion, achieving a balance of security metrics and raw throughput that many earlier designs pursued separately rather than simultaneously.

The practical implications extend across the sectors where image confidentiality matters most. In healthcare, secure transmission of radiological images could protect patient privacy without adding perceptible latency to clinical workflows. In military and defense contexts, real-time encryption of reconnaissance imagery could reduce the window of vulnerability during transmission. In finance, encrypted document images could move through cloud infrastructure with stronger guarantees against tampering. The researchers note that data and code are available upon request from the corresponding author, which opens the door for independent verification and adoption by other laboratories. As digital image traffic continues its exponential growth, schemes like CNNHSIE, which treat speed and security as joint requirements rather than competing trade-offs, are likely to shape the next generation of multimedia security systems, and the marriage of chaotic dynamics with deep neural networks may prove to be one of the defining patterns of that evolution.

Subject of Research: A CNN and hyperchaotic system-based image encryption algorithm using high-speed permutation and dynamic diffusion

Article Title: CNNHSIE: CNN and hyperchaotic-based image encryption algorithm using high-speed permutation and dynamic diffusion

Article References: Zarei Zefreh, E., & Heydari, M. (2026). CNNHSIE: CNN and hyperchaotic-based image encryption algorithm using high-speed permutation and dynamic diffusion. Neural Computing and Applications, 38(17), Article 722. https://doi.org/10.1007/s00521-026-12419-y

Image Credits: AI Generated

DOI: 10.1007/s00521-026-12419-y

Keywords: image encryption, convolutional neural network, hyperchaotic system, VGG16, permutation, diffusion, cryptography, information entropy, NPCR, UACI, medical imaging security, deep learning