Memristive Perceptron for Combinational Logic Classification

The resistance of the memristor depends upon the past history of the input current or voltage; so it can function as synapse in neural networks. In this paper, a novel perceptron combined with the memristor is proposed to implement the combinational logic classification. The relationship between the memristive conductance change and the synapse weight update is deduced, and the memristive perceptron model and its synaptic weight update rule are explored. The feasibility of the novel memristive perceptron for implementing the combinational logic classification (NAND, NOR, XOR, and NXOR) is confirmed by MATLAB simulation.


Introduction
Artificial neural network is a simplification system which simulates the organization structure, the processing method, and the system function of biological neural system [1].It draws a strong attraction to many researchers because of its performance, such as the parallel processing, distributed storage, self-learning, self-adapting, and high fault tolerance [2].Perceptron is the simplest kind of neural network which can implement basic learning and parallel processing.It is widely studied to solve the classification problems of medical image [3], text [4], mode [5,6], and fingerprint [7].A large number of biological synapses respond to received signals to store a series of continuous weights; so it is hard to realize perceptron by hard circuits.Memristor, a new circuit component in electronics field, is suitably used as synapse in neural networks because of its nanoscale size, automatic information storage, and nonvolatile characteristic with respect to long periods of power-down.In recent years, more and more researchers pay attention to memristive neural networks.A novel chaotic neural network with memristor was built and applied to associative memory [8].Long-term potentiation and long-term depression of synapses using memristor were realized [9].Memristors as main modules of complex bionic information processing networks were utilized [10], and then memristive neural networks were gradually introduced to build memristive cellular automata and discrete-time memristive cellular neural networks [11].
The PID controller based on memristive CMAC network was built [12].In addition, memristive crossbar arrays are used to realize pulse neural networks [13] and memristor is utilized to build synapse template of cellular neural networks [14].These research results show that memristor devices are capable of emulating the biological synapses through building up the correspondence between memristive conductance and synapse weight.Memristor is an ideal choice of electric synapse of new neuromorphic system.In this paper, a new perceptron is built to realize combinational logic classification problems.The effectiveness of the memristive perceptron for combinational logic classification is demonstrated through MATLAB simulations.
The memristive conductance change dg/dt is a function of voltage v in the voltage-controlled memristor [16].The function is similar to sinh curve, and the correspondence between memristive conductance and synapse weight update is set as  where the values of  and  depend on the kind of memristor, such as material, size, and manufacturing process.The relationship curve between the memristive conductance change and the voltage is shown in Figure 2. It can be seen that memristive conductance change dg/dt increases along with the increasing of applied voltage v.If the learning error e of perceptronis regarded as voltage v, memristive conductance change can correspondingly describe as synapse weight.The correspondence between memristive conductance change and synapse weight update can be built.
The memristor model is used as synapse of perceptron to build memristive perceptron model shown in Figure 3, whose mathematical description is as follows: where   is the input of neuron ;   is output of neuron ; , ,  are the numbers of the input layer neurons, the hidden layer neurons, and the output layer neurons, respectively.  represents the memristive synapse weights from the input layer neuron  to the hidden layer neuron .  represents the memristive synapse weights from the hidden layer neuron  to the output layer neuron , respectively.  and    are thresholds of the hidden layer neuron  and output layer neuron , respectively. is the step function, whose mathematical expression is

Weight Update Rule of Memristive Synapses
If memristive perceptron is applied to combinational logic classification, weight update rule should be set.In expression (1), when Δ is very small, dg can be replaced by Δ: Let the memristive conductance  correspond to synapse weight  of perceptron and combine BP learning rules which are used as the prototype.Then, memristive perceptron weight-update rule by following the rule through a given monitoring signal can be set: where  = Δ is learning rate, () is monitoring signal, () is output of memristive perceptron, () − () is error of memristive perceptron, and  is input of memristive perceptron; let  = 4,  = 3.

Memristive Perceptron Implements Combinational Logic Classification
The combinational logic operators include the NAND, NOR, XOR, and NXOR operations.Their graphic symbols are shown in Figure 4 and the corresponding truth table is shown in Table 1.  1 that the combinational logic NAND and NOR classification belongs to the linear separable problems; so they can be realized by a two-input single-layer memristive perceptron model.Let the threshold  = 0.8344 and the learning rate  = 0.02.When the number of cycles is set to 30 and the initial weight is set to a random nonzero number, the experiment result is shown in Figure 5(a), where "△" denotes the output is logic "1" and "◻" denotes the output is logic "0." The classification of logic NAND operator is realized efficiently.Similarly, let the threshold  = 0.4121 and the learning rate  = 0.02.The number of cycles is set to 30; so the classification of logic NOR operator is realized efficiently, whose experiment result is shown in Figure 5(b).

Realization of Combinational Logic XOR and NXOR
Classification.It can be seen from Table 1 that the combinational logic XOR and NXOR classification belongs to the linear inseparable problems.As the single-layer memristive perceptron is unable to realize the nonlinear classification problems [17], a double-layer memristive perceptron model is needed to realize logic XOR and NXOR classification, which is equivalent to the two paralleling single-layer memristive perceptrons.So, it can be used to implement logic XOR and NXOR classification problems.
Truth table of XOR and NXOR with the monitoring signal is shown in Table 2.  1 is the monitoring signal of the first perceptron in the hidden layer and  2 is the monitoring signal of the second perceptron in the hidden layer.Let are linear separable problems.So, the memristive perceptron in the hidden layer can be used to realize classification.Let   6(c).The XOR classification is realized.From the above analysis, the procedure of the logic NXOR is the same as the one of logic XOR.Let threshold   = −0.7397,learning rate  = 0.02, and the number of cycles be 30; the experiment result is shown in Figure 6(d).The NXOR classification is realized.Through the above theoretical analysis and experiment simulation, the results of whole combinational logic classification are shown in Table 3.It can be seen that NAND and NOR classifications are realized in the single-layer memristive perceptron after learning once.The XOR and NXOR classifications are realized in the double-layer memristive perceptron after learning eight times.The combinational logic classification can be realized effectively by the memristive perceptron we proposed.

Test Validity of Memristive Perceptron in Combinational Logic Classification
The experiments have confirmed that the memristive perceptrons can achieve the standard combinational logic classification.However, in fact, the standard inputs cannot be obtained; so  7.
It can be known from the above experiments that when the test signals with the error are used as inputs, the memristive perceptrons also can effectively realize the combinational logic classification.

Conclusions
The relationship between the synaptic weight update in perceptron and memristive conductance change is linked by the theoretical deduction.A new synaptic weight update rule is proposed in this paper.Single-layer memristive perceptron is proposed to realize the classification of the linear separable logic NAND and NOR.Double-layer memristive perceptron is built to realize the classification of linear inseparable logic XOR and NXOR.The experiments exhibit that memristive perceptron can effectively implement the combinational logic classification.The memristive perceptron has simple structure and high integration so that it is easier to be implemented by the low-power circuit.The more complex memristive neural networks we used the more complex problems can be solved in artificial intelligence field.

Figure 6 :
Figure 6: Classification results of the combinational logic XOR and NXOR with the monitoring signal.

1 (Figure 7 :
Figure 7: Classification results of combinational logic with test input signals.

Table 1 :
Truth table of the combinational logic operators.
4.1.Realization of Combinational Logic NAND and NOR Classification.It can be seen from Table

Table 2 :
Truth table of XOR and NXOR with monitoring signal.

Table 3 :
The results of whole combinational logic classification.thresholds 1 = 0.5440,  2 = 0.8657, and learning rate  = 0.02, and let the number of cycles be 30; the initial weights are the random nonzero numbers.The experiment results are shown in Figures6(a) and 6(b).Then  1 and  2 are looked as the inputs of memristive perceptron of output layer; so  can be taken as the output.In MATLAB program, let threshold   = 0.3466, learning rate  = 0.02, and the number of cycles be 30; the experiment result is shown in Figure