<p>Microgels made of poly(<span>N</span>-isopropylacrylamide) are the prototype of soft, thermoresponsive particles widely used to study fundamental problems in condensed matter physics. However, their internal structure is far from homogeneous, and existing mean-field approaches, such as Flory–Rehner theory, provide only qualitative descriptions of their thermoresponsive behavior. Here, we combine machine learning and numerical simulations to accurately predict the concentration and spatial distribution of crosslinkers, the latter hitherto unknown experimentally, as well as the full swelling behavior of microgels, using only polymer density profiles. Our approach provides unprecedented insight into the structural and thermodynamic properties of any standard microgel.</p>