Embedding interpretable ℓ1-regression into neural networks for uncovering temporal structure in cell imaging
Authors: Fabian Kabus, Maren Hackenberg, Julia Hindel, Thibault Cholvin, Antje Kilias, Thomas Brox, Abhinav Valada, Marlene Bartos, Harald Binder
Organizations: Institute of Medical Biometry and Statistics (IMBI), Faculty of Medicine and Medical Center, University of Freiburg, Germany · Department of Computer Science, University of Freiburg, Germany · Institute of Physiology I, Faculty of Medicine, University of Freiburg, Germany · Freiburg Center for Data Analysis, Modeling and AI (FDMAI), University of Freiburg, Germany · Centre for Integrative Biological Signalling Studies (CIBSS), University of Freiburg, Germany
While artificial neural networks excel in unsupervised learning of non-sparse structure, classical statistical regression techniques offer better interpretability, in particular when sparseness is enforced by ℓ1 regularization, enabling identification of which factors drive observed dynamics. We investigate how these two types of approaches can be optimally combined, exemplarily considering two-photon calcium imaging data where sparse autoregressive dynamics are to be extracted. We propose embedding a vector autoregressive (VAR) model as an interpretable regression technique into a convolutional autoencoder, which provides dimension reduction for tractable temporal modeling. A skip connection separately addresses non-sparse static spatial information, selectively channeling sparse structure into the ℓ1-regularized VAR. ℓ1-estimation of regression parameters is enabled by differentiating through the piecewise linear solution path. This is contrasted with approaches where the autoencoder does not adapt to the VAR model. Having an embedded statistical model also enables a testing approach for comparing temporal sequences from the same observational unit. Additionally, contribution maps visualize which spatial regions drive the learned dynamics.
Figures & tables
Figure 1: High-level overview of the sparse spatiotemporal dimension reduction in the end-to-end model. The frames xt(i) for all time series are first aggregated over time to form a mean frame xˉ , which captures the static structure. The dynamic component, xt(i)−xˉ , is encoded into a latent representation zt(i) . The latent representation vec(zt(i)) is modeled using a sparse vector autoregressive (VAR) model of order p , which forecasts z^t(i) . The coefficient matrices A1(i),…,Ap(i) are fit using ℓ1 -regression from scratch in each forward pass and they contain the learned spatiotemporal relationships. Finally, the decoder reconstructs the frame x^t(i) from z^t(i) and the static mean frame xˉ , which is reintroduced via a skip connection.
Figure 2: Effect of the skip connection on the latent representation and reconstruction from one run at t=263 : Top row (a–c) : model without skip connection. Bottom row (d–f) : model with skip connection. (a, d) Latent representation zt(i) . (b, e) Decoder output fdec(zt(i)) , brightness enhanced for visual clarity. (c) Ground truth input xt(i) , contrast enhanced. (f) Reconstruction x^t(i) with skip connection, contrast enhanced.
G
H
p-value
F1 to
F10
F11 to
F20
1781
N1 to
N10
N11 to
N20
5136
F1 to
F10
N1 to
N10
0 .
0002
F11 to
F20
N11 to
N20
0 .
0021
F1 to
F10
N11 to
N20
0 .
0001
F11 to
F20
N1 to
N10
0 .
0002
Table 1: Group comparisons using VAR coefficients ( λ=0.005 ), between runs F with familiar condition, between runs N with novel condition, and between runs F and N of different type. The similarity between sets of experimental runs based on their estimated dynamics is assessed by p-values. Significant p-values (after Bonferroni correction) are indicated by boldface.
Figure 3: Assessing the effect end-to-end learning via automatic differentiation (AD) with visual contribution maps, Ω , which illustrate the spatial origins of estimated dynamics, averaged across all runs of an exemplary mouse: (a) Familiar condition without end-to-end training. (b) Familiar condition with end-to-end training. (c) Difference map ( ΩF−ΩN ) without end-to-end training. (d) Difference map ( ΩF−ΩN ) with end-to-end training.
Figure 4: Effect of ℓ1 regularization parameter λ on time series forecast and reconstruction. (a) Selected dimensions of zt in black (reference) and their forecasts z^t for varying λ (in colors) over time. (b–d) Reconstructions at t=263 : (b) Ground truth xt . (c) Reconstruction x^t for λ=0.003 . (d) Reconstruction x^t for λ=0.032 .
Sequential
Embedded
End-to-End
λ=0.005
Lrec [ 10−3 ]
0.087 ± 0.030
0.101 ± 0.035
0.103 ± 0.038
Rvar
0.472 ± 0.040
0.421 ± 0.054
0.398 ± 0.068
λ=0.01
Lrec [ 10−3 ]
0.087 ± 0.030
0.106 ± 0.037
0.112 ± 0.042
Rvar
0.682 ± 0.063
0.611 ± 0.074
0.530 ± 0.081
λ=0.02
Lrec [ 10−3 ]
0.087 ± 0.030
0.113 ± 0.040
0.118 ± 0.045
Rvar
0.853 ± 0.061
0.791 ± 0.086
0.699 ± 0.072
Table 2: Ablation study comparing different methods of combining the autoencoder and the VAR model (sequential training, embedded VAR without end-to-end gradients, and our proposed end-to-end approach) via reconstruction error ( Lrec ) and prediction error Rvar at three different levels of λ .
Department of Computer Science and Engineering, Indian Institute of Technology, Patna, India · Department of Computer Science, Rajarshi School of Management Technology, Varanasi, India