AI makes costly mistakes, but combining it with humans and software can help avoid them.