Frame/bottom bracket flex can cause a bike to "ghost-shift". So can a dirty bottom bracket cable guide. If the cable hangs up on it, it can release when the frame flexes under a standing load, and voila!, your bike has an "automatic transmission".
Other than making sure that the derailleur cable moves freely under your bottom bracket, there is no fix for frame flex (except maybe to weigh 135 lbs.)
Bob