Deep learning for surgical phase recognition using endoscopic videos