Neural network resilience