CN111398212A - Method for establishing pepper detection model based on portable near-infrared spectrometer - Google Patents

Method for establishing pepper detection model based on portable near-infrared spectrometer Download PDF

Info

Publication number
CN111398212A
CN111398212A CN202010270014.0A CN202010270014A CN111398212A CN 111398212 A CN111398212 A CN 111398212A CN 202010270014 A CN202010270014 A CN 202010270014A CN 111398212 A CN111398212 A CN 111398212A
Authority
CN
China
Prior art keywords
pepper
set sample
training set
volatile oil
ephedrine
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
CN202010270014.0A
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.)
Sichuan Hongwei Technology Co Ltd
Original Assignee
Sichuan Hongwei Technology 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 Sichuan Hongwei Technology Co Ltd filed Critical Sichuan Hongwei Technology Co Ltd
Priority to CN202010270014.0A priority Critical patent/CN111398212A/en
Publication of CN111398212A publication Critical patent/CN111398212A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
    • G01N21/35Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light
    • G01N21/359Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light using near infrared light

Landscapes

  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)

Abstract

The invention discloses a method for establishing a pepper detection model based on a portable near-infrared spectrometer, which comprises the following steps: preparing a pepper sample as a training set sample and a testing set sample respectively; detecting the measured values of the ephedrine and the volatile oil in the training set sample; collecting spectral data of a training set sample by adopting a portable near-infrared spectrometer; combining the spectral data of the training set sample with the measured values of the ephedrine and the volatile oil obtained by detection of the spectral data by a partial least squares regression algorithm, and respectively establishing quantitative prediction models of the ephedrine and the volatile oil; and (3) performing combined prediction on the established quantitative prediction model and the test set sample, and optimizing the quantitative prediction model to obtain the pepper detection model. The portable near-infrared spectrometer provided by the invention is low in cost, simple to operate and convenient to carry, and meets the detection requirement of the pepper. The measurement value is obtained by adopting a quantitative detection method only when the model is established, and the rapid measurement can be realized when the pepper component is detected by adopting the model in the later period, so that the product treatment and the complex operation are not needed.

Description

Method for establishing pepper detection model based on portable near-infrared spectrometer
Technical Field
The invention relates to the technical field of near infrared spectrum detection, in particular to a pepper detection model establishing method based on a portable near infrared spectrometer.
Background
The pepper is one of important economic crops in China, and researches show that the bioactive components in the pepper have the functions of oxidation resistance, tumor resistance, inflammation diminishing, bacteriostasis and corrosion prevention. However, due to differences in geographical environment, climate difference, soil, variety and the like, the content and the content of bioactive components in the pepper are different. At present, for the content identification of the pepper, the main detection technologies comprise a gas-mass spectrometry combined method, a high performance liquid chromatography, a mid-infrared spectroscopy and the like, but the methods are mainly applied in laboratories, and the detection cost of the gas-mass spectrometry combined method and the high performance liquid chromatography is expensive, the sample treatment is complicated, the requirement on experimental operation is high, rapid determination cannot be carried out, and great difficulty is brought to pepper detection and classification.
Disclosure of Invention
The invention aims to provide a pepper detection model establishing method based on a portable near-infrared spectrometer, which is used for solving the problems that the method for detecting bioactive components and content in pepper in the prior art is high in cost, complicated in sample treatment, high in operation requirement and incapable of rapid determination.
The invention solves the problems through the following technical scheme:
a pepper detection model establishing method based on a portable near-infrared spectrometer comprises the following steps:
step S100: preparing a pepper sample as a training set sample and a testing set sample respectively;
step S200: detecting to obtain the measured values of the ephedrine and the volatile oil in the training set sample;
step S300: collecting spectral data of a training set sample by adopting a portable near-infrared spectrometer;
step S400: combining the spectral data of the training set sample with the measured values of the ephedrine and the volatile oil obtained by detection of the spectral data by a partial least squares regression algorithm, and respectively establishing quantitative prediction models of the ephedrine and the volatile oil;
step S500: and (3) performing combined prediction on the established quantitative prediction model and the test set sample, and optimizing the quantitative prediction model to obtain the pepper detection model.
Further, in the step S200, the content of ephedrine and volatile oil in the training set sample is quantitatively detected by using high performance liquid chromatography (HP L C).
Further, the step S300 specifically includes:
put portable near-infrared spectrum appearance level and smooth, open and gather the button, the inside tungsten halogen lamp of spectrum appearance sends light outward, light produces the light receiving arrangement that the diffuse reflection effect returned the spectrum appearance again through training set sample surface, receiving arrangement adopts two aspheric lens to change the light path direction, make the reverberation be close to 0 vertical incidence in the Fabry-Perot cavity, the Fabry-Perot cavity carries out the filtering action to the reflection light, and finally, the reflection light after the spectrum appearance absorption filtering obtains corresponding spectral information, portable near-infrared spectrum appearance reads this spectral information, integration and data processing, draw the spectral information picture.
Further, the concrete step S400 is that the hemp content value in the training set sample is selected as a calibration value, a sesame oil quantitative prediction model of the near infrared spectrum data and the hemp calibration value is established by adopting a partial least squares regression method (P L S), and similarly, the volatile oil content value in the training set sample is selected as a calibration value, and a volatile oil quantitative prediction model of the near infrared spectrum data and the volatile oil calibration value is established by adopting a partial least squares regression method.
Compared with the prior art, the invention has the following advantages and beneficial effects:
compared with other chemical analysis technologies, the portable near infrared spectrum technology has the characteristics of rapidness, accuracy, no need of sample pretreatment, no damage to samples, no pollution and the like, and meanwhile, the portable near infrared spectrometer is low in cost, simple to operate and convenient to carry, and can meet the detection requirements of various types of Chinese prickly ash; and the measurement value is obtained by adopting a quantitative detection method only when the model is established, and the rapid measurement can be realized when the pepper component is detected by adopting the model in the later period, so that the operation is simple, and the product treatment is not needed.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples, but the embodiments of the present invention are not limited thereto.
Example (b):
with reference to the attached drawing 1, a method for establishing a pepper detection model based on a portable near-infrared spectrometer comprises the following steps:
step S100: preparing a plurality of pepper samples which are respectively marked as a pepper sample A (training set sample) and a pepper verification sample set B (testing set sample). The method comprises the steps of preparing a plurality of pepper samples by using peppers of the same variety and quality, and respectively establishing a near-infrared prediction model and optimizing the precision of the near-infrared prediction model, wherein a pepper sample used for establishing the near-infrared prediction model is marked as a pepper sample A, and a pepper sample set used for optimizing the precision of the near-infrared prediction model is marked as a pepper verification sample set B.
In this example, the procedure for preparing zanthoxylum bungeanum sample is as follows: slowly pouring the pepper samples into the disc-shaped tooling vessel, slowly shaking the tooling vessel to uniformly distribute the pepper samples in the tooling vessel, and stopping pouring the pepper samples when the thickness of the poured pepper samples reaches 3 cm and the surface of the pepper samples is flat and uniform. The method has the advantages that the pepper sample is kept to have a certain thickness, the test surface is as flat as possible, and errors caused by the environment or the sample to test data are reduced;
the method comprises the step S200 of obtaining the specific content of the hemp fruit and the volatile oil of a pricklyash peel sample A by using a chemical quantitative detection technology, wherein the content of the hemp fruit and the volatile oil in the pricklyash peel is two factors which influence the quality of the pricklyash peel most directly, the current chemical method for measuring the content of the hemp fruit and the volatile oil is high performance liquid chromatography (HP L C), although the method is mainly applied in laboratories at present, the detection cost of the high performance liquid chromatography is expensive, the sample is complex to process, the requirement on experimental operation is high, the detection precision is high, and the precision of a subsequent near infrared prediction model can be effectively improved.
Step S300: the method comprises the following steps of adopting a portable near-infrared spectrometer to collect spectrum data of a training set sample, and specifically comprising the following steps: the portable near-infrared spectrometer is flatly placed on the surface of a pepper sample, a collection button is turned on, a halogen tungsten lamp in the instrument emits light outwards, the light returns to a light receiving device of the instrument again under the action of diffuse reflection generated on the surface of the pepper sample, the receiving device adopts two aspheric lenses to change the direction of a light path, reflected light is close to 0 degree and vertically enters a Fabry-Perot cavity, the Fabry-Perot cavity performs filtering action on the reflected light, finally, the instrument absorbs the reflected light after filtering and reflects corresponding spectral information, the portable near-infrared spectrometer reads the spectral information, integrates and processes data, and a spectral information graph is drawn.
In this embodiment, after the near-infrared sensor in the portable near-infrared spectrometer collects spectral information, an initial spectral signal is transmitted to the operational amplifier, the initial spectral signal is amplified and transmitted to the ADC through the operational amplifier, the spectral signal is transmitted to the ARM chip for processing after analog-to-digital conversion of the ADC, the spectral data is temporarily stored in the built-in F L ASH of the ARM, the ARM chip transmits the spectral data to the cloud through a wired or wireless network, a dedicated database is established, cloud storage is realized, and the spectral data can be conveniently called in the subsequent modeling process.
Step S400: combining the spectral data of the training set sample with the measured values of the ephedrine and the volatile oil obtained by detection of the spectral data by a partial least squares regression algorithm, and respectively establishing quantitative prediction models of the ephedrine and the volatile oil;
and S500, establishing the quantitative prediction of the zanthoxylum bungeanum hemsl by the specific process of selecting the zanthoxylum bungeanum hemsl sample hemsl content value obtained by the chemical quantitative detection technology as a calibration value, and establishing a mathematical model relation between the near infrared spectrum data and the calibration value by adopting a partial least squares regression method (P L S), wherein the mathematical model is a near infrared prediction model of the zanthoxylum bungeanum hemsl volatile oil.
And then, the established prediction model is combined with the pepper verification sample set B for prediction, and the near-infrared prediction model is optimized. And the established prediction model is used for content prediction of the pepper verification sample set B, the model is evaluated through the relative deviation of the verification sample set, the model is optimized according to the deviation value to obtain a near infrared prediction model with high accuracy, and finally the model is further evaluated and optimized in detail through a relative analysis error value (RPD). And RPD is the ratio of standard deviation to standard error of the verification set, when RPD is more than 3, the quantitative effect is good, and the established quantitative model can be used for actual detection.
Although the present invention has been described herein with reference to the illustrated embodiments thereof, which are intended to be preferred embodiments of the present invention, it is to be understood that the invention is not limited thereto, and that numerous other modifications and embodiments can be devised by those skilled in the art that will fall within the spirit and scope of the principles of this disclosure.

Claims (4)

1. A pepper detection model establishing method based on a portable near-infrared spectrometer is characterized by comprising the following steps:
step S100: preparing a pepper sample as a training set sample and a testing set sample respectively;
step S200: detecting to obtain the measured values of the ephedrine and the volatile oil in the training set sample;
step S300: collecting spectral data of a training set sample by adopting a portable near-infrared spectrometer;
step S400: combining the spectral data of the training set sample with the measured values of the ephedrine and the volatile oil obtained by detection of the spectral data by a partial least squares regression algorithm, and respectively establishing quantitative prediction models of the ephedrine and the volatile oil;
step S500: and (3) performing combined prediction on the established quantitative prediction model and the test set sample, and optimizing the quantitative prediction model to obtain the pepper detection model.
2. The method for establishing the pepper detection model based on the portable near-infrared spectrometer as claimed in claim 1, wherein the content of ephedrine and volatile oil in the training set sample is quantitatively detected by using high performance liquid chromatography (HP L C) in the step S200.
3. The method for establishing the pepper detection model based on the portable near-infrared spectrometer as claimed in claim 1, wherein the step S300 comprises the following steps:
put portable near-infrared spectrum appearance level and smooth, open and gather the button, the inside tungsten halogen lamp of spectrum appearance sends light outward, light produces the light receiving arrangement that the diffuse reflection effect returned the spectrum appearance again through training set sample surface, receiving arrangement adopts two aspheric lens to change the light path direction, make the reverberation be close to 0 vertical incidence in the Fabry-Perot cavity, the Fabry-Perot cavity carries out the filtering action to the reflection light, and finally, the reflection light after the spectrum appearance absorption filtering obtains corresponding spectral information, portable near-infrared spectrum appearance reads this spectral information, integration and data processing, draw the spectral information picture.
4. The method for establishing the pepper detection model based on the portable near-infrared spectrometer as claimed in claim 1, wherein the specific step of the step S400 is to select the ephedrine content value in the training set sample as a calibration value, establish the sesame oil quantitative prediction model of the near-infrared spectrum data and the ephedrine calibration value by adopting a partial least squares regression method (P L S), and similarly, select the volatile oil content value in the training set sample as a calibration value, and establish the volatile oil quantitative prediction model of the near-infrared spectrum data and the volatile oil calibration value by adopting a partial least squares regression method.
CN202010270014.0A 2020-04-08 2020-04-08 Method for establishing pepper detection model based on portable near-infrared spectrometer Pending CN111398212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010270014.0A CN111398212A (en) 2020-04-08 2020-04-08 Method for establishing pepper detection model based on portable near-infrared spectrometer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010270014.0A CN111398212A (en) 2020-04-08 2020-04-08 Method for establishing pepper detection model based on portable near-infrared spectrometer

Publications (1)

Publication Number Publication Date
CN111398212A true CN111398212A (en) 2020-07-10

Family

ID=71437510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010270014.0A Pending CN111398212A (en) 2020-04-08 2020-04-08 Method for establishing pepper detection model based on portable near-infrared spectrometer

Country Status (1)

Country Link
CN (1) CN111398212A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114295580A (en) * 2021-12-29 2022-04-08 四川启睿克科技有限公司 Method for rapidly judging pepper quality based on near infrared spectrum

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6809819B1 (en) * 1999-09-27 2004-10-26 Monsanto Technology Llc Methods for determining oil in seeds
CN102313708A (en) * 2010-06-29 2012-01-11 北京市农林科学院 Method for quantitatively detecting capsaicine
CN102313710A (en) * 2010-06-29 2012-01-11 北京市农林科学院 Method for quantitatively detecting dihydrocapsaicin
JP2016045091A (en) * 2014-08-22 2016-04-04 三井金属計測機工株式会社 Nondestructive measurement device and nondestructive measurement method of anthocyanin content in fruit and vegetable
CN106770008A (en) * 2016-12-13 2017-05-31 沈阳化工大学 A kind of method of near infrared spectrum quick detection Chinese anise quality
CN109668859A (en) * 2019-03-03 2019-04-23 西南大学 The near infrared spectrum recognition methods in the Chinese prickly ash place of production and kind based on SVM algorithm
CN110514620A (en) * 2019-08-30 2019-11-29 四川长虹电器股份有限公司 Spectral method of detection and system based on portable near infrared spectrometer

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6809819B1 (en) * 1999-09-27 2004-10-26 Monsanto Technology Llc Methods for determining oil in seeds
CN102313708A (en) * 2010-06-29 2012-01-11 北京市农林科学院 Method for quantitatively detecting capsaicine
CN102313710A (en) * 2010-06-29 2012-01-11 北京市农林科学院 Method for quantitatively detecting dihydrocapsaicin
JP2016045091A (en) * 2014-08-22 2016-04-04 三井金属計測機工株式会社 Nondestructive measurement device and nondestructive measurement method of anthocyanin content in fruit and vegetable
CN106770008A (en) * 2016-12-13 2017-05-31 沈阳化工大学 A kind of method of near infrared spectrum quick detection Chinese anise quality
CN109668859A (en) * 2019-03-03 2019-04-23 西南大学 The near infrared spectrum recognition methods in the Chinese prickly ash place of production and kind based on SVM algorithm
CN110514620A (en) * 2019-08-30 2019-11-29 四川长虹电器股份有限公司 Spectral method of detection and system based on portable near infrared spectrometer

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李洋: "花椒生物碱和挥发油含量的近红外光谱无损检", 《食品工业》 *
王悦秋: "花椒的成分研究及检测技术进展", 《山东化工》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114295580A (en) * 2021-12-29 2022-04-08 四川启睿克科技有限公司 Method for rapidly judging pepper quality based on near infrared spectrum
CN114295580B (en) * 2021-12-29 2023-07-11 四川启睿克科技有限公司 Method for rapidly judging quality of peppers based on near infrared spectrum

Similar Documents

Publication Publication Date Title
CN101907564B (en) Rapeseed quality non-destructive testing method and device based on near infrared spectrum technology
CN101308086B (en) Fruit internal quality on-line checking apparatus based on near infrared spectra technology
CN101393114B (en) Rapid measuring method for physical property of flavouring essences for tobacco
CN103776777B (en) Method for identifying ginsengs with different growth patterns by using near infrared spectrum technology and determining content of components in ginsengs
CN102590129B (en) Method for detecting content of amino acid in peanuts by near infrared method
CN105486655B (en) The soil organism rapid detection method of model is intelligently identified based on infrared spectroscopy
CN110320165A (en) The Vis/NIR lossless detection method of banana soluble solid content
CN102636450A (en) Method for detecting wolfberry polyose content in Chinese wolfberry in a nondestructive way based on near infrared spectrum technology
CN106950192A (en) A kind of method of Contents of Main Components quick detection in vegetable protein beverage based on near-infrared spectral analysis technology
CN109211829A (en) A method of moisture content in the near infrared spectroscopy measurement rice based on SiPLS
WO2020186844A1 (en) Self-adaptive surface absorption spectrum analysis method and system, storage medium, and device
CN110514620A (en) Spectral method of detection and system based on portable near infrared spectrometer
CN111398212A (en) Method for establishing pepper detection model based on portable near-infrared spectrometer
CN110567894A (en) method and device for rapidly detecting pH value of aqueous solution
CN104849234A (en) Assay method for analyzing contents of principal components of imidacloprid based on near-infrared spectrum
CN110210005A (en) A kind of spectrum wave number selection method of no reference value
CN110376154A (en) Fruit online test method and system based on spectrum correction
CN107132197B (en) Method and device for detecting total acid content of vinegar
CN109030410B (en) Construction method of royal jelly near-infrared quantitative correction model and royal jelly detection method
CN201724900U (en) Rapeseed quality nondestructive testing device based on near infrared spectrum technique
CN110231306A (en) A kind of method of lossless, the quick odd sub- seed protein content of measurement
CN111141809A (en) Soil nutrient ion content detection method based on non-contact type conductivity signal
JPH1164217A (en) Component quantity detecting device for spectral analyzer
CN107024449B (en) The other near-infrared spectral analytical method of mammalian is differentiated based on urine
CN109459408A (en) A kind of Near-Infrared Quantitative Analysis method based on sparse regression LAR algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200710

RJ01 Rejection of invention patent application after publication