Biophysics · physics-informed ML

Physics-Constrained CD Spectral Inversion

Physics-Constrained CD Spectral Inversion
fig. Physics-Constrained CD Spectral Inversion
open full screen ↗

The notebook runs on its own once it loads, so give it about 10 seconds while Python starts up in your browser, and the simulations begin animating. Move the sliders and everything recomputes live. The code is shown alongside the output so you can read exactly how it works; the full editable source is linked below.

Circular dichroism spectroscopy reads out a protein’s secondary structure, but only forwards: given the helix, sheet, and coil fractions, you can predict the spectrum from reference curves. I wanted to go backwards and recover the composition from a measured, noisy spectrum. That inverse problem is ill-posed, so I pin it down with the physics that has to hold: the fractions are non-negative and sum to one. It comes straight out of CD experiments I ran in the lab, and watching that constraint rescue an otherwise unstable inversion is the satisfying part.

← back to explorations