Elise sometimes does that when she has wind. Wakes up screaming, in pain.
Sometimes she will fart it out while still half asleep, othertimes she will need help to get it out.