How an AI learned to stitch up patients by studying surgical videos