Companies working with artificial intelligence need to install accountability mechanisms to prevent it being misused, the European Commission said on Monday, under new ethical guidelines for a technology open to abuse by authoritarian regimes.