Non-homogeneous stochastic birth and death processes with applications to epidemic outbreak data door