Both histidine betaine (hercynine) levels and the proline-to-glutamate ratio mediated the causal relationship between CD14–CD16+ monocyte absolute count and prostatitis, with the mediation effects of −0.016 (14.20%) and −0.008 (7.24%), respectively. This evidence concerns the gene CD14 and medical procedure.