It's not that the technology doesn't exist, but even assuming that it's cheap and works well, pilots in general are against these features. There have been proposals to have security cameras inside the cockpit and they've come out against it. They're even against increasing the recording capacity of black boxes... imagine a system that monitors if they're paying attention or awake.