Train detection systems