Yes, Once in the US, coming back from India, once in the US driving back back from my first and last trip to Canada. The first incident, India, was just a line protocol mix-up.
I lived in Troy, MI in 2006, back when you could cross without a passport, which I didn't have at the time. I decided to take a drive to Canada while my friend was visiting from out of state. I'm a white woman, I was in my mid-20s at the time.
Crossing into Canada we were interrogated about not having passports, which weren't required yet, but that was already slated to change; I think this was around the time of the shoe bomber. Or the underwear bomber, I don't recall. Of course the officer let us in because we were still legal to cross, but not before she gave us an earful about Americans thinking they're entitled to do whatever they want.
Went to Windsor, had lunch, wanted to get the hell out of there. Got in the car and headed back to the border after dropping a postcard to my grandma (I was told by the person in line behind me at the post office what a dirty, nasty city Detroit is after he asked where I was from).
I don't make a lot of eye contact with people I don't know--just fleeting eye contact. (No, I'm not on the spectrum). Apparently this made the Canadian officer suspicious and he asked what I did, where I ate lunch, what I had, what I liked about Canada, and "Did you lick the pole?". The last question threw me off and I laughed and said "What?!" Apparently, or according to the officer, there's a pole in Windsor town square or some place that tourists lick for good luck. At least, that's what he said. I laughed and went on my way.
Coming back from Canada into Detroit, I was detained and my car was thoroughly searched.