The article addresses the overwhelming problematics of attention decrease of human operators. It presents two sets of experiments used for vigilance detection and possible microsleep prediction. In the hrst experiment, the analysis of the electroencephalographic activity (EEG) of a human operátor (proband) is correlated with the reaction time (RT) to the sound stimulus. For the second set of experiments, the cooperation of a car simulator realized in virtual reality (VR) environment and measurement of EEG is presented. The paper introduces two main methods of the analysis of EEG: frequency analysis and nonlinear analysis based on computation of the state-space trajectory. For the frequency analysis, the delta, theta, alpha and beta bands are computed and compared with nonlinear measures Largest Lyapunov Exponent (LLE) and Correlation dimension (CD). Finally, both experiments are compared and its outcomes are discussed.