Coupling molecular dynamics and machine learning to accelerate the design of bioinspired materials