Optimized management of ultra-wideband photonics switching systems assisted by machine learning