Predicting and optimising products properties