Prove this function is $\mathcal{B}(\mathbb{R}^d)$ measurable

Fix an $r>0$. \begin{align*} x\rightarrow\dfrac{\mu(B_{r}(x))}{m(B_{r}(x))} \end{align*} is a lower semi-continuous function. Then, $f$ as the supremum of a class of lower semi-continuous functions, is still a lower semi-continuous function, and hence a Borel function.