TY - JOUR AB - Mechanistic modeling in neuroscience aims to explain observed phenomena in terms of underlying causes. However, determining which model parameters agree with complex and stochastic neural data presents a significant challenge. We address this challenge with a machine learning tool which uses deep neural density estimators—trained using model simulations—to carry out Bayesian inference and retrieve the full space of parameters compatible with raw data or selected data features. Our method is scalable in parameters and data features and can rapidly analyze new data after initial training. We demonstrate the power and flexibility of our approach on receptive fields, ion channels, and Hodgkin–Huxley models. We also characterize the space of circuit configurations giving rise to rhythmic activity in the crustacean stomatogastric ganglion, and use these results to derive hypotheses for underlying compensation mechanisms. Our approach will help close the gap between data-driven and theory-driven models of neural dynamics. AU - Gonçalves, Pedro J. AU - Lueckmann, Jan-Matthis AU - Deistler, Michael AU - Nonnenmacher, Marcel AU - Öcal, Kaan AU - Bassetto, Giacomo AU - Chintaluri, Chaitanya AU - Podlaski, William F. AU - Haddad, Sara A. AU - Vogels, Tim P AU - Greenberg, David S. AU - Macke, Jakob H. ID - 8127 JF - eLife TI - Training deep neural density estimators to identify mechanistic models of neural dynamics VL - 9 ER -