Unsupervised learning of two-component nematicity from STM data on magic angle bilayer graphene