Text this: Improved machine classification algorithm for electric rail circuits in train warning systems