------------------------------------- Post ---------------------------------------

Self-Oscillatory Echo State Network: Using artificial neuron circuit to generate oscillation

I remember two years ago my supervisor showed me a video of a decerebrated cat walking on a treadmill (I liked to think of it as a 'zombie cat'). What's more creepy, when the treadmill's speed increased, the cat can adjust its gait to match the speed of the treadmill. The whole experiment might sound eerie and inhumane, but what is the science behind this spontaneous and adaptive behavior? It turns out, the movement is regulated by what is called a central pattern generator (CPG) in the cat's spinal cord. A CPG is a collection of neural circuits that control periodic movement without any external input; feedback merely aids in adaptation, like gait transition. Such generators are pervasive in the system of animals, including humans. CPGs are responsible for various functions like heartbeat, movement, flying, swimming, and much more. I find this topic intriguing because understanding it could pave the way for advanced robotic development by mimicking these natural systems.

Fast forward to one and a half year later, when I was playing around with the echo state network, I realized that the reservoir (a network with random connections where the weight matrix follows specific settings) could occasionally produce spontaneous and self-sustaining oscillations without any input. This behavior was reminiscent of the central pattern generator, leading me to speculate that perhaps reservoirs could be used to simulate central pattern generators.

Therefore, I began analyzing the behavior and exploring ways to enhance the probability of the reservoir producing oscillations. Initially, I modified the reservoir state update equation by eliminating the input layer, while keeping the output equation unchanged.

The equation of SO-ESN. The state update and output equation of SO-ESN. It is JUST the same as the original ESN but without the input layer.

Next, I delved into tweaking various parameters, such as the leaking rate, spectral radius (these are the hyperparameters for Echo State Network, I recommand checking out Echo State Network first if you haven’t, here is a great paper about it), neuron population, and different methods for initializing the reservoir weight matrix, to observe their impact on oscillation. The reservoir's connectivity comprised multiple sub-reservoirs with minimal coupling between them. This configuration proved beneficial for generating oscillations across different frequencies while optimizing the probability of oscillation. I named this model the Self-Oscillatory Echo State Network (SO-ESN).

Model architecture of SO-ESN Model architecture of SO-ESN. W and Wout denote the connectivity of the reservoir and the reservoir to the readout layer, respectively, x is the state of the reservoir units, and y is the output.

Upon analyzing the reservoir of the SO-ESN, I observed the following:

  • The SO-ESN reservoir can sometimes produces damped oscillations, where the oscillations diminish over time and the reservoir units' state settles to a fixed value (this is not ideal).
  • The SO-ESN reservoir (known as the self-oscillatory reservoir) can sometimes produce stable, self-sustaining oscillations.
  • The self-oscillatory reservoir can create complex waveforms. These are spontaneously formed by the synergy of multiple subsets of coupled reservoir units.
  • While the state of the reservoir fluctuates in amplitude, it maintains a consistent frequency. This phase locking of the frequency is a result of the strong coupling between reservoir units.
  • So it is important that we can succesfully initialize a reservoir randomly that can generate oscillation, but that will not always be the case.
Examples of oscillations produced by the internal neurons of the self-oscillatory reservoirs Examples of oscillations produced by the internal neurons of the self-oscillatory reservoirs. (A) Damped oscillation. (B) Self-sustaining oscillation generated from a self-oscillatory reservoir. After a few time steps, the initial conditions of the neurons are eliminated, and the neurons reach a steady oscillation phase. (C, D) The reservoir can generate slow or fast oscillation. (E) Complex waveforms generated from a self-oscillatory reservoir. The analysis of complex waveforms using the fast Fourier transform reveals that they consist of multiple frequency components.

You may have several questions at this point:

  1. What criteria are necessary for the reservoir to oscillate?
  2. Given that I mentioned 'sometimes', how can we increase the likelihood of initializing a self-oscillatory reservoir?
  3. How do the leaking rate and spectral radius affect the oscillations produced?

And conveniently, here are the answers to these questions:

  • For the reservoir to self-oscillate, it becomes less probable when the spectral radius is close to or less than one (ρ < 1).
  • A higher spectral radius induces more chaotic oscillations than a lower one.
  • The leaking rate does not influence the odds of creating a self-oscillatory reservoir.
  • The leaking rate does have an impact on oscillation frequency: a higher leaking rate results in a higher frequency, while a lower one yields a slower frequency.
  • In our experiments, we employed a spectral radius in the range of 1.15 to 1.25.
Ratio of self-oscillatory reservoir generated by tuning leaking rate and spectral radius Ratio (%) of self-oscillatory reservoir generated by tuning leaking rate and spectral radius. The heatmap indicates the ratio of self-oscillatory reservoirs (neuron population = 100) generated when adjusting the leaking rate and spectral radius.

We also identified certain neuron ensembles within the reservoir that are responsible for generating oscillations. We termed these as 'self-oscillatory neuron ensembles’. In a nutshell, they are network motifs with connections that inadvertently lead to oscillation.

Examples of self-oscillatory neuron ensembles Examples of self-oscillatory neuron ensembles. Edges in green indicate excitatory synapses, and edges in red indicate inhibitory synapses. (D) The ratio of selfoscillatory reservoirs successfully generated with and without predefined self-oscillatory neuron ensembles from (A)

In terms of model architecture, we found that weakly coupled sub-reservoirs can produce oscillations with significant variation. A fully connected reservoir tends to generate only phase-coupled oscillations, primarily because of the synchronization among the strongly coupled neurons. Interestingly, a reservoir composed of multiple sub-reservoirs can produce oscillations with various frequencies. The weak-coupling (weaker and sparse connection) between these sub-reservoirs enhance the chances of the entire reservoir generating oscillations with diverse frequencies. Note that the reason we need diversity in frequency is because we are essentially creating features out of thin air. Diversity in these features can assist downstream operations, like the readout layer, in performing better when doing linear combinations of the oscillations.

Ultimately, we used the SO-ESN to reproduce the trajectories of complex dynamic systems. This was accomplished without any input into the reservoir. Only the readout layer was trained against the trajectories using the oscillation outputs from the reservoir. However, the trajectories did not extrapolate effectively, which will be a primary focus for our future work. Still, given no input to the reservoir, it can reproduce the trajectories with high frequency, given the randomly initialized reservoir are producing oscillation with diverse frequencies.

SO-ESN reproduces the trajectory of complex dynamical systems SO-ESN reproduces the trajectory of complex dynamical systems. (A, B) SO-ESN can reproduce the trajectories of sinusoidal and square waves, and Lorenz chaotic time series with high precision, given oscillations with rich features produced by the self-oscillatory reservoir. The boxplot showed the optimal number of sub-reservoirs for a fixed population for both experiments.

Here is a quick video summary about this paper.

In summary, we have developed a model that can produce spontaneous, self-sustaining rhythmic oscillations with varied waveforms, all without any external input or feedback. Our research has been published here[2], and an oral presentation was delivered at CogSci 2023. You can access the paper through the provided link. I hope you find this research insightful!

Presentation at CogSci 2023 Me giving a presentation of this research at CogSci 2023.

References

[1] Jaeger, Herbert. "Tutorial on training recurrent neural networks, covering BPPT, RTRL, EKF and the" echo state network" approach." (2002). [2] Foong, Tham Yik, and Danilo Vasconcellos Vargas. "Generating Oscillation Activity with Echo State Network to Mimic the Behavior of a Simple Central Pattern Generator." arXiv preprint arXiv:2306.10927 (2023).
----------------------------------- End of Post ----------------------------------