it could be many things, breakdown in the electrical/ignition system, throttle sensor, coolant sensor, air mass meter.....it really needs a scan when driving it and recording any instances that it may occur.
You can use a device call a Data or Flight Recorded and review the info afterwards to see when it is occurring and what parameters changed at that time