These modern fuel injected engines can be hard to diagnose without the proper scanners and test equipment, but my friends Yamaha AR230 had a similar sort of problem. I know they are not the same engine but his fix was as simple as a new set of spark plugs.
Start there and give it a try.
Aaron