The eastbound train, headed to New Haven from Grand Central Terminal, derailed at about 6:10 p.m. just east of the Fairfield Metro station, and hit a westbound train on the oppositetrack, Metro-North spokeswoman Marjorie Anders said, knocking several cars of that train off the rails.
Car computers keep a record of the activities of all surrounding cars so they can quickly discard information about a car moving quickly in the opposite direction but track a car moving in the same direction around a corner and determine if it will soon be in the same lane as your own.
It explained that this was "because the previous train, an engineers' on-track machine, had passed through the crossing in the opposite direction to normal".