Do you have and Check Engine Lights on? If so, get them scanned and either let us know what they are or look them up. My car did similar things when I had a vac leak...but getting your car scanned is your first step.
Did this start occurring after any work/maintenance?