The lights and barriers are assumed to be sufficient. Within cities, there may well be CCTV cameras (pointing only at the crossing) so the signal controllers can check the crossing is clear.
More video than you could possibly want:
https://m.youtube.com/watch?v=hidjpkqJ0-Y
(I think the honk in the first one is the train driver recognizing the person filming? It's far too late to be for safety.)
The requirements for a no-signal crossing is essentially a pedestrian gate. The quote the city has for each crossing was if I remember right 1.5 million usd. And you’d need to replace many of them. The city doesn’t want to prioritize that much money. (FWIW I agree)
The worst thing is we have under utilized tracks going all over the region and no commuter train service. Even with the rail expansion prior to the Olympics (I’m near Los Angeles), the commuter rail is only being extended to the northern most edge of the city.
Neighbors have been fighting against commuter rail every step of the way. I’ll say attending local govt and rail proposal meetings is at once interesting, impressive at what some groups are trying to achieve and disturbing at the lengths people go to prevent change.
They need to turn every road or pedestrian crossing into an underpass or overpass, or eliminate it. They've started on this process, but it will take many years.