Resumen: We present an algorithm to learn the relevant latent variables of a large-scale discretized physical system and predict its time evolution using thermodynamically-consistent deep neural networks. Our method relies on sparse autoencoders, which reduce the dimensionality of the full order model to a set of sparse latent variables with no prior knowledge of the coded space dimensionality. Then, a second neural network is trained to learn the metriplectic structure of those reduced physical variables and predict its time evolution with a so-called structure-preserving neural network. This data-based integrator is guaranteed to conserve the total energy of the system and the entropy inequality, and can be applied to both conservative and dissipative systems. The integrated paths can then be decoded to the original full-dimensional manifold and be compared to the ground truth solution. This method is tested with two examples applied to fluid and solid mechanics. Idioma: Inglés DOI: 10.1016/j.cma.2021.113763 Año: 2021 Publicado en: Computer Methods in Applied Mechanics and Engineering 379 (2021), 113763 [18 pp] ISSN: 0045-7825 Factor impacto JCR: 6.588 (2021) Categ. JCR: MECHANICS rank: 9 / 138 = 0.065 (2021) - Q1 - T1 Categ. JCR: MATHEMATICS, INTERDISCIPLINARY APPLICATIONS rank: 4 / 108 = 0.037 (2021) - Q1 - T1 Categ. JCR: ENGINEERING, MULTIDISCIPLINARY rank: 8 / 92 = 0.087 (2021) - Q1 - T1 Factor impacto CITESCORE: 10.3 - - -