2026
Modeling light exposure and blood sugar
An 18-state ODE model that ties daily light exposure to the body clock and glucose regulation. In the model, the circadian rhythm fell apart at 14 to 16 hours of light a day, but glucose held steady.
The model
I built a coupled system of 18 ordinary differential equations connecting how the retina processes light, a Goodwin circadian oscillator, melatonin, how pancreatic beta cells release insulin, and glucose-insulin regulation.
Running it
I integrated it in Python with SciPy’s LSODA solver, let each run settle before measuring, and ran parameter sweeps in parallel. The main sweep covered 37 photoperiods from 6 to 24 hours of light a day.
What it showed
In the model, the amplitude of the circadian rhythm collapsed at around 14 to 16 hours of daily light, while glucose stayed buffered under the parameters I chose. Many of the parameters come from the literature or are assumed rather than fitted to patients, so this shows how the pieces could interact, not that light exposure causes disease. I presented the methods, results and limits in a final report and talk.