Discovery of high-level tasks in the operating room