Artificial intelligence is helping the MBTA to predict problems before they happen.