# Kuramoto model

The Kuramoto model (or Kuramoto–Daido model), first proposed by Yoshiki Kuramoto (蔵本 由紀, Kuramoto Yoshiki), is a mathematical model used in describing synchronization. More specifically, it is a model for the behavior of a large set of coupled oscillators. Its formulation was motivated by the behavior of systems of chemical and biological oscillators, and it has found widespread applications in areas such as neuroscience and oscillating flame dynamics. Kuramoto was quite surprised when the behavior of some physical systems, namely coupled arrays of Josephson junctions, followed his model.
The model makes several assumptions, including that there is weak coupling, that the oscillators are identical or nearly identical, and that interactions depend sinusoidally on the phase difference between each pair of objects.

## Definition

In the most popular version of the Kuramoto model, each of the oscillators is considered to have its own intrinsic natural frequency $\omega _{i}$, and each is coupled equally to all other oscillators. Surprisingly, this fully nonlinear model can be solved exactly in the limit of infinite oscillators, N→ ∞; alternatively, using self-consistency arguments one may obtain steady-state solutions of the order parameter. The most popular form of the model has the following governing equations:
    ${\frac {d\theta _{i}}{dt}}=\omega _{i}+{\frac {1}{N}}\sum _{j=1}^{N}K_{ij}\sin(\theta _{j}-\theta _{i}),\qquad i=1\ldots N$,
where the system is composed of N limit-cycle oscillators, with phases $\theta _{i}$ and coupling constant K.
Noise can be added to the system. In that case, the original equation is altered to
    ${\frac {d\theta _{i}}{dt}}=\omega _{i}+\zeta _{i}+{\dfrac {K}{N}}\sum _{j=1}^{N}\sin(\theta _{j}-\theta _{i})$,
where $\zeta _{i}$ is the fluctuation and a function of time. If the noise is considered to be white noise, then
    $\langle \zeta _{i}(t)\rangle =0$ ,
    $\langle \zeta _{i}(t)\zeta _{j}(t')\rangle =2D\delta _{ij}\delta (t-t')$
with $D$ denoting the strength of noise.

## Transformation

The transformation that allows this model to be solved exactly (at least in the N → ∞ limit) is as follows:
Define the "order" parameters r and ψ as
    $re^{i\psi }={\frac {1}{N}}\sum _{j=1}^{N}e^{i\theta _{j}}$.
Here r represents the phase-coherence of the population of oscillators and ψ indicates the average phase. Substituting in the equation gives
    ${\frac {d\theta _{i}}{dt}}=\omega _{i}+Kr\sin(\psi -\theta _{i})$.
Thus the oscillators' equations are no longer explicitly coupled; instead the order parameters govern the behavior. A further transformation is usually done, to a rotating frame in which the statistical average of phases over all oscillators is zero (i.e. $\psi =0$). Finally, the governing equation becomes
    ${\frac {d\theta _{i}}{dt}}=\omega _{i}-Kr\sin(\theta _{i})$.

## Large N limit

Now consider the case as N tends to infinity. Take the distribution of intrinsic natural frequencies as g(ω) (assumed normalized). Then assume that the density of oscillators at a given phase θ, with given natural frequency ω, at time t is $\rho (\theta ,\omega ,t)$. Normalization requires that
    $\int _{-\pi }^{\pi }\rho (\theta ,\omega ,t)\,d\theta =1.$
The continuity equation for oscillator density will be
    ${\frac {\partial \rho }{\partial t}}+{\frac {\partial }{\partial \theta }}[\rho v]=0,$
where v is the drift velocity of the oscillators given by taking the infinite-N limit in the transformed governing equation, such that
    ${\frac {\partial \rho }{\partial t}}+{\frac {\partial }{\partial \theta }}[\rho \omega +\rho Kr\sin(\psi -\theta )]=0.$
Finally, the definition of the order parameters must be rewritten for the continuum (infinite N) limit. $\theta _{i}$ must be replaced by its ensemble average (over all $\omega$) and the sum must be replaced by an integral, to give
    $re^{i\psi }=\int _{-\pi }^{\pi }e^{i\theta }\int _{-\infty }^{\infty }\rho (\theta ,\omega ,t)g(\omega )\,d\omega \,d\theta .$

## Solutions for the large N limit

The incoherent state with all oscillators drifting randomly corresponds to the solution $\rho =1/(2\pi )$. In that case $r=0$, and there is no coherence among the oscillators. They are uniformly distributed across all possible phases, and the population is in a statistical steady-state (although individual oscillators continue to change phase in accordance with their intrinsic ω).
When coupling K is sufficiently strong, a fully synchronized solution is possible. In the fully synchronized state, all the oscillators share a common frequency, although their phases can be different.
A solution for the case of partial synchronization yields a state in which only some oscillators (those near the ensemble's mean natural frequency) synchronize; other oscillators drift incoherently. Mathematically, the state has
    $\rho =\delta \left(\theta -\psi -\arcsin \left({\frac {\omega }{Kr}}\right)\right)$
for locked oscillators, and
    $\rho ={\frac {\rm {normalization\;constant}}{(\omega -Kr\sin(\theta -\psi ))}}$
for drifting oscillators. The cutoff occurs when $|\omega |<Kr$.
When $g$ is unimodal and symmetric, then a stable state solution for the system is $r=rK\int _{-\pi /2}^{\pi /2}\cos ^{2}\theta g(Kr\sin \theta )d\theta$As coupling increases, there is a critical value $K_{c}=2/\pi g(0)$ such that when $K<K_{c}$, the long-term average of $r=0$, but when $K=K_{c}(1+\mu )$, where $\mu >0$ is small, then $r\approx {\sqrt {\frac {16}{\pi K_{\mathrm {c} }^{3}}}}{\sqrt {\frac {\mu }{-g^{\prime \prime }(0)}}}$.

## Small N cases

When N is small, the solutions given above breaks down, as the continuum approximation cannot be used.
The N=2 case is trivial. In the rotating frame $\omega _{1}=-\omega _{2}$, and so the system is described exactly by the angle between the two oscillators: $\Delta \theta =\theta _{1}-\theta _{2}$. When $K<K_{c}=2|\omega _{1}|$, the angle cycles around the circle (that is, the fast oscillator keeps lapping around the slow oscillator). When $K>K_{c}$, the angle falls into a stable attractor (that is, the two oscillators lock in phase). Similarly, the state space of the N=3 case is a 2-dimensional torus, and so the system evolves as a flow on the 2-torus, which cannot be chaotic.
Chaos first occurs when N=4. For some settings of $\omega _{1},\omega _{2},\omega _{3},K$, the system has a strange attractor.

## Connection to Hamiltonian systems

The dissipative Kuramoto model is contained in certain conservative Hamiltonian systems with Hamiltonian of the form
    ${\mathcal {H}}(q_{1},\ldots ,q_{N},p_{1},\ldots ,p_{N})=\sum _{i=1}^{N}{\frac {\omega _{i}}{2}}(q_{i}^{2}+p_{i}^{2})+{\frac {K}{4N}}\sum _{i,j=1}^{N}(q_{i}p_{j}-q_{j}p_{i})(q_{j}^{2}+p_{j}^{2}-q_{i}^{2}-p_{i}^{2})$
After a canonical transformation to action-angle variables with actions $I_{i}=\left(q_{i}^{2}+p_{i}^{2}\right)/2$ and angles (phases) $\phi _{i}=\mathrm {arctan} \left(q_{i}/p_{i}\right)$, exact Kuramoto dynamics emerges on invariant manifolds of constant $I_{i}\equiv I$. With the transformed Hamiltonian
    ${\mathcal {H'}}(I_{1},\ldots I_{N},\phi _{1}\ldots ,\phi _{N})=\sum _{i=1}^{N}\omega _{i}I_{i}-{\frac {K}{N}}\sum _{i=1}^{N}\sum _{j=1}^{N}{\sqrt {I_{j}I_{i}}}(I_{j}-I_{i})\sin(\phi _{j}-\phi _{i}),$
Hamilton's equation of motion become
    ${\frac {dI_{i}}{dt}}=-{\frac {\partial {\mathcal {H}}'}{\partial \phi _{i}}}=-{\frac {2K}{N}}\sum _{k=1}^{N}{\sqrt {I_{k}I_{i}}}(I_{k}-I_{i})\cos(\phi _{k}-\phi _{i})$
and
    ${\frac {d\phi _{i}}{dt}}={\frac {\partial {\mathcal {H}}'}{\partial I_{i}}}=\omega _{i}+{\frac {K}{N}}\sum _{k=1}^{N}\left[2{\sqrt {I_{i}I_{k}}}\sin(\phi _{k}-\phi _{i})\right.\left.+{\sqrt {I_{k}/I_{i}}}(I_{k}-I_{i})\sin(\phi _{k}-\phi _{i})\right].$
So the manifold with $I_{j}=I$ is invariant because ${\frac {dI_{i}}{dt}}=0$ and the phase dynamics ${\frac {d\phi _{i}}{dt}}$ becomes the dynamics of the Kuramoto model (with the same coupling constants for $I=1/2$). The class of Hamiltonian systems characterizes certain quantum-classical systems including Bose–Einstein condensates.

## Variations of the models

There are a number of types of variations that can be applied to the original model presented above. Some models change the topological structure, others allow for heterogeneous weights, and other changes are more related to models that are inspired by the Kuramoto model but do not have the same functional form.

### Variations of network topology

Beside the original model, which has an all-to-all topology, a sufficiently dense complex network-like topology is amenable to the mean-field treatment used in the solution of the original model (see Transformation and Large N limit above for more info). Network topologies such as rings and coupled populations support chimera states. One also may ask for the behavior of models in which there are intrinsically local, like one-dimensional topologies which the chain and the ring are prototypical examples. In such topologies, in which the coupling is not scalable according to 1/N, it is not possible to apply the canonical mean-field approach, so one must rely upon case-by-case analysis, making use of symmetries whenever it is possible, which may give basis for abstraction of general principles of solutions.
Uniform synchrony, waves and spirals can readily be observed in two-dimensional Kuramoto networks with diffusive local coupling. The stability of waves in these models can be determined analytically using the methods of Turing stability analysis. Uniform synchrony tends to be stable when the local coupling is everywhere positive whereas waves arise when the long-range connections are negative (inhibitory surround coupling). Waves and synchrony are connected by a topologically distinct branch of solutions known as ripple. These are low-amplitude spatially-periodic deviations that emerge from the uniform state (or the wave state) via a Hopf bifurcation. The existence of ripple solutions was predicted (but not observed) by Wiley, Strogatz and Girvan, who called them multi-twisted q-states.
The topology on which the Kuramoto model is studied can be made adaptive by use of fitness model showing enhancement of synchronization and percolation in a self-organised way.
A graph with the minimal degree at least $d_{min}\geq 0.5\ n$ will be connected nevertheless for a graph to synchronize a little more it is required for such case it is known that there is critical connectivity threshold $\mu _{c}$ such that any graph on $n$ nodes with minimum degree $d_{min}\geq \mu _{c}(n-1)$ must globally synchronise.for $n$ large enough. The minimum maximum are known to lie between $0.6875\leq \mu _{c}\leq 0.75$.
Similarly it is known that Erdős-Rényi graphs with edge probability precisely $p=(1+\epsilon )\ln(n)/n$ as $n$ goes to infinity will be connected and it has been conjectured that this value is too the number at which these random graphs undergo synchronization which a 2022 preprint claims to have proved.

### Variations of network topology and network weights: from vehicle coordination to brain synchronization

Some works in the control community have focused on the Kuramoto model on networks and with heterogeneous weights (i.e. the interconnection strength between any two oscillators can be arbitrary). The dynamics of this model reads as follows:
    ${\frac {d\theta _{i}}{dt}}=\omega _{i}+\sum _{j=1}^{N}a_{ij}\sin(\theta _{j}-\theta _{i}),\qquad i=1\ldots N$
where $a_{ij}$ is a nonzero positive real number if oscillator $j$ is connected to oscillator $i$. Such model allows for a more realistic study of, e.g., power grids, flocking, schooling, and vehicle coordination. In the work from Dörfler and colleagues, several theorems provide rigorous conditions for phase and frequency synchronization of this model. Further studies, motivated by experimental observations in neuroscience, focus on deriving analytical conditions for cluster synchronization of heterogeneous Kuramoto oscillators on arbitrary network topologies. Since the Kuramoto model seems to play a key role in assessing synchronization phenomena in the brain, theoretical conditions that support empirical findings may pave the way for a deeper understanding of neuronal synchronization phenomena.

### Variations of the phase interaction function

Kuramoto approximated the phase interaction between any two oscillators by its first Fourier component, namely $\Gamma (\phi )=\sin(\phi )$, where $\phi =\theta _{j}-\theta _{i}$. Better approximations can be obtained by including higher-order Fourier components,
    $\Gamma (\phi )=\sin(\phi )+a_{1}\sin(2\phi +b_{1})+...+a_{n}\sin(2n\phi +b_{n})$,
where parameters $a_{i}$ and $b_{i}$ must be estimated. For example, synchronization among a network of weakly-coupled Hodgkin–Huxley neurons can be replicated using coupled oscillators that retain the first four Fourier components of the interaction function. The introduction of higher-order phase interaction terms can also induce interesting dynamical phenomena such as partially synchronized states, heteroclinic cycles, and chaotic dynamics.

## Availability

* pyclustering library includes a Python and C++ implementation of the Kuramoto model and its modifications. Also the library consists of oscillatory networks (for cluster analysis, pattern recognition, graph coloring, image segmentation) that are based on the Kuramoto model and phase oscillator.