See https://github.com/danlurie/despolab_lesion/blob/master/code/derivatives/patients/04-compute_motion24_yan.py#L28