{"title":"熔融视频机器学习测定黄油中人造黄油掺假","authors":"Eftal Şehirli, Cemhan Doğan, 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":"{\"title\":\"Determination of margarine adulteration in butter by machine learning on melting video\",\"authors\":\"Eftal Şehirli, Cemhan Doğan, 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}","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}
Determination of margarine adulteration in butter by machine learning on melting video
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.
期刊介绍:
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.