A non-transitory computer-readable medium on which are stored instructions that are executable by a computer processor and that, when executed by the processor, cause the processor to perform a method for warning of an imminent microsleep event, the method comprising:
- obtaining at least one pattern of a driver while driving a vehicle;
- comparing the obtained pattern to at least one stored pre-microsleep pattern that represents an individual behavior of the driver that occurs prior to a microsleep event;
- and
- outputting a warning signal responsive to determining, based on a result of the comparison, that a predetermined relationship exists between the obtained pattern and the pre-microsleep pattern.