Beauty treatment with algorithm