Artificial intelligence used in the justice and financial systems is to be investigated.