Learning library of recorded events