A smart toilet capable of monitoring excrement and urine comprises a toilet bowl, a toilet seat, a telescopic lifting device, an excrement sample collection device, an excrement specimen preprocessing device, an excrement sample detection and analysis device, a telescopic lighting and photographing device, and a smart terminal. The whole process of bowel movement can be monitored to observe the general characteristics of the excrement and the presence or absence of parasites or eggs and to weigh the excrement, thereby realizing the automatic collection of an excrement sample and the pretreatment of the excrement specimen to provide convenience for the hospital users.