These changes were the result of smallpox epidemics in the late eighteenth and early nineteenth centuries , new sanitary and medical advancements throughout time ( such as compulsory vaccination ) , and the First world War and Spanish Flu epidemic in the 1910s .