Complex sentence: In some cases Sexsomnia could be caused by sleep related epilepsy which results in sexual arousal, thrusting and orgasms, when this is the cause, the patient actually remembers the event and is not confused upon awakening.
Split into simpler sentences: In some cases Sexsomnia could be caused by sleep related epilepsy which results in sexual arousal, thrusting and orgasms. When this is the cause, the patient actually remembers the event and is not confused upon awakening.