Not to put too fine a point on it and with all due respect, but are you black? Have you asked your black neighbors about it?
I am half-black and was raised in California. I have lived in SF for the last 10 years.
While I have not directly been troubled by police in SF, I put myself on notice every. Single. Time. I go outside.