Autonomous Temporal Understanding and State Estimation During Robot-Assisted Surgery