Modelling lung mechanics on all of the scales characteristic of the organ is currently lacking, especially when it comes to understanding the diagnosis and treatment of pulmonary fibrosis. To meet this need, researchers are developing an algorithm that can generate an actual digital twin of a patient’s lungs.