Neural encoding with visual attention