In this paper, we present a novel approach for hierarchical classification of medicinal plants. Considering that existing methods have difficulty in hierarchical classification and identification of unknown species, we approach the problem of assigning optimal hierarchical labels to unknown species. We propose a novel method to perform hierarchical classification by integrating DenseNet121, multi-scale self-attention (MSSA), and cascade classifier. MSSA captures both local and global context information of the image to improve the performance of distinguishing between similar species and identifying new species. The proposed method shows excellent performance for both known and unknown species, and is evaluated on two state-of-the-art datasets with and without background artifacts. The accuracy for unknown species is 83.36% for phylum, 78.30% for class, 60.34% for order, and 43.32% for family. The model size is about 4 times smaller than existing state-of-the-art methods, making it easy to deploy in real-world applications.