Mine does that rarely. Try spraying off the MAF sensor with a little carb cleaner. If you have an aftermarket K&N type air filter and use too much oil on it.it willstart building up an oily film on the sensor and raise the idle speed.
There are other things it could be as well.
but that is the most common.
Hope this helps.
Andy (Swordy)