When it happens again loosen the fuel cap.
x2, had similiar scenerio and it was fuel pump. I bought an inline fuel gauge and it was around 21. If you don't have fuel gauge, i bought mine at JEGs, 555-41013 and bought parts to install at advance auto. 555+41013 - JEGS High PerformanceSounds like your fuel pump is on its way out. Check your fuel pressure, you can buy replacement fuel pump right at local parts store I replaced mine about a year ago and it's still going strong. Make sure you leave fuel pressure gauge in line while you ride so you can see what your fuel pressure is doing when it's starts to act up. You should maintain 51 psi of pressure