The most noticeable changes were because of smallpox and influenza epidemics in the 1700s , medical advancements ( such as vaccination and pasteurization ) saw life expectancy increase in the 1800s , and then both World Wars and the epidemics that followed caused brief drops in the first half of the twentieth century .