Dynamic modeling of infectious disease can simulate transmission processes of COVID-19, a newly been found infectious respiratory disease that has a substantial impact on both people's health and social development, and therefore plays an important role in the prediction and prevention of epidemics. Although there are many models that can accurately represent the number of infected patients, the influence of human factors on the transmission of the virus has not been fully investigated. Here, by considering the influence of policies on restricting contact between people, we modified the SEIR infectious disease model and developed a new model called the Quarantine-considering SEIR model (hereafter referred to as Q-SEIR), combining with dynamic parameter, contact rate, obtained by machine learning method, we can represent the effects of human movement and contact behavior during the epidemic. The experimental results show that this method can effectively represent the effect of patterns of population activity on the development of the epidemic. On one hand, our research results provide guidance for the government before issuing measures to restrict the movement and socialization of people; and on the other hand, our findings help identify the development stage of the epidemic more clearly for the public as well as provide information for citizens’ travel decisions.