Real-time transmission switching with neural networks