{"title":"Beef quality dual-label classification incorporating texture and multihead map attention mechanisms","authors":"Runzhe Zhang, Weiming Shi, Yueyang Pan, Yifan Zhao, Zhenlu Hua, Yanshen Zhao, Qiang Pan, Zhongzhi Han","doi":"10.1016/j.jfca.2025.107360","DOIUrl":null,"url":null,"abstract":"<div><div>With the increasing consumer demand for high-quality and safe beef, there is an urgent need for advanced scientific testing methods to ensure product quality. This study introduces a rapid and accurate dual-label classification system for beef cuts and marbling grades, combining a multi-head attention mechanism and contrast features extracted from the Gray-Level Co-occurrence Matrix (GLCM), significantly improving classification accuracy. A comparison of different ResNet models revealed that ResNet50 achieved the highest classification accuracies, 85.65 % and 85.03 %, respectively. Building on the ResNet50 model, GLCM was used to extract contrast features in four directions from beef images, followed by feature fusion. Compared to SE and non-corresponding multi-head Graph Attention Networks (GAT), a multi-head GAT focusing on GLCM texture features in each direction was selected, with these features fused one-to-one with the fully connected layer features of RGB images and incorporating a feature fusion mechanism. Our model achieved 93.5 % accuracy in cut classification and 92.25 % in grade classification. Additionally, an app based on the optimal model was developed, enabling users to perform real-time testing and obtain results. The goal of this study was to develop the fastest and most accurate dual-label classification system, significantly improving the speed and reliability of obtaining product information during marbling selection.</div></div>","PeriodicalId":15867,"journal":{"name":"Journal of Food Composition and Analysis","volume":"141 ","pages":"Article 107360"},"PeriodicalIF":4.0000,"publicationDate":"2025-02-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Food Composition and Analysis","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0889157525001747","RegionNum":2,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"CHEMISTRY, APPLIED","Score":null,"Total":0}
引用次数: 0
Abstract
With the increasing consumer demand for high-quality and safe beef, there is an urgent need for advanced scientific testing methods to ensure product quality. This study introduces a rapid and accurate dual-label classification system for beef cuts and marbling grades, combining a multi-head attention mechanism and contrast features extracted from the Gray-Level Co-occurrence Matrix (GLCM), significantly improving classification accuracy. A comparison of different ResNet models revealed that ResNet50 achieved the highest classification accuracies, 85.65 % and 85.03 %, respectively. Building on the ResNet50 model, GLCM was used to extract contrast features in four directions from beef images, followed by feature fusion. Compared to SE and non-corresponding multi-head Graph Attention Networks (GAT), a multi-head GAT focusing on GLCM texture features in each direction was selected, with these features fused one-to-one with the fully connected layer features of RGB images and incorporating a feature fusion mechanism. Our model achieved 93.5 % accuracy in cut classification and 92.25 % in grade classification. Additionally, an app based on the optimal model was developed, enabling users to perform real-time testing and obtain results. The goal of this study was to develop the fastest and most accurate dual-label classification system, significantly improving the speed and reliability of obtaining product information during marbling selection.
期刊介绍:
The Journal of Food Composition and Analysis publishes manuscripts on scientific aspects of data on the chemical composition of human foods, with particular emphasis on actual data on composition of foods; analytical methods; studies on the manipulation, storage, distribution and use of food composition data; and studies on the statistics, use and distribution of such data and data systems. The Journal''s basis is nutrient composition, with increasing emphasis on bioactive non-nutrient and anti-nutrient components. Papers must provide sufficient description of the food samples, analytical methods, quality control procedures and statistical treatments of the data to permit the end users of the food composition data to evaluate the appropriateness of such data in their projects.
The Journal does not publish papers on: microbiological compounds; sensory quality; aromatics/volatiles in food and wine; essential oils; organoleptic characteristics of food; physical properties; or clinical papers and pharmacology-related papers.