Invia SMS: Generative classification method by decomposition of joint distribution