There are special trains with measurement equipment on board, but yes, it sounds to me like every train should be equipped with some basic sensors for anomaly detection.
The measurement trains drive slowly in the night.
The measurement trains drive slowly in the night.