Research Article | Open Access

Masaki Kobayashi, "Fast Recall for Complex-Valued Hopfield Neural Networks with Projection Rules", *Computational Intelligence and Neuroscience*, vol. 2017, Article ID 4894278, 6 pages, 2017. https://doi.org/10.1155/2017/4894278

# Fast Recall for Complex-Valued Hopfield Neural Networks with Projection Rules

**Academic Editor:**Silvia Conforto

#### Abstract

Many models of neural networks have been extended to complex-valued neural networks. A complex-valued Hopfield neural network (CHNN) is a complex-valued version of a Hopfield neural network. Complex-valued neurons can represent multistates, and CHNNs are available for the storage of multilevel data, such as gray-scale images. The CHNNs are often trapped into the local minima, and their noise tolerance is low. Lee improved the noise tolerance of the CHNNs by detecting and exiting the local minima. In the present work, we propose a new recall algorithm that eliminates the local minima. We show that our proposed recall algorithm not only accelerated the recall but also improved the noise tolerance through computer simulations.

#### 1. Introduction

In recent years, complex-valued neural networks have been studied and have been applied to various areas [1–5]. A complex-valued phasor neuron is a model of a complex-valued neuron and can represent phase information. Complex-valued self-organizing maps with phasor neurons have been applied to the visualization of landmines and moving targets [6–8]. Complex-valued Hopfield neural networks (CHNNs) are one of the most successful models of complex-valued neural networks [9]. Further extensions of CHNNs have also been studied [10–14]. In most CHNNs, the quantized version of phasor neurons, referred to as complex-valued multistate neurons, has been utilized. In the present paper, complex-valued multistate neurons are simply referred to as complex-valued neurons. Complex-valued neurons have often been utilized to represent multilevel information. For example, CHNNs have been applied to the storage of gray-scale images [15–17]. Given a stored pattern with noise, the CHNN cancels the noise and outputs the original pattern. In Hopfield neural networks, the storage capacity and noise tolerance have been important issues. To improve the storage capacity and noise tolerance, many learning algorithms for CHNNs have been studied [18, 19]. One such algorithm is the projection rule [20]. CHNNs have many local minima which decrease the noise tolerance [21].

CHNNs have two update modes, the asynchronous and synchronous modes. In the asynchronous mode, only one neuron can update at a time. In the synchronous mode, all the neurons simultaneously update and the CHNNs converge to a fixed point or to a cycle of length 2 [22]. Hopfield neural networks with the synchronous mode are also considered to be two-layered recurrent neural networks. In the present work, the synchronous mode is utilized. Lee proposed a recall algorithm for detecting and exiting the local minima and the cycles for the projection rule [23]. His recall algorithm improved the noise tolerance of the CHNNs. Since the local minima and the cycles are obviously the result of incorrect recall, it surely improves the noise tolerance to exit them.

In the present work, we propose a recall algorithm to accelerate the recall. Our proposed recall algorithm removes the autoconnections for updating and uses only the autoconnections for detecting the local minima and the cycles. Our proposed recall algorithm eliminates the local minima and the cycles. We performed computer simulations for the recall speed and the noise tolerance. As a result, we showed that our proposed recall algorithm not only accelerated the recall but also improved the noise tolerance.

The rest of this paper is organized as follows. Section 2 introduces CHNNs and proposes a new recall algorithm. We show computer simulations in Section 3. Section 4 discusses the simulation results, and Section 5 concludes this paper.

#### 2. Complex-Valued Hopfield Neural Networks

##### 2.1. Architecture of Complex-Valued Hopfield Neural Networks

In the present section, we introduce the complex-valued Hopfield neural networks (CHNNs). First, we describe the architecture of the CHNNs. The CHNNs consist of the complex-valued neurons and the connections between complex-valued neurons. The states of the neurons and the connection weights are represented by complex numbers. We denote the state of neuron and the connection weight from neuron to neuron as and , respectively. Let be the matrix whose component is . is referred to as the connection matrix. The connection weights are required to satisfy the stability condition , where is the complex conjugate of . Therefore, the connection matrix is Hermitian. A complex-valued neuron receives the weighted sum input from all the neurons and updates the state using the activation function. Let be an integer greater than . We denote . The activation function is defined as follows: is the quantization level and is the imaginary unit. Let be the number of neurons. The weighted sum input to neuron is given as follows: Figure 1 shows the activation function in the case of .

Next, we describe the recall process. There exist two updating modes, the synchronous and asynchronous modes. In the asynchronous mode, only one neuron can update at a time. If the connection weights satisfy the stability condition and the autoconnection of neuron is positive for all , the energy of the CHNN never increases and the CHNN always converges to a fixed point. In the synchronous mode, all the neurons update simultaneously and the CHNNs converge to a fixed point or to a cycle of length 2. In both modes, updating continues until the CHNNs converge to a fixed point or a cycle. In this work, we utilize the synchronous mode. Figure 2(a) illustrates the network architecture of CHNN. In the synchronous mode, a CHNN can be also represented by Figure 2(b). The current states of the neurons are in the left layer. The weighted sum inputs are sent to the right layer, and the neurons of the right layer update. Subsequently, the states of neurons in the right layer are sent to the left layer.

**(a)**

**(b)**

##### 2.2. Projection Rule

Learning is defined as determining the connection weights that make the training patterns fixed. The projection rule is one of the learning algorithms. We denote the th training pattern by , where the superscript refers to the transpose matrix. Let be the number of training patterns. We define the training matrix as follows: By the projection rule, the connection matrix is determined as , where the superscript denotes the Hermitian conjugate matrix. This connection matrix is Hermitian and fixes the vector . For any integer , the vector is referred to as the rotated pattern of . The rotated patterns of the training patterns are also fixed.

##### 2.3. Recall Algorithm

The recall algorithm proposed by Lee is described. We utilize the synchronous mode for recall. A CHNN converges to a fixed point or a cycle. Fixed points are divided into two categories, local and global minima. We can determine whether a fixed point is a local or global minimum. In a fixed point, we calculate the weighted sum inputs. If all the lengths of the weighted sum inputs are , the fixed point is a global minimum. Otherwise, it is a local minimum.

Lee proposed exiting a local minimum or a cycle by changing a neuron’s state. In this work, we added a small noise to a fixed vector in order to exit a local minimum or a cycle.

##### 2.4. Fast Recall Algorithm

We only modify the weighted sum input for fast recall algorithm. The modified weighted sum input is as follows: This modified weighted sum input has often been utilized in the asynchronous mode. When the CHNN is trapped at a fixed point, we can determine whether the fixed point is a local or global minimum by checking .

#### 3. Computer Simulations

We performed computer simulations to compare two recall algorithms. The number of neurons was . After a training pattern with noise was given to the CHNNs, the retrieval of the original training pattern was attempted. The noise was added by replacing each neuron’s state with a new state at the rate of , referred to as the Noise Rate. The new state was randomly selected from states. It was allowed for the same state as the previous state to be selected.

Here we describe the recall process in the computer simulation.(1)A training pattern with noise was given to the CHNN.(2)The CHNN continued to update in the synchronous mode until it reached a fixed point or a cycle.(3)If the CHNN was trapped at a local minimum or a cycle, the noise was added at the rate and the procedure returned to 2. Otherwise, the recall process was terminated.

After updating, if the pattern was identical to the pattern that preceded the previous pattern, the CHNN was trapped at a cycle. If the pattern is equal to the previous pattern, the CHNN was trapped at a local or global minimum. If the CHNN did not achieve a global minimum before 10,000 iterations, the recall process was terminated. We generated 100 training pattern sets randomly. For each training pattern, we performed 100 trials. Therefore, the number of trials was 10,000 for each condition.

First, we performed computer simulations for the recall speed. The numbers of training patterns used were , and . The quantization levels were , and . If a trial achieved a global minimum, it was regarded as successful. We randomly selected a training pattern and added noise at the rate of in each trial. Figures 3–5 show the rates of trials that reached global minima by the indicated iterations. The horizontal and vertical axes indicate the iterations and the Success Rate, respectively. The ranges of iterations are different in each figure. As and increased, more iterations were required. In the case of and , most trials did not achieve global minima until 10,000 iterations. In all the cases, our proposed recall algorithm was faster. As and increased, the differences became larger.

Next, we performed computer simulations for the noise tolerance. The number of training patterns was , and the quantization levels were and . We carried out the simulations using the training patterns with a Noise Rate of . Figure 6 shows the results in the case of . The horizontal and vertical axes indicate the Noise Rate and the Success Rate, respectively. The proposed recall algorithm slightly outperformed the conventional algorithm. Figure 7 shows the result in the case of . The noise tolerance of the conventional algorithm was very low. That of our proposed algorithm highly exceeded the conventional algorithm.

#### 4. Discussion

The computer simulations for the recall speed show that the conventional algorithm tended to be trapped at the local minima and the cycles. Autoconnections worked to stabilize the states of the neurons. When is added to , the weighted sum input moves parallel to the line through and (Figure 8). Then, is located far from the decision boundary. Some unfixed points would be stabilized to become fixed points. Thus, the autoconnections generate many fixed points and the CHNNs are easily trapped.

In the case of and , most of the trials achieved global minima by 10,000 iterations. Therefore, many trials were trapped at the rotated patterns in Figure 7. During the repetition to exit the local minima and the cycles, the states of the CHNN would be far from the training pattern and would finally reach a rotated pattern. In the case of and , most trials never achieved global minima until 10,000 iterations. With a too frequent addition of noise, the searching would become almost a random walk, and the trials could not achieve a global minimum.

#### 5. Conclusion

Lee improved the noise tolerance of CHNNs with the projection rule by detecting and exiting the local minima and the cycles. We proposed a new recall algorithm to accelerate the recall. Our proposed recall algorithm eliminates the local minima and the cycles and accelerated the recall. In addition, our proposed recall algorithm improved the noise tolerance. On the other hand, the conventional recall algorithm hardly completes the recall in cases in which and are large. The local minima and the cycles are obviously the results of incorrect recall. Getting out of them certainly improves the noise tolerance, though it takes long time to complete the recall. The recall algorithms should be studied so as to reduce falling further into the local minima and the cycles.

#### Conflicts of Interest

The author declares that there are no conflicts of interest regarding the publication of this article.

#### References

- A. Hirose,
*Complex-Valued Neural Networks: Theories and Applications*, World Scientific Publishing, River Edge, NJ, USA, 2003. View at: Publisher Site | MathSciNet - A. Hirose, “Complex-valued neural networks,” in
*Series on Studies in Computational Intelligence*, Springer, 2nd edition, 2012. View at: Google Scholar - A. Hirose, “Complex-valued neural networks: advances and applications,” in
*The IEEE Press Series on Computational Intelligence*, Wiley-IEEE Press, 2013. View at: Google Scholar - T. Nitta, “Complex-valued neural networks: Utilizing high-dimensional parameters,”
*Complex-Valued Neural Networks: Utilizing High-Dimensional Parameters*, pp. 1–479, 2009. View at: Publisher Site | Google Scholar - P. Arena, L. Fortuna, G. Muscato, and M. G. Xibilia,
*Neural Networks in Multidimensional Domains: Fundamentals and New Trends in Modelling and Control*, vol. 234 of*Lecture Notes in Control and Information Sciences*, Springer, London, UK, 1998. View at: Publisher Site | MathSciNet - Y. Nakano and A. Hirose, “Improvement of plastic landmine visualization performance by use of ring-CSOM and frequency-domain local correlation,”
*IEICE Transactions on Electronics*, vol. E92-C, no. 1, pp. 102–108, 2009. View at: Publisher Site | Google Scholar - T. Hara and A. Hirose, “Plastic mine detecting radar system using complex-valued self-organizing map that deals with multiple-frequency interferometric images,”
*Neural Networks*, vol. 17, no. 8-9, pp. 1201–1210, 2004. View at: Publisher Site | Google Scholar - S. Onojima, Y. Arima, and A. Hirose, “Millimeter-wave security imaging using complex-valued self-organizing map for visualization of moving targets,”
*Neurocomputing*, vol. 134, pp. 247–253, 2014. View at: Publisher Site | Google Scholar - S. Jankowski, A. Lozowski, and J. M. Zurada, “Complex-valued multistate neural associative memory,”
*IEEE Transactions on Neural Networks*, vol. 7, no. 6, pp. 1491–1496, 1996. View at: Publisher Site | Google Scholar - T. Minemoto, T. Isokawa, H. Nishimura, and N. Matsui, “Quaternionic multistate Hopfield neural network with extended projection rule,”
*Artificial Life and Robotics*, vol. 21, no. 1, pp. 106–111, 2016. View at: Publisher Site | Google Scholar - M. Kobayashi, “Hyperbolic hopfield neural networks,”
*IEEE Transactions on Neural Networks and Learning Systems*, vol. 24, no. 2, pp. 335–341, 2013. View at: Publisher Site | Google Scholar - M. Kitahara and M. Kobayashi, “Projection rule for rotor hopfield neural networks,”
*IEEE Transactions on Neural Networks and Learning Systems*, vol. 25, no. 7, pp. 1298–1307, 2014. View at: Publisher Site | Google Scholar - P. Zheng, “Threshold complex-valued neural associative memory,”
*IEEE Transactions on Neural Networks and Learning Systems*, vol. 25, no. 9, pp. 1714–1718, 2014. View at: Publisher Site | Google Scholar - M. E. Acevedo-Mosqueda, C. Yanez-Marquez, and M. A. Acevedo-Mosqueda, “Bidirectional associative memories: Different approaches,”
*ACM Computing Surveys (CSUR)*, vol. 45, no. 2, pp. 18:1–18:30, 2013. View at: Publisher Site | Google Scholar - H. Aoki, M. R. Azimi-Sadjadi, and Y. Kosugi, “Image association using a complex-valued associative memory model, IEICE Transactions on Fundamentals of Electronics,”
*Communications and Computer Sciences*, vol. E83-A, no. 9, pp. 1824–1832, 2000. View at: Google Scholar - G. Tanaka and K. Aihara, “Complex-valued multistate associative memory with nonlinear multilevel functions for gray-level image reconstruction,”
*IEEE Transactions on Neural Networks*, vol. 20, no. 9, pp. 1463–1473, 2009. View at: Publisher Site | Google Scholar - M. K. Müezzinoglu, C. Güzeliş, and J. M. Zurada, “A new design method for the complex-valued multistate hopfield associative memory,”
*IEEE Transactions on Neural Networks*, vol. 14, no. 4, pp. 891–899, 2003. View at: Publisher Site | Google Scholar - M. Kobayashi, “Gradient Descent Learning Rule for Complex-valued Associative Memories with Large Constant Terms,”
*IEEJ Transactions on Electrical and Electronic Engineering*, vol. 11, no. 3, pp. 357–363, 2016. View at: Google Scholar - D. L. Lee, “Improving the capacity of complex-valued neural networks with a modified gradient descent learning rule,”
*IEEE Transactions on Neural Networks*, vol. 12, no. 2, pp. 439–443, 2001. View at: Publisher Site | Google Scholar - M. Kitahara and M. Kobayashi, “Projection rule for complex-valued associative memory with large constant terms,”
*Nonlinear Theory and Its Applications, IEICE*, vol. 3, no. 3, pp. 426–435, 2012. View at: Publisher Site | Google Scholar - M. Kobayashi, “Attractors accompanied with a training pattern of multivalued hopfield neural networks,”
*IEEJ Transactions on Electrical and Electronic Engineering*, vol. 10, no. 2, pp. 195–200, 2015. View at: Publisher Site | Google Scholar - L. Donq-Liang and W. Wen-June, “A multivalued bidirectional associative memory operating on a complex domain,”
*Neural Networks*, vol. 11, no. 9, pp. 1623–1635, 1998. View at: Publisher Site | Google Scholar - D.-L. Lee, “Improvements of complex-valued Hopfield associative memory by using generalized projection rules,”
*IEEE Transactions on Neural Networks*, vol. 17, no. 5, pp. 1341–1347, 2006. View at: Publisher Site | Google Scholar

#### Copyright

Copyright © 2017 Masaki Kobayashi. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.