Model design for algorithmic efficiency in electromagnetic sensing