Also, the results of network pharmacology analysis and molecular docking were consistent with those of RNA-seq analysis.<h4>Conclusion</h4>TF alleviates dementia by reducing A<i>β</i> deposition via the ACER2-mediated sphingolipid signaling pathway. The gene discussed is ACER2; the disease is dementia.