AI tool helped recover 500m lost to fraud, government says