Migraine is a neurological disorder characterized by persisting attacks, underlined by the sensitivity to light. One of the leading reasons that make migraine a bigger issue is that it cannot be diagnosed easily by physicians because of the numerous overlapping symptoms with other diseases, such as epilepsy and tension-headache. Consequently, studies have been growing on how to make a computerized decision support system for diagnosis of migraine. In most laboratory studies, flash stimulation is used during the recording of electroencephalogram (EEG) signals with different frequencies and variable (seconds) time windows. The main contribution of this study is the investigation of the effects of flash stimulation on the classification accuracy, and how to find the effective window length for EEG signal classification. To achieve this, we tested different machine learning algorithms on the EEG signals features extracted by using discrete wavelet transform. Our tests on the real-world dataset, recorded in the laboratory, show that the flash stimulation can improve the classification accuracy for more than 10%. Not surprisingly, it is seen that the same holds for the selection of time window length, i.e. the selection of the proper window length is crucial for the accurate migraine identification. (C) 2018 Elsevier Ltd. All rights reserved.