Ask you buddy beside you to draw one line on your arm whenever
he sees you falling asleep.
At the end of the lecture, take note how many lines are drawn; then
try to discipline yourself to improve in the next one. 
For one, its good practice for you.
And also, gives your buddy a chance to have fun too! 