What could cause a smoke detector to do this?

🌿

It randomly turned on for just a few seconds a little bit ago, then turned off on its own. Not just chirping, but the actual alarm. It wasn't all of them, just the one in our bedroom. We looked around the apartment and there was no smoke. Then about 10 minutes later it did it again.

Yesterday morning there was a car accident near by that knocked out the power. The power went out for a little bit, then it kept going in and out. It stayed on and started going in and out again in the afternoon. My husband thinks it could have something to do with that, but I don't see how since that happened yesterday and the power has been on since then. I haven't heard any of the neighbors' smoke detectors going off either.