Thank you for that information. If it comes on suddenly you want to make sure that it is not some type of neurological problem such as seizure activity. Not all dogs go through what most people think of when they think of seizures, sometimes it can illicit abnormal behaviors.
The next thing you want to look at is noise, as you assume about the airplanes, which could produce high pitched noises we are not likely to be bothered with, or noise in the floor itself such as mice or if there are people living under you in the apartment complex.
From a behavior standpoint, telling a dog rarely works if there is an unwanted behavior. It may interrupt the behavior for a moment but the dog usually goes back to doing it. I would recommend you have something handy to grab and redirect her actions to something she can dog and see if that works. maybe she has a favorite toy or you can try a toy such as a Kong, stuff it with cream cheese or peanut butter, and keep it in the fridge. When you see her doing this again grab that filled Kong and set it down in front of her. If she is not interested in anything that may be viewed as special to her, then I would think it may be more neurological.
I say neurological because this breed is prone to epilepsy and are usually affected around the 3 to 5 year range. There are different components to seizures, some dogs will snap at imaginary flies, some will lick at air, some will show other odd behaviors. IF you have a cell phone, record the next episode to show to your vet just in case this is not a behavior problem.