Making artificial intelligence more reliable