Fuel filter is a good place to start........If that doesn't fix it pop the gas tank lid the next time it dies. The vent hose for the tank could be pinched shut somewhat and it would act just like a plugged filter. Or it could be your ignition box. The next time it dies you need to see if you have any spark, that would be quick and easy to do if you have a spare spark plug you could stick in your pocket. Electrics tend to die when hot and then sometimes will return to working when they cool off.