Deep learning techniques elucidate and modify the shape factor to extend the effective medium theory beyond its original formulation