Electrooculogram signal processing for neuropsychology applications In the code you can find explanation for some of the functions created and in the EOG_Movement_Detection_using_Wavelet_Transform.pdf you can find a detailed explanation of the general approach for the algorithm's creation.