Random effects logistic regression model for anomaly detection