Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

9.1 Introduction

Disruption to the circadian clock, such as misaligned light or feeding, or extended night shift work, has been associated with a wide range of disorders such as decreased cognitive function [6, 13, 15]. Circadian rhythms are endogenous oscillatory processes involved in biological timekeeping and temporal regulation of biological function in nearly all forms of life [7]. Although the mechanism driving these oscillations varies between organisms, circadian rhythms share the characteristics of being endogenously generated, entrainable to environmental rhythms, and maintain a near-24h periodicity. In mammals, a transcriptional–translational oscillator present in nearly every cell type regulates transcriptional architecture, and along with further posttranscriptional regulation, intricately coordinates cellular and tissue function [23]. These cell-autonomous oscillators regulate gene expression within local tissue and, in turn, are coordinated by signals from the hypothalamic suprachiasmatic nucleus (SCN) which responds to light cues to entrain to the environment [26]. The sleep-wake cycle is the most immediately recognizable feature of circadian regulation, however, it is estimated that 5–20% of all transcripts within any mammalian cell type oscillate with a circadian frequency [28], and circadian regulation is broadly integrated with metabolic function [6, 16].

Low-amplitude circadian oscillation within tissue may result from perturbations to the oscillator driving lower amplitudes within individual cells, or driving desynchronization of the oscillators comprising the tissue population [22, 25]. Meanwhile, high-amplitude circadian oscillations are associated with good metabolic health [17]. Thus, there is a need to develop therapies to mitigate the effects of disruption to the circadian clock, to rapidly realign circadian phase with the environment following jet lag or shift work to avoid cognitive difficulty, and to promote high-amplitude circadian oscillation. Light, and more recently, small-molecule pharmaceuticals [10] provide possible two paths toward control of the clock. Since circadian rhythms are highly complex phenomena, phase and amplitude control of the clock may be achieved by a control theoretic approach to timing the delivery of drugs or light [5, 18, 27].

Control strategies devised for the manipulation of mammalian circadian rhythms may analogously be applied to other oscillatory biological systems, provided they are well described by limit cycle oscillators. Circadian oscillators in other species such as the KaiABC system in the cyanobacterium Synechococcus [12], or the Period-Timeless oscillator in Drosophila [8] have been modeled as limit cycle oscillators for more than a decade. More generally, genetic or phosphorylation-driven oscillators are a ubiquitous biological motif involved in the metabolic processes of numerous organisms from prokaryotes to mammals [9, 11], and the development of strategies for manipulating these systems is broadly desirable.

Several previous studies have examined the phase control of circadian rhythms. Several recent studies have focused on the application of light to drive phase shifts in the Drosophila [19, 20] or mammalian [18, 27] clock using an optimal control approach. However, solving the resulting optimal control problem is computationally prohibitive due to the inherent nonlinearity of the model, and the computed optimal control trajectory is susceptible to modeling errors and disturbances. Iteratively solving finite-horizon optimal control problems (as in model predictive control (MPC)) has provided demonstrably superior control performance. For example, MPC was used for shifting of the Drosophila clock [4, 5] or the mammalian clock [2]. This work uses nonlinear MPC as in [2] as a starting point for developing control of an oscillator population. These studies of the control of biological oscillators have focused on control of a single oscillator despite notable mismatch between single-cell and population dynamics [14]. Additionally, these studies have primarily focused on the application of light to the clock. Recently, pharmaceuticals have presented advantages for control of the clock, as they are much less invasive than strict control of an individual’s light environment, and may be delivered at any time of day. A more detailed approach to control of circadian dynamics would integrate tissue or population-scale effects, pharmacokinetics and pharmacodynamics, and interactions between different oscillator populations.

Herein, we begin to approach this detailed formulation by presenting a MPC framework for manipulating phase and synchrony within populations of uncoupled biological oscillators using a pharmaceutical agent, and demonstrate the efficacy of such an approach by in silico simulations of phase shifting in the mammalian clock. We do so by describing the population of oscillators as a phase probability density function (PDF), as in [22], and using the parametric infinitesimal phase response curve (PRC) to calculate how the phase PDF evolves in response to control input. By using a predictor that accounts explicitly for the variability in phase within a synchronized population, we are able to maintain synchrony of oscillators while performing a phase shift, unlike the single-oscillator case.

Chapter Overview

In this chapter, we present a framework for the control of a population of biological oscillators, motivated by the example of the mammalian circadian clock. In Sect. 9.2.1, we present an established model of the mammalian circadian oscillator and its response to the small molecule KL001, an early [10, 21]. In Sect. 9.2.2, we motivate and formulate the phase shifting control problem. We use a previously derived simplification of oscillator dynamics using the parametric phase response to a control input to reduce the dynamical model to a phase-only representation [2]: this is advantageous in reducing the dimensionality of the MPC problem, thereby curbing computational effort. In Sect. 9.2.3, we describe a controller for the case for a single oscillator, and demonstrate its function in silico in Sect. 9.2.4. In Sect. 9.3.1, we demonstrate that although this formulation may successfully control a single oscillator, applying this controller to manipulate mean phase of a population of oscillators may effect a desynchronization detrimental to biological function. We then modify the MPC problem in Sect. 9.3.2 using a probability density function of population phase in conjunction with the simplified dynamics to exert simultaneous control over phase and synchrony within an oscillator population. We demonstrate in Sect. 9.3.3 the in silico efficacy of this approach in maintaining synchrony throughout a phase realignment. Finally in Sect. 9.4, we discuss limitations of this approach, and challenges to its implementation in vivo and in vitro.

9.2 Control of a Single Circadian Oscillator

A standard approximation in the control of the circadian oscillator is describing the targeted circadian system (i.e., the population of cells comprising clocks in brain or peripheral tissues such as the liver) as a single limit cycle oscillator [2, 4, 5, 18,19,20, 27]. We begin our treatment of applying control to phase shift the circadian oscillator by exploiting this approximation, as in our previous work [2], to illustrate where it fails to capture population-scale phenomena.

9.2.1 Modeling the Circadian Oscillator

The mammalian circadian oscillator within an individual cell is comprised of interlocked transcriptional–translational feedback loops. The core negative feedback loop involves isoforms of the genes Period (Per) and Cryptochrome (Cry), which form PER-CRY heterodimers and enter the nucleus to bind to BMAL1-CLOCK E-box activators to repress their own transcription. As these repressors are degraded, BMAL1-CLOCK dimers activate transcription of Pers and Crys, resulting in a self-sustained oscillation. Downstream of the circadian feedback loops, clock components regulate transcriptional architecture through D-box, E-box, and ROR-binding elements. For an excellent review of the genetic components of the mammalian oscillator, see [23].

Numerous dynamical models of the circadian oscillator have been proposed. In this work, we selected the model from [10, 21], as it was created to identify the effect of the small-molecule KL001 on the mammalian oscillator. This model consists of 8 nonlinear coupled ODEs and 21 kinetic parameters, fully described in the supplement to [21] and not reproduced here due to space considerations. Because KL001 was found to stabilize nuclear PER-CRY transcription factors, control is implemented in the model by modifying the ODEs describing the degradation of PER-CRY dimers as follows:

$$\begin{aligned} \frac{d\mathrm {C1P}}{dt}= & {} v_{\mathrm {a,{CP}}} \mathrm {P} \cdot \mathrm {C1} - v_{\mathrm {d,{ CP}}} \mathrm {C1P} - \frac{( vdCn-u(t)) \mathrm {C1P} }{k_{\mathrm {deg,{Cn}}} +\mathrm {C1P} + \mathrm {C2P} }\end{aligned}$$
(9.1a)
$$\begin{aligned} \frac{d\mathrm {C2P }}{dt}= & {} v_{\mathrm {a,{CP}}} \mathrm {P}\cdot \mathrm {C2} - v_{\mathrm {d,{CP}}} \mathrm {C2P} - \frac{ (vdCn-u(t)) m_{\mathrm {C2N}} \mathrm {C2P} }{k_{\mathrm {deg,{Cn}}} + \mathrm {C2P} +\mathrm {C1P} }, \end{aligned}$$
(9.1b)

where \(u(t)\in [0,\bar{u}]\) is control input at time t, which reduces degradation rate vdCn. Generally \(\bar{u}\) should not be greater than vdCn, as a degradation reaction cannot be reversed so far as to synthesize new PER-CRY. Throughout, we set this value to 0.08. The states present in this model, and the effect of KL001, are shown in the schematic in Fig. 9.1a.

Fig. 9.1
figure 1

Schematic of mammalian circadian oscillator and effect of KL001. a Diagram of the core negative feedback loop driving mammalian circadian rhythms. All states and reactions shown are included explicitly in the model [21]. b Parametric infinitesimal PRC describing response to KL001 (reduction in parameter vdCn). Note that this is double plotted to allow visualization. c Synchrony of a population is affected by timing of KL001 application. Two example probability density functions (PDFs) of phase are plotted before (solid) and after (dashed) application of KL001 in silico at the phases shown. In regions of positive slope (blue), the phase PDF is dispersed, whereas in regions of negative slope (red), the PDF is condensed, even though the mean phase is unchanged

9.2.2 Model Reduction and the Phase Control Problem

Control of the circadian clock is primarily focused on shifting the phase of the circadian oscillator. A unique phase \(\phi \in [0,2\pi )\) may be assigned to each unique point on the limit cycle. An unperturbed oscillator on the limit cycle will advance in phase at a constant rate. Thus, points in state space that are not on the limit cycle may be assigned the phase of the point on the limit cycle to which they converge asymptotically in time [2].

The 8-ODE oscillator may be reduced to a single-ODE describing phase [24]:

$$\begin{aligned} \frac{d\phi }{dt} = \frac{2\pi }{\tau } - u(t)\,\frac{d}{dt}\frac{d\phi }{d(vdCn)}\Bigr |_{\mathbf {x}^\gamma }, \end{aligned}$$
(9.2)

where \(\tau \) is the period of oscillation (set to 24 h here), u(t) is the control input, and \(-\frac{d}{dt}\frac{d\phi }{d(vdCn)}\bigr |_{\mathbf {x}^\gamma }\) is the parametric infinitesimal phase response curve (PRC), the first-order Taylor approximation of the phase response with respect to changing parameter vdCn, evaluated on the limit cycle trajectory \(\mathbf {x}^\gamma \). The negative sign here is included in the PRC to reflect that u(t) is defined to have a positive value. Importantly, the PRC is itself a function of phase, resulting in a nonlinear ODE. This function may be calculated numerically in advance from the 8-ODE model by previously defined methods [2, 24]. The PRC is plotted in Fig. 9.1b. One may consider the control input to be either “speeding up” or “slowing down” the oscillation depending on the sign of the PRC. We opted to set the reference \(\phi =0\) where the concentration of Per mRNA is at a maximum.

As in [2], we are aiming to align the phase of the circadian oscillator (\(\phi \)) with an external tracking phase (denoted \(\phi _e\)), for example, the phase of the environment before and after a plane flight through multiple time zones or before and after beginning a shift work cycle. This externally imposed phase may be captured by a single ODE as well:

$$\begin{aligned} \frac{d\phi _e}{dt} = \frac{2\pi }{\tau _e} +\varDelta \phi \,\delta (t_{shift}), \end{aligned}$$
(9.3)

where \(\tau _e\) is the period of the environment (set to 24 h), and \(\varDelta \phi \in [-\pi ,\pi )\) is the phase shift of the environment that occurs at time \(t_{shift}\), for example, when disembarking from the flight or starting a period of shift work. We are searching for a control trajectory that will drive the oscillator \(\phi \) to external phase \(\phi _e\) and maintain it at \(\phi _e\) for all subsequent time. That is:

$$\begin{aligned} \lim _{t\rightarrow \infty } \Vert \phi (t,u) - \phi _e(t)\Vert= & {} 0. \end{aligned}$$

9.2.3 Control of Single-Oscillator Phase

While light may be applied or removed instantaneously, pharmaceutical perturbation of the clock is constrained by pharmacokinetics. To alleviate numerical complications arising due to unidentified (and likely nonlinear) pharmacokinetics, we selected a piecewise constant parameterization of the control:

$$\begin{aligned} u(t) = u(t_k) \; \forall \; t_k \le t < t_{k+1}, \end{aligned}$$
(9.4)

and denote the sampling time \(t_{k+1}-t_k\) as \(\tau _u\). For a predictive horizon of \(N_p\) steps of duration \(\tau _u\), we define

$$\begin{aligned} U\triangleq & {} \begin{bmatrix} u(t_k)&u(t_k+\tau _u)&\cdots&u\left( t_k+(N_p-1)\tau _u\right) \end{bmatrix}^\top \end{aligned}$$
(9.5)

as the knots of the control trajectory defined at each of the \(N_p\) steps. To estimate the phase at the end of each step, the phase dynamics in (9.2) may be integrated over each of the \(\ell \in \begin{bmatrix}1&\cdots&N_p\end{bmatrix}\) steps to yield:

$$\begin{aligned} \hat{\phi }(t_i+\ell \tau _u) = \phi (t_i) + \frac{2\pi \ell \tau _u}{\tau }-\sum _{k=0}^{\ell -1} \int _{t_{k+i}}^{t_{k+1+i}} u(t_k)\frac{d}{dt}\frac{d\phi }{d(vdCn)}\Bigr |_{\mathbf {x}^\gamma }\, dt, \end{aligned}$$
(9.6)

where \(\hat{\phi }\) is the predicted phase, \(t_i\) is the current time, \(\phi (t_i)\) is measured, and the PRC is a function of \(\hat{\phi }\). We define the phase error to be the magnitude of the phase difference between the predicted phase and the environmental phase:

$$\begin{aligned} e_\phi (\cdot )\triangleq & {} \left| \angle \left( \exp (I\hat{\phi }(\cdot )- I\phi _e(\cdot ))\right) \right| , \end{aligned}$$
(9.7a)

where \(I=\sqrt{-1}\). Computationally, driving phase error to 0 is numerically unstable, so we relax the terminal constraint by ignoring phase error below a constant \(\delta _\phi \):

$$\begin{aligned} g_{\phi }(\cdot )\triangleq & {} {\left\{ \begin{array}{ll} 0 &{} \text {if}\ e_\phi (\cdot )<\delta _\phi \\ e_\phi (\cdot ) &{} \text {otherwise} \end{array}\right. } \end{aligned}$$
(9.7b)

so that numerical imprecisions do not result in controller action. Thus, the finite-horizon optimal control problem at each time \(t_j\) may be solved for the optimal trajectory \(u^\star \):

$$\begin{aligned} \qquad u^\star&= \arg \min _{U} \;\sum _{\ell =1}^{N_p} w^\phi _{\ell }g^2_{\phi }(t_i+\ell \tau _u) + w^u_{\ell -1}u^2(t_i+(\ell -1)\tau _u)\nonumber \\ \text {subject to:}&\nonumber \\ \hat{\phi }(t_i+\ell \tau _u)&= \phi (t_i) + \frac{2\pi \ell \tau _u}{\tau }-\sum _{k=0}^{\ell -1} \int _{t_{k+i}}^{t_{k+1+i}}u(t_k)\frac{d}{dt}\frac{d\phi }{d(vdCn)}\Bigr |_{\mathbf {x}^\gamma }\, dt,\\ 0&\le u_{\ell -1}\le \bar{u},\nonumber \end{aligned}$$
(9.8)

for all \(\ell =1, \cdots ,N_p\), where \(w^\phi _{\ell }\) and \(w^u_{\ell -1}\) are positive weighting scalars evaluated at the end of the time step and start of the time step, respectively, as phase error is calculated after the control is applied for that step. After identifying the optimal piecewise control trajectory \(u^\star \), we applied \(u^\star (t_i)\) to the full 8-state ODE model for \(t \in (t_i, t_i+\tau _u]\) as is standard in model predictive control.

For this MPC formulation, \(w^\phi \), \(w^u\), \(N_p\), and \(\tau _u\) are design parameters which may vary. We have selected:

$$\begin{aligned} w^\phi _{\ell }&= \ell ,\\ w^u_{\ell -1}&= 1, \end{aligned}$$

for \( \ell =1,\cdots , N_p\). We have elsewhere investigated optimal selection of design variables \(N_p\) and \(\tau _u\) for this exact formulation of MPC [1]. Based on these findings, we set \(N_p=3\) (and \(N_u=N_p\) where \(N_u\) is the number of length of the control horizon) and \(\tau _u=2\) h, and instead studied the how phase control of a single oscillator differs from an oscillator population.

9.2.4 Case Study #1: Nonlinear MPC for a Single Oscillator

To demonstrate the behavior of this controller, we applied it for the phase shifting control problem where a phase delay of 6 h occurs at 12h (a phase delay of \(\pi /4\) at a phase of \(\pi \)). The environmental phase for this example was given by (9.3), where \(\varDelta \phi =-\pi /2\), and \(t_{shift} =12\) h. We used the Python language to solve the MPC problem, specifically, we used CasADi [3] and SciPy for formulation, and PySwarm to solve the nonlinear programming optimization problem. Here, the numerical error in calculating phase was \(\mathscr {O}(10^{-2})\) and so design variable \(\delta _\phi = 0.1\).

Fig. 9.2
figure 2

Application of the controller detailed in Sect. 9.2.3 for a phase delay of 6 h (\(\varDelta \phi = -\pi /2\)) with \(t_{shift} = 12\) h. The controller acts immediately beginning at \(t=12\) h, and completes the phase delay to align with the desired reference trajectory after the PRC returns to a negative value. Note that the initial negative region of the PRC is elongated due to control slowing the advance of phase and maintaining the oscillator in a phase with a negative PRC for longer

The results of this simulation are shown in Fig. 9.2. Briefly, the controller began its action at \(t=12\) h to achieve a phase delay. The full 6 h phase delay could not be achieved within the initial negative region, and so the remainder of the shift was accomplished when the PRC returned to a negative value near 30h. A decrease in amplitude occurred near \(t=30\) h due to transient deviation from the limit cycle, and the full amplitude returned for the following peak.

9.3 Control of Population Phase and Synchrony

The circadian oscillator is cell-autonomous, and each tissue is comprised of many thousands of individual oscillators. While the SCN master pacemaker maintains its synchrony through intercellular communication, other tissues such as the liver that lack paracrine signaling are kept synchronized through a variety of identified and as-yet unidentified means, as guided by the SCN [26]. The application of a pharmaceutical to any of these populations will affect this synchrony, and thus the amplitude of oscillation [22, 25].

While transient deviations from the limit cycle eventually return to the limit cycle amplitude, reduction in amplitude due to desynchrony will persist in the absence of signaling, making populations with weak coupling susceptible to long-term desynchrony from mistimed control. The change in synchrony in response to perturbation may be calculated from the PRC [22]. In Fig. 9.1c, we show how this may be intuitively understood based on the slope of the PRC: oscillator populations that lie on regions of positive slope result in the cells which are ahead in phase advancing further (or being delayed less) than oscillators which lag to begin with, broadening the probability density function (PDF) of phase. Inversely, populations lying on a region of negative slope are condensed in phase by a similar argument.

Here, we first apply the previously described controller to a population of uncoupled oscillators to demonstrate the deleterious effect of a population-agnostic nonlinear MPC on synchrony. We then modify the MPC controller to explicitly penalize population desynchronization and demonstrate the ability to simultaneously control phase and synchrony of a population.

9.3.1 Case Study #2: Limitation of Single-Oscillator Assumption

We first applied the controller from Sect. 9.2.3 to a population of oscillators, with slight modification for tracking the mean phase of the population. We modified the predictor in (9.6) to use the mean phase of the population \(\bar{\phi }\) rather than the phase of an individual oscillator:

$$\begin{aligned} \hat{\phi }(t_i+\ell \tau _u) = \bar{\phi }(t_i) + \frac{2\pi \ell \tau _u}{\tau }-\sum _{k=0}^{\ell -1} \int _{t_{k+i}}^{t_{k+1+i}} u(t_k)\frac{d}{dt}\frac{d\phi }{d(vdCn)}\Bigr |_{\mathbf {x}^\gamma }\, dt. \end{aligned}$$
(9.9)

Here, we calculated \(\bar{\phi }(t_i)\) from the phases of each oscillator \(\phi _n\) in the population by the parameter \(z\in \mathbb C\) describing the population:

$$\begin{aligned} z = \rho \,\exp (\mathrm {i}\bar{\phi }) = \frac{1}{N}\sum _{n=1}^{N}\exp (I\phi _n), \end{aligned}$$
(9.10)

where \(\rho \) is the Kuramoto order parameter, or colloquially, the synchrony index. We emphasize that the controller did not observe any information about the population aside from its mean phase, and as such, the predictor (9.6) used in the finite horizon optimal control problem was imprecise due to slight differences between single-cell and population mean phase response [22]. The controller was otherwise parameterized identically to that in Sect. 9.2.3.

Figure 9.3 shows the result of applying this controller to a population of 200 identical uncoupled oscillators with initial phases sampled from the PDF:

$$\begin{aligned} p(\phi ) = f_{WN}(\phi ; \phi _0, \sigma ), \end{aligned}$$
(9.11)

where \(f_{WN}\) indicates a wrapped normal distribution with mean \(\phi _0\) (set to 0, to match the mean with the single oscillator case), and standard deviation \(\sigma \) (set to \(\pi /12\), approximately capturing the distribution of phases observed) [22]. As in the single-cell case, control was applied immediately starting at \(t=12\) h to begin correcting for the 6 h phase delay. In the population case, this corresponds to a region of positive slope of the PRC, and intuitively resulted in a desynchronization of phase as evidenced by the decline in synchrony index for the duration of the KL001 pulse. Despite the amplitudes of the individual oscillators (gray) returning after a transient to their pre-pulse levels, the population mean [PER] amplitude was reduced by approximately one-third due to desynchronization of the population. Because there was no intercellular or external communication driving synchrony, the amplitude of the mean remained diminished for the duration of the simulation.

Fig. 9.3
figure 3

Application of the controller from Sect. 9.2.3 for a phase delay of 6 h (\(\varDelta \phi = -\pi /2\)) with \(t_{shift} = 12\), for shifting mean phase of a population of 200 circadian oscillators (individual trajectories plotted in gray). While control is applied in nearly the same regions as Fig. 9.1 and a \(-6\) h shift was attained, this resulted in a dispersion of phase, a decrease in synchrony index, and a reduction in mean oscillatory amplitude

9.3.2 Population MPC Algorithm for Phase Coherence

A more sophisticated approach to control of an oscillator population involves predicting the evolution of the PDF itself rather than only mean phase. Methods have been developed previously to compute the change in PDF directly in response to stimulation [22]. A change in variables allows the numerical computation of the new phase PDF:

$$\begin{aligned} \hat{p}(\phi , t)dh(\phi ) = p(\phi , t)d\phi , \end{aligned}$$
(9.12)

where \(\hat{p}(\phi , t)\) is the predicted PDF at time t for phases \(\phi \), and \(h(\phi ) = \phi + \varDelta \phi \), called the phase transition curve (PTC), is the total response to perturbation. We may therefore revise the prediction model to explicitly involve calculation of the phase PDF at each step of the predictive horizon. The PTC for each step within the predictive horizon may be calculated in a similar fashion to the predictor for the single-oscillator case:

$$\begin{aligned} h_k(\phi ) = \phi + \frac{2\pi \tau _u}{\tau } -u(t_k) \int _{t_{k}}^{t_{k+1}}\frac{d}{dt}\frac{d\phi }{d(vdCn)}\Bigr |_{\mathbf {x}^\gamma }\, dt, \end{aligned}$$
(9.13)

where u is piecewise constant and the integrand is a function of \(\phi \) which may be calculated numerically in advance as previously defined. This function may be calculated numerically for each step, and used to calculate the evolution of the PDF:

$$\begin{aligned} \hat{p}(\phi , t_{k+1})dh_k(\phi ) = \hat{p}(\phi , t_k)d\phi . \end{aligned}$$
(9.14)

To calculate the first step, \(\hat{p}(\phi , t) = p(\phi , t)\) is measured from the population under control. The population predicted mean phase \(\hat{\phi }\) and synchrony index \(\hat{\rho }\) may then be calculated from the predicted PDF:

$$\begin{aligned} \hat{\rho }(t_k)\exp (I\hat{\phi }(t_k)) = \int _0^{2\pi } \hat{p}(\theta ,t_k)\exp (I\theta )d\theta , \end{aligned}$$
(9.15)

where \(\theta \) is a dummy variable of phase. The phase error term \(g_\phi \) may remain as defined in (9.7), and we define a similar error term penalizing desynchrony

$$\begin{aligned} g_{\rho }(\cdot )\triangleq & {} {\left\{ \begin{array}{ll} 0 &{} \text {if}\ \rho >\delta _\rho \\ (1-\rho (\cdot )) &{} \text {otherwise} \end{array}\right. } \end{aligned}$$
(9.16)

which reduces to 0 for a satisfactorily synchronized population.

Thus, the population control problem is:

$$\begin{aligned} \qquad u^\star&= \arg \min _{U} \;\mathscr {J}\nonumber \\ \text {subject to:}&\nonumber \\ \mathscr {J}&= \sum _{\ell =1}^{N_p} w^\phi _{\ell }g^2_{\phi }(t_i+\ell \tau _u)+ w^\rho _{\ell }g^2_\rho (t_i+\ell \tau _u) + w^u_{\ell -1}u^2(t_i+(\ell -1)\tau _u),\nonumber \\ h_k(\phi )&= \frac{2\pi \tau _u}{\tau } -u(t_k) \int _{t_{k}}^{t_{k+1}}\frac{d}{dt}\frac{d\phi }{d(vdCn)}\Bigr |_{\mathbf {x}^\gamma }\, dt,\nonumber \\ \hat{p}(\phi , t_{k+1})dh_k(\phi )&= \hat{p}(\phi , t_k)d\phi \\ \hat{\rho }(t_k)\exp (I\hat{\phi }(t_k))&= \int _0^{2\pi } \hat{p}(\theta ,t_k)\exp (I\theta )d\theta \nonumber \\ 0&\le u_{\ell -1}\le \bar{u},\nonumber \end{aligned}$$
(9.17)

where phase error and synchrony are calculated at the end of each step within the predictive horizon.

9.3.3 Case Study #3: Implementation of Population Nonlinear MPC Controller

As before, \(w^{\phi }\), \(w^u\), \(w^\rho \), \(N_p\) and \(\tau _u\) are design parameters. These parameters were set as in Sect. 9.2.3, with the exception of the new weighting of synchrony:

$$\begin{aligned} \nonumber w^\rho = 10(\ell +1), \end{aligned}$$

which was set such that the synchrony term is of the same order of magnitude as the phase term, and increases to allow flexibility of synchrony early in the horizon. Tuning this parameter will adjust the sensitivity of the controller to temporary desynchrony. As \(w^\rho \rightarrow \infty \), the controller will take no action unless it results in no loss of synchrony, i.e., the population lies completely on a region of negative slope of the PRC. For lower but nonzero \(w^\rho \), as in the case here, some flexibility is permitted, in that the controller may apply action that desynchronizes the population if it results in a large reduction in phase error. Correspondingly, the controller will later resynchronize the population to account for this early desynchrony. For \(w^\rho =0\), the controller will behave as the population-agnostic case. After calculating the finite-horizon optimal control \(u^\star \), we apply the first step \(u^\star (t_j)\) to all oscillators within the population for \(t\in [t_j,t_j+\tau _u)\), and repeat this process.

We applied the controller described in Sect. 9.3.2 to the same phase shifting problem as the previous controllers: \(t_{shift}=12\) h, \(\varDelta \phi = -6\) h. The initial phase of the 200 uncoupled oscillators comprising the population was sampled from the PDF:

$$\begin{aligned} p(\phi ) = f_{WN}(\phi ; \phi _0, \sigma ), \end{aligned}$$
(9.18)

where \(f_{WN}\) indicates a wrapped normal distribution with mean \(\phi _0 = 0\) and standard deviation \(\sigma =\pi /12\).

Results from this simulation are shown in Fig. 9.4. The controller first applied input briefly in a slight desynchronizing region of the PRC, then paused for the remainder of the first negative PRC region due to the likelihood of further desynchronizing the population. Once the population PDF returned to a region of negative PRC and a negative first derivative of the PRC, the controller resumed input driving the population to its 6 h phase delay and restoring full synchrony. Strikingly, changing the time of input resulted in a slight increase in the synchrony of the population in comparison to its original state, evidenced by an increase in the synchrony index. Visually, this is evident from the clear alignment of individual oscillators within the population (plotted in gray) in comparison to the dispersion in phase evident in Fig. 9.3 where synchrony was ignored.

Fig. 9.4
figure 4

Application of the controller from Sect. 9.3.2 for a phase delay of 6 h (\(\varDelta \phi = -\pi /2\)) at \(t_{shift} = 12\) for a population of 200 oscillators (individual trajectories plotted in gray). This controller explicitly accounted for synchrony of the population. After a brief input to begin the shift, the controller delayed the majority of its input to find a region where population synchrony would be maintained. Indeed, synchrony is slightly improved by the control action, and a phase delay of 6h was achieved

9.4 Conclusion

We have presented a modification of nonlinear MPC for phase manipulation of circadian oscillator populations, in which a PDF of phase is used in solving the finite-horizon optimal control problem, allowing mean phase and population synchrony to be regulated simultaneously. For many PRCs that have been calculated, there exists a region where the PRC or first derivative of the PRC is zero [7], it is therefore possible to manipulate phase and synchrony independently for a population of circadian oscillators through a single control input. In reality, the ability to target these regions is limited by precision of the measurements of the PRC and population phase PDF.

One significant challenge in implementing this control algorithm in vitro or in vivo is the construction of an observer with sufficient accuracy to accurately reconstruct the phase PDF. Current methods of assessing the phase of circadian oscillators rely on either noisy single-cell bioluminescent markers in vitro or system level metrics in vivo such as melatonin, activity, or body temperature. However, even a simplistic assumption such as a wrapped normal PDF with an arbitrary estimate of standard deviation of phase could help avoid delivering control inputs where the slope of the PRC is expected to be positive, and thus help avoid desynchrony. In this case, a long predictive horizon would quickly become inaccurate, however, necessitating careful selection of design variables \(\tau _u\) and \(N_p\).

Another challenge toward implementing such an algorithm is incorporating the as-yet uncharacterized pharmacokinetics and pharmacodynamics (PK/PD) for a small molecule such as KL001. This could potentially be achieved by including these terms directly in the prediction step of the MPC. Uncertainty and individual variability in PK/PD measurements may reduce the accuracy of such an approach, however, further study is necessary to determine the extent of this variability, and how these inaccuracies affect controller performance.

It is our hope that these and similar control theoretic methods will inform the discovery of circadian therapies, and enable novel experimental design toward better understanding the dynamics of cellular populations and communication.