Spectral structure learning for clinical time series