China’s new national drive to embrace artificial intelligence is also giving the authorities new ways to monitor and control its citizens.