Information Leakage Detection through Approximate Bayes-optimal Prediction