Commuter rail in the United States mostly caters to affluent suburbanites who commute to the city center. Even though these lines pass through working class city neighborhoods that stand to benefit enormously from better transit, the service they provide passes those communities by. It doesn't have to be that way.
Cities and tech firms are deploying new technology to gauge risks at dangerous intersections. These sensors, cameras, and machine-learning algorithms are promising, especially when it comes to measuring close calls that don't result in crashes - but cities are still figuring out how they can use this information. In the meantime, there's no reason to wait on designing safe streets.