Based upon earlier photos or paintings. The black dress may be the one worn at that time.
If so, then only based on earlier paintings. Because by the time she wore black, after Rudolf's death, she had already stopped having her photo taken.
I think with all the black dresses, it's nearly impossible to say which one she wore that day for sure. Another mystery to add to the Empress' life. ;-)