Text this: Real-time train acceleration estimation method based on least-square piecewise linear fitting