Structured neural networks for signal classification