The article FAUM: Fast Autonomous Unsupervised Multidimensional classification (2018; Zotero) describes two simple ways of selecting the bin size by optimizing two different functions.
It could be added as a method to use in both the decontamination algorithm, and the best fit process.