Trains to use AI technology and CCTV to detect pre-crimes