Isn't yawning supposed to be you're bodies way to increase your oxygen content in your blood. When you get tired you breath more shallow and end up yawning to make up for it.
Just another one of those things i learned from someone years ago and never investigated, guess ill add it to my action item list.
If thats the case then if you were not getting enough O2 in your sleep you would yawn.