A set of analytical routines were developed to determine significant trends in values for herd DHI somatic cell scores. These trends were used as input to a data-driven, decision support system to aid mastitis management of dairy cattle. The trends of interest were those experienced over the last six DHI sample periods for the entire herd, for three parity groups, and for three stages of lactation. First, cows within the herd were split randomly into two equal groups to account for within-herd variation. For each group, linear regression was calculated for somatic cell score over time within each parity by stage of lactation group. The 18 slope estimates were then analyzed using a two-way ANOVA to test for main fixed effects of parity, stage of lactation, and their interaction. The results of the trend analyses were converted to facts that were asserted to an embedded expert system for further evaluation.