Railway anti-skating system controlled by neural network