The regulator is preparing safeguards as artificial intelligence becomes increasingly embedded in market surveillance, risk assessment, fraud detection and investor services.