Adaptive Frequency Oscillators and Applications

Ludovic Righetti, Jonas Buchli, Auke Jan IjspeertThe Open Cybernetics & Systemics Journal 2009

Abstract

In this contribution we present a generic mechanism to transform an oscillator into an adaptive frequency oscillator, which can then dynamically adapt its parameters to learn the frequency of any periodic driving signal. Adaptation is done in a dynamic way: it is part of the dynamical system and not an offline process. This mechanism goes beyond entrainment since it works for any initial frequencies and the learned frequency stays encoded in the system even if the driving signal disappears. Interestingly, this mechanism can easily be applied to a large class of oscillators from harmonic oscillators to relaxation types and strange attractors. Several practical applications of this mechanism are then presented, ranging from adaptive control of compliant robots to frequency analysis of signals and construction of limit cycles of arbitrary shape.

Introduction

In physics and engineering, nonlinear oscillators are standard tools for modeling periodic processes. A well-known phenomenon in these systems is entrainment, where an oscillator synchronizes its rhythm with an external signal. However, entrainment is fundamentally limited: it only occurs if the external frequency is already close to the oscillator's natural frequency—a region known as the "entrainment basin." If the frequencies are too far apart, synchronization fails.

Manually tuning these parameters is often impractical in dynamic environments, such as in walking robots where resonant frequencies shift based on terrain or payload. This research introduces a mathematical framework for "Adaptive Frequency Oscillators" (AFOs) that autonomously learn, track, and remember external frequencies, effectively creating an infinite basin of attraction.

Methodology: Dynamic Hebbian Learning

The core innovation is a generic adaptation rule that transforms a static frequency parameter ($\omega$) into a dynamic state variable ($\dot{\omega}$). The proposed rule is: $$\dot{\omega} = \pm KF(t) \frac{y}{\sqrt{x^2 + y^2}}$$ where $F(t)$ is the external driving signal, $K$ is the coupling strength, and the fraction represents the normalized state of the oscillator. This is termed dynamic Hebbian learning because the frequency change depends on the correlation between the external signal and the internal state.

Adaptive Fitzhugh-Nagumo and Rössler systems with their respective learning equations.

As shown in the figure above, this rule can be seamlessly integrated into various oscillator models, including the Fitzhugh-Nagumo relaxation oscillator and the chaotic Rössler system.

Results: Convergence and Versatility

The mechanism was evaluated using a variety of synthetic signals, including sine waves, square pulses, sawtooth waves, and time-varying "chirp" signals. A key result is the exponential convergence of the frequency error ($e^{-t}$) for suitable coupling strengths.

Frequency adaptation to various signals: (a) sine, (b) square, (c) sawtooth, (d) high frequency, (e) multiple frequencies, and (f) time-varying chirp.

The AFO mechanism demonstrates remarkable versatility. Unlike standard entrainment, the system encodes the learned frequency. If the input signal $F(t)$ is removed, the oscillator continues to vibrate at the last learned frequency rather than reverting to a default state. Furthermore, the system can track multiple frequencies simultaneously when organized into a "pool" of oscillators, effectively performing real-time frequency analysis similar to a dynamic Fourier series.

Applications and Insights

  • Robotic Efficiency: In legged locomotion simulations, AFOs successfully identified the resonant frequency of a robot's mechanical structure, allowing for maximum energy efficiency by aligning movement with natural physics.
  • Signal Reconstruction: A pool of AFOs can perfectly reconstruct complex periodic signals by autonomously tuning individual frequencies, amplitudes, and phases.
  • Structural Stability: The learned signal is encoded into a structurally stable limit cycle, ensuring robustness against small perturbations.

Conclusion and Future Work

While the AFO framework is robust, it faces a trade-off between tracking speed and stability. High coupling strengths ($K$) allow for faster tracking of time-varying frequencies but may lead to instability or oscillations around the target. Future research will focus on deeper integration with sensory feedback to handle unpredictable transitions in complex organic systems.

Summary updated

BibTeX
@article{righetti2009adaptive,
  author = {Ludovic Righetti and Jonas Buchli and Auke Jan Ijspeert},
  title = {{Adaptive Frequency Oscillators and Applications}},
  journal = {The Open Cybernetics \& Systemics Journal},
  year = {2009},
  doi = {10.2174/1874110x00903020064},
}
Figure