The present disclosure relates to a system (100) for generating a diagnostic model. The system (100) includes a processor (108) configured to analyse a plurality of reference data sets. The reference data sets each include at least one image (230, 240). The analysis identifies at least one feature in each image (230, 240). A metric is calculated in dependence on the at least one identified feature. Outcome data associated with at least some of the reference data sets is acquired. The diagnostic model is compiled in dependence on the at least one calculated metric and the associated outcome data. The present disclosure also relates to a method of generating a diagnostic model; and a non-transitory computer-readable medium.