Movatterモバイル変換


[0]ホーム

URL:


CN113449792A - Method for nondestructive rapid detection of food quality - Google Patents

Method for nondestructive rapid detection of food quality
Download PDF

Info

Publication number
CN113449792A
CN113449792ACN202110719655.4ACN202110719655ACN113449792ACN 113449792 ACN113449792 ACN 113449792ACN 202110719655 ACN202110719655 ACN 202110719655ACN 113449792 ACN113449792 ACN 113449792A
Authority
CN
China
Prior art keywords
food
data
units
quality
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110719655.4A
Other languages
Chinese (zh)
Inventor
吴彦衡
余保华
徐圣吉
吴艳平
张金国
丁斌
尤英婕
余凯强
陈荣波
钟振江
杨国俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuang Electronics Co ltd
Original Assignee
Sichuang Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuang Electronics Co ltdfiledCriticalSichuang Electronics Co ltd
Priority to CN202110719655.4ApriorityCriticalpatent/CN113449792A/en
Publication of CN113449792ApublicationCriticalpatent/CN113449792A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The invention discloses a method for nondestructively and rapidly detecting food quality, which comprises the following steps: acquiring food units with uniform texture and no obstruction superposition, detecting each food unit by using an infrared spectroscopy method, a resistance method, a microwave detection method and a commercial wifi signal respectively, and acquiring data to be processed; performing data preprocessing on the food data to be processed to obtain processed data, and identifying the characteristics of the food units through a nonlinear support vector machine decision tree model; after training, obtaining a model capable of classifying the food quality; the model may predict the quality level of the new food unit. The method for nondestructively and rapidly detecting the food quality can predict whether a food unit to be detected is mildewed, withered, filled with water and other deterioration problems, and can be applied to mass data while improving classification accuracy.

Description

Method for nondestructive rapid detection of food quality
Technical Field
The invention relates to the technical field of Internet of things food detection, in particular to a method for nondestructively and rapidly detecting food quality.
Background
In the prior art, when the food quality is detected, a damage sampling method is mostly adopted, the method can only be used for sampling inspection, and the damage to articles is large. In the aspect of algorithm, when food quality is detected, a geometric model is established, a food quality judgment model is established based on the geometric model, so that the food quality is evaluated, multiple models need to be quantized, the calculation process is complex, a threshold value needs to be used for judgment in the evaluation process, however, the specific numerical value of the threshold value is mostly artificially established through subjective factors, and the judgment result is not accurate enough.
Disclosure of Invention
The invention aims to provide a method for nondestructively and rapidly detecting food quality, which can be applied to mass data while improving classification precision, can realize rapid detection of food quality under the condition of not damaging food, has a good effect particularly on identification of grains and vegetables, improves detection efficiency, ensures food safety and solves the problems in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme:
a method for nondestructively and rapidly detecting food quality comprises the following steps:
s1: obtaining food units with uniform texture and no obstruction superposition, and obtaining data to be processed;
s2: performing data preprocessing on the data to be processed obtained in the step S1 to obtain processed data;
s3: and identifying the data after the characteristic processing of the food units through a nonlinear support vector machine decision tree model, training the nonlinear support vector machine decision tree model through a correction data set, updating and training the nonlinear support vector machine decision tree model through a prediction data set to obtain a model capable of classifying the food quality, and inputting the characteristic data of the detected new food units detected by a detection method into the model, thereby completing the quality detection of the food units.
As a still further scheme of the invention: in S3, the nonlinear support vector machine decision tree model can be trained and updated through a distributed training method.
As a still further scheme of the invention: the new detection method of the food units in the S3 comprises an infrared spectroscopy method, a resistance method, a microwave detection method and commercial wifi signal collection, namely, the water content in the food units is detected through the infrared spectroscopy method, the electric conductivity in the food units is detected through the resistance method, the microwave detection signals in the food units are detected through the microwave detection method, and the CSI data in the food units are collected through the commercial wifi signal collection.
As a still further scheme of the invention: the microwave used in the microwave detection method is 9-10 GHz.
As a still further scheme of the invention: the data preprocessing in S2 is data cleaning, which includes noise smoothing, outlier culling, missing value padding, and outlier interpolation.
As a still further scheme of the invention: the model for classifying food quality in S3 is divided into cereal food units with low water content and cereal food units with normal water content according to the characteristics of the cereal detection food units, the cereal food units with low water content are named as one type, the water content of one type is 12.8% -14%, the cereal food units with normal water content are named as two types, and the water content of the two types is more than 14%.
As a still further scheme of the invention: the food quality classification model in the S3 is divided into A type, B type and C type according to the characteristics of the water content food units, wherein the A type is the food unit with normal water content, the B type is the food unit with water content exceeding the water content of the normal food unit, and the C type is the food unit with water content less than the water content of the normal food unit.
As a still further scheme of the invention: the food quality classification model in the S3 includes constructing a plurality of nonlinear support vector machine models and a decision tree, starting from a root node of the decision tree, from top to bottom, respectively adopting one nonlinear support vector machine model as a classifier at each node of the decision tree, dividing the training data set into two classes layer by layer, and obtaining a final classification result, wherein the classification result is used for representing the quality of the food units to be tested.
Compared with the prior art, the invention has the beneficial effects that:
1. the nonlinear support vector machine decision tree model can realize classification of three categories of food unit quality (normal moisture content food units, moldy cereal food units or water-injected vegetable food or water-injected meat, food units with low moisture and dry food units, which are obtained by dividing the food units with more than normal moisture content into two categories through a first classifier, obtaining acategory 1 and acategory 2, obtaining a category 3 and a category 4 by dividing the food units with less moisture through a second classifier, and sequentially performing category division;
the method comprises the steps of obtaining food units with uniform texture and no obstruction superposition, detecting each food unit by using an infrared spectroscopy method, a resistance method, a microwave detection method and a commercial wifi signal respectively, and obtaining data to be processed; performing data preprocessing on the food data to be processed to obtain processed data, and identifying the characteristics of the food units through a nonlinear support vector machine decision tree model; after training, obtaining a model capable of classifying the food quality; the quality level of the new food units can be predicted by the model, a stronger final classifier is formed by integrating the model, the practicability is high, and the method can be applied to mass data while the classification precision is improved.
Drawings
In order to facilitate understanding for those skilled in the art, the present invention will be further described with reference to the accompanying drawings.
FIG. 1 is a flow diagram of the method of the present invention.
FIG. 2 is a flow chart of discriminating the quality of a food unit by a nonlinear support vector machine decision tree model according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
Referring to fig. 1-2, in an embodiment of the present invention, a method for nondestructive fast detection of food quality includes the following steps:
s1: obtaining food units with uniform texture and no obstruction superposition, and obtaining data to be processed;
s2: performing data preprocessing on the data to be processed obtained in the step S1 to obtain processed data;
s3: recognizing the data after the characteristic processing of the food units through a nonlinear support vector machine decision tree model, training the nonlinear support vector machine decision tree model through a correction data set, updating and training the nonlinear support vector machine decision tree model through a prediction data set to obtain a model capable of classifying the food quality, and inputting the characteristic data of the detected new food units detected by a detection method into the model so as to finish the quality detection of the food units;
the model for classifying the food quality is divided into a cereal food unit with low water content and a cereal food unit with normal water content according to the characteristics of the cereal food detection unit, the cereal food unit with low water content is named as a first type, the water content of the first type is 12.8% -14%, the cereal food unit with normal water content is named as a second type, the water content of the second type is more than 14%, and the first-type node classification is carried out.
In the step S3, the nonlinear support vector machine decision tree model can be trained and updated by a distributed training method, so as to store and update data in the nonlinear support vector machine decision tree model, thereby effectively ensuring timeliness of later-stage classification comparison, storage and quality detection.
The novel detection method of the food units in the S3 comprises an infrared spectroscopy method, a resistance method, a microwave detection method and commercial wifi signal collection, namely, the water content in the food units is detected through the infrared spectroscopy method, the electric conductivity in the food units is detected through the resistance method, microwave detection signals in the food units are detected through the microwave detection method, CSI data in the food units are collected through the commercial wifi signal collection, detection of each food unit is achieved, data to be processed are obtained, data preprocessing is conducted on the food data to be processed, processed data are obtained, the processed data are guided into a decision tree model of a nonlinear support vector machine to identify the characteristics of the food units, and quality detection of the food units is completed.
The microwave used in the microwave detection method is 9-10 GHz.
The data preprocessing in the S2 is data cleaning which comprises noise smoothing, abnormal value elimination, missing value filling and abnormal value interpolation, the obtained data precision is more accurate through normalization processing, the food unit characteristics are identified by a nonlinear support vector machine decision tree model, and the identification precision is improved.
The model for classifying food quality in S3 is divided into cereal food units with low water content and cereal food units with normal water content according to the characteristics of the cereal detection food units, the cereal food units with low water content are named as one type, the water content of one type is 12.8% -14%, the cereal food units with normal water content are named as two types, and the water content of the two types is more than 14%.
Example 2
Referring to fig. 1-2, in an embodiment of the present invention, a method for nondestructive fast detection of food quality includes the following steps:
s1: obtaining food units with uniform texture and no obstruction superposition, and obtaining data to be processed;
s2: performing data preprocessing on the data to be processed obtained in the step S1 to obtain processed data;
s3: recognizing the data after the characteristic processing of the food units through a nonlinear support vector machine decision tree model, training the nonlinear support vector machine decision tree model through a correction data set, updating and training the nonlinear support vector machine decision tree model through a prediction data set to obtain a model capable of classifying the food quality, and inputting the characteristic data of the detected new food units detected by a detection method into the model so as to finish the quality detection of the food units;
the model for classifying the food quality is divided into a cereal food unit with low water content and a cereal food unit with normal water content according to the characteristics of the cereal detection food unit, the cereal food unit with low water content is named as a first type, the water content of the first type is 12.8-14%, the cereal food unit with normal water content is named as a second type, and the water content of the second type is more than 14%;
the model that food quality carries out classification is divided into A type, B type and C type according to the characteristic of water content food unit, A type is the normal food unit of moisture, B type is the food unit that moisture surpassed normal food unit water content, C type is the food unit that moisture is less than normal food unit water content, carries out dual root node classification.
In the step S3, the nonlinear support vector machine decision tree model can be trained and updated by a distributed training method, so as to store and update data in the nonlinear support vector machine decision tree model, thereby effectively ensuring timeliness of later-stage classification comparison, storage and quality detection.
The novel detection method of the food units in the S3 comprises an infrared spectroscopy method, a resistance method, a microwave detection method and commercial wifi signal collection, namely, the water content in the food units is detected through the infrared spectroscopy method, the electric conductivity in the food units is detected through the resistance method, microwave detection signals in the food units are detected through the microwave detection method, CSI data in the food units are collected through the commercial wifi signal collection, detection of each food unit is achieved, data to be processed are obtained, data preprocessing is conducted on the food data to be processed, processed data are obtained, the processed data are guided into a decision tree model of a nonlinear support vector machine to identify the characteristics of the food units, and quality detection of the food units is completed.
The microwave used in the microwave detection method is 9-10 GHz.
The data preprocessing in the S2 is data cleaning which comprises noise smoothing, abnormal value elimination, missing value filling and abnormal value interpolation, the obtained data precision is more accurate through normalization processing, the food unit characteristics are identified by a nonlinear support vector machine decision tree model, and the identification precision is improved.
The food quality classification model in the S3 includes constructing a plurality of nonlinear support vector machine models and a decision tree, starting from a root node of the decision tree, from top to bottom, respectively adopting one nonlinear support vector machine model as a classifier at each node of the decision tree, dividing the training data set into two classes layer by layer, and obtaining a final classification result, wherein the classification result is used for representing the quality of the food units to be tested.
In summary, the combination of the support vector machine and the binary tree of the invention trains the classifiers after dividing the training data set into two classes layer by layer, and classifies unknown samples by a tree structure combination strategy, so that individual basic classifiers can be trained for different training sets, and then integrated to form a stronger final classifier.
Although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that various changes in the embodiments and/or modifications of the invention can be made, and equivalents and modifications of some features of the invention can be made without departing from the spirit and scope of the invention.
While one embodiment of the present invention has been described in detail, the description is only a preferred embodiment of the present invention and should not be taken as limiting the scope of the invention. All equivalent changes and modifications made within the scope of the present invention shall fall within the scope of the present invention.

Claims (8)

CN202110719655.4A2021-06-282021-06-28Method for nondestructive rapid detection of food qualityPendingCN113449792A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110719655.4ACN113449792A (en)2021-06-282021-06-28Method for nondestructive rapid detection of food quality

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110719655.4ACN113449792A (en)2021-06-282021-06-28Method for nondestructive rapid detection of food quality

Publications (1)

Publication NumberPublication Date
CN113449792Atrue CN113449792A (en)2021-09-28

Family

ID=77813480

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110719655.4APendingCN113449792A (en)2021-06-282021-06-28Method for nondestructive rapid detection of food quality

Country Status (1)

CountryLink
CN (1)CN113449792A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN117371825A (en)*2023-12-052024-01-09烟台市食品药品检验检测中心(烟台市药品不良反应监测中心、烟台市粮油质量检测中心)Food prediction system based on state monitoring analysis production quality
CN117668672A (en)*2024-02-012024-03-08季华实验室Liquid food detection method, device, equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103033512A (en)*2012-07-242013-04-10南京农业大学Device and method for recognizing hatching egg incubation based on hyperspectrum
CN103235095A (en)*2013-04-182013-08-07北京工商大学Water-injected meat detection method and device
CN103914707A (en)*2014-04-152014-07-09广西交通投资集团有限公司Green channel product auxiliary discriminating method based on support vector machine
CN104359855A (en)*2014-11-032015-02-18中国农业大学Near infrared spectrum based water-injected meat detecting method
CN104809472A (en)*2015-05-042015-07-29哈尔滨理工大学SVM-based food classifying and recognizing method
CN107273920A (en)*2017-05-272017-10-20西安交通大学A kind of non-intrusion type household electrical appliance recognition methods based on random forest
CN109389176A (en)*2018-10-252019-02-26河南工业大学Grain measurement of moisture content method and system based on WIFI channel state information
CN110514594A (en)*2019-08-162019-11-29长江大学A kind of rice paddy seed moisture content classification rapid detection method based on optoacoustic spectroscopy
CN111310792A (en)*2020-01-172020-06-19华南农业大学 A method and system for identification of drug susceptibility test results based on decision tree
CN112067577A (en)*2020-08-182020-12-11武汉工程大学Method, device and equipment for identifying overproof cream pigment based on support vector machine
CN112083438A (en)*2020-09-172020-12-15中国科学院空天信息创新研究院Indoor mould detection device and method based on hyperspectral laser radar
CN112287468A (en)*2020-12-292021-01-29北京海兰信数据科技股份有限公司Ship collision risk degree judging method and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103033512A (en)*2012-07-242013-04-10南京农业大学Device and method for recognizing hatching egg incubation based on hyperspectrum
CN103235095A (en)*2013-04-182013-08-07北京工商大学Water-injected meat detection method and device
CN103914707A (en)*2014-04-152014-07-09广西交通投资集团有限公司Green channel product auxiliary discriminating method based on support vector machine
CN104359855A (en)*2014-11-032015-02-18中国农业大学Near infrared spectrum based water-injected meat detecting method
CN104809472A (en)*2015-05-042015-07-29哈尔滨理工大学SVM-based food classifying and recognizing method
CN107273920A (en)*2017-05-272017-10-20西安交通大学A kind of non-intrusion type household electrical appliance recognition methods based on random forest
CN109389176A (en)*2018-10-252019-02-26河南工业大学Grain measurement of moisture content method and system based on WIFI channel state information
CN110514594A (en)*2019-08-162019-11-29长江大学A kind of rice paddy seed moisture content classification rapid detection method based on optoacoustic spectroscopy
CN111310792A (en)*2020-01-172020-06-19华南农业大学 A method and system for identification of drug susceptibility test results based on decision tree
CN112067577A (en)*2020-08-182020-12-11武汉工程大学Method, device and equipment for identifying overproof cream pigment based on support vector machine
CN112083438A (en)*2020-09-172020-12-15中国科学院空天信息创新研究院Indoor mould detection device and method based on hyperspectral laser radar
CN112287468A (en)*2020-12-292021-01-29北京海兰信数据科技股份有限公司Ship collision risk degree judging method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
游清顺: "基于支持向量机的食品安全抽检数据分析方法", 《软件工程》*
薛笑荣: "《SAR图像处理技术研究》", 31 August 2017*

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN117371825A (en)*2023-12-052024-01-09烟台市食品药品检验检测中心(烟台市药品不良反应监测中心、烟台市粮油质量检测中心)Food prediction system based on state monitoring analysis production quality
CN117668672A (en)*2024-02-012024-03-08季华实验室Liquid food detection method, device, equipment and storage medium

Similar Documents

PublicationPublication DateTitle
CN109100323A (en)A kind of transmitted spectrum harmless quantitative evaluation method of apple water core
CN113449792A (en)Method for nondestructive rapid detection of food quality
CN116485418B (en) A traceability method and system for tea refining production
CN105445421A (en)Method for predicting sensory quality in lamina alcoholization process via appearance indexes
CN104965973B (en) A multi-factor non-destructive detection discriminant model of apple mold core and its establishment method
Khoje et al.Comparative performance evaluation of size metrics and classifiers in computer vision based automatic mango grading
Carolina et al.Classification of oranges by maturity, using image processing techniques
CN115436508A (en)Method for predicting fruit juice quality based on fruit raw material indexes
CN110736718A (en)Method for identifying producing area and grade of flue-cured tobacco shreds
Vesali et al.An approach to estimate moisture content of apple with image processing method
CN119413757A (en) A method for comprehensive evaluation of fruit maturity and shelf life prediction based on near infrared spectroscopy
CN111950795A (en) Prediction method of loose and regained water ratio based on random forest
CN119418334A (en) Nondestructive detection method and system for pineapple maturity based on deep convolutional neural network
CN110389200A (en) A detection method for distinguishing the aroma of the same tea with different brand grades
CN119125039A (en) A nondestructive detection method for vitamin C content in red beauty citrus
CN107462607B (en) A method for detecting the moderate fermentation of black tea based on electrical characteristic parameters
CN113869641A (en)Tobacco shred quality comprehensive evaluation method based on principal component analysis method
CN118641501A (en) Sensory quality detection method of pumpkin fruit based on near infrared spectroscopy and machine learning
Singathala et al.Quality analysis and classification of rice grains using image processing techniques
Kripa et al.Attribute-based maturity grading of mango fruit by machine learning
CN100429501C (en)Non-destructive detection method for quickly detecting brown core of pear
CN111693488B (en) Fruit grade classification method and system based on DS evidence theory fusion
CN115950833A (en) Method, system, equipment and medium for quality detection of processed tomatoes
Thong et al.Mango sorting mechanical system uses machine vision and artificial intelligence
CN110231300A (en)A kind of lossless method for quickly identifying true and false Aksu red fuji apple

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20210928


[8]ページ先頭

©2009-2025 Movatter.jp