A bilevel optimization method for inverse mean-field games | Synapse