Look here:
Pupillography as an objective indicator of fatigue; Current Eye Research - 21(1):Pages 535-542 - Informa Healthcare
It works, I saw them testing it on truck-drivers, voluntarily however. Shocking!
Once available we will find the airlines/operators putting all they have against such a system….
And probably the truck drivers have a similar lobbying-problem.