Text this: Railway safety monitoring algorithm based on distributed optical fiber vibration sensor