It knows how quickly you change/scroll through pages while you read, so it can make a reasonable assumption of the number of words you read per minute and create an estimation that way.
It would be interesting to see a proximity sensor in the iPad. I'm not sure what the range of those is. The accelerometer might be sensitive enough to detect when it's being held up as it's going to move a little bit in your hand.