Technology, big data and innovation is transforming the way trains operate.