Ann Arbor–Detroit Regional Rail (also known as MiTrain and formerly known as SEMCOG Commuter Rail SEMCOG stands for Southeast Michigan Council of Governments, and is a collection of town, township, county, and city governments ) is a planned regional rail link along the Michigan Line between the cities of Ann Arbor and Detroit, Michigan, a total length of 39 miles .