This study constitutes a first step towards a wearable epileptic seizure prediction device. We exploit the existing correlation between epileptic pre-ictal states and heart rate variability features, since they can be measured by portable electrocardiogram recorders. By explicitly dealing with the intervals of extreme noise that may corrupt the electrocardiogram data during the seizures, our proposal is able to robustly train and use a Support Vector Machine to detect pre-ictal states. The experimental results show particularly good results in terms of positive and negative prediction. They also show the importance of a specific training for each patient.