Topic Models And Dynamic Prediction Models And Their Applications In Document Retrieval And Healthcare