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

IF 2.9 3区 农林科学 Q2 FOOD SCIENCE & TECHNOLOGY
Eftal Şehirli, Cemhan Doğan, Nurcan Doğan
{"title":"Determination of margarine adulteration in butter by machine learning on melting video","authors":"Eftal Şehirli,&nbsp;Cemhan Doğan,&nbsp;Nurcan Doğan","doi":"10.1007/s11694-023-02115-z","DOIUrl":null,"url":null,"abstract":"<div><p>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.</p><h3>Graphical Abstract</h3><div><figure><div><div><picture><source><img></source></picture></div></div></figure></div></div>","PeriodicalId":631,"journal":{"name":"Journal of Food Measurement and Characterization","volume":"17 6","pages":"6099 - 6108"},"PeriodicalIF":2.9000,"publicationDate":"2023-08-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Food Measurement and Characterization","FirstCategoryId":"97","ListUrlMain":"https://link.springer.com/article/10.1007/s11694-023-02115-z","RegionNum":3,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"FOOD SCIENCE & TECHNOLOGY","Score":null,"Total":0}
引用次数: 0

Abstract

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

Abstract Image

熔融视频机器学习测定黄油中人造黄油掺假
黄油是一种很容易掺入人造黄油等廉价原料的产品。在这项研究中,黄油被人为地以不同的速率掺入人造黄油,以制造不同程度的掺假。然后,使用视频片段捕捉融化过程,并使用图像处理和机器学习(ML)来自动检测黄油中的掺假水平。为了为ML模型创建最终的数值数据集,从视频中总共收集了30,000张图像,每个类别的图像数量相等。使用检测掺假黄油图像中感兴趣区域(ROI)的算法将图像分为五类。创建了两种类型的数值数据集:基于单帧和基于第一-中间-最后(FML)帧。七种不同的机器学习模型(决策树(DT)、线性判别分析(LDA)、Naïve贝叶斯(NB)、支持向量机(SVM)、k近邻(KNN)、随机森林(RF)和人工神经网络(ANN))在数据集上进行了训练和测试。为了提高准确性和效率,对ML模型进行了10倍交叉验证。ML模型在对加载的黄油视频进行分类时取得了较高的准确率。在单帧数据集上,KNN、RF和ANN的准确率最高(99.9%),其次是SVM(99.7%)和DT(99.4%)。NB的准确率最低(87.1%)。在基于FML帧的数据集上,DT的准确率最高(99.9%),而SVM的准确率最低(73.3%)。总体而言,本研究中使用的方法成功地使用图像处理和ML技术对黄油掺假进行了高精度分类。图形抽象
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Food Measurement and Characterization
Journal of Food Measurement and Characterization Agricultural and Biological Sciences-Food Science
CiteScore
6.00
自引率
11.80%
发文量
425
期刊介绍: This interdisciplinary journal publishes new measurement results, characteristic properties, differentiating patterns, measurement methods and procedures for such purposes as food process innovation, product development, quality control, and safety assurance. The journal encompasses all topics related to food property measurement and characterization, including all types of measured properties of food and food materials, features and patterns, measurement principles and techniques, development and evaluation of technologies, novel uses and applications, and industrial implementation of systems and procedures.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信