The results show that the Chaol index and Shannon index of elderly patients with Alzheimer's disease and liver cancer are positively correlated with MTL and GAS, indicating that there is a strong correlation between the changes of intestinal flora and gastrointestinal motility in elderly patients with Alzheimer's disease and liver cancer. This evidence concerns the gene GAST and liver cancer.