Open Access
ARTICLE
A Dual-Neuron Memristor Hopfield Neural Network with Controllable Multiple Equilibrium Points: Dynamical Analysis, FPGA Implementation, and Image Encryption Application
1 School of Information and Electrical Engineering, Hunan University of Science and Technology, Xiangtan, China
2 School of Information Engineering, Changsha Medical University, Changsha, China
3 School of Electrical and Information Engineering, Hunan Institute of Technology, Hengyang, China
4 School of Computer and Communication Engineering, Changsha University of Science and Technology, Changsha, China
* Corresponding Author: Jie Jin. Email:
(This article belongs to the Special Issue: Applied Cryptography and Privacy-Enhancing Technologies for Secure Digital Infrastructures)
Computers, Materials & Continua 2026, 89(2), 71 https://doi.org/10.32604/cmc.2026.085516
Received 12 May 2026; Accepted 27 July 2026; Issue published 15 September 2026
Abstract
To address the issues of multi-neuron architectures, high parameter redundancy, and complex hardware implementation in existing memristive Hopfield neural networks (MHNN) for image encryption, a simple structure dual-neuron memristive Hopfield neural network (DNMHNN) modulated by multifrequency square waves is proposed in this study. The proposed DNMHNN model consists of only two neurons and one memristor, and by introducing dual-frequency square-wave external excitation into the memristor, the dynamical behavior of the DNMHNN model can be flexibly regulated. The simulation results verify that the proposed DNMHNN model can generate stable chaotic behavior over a wide parameter range. Furthermore, the DNMHNN is also implemented on a Zynq-7000 FPGA platform, and the experimental results are highly consistent with the numerical simulations, demonstrating the feasibility and stability of the DNMHNN model in practical hardware applications. On this basis, a DNMHNN-based image encryption algorithm with pixel permutation, XOR substitution, and bidirectional ciphertext-feedback diffusion is designed using chaotic sequences generated by the DNMHNN model. Security analysis indicates that the DNMHNN-based image encryption algorithm exhibits strong performance in histogram distribution, correlation reduction, information entropy, NPCR, UACI, key sensitivity, and resistance to noise, occlusion, tampering, and differential attacks, which is further verified by quantitative robustness metrics including MSE, PSNR, SSIM, and recovered-image correlation. The results demonstrate that the proposed dual-neuron memristive DNMHNN maintains a simple structure while preserving rich chaotic dynamical properties. Therefore, it provides an effective chaotic key source for lightweight image encryption and edge secure computing.Keywords
Artificial neural networks have demonstrated strong capabilities in learning, association, and parallel information processing, motivating the development of various neural-network architectures and their dynamical models [1]. Among the myriad of neural network architectures, the Hopfield neural network (HNN) stands as a quintessential exemplar bridging “neural computation—nonlinear dynamics—engineering applications”, owing to its energy function framework and associative memory capabilities [2,3]. Concurrently, memristors, nonlinear devices characterized by “state-dependent conductance/resistance” and “historical memory” properties, have furnished a fundamental physical basis for fabricating neuromorphic circuits exhibiting synaptic plasticity and complex dynamics since the theoretical conception of memristive systems by Chua [4,5]. The subsequent realization of nanoscale memristive devices further validated the engineering feasibility of the memristive effect, thereby catalyzing extensive research into memristors for in-memory computing and neuromorphic hardware applications [6–8].
In recent years, the integration of memristors and other mem-elements, such as memdiodes and discrete memristive elements, into the synaptic coupling or self-feedback pathways of HNNs has demonstrably enhanced complex behaviors such as multistability, hidden attractors, multi-scroll/multi-wing structures, and initial condition modulation [9–11]. This has positioned memristive HNNs (MHNN) as significant dynamical sources capable of generating high-complexity chaotic sequences, including memdiode-driven HNNs for medical-volume encryption and discrete MHNNs for FPGA-oriented image security [12–15]. Notably, phenomena like “initial-offset/spatial-offset coexisting attractors” have introduced novel mechanisms for constructing numerous distinguishable attractor families within a single parameter set, thereby providing theoretical underpinnings for key space expansion, sequence diversity enhancement, and controllable complexity design [16–18]. Concurrently, recent studies have demonstrated the potential of MHNNs in nonlinear dynamics and information-security applications [19,20].
From an engineering implementation perspective, the successful high-speed, parallel, and reproducible experimental validation of chaotic/hyperchaotic neural networks on programmable platforms like FPGAs would significantly enhance their deployability in edge devices and embedded security computing [21–24]. On the application side, the inherent initial value sensitivity, ergodicity, and pseudo-randomness of chaotic systems and neural network output sequences make them widely adopted for permutation and diffusion key stream generation in image encryption. Numerous studies have demonstrated encryption schemes for color and medical images, including medical-image transmission, wireless-sensor-network image protection, and lightweight communication-oriented image encryption, utilizing Hopfield networks, memristive chaotic systems, and their variants [25–28]. The practicality of these approaches has been validated through metrics such as information entropy, correlation, NPCR/UACI, and robustness against noise and occlusion [29–33]. Furthermore, research has begun to directly address the feasibility of two-neuron HNNs in dynamics and image encryption, suggesting that a valuable trade-off space may exist between low-dimensional structures and the realization of complex dynamics vs. simplified hardware costs [34,35]. Comprehensive reviews on memristive chaotic image encryption have also highlighted that, under the guarantee of security, reducing system dimensionality, minimizing parameter count, and improving implementability are key directions for future deployable solutions [36].
Despite these efforts and recent progress in memdiode-driven CT encryption and discrete MHNN-based industrial image encryption, a significant structural gap persists in the current research landscape. A substantial body of cryptographic investigation into MHNNs has predominantly focused on architectures with three or more neurons. This focus aims to harness the “inherent complexity” arising from higher dimensionality, yet it concurrently introduces challenges such as parameter redundancy, increased implementation complexity, and augmented hardware resource overhead [36]. In contrast, more compact, two-neuron MHNNs, if capable of exhibiting stable and reproducible chaotic dynamics under external stimuli or parameter modulation (e.g., multi-frequency switching signals), and subsequently undergoing FPGA-level validation for high-security image encryption applications, could establish a more practically engineered balance among “dynamical complexity, key controllability, and hardware implementability”. This would, in turn, offer a more streamlined and deployable chaotic key generation and encryption framework for lightweight information security and edge intelligence applications [36]. Specifically, recent mem-element HNN encryption schemes have achieved strong security performance, but many of them rely on three-neuron/four-dimensional structures, fractional-order models, DNA/S-box operations, or application-specific medical-volume encryption. Therefore, the motivation of this study is to investigate whether a dual-neuron, MHNN can simultaneously provide controllable multiple equilibrium points, reproducible chaotic dynamics, FPGA implementability, and competitive image-encryption performance.
On the basis of the preceding analysis, this work establishes a three-dimensional DNMHNN with a controllable number and distribution of equilibrium points. Specifically, the proposed model possesses multiple unstable equilibrium points, and its chaotic behaviors are systematically examined using several standard dynamical analysis methods. The resulting dynamics are further reproduced through FPGA implementation, with the experimental results showing good agreement with the numerical simulations. Moreover, an image encryption algorithm is designed based on the proposed DNMHNN, with its security and feasibility validated through comparative analyses involving key sensitivity, histogram characteristics, correlation coefficients, information entropy, and noise attacks.
The remainder of this paper is organized as follows. Section 2 develops the DNMHNN model composed of one memristor and two neurons. Section 3 presents a detailed investigation of the equilibrium points of the DNMHNN, analyzes and simulates its dynamic behaviors under different conditions. Section 4 further confirms the chaotic dynamics of the DNMHNN through FPGA-based implementation. Section 5 designs and validates a new chaotic image encryption scheme derived from the presented DNMHNN. Section 6 concludes the paper.
This section develops a voltage-controlled memristor model as a non-smooth system driven by multi-frequency signals, analyzes its memory effects and
2.1 The Designed Voltage-Controlled Memristor
This subsection investigates a class of non-smooth memristive systems modulated by multi-frequency switching signals, whose dynamical behaviors are described by first-order nonlinear differential equations. The system, composed of external AC voltage excitation, internal state variables, and state-dependent nonlinear admittance, exhibits significant memory effects and current-voltage hysteresis characteristics. The relationship between voltage, output current, and internal state variables can be clearly observed through its mathematical expression, laying the foundation for further experimental design and theoretical analysis. Specifically, the mathematical expression for the memristor model is presented below.
where the parameter
For the branch
Here,
By combining the above equations, the designed model can be identified as a type of non-smooth memristive system. As its internal state continuously changes in response to external excitation, the system displays characteristic hysteresis loops in the

Figure 1: Memristor clamping hysteresis loops. (a) The trajectory of the pinched hysteresis loop with a constant input voltage amplitude of
Moreover, the
2.2 The Constructed DNMHNN Model
HNNs are a foundational type of neural network widely studied in network research for their unique ability to perform pattern recognition and support associative memory. Each HNN consists of interconnected neurons that collectively form a mathematical model capable of storing and recalling patterns efficiently. This baseline model demonstrates the efficacy of HNNs in various applications, from cognitive computing to optimization problems, making them a critical component in understanding and advancing neural network architectures. Generally, the mathematical formulation of a baseline HNN model is expressed as follows:
where
A MHNN can be developed from the classical HNN to better describe complex neural interactions and nonlinear memory effects. In this dual-neuron model, the memristor is introduced as a key element for synaptic coupling, enabling bidirectional interaction between neurons and improving the network’s ability to represent adaptive connections. Owing to the state-dependent properties of the memristor, the proposed structure exhibits rich dynamic behavior under different operating conditions. Meanwhile, the activation function plays an essential role in determining the nonlinear response of each neuron, while the external stimulation current further affects the internal evolution of the system. Through this mechanism, the network enhances information processing capability and provides a useful framework for studying neural dynamics and memristive computation. Based on the aforementioned baseline HNN model and the described memristors, the proposed DNMHNN model is illustrated in Fig. 2.

Figure 2: Topological structure of the DNMHNN model.
The proposed DNMHNN model has two neurons labeled as N1 and N2, each represented by a circular node. The self-connections
To facilitate both analytical and numerical computations, the membrane capacitances of the neurons are standardized as
3 Dynamical Analysis of the DNMHNN Model
This section systematically investigates the DNMHNN model by identifying equilibrium points and analyzing their stability, generating phase-space diagrams to visualize dynamic behavior, and employing bifurcation diagrams along with Lyapunov exponents to examine chaotic and periodic transitions under varying parameters, thereby providing a comprehensive understanding of the system’s complex dynamics and parameter-dependent behavior.
3.1 Equilibrium Points and Stability Analysis of the DNMHNN Model
Equilibrium points and their stability play a pivotal role in understanding the chaotic states of dynamic systems, and stability issues have also been recently extended to generalized neural-network models such as Clifford-valued neural networks with time-varying delays [37]. The procedure for determining the equilibrium points of the DNMHNN model is outlined as follows:
Step 1: The equilibrium equations are formulated for the time-independent equilibrium points of the DNMHNN model. It should be clarified that the proposed DNMHNN model is non-autonomous due to the square-wave excitation
Thus, the time-varying excitation term vanishes identically at these points, regardless of the instantaneous value of
Here,
where
Step 2: To enhance the coverage of multiple solutions, a set of initial points is constructed based on the principle of “perturbation in the neighborhood of critical points”. This is achieved by pre-selecting a group of critical center values along the
Step 3: An improved Newton-Raphson iteration is independently performed for each initial point
Here,
If
To mitigate overshoot and divergence under strong nonlinearity, the algorithm incorporates a simplified line search (damping strategy). Initially, it attempts a full step update with
Step 4: Validation and deduplication of results from all initial values. The program not only requires the iterative process to meet convergence criteria but also imposes a strict residual test (e.g.,

For the time-independent equilibrium points obtained in this work, one has
Using the parameters of the proposed model, the eigenvalues are recalculated as
To further clarify the controllability of the multiple equilibrium points, the relationship between the branch-control parameters
For the branch
For the branch
For the branch
The above analytical results show that the number and spatial locations of equilibrium points can be explicitly controlled by

It can be seen from Table 2 that, in the branch

Figure 3: The spatial distribution of multiple equilibrium points of the system solved by the Newton-Raphson method under different conditions of M and N, specifically for (a)
Finally, after obtaining the set of equilibrium points in Table 1, the program performs a linearization stability analysis for each equilibrium point. Specifically, the Jacobian matrix
3.2 Phase Diagram of the DNMHNN Mode
In this subsection, we conduct a dynamical analysis of the DNMHNN model using phase-space analysis. A MHNN can be developed from the classical HNN to better describe complex neural interactions and nonlinear memory effects. In this dual-neuron model, the memristor is introduced as a key element for synaptic coupling, enabling bidirectional interaction between neurons and improving the network’s ability to represent adaptive connections. Owing to the state-dependent properties of the memristor, the proposed structure exhibits rich dynamic behavior under different operating conditions. Meanwhile, the activation function plays an essential role in determining the nonlinear response of each neuron, while the external stimulation current further affects the internal evolution of the system. Through this mechanism, the network enhances information processing capability and provides a useful framework for studying neural dynamics and memristive computation.
During the simulation, the memristor parameters were assigned as

Figure 4: The 3D phase diagrams, planar phase diagrams, and time-domain plots for the DNMHNN model (5) under varying
3.3 Dynamics Analysis of Bifurcation Diagrams and Lyapunov Exponents of the DNMHNN Model
Bifurcation diagrams and Lyapunov exponents serve as essential tools in the analysis of dynamical systems, providing insight into the system’s dynamic characteristics and revealing its evolution patterns over time. By applying these methods, researchers can investigate how variations in parameters influence the system state, and how such changes affect overall system behavior. This approach allows for a detailed examination of complex dynamics, making bifurcation diagrams and Lyapunov exponents invaluable in understanding and analyzing dynamical systems.
Lyapunov exponents provide a quantitative measure of how trajectories within a system diverge or converge over time. Specifically, the largest Lyapunov exponent serves as a key indicator: if it is positive, the system is considered to be in a chaotic state, demonstrating sensitivity to initial conditions and significant trajectory divergence. Conversely, if the largest exponent is negative or zero, the system may exhibit a periodic state or remain in a non-chaotic condition, with trajectories converging or maintaining overall system stability. These exponents thus offer a numerical foundation for distinguishing between chaotic and stable behaviors within a system.
Bifurcation diagram analysis provides a visual method for observing system transitions, illustrating how neuronal state values change as parameters vary. Within certain parameter ranges, if the state values form discrete points arranged in a closed loop, the system is identified as being in a periodic state. In contrast, when the neuronal state values appear as dense, continuous points filling an interval, the system exhibits chaotic behavior. This approach effectively captures the evolution from simple to complex dynamics and clearly distinguishes between periodic and chaotic states.
Fig. 5 presents the Lyapunov exponents of the DNMHNN model (5) over time

Figure 5: The Lyapunov exponents of model (5) vs. coupling strength
To ensure the reproducibility of the Lyapunov exponent calculation, the numerical procedure used in this work is described in detail as follows. The Lyapunov exponents of the DNMHNN model were computed using the standard Benettin method with periodic QR reorthonormalization. For each selected value of the coupling strength
where
The system was numerically integrated using the stiff solver ode15s, since the memristive nonlinear function and the square-wave excitation introduce nonsmooth and potentially stiff dynamics. The total simulation time was set to
The Jacobian matrix required by the variational equations was evaluated along the numerical trajectory. For the smooth terms, the derivatives were calculated directly or equivalently approximated by finite differences. For the nonsmooth memristive terms containing the sign function, the derivative was evaluated piecewise away from the discontinuity points. The singular contributions exactly at the switching thresholds were not included in the state Jacobian, because these points form a set of measure zero in the time integration.
The non-autonomous square-wave excitation was treated as a prescribed time-dependent input. It is expressed as
Since this excitation is independent of the state variables, it enters the variational equations only through its instantaneous value in the vector field and does not introduce additional state-dependent Jacobian terms. To handle the discontinuities of the square-wave excitation accurately, the integration interval was divided at the switching instants
To investigate the stability and chaotic characteristics of the DNMHNN model, we analyzed its Lyapunov exponents and bifurcation diagrams while varying the memristor coupling strength within the range

Figure 6: The bifurcation diagram (top) and Lyapunov exponents (LEs) (bottom) of the proposed DNMHNN model (5).
Fig. 6 shows that the DNMHNN model exhibits parameter-dependent transitions between periodic and chaotic dynamics as the coupling parameter
The analysis of model (5) reveals not only the presence of periodic bifurcations but also the emergence of complex dynamic behaviors within the system. By systematically examining how variations in key parameters affect the network, the study provides a thorough understanding of the DNMHNN’s system behavior. These insights support a detailed bifurcation analysis and dynamic analysis, highlighting the interplay between different parameters and the resulting system dynamics, and offering a comprehensive perspective on the network’s overall performance and stability.
4 FPGA Implementation of the DNMHNN Model
With the rapid advancement of integrated circuits, modern FPGAs featuring high memory bandwidth, fast multiply-accumulate units, and versatile I/O peripherals support high-speed parallel processing. These capabilities make it possible to satisfy the intensive computation requirements, allowing the proposed DNMHNN model to be efficiently implemented on an FPGA platform.
The AX7020 development board, based on the Xilinx Zynq-7000 SoC, integrates a dual-core ARM Cortex-A9 processor with FPGA programmable logic, providing a versatile platform for implementing complex neural network models such as the DNMHNN. Equipped with rich peripheral interfaces, including DDR3 memory, QSPI Flash, DAC modules, and HDMI output, the board facilitates high-speed data acquisition, processing, and visualization. Complementing the FPGA, a dual-channel 14-bit DAC module (AN9767) enables high-speed digital-to-analog conversion, supporting precise output signal generation for real-time observation and measurement. The entire design and deployment process is managed using Xilinx Vivado, which allows for efficient synthesis, implementation, and debugging of FPGA logic, facilitating real-time parallel processing, accurate timing control, and seamless hardware-software co-design. Together, this combination of AX7020, AN9767, and Vivado ensures high-speed, accurate, and reliable execution of memristive neural network models.
In the experimental setup, a 50 MHz clock provided by the PS system, corresponding to a clock period of 20 ns, was employed. Two memory blocks were reserved for storing the digitized signals after each iteration. Once the iterations were completed, the stored digital signals were converted to analog using the AN9767 chip, with an output voltage range of
The FPGA implementation experiments of DNMHNN model (5) are presented in Fig. 7. Fig. 7a1–d1 illustrates the FPGA hardware configurations corresponding to different dynamical trajectories of the DNMHNN model, while Fig. 7a2 shows the dynamic trajectory of the DNMHNN model on the X–Y orthogonal plane. Fig. 7b2–d2 displays the dynamical trajectories under the conditions of

Figure 7: FPGA implementation and oscilloscope observations of the DNMHNN model. (a1–d1) FPGA experimental setups corresponding to the dynamical trajectories shown in (a2–d2), respectively. (a2) Phase trajectory of the DNMHNN model on the

As shown in Table 3, the FPGA implementation satisfies timing closure under the original 50 MHz clock setting, while the resource utilization and power consumption remain acceptable for the Zynq-7000 platform. Moreover, the small numerical error between the numerical and FPGA outputs indicates that the hardware implementation can reproduce the DNMHNN dynamics. Therefore, the FPGA results are supported not only by qualitative waveform agreement, but also by quantitative resource, timing, power, throughput, and error-performance evaluations. By mapping the complicated mathematical operations of the chaotic system into FPGA-based hardware logic, this study not only confirms the practicality of the proposed design in physical realization, but also establishes a feasible technical foundation for engineering applications such as chaotic signal generation and secure communication modules.
5 The DNMHNN-Based Image Encryption Scheme
Due to the rich dynamic and memory properties of the above proposed DNMHNN model, a DNMHNN-based image encryption algorithm is designed in this section.
5.1 The Designed DNMHNN-Based Image Encryption Algorithm
Based on the above DNMHNN model, a DNMHNN-based image encryption algorithm is designed and presented in Fig. 8. The encryption system comprises four functional blocks: (1) chaotic sequence generator; (2) permutation module; (3) substitution module; (4) bidirectional ciphertext-feedback diffusion module. The methodology for both encryption and decryption is presented in the following description.

Figure 8: Flowchart of the designed DNMHNN-based image encryption algorithm.
Step 1: Chaotic sequence generator. Pseudorandom sequence generation for the image encryption process begins by reading a color plaintext image
It should be noted that
Although the modulo operation with respect to the image height may lead to repeated values in
Step 2: Permutation module. This module is designed to create permutation boxes for image scrambling. The chaotic key sequence
Step 3: Substitution module. This module performs pixel substitution on the permuted image. The sequence
Step 4: Bidirectional ciphertext-feedback diffusion module. To improve the diffusion capability of the proposed encryption scheme, a bidirectional ciphertext-feedback diffusion stage is added after the permutation-XOR substitution operation. Let
The forward diffusion process is defined as
Then, the backward diffusion process is performed as
Finally, the one-dimensional sequence
5.2 Security Analysis of the DNMHNN-Based Encryption Algorithm
In the experiment, the DNMHNN model was operated with the parameter values

Figure 9: Encryption results and histogram analysis. (a) Plaintext image. (b) Histogram of the plaintext image. (c) Cipher image. (d) Histogram of the cipher image. The red, green, and blue curves in (b,d) represent the R, G, and B channels, respectively.
As shown in Fig. 9, the histogram of the encrypted image exhibits a near-uniform distribution, with the intensity levels in each color channel occurring with approximately equal frequencies, which demonstrates that the encryption process achieves effective pixel scrambling. Such a distribution significantly weakens the usefulness of statistical analysis and reduces the feasibility of a histogram attack by an adversary. Therefore, the encrypted image shows enhanced security, since the histogram reveals little exploitable information about the original image or the underlying encryption process.
Histogram variance is used to quantitatively evaluate the uniformity of the image histogram. For a well-encrypted image, the occurrence frequencies of different intensity levels should be approximately equal, resulting in a small histogram variance. Therefore, a smaller histogram variance indicates a more uniform cipher-image histogram and stronger resistance to histogram-based statistical attacks.
In our experiments, the histogram variance was calculated for each RGB channel before and after encryption, and the corresponding results are summarized in Table 4. As shown in Table 4, the histogram variances of the R, G, and B channels decrease from 961,108.72, 455,944.37, and 507,213.75 in the plaintext image to 859.73, 1104.91, and 1002.39 in the cipher image, respectively. This substantial reduction indicates that the occurrence frequencies of the different intensity levels become much more uniform after encryption. The quantitative results are consistent with the near-uniform cipher-image histogram shown in Fig. 9. Therefore, the proposed encryption algorithm effectively suppresses the statistical characteristics of the plaintext image and improves its resistance to histogram-based attacks.

In addition to histogram variance, MD, ID, and UHD are further calculated to evaluate the encryption/decryption quality from the viewpoint of plaintext-cipher deviation and cipher-histogram uniformity. MD measures the deviation between the plaintext image and the cipher image, ID reflects the irregularity of the deviation distribution, and UHD measures the deviation between the cipher-image histogram and the ideal uniform histogram. As shown in Table 5, the average MD, ID, and UHD values are 261,617.5000, 150,554.0000, and 0.025927, respectively. The large MD value indicates that the cipher image is significantly different from the plaintext image, while the small UHD value shows that the cipher-image histogram is close to a uniform distribution. These results further verify the good encryption quality and statistical attack resistance of the proposed encryption algorithm.

In a plaintext image, adjacent pixels generally exhibit strong pixel correlation in the horizontal direction, vertical direction, and diagonal direction because neighboring regions usually contain similar structural and intensity information. Such inherent statistical dependence provides potential clues about the image content and may be exploited by adversaries to perform cryptanalytic attacks or infer the encryption key. For this reason, an effective and secure encryption scheme should thoroughly destroy these correlations during the encryption process, so that the adjacent pixels in the encrypted image become nearly independent of one another. By significantly reducing the pixel correlation in all principal directions, the encrypted image can better resist statistical analysis and offer stronger protection for confidential visual information.
A total of 10,000 neighboring pixel pairs were randomly sampled, and their correlation distributions along the horizontal, vertical, and diagonal directions were depicted in Fig. 10. In Fig. 10, the red, green, and blue correspond to the R, G, and B channels, respectively.

Figure 10: Image correlation analysis. (a–c) denote the horizontal, vertical, and diagonal correlations of the plaintext images, respectively. (d–f) represent the horizontal, vertical, and diagonal correlations of the encrypted images, respectively.
As shown in Fig. 10, the adjacent pixels in the plaintext images demonstrate strong correlations across all three channels and directions, whereas pixels in the encrypted image are randomly distributed across different channels and directions. This result demonstrates that the encryption algorithm effectively eliminates the inter-pixel correlation inherent in the original image. Consequently, adversaries encounter much greater difficulty in performing image recovery or extracting useful information, which further improves the overall security of the encryption scheme.
To further quantitatively analyze the correlation between the plaintext and encrypted images, the dependence among adjacent pixels is quantitatively examined by using Pearson’s correlation coefficient and the distance correlation coefficient. The analysis is carried out for the original image and the encrypted image in the horizontal direction, vertical direction, and diagonal direction. In general, the adjacent pixels of the original image exhibit strong linear dependence, so their correlation values are usually close to 1, whereas the corresponding values of the encrypted image should be close to 0, indicating that the encryption process effectively weakens the statistical relationship between neighboring pixels. The formula for calculating the Pearson correlation coefficient is as follows:
The computed Pearson correlation coefficients for the aforementioned image are summarized in Table 6. As can be observed from the data in Table 6, the correlation coefficients of the plaintext image remain extremely close to 1, indicating a strong statistical dependence between adjacent pixels in the original image. In contrast, the corresponding coefficients of the encrypted image are all very close to 0, which suggests that the encryption process effectively destroys the inherent linear correlation among neighboring pixels. This clear difference between the plaintext and encrypted results further demonstrates that the proposed encryption algorithm possesses a strong capability to resist correlation-based statistical analysis, thereby confirming its high level of security.

5.2.3 Information Entropy Analysis
Information entropy is a fundamental concept in information theory used to measure the uncertainty, randomness, or average information content of a data source. It was originally proposed by Claude Shannon and is widely applied in communication systems, signal processing, data compression, and cryptography. In the context of image encryption, information entropy is commonly used to evaluate the randomness of pixel distributions in an encrypted image. A higher entropy value indicates that the pixel values are distributed more uniformly and randomly, which generally implies stronger resistance against statistical attacks. For a discrete random variable with possible outcomes
For an 8-bit RGB image, each color channel contains 256 possible intensity levels, and the ideal information entropy of each channel is 8 bits per channel when all intensity levels have equal probability. Therefore, when the entropy of an encrypted image approaches the theoretical ideal value, the encryption scheme is usually considered to exhibit good security performance. The calculated information entropy of the aforementioned image is presented in Table 7. As can be seen from Table 7, the entropy value of the encrypted image is highly close to the theoretical optimal maximum of 8, which indicates that the encryption algorithm effectively increases the randomness of the image and correspondingly lowers its predictability.

5.2.4 Robustness Analysis and Quantitative Evaluation
Robustness analysis refers to the evaluation of whether a system, model, or algorithm can maintain stable performance and reliable functionality when subjected to disturbances, uncertainties, noise, parameter variations, or partial data loss. In the context of image encryption, robustness analysis is commonly used to examine whether the encrypted or decrypted image can still preserve acceptable visual quality and information integrity under attacks such as noise contamination, cropping, data loss, or transmission errors. A robust encryption scheme should not only provide high security under ideal conditions, but also retain a certain level of resistance and recovery capability in non-ideal environments. Therefore, robustness analysis serves as an important criterion for assessing the practical applicability and stability of an encryption algorithm.
To further evaluate the robustness of the proposed DNMHNN-based image encryption algorithm, quantitative metrics are introduced in addition to visual inspection. In this work, the decrypted image obtained from the attacked cipher image is compared with the original plaintext image. Four commonly used image quality indicators are adopted: mean square error (MSE), peak signal-to-noise ratio (PSNR), structural similarity index measure (SSIM), and recovered-image correlation coefficient. MSE measures the pixel-level error between the original and recovered images, PSNR evaluates the reconstruction quality in logarithmic scale, SSIM evaluates the structural similarity between two images, and the recovered-image correlation coefficient measures their linear similarity. Lower MSE and higher PSNR, SSIM, and correlation values indicate better recovery quality and stronger robustness.
For the original plaintext image
The recovered-image correlation coefficient is calculated as follows:
In addition, SSIM is adopted to evaluate the structural similarity between
Fig. 11 displays the decryption results after occluding 1/25, 1/16, and 1/4 of the encrypted images. Fig. 12 illustrates the decryption outcomes after adding varying intensities of noise to the encrypted images. Fig. 13 presents the decryption results after randomly tampering with 10%, 30%, and 50% of the pixel values in the encrypted images. In addition to the visual results, the corresponding quantitative robustness results are listed in Tables 8–10. As shown in these tables, the recovery quality decreases markedly as the attack intensity increases. Measurable similarity is retained under some partial-damage conditions, particularly under occlusion; however, severe noise and tampering result in substantial reconstruction degradation. Therefore, the recovery performance of the proposed scheme is dependent on the attack type and intensity.

Figure 11: Decryption results after masking 1/25, 1/16, and 1/4 of the encrypted image.

Figure 12: Decryption results after adding noise of varying intensities to the encrypted image.

Figure 13: Decryption results after randomly tampering with 10%, 30%, and 50% of the pixel values in the encrypted image.



5.2.5 Differential Attack and Key Sensitivity Analyses
In image encryption, a secure cryptosystem should be highly sensitive to slight changes in the plaintext and secret key. To evaluate the resistance of the proposed scheme against differential attacks, the number of pixels change rate (NPCR) and the unified average changing intensity (UACI) are adopted. NPCR measures the percentage of different pixels between two cipher images, while UACI measures the average intensity difference between them.
For two cipher images
Then, NPCR and UACI are calculated as
To visually illustrate the effect of the added bidirectional ciphertext-feedback diffusion stage, the encryption and decryption results are presented in Fig. 14. The original permutation-XOR algorithm can produce a noise-like cipher image, while the final cipher image after the external diffusion stage exhibits stronger visual randomness. When only one pixel of the plaintext image is changed, the corresponding final cipher image becomes completely different from the original final cipher image. In addition, when the perturbed key is used for decryption, the recovered image is noise-like and contains no meaningful visual information. These visual results are consistent with the NPCR, UACI, and key sensitivity results reported in Tables 11 and 12.

Figure 14: Visual results of the external diffusion and key sensitivity tests. (a) Original image. (b) Cipher image generated by the original permutation-XOR algorithm. (c) Final cipher image after bidirectional ciphertext-feedback diffusion. (d) Correctly decrypted image. (e) Final cipher image after one-pixel plaintext change. (f) Wrong-key decrypted image.


For an 8-bit random image, the ideal reference values of NPCR and UACI are approximately
First, plaintext sensitivity was tested. Only one pixel of the plaintext image was modified by increasing its value by 1, while the secret key remained unchanged. The original plaintext image
Second, encryption key sensitivity was tested. The original key
Third, decryption key sensitivity was evaluated. The correct cipher image

The above results verify that the revised DNMHNN-based image encryption algorithm is highly sensitive to both plaintext and secret key changes. A tiny modification in the plaintext or a
5.2.6 Comparison with Existing Image-Encryption Schemes
To further evaluate the performance of the proposed DNMHNN-based encryption scheme, its principal security indicators are compared with those of several recently reported image-encryption algorithms. Table 14 presents a comparison in terms of information entropy, NPCR, and UACI. For an 8-bit image, the ideal values of information entropy, NPCR, and UACI are 8, 99.6094%, and 33.4635%, respectively. The proposed scheme achieves an average information entropy of 7.9993, an NPCR of 99.6981%, and a UACI of 33.4601%. The absolute deviation from the ideal entropy value is only 0.0007 bits/pixel, while the deviation from the ideal UACI value is 0.0034 percentage points. These results indicate that the proposed scheme provides a nearly uniform cipher-pixel distribution and a strong avalanche effect.
As shown in Table 14, the NPCR and UACI values of the proposed scheme are comparable to those reported for recent hyperchaos-, dynamic-DNA-, and fractional-chaos-based encryption schemes. In particular, the proposed UACI value is very close to the theoretical reference of 33.4635%. Although the proposed NPCR is slightly higher than the theoretical expectation, it remains within the range commonly reported for secure image-encryption algorithms. Therefore, a one-pixel modification in the plaintext can propagate to almost all pixels in the final cipher image.
Table 15 further compares the reconstruction quality under ciphertext cropping or occlusion attacks. Because PSNR and SSIM are affected by image content, image resolution, color-channel processing, cropping position, and the diffusion structure, only results obtained under approximately the same ciphertext-loss ratio are included. The PSNR of the proposed scheme is 14.4500 dB when one quarter of the cipher image is occluded, which is comparable to the values of 14.4552–14.6848 dB reported by the comparison schemes. Moreover, the proposed scheme provides an SSIM of 0.22571 and a recovered-image correlation coefficient of 0.70697, confirming that recognizable structural information can still be recovered after 25% ciphertext loss.
Most of the compared studies report PSNR but do not provide SSIM under the same cropping condition. Therefore, the unavailable SSIM entries are denoted by “N/R” rather than being inferred from PSNR. This distinction is important because PSNR measures pixel-level error, whereas SSIM evaluates structural similarity, and the two indicators are not interchangeable. Overall, the comparative results show that the proposed scheme provides competitive robustness while additionally offering quantitative structural-similarity and recovered-correlation evaluations.
In this paper, a novel three-dimensional dual-neuron memristive Hopfield neural network (DNMHNN) with a controllable number and distribution of equilibrium points has been constructed by incorporating a nonlinear memristor into the synaptic coupling of a classical Hopfield neural network. The proposed model exhibits rich nonlinear characteristics and complex dynamical behaviors due to the state-dependent properties of the memristor and the multi-threshold non-smooth function. Through equilibrium analysis and stability investigation, it is demonstrated that the system possesses multiple coexisting equilibrium points, all of which are unstable saddle points, thereby providing a theoretical basis for the emergence of complex dynamics.
Comprehensive dynamical analyses, including phase-space trajectories, bifurcation diagrams, and Lyapunov exponent spectra, have been conducted to explore the system behavior under different parameter conditions. The results reveal that the DNMHNN model exhibits chaotic dynamics, period-doubling bifurcations, and transitions between ordered and disordered states. In particular, the coexistence of positive and negative Lyapunov exponents confirms the presence of mixed dynamic characteristics, highlighting the intrinsic complexity and sensitivity of the system to initial conditions and parameter variations.
Furthermore, the feasibility of hardware implementation has been verified by deploying the DNMHNN model on an FPGA platform. The experimental results obtained from the hardware system are highly consistent with the numerical simulations, which validates the correctness of the model design and demonstrates its practical applicability. This implementation also establishes a reliable framework for real-time chaotic signal generation and lays a solid foundation for engineering applications in secure communication and embedded systems.
Based on the proposed DNMHNN model, a novel image encryption scheme has been designed by exploiting the chaotic sequences generated from the system. The encryption algorithm integrates permutation, XOR substitution, and bidirectional ciphertext-feedback diffusion operations to achieve effective confusion and diffusion. Extensive security analyses, including histogram distribution, correlation coefficients, information entropy, NPCR, UACI, key sensitivity, and robustness tests, indicate that the encrypted images exhibit near-uniform histograms, low pixel correlations, entropy values close to the theoretical maximum of 8, strong plaintext and key sensitivity, and strong resistance against noise, occlusion, tampering, and differential attacks. The additional quantitative results based on MSE, PSNR, SSIM, and recovered-image correlation characterize the attack-dependent recovery performance, showing partial structural recovery under limited ciphertext damage but substantial degradation under severe noise or tampering.
Furthermore, comparisons with recent image-encryption schemes show that the proposed algorithm achieves competitive information entropy, NPCR, UACI, and PSNR values. Under 25% ciphertext loss, its reconstruction PSNR is comparable to those of recently reported schemes, while the additionally reported SSIM and recovered-image correlation provide complementary evidence of structural recovery. These results indicate that the proposed scheme achieves a favorable balance among encryption security, attack robustness, and structural simplicity.
In conclusion, the proposed DNMHNN model not only provides a compact yet highly complex dynamical system with strong chaotic properties, but also demonstrates excellent performance in FPGA implementation and image encryption applications. The results suggest that the combination of memristive neural networks and chaotic dynamics offers a promising approach for developing efficient, secure, and hardware-friendly encryption systems, especially for lightweight and real-time information security applications.
Acknowledgement: Not applicable.
Funding Statement: This work was supported by the National Natural Science Foundation of China (No. 62273141) and Hainan Provincial Natural Science Foundation of China (No. 626MS0245).
Author Contributions: The authors confirm their contribution to the paper as follows: Conceptualization: Yanyu Zhu and Jie Jin; Methodology: Jie Jin; Software: Yanyu Zhu, Lv Zhao and Fei Yu; Validation: Yanyu Zhu, Jie Jin, Lv Zhao and Fei Yu; Formal analysis: Yanyu Zhu; Investigation: Yanyu Zhu, Jie Jin, Lv Zhao and Fei Yu; Resources: Jie Jin; Data curation: Yanyu Zhu, Jie Jin, Lv Zhao and Fei Yu; Writing—original draft preparation: Yanyu Zhu; Writing—review and editing: Yanyu Zhu, Jie Jin, Lv Zhao and Fei Yu; Visualization: Yanyu Zhu and Jie Jin; Supervision: Jie Jin and Fei Yu; Project administration: Jie Jin. All authors reviewed and approved the final version of the manuscript.
Availability of Data and Materials: The datasets generated and analyzed during the current study are available from the corresponding author upon reasonable request for academic verification purposes.
Ethics Approval: Not applicable. The data collection process was non-invasive and involved no medical or clinical procedures.
Conflicts of Interest: The authors declare no conflicts of interest.
References
1. He C, Jiang M, Shan K, Yang SH, Li Z, Wang S, et al. A hardware-adaptive learning algorithm for superlinear-capacity associative memory on memristor crossbars. Nat Commun. 2026;17:3096. doi:10.1038/s41467-026-69958-0. [Google Scholar] [CrossRef]
2. Hopfield JJ. Neural networks and physical systems with emergent collective computational abilities. Proc Natl Acad Sci U S A. 1982;79(8):2554–8. doi:10.1073/pnas.79.8.2554. [Google Scholar] [CrossRef]
3. Hopfield JJ. Neurons with graded response have collective computational properties like those of two-state neurons. Proc Natl Acad Sci U S A. 1984;81(10):3088–92. doi:10.1073/pnas.81.10.3088. [Google Scholar] [CrossRef]
4. Chua LO. Memristor-the missing circuit element. IEEE Trans Circuit Theory. 1971;18(5):507–19. doi:10.1109/tct.1971.1083337. [Google Scholar] [CrossRef]
5. Chua LO, Kang SM. Memristive devices and systems. Proc IEEE. 1976;64(2):209–23. doi:10.1109/proc.1976.10092. [Google Scholar] [CrossRef]
6. Xia Q, Yang JJ. Memristive crossbar arrays for brain-inspired computing. Nat Mater. 2019;18(4):309–23. doi:10.1038/s41563-019-0291-x. [Google Scholar] [CrossRef]
7. Li Z, Jin J, Zhang D, Chen C. Design and realization of pulse-controlled multi-memristor Hopfield neural networks and their applications in information encryption. Multimed Syst. 2025;31(6):427. doi:10.1007/s00530-025-02012-z. [Google Scholar] [CrossRef]
8. Ielmini D, Wong HSP. In-memory computing with resistive switching devices. Nat Electron. 2018;1(6):333–43. doi:10.1038/s41928-018-0092-2. [Google Scholar] [CrossRef]
9. Hu Z, Zhao Z. Memristive Hopfield neural network with hidden multiple attractors and its application in color image encryption. Mathematics. 2025;13(24):3972. doi:10.3390/math13243972. [Google Scholar] [CrossRef]
10. Sağbaş M, Minaei S. Dynamic memdiode–driven Hopfield neural network for 3D CT encryption in IoMT. Chaos Solitons Fractals. 2026;208:118253. doi:10.1016/j.chaos.2026.118253. [Google Scholar] [CrossRef]
11. Zhang F, Ge J, Jiang C, Bao H, Fan J, Sun K. Multi-scroll attractor generation in a discrete memristive Hopfield neural network: FPGA implementation and industrial image encryption. Phys A Stat Mech Appl. 2026;691(10):131501. doi:10.1016/j.physa.2026.131501. [Google Scholar] [CrossRef]
12. Li R, Dong E, Tong J, Wang Z. A novel multiscroll memristive Hopfield neural network. Int J Bifurc Chaos. 2022;32(9):2250130. doi:10.1142/s0218127422501309. [Google Scholar] [CrossRef]
13. Leng X, Wang X, Zeng Z. Memristive Hopfield neural network with multiple controllable nonlinear offset behaviors and its medical encryption application. Chaos Solitons Fractals. 2024;183:114944. doi:10.1016/j.chaos.2024.114944. [Google Scholar] [CrossRef]
14. Deng Q, Wang C, Lin H. Memristive Hopfield neural network dynamics with heterogeneous activation functions and its application. Chaos Solitons Fractals. 2024;178:114387. doi:10.1016/j.chaos.2023.114387. [Google Scholar] [CrossRef]
15. Lin H, Wang C, Yu F, Hong Q, Xu C, Sun Y. A triple-memristor Hopfield neural network with space multistructure attractors and space initial-offset behaviors. IEEE Trans Comput-Aided Des Integr Circuit Syst. 2023;42(12):4948–58. doi:10.1109/tcad.2023.3287760. [Google Scholar] [CrossRef]
16. Liang S, Jia L, Yinhu Q. Initial offset boosting dynamics in a memristive hopfield neural network and its application in image encryption. Chin J Comput Phys. 2023;40(1):106–16. (In Chinese). doi:10.1007/s11571-026-10449-9. [Google Scholar] [CrossRef]
17. Li F, Qin W, Xi M, Bai L, Bao B. Plane coexistence behaviors for Hopfield neural network with two-memristor-interconnected neurons. Neural Netw. 2025;183:107049. doi:10.1016/j.neunet.2024.107049. [Google Scholar] [CrossRef]
18. Li Z, Jin J, Zhang D, Chen C. An attractor-controllable memristive Hopfield neural network and its application on voice encryption. Integration. 2025;105:102500. doi:10.1016/j.vlsi.2025.102500. [Google Scholar] [CrossRef]
19. Deng X, Ding S, Lin H, Jiang L, Sun H, Jin J. Privacy-preserving online medical image exchange via hyperchaotic memristive neural networks and DNA encoding. Neurocomputing. 2025;653:131132. doi:10.1016/j.neucom.2025.131132. [Google Scholar] [CrossRef]
20. Gao H, Xu H. Dynamics research of the Hopfield neural network based on hyperbolic tangent memristor with absolute value. Micromachines. 2025;16(2):228. doi:10.3390/mi16020228. [Google Scholar] [CrossRef]
21. Wang H, Liu K, Liu Y, Wang J, Sun M, Tang K, et al. FPGA-implemented memristor-based transient chaotic neural network for AES edge encryption. In: Proceedings of the 2023 International Conference on Electronics, Computers and Communication Technology; 2023 Nov 17–19; Guilin China. p. 241–4. [Google Scholar]
22. Wang C, Luo D, Deng Q, Yang G. Dynamics analysis and FPGA implementation of discrete memristive cellular neural network with heterogeneous activation functions. Chaos Solitons Fractals. 2024;187:115471. doi:10.1016/j.chaos.2024.115471. [Google Scholar] [CrossRef]
23. Mokbel AAM, Yu F, Gracia YM, Tan B, Lin H, Iu HH. Exploring dynamics and hardware implementation of an enhanced 5D hyperchaotic memristive system inspired by sprott-C system. Complex Syst Model Simul. 2025;5(1):34–45. doi:10.23919/csms.2024.0024. [Google Scholar] [CrossRef]
24. Benkouider K, Mahdal M, Vaidyanathan S, Tlelo-Cuautle E, Martínez BO, Kaçar S, et al. FPGA implementation and voice encryption application of a new hyperchaotic system with high complexity. Sci Rep. 2026;16(1):4485. doi:10.1038/s41598-025-34605-z. [Google Scholar] [CrossRef]
25. Yao W, Gao K, Zhang Z, Cui L, Zhang J. An image encryption algorithm based on a 3D chaotic Hopfield neural network and random row-column permutation. Front Phys. 2023;11:1162887. doi:10.3389/fphy.2023.1162887. [Google Scholar] [CrossRef]
26. Liu G, Xu G, Wang C, Xu G. Hyper-chaos and CNN-based image encryption scheme for wireless communication transmission. Comput Mater Contin. 2025;84(3):4851–68. doi:10.32604/cmc.2025.066331. [Google Scholar] [CrossRef]
27. Amdouni R, Madani M, Ali Hajjaji M, Bourennane EB, Atri M. Secure medical image transmission using chaotic encryption and blockchain-based integrity verification. Comput Mater Contin. 2025;84(3):5527–53. doi:10.32604/cmc.2025.065356. [Google Scholar] [CrossRef]
28. Bhatti DS, Malik AW, Choi H, Kim KI. Sine-polynomial chaotic map (SPCMa decent cryptographic solution for image encryption in wireless sensor networks. Comput Mater Contin. 2025;85(1):2157–77. doi:10.32604/cmc.2025.068360. [Google Scholar] [CrossRef]
29. Sánchez BB, Rodríguez-Sela F, Alcarria R, Robles T. Hardware-enabled key generation in Industry 4.0 cryptosystems through analog hyperchaotic signals. Comput Mater Contin. 2025;83(2):1821–53. doi:10.32604/cmc.2025.059012. [Google Scholar] [CrossRef]
30. Ulutas H. A novel memristor-based hyperchaotic hybrid encryption system with DNA for image encryption on the Jetson TX2. Sci Rep. 2025;15(1):35745. doi:10.1038/s41598-025-21604-3. [Google Scholar] [CrossRef]
31. Zhang X, Chai Y, Xiang S, Li S. Research on image encryption with multi-level keys based on a six-dimensional memristive chaotic system. Entropy. 2025;27(11):1152. doi:10.3390/e27111152. [Google Scholar] [CrossRef]
32. Liu S, Ding Q. A new color image encryption algorithm based on the memristor hyperchaos system and Rubik’s cube theory. Eur Phys J Plus. 2024;139(9):820. doi:10.1140/epjp/s13360-024-05599-w. [Google Scholar] [CrossRef]
33. Kumar BS, Revathi R. A comprehensive review on image encryption techniques using memristor based chaotic system for multimedia application. IETE J Res. 2024;70(11):8160–83. doi:10.1080/03772063.2024.2373899. [Google Scholar] [CrossRef]
34. He S, Yu F, Guo R, Zhang F, Yao W, Cai S, et al. Burst-firing and extreme multistability in a dual-neuron fractional-order memristive HNN with hardware implementation. Chaos Interdiscip J Nonlinear Sci. 2025;35(11):113111. doi:10.1063/5.0294439. [Google Scholar] [CrossRef]
35. Guo A, Fan C. A novel memristive Hopfield neural network with grid attractor and its application in image encryption. Phys A Stat Mech Appl. 2025;679:131005. doi:10.1016/j.physa.2025.131005. [Google Scholar] [CrossRef]
36. Rahman ZSA, Jasim BH, Al-Yasir YIA, Abd-Alhameed RA. High-security image encryption based on a novel simple fractional-order memristive chaotic system with a single unstable equilibrium point. Electronics. 2021;10(24):3130. doi:10.3390/electronics10243130. [Google Scholar] [CrossRef]
37. Manoj N, Sriraman R, Gurusamy R, Shang Y. Further results on global stability of Clifford-valued neural networks subject to time-varying delays. Neurocomputing. 2025;651:130886. doi:10.1016/j.neucom.2025.130886. [Google Scholar] [CrossRef]
38. Qiu D, Zhang T, Liu J, Liu S, He P. An innovative image encryption algorithm based on the DNAS_box and hyperchaos. Entropy. 2025;27(3):239. doi:10.3390/e27030239. [Google Scholar] [CrossRef]
39. Afify YM, Sharkawy NH, Gad W, Badr N. A new dynamic DNA-coding model for gray-scale image encryption. Complex Intell Syst. 2024;10(1):745–61. doi:10.1007/s40747-023-01187-0. [Google Scholar] [CrossRef]
40. Chang H, Wang E, Liu J. Research on image encryption based on fractional seed chaos generator and fractal theory. Fractal Fract. 2023;7(3):221. doi:10.3390/fractalfract7030221. [Google Scholar] [CrossRef]
41. Kumar S, Sharma D. A chaotic based image encryption scheme using elliptic curve cryptography and genetic algorithm. Artif Intell Rev. 2024;57(4):87. doi:10.1007/s10462-024-10719-0. [Google Scholar] [CrossRef]
42. Zhang P, Jie J, Liu Z, Dong K. Chaotic image encryption system as a proactive scheme for image transmission in FSO high-altitude platform. Photonics. 2025;12(7):635. doi:10.3390/photonics12070635. [Google Scholar] [CrossRef]
Cite This Article
Copyright © 2026 The Author(s). Published by Tech Science Press.This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.


Submit a Paper
Propose a Special lssue
View Full Text
Download PDF

Downloads
Citation Tools