Modelling the cortical representation of infrequent stimuli