A growing number of cities and transit organizations are adopting AI-enhanced technologies to identify and respond to security risks more effectively.