Towards An Optimal Cosmological Detection Of Neutrino Mass With Bayesian Inference