A system and method relate to receiving, by a processing device, at least one stream of data captured by at least one sensor monitoring a human subject, wherein the at least one stream of data comprises sensor measurements, comparing the sensor measurements to at least one model of a mental state to estimate the mental state of the human subject, determining whether to trigger an alarm based on the estimated mental state, and in response to determining to trigger the alarm, generating an instruction to trigger the alarm.