A model of modes of attention and inattention for artificial perception