The experimental results showed that vitamin D, C-reactive protein (CRP) level, total body water, and lean mass are crucial features, and the gradient boosting technique achieved the highest accuracy (85.42%) in predicting gallstones. Here, CRP is linked to gallstones.