Learning brain activity from fMRI images