- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Annual Issues ·
- Article Processing Charges ·
- Articles in Press ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents
Discrete Dynamics in Nature and Society
Volume 2013 (2013), Article ID 318758, 11 pages
Single Gaussian Chaotic Neuron: Numerical Study and Implementation in an Embedded System
Universidad Autónoma de Nuevo León, UANL, FIME, Avenida Universidad S/N Ciudad Universitaria, 66451 San Nicolás de los Garza Nuevo León, NL, Mexico
Received 26 October 2012; Revised 28 December 2012; Accepted 3 January 2013
Academic Editor: Eric Campos Canton
Copyright © 2013 Luis M. Torres-Treviño et al. 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.
Artificial Gaussian neurons are very common structures of artificial neural networks like radial basis function. These artificial neurons use a Gaussian activation function that includes two parameters called the center of mass (cm) and sensibility factor (). Changes on these parameters determine the behavior of the neuron. When the neuron has a feedback output, complex chaotic behavior is displayed. This paper presents a study and implementation of this particular neuron. Stability of fixed points, bifurcation diagrams, and Lyapunov exponents help to determine the dynamical nature of the neuron, and its implementation on embedded system illustrates preliminary results toward embedded chaos computation.
The study of dynamical systems that involves artificial neurons is very complex; usually, numerical solutions are required when analytical solutions are difficult to be made. These simulations require models from single neurons to interconnected neurons and help to explain the behavior of complex neural structures. A similar work about analysis of complex dynamic systems with groups of neurons is , where results show that the periodically forced Hodgkin-Huxley oscillator exhibits not only periodic motions but also non-periodic motions (quasi-periodic or chaotic oscillation) depending on the amplitude and the frequency of the stimulating current, the exhibited complex motions were similar to motions found experimentally in squid giant axons. Inspiration on neural structures from the nature is given by the work of Wang  where a complex dynamic behavior is generated from the Bonhoeffer-van der Pol model, and it is due to the interaction between the periodic stimulating current and Bonhoeffer-van der Pol oscillations. A complete work about the analysis of nature-inspired models was made by Korn and Faure . Authors use different models of excitable cells with different modes of firing of busting neurons. These models that simulate different structures of the brain are complex nonlinear systems that generate oscillations inclusive chaotic ones. With this in mind, the signals of the brain generated by neural structures could be chaotic. Soriano et al. presents a similar work where the Fitzhugh-Nagumo neural model is analysed using a new method called cloned dynamics approach used for calculating the Lyapunov spectrum of dynamical systems .
Single neurons have been studied recently, in part because simple configuration could exhibit high complexity in its dynamics that includes chaos. Li and Chen  demonstrate that a single neuron can show a chaotic behavior due to the nonlinear dynamics where dependency of parameters is strong, generating switching between coexisting chaotic attractors and connected attractors .
A comparison between single neurons models is made in the work of Sungar et al.  to establish a model for cognitive purpose, where synchronization conditions are explored. A neural model with a high propensity to synchronization could be more plausible for modeling neural activity. El Boustani and Destexhe  use microelectrodes inserted in the cat cerebral cortex that show neuronal discharges very similar to stochastic variables or single neurons; in this case, single neurons show stochastic dynamics, but on large scales the behavior is more coherent with high dimensional chaos . Other example is the study of structures from thalamocortical neurons that can be explained using a model of the generated current. An analysis made on this model to enervate one-dimensional maps captures the essentials of the chaotic behavior . Cellular neural networks (CNN) are another related work. Single cells make interactions between neighbors only and generate complex behavior. Roska and Chua work with discrete time CNN using the Chua's local activity principle and nonhomogeneous spatiotemporal patterns are induced by initial setting in these systems . A complete review of these systems can be found in the work of Roska and Chua .
The study of single neurons as an isolated system is important because very complex dynamics can be generated in a simple structure. Usually, single neurons are modelled with differential equations with a time delay . The study of these systems is diverse and extended; however, it is possible to take advantage of the richness in this behavior in a variety of applications like chaos computing [12, 13]. In all cases, phase plots, waveform plots, and power spectra (in others cases, Lyapunov exponents) are used to confirm chaoticity.
Implementation of single neurons has been made usually with electronic circuits, where the nonlinear behavior is analysed by means of electronic simulation software , or by designing analog electronics using the same way to solve differential equations by analog computers [15, 16]. Due to the social demands for sophisticated products and the requirements on the daily industrial processes to cover the human needs, it is important the implementation of new scientific tools on embedded systems. The embedded systems are often defined as a collection of programmable parts surrounded by ASICs (application-specific integrated circuits) and other standard components that interact continuously with an environment through sensors and actuators. The programmable parts include microcontrollers and DSPs [17, 18]. The use of embedded systems simplifies the design procedure involved and reduces the time process implementation, so a prototype has a rapid launch.
In this paper, a single neuron is represented as a nonlinear discrete dynamic system. Bifurcation diagrams and Lyapunov exponents are used to explain the behavior of the system and determinate effects of the parameters to generate periodicity, stability, and chaos. Finally, we presented an implementation of a single neuron with a Gaussian activation function in an embedded system based on the open-source platform Arduino, which is a micro-controller-based electronic board of 8-bit microcontroller ATmega168 . Experiments are made using two potentiometers to establish the parameter values and as results, some bifurcation diagrams comparable with numerical results are made.
2. A Single Gaussian Neuron
A neuron is an information-processing unit that is fundamental to the operation of a neuronal network . It is a simple model approximation of a biological neuron usually called simple-processing unit. The block diagram of Figure 1 shows the classical model of a neuron, identifying three basic elements:(i)A set of synapses or connecting links, each of which is characterized by a weight of its own. Specifically, an input signal , connected to the neuron, is multiplied by the synaptic weight . (ii)An adder to add the input signals, pondered by the respective weight. (iii)An activation function for limiting the amplitude of the output of a neuron. Normally this function is nonlinear such as Gaussian, sigmoidal or hyperbolic tangential forms.
In this paper we deal with a single recurrent artificial Gaussian neuron (SRAGN) in which, as can be seen in Figure 2, the output is feedback to the main input , while the other two inputs, and , are parameters of the activation function.
The Gaussian activation function is given by and has bell form as can be seen in Figure 3.
A single neuron can be considered as a difference equation that can generate complex behavior when the input is a feedback of its output and the activation function is a Gaussian map, a commonly studied nonlinear discrete system .
Thus, the discrete response of this SRAGN is governed by where(i) denotes the number of the execution of (2), with and as the neuron response and input for execution , respectively. (ii)Consider that input is the feedback response , with as initial condition. (iii)It is considered that each execution takes seconds to complete the computation of .
Then, discrete response of the SRAGN (2) can be rewriten as a one-dimensional nonlinear discrete dynamical system For certain parameter values and , the response of system (3) can display highly complex behavior and even chaotic phenomena.
For instance, with values and , response tends to a fixed point, see Figure 4(a). For values and , response is a periodical oscillation shown in Figure 4(b). For values and , response seems to be an irregular or chaotic response shown in Figure 4(c). In the next section, the dynamical behavior for SRAGN (3) is analyzed.
3. SRAGN Dynamical Behavior Analysis
Firstly, consider the case in that response of system (3) tends to be a fixed point and remains in it. Formally, a fixed point is defined as follows.
Definition 1 (see ). A fixed point , or also called point of period one, of system is a point such that , for all .
Using Definition 1, it is possible to determine the fixed points of period one for the SRAGN (3); however, fixed points are difficult to calculate as an analytical solution because the function (3) is exponential and has two parameters (cm and ). Approximated solutions can be computed using numerical methods. As an example, setting to 0.5, fixed points are computed and shown in Table 1 for different cm values.
As with other dynamical systems, the fixed points of period one can be attracting, repelling, or indifferent. The type of fixed point is determined from the gradient of the tangent to the function at the fixed point . A test for stability of fixed points for nonlinear discrete systems is established with the following result.
Theorem 2 (see ). Suppose that map has a fixed point at ; then the fixed point is stable if and it is unstable if
Then, there is one unstable period-one fixed point at when and . When and , (3) has one stable fixed point of period one at . Exploring values of and , there are different stable or unstable period-one points of (3). Thus, a question arises: where do the orbits go if not to these unstable points of period one?
One answer is that response tends to infinity because system (3) is unstable, but there are cases in that response remains in a bounded domain as in Figure 4(b). The value in which a fixed point changes from stable to unstable is called bifurcation point. When the system reaches a bifurcation point a doubling period occurs.
In order to explain the above, consider the next with .
Definition 3 (see ). For system , a fixed point of period is a point at which , for all .
Fixed points of period two are numerically computed for (3), and with values of and there are two stable period-two fixed points at and .
In summary, if the period-one fixed point is stable, iterative responses will be attracted to that point, which means that response stabilizes to a constant value after a sufficiently long time. If and , fixed point of period one becomes unstable and stable fixed points of period two are created; the response will alternate between two values on each iterative step after a sufficient amount of time. As and pass through 0.15 and 0.25, respectively, the fixed points of period two lose stability and fixed points of period four are created. As with other dynamical systems, all of this information can be summarized on bifurcation diagrams. Setting , a bifurcation diagram is illustrated in Figure 5, where a value close to establishes a stable fixed point. For , two stable fixed points of period two are created. For , the fixed points of period two will be unstable and fixed points of period four will appear. If parameters are changed even further, stability is lost again, which marks the rise of a period eight cycle for (3) and so on. The periods of the attractive cycles are 1, 2, 4, 8, 16, and 32, and the bifurcations are called period-doubling bifurcations. Thus, SRAGN exhibits a variety of behaviors as and take different values; inclusive there are responses of complex behavior for certain parameter values, which seem chaotic, as in Figure 4. At this point, chaos is understood in the sense of deterministic dynamical systems.
No definition of the term chaos is universally accepted yet, but almost everyone would agree on the three ingredients used in the following working definition .
Chaos is an aperiodic long-term behavior in a deterministic system that exhibits sensitive dependence on initial conditions.
Aperiodic long-term behavior means that there are trajectories which do not settle down to fixed points, periodic orbits, or quasiperiodic orbits as . Deterministic means that the system has no random or noisy inputs or parameters. Sensitive dependence on initial conditions means that nearby trajectories separate exponentially fast.
An attractor is a closed set with the following properties.(1) is an invariant set. Any trajectory that starts in stays in for all time. (2) attracts an open set of initial conditions. There is an open set containing such that if , then the distance from to tends to zero as . This means that attracts all trajectories that start sufficiently close to it. The largest such is called the basin of attraction of . (3) is minimal. There is no proper subset of that satisfies conditions (1) and (2).
A strange attractor is an attractor that exhibits sensitive dependence on initial conditions .
The Lyapunov exponents are a criterion used for diagnosis of whether or not a system is chaotic. One of the properties of chaos is the sensitivity to initial conditions. This means that if two trajectories start close to one another in phase space they will move exponentially away from each other for small times on the average. However, it is known that an orbit on a chaotic attractor for a bounded system also returns to all accessible states with equal probability. This property is known as ergodicity. Thus iterates return infinitely closely, infinitely often to any previous point on the chaotic attractor. The Lyapunov exponents give an indication as to whether two orbits starting close together diverge or converge. In order to determine if responses of SRAGN are chaotic for certain parameters, Lyapunov exponents will be computed by means of the next results.
Definition 4 (see ). The Lyapunov exponent computed using the derivative method is defined by where represents differentiation with respect to and are successive samples. The Lyapunov exponent may be for a sample of points near the attractor to obtain an average Lyapunov exponent.
The divergence of chaotic orbits can only be locally exponential, because if the system is bounded, as most of the SRAGN responses are, cannot go to infinity. Thus, the Lyapunov exponent (6) is a measure of this divergence of orbits. Then the criterion for chaos becomes 
Then, the signs of the Lyapunov exponents provide a qualitative picture of a system's dynamics. One-dimensional maps are characterized by a single Lyapunov exponent which is positive for chaos, zero for a marginally stable orbit, and negative for a periodic orbit .
The above criterion is useful to determine the chaotic behavior of trajectories of (3) that start and stay in a bounded domain for all time. Three cases are considered for analysis of the behavior of the SRAGN (3) by means of bifurcation diagrams and Lyapunov exponents setting in 0.25, 0.50, 0.75 and varying the parameter from 0 to 1.
In Figure 6, parameter , the chaotic behavior is presented in the narrow interval , the period- region is presented in the interval , and the region of stable fixed point of period one corresponds to .
In Figure 7, parameter , the chaotic behavior is presented in the interval , the period- region is presented in the interval , and the region of stable fixed point of period one corresponds to .
In Figure 8, parameter , the region of chaotic behavior is vague near to , the period- region is presented in the interval , and the fixed point of period one is presented in a wide region given by .
From illustrated cases, if any parameter or takes values close to one, the behavior of responses will tend to a stable fixed point independent of the other parameter. From bifurcation diagrams and Lyapunov exponents computed, there are indicia that chaotic behavior is present in SRAGN for certain parameter intervals.
4. Implementation of Single Neurons in an Embedded System
Arduino is an open-source platform to work with electronic, control, robotic, and informatics prototypes. The platform consists of a microcontroller-based board and an integrated development environment (IDE) software to write, debug, and download programs to the board. Both the board and the IDE are opened to the users, either hardware or software modifications can be made. There are some versions of this board according to the desired features; the implementation presented in this paper uses the Arduino Diecimila one, which is based on the 8-bit microcontroller ATmega168 whose main features are as follows: operation at 5 Vdc, 16 MHz clock speed, 16 KB FLASH memory program, and 1 KB SRAM data memory.
This board is the main component of the prototype and has in its memory the complete neuron working. Also two potentiometers were connected to modify the value of the parameters, each one in the range of [0, 5] Vdc that are converted to a [0, 1] floating point normalized range by doing the following. (1)Lecture in a [0, 5] Vdc range. (2)Analog-to-digital converter (ADC) gets [0, 255] binary. (3)Dividing by 255.0 gets [0, 1] floating point normalized range.
So, the calculation of the neuron response is in the [0, 1] normalized range, but this value is converted to a [0, 5] Vdc representation that can be measured by an instrument such as an oscilloscope by doing the following.(1)Variable in a [0, 1] floating point normalized range. (2)Multiplying by 255.0 gets [0, 255] binary. (3)Pulse width modulation (PWM) delivers an average voltage signal in the range [0, 5] Vdc.
Figure 9 shows a schematic diagram of the system implementation. ADC and PWM modules are implemented internally in the microcontroller. The pins used for these modules are mapped on board terminals.
The program was written using the programming language provided by the Arduino platform, and the compiler was responsible for the code optimization and translation to machine code. The ATmega168 microcontroller includes native instructions to work with signed/unsigned/fraction/nonfraction multiplications and 8-bit number comparisons which make this microcontroller a good option to work with. Next, we present the pseudocode of the program which can be easily extended to more than one SRAGN (Pseudocode 1).
It is important to notice that the feedback of the output is made by software instead of connecting a wire from output pin to an input pin. This action avoids noise and improves the calculation. Finally, note that around 300 or even more neurons can be processed in this embedded system.
5. Experimental Results
In this section, some bifurcation diagrams from embedded single neurons are presented. A personal computer was used to acquire the data from the embedded system and make the plots. All bifurcation diagrams are made using the output versus the change of the parameter while remains fixed in each diagram. The value of cm starts at 0.05 until 1.0 with increments of 0.05 because the 8-bit precision defined by the PWM and ADC modules. The period of execution has been fixed to 10 milliseconds. The experimental results are illustrated in Figures 10, 11, 12, 13, and 14.
Single neurons can show a variety of behaviors; this particular neuron that involves the use of a Gaussian activation function depends on only two parameters. Chaoticity is shown using numerical simulation by bifurcation diagrams and Lyapunov exponents. The implementation of this simple neuron on an embedded system generates the same results as numerical ones. An interpretation for these bifurcation diagrams could be that, for each value of , chooses the type of response: fixed points, oscillating, or chaotic. For small values in , the predominant response (in all range) tends to be oscillating, for medium values in , the predominant response is chaotic, and finally for bigger values in (close to 1), the predominant response is stable. By “predominant response” we mean the graphic form in the greater part of the range of ; for example, in the last plot () we can see that the predominant response is a fixed point; however the general form is something as a unitary pulse, that is, a bistable nonlinear system.
A multiple interaction of these neurons could produce interesting structures that have complex behaviors, so the future work is to study more this neuron, what the cause of these behaviors is, the structures that can be formed, and also the control or adjustment of the parameters to get desirable behaviors, for example, the representation of oscillations observed in heart pulses, the activation of muscles for walking or breathing, learning and recognition.
Conflict of Interests
The authors have no potential or actual conflict of interests to disclose.
The authors thank CONACYT for the support provided to this project (Grant nos. 258615 and 258684) and also thank the support provided by PROMEP/103.5/10/6687 and PAICYT-UANL Grant no. IT562-10.
- K. Aihara, G. Matsumoto, and Y. Ikegaya, “Periodic and nonperiodic responses of a periodically forced Hodgkin-Huxley oscillator,” Journal of Theoretical Biology, vol. 109, no. 2, pp. 249–269, 1984.
- W. Wang, “Bifurcations and chaos of the Bonhoeffer-van der Pol model,” Journal of Physics A, vol. 22, no. 13, pp. L627–L632, 1989.
- H. Korn and P. Faure, “Is there chaos in the brain? II. Experimental evidence and related models,” Comptes Rendus, vol. 326, no. 9, pp. 787–840, 2003.
- D. C. Soriano, F. I. Fazanaro, R. Suyama, J. R. de Oliveira, R. Attux, and M. K. Madrid, “A method for Lyapunov spectrum estimation using cloned dynamics and its application to the discontinuously-excited Fitzhugh-Nagumo model,” Nonlinear Dynamics, vol. 67, pp. 413–424, 2012.
- C. Li and G. Chen, “Coexisting chaotic attractors in a single neuron model with adapting feedback synapse,” Chaos, Solitons & Fractals, vol. 23, no. 5, pp. 1599–1604, 2005.
- N. Sungar, E. Allaria, I. Leyva, and F. T. Arecchi, “Comparison of single neuron models in terms of synchronization propensity,” Chaos, vol. 18, no. 3, article 033108, 2008.
- S. El Boustani and A. Destexhe, “Brain dynamics at multiple scales: can one reconcile the apparent low-dimensional chaos of macroscopic variables with the seemingly stochastic behavior of single neurons?” International Journal of Bifurcation and Chaos in Applied Sciences and Engineering, vol. 20, no. 6, pp. 1687–1702, 2010.
- J. Laudanski, C. Sumner, and S. Coombes, “Calcium window currents, periodic forcing, and chaos: understanding single neuron response with a discontinuous one-dimensional map,” Physical Review E, vol. 82, no. 1, article 011924, p. 9, 2010.
- V. I. Sbitnev and L. O. Chua, “Local activity criteria for discrete-map CNN,” International Journal of Bifurcation and Chaos in Applied Sciences and Engineering, vol. 12, no. 6, pp. 1227–1272, 2002.
- T. Roska and L. O. Chua, “The CNN Universal Machine: 10 years later,” Journal of Circuits, Systems and Computers, vol. 12, no. 4, pp. 377–388, 2003.
- H. Xing, L. Chuandong, and S. Yonglu, “Bogdanov-takens bifurcation in a single inertial neuron model with delay,” Neurocomputing, vol. 89, pp. 193–201, 2012.
- E. Campos-Canton, R. Femat, and G. Chen, “Attractors generated from switching unstable dissipative systems,” Chaos, vol. 22, Article ID 033121, 2012.
- E. Campos-Cantón, J. G. Barajas-Ramírez, G. Solís-Perales, and R. Femat, “Multiscroll attractors by switching systems,” Chaos, vol. 20, no. 1, article 013116, 2010.
- J. Chen and C. G. Li, “Circuit design of tabu learning neuron models and their dynamic behavior,” Acta Physica Sinica, vol. 60, no. 2, Article ID 020502, 2011.
- I. Campos-Cantón, E. Campos-Cantón, and E. Castellanos-Velasco, “Signal generator based on a chaotic circuit,” Analog Integrated Circuits and Signal Processing, vol. 66, no. 2, pp. 309–313, 2011.
- J. Kim and J. Jung, “Fully integrated circuit design aiharas chaotic neuron model,” in IEEE Conference Publications, pp. 258–259, 2010.
- D. D. Gajski and F. Vahid, “Specification and design of embedded hardware-software systems,” IEEE Design and Test of Computers, vol. 12, no. 1, pp. 53–67, 1995.
- F. Balarin, M. Chiodo, and P. Giusto, Hardware-Software Co-Design of Embedded Systems, Kluwer Academic Publishers, 1997.
- D. Cuartielles and M. Banzi, “Arduino official web page,” 2012, http://www.arduino.cc/.
- S. Haykin, Neural Networks and Learning Machines, Pearson, 2008.
- S. H. Strogatz, Nonlinear Dynamics and Chaos, Westview Press, 2000.
- S. Lynch, Dynamical Systems with Applications Using Mapple, Springer-Birkhuser, 2010.
- F. C. Moon, Chaotic and Fractal Dynamics: An Introduction for Applied Scientists and Engineers, Wiley-VCH, 2004.
- A. Wolf, J. B. Swift, H. L. Swinney, and J. A. Vastano, “Determining Lyapunov exponents from a time series,” Physica D, vol. 16, no. 3, pp. 285–317, 1985.