Some preprocessing and simple logistic regression model