Developmental learning with applications to attention, task transfer and user presence detection