Electroencephalogram analysis using artificial neural networks