Robots Use AI to Learn from Their Mistakes