[1] Or ever, really, unless fever dreams when being really sick count. Though, without any reference point to compare to, they really seemed more like intense dreams.
> is it your brain’s pattern recognizer making an incorrect guess
This part is more or less an accurate explanation of a lot of hallucinations. Input misinterpreted and incorrectly "output" into consciousness.
They always scared me even though the audible events would be something simple like a "Hello!" or like, a bottle cap opening or a bit of music and the visual events would be like, a match striking or a bit of fire.
I am not sure what causes this transition of perception. Some people say its your brain releasing DMT, some say it's activation of your parasympatheic nervous system. I don't know for sure, but I don't think it is anything to be afraid of.
A bit of hallucinating here and there is quite common especially as you age and isn't a big deal (though if it happens suddenly go see a doctor, it can be a symptom of something happening), being unable to determine what is and is not real can be quite a problem.