Food product allergen annotations are relevant to ingredient-related classification, although dataset-label prediction must be distinguished from laboratory-confirmed allergen detection. This study compares four tree-based machine learning models XGBoost, AdaBoost, Decision Tree, and Random Forest using a secondary food ingredient dataset containing 399 records from Kaggle. An 80:20 training–testing split was used, and models were assessed using accuracy, precision, recall, and F1-score. In the reported 80-record test set, Random Forest achieved the highest accuracy (0.86), with a class-1 F1-score of 0.91, a macro-average F1-score of 0.82, and class-0 recall of 0.65. SHapley Additive exPlanations (SHAP) were used to interpret Random Forest predictions; fat/oil attributes, including olive oil and butter, were prominent model-associated features. These associations describe patterns learned from the dataset rather than causal or biologically verified effects. The findings should be viewed as preliminary, dataset-specific classification results; external validation and additional evaluation are required before any food-safety application