Time optimal entrainment control for circadian rhythm
Authors:
A. Agung Julius aff001; Jiawei Yin aff001; John T. Wen aff001
Authors place of work:
Dept. Electrical, Computer, and Systems Engineering, Rensselaer Polytechnic Institute, Troy, NY, United States of America
aff001; Lighting Enabled Systems and Applications (LESA) Engineering Research Center, Rensselaer Polytechnic Institute, Troy, NY, United States of America
aff002; Dept. Industrial and Systems Engineering, Rensselaer Polytechnic Institute, Troy, NY, United States of America
aff003
Published in the journal:
PLoS ONE 14(12)
Category:
Research Article
doi:
https://doi.org/10.1371/journal.pone.0225988
Summary
The circadian rhythm functions as a master clock that regulates many physiological processes in humans including sleep, metabolism, hormone secretion, and neurobehavioral processes. Disruption of the circadian rhythm is known to have negative impacts on health. Light is the strongest circadian stimulus that can be used to regulate the circadian phase. In this paper, we consider the mathematical problem of time-optimal circadian (re)entrainment, i.e., computing the lighting schedule to drive a misaligned circadian phase to a reference circadian phase as quickly as possible. We represent the dynamics of the circadian rhythm using the Jewett-Forger-Kronauer (JFK) model, which is a third-order nonlinear differential equation. The time-optimal circadian entrainment problem has been previously solved in settings that involve either a reduced-order JFK model or open-loop optimal solutions. In this paper, we present (1) a general solution for the time-optimal control problem of fastest entrainment that can be applied to the full order JFK model (2) an evaluation of the impacts of model reduction on the solutions of the time-optimal control problem, and (3) optimal feedback control laws for fastest entrainment for the full order Kronauer model and evaluate their robustness under some modeling errors.
Keywords:
Algorithms – Chronobiology – Graphs – Nonlinear dynamics – Circadian rhythms – Body temperature – Circadian oscillators – Numerical integration
1 Introduction
The circadian rhythm is a mechanism with which living beings can synchronize their biological processes with the light and dark pattern of the terrestrial day [1]. Effectively, the circadian rhythm functions as a master clock that regulates these processes [2]. In humans, the circadian rhythm is heavily linked to various physiological processes, including sleep, metabolism, hormone secretion, and neurobehavioral processes. Disruption of the circadian rhythm is known to have negative impacts on health, ranging from fatigue in travelers with jet-lag to an increased risk of cancer in rotating shift workers [3].
Light is the strongest circadian stimulus. In the literature, there are mathematical models that capture the dynamics of the circadian rhythm and how light affects it. The most detailed models are based on the biochemical and gene regulation processes behind the circadian rhythms, such as those in [4–6]. Empirical models, such as variants of the well-known Jewett-Forger-Kronauer (JFK) model [7, 8], are simpler and capture the essential behavior of the human core body temperature oscillation and the effect of light on the phase and amplitude of this oscillation. As demonstrated in [9], the JFK model may be considered as the asymptotic case of the biochemical models in an averaged sense.
One aspect of circadian rhythm regulation that has received a lot of attention is the (re)entrainment problem, i.e., the problem of driving a misaligned circadian phase to a reference circadian phase. Such problems occur, for example, in travelers with jet-lag or workers with rotating shifts. This problem is typically expressed as an optimal control problem of a system with nonlinear dynamics. The control inputs into the system are typically light [10] and chemicals that target circadian genes [11]. Some researchers have proposed to use model predictive control to deal with the nonlinear dynamics of the circadian rhythm without any guarantee of optimality of the solutions [12–15]. In contrast, others consider the time-optimal control problem related to circadian entrainment [16]. Our prior work (c.f. [17–21]) that used the Pontryagin Maximum Principle approach falls under this category. A related work reported in [22] also posed the time-optimal control problem and solved it by assuming that the optimal light schedule would alternate between using maximally bright circadian light and darkness. In the optimal control literature, such strategies are called bang-off strategies. Subsequently, the time-optimal scheduled is computed by optimizing the switching times of the light (i.e., between light on and off).
In this paper, we solve the time-optimal control problem of the fastest entrainment on the JFK model. The JFK model for human circadian rhythm is a third-order nonlinear differential equation, which is detailed in Sec. 2. In our prior work [18, 19], we study the optimal entrainment of a reduced model with second-order dynamics, which is obtained by ignoring a (fast) part of the dynamics, which is called the Process-L. In some later work [20, 21], we study the optimal entrainment of a further reduced model, which is obtained by ignoring the amplitude of the circadian oscillation and focusing on the phase dynamics of the oscillation. These reductions were necessary to solve the time-optimal control problem; otherwise, the solution procedures that we used were not numerically stable. The contributions of this paper can be stated as follows.
-
We formulate a general solution for the time-optimal control problem of fastest entrainment that can be applied to the full order JFK model.
-
We evaluate the impacts of the ignored dynamics in the reduced-order models on the solutions of the time-optimal control problem.
-
We formulate optimal feedback control laws for fastest entrainment for the full order JFK model and evaluate their robustness under modeling error.
The main tool that we use to achieve these results are (i) the lower order models that allow us to compute the solutions of similar (but simpler) problems as initial approximations of the optimal solution, and (ii) the calculus of variations that allows us to formulate a functional gradient descent algorithm to minimize the objective (i.e., entrainment time) from the initial approximations above. Note that the algorithms which are proposed to calculate the (locally or globally) optimal light input for the minimum-time entrainment only depend on the known initial states (open-loop form) instead of the current circadian states during the whole entrainment time (feedback form). If the given values of the initial states are not accurate or disturbances in the light inputs or circadian states occur during the entrainment processes, the minimum-time optimal light inputs which are given as a function of time might turn out to be invalid for entrainment. The feedback implementation of the optimal light input becomes necessary for robust entrainment. To implement the feedback entrainment, we collect data from the computed open-loop optimal trajectories to learn an optimal feedback control strategy. In contrast, existing results to this problem, e.g., those reported in [22], only report on the procedure to obtain the open-loop optimal trajectories. We also demonstrate the robustness of the optimal feedback control strategy by applying it on problem setups that are not used in the training data set.
The rest of the paper is organized as follows. Section 2 covers the full order model and the definition of the time-optimal control problem. In Section 3, we define the reduced-order models and the corresponding time-optimal control problems. In Section 4, we present the algorithms that we use to solve the time-optimal control problems above. In Section 5, we evaluate the impacts of the ignored dynamics in the reduced-order models on the solutions of the time-optimal control problem. In Section 6, we present the optimal feedback control laws for the time-optimal control problem. Finally, Section 7 concludes the paper with some discussion on the main results.
2 Problem formulation
The circadian rhythm entrainment problem in this paper is studied based on the JFK model [7]. This model is proposed on the dynamics and light-induced variations in the core body temperature (CBT), comprised with two processes: (1) the Process-L simulates the transduction from the light energy received by the retina to the neuron stimulus transmitted by the retina. It is also closely linked to the light adaption process of our eyes; (2) the Process-P simulates when the SCN receives the stimulus from the retina, how does the CBT change with this light-induced stimulus. The dynamics of the CBT oscillator is formulated and normalized on the Van Der Pol limit cycle. The dynamics of this circadian rhythm model is expressed as the following ordinary differential equations:
Here x(t) and xc(t) are the states of the CBT oscillator, and n(t) is the state of the process that represents retinal photoreceptor saturation (termed Process-L). The states x(t) and n(t) are normalized and do not have physical units. The unit of xc(t) is h−1. Light input that enters the receptor is represented by its intensity I(t), which drives the Process-L. The signal u(t) is the input to the circadian oscillator, downstream from the Process-L. The values of the parameters of this model are reported in Table 1 below.
We define a 24 h- periodic light input
PROBLEM (TOE)
Given the system dynamics (1)–(6) and initial conditions
Throughout the paper, we define the circadian phase(in radian) of any point on the limit cycle of the circadian oscillation [x, xc, n] as
3 Model simplification
To reduce the complexity of solving the optimization problem above, some simpler models have been introduced. The optimization problem was then reformulated for the simplified models. In this section, we briefly review the simplified models and compare their behaviors under the periodic light input in Eq (7).
3.1 Second-order model
In this model, we exploit the fact that the Process-L (3) has a much faster time scale than the circadian oscillator. We use quasi steady-state approximation to assume that the Process-L is always at its steady-state. This yields
Since u is related to I through a static nonlinear mapping (13), we can simplify the circadian oscillation model by assuming that u is the control input and removing the Process-L from the model. The resulting model is therefore
Further, we map the periodic input in (7) through (13) and obtain a 24 h- periodic circadian input
The reference state trajectories in this part, denoted as x ˜ ( t ) and x ˜ c ( t ), respectively, are the stable limit cycle solution of the 2nd-order model with the periodic input Uw(t).
For the 2nd-order model, we can define a surrogate for the time optimal entrainment problem (TOE) as follows:
PROBLEM (TOE-2nd Order)
Given the system dynamics (14)–(16) and initial conditions
3.2 First-order model
Exploiting the fact that the 2nd-order circadian model has a stable limit cycle, we can further reduce the 2nd-order model to one that basically only captures the dynamics of the phase of the oscillation, and thus ignores the amplitude of the oscillation. The first-order model is of the form
We compute the phase response function f(θ) with the following procedure.
-
Step 1
Obtain the free running periodic solution to (14)–(16) by setting u(t) ≡ 0. Denote this solution as ( x ˜ f ( t ) , x ˜ c f ( t ) ) and the period as Tω. We assume the timing convention occurs at x ˜ f c ( 0 ) = 0 and x ˜ f ( 0 ) is at maximum.
-
Step 2
Choose different values of τ ∈ [0, Tω], run the model in (14)–(16) with initial conditions x ( 0 ) = x ˜ f ( τ ) and x c ( 0 ) = x ˜ c f ( τ ) with the impulsive input signal
The corresponding impulsing phase is defined as
-
Step 3
Since (x, xc) will converge back to the free running periodic orbit, we define the resulting time shift Tθ (modulo the period Tω) such that
Then, the phase response function is given by
The resulting PRC is demonstrated as Fig 1, which is used for the formulation of the 1st-order model in (21).
Forcing the first-order model in Eq (21) with the periodic circadian input Uw(t) from Eq (17) results in a periodic limit cycle (modulo 2π), where the circadian phase trajectory is denoted as θ ¯ ( t ). For the first-order model, we can define a surrogate for the time-optimal entrainment problem (TOE) as follows:
PROBLEM (TOE-1st order)
Given the system dynamics (21) with an initial condition
3.3 Behaviors under periodic light inputs
Under the periodic inputs Iw(t) (for the full order model) and Uw(t) (for the reduced models), the system exhibits stable limit cycles. Fig 2 shows a comparison between the periodic orbits of these models for Iw,max = 100 lux (comparable to the light intensity in a dim indoor space such as office corridors or elevators [25]), and Iw,max = 10000 lux (comparable to the light intensity outdoor on a bright day). The corresponding values of Uw,max (through (13)) are 0.1028 and 0.2208, respectively. We can make the following observations from these simulation data:
-
The periodic orbits of the full order model and the second-order model are practically the same.
-
There is a relative phase shift between these models, marked by the circadian phases at sunrise. At Iw,max = 100 lux, the largest gap is 0.0974 rad (22.31 min) between the first-order and second-order models. At Iw,max = 10000 lux, the largest gap is 0.1534 rad (35.15 min) between the second-order and the full order model.
-
The impact of the Process-L is more significant at the higher circadian light intensity. This can be observed by comparing the waveforms of the circadian input u(t) in the full order and second-order models. At Iw,max = 10000 lux, u(t) has more pronounced spikes when the light is switched on, compared to at Iw,max = 100 lux.
4 Solution strategies for the time optimal entrainment problems
Solution strategies for TOE-2nd order and TOE-1st order have been reported in [19, 20], respectively. For completeness, we summarize the strategies in this section.
First, note that all system models are single input affine nonlinear systems. That is, they can be written in the following format
Further, the time optimal entrainment (TOE) problem can be cast as a time optimal control problem with terminal state constraint, which can be formulated as minimizing the objective
The function η : R n × R → R can be used to represent the fact that the terminal state must be at a time-varying target state (i.e., the reference). In terms of the entrainment problem of the three models mentioned in this paper, we define the expression of η = 0 based on (9), (19) and (27), respectively.
Following the Pontryagin’s Maximum Principle, we formulate the augmented cost function
The first variation of the objective J with respect to the input signal υ(t) is given by
Remark 1 The case where λ*T γ(ξ*) is zero for a time interval of nonzero length is called a singular arc. We show in [19] that singular arcs do not affect the solution of TOE-2nd Order. Further, although not presented here, it is not difficult to see that the singular arc does not exist in the TOE-1st Order as it would violate the transversality condition explained below.
The evolution of the state follows the model in (29), while the co-state evolves according to
Further, λ*(t) needs to satisfy its terminal condition,
To solve the optimal control problem above, we use two algorithms, which are explained below along with their strengths and weaknesses.
4.1 Direct shooting algorithm (DSA)
In this algorithm, we view the two point boundary value problem above as finding the appropriate initial co-state λ*(0). Observe that if (ξ*(t), υ*(t), λ*(t)) satisfy (29), (37), and (38), then so do (ξ*(t), υ*(t), cλ*(t)) for any positive scalar c. The right scalar c has to be chosen to satisfy the transversality condition (39). Therefore, the search space for λ*(0) can be reduced from R n to the unit sphere in R n. It turns out that for TOE-2nd Order and TOE-1st Order, we can solve the two point boundary value problem rather efficiently. For TOE-2nd Order, this means λ*(0) can be sought on a circle. For TOE-1st Order, there are only two candidates for λ*(0). The basic direct shooting algorithm can then be expressed as follows:
-
Step 1
Create N sample points on the unit sphere in R n. Denote them as λ1, ⋯, λN.
-
Step 2
For each of i ∈ {1, ⋯, N} do: simulate ξ(t) and λ(t) forward using (29), (37), and (38), under initial conditions ξ(0) = ξinit and λ(0) = λi. Terminate the simulation when the final state constraint is satisfied,
-
Step 3
Several locally optimal solutions can be found using the direct shooting method by searching abundant guesses of the initial co-state values. The optimal solution with the minimum entrainment time among all found solutions is treated as the globally optimal one, i.e., the optimal entrainment time is T* = min{Ti}i=1,⋯,N.
Note that (29), (37), (38), and (39) provide us with a necessary condition for local optimality. This direct shooting algorithm provides us with a means to search (through sampling) for all solutions that satisfy this condition and therefore has the advantage of not getting trapped in local minima. The weakness of this algorithm is that for higher-order systems, such as the full order model, the number of samples generated can be impractically large. Another weakness is the co-state dynamics in (38) is unstable for the second-order and the full order models. This means forward numerical integration of this dynamics is unreliable for long periods of time, e.g., in jet-lag cases with long entrainment time.
Representatives of the optimization results using the DSA for a jet-lag case, where a subject whose initial circadian phase is at 6 am (corresponding to θ(0) = 0.8075 in TOE-1st Order) seeks to minimize her entrainment time for a 12-hour jet-lag are shown in Fig 3. We assume that umax = 0.1028, umax = 0.1731 and umax = 0.2208 (corresponding to steady circadian lighting levels of 100 lux, 1000 lux and 10000 lux, respectively). Applying the same algorithm for the corresponding TOE-2nd Order case (corresponding to x(0) = 0.8033 and xc(0) = −0.6905) leads to a success for the bright circadian light cases (umax = 0.2208 and 0.1731), as shown in Fig 4. For dim circadian light (umax = 0.1028), the DSA does not converge because of the instability of numerical forward integration of the co-state dynamics in (38). This case is illustrated in Fig 5, where we can observe that even with the same initial co-state value at t = 0, λ1 and λ2 from the numerical forward integration diverge from the backward integration values at about 180 hours. As the optimal entrainment times with Imax = 1000 and 10000 lux are always less than 150 hours, the direct shooting algorithm has no issues in the forward integration in these cases.
4.2 Gradient descent algorithm (GDA)
This algorithm addresses the weaknesses of the DSA. The idea is to use gradient descent search for the optimal input υ*(t) by using the first variation in (35). The basic gradient descent algorithm can then be expressed as follows:
-
Step 1
Set k = 0. Choose an initial guess for control input υ 0 : R + → [ 0 , υ max ].
-
Step 2
Simulate ξk(t) forward using (29), the initial condition ξk(0) = ξinit, and the control input υk(t) until t = Tk such that η(ξk(Tk), Tk) = 0.
-
Step 3
Find the final condition for the co-state by solving
-
Step 4
Simulate λk(t) backward using (38) and the final condition λk(Tk).
- Step 5
-
Step 6
Update the control input along the descent direction:
The step size αk > 0 should be chosen such that the entrainment time is improved or the same as the previous value (Tk+1 ≤ Tk). In our simulations, we use a line search (bisection search, etc.) to solve the optimization problem given as follows:
This process would be time-consuming, but it guarantees that the updating step decreases the entrainment time as much as possible or has no effects on the entrainment time in every iteration.
-
Step 7
Increment k by 1. Repeat from Step 2 until convergence. In our numerical simulations, we set the stopping criterion for the gradient descent process as
The stopping criterion is used to verify that υk(t) has reached or approximately reached the fixed point and the entrainment time cannot be improved. In most cases, the gradient descent algorithm takes at most 50 iterations to reach the stopping criterion mentioned above.
We can show that the following property characterizes fixed points of the iteration procedure above.
Lemma 2 The iteration reaches a fixed point, i.e., υk+1(t) = υk(t) for any positive step size αk in Step 6 if and only if the following condition is satisfied for all t ∈ [0, Tk]
Proof: Assume Eq (44) is satisfied. For all t ∈ [0, Tk], when υk(t) = 0, we have Δk(t)≥0. Based on Step 6, for any positive αk, υk+1(t) = υk(t) = 0. It can also be proved that, for any t ∈ [0, Tk], if υk(t) = υmax, υk+1(t) = υmax; if υk(t) ∈ (0, υmax) and Δk(t) = 0, we must have υk+1(t) = υk(t) for any αk > 0. Therefore, the iteration reaches a fixed point. If Eq (44) is not satisfied, for example, if υk(t) = 0 but Δk(t) < 0 for any t ∈ [0, Tk], we have υk+1(t) > 0 by Eq (43). We can also prove that υk(t) ≠ υk+1(t) if the second or third row of Eq (44) does not hold. Therefore, υk(t) is not a fixed point if it does not satisfy the condition in (44).
Note that convergence of the iteration essentially means we hit a locally optimal control input. While the locality is a drawback of this algorithm, it has an advantage over the DSA because it does not require forward simulation of (38) that is numerically unstable. We demonstrate the use of GDA in solving the 12-hour jet-lag case for TOE-2nd Order (corresponding to x(0) = 0.8033 and xc(0) = −0.6905) under dim circadian light (umax = 0.1028). We have shown in the previous section that DSA cannot be used to solve this problem. The TOE solution of this case is shown in the upper panels in Fig 6. Observe that since the co-states dynamics are integrated backward, we do not have the instability issue encountered in the DSA. Fig 6 also shows the TOE results of the 2nd-order model with Imax = 1000 and 10000 lux. We can observe in these cases that the amplitude suppression occurs in the oscillator of the core body temperature. The amplitude suppression regions are usually called the phaseless set [28], which, under higher light intensities, gives a ‘shortcut’ for the circadian states to follow and shortens the entrainment time. We can also observe in the amplitude suppression cases that, in the first two days, the light inputs are almost centered around the minimum value of x, i.e., the minimum value of the core body temperature. These light strategies are very similar to those in the trials in [29], whose results also prove that amplitude suppression contributes to the rapid circadian phase shift (as strong type 0 PRC) and fast entrainment under bright light.
We also apply GDA on the full order TOE problem. Again, we assume that the subject’s initial circadian phase is at 6 am (corresponding to x(0) = 0.7562, xc(0) = −0.7591, and n(0) = 0.4061). We consider 3 values of Imax, 100 lux (dim indoor space), 1000 lux (overcast day outdoor or bright indoor space), and 10000 lux (full daylight outdoor). Fig 7 demonstrates the 12-hour minimum-time entrainment cases with Imax = 100, 1000 and 10000 lux and TOE solutions. We can also observe that the amplitude suppression occurs in the bright light cases, e.g. 1000 and 10000 lux, these results are consistent with those in the 2nd-order model. Fig 8 shows the results of applying the GDA on the 11-hour jet-lag case for the full order model, using Imax = 1000 lux. The fact that the locally optimal solutions provided by the GDA are generally not unique is demonstrated in Fig 8, where two solutions are shown to satisfy the conditions in Lemma 2. Fig 9 shows how the objective function improves over the iterations of the GDA for the two solutions shown in Fig 8.
4.3 Combining direct shooting and gradient descent algotihms
Local optimality of the results of GDA implies that their quality heavily depends on the initial guess of the optimal control input. On the other hand, DSA can be used effectively to find the global optimal solution for lower-order models. We then combine the use of both algorithms by using the solutions obtained using DSA on a lower-order model to warm start the GDA. Specifically, if u*(t) is the optimal circadian input found by applying DSA on a 1st- or 2nd-order model, then our initial guess for the optimal circadian light input intensity I*(t) for the full order model is determined by
Then, we apply the GDA to further optimize I*(t). Note that we do not assume that the GDA will converge to I*(t) that only assumes two values, 0 or Imax.
We compare the performance of the solutions that we obtained using this strategy with published results by Serkh and Forger [22]. The entrainment time for various jet-lag cases for our results and those from [22] are shown in Fig 10. In the same figure, we can also see the performance improvement between the solutions before the application of the GDA algorithm (thus, the initial guesses) and the solutions after the GDA algorithm. The comparison between the blue (results in [22]) and black curves (our results) verifies the performance of our algorithm. Also, the TOE light inputs from our algorithm (shown as the green dash curves in Fig 6) are also consistent with those in [22] (in particular, Fig S13 in [22]).
The entrainment time in Fig 10 implies that the maximum entrainment time in our gradient descent results occurs at around 12-13 hours shift (westward travel), which means that the JFK model is almost east-west symmetrical. These results are consistent with those in [22], which addressed the minimum-time entrainment problem of the same circadian model. However, if we only use the natural light-dark cycle in (7) with Iw,max = 100 lux for entrainment without any other light input, the entrainment time in Fig 11 demonstrates that the JFK model is still east-west asymmetrical as maximum entrainment time occurs at around 15 hours westward shift. These results are consistent with those in [28], which also considered the entrainment of the JFK model using the natural light-dark cycle. These results imply that the JFK model is east-west asymmetrical under natural light but the optimal light inputs for minimum-time entrainment can remove this east-west asymmetry.
The solution strategy proposed by Serkh and Forger is briefly described as follows. It assumes that the optimal light input I*(t) only has two values, 0 or Imax. This assumption is motivated by the fact that time optimal control problems with bounded input constraints generally have bang-bang or bang-off optimal solutions [26, 27]. The exceptions of this case are when the optimal solutions lie in a so-called singular arc [26, 27].
The switching time instants of the light input are parameterized as t1, t2, ⋯, tN and considered as the optimization variables. The optimal control problem in TOE is reformulated as follows. To represent entrainment, the concept of isochrons is used. Essentially, this is established by using a phase function φ : R × R → S 1 , such that two pair of states of the circadian oscillator (x1, xc1) and (x2, xc2) are considered to have the same phase if φ(x1, xc1) = φ(x2, xc2). Then, the following objective is optimized
The constant C > 0 in (46) represents the trade-off between minimizing the end time and matching the amplitude of the circadian oscillator with that of the reference signal. The optimal switching time instants t 1 * , t 2 * , … , t N * are then computed using a gradient descent technique. Compared with [22], the algorithm used in this paper is proposed without the assumption that the minimum-time optimal input is always bang-off and computes the light input during the whole entrainment process instead of only the switching times. The results in [19] and [30] show the existence of singular arcs in the minimum-time entrainment solutions in several circadian rhythm models. These singular arcs violate the assumption that the optimal input is always bang-off. Therefore, our algorithm is more general in solving the optimal solution in various models.
5 The impacts of model reduction on the TOE solutions
In Sec. 3, we discussed two steps of model reduction of the full order JFK model. First, we ignored the dynamics of the Process-L and introduced the 2nd-order model. Second, we ignored the amplitude of the oscillation and introduced the 1st-order model. Here, we study the impacts of these model reduction steps on the solutions of the time-optimal entrainment problems. The TOE solutions of the full order model are also demonstrated in Figs 3 and 6. Comparing them with the TOE solutions of the 1st-order and 2nd-order models, we observe that, when the light input is dim (100 lux in the upper panels), the light on-off switching times in the TOE solutions of the 1st-order and 2nd-order models are both very similar with those in the full order model, while the difference between the 1st-order and full order model is enlarged when the light intensity is increased (middle and lower panels in Fig 3). The TOE solutions of the 2nd-order model are close to those of the full order model even under a bright light input, as demonstrated in the lower panel in Fig 6. However, even if we apply the optimal light input from the 2nd-order model on the full order model in the form of (45) in the bright light cases, it still brings a large difference in the entrainment time from the optimal entrainment time in many cases, shown as Fig 10. Specifically, for jet-lag cases, we evaluate the performance of the solutions derived using the lower-order models when applied on the higher-order models. For this, we simply replay the computed optimal control input trajectory u*(t) on the higher-order models until we reach entrainment, which is marked by the circadian states of the subject matching those of the reference, within a certain error tolerance band. If at the end of the computed u*(t) we do not reach entrainment, we append the control input with the reference input trajectory until we reach entrainment. As a concrete example, suppose that we consider the 12-hour jet-lag case with the maximum circadian lighting level of 10000 lux, and want to replay the optimal control input trajectory u*(t) computed using the 1st-order model on the full order model. The trajectory u*(t) in this case has a duration of 121 hours, as shown in Fig 3. The same 12-hour jet-lag case for the full order model is associated with the initial conditions
We then simulate the full order JFK model with the initial conditions above under the circadian light intensity signal I*(t) obtained using Eq (45) until entrainment is reached or t = 121 hours. If we do not reach entrainment by t = 121 hours, we continue I*(t) with the reference circadian lighting,
Fig 12 shows the results from the procedure above. We can observe that at lower circadian light intensity the gaps between the solutions of the time optimal entrainment problem of the reduced model and those of the full order model are smaller. In particular, at Imax = 100 lux, the solutions obtained using the second order are very similar to those from the full order model. However, the solutions obtained using the first order model already deviate quite significantly from those from the higher order models. This indicates that taking into account the amplitude dynamics is relatively more important than the Process-L dynamics in solving the time optimal entrainment problem.
6 Feedback implementation of the TOE solutions
The solution strategies obtained with all of the approaches described in the previous section are open loop in nature. Given an initial state and the reference state trajectory, the entire optimal control input trajectory υ*(t) and the corresponding optimal state trajectory ξ*(t) can be computed. However, because of Bellman’s Principle of Optimality [26, 27], we also know that the optimal input can be given in terms of an optimal feedback law υ*(ξ*, t). In this section, we discuss our approach to construct such an optimal feedback law from the obtained open loop optimal solutions.
6.1 Feedback implementation of the TOE solutions—First order case
A feedback implementation of the TOE 1st-order problems amounts to expressing the optimal circadian input u*(t) as a function of the subject’s circadian phase θ(t) and the reference circadian phase θ ¯ ( t ). We have obtained and reported such feedback laws in our prior publication [20].
Feedback implementation of the optimal control solutions confers more robustness to the solutions, e.g., under modeling error, compared to the open-loop implementation of the solutions. By open-loop implementation we mean simply replaying the optimal control input, as done in Sec. 5. We demonstrate this point by comparing the performance of the open-loop and feedback implementations of the solutions of TOE 1st-order on the full order model. The data are shown in Fig 13.
6.2 Feedback implementation of the TOE solutions—Full order case
Applying the idea above to the solution of full order TOE means we need to compute the optimal circadian light input I* as a function of the three states of the system (x, xc, and n) and the states of the reference system (x ¯, x ¯ c, and n ¯). However, since the reference trajectory is periodic, we can replace the states of the reference system with its circadian phase θr, where the definition of the circadian phase is given in Eq (11). Further, we aim for the feedback law to be independent of n (the state of the Process L), because the implementation of such feedback law would require measuring (or estimating) n, which has much faster dynamics than the circadian rhythm.
The procedure for constructing the feedback law is as follows:
-
Step 1
For a given Imax, collect a number of optimal trajectories [ x * ( t ) , x c * ( t ) , n * ( t ) , θ r ( t ) , I * ( t ) ] each with different initial conditions [ x * ( 0 ) , x c * ( 0 ) , n * ( 0 ) ].
-
Step 2
Generate Ns data points by sampling the trajectories. That is, each data point [ x i * , x c , i * , n i * , θ r , i , I i * ] ∈ R 5, i ∈ {1, ⋯, Ns} is a point on a trajectory described in Step 1.
-
Step 3
Find an interpolation function F : R 3 → R that interpolates [ x i * , x c , i * , θ r , i ] → I i *, i ∈ {1, ⋯, Ns}. For the results reported in this paper we use a feedforward neural network trained by gradient propagation and cross-entropy loss function with a single hidden layer of 32 neurons (implemented by the patternnet function in Matlab) to represent the feedback function F : R 3 → { 0 , I max }.
Fig 14 shows the representations of the feedback controllers that we generated using this procedure for 3 values of Imax, 100 lux (dim indoor space), 1000 lux (overcast day outdoor or bright indoor space), and 10000 lux (full daylight outdoor). The optimal trajectories for the training data are obtained by solving 23 cases of jetlag (Tlag ∈ {1, 2, ⋯, 23}) and sampled at intervals of 0.01 hour.
We evaluate the robustness of the feedback controller in three ways, as described below.
Cross-validation with new jetlag cases
We apply the learned feedback controllers on jetlag cases that are not used in the training data set. Specifically, we consider the jetlag cases with T l a g ∈ { 1 2 , 1 1 2 , ⋯ , 23 1 2 }. We compare performance of the optimal open loop solutions of the TOE as described in Sec. 4.3 for these cases with the respective performance of the learned feedback controllers. The results are shown in Fig 15. We can confirm that the feedback controllers indeed perform well in this cross-validation.
Robustness w.r.t. n(0)
The feedback controllers ignore the influence of n(t) in computing the optimal control response. To evaluate the validity of the assumption that n(t) can be ignored, we use the feedback controllers under various initial conditions n(0). The results shown in Fig 16 confirm that n(t) plays a very small role in the performance of the feedback controlled system.
Robustness w.r.t. change in Imax
We train several feedback controllers for different Imax values. As shown in Fig 14, there are significant differences between these controllers. To evaluate their generalizability, we use the learned feedback controllers with light inputs with different Imax. Specifically, we evaluate the performance of the feedback controllers that are learned using data with Imax = 10000 lux and Imax = 1000 lux on circadian light source with Imax = 5000 lux. The results are shown in Fig 17, which shows that these controllers can still perform well under the change in Imax. For example, the feedback controller for Imax = 10000 lux results in entrainment times that are less than 10 hours longer compared to the optimal open-loop solutions.
7 Discussion and conclusions
In summary, we developed a method for constructing an optimal feedback controller for the time-optimal entrainment problem for the Jewett-Forger-Kronauer (JFK) circadian rhythm model. Our approach is based on the calculus of variations, which enables us to formulate local optimality conditions for the solutions. It also enables us to define a gradient descent algorithm based on the local optimality criteria.
Comparison of our method and the method in [22]
The optimal entrainment results from our method and the method in [22] demonstrate that our method works as well as the method in [22] in minimizing the entrainment time. The optimal solutions found in this paper demonstrate that we do not encounter singular arcs. In other words, the optimal light input for the minimum-time entrainment of the JFK model is bang-off. The method in [22] is less complex because it has fewer decision variables (i.e., the switching times), but the assumption that the minimum-time optimal light input is bang-off does not always hold, as shown in [19] and [30], due to the existence of the singular arc in the optimal solution. Our method is more general because it does not assume bang-off solutions and, then, could find an optimal solution that contains some singular arcs.
On the relevance of lower-order circadian rhythm models
Because of the local optimality property, finding the global optimum would require us to search the solution space exhaustively for solutions that satisfy these conditions. While this procedure is not feasible for the full order JFK model, we demonstrate that it can be performed successfully on reduced-order models that we discuss in this paper. Further, the resulting optimal solutions can be used as initial guesses for the optimal solution of the full order model and then improved using the gradient descent algorithm. Therefore, effectively we use the lower-order models as surrogates to the full order model to warm start the gradient descent search algorithm for the optimal solutions.
Impacts of model reduction on the TOE solutions
Two simplified versions of the JFK model have been discussed in this paper: (i) the 2nd-order model that is the result of ignoring the dynamics of the Process-L, (ii) the 1st-order model resulting from ignoring the dynamics of both the Process-L and the amplitude of the circadian oscillation. We evaluate the impacts of the model reduction on the solutions of the TOE problems by replaying the solutions for the lower-order models on the higher-order ones. The results indicate that for low light intensity, the solutions from the second-order model are practically the same as those from the full order model. Meanwhile, the solutions from the first-order model differ more significantly from those from the second-order model. This suggests that the amplitude dynamics is relatively more important than the Process-L dynamics in solving the TOE problems. Another indicator of the importance of the amplitude dynamics is the fact that in many optimal solutions for the second and full order models the oscillation amplitude is quenched along the way to reach entrainment. This is shown, e.g., in Fig 6 (bottom) and Fig 7 (bottom).
Potential impacts of amplitude suppression in circadian oscillator
The amplitude suppression phenomenon had been discussed in [29], whose experimental data showed that both the amplitude and phase of the circadian temperature were dramatically changed by the bright light pulses (7000∼12000 lux). This helps explain why the circadian oscillator is dramatically quenched in Imax = 10000 lux but almost remains on the limit cycle when Imax = 100 lux during the minimum-time entrainment processes. The amplitude suppression in the circadian oscillator is closely linked to the minimum-time entrainment with bright light in this paper and previous literature. However, CBT amplitude suppression may also have potential connections with health-related issues: the experimental results in [31] indicates that the CBT rhythm tends to flatten with increasing age. The work in [32] also demonstrates that the quenched amplitude of the CBT is closely connected with sleep disruption. Therefore, the entrainment under very bright light with potential sleep disorders may be not suitable for every individual.
Robustness of the optimal feedback controller
We use a machine learning algorithm to learn an optimal feedback controller for the (full order) TOE problem using data collected from the optimal open-loop trajectories, which are computed using the approach above. In general, we discover that the optimal feedback controller depends on Imax, the maximum circadian light intensity that is used for entrainment. We subsequently train separate optimal feedback controllers for three different values of Imax. However, we also demonstrate that the trained optimal controller is robust to some variations in Imax. Further, the trained feedback controllers depend only on the states of the circadian oscillator, but not on the state of the Process-L. We find that the state of the Process-L has little effect on controller performance.
The minimum-time optimal light strategies proposed in this paper can be implemented on the entraining travelers if the initial circadian states and local time in the destination are known. Although the light intensities of most outdoor lights are highly noisy and maintaining the same lux for hours could be unrealistic, some lighting devices (re-timer and light therapy glasses) and indoor light (the light in the hospital rooms and offices) can be used for offering stable light inputs. The robustness of entrainment against the variation in the light intensity and circadian states is improved by using the feedback entrainment strategy in Section 6, which requires the real-time measurement of the circadian states, i.e., core body temperature. For this purpose, some portable sensors had been developed for instantaneous measurements of the core body temperature [33]. The feedback implementation of the entrainment process is enabled by these sensors.
Zdroje
1. Aschoff J. Circadian rhythms in man. Science. 1965;148(3676):1427–1432. doi: 10.1126/science.148.3676.1427 14294139
2. Refinetti R. Circadian Physiology. CRC Press; 2005.
3. Rea MS, Bierman A, Figueiro MG, Bullough JD. A new approach to understanding the impact of circadian disruption on human health. J Circadian Rhythms. 2008;6(1):7. doi: 10.1186/1740-3391-6-7 18510756
4. Baggs JE, Price TS, DiTacchio L, Panda S, FitzGerald GA, Hogenesch JB. Network features of the mammalian circadian clock. PLoS Biol. 2009;7(3):563–575. doi: 10.1371/journal.pbio.1000052
5. Leloup JC, Goldbeter A. A model for circadian rhythms in Drosophila incorporating the formation of a complex between the PER and TIM proteins. J Biol Rhythms. 1998;13:70–87. doi: 10.1177/074873098128999934 9486845
6. Leloup JC, Goldbeter A. Toward a detailed computational model for the mammalian circadian clock. Proc Nati Acad Sci USA. 2003;100:7051–7056. doi: 10.1073/pnas.1132112100
7. Forger DB, Jewett ME, Kronauer RE. A simpler model of the human circadian pacemaker. J Biol Rhythms. 1999;14(6):533–538. doi: 10.1177/074873099129000867
8. Kronauer RE, Forger DB, Jewett ME. Quantifying human circadian pacemaker response to brief, extended, and repeated light stimuli over the phototopic range. J Biol Rhythms. 1999;14(6):501–516. doi: 10.1177/074873049901400609
9. Forger DB, Kronauer RE. Reconciling mathematical models of biological clocks by averaging on approximate manifolds. SIAM J Appl Math. 2002;62:1281–1296. doi: 10.1137/S0036139900373587
10. Doyle FJ III, Gunawan R, Bagheri N, Mirsky H, To TL. Circadian rhythm: A natural, robust, multi-scale control system. Comput Chem Eng. 2006;30(10-12):1700–1711. doi: 10.1016/j.compchemeng.2006.05.029
11. Abel JH, Chakrabarty A, Doyle FJ III. Controlling biological time: nonlinear model predictive control for populations of circadian oscillators. In: Tempo R, Yurkovich S, Misra P, editors. Emerging Applications of Control and Systems Theory. Lecture Notes in Control and Information Sciences. Springer; 2018. p. 123–138. doi: 10.1007/978-3-319-67068-3_9
12. Mott C, Mollicone D, van Wollen M. Modifying the human circadian pacemaker using model based predictive control. In: Proc Am Control Conf. 2003; p. 453–458.
13. Bagheri N, Stelling J, Doyle FJ III. Circadian phase entrainment via nonlinear model predictive control. Int J Robust Nonlin. 2007;17(17):1555–1571. doi: 10.1002/rnc.1209
14. Bagheri N, Stelling J, Doyle FJ. Circadian phase resetting via single and multiple control targets. PLoS Comput Biol. 2008;4(7):e1000104. doi: 10.1371/journal.pcbi.1000104 18795146
15. Abel JH, Doyle FJ. A systems theoretic approach to analysis and control of mammalian circadian dynamics. Chem Eng Res Des. 2016;116:48–60. doi: 10.1016/j.cherd.2016.09.033 28496287
16. Forger DB. Biological clocks, rhythms, and oscillations: The theory of biological timekeeping. MIT Press; 2017.
17. Zhang JX, Wen JT, Julius AA. Optimal circadian rhythm control with light input for rapid entrainment and improved vigilance. In: Proc IEEE Conf Decis Control; 2012. p. 3007–3012.
18. Zhang JX, Wen JT, Julius AA. Optimal and feedback control for light-based circadian entrainment. In: Proc IEEE Conf Decis Control; 2013. p. 2677–2682.
19. Zhang JX, Qiao W, Wen JT, Julius AA. Light-based circadian rhythm control: Entrainment and optimization. Automatica. 2016;68:44–55. doi: 10.1016/j.automatica.2016.01.052
20. Qiao W, Wen JT, Julius AA. Entrainment control of phase dynamics. IEEE Trans Autom Control. 2017;62(1):445–450. doi: 10.1109/TAC.2016.2555885
21. Julius AA, Yin J, Wen JT. Time-optimal control for circadian entrainment for a model with circadian and sleep dynamics. In: Proc IEEE Conf Decis Control. Melbourne, Australia; 2017. p. 4709–4714.
22. Serkh K, Forger DB. Optimal schedules of light exposure for rapidly correcting circadian misalignment. PLOS Comput Biol. 2014;10(4):e1003523. doi: 10.1371/journal.pcbi.1003523 24722195
23. Khalsa SBS, Jewett ME, Cajochen C, Czeisler CA. A phase response curve to single bright light pulses in human subjects. J Physiol. 2003;549:945–952. doi: 10.1113/jphysiol.2003.040477 12717008
24. Taylor SR, Gunawan R, Petzold LR, Doyle FJ III. Sensitivity measures for oscillating systems: application to mammalian circadian gene network. IEEE Trans Autom Control. 2008;53:177–188. doi: 10.1109/TAC.2007.911364
25. Moeck M, Yoon YJ. Green buildings and potential electric light energy savings. J Archit Eng. 2004;10(4):143–159. doi: 10.1061/(ASCE)1076-0431(2004)10:4(143)
26. Bryson AE, Ho YC. Applied optimal control. Taylor & Francis; 1975.
27. Liberzon D. Calculus of variations and optimal control theory. Princeton University Press; 2012.
28. Diekman CO, Bose A. Reentrainment of the circadian pacemaker during jet lag: East-west asymmetry and the effects of north-south travel. J Theor Biol. 2018;437:261–285. doi: 10.1016/j.jtbi.2017.10.002 28987464
29. Jewett ME, Kronauer RE, Czeisler CA. Light-induced suppression of endogenous circadian amplitude in humans. Nature. 1991;350:59–62. doi: 10.1038/350059a0 2002845
30. Yin J, Julius AA, Wen JT. Rapid circadian entrainment in models of circadian genes regulation. In: Proc IEEE Conf Decis Control. 2019.
31. Baehr EK, Revelle W, Eastman CI. Individual differences in the phase and amplitude of the human circadian temperature rhythm: with an emphasis on morningness-eveningness. J Sleep Res. 2000;9:117–127. doi: 10.1046/j.1365-2869.2000.00196.x 10849238
32. Kräuchi K, Wirz-Justice A. Circadian clues to sleep onset mechanisms. Neuropsychopharmacology. 2001;25:S92–S96. doi: 10.1016/S0893-133X(01)00315-3 11682282
33. Pell R.’Earable’ sensor monitors core body temp; 2017. Available from: https://www.eenewseurope.com/news/earable-sensor-monitors-core-body-temp.
Článek vyšel v časopise
PLOS One
2019 Číslo 12
- Pomohou nám s detekcí karcinomu plic i včely?
- Duševní onemocnění se u teenagerů přenáší v rámci školní třídy
- Od kostiček k lidské kůži. Jak si postavit 3D biotiskárnu?
- Řekněte mi, co jíte, a já vám řeknu, jaká je úroveň vaší kognice
- Umělá inteligence v mozkovém implantátu pomáhá muži po mrtvici s dvojjazyčnou konverzací
Nejčtenější v tomto čísle
- Methylsulfonylmethane increases osteogenesis and regulates the mineralization of the matrix by transglutaminase 2 in SHED cells
- Oregano powder reduces Streptococcus and increases SCFA concentration in a mixed bacterial culture assay
- The characteristic of patulous eustachian tube patients diagnosed by the JOS diagnostic criteria
- Parametric CAD modeling for open source scientific hardware: Comparing OpenSCAD and FreeCAD Python scripts