Studies of cell and tissue mechanics have shown that significant changes in cell and tissue mechanics during lesions and cancers are observed, which provides new mechanical markers for disease diagnosis based on machine learning. However, due to the lack of effective mechanic markers, only elastic modulus and iconographic features are currently used as markers, which greatly limits the application of cell and tissue mechanics in disease diagnosis. Here, we develop a liver pathological state classifier through a support vector machine method, based on high dimensional viscoelastic mechanical data. Accurate diagnosis and grading of hepatic fibrosis facilitates early detection and treatment and may provide an assessment tool for drug development. To this end, we used the viscoelastic parameters obtained from the analysis of creep responses of liver tissues by a self-similar hierarchical model and built a liver state classifier based on machine learning. Using this classifier, we implemented a fast classification of healthy, diseased, and mesenchymal stem cells (MSCs)-treated fibrotic live tissues, and our results showed that the classification accuracy of healthy and diseased livers can reach 0.99, and the classification accuracy of the three liver tissues mixed also reached 0.82. Finally, we provide screening methods for markers in the context of massive data as well as high-dimensional viscoelastic variables based on feature ablation for drug development and accurate grading of liver fibrosis. We propose a novel classifier that uses the dynamical mechanical variables as input markers, which can identify healthy, diseased, and post-treatment liver tissues.