Determination of margarine adulteration in butter by machine learning on melting video


Şehirli E., DOĞAN C., DOĞAN N.

Journal of Food Measurement and Characterization, cilt.17, sa.6, ss.6099-6108, 2023 (SCI-Expanded) identifier

  • Yayın Türü: Makale / Tam Makale
  • Cilt numarası: 17 Sayı: 6
  • Basım Tarihi: 2023
  • Doi Numarası: 10.1007/s11694-023-02115-z
  • Dergi Adı: Journal of Food Measurement and Characterization
  • Derginin Tarandığı İndeksler: Science Citation Index Expanded (SCI-EXPANDED), Scopus, Agricultural & Environmental Science Database, CAB Abstracts, Compendex, Food Science & Technology Abstracts, Veterinary Science Database
  • Sayfa Sayıları: ss.6099-6108
  • Anahtar Kelimeler: Adulteration, Butter, Digital image processing, Machine learning, Melting
  • Yozgat Bozok Üniversitesi Adresli: Evet

Özet

Butter is a product that is often vulnerable to adulteration with cheaper ingredients such as margarine. In this study, butter was artificially adulterated with margarine at different rates to create different levels of adulteration. Then, the melting was captured using video footage, and image processing and machine learning (ML) were used to automatically detect the level of adulteration in the butter. To create the final numerical dataset for ML models, a total of 30,000 images were collected from the video, with equal numbers of images for each class. The images were divided into five classes using an algorithm that detected region of interest (ROI) in the adulterated butter images. Two types of numerical datasets were created: single frame-based and first-middle-last (FML) frame-based. Seven different ML models (decision tree (DT), linear discriminant analysis (LDA), Naïve Bayes (NB), support vector machines (SVM), k-nearest neighbor (KNN), random forest (RF) and artificial neural networks (ANN) were trained and tested on the datasets. To improve accuracy and efficiency, 10-fold cross-validation was applied to the ML models. The ML models achieved high accuracy in classifying the loaded butter videos. KNN, RF, and ANN had the highest accuracy (99.9%), followed by SVM (99.7%) and DT (99.4%) on the single frame-based dataset. NB had the lowest accuracy (87.1%). On the FML frame-based dataset, DT had the highest accuracy (99.9%) while SVM had the lowest accuracy (73.3%). Overall, the method used in this study was successful in classifying butter adulteration with high accuracy using image processing and ML techniques. Graphical Abstract: [Figure not available: see fulltext.]