Fig. 2: Performance of RF model in predicting AFB1 contamination.

a–c Confusion matrices for the training set, test set, and external validation. “Pos” and “Neg” denote high-risk and low-risk classes, respectively (defined by the county-level mean AFB1 threshold, Aver_0). d Features ranked by their contributions to the classification accuracy (Mean decrease in Gini).