Automatic task recognition in a flexible endoscopy benchtop trainer with semi-supervised learning