Causal and anti-causal learning in pattern recognition for neuroimaging