Abstract
BACKGROUND: Chronic prostatitis/chronic pelvic pain syndrome (CP/CPPS) has a multifactorial etiology where diet is considered an important factor. This study aimed to develop a predictive model for CP/CPPS symptom severity by analyzing food frequency questionnaire (FFQ) data with machine learning techniques, providing a basis for personalized nutritional interventions. METHODS: This study included 313 patients with CP/CPPS. We used principal component analysis (PCA) to extract dietary patterns from FFQ data and applied LASSO regression to select key predictors of symptom severity. Subsequently, six machine learning models (logistic regression, random forest, XGBoost, support vector machine, K-nearest neighbors, and multilayer perceptron) were trained and compared. Model performance was evaluated using ROC curves, decision curve analysis (DCA), and calibration plots. SHapley Additive exPlanations (SHAP) were used to interpret the optimal model. RESULTS: PCA identified two major dietary patterns: a "Red Meat and Processed Food" dietary pattern (PC1) and a "Dairy-rich" pattern (PC2). LASSO regression selected key predictors, among which the "Red Meat and Processed Food" dietary pattern demonstrated the strongest positive association with CP/CPPS symptom severity. Among the models, while support vector machine (SVM) and logistic regression showed high AUC values, the XGBoost model demonstrated the best overall performance across a balance of metrics including accuracy, precision, recall, and F1-score, and was selected as the final model (AUC = 0.883). SHAP analysis identified the Red Meat and Processed Food dietary pattern as the most important feature associated with symptom severity. CONCLUSION: This study successfully developed a machine learning model based on dietary patterns that effectively predicts CP/CPPS symptom severity. The model underscores the significant association between nutrition and disease management and, with its strong predictive performance and interpretability, offers a novel tool for precision nutrition in CP/CPPS.