Automated Labeling for Unsupervised Neural Networks: A Hierarchical Approach