Swarm Characteristic Classification using Robust Neural Networks with Optimized Controllable Inputs