Work

Implementing support vector machine for intelligence allergen classification in the MBG program

Year: 2026
Type: article
Abstract: Makan Bergizi Gratis (MBG) is an Indonesian government initiative aimed at improving students' nutritional status and reducing the prevalence of stunting. Currently, the MBG menu planning lacks an automated allergen screening mechanism. To address this limitation, this study introduces a Support Vector Machine (SVM) based allergen classification model for Indonesian food recipes to enhance the safety of MBG menu planning. A dataset of 9,986 Indonesian recipes was compiled via web scraping from the Cookpad website using the keyword “Masakan Indonesia.” Each recipe was annotated according to the 14 major food allergens defined by the European Union, including derivative ingredients. Three classification scenarios were developed: binary classification, four allergen level classes, and fifteen allergen-count classes, each evaluated with four data variations: raw, raw plus Random Oversampling (ROS), augmented, and augmented plus ROS. Four SVM kernels (Linear, Polynomial, Radial Basis Function, and Sigmoid) were assessed using 10-fold cross validation based on accuracy, precision, recall, and F1-score. Experimental results demonstrate that the proposed approach achieved high classification performance across all scenarios. In the most complex fifteen-class scenario, the Polynomial kernel trained on the augmented dataset achieved the highest F1-score of 0.981, while the Linear kernel trained on the augmented plus ROS dataset attained the highest accuracy of 0.999. These results suggest that optimal kernel selection, combined with data balancing and augmentation, can significantly enhance the performance of multiclass allergen classification. Although the proposed model has not yet been implemented in a real MBG setting, it shows strong potential to support AI-assisted allergen screening and decision-making during MBG menu planning prior to food distribution.
Language: English
Open Access status: diamond
OpenAlex ID: W7223219993
FWCI:
Cites:
Cited by:
Related to: 10