MarcelGerber
In Germany, Deutsche Bahn boasts that its electric long-distance trains are 100% powered by renewable energy. There are some asterisks to that, but it's still a great thing.
So yes, electrifying lines really has many advantages: * it allows for high-speed trains * it enables trains equipped with regenerative braking * its trains are driving more efficiently (most diesel locomotives actually are diesel-electric, meaning they have a diesel generator powering an electric drivetrain) * it allows the trains to be powered by renewable energy
All these points drive the overall carbon footprint down in one way or another.
High speed trains usually use induction brakes (regenerative braking) and as such, they don't produce nearly as much brake dust. Also, freight trains generally don't need to brake very often, since the tracks are free for kilometers to come most of the time.
In general, trains are of course far from emission-free, but as they can transport way more passengers/freight the emissions per person / tonne of freight are still lower than cars or trucks.
But for the learning part, they probably combine the camera that they used to date as their primary device in combination with the radar (at least in daylight scenarios) to identify objects. They may even be able to learn about the special material properties, like the reflective coating of a traffic sign.