Software storable on and
executable by an electronic computing resource (10), the
software being designed, when executed, to configure the electronic computing resource (10) to detect and / or predict in real time a
behavioral state and / or transition among one or more of a subject's
wakefulness (W), drowsiness (D), and sleep (S) phases. The
software, when executed, is designed to configure the electronic computing resource (10) to: receive (20) a subject's biometric
signal, process (21-29) the received biometric
signal to classify the received biometric
signal into one of different classes associated with the
behavioral state and / or transition among one or more of the subject's
wakefulness (W), drowsiness (D), and sleep (S) phases, and detect and / or predict (30) the subject's
behavioral state and / or transition among the
wakefulness (W), drowsiness (D), and sleep (S) phases based on the classified biometric signal. The
software, when executed, is designed to configure the electronic computing resource (10) to: calculate (24) at least a first one composite quantity for and based on the received biometric signal; calculate (29) at least one threshold value for the received biometric signal based on the at least first one composite quantity calculated therefor; and classify (29) the biometric signal into one of different classes associated with behavioral states and / or transitions among one or more of wakefulness (W), drowsiness (D) and sleep (S) phases based on the calculated threshold value.