Probabilistic and causal reasoning in deep learning for imaging