Text this: ERNEAD: Training of Artificial Neural Networks Based on a Genetic Algorithm and Finite Automata Theory