The experimental results demonstrate that the method presented in this paper can enhance the accuracy of glioma grading, IDH1 classification and pituitary tumor classification As a result, this method holds promising applications in alleviating patient suffering, reducing economic burdens, and aid in clinical diagnosis. Here, IDH1 is linked to central nervous system cancer.