This AI-powered "black box" could make surgery safer