Oh, that did happen to me, twice. Once a neighbor called the police because I was shouting in my apartment, and the second time I had called them to help me with the "man" I have believed is torturing me (yeah, that sounds real sane, right?).
Both times it was involuntary. But I found out last time when I went voluntarily in withdrawal without the police involved, it takes a lot before they'll let you in the hospital even if you know you won't survive without care. I did have to say I was suicidal to get in even though I was absolutely terrified of everything.
The locals want to take a look at "you" (general you) and then once they've made their minds up you're not a danger, they leave you alone. It's like appeasing the villagers with pitchforks, actually. That first time I was allowed to leave after a chat with a doctor on call. The 2nd time I was not as lucky.
I also hope it doesn't happen again but at least now I know what to expect, more or less, and there's 3 meals a day plus snacks.

Just don't scream and shout and it will probably never happen.