Implementation of Random Forest Algorithm to Determine Food Allergies

Authors

  • Ratu Aisyah Faletehan University
  • Dede Brahma Arianto Faletehan University

DOI:

https://doi.org/10.61536/ambidextrous.v4i02.496

Keywords:

Food Allergy, Random Forest, Machine Learning, Classification

Abstract

Food allergy diagnosis faces challenges due to symptom variation and delays in conventional testing. This study aims to classify food allergy types using the Random Forest algorithm on patient data including age, gender, food type, symptoms, and severity. A quantitative experimental design was implemented with a secondary dataset of 1,000 medical records as the population, divided through stratified sampling (train-test ratio 80:20). Data preprocessing included label encoding of categorical variables, followed by supervised classification analysis using Python scikit-learn. The results showed a model accuracy of 85%, precision of 84%, recall of 86%, and F1-score of 85%, indicating strong performance with a balanced error rate in the validation confusion matrix. In conclusion, Random Forest effectively supports the rapid identification of food allergies, potentially serving as a clinical decision-making tool with the need for larger prospective datasets.

Downloads

Download data is not yet available.

References

Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32. https://doi.org/10.1023/A:1010933404324

Emzir. (2021). Qualitative research methodology: Qualitative data analysis techniques. Pustaka Setia.

Gupta, N., et al. (2019). Prevalence and severity of food allergies. Pediatrics, 142(6), Article e20182149. https://doi.org/10.1542/peds.2018-2149

Han, J., Kamber, M., & Pei, J. (2012). Data mining: Concepts and techniques (3rd ed.). Morgan Kaufmann.

Kotsiantis, SB, et al. (2006). Data preprocessing in medical data mining. In Knowledge-oriented applications (pp. 191–219). Springer.

Kuhn, M., & Johnson, K. (2016). Applied predictive modeling. Springer. https://doi.org/10.1007/978-1-4614-6849-3

Putri, F., & Arianto, DB (2024). Comparison of Random Forest and Gradient Boosting performance in predicting customer shopping trends dataset. Kohesi: Journal of Science and Technology, 5(11), 1–10.

Sarjito, et al. (2025). Application of multi-label classification to Indonesian recipes for allergen detection. Mercu Buana University Repository. https://repository.mercubuana.ac.id/96468/

Sicherer, S. H., & Sampson, H. A. (2018). Food allergies: Epidemiology, pathogenesis, diagnosis, and treatment. Journal of Allergy and Clinical Immunology, 133(2), 291–307. https://doi.org/10.1016/j.jaci.2013.11.020

Sugiyono. (2023). Quantitative, qualitative, and R&D research methods. Alfabeta.

Sudaryono. (2022). Educational research methodology. Student Library.

Supriyadi, R., et al. (2020). Application of Random Forest for health data classification. Journal of Information Technology and Computer Science, 7(2), 123–130.

World Health Organization. (2020). Food allergy and hypersensitivity report. WHO Press.

Published

2026-05-08

How to Cite

Ratu Aisyah, & Dede Brahma Arianto. (2026). Implementation of Random Forest Algorithm to Determine Food Allergies. Ambidextrous Journal of Innovation Efficiency and Technology in Organization, 4(02), 114–121. https://doi.org/10.61536/ambidextrous.v4i02.496

Similar Articles

1 2 > >> 

You may also start an advanced similarity search for this article.