Professional Documents
Culture Documents
net/publication/309167810
CITATIONS READS
0 100
3 authors:
Muhammad Hussain
King Saud University
144 PUBLICATIONS 1,398 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Farah Sarwar on 30 April 2019.
advantages and the disadvantages of VLSI implementa- analog output. We have designed the circuit for both
tion and proved that neural network architecture could domains. Linear HNNs provide an analog output;
be built on a larger scale. However, controlling those VLSI however, nonlinear HNNs are designed to offer digital
chips was a bit difficult when direct implementation is output.
required. Neuron model using operational amplifiers was For every neuron, ui is the mean soma potential of
also presented by Yamashita and Nakamura [9]. However, the ith neuron from the total effect of its excitatory and
the circuit presented by Yamashita and Nakamura is not inhibitory inputs [2], and vi is the neuron’s response. The
satisfying the HNN equation properly and seems unstable input of any neuron is a function of external input Ii and
when it maps optimization problems. Borundiya [10] pre- outputs of other neurons, so the mean soma potential
sented the single neuron using the double-gate MOSFETS. will lag behind the instantaneous outputs of other cells.
The number of transistors used to design neuron reduced Output vi is connected to inputs through the capacitance C
considerably in this model as compared with previous of the cell membranes, the transmembrane resistance Ri,
ones, but the complexity of circuit has enhanced greatly. and the finite admittance 1/Rij. Thus, there is a resistance-
However, the author has accepted this drawback of the capacitance (RC) charging equation that determines the
model in which it is very difficult to design a complete rate of change of ui.
network using this neuron and to map a given problem on The input of each neuron comes from two sources:
it. Patel et al. [11] has introduced a new technique of bit 1. External bias input
streams for the implementation of neural networks, and 2. Outputs of other neurons
they have demonstrated it successfully through the exam-
ples of exclusive OR (XOR) pattern matching and Iris flower Thus, the total input to any neuron is specified as follows:
classification. The advanced version of this model can be N
Total input to the ith neuron = Ii + Ri ∑ j = 1, j ≠ i v j / Rij ,
used for HNN too. Also, the application-specific integrated
where Ii is the external input in the form of voltage source,
circuits and the field programmable gate array chips are
vj is the output of other neurons, Rij is the resistance con-
gaining more interest for designing digital HNN [4, 12, 13].
nected between the output of the jth neuron and the input
To overcome the weaknesses of the mentioned elec-
of ith neuron, and Ri is the transmembrane resistance.
trical circuits, we have presented an electric model using
Change in the state of each neuron will occur accord-
operational amplifiers and other basic circuit elements.
ing to the following equation:
Being an exact depiction of differential equation, it con-
verges to the stable and accurate result in almost five ui (t + ∆t ) − ui (t )
dui / dt = lim ,
times the time delay factor of the single neuron. Only two ∆t → 0 ∆t
operational amplifiers, one capacitor and three resistors,
are used in designing neurons with a linear input-output where ui(t + Δt) is the next input state of neuron and ui(t) is
relation. A total of four operational amplifiers, two diodes, the current input state of neuron.
and multiple resistors are used in designing neurons with In our network, the next input state is
a nonlinear input-output relation. The analog-to-digital N
Ii + Ri ∑ j = 1, j ≠ i v j / Rij and the current input state is ui. Let τ
conversion problem is mapped onto the nonlinear circuit,
be the time constant for this circuit, so the change in each
and simulation results are discussed to show the conver-
state can be represented as follows:
gence capabilities of circuit.
The mathematical model of the neural network and its
working is presented in Section 2. Section 3 elaborates the
( N
)
dui / dt = 1 / τ Ii + Ri ∑ j = 1, j ≠ i v j / Rij − ui , (1)
0 ( N
)
ui = ∫ 1 / τ Ii + Ri ∑ j = 1, j ≠ i v j / Rij − ui dt
(2)
2 M
athematical Model of Neural 3 Circuit Model of Neural Network
Network Equation 2 can be implemented using an integrator
circuit (first-order delay circuit) through operational
The Hopfield neural network itself gives an analog amplifier (OPAMP). Summation and integration cannot
output but can be designed to yield either digital or be combined in a single step as we need to compute the
( N
yi = − Ii + R1 ∑ j = 1, j ≠ i v j / Rij , ) (5) this neuron as a basic unit.
This analog circuit has a linear input-output relation-
yi = − xi . (6) ship. If g(ui) represents an input-output relation, then
D1 Thus,
nVT ln(| ui | / I s R4 + 1) ui < 0
D2
g (ui ) = 0 ui = 0 (14)
R5 R8 −nV ln(| u | / I R + 1) u > 0
ui
+ T i s 4 i
R4 + vi
– R6
OP-AMP 3
– OP-AMP 4 To make vi in phase with ui and to normalize the
R7
output of each nonlinear neuron, we need a simple sum-
+
Vdc mation circuit. The circuit of OPAMP-4 performs both
functions. However, the following two conditions must be
satisfied for normalization and inversion:
Figure 3: Logarithmic sigmoid circuit with normalized output. D1
and D2 will handle negative and positive ui, respectively. OPAMP-3 R6 / R8 = R7 / R8 = 2 ∗ (VD / 1V ),
max
will provide sigmoid output having range [−VD, VD] range, and Vdc = | VD |.
OPAMP-4 will normalize this sigmoid output. max
a
Feedback from
Summation circuit
other neurons followed by Neuron’s output
integrator (Fig. 2)
External input
b
Feedback from Logrithmic sigmoid
Summation circuit ui vi
other neurons circuit with Neuron’s
followed by
normalized output output
integrator (Fig. 2)
External input (Fig. 3)
Figure 6: (a) Block diagram of neuron with a linear input-output relation. (b) Block diagram of neuron with a nonlinear input-output relation.
3
v–3
I
−1 / 2 ∑ i = 0 (2 ) [ vi ( vi − 1)].
i 2
(19)
Figure 7: Circuit module of the 4-bit ADC. Each unit cell has a com-
This term is selected to cancel the diagonal elements plete circuit of Figure 6b. Filled squares show feedback connections
through resistor Rij, whereas filled circles represent simple wire
as well as to strengthen the optimization capability of our
connection. Empty squares represent open circuit.
circuit. This term has minimum value for vi = 0 as well
as for vi = 1. It equally favors all digital answers and will
enhance the speed of achieving target. Thus, after adding
Input bias and analog input resistors
(19) in (18) and rearranging terms, we get the following
Ri = | R | = [(2, 1) (0.5, 0.5) (0.125, 0.25) (0.03125, 0.125] kΩ
energy function:
The first term at each index in later matrix is given
1 3 3 3 to the neuron with an external bias of −1 V, whereas the
E = − ∑ j = 0 ∑ i ≠ j = 0 ( −2 )vi v j − ∑ i = 0 ( −2
i+ j ( 2 i − 1)
+ 2 i a )vi . (20)
2 second term is provided with an analog input and its
value can range between 0 and 15 V.
The values of feedback resistors and inputs are cal- Before each simulation, initial conditions must be
culated by comparing (20) with (16). Thus, the values of zero, i.e. ui = 0; otherwise, this circuit does not converge
input bias and feedback resistances are computed from properly. The values of all internally used resistances and
following equations: capacitor are as follows:
Rij = −1 / 2
(i + j )
, (21) R1 = R2 = R3 = R4 = R5 = R8 = 1 kΩ,
R6 = R7 = 2 ∗ (VD / 1 V),
( 2 i − 1)
Ii / Ri = [ −2 + 2 i a ]. (22) C f = 1 µF (if τ = 1 ms).
(formerly by Interactive Image Technologies)], and Figure 8 by Borundiya [10]. However, the mapping procedure
shows the simulation results for analog input x = 9 V. Legends was not discussed in his thesis, and the model has also
for each output bit are also mentioned in a standard way. the highest complexity level. Verleysen and Jesper [8]
It can be seen that the output of all cells converges to designed a model in 1989. This model has more electrical
represent its 4-bit digital value. Values >0.5 V are consid- components than earlier presented models and their com-
ered as 1 V, whereas values <0.5 V are considered as 0 V. plexity level was very high. Because it was a VLSI chip, its
Convergence time depends on RC combination. We have accurate programming was therefore a difficult task. The
simulated for different time constants, and settling time model of Graf et al. [7] has the same problem.
never exceeds 5*τ under any circumstances. This circuit Hopfield [2] designed a very simple model for neuron
was checked for analog values within the 0–15 V range, in 1984. This circuit was very simple, easy to design, and
and it settled down to the nearest possible digital value implementable. Yamashita and Nakamura’s model and
every time. The corresponding graph is shown in Figure 9. our presented model are the simplest ones in terms of
However, it should be kept in mind that none of the neuron designing and understanding. However, Yamashita and
or processing unit should give feedback to itself because Nakamura’s model is highly unstable, and it is not a true
it traps the whole system in an infinite loop and it starts depiction of the Hopfield Neural Network, as claimed by
oscillating between different states. them [9]. The complexity level of our presented model is
The impulse analysis of the circuit as well as each low compared with all other previously presented models.
unit cell is also stable and converges to a value quickly. Only two operational amplifiers, three resistors, and one
A comparison of electrical models of the single neuron capacitor are required for neurons with an analog output.
in terms of complexity, number of components, stability, Other electrical components are only needed to design
and mapping method is summarized in Table 1. Thus far, neuron with digital output and nonlinear input-output
the smallest and stable circuit of neuron was presented characteristics. Stability and convergence capabilities are
kept in mind in our model, and it converges to the required
stability level in a fixed time irrespective of the size of
complete network. MATLAB simulations (MathWorks)
of resultant equations are already discussed in detail by
Sarwar and Bhatti [15] and Sarwar and Iqbal [16].
5 Conclusion
A closed loop electrical circuit model is presented, which
possess the properties of biological neuron. It is diffi-
Figure 9: Graph of the simulation results for analog input (x) versus cult to conceive a system in comparison with the pro-
digital output word (v3v2v1v0). posed model, which will more competently solve diverse
Models Electrical components of the single neuron Complexity level Stable Mapping method
Sarwar et al. (2016) (this paper) 2 Operational amplifiers, 1 capacitor, and 3 Low Yes Through energy function
(linear model) resistors
Sarwar et al. (2016) (this paper) 4 Operational amplifiers, 2 diodes, 1 capacitor, Low Yes Through energy function
(nonlinear model) and 8 resistors
Borundiya [10] 8 Double gate MOSFETs, 8 resistors, 1 capacitor, High Yes Not given
and 2 zener diodes
Yamashita and Nakamura [9] 4 Operational amplifiers, 2 diodes, 1 capacitor, Low No Not given
and 7 resistors
Verleysen and Jespers [8] 10 MOSFETS, 1 operational amplifier, 1 XOR gate, High Yes Programmable
and multiple capacitors as memory elements
Graf et al. [7] 6 Operational amplifiers, 4 RAM cells, 4 switches, High Yes Programmable
and 2 resistors
Hopfield and Tank [2] 2 Analog amplifiers, 1 capacitor, and 1 resistor Low Yes Through energy function
problems using a small number of neurons. This neural [6] C. J. A. Bastos-Filho, R. A. Santana, D. R. C. Silva, J. F.
network model can provide analog as well as digital Martins-Filho, and D. A. R. Chaves, Hopfield Neural Networks
for Routing in All-Optical Networks, 2010 12th International
output and can provide accurate results in <5*τ time unit.
Conference on Transparent Optical Networks, IEEE, Munich
The main objective is to accomplish an accurate mapping 2010, p. 1. doi: 10.1109/ICTON.2010.5549264.
of the given problem over these proposed neural network [7] H. Graf, L. Jackel, and W. Hubbard, Computer, 21, 41 (1988).
models. All values can be mapped in feedback resistors [8] M. Verleysen and P. G. A. Jespers, IEEE Micro, 9, 46 (1989).
and input bias voltage. The rest of the electric circuit [9] Y. Yamashita and Y. Nakamura, A Neuron Circuit Model with
Smooth Nonlinear Output Function, 2007 International Sym-
components of each unit cell will remain the same. It is
posium on Nonlinear Theory and its Applications, NOLTA’07,
observed that the presented biological model of neurons
Vancouver, Canada 2007, p. 11.
will continue to be beneficial for simulations. Impulse [10] A. P. Borundiya, Implementation of Hopfield Neural Network
response is intended and conversed to confirm the steadi- Using Double Gate MOSFET, Ohio University, Athens, Ohio, USA
ness of this inventive model. A simple illustration is 2008.
mapped to establish the precise exhibition of results. [11] N. D. Patel, S. K. Nguang, and G. G. Coghill, IEEE Trans. Neural
Netw, 18, 1488 (2007).
[12] S. Himavathi, D. Anitha, and A. Muthuramalingam, IEEE Trans.
Neural Netw, 18, 880 (2007).
References [13] H. Asgari and Y. S. Kavian, Neural Netw. World, 2, 211 (2014).
[14] J. J. Hopfield and D. W. Tank, Biol. Cybern. 52, 141 (1985).
[1] W. S. McCulloch and W. Pitts, Bull. Math. Biophys. 5, 115 (1943). [15] F. Sarwar and A. A. Bhatti, Critical Analysis of Hopfield’s
[2] J. J. Hopfield, Proc. Natl. Acad. Sci. USA 81, 3088 (1984). Neural Network < Model and Heuristic Algorithm for Shortest
[3] D. Tank and J. J. Hopfield, IEEE Trans. Circuits Syst. 33, 533 (1986). Path Computation for Routing in Computer Networks, Applied
[4] T. D. System, T. Orlowska-kowalska, S. Member, and M. Sciences and Technology (IBCAST), 2012 9th International
Kaminski, IEEE Trans. Industr. Inform. 7, 436 (2011). Bhurban, 2012, p. 115.
[5] S. Jain and J. D. Sharma, Int. J. Comput. Theory Eng. 2, 384 (2010). [16] F. Sarwar and S. Iqbal, Z. Naturforsch. A, 69, 129 (2014).