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. The gene discussed is IDH1; the disease is pituitary tumor.