Check the basic tune up first.
Valves, timing, throttle balance and cables. Clean the throttle bodies too.
After all of that is done and the problem persists it could be leaking injector or other similar minor or intermittent failure.
Most problems are found by going through the basic maintenance items.
Hunter