SHINE: Social Homology Identification for Navigation in Crowded Environments