Engineer was injured due to the DPU automated controller known as "Leader". Article says it contains AI, but no info whether AI was the problem.
"The computer system gave the locomotives dangerous instructions, telling the lead locomotive to slow down and the middle locomotive to speed up, which made the middle locomotive rear-end the front cars..."
"Union Pacific had installed on the locomotives a computer software system known as “LEADER,” which was to control the locomotives without input from the engineer and
learn through artificial intelligence how to control the trains’ movements over various tracks, terrains and territories, the complaint says."
https://cowboystatedaily.com/2024/04/22/wyoming-railroad-engineer-sues-union-pacific-over-ai-train-driver/