Those photos are pretty sobering. If you'd been wearing a cowboy hat instead of a helmet and faceplate, maybe you would have seen the train.
Ehhh . . . what?
American Railroads put up STOP LOOK LISTEN signs at crossings. That way, if a bicycle gets all bent up like yours, railroad lawyers can blame the bicyclist.
Did you ever wonder why your Canadian friends say, "Ehhh?" It's because earmuffs are so popular in the Great White North! Canadian bicyclists really can't be expected to hear a train through earmuffs. Wearing plastic goggles in the face of Canada's notoriously low winter sun, looking probably won't help, either.
There is a common-sense solution. Whenever you approach a crossing, honk your Clarabell horn several times. If there is a train coming, that will warn the engineer to stop, look, and listen.