AI is being used to prevent workplace violence, but some analysts are concerned about privacy and other issues.