Keeping tabs on the amount of current that the train is drawing would suffice in providing an accurate vref that's directly proportional to movement. Use a hall effect sensor to monitor large amounts of current. They're relatively inexpensive and accurate too.

Best Regards,
Trent Jackson