It's something a few of my roach species do on occasion, but particularly my skunk roaches/eurycotis floridana. I'm not sure if it's related to mating, releasing chemicals, or just a behavior that helps them to molt... but I find it rather cute. They will just sit in one place, and randomly... vibrate. Their segments start to swell, always in the same two spots, and then they just start shaking in bursts. Would love to know the reason why they do this!
I'm in the process of uploading a video of this strange behavior. It should be in the videos section in a couple of minutes.