CN108387550A - Portable near infrared spectrum detection method based on MEMS, device and system - Google Patents

Portable near infrared spectrum detection method based on MEMS, device and system Download PDF

Info

Publication number
CN108387550A
CN108387550A CN201810137506.5A CN201810137506A CN108387550A CN 108387550 A CN108387550 A CN 108387550A CN 201810137506 A CN201810137506 A CN 201810137506A CN 108387550 A CN108387550 A CN 108387550A
Authority
CN
China
Prior art keywords
client
near infrared
sample
mems
unit
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
CN201810137506.5A
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.)
Yunnan Small Treasure Technology Co Ltd
Original Assignee
Yunnan Small Treasure 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 Yunnan Small Treasure Technology Co Ltd filed Critical Yunnan Small Treasure Technology Co Ltd
Priority to CN201810137506.5A priority Critical patent/CN108387550A/en
Publication of CN108387550A publication Critical patent/CN108387550A/en
Pending legal-status Critical Current

Links

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
    • 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
    • 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
    • G01N2021/3196Correlating located peaks in spectrum with reference data, e.g. fingerprint data

Abstract

Present invention relates particularly to the portable near infrared spectrum detection method based on MEMS, device and system;The technical issues of solution is:It is high, at low cost to provide a kind of accuracy of detection, and the portable near infrared spectrum detection method based on MEMS, device and system;The technical solution used for:Portable near infrared spectrum detection method based on MEMS, including:Communication link is established with client;The detection that starts that client is sent is received to instruct;It identifies detected sample, obtains spectroscopic data, and spectroscopic data is sent to cloud server by client;The quantitative data of detected sample is obtained after cloud server processing spectroscopic data;The present invention is easy to operate, and detection is quick, and measurement result is accurate and reliable;Suitable for detection field.

Description

Portable near infrared spectrum detection method based on MEMS, device and system
Technical field
The invention belongs to the technical fields of near infrared spectrum detection, and in particular to the portable near infrared spectrum based on MEMS Detection method, device and system.
Background technology
Near-infrared spectral analysis technology (Near Infrared, NIR) be between visible light (Vis) and in infrared (MIR) it Between electromagnetic radiation as waves, near infrared spectrum is defined as the region of 780-2526nm by American Society Testing and Materials (ASTM), It is first non-visible light area that the mankind have found in absorption spectrum.Hydric group near infrared spectrum and organic molecule (OH, NH, CH) vibration sum of fundamental frequencies it is consistent with the uptake zone of frequencys multiplication at different levels, by scan sample near infrared spectrum, sample can be obtained The characteristic information of middle organic molecule hydric group, and using near-infrared spectrum technique analysis sample have easily and fast, it is high Effect, accurate and cost are relatively low, do not destroy sample, do not consume chemical reagent, it is free from environmental pollution the advantages that, therefore the technology is by more Carry out the favor of more people.
Near infrared technology is the quantitative determination carried out to the absorption characteristic of near infrared region spectrum according to a certain chemical composition, So being exactly to establish a kind of quantitative functional relation therebetween using the key problem in technology that NIR spectra is detected.It is basic Flow includes:Representative sample (it is formed and its variation range is close to the sample to be analyzed) is collected first, then Acquire the optical data of sample;Chemical constituents determination is carried out to sample using the chemical method of standard;By mathematical method by this A little spectroscopic datas and the data of detection are associated, and spectroscopic data are generally converted (single order or second dervative), with chemistry Measured value carries out recurrence calculating, then obtains calibration equation, founding mathematical models;When analyzing unknown sample, test sample is first treated Product are scanned, and can calculate the component content of sample to be tested using the model of foundation according to spectral value.Determine regression model Process be exactly calibration process in fact, the quality of calibration is directly related to precision of analysis, therefore, calibration software be close The core of infrared analysis technology.The calibration equation being calculated must adjust its accuracy and accuracy by practical measure. Close degree when accuracy refers to replication between measured value.The measurement of accuracy is usually missed with the prediction standard of calibration equation (SEP) it indicates.SEP indicates the close degree between measured value and " true value ".After near infrared light to sample, from sample The light that surface reflection comes out is absorbed by detector, this is near-infrared spectral reflectance analytic approach (NIR).It requires the crushing journey of sample Degree is consistent, to ensure that sample surfaces are smooth consistent.It is another kind of to be detected after sample, then by receiving for near-infrared, as Near-infrared projects spectra methods (NIT).The method advantage is seldom or without preparing sample, therefore repeatability is higher but sensitive It spends low.Present near infrared spectrometer type of merchandize is more, predominantly Fourier transform, raster scanning, acousto-optic scanning and photoelectricity Array fixed optical path type.German Bran & Luebbe (Technicon) produces all types of instruments in near-infrared field, including filter Mating plate type, raster scan type, Fourier transform, AOTF acousto-optic modulation near-infrareds etc..
Due to the limitation of technical merit, technical bottleneck bring up high cost and examination criteria it is stringent.To ensure to detect matter Amount, most common both at home and abroad and most popular near infrared detection equipment use Fourier Transform Technique, but Fourier Transform Technique by Time and Influence of Displacement are larger, and the beam splitting system of near infrared detection equipment needs larger space, therefore the body of equipment and product Product and weight can not become smaller, and the shortcomings of volume is big, weight is big, of high cost, application scenarios limit to is presented mostly.
In recent years with the continuous development of science and technology, occurs Portable near infrared detection device successively both at home and abroad.If It is standby by:Acquisition window, light source, beam splitting system, detector, operation sequence and power supply system composition.Wherein:Acquisition window uses light Fine or sapphire interface, light source using halogen tungsten lamp or LED, beam splitting system using grating or integrating sphere, detector using CCD, Using built-in Linux, WinCE, IOS, Android etc., power supply system uses USB, lithium battery or shifting for InGaAs, operating system Dynamic power supply etc..For the angle of application (client), near infrared detection equipment solves the problems, such as to be the feelings not destroying sample The qualitative and quantitative non-destructive testing of sample is carried out under condition.Such as tobacco or milk powder, the purpose of qualitative non-destructive testing are to know this The place of production of sample and brand play tracing and the true and false effect of sample.The purpose of quantitative NDT is to know this sample The various composition content (such as total alkaloid, total reducing sugar) of product, is asked by test of many times and research according to above-mentioned construction and composition Topic and disadvantage are as follows:
1, so that near infrared spectrum is attracted people's attention, while be also the reason of making it be difficult to apply being near infrared spectrum to sample Matrix is very sensitive.
2, in spectra collection representative sample message is not collected since fibre-optical probe contact surface is smaller; 3, it is directed to qualitative analysis and detection, same type device parameter and precision are relatively low both at home and abroad at present, and testing result is caused to be tied with practical Fruit error is larger;
3, Portable near infrared detection device testing result in the prior art is still unstable, causes result without availability;
4, since near infrared detection equipment must calibrate before, the principle of calibration is the different attribute according to equipment And precision, Natural light intensity is acquired, calibration module is used in combination to acquire maximum absorbance, to determine the time of integration, but it is existing just Factor of the formula near infrared detection equipment due to natural light is taken, causes the uncertain factor of calibration more, can not accurately obtain inspection Survey result.
5, the existing model accuracy of similar-type products on the market is relatively low;
The above problem occur following reason:
1, unless design and verification of the model established Jing Guo conscientious system, the model otherwise established is easily by sample base The influence of body, such as the granularity of sample, density, humidity and temperature;
2, the acquisition window of optical fiber type (diameter 5mm), since window is smaller, the spectral information caused is that part is believed (standardization is explained for breath, the not up to standardisation requirements of sample collection:Since solid sample is relatively hard, rough surface.It is acquiring When the spectrum that causes of spectral information limitation in OH, NH, CH chemical group information content it is impacted, cause the spectrum of acquisition without generation Table).
3, the beam splitting system of grating or integrating sphere, in sampling and detection process light source by sample body surface face and by OH, During NH, CH chemical group information return to beam splitting system by the form of diffusing reflection or transmission, due to grating or integrating sphere Principle limitation (if as soon as the object by size near or below wavelength stops, this object is bypassed, is continued.If logical A size is crossed to be bordering on or form circumferential wave then centered on hole less than the hole of wavelength and propagate forward.) cause in sampling process Deviation angle is about small, and wavelength is longer, and spectra overlapping, interferes larger.
4, the detector of CCD, wave-length coverage are (700nm -1100nm), and the full spectral coverage of near-infrared is (780-2526nm).By In band-limited, cause characteristic peak (wave crest or trough) trend limited, to model during establishing chemometric model Error is larger or even modeling is unsuccessful.
Invention content
The present invention overcomes the shortcomings of the prior art, technical problem to be solved to be:There is provided a kind of accuracy of detection it is high, It is at low cost, and the portable near infrared spectrum detection method based on MEMS, device and system.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:Based on the portable near infrared of MEMS Spectrum detection method, including:S101, communication link is established with client;S102, the detection that starts for receiving client transmission instruct; S103, identification detected sample, obtain spectroscopic data, and spectroscopic data is sent to cloud server by client;S104、 The quantitative data of detected sample is obtained after cloud server processing spectroscopic data.
Preferably, before what the reception client was sent starts detection instruction, including:Different types of sample is detected, Corresponding spectra database is formed according to different types of sample;Corresponding spectroscopic data is formed according to different types of sample Different chemometric models is established in library.
Preferably, in the step S103, including:Start detection instruction according to what client was sent, opens light source;According to The near infrared light signal that light source is launched carries out light beam scanning to detected sample, and nearly diffusing reflection occurs for infrared signal Enter beam splitting system afterwards, beam splitting system is to optical signal prosessing and transmits;Nearly infrared signal is converted into electric signal, generates image And obtain spectroscopic data;Spectroscopic data is sent to cloud server by client.
Preferably, in the step S104, including:The corresponding chemistry of detected sample is searched in chemometric model Meterological model;Spectroscopic data and chemometric model are synthesized, the quantitative data of detected sample is obtained;It will quantify Data are sent to client and are shown.
Correspondingly, the portable near infrared spectrum detection device based on MEMS, including:Connection setup unit:For with visitor Communication link is established at family end;Instruction reception unit:The detection that starts for receiving client transmission instructs;Recognition unit:For It identifies detected sample, obtains spectroscopic data, and spectroscopic data is sent to cloud server by client;Processing unit: The quantitative data of detected sample is obtained after handling spectroscopic data for cloud server.
Preferably, further include:Spectra database establishes unit:For detecting different types of sample, according to variety classes Sample form corresponding spectra database;Chemometric model establishes unit:Correspondence is formed according to different types of sample Spectra database, establish different chemometric models.
Preferably, the recognition unit, including:Light source opening unit:Start detection instruction according to what client was sent, opens Open light source;Light source scanning unit:The near infrared light signal launched according to light source carries out light beam scanning to detected sample, and Nearly infrared signal enters beam splitting system after diffusing reflection occurs, and beam splitting system is to optical signal prosessing and transmits;Detection unit:With It is converted into electric signal in nearly infrared signal, generate image and obtains spectroscopic data;Transmission unit:For spectroscopic data to be led to It crosses client and is sent to cloud server.
Preferably, the processing unit, including:Searching unit:For searching test sample to be checked in chemometric model The corresponding chemometric model of product;Data generating unit:For synthesizing spectroscopic data and chemometric model, obtain To the quantitative data of detected sample;Display unit:It is shown for quantitative data to be sent to client.
Correspondingly, the portable near infrared spectrum detecting system based on MEMS, including:Detection device, client and high in the clouds Server, wherein:The detection device includes the Portable near infrared based on MEMS as described in any in claim 5 to 8 Spectrum detection device;The client:It is instructed for obtaining the detection that starts that user sends out;Spectrum number is sent to cloud server According to;Treated for showing cloud server quantitative data;The cloud server:The spectrum sent out for receiving client Data are simultaneously handled.
The present invention has the advantages that compared with prior art:
Portable near infrared spectrum detection method provided by the invention based on MEMS, device and system, pass through cell phone application And cloud server model calculates, and can effectively realize the near infrared spectrum detection of sample to be tested, carry out qualitative and quantitative analysis, Easy to operate, detection is quick, and measurement result is accurate and reliable, and cheap, small volume, lighter in weight, continuous working period are long, Convenient for carrying and Site Detection uses, user experience is strong.
Description of the drawings
The present invention will be further described in detail below in conjunction with the accompanying drawings;
Fig. 1 is the flow signal for the portable near infrared spectrum detection method based on MEMS that the embodiment of the present invention one provides Figure;
Fig. 2 is the structural representation for the portable near infrared spectrum detection device based on MEMS that the embodiment of the present invention one provides Figure;
Fig. 3 is the structural representation of the portable near infrared spectrum detection device provided by Embodiment 2 of the present invention based on MEMS Figure;
Fig. 4 is the structural representation for the portable near infrared spectrum detection device based on MEMS that the embodiment of the present invention three provides Figure;
Fig. 5 is the structural representation for the portable near infrared spectrum detection device based on MEMS that the embodiment of the present invention four provides Figure;
Fig. 6 is the external structure schematic diagram of the portable near infrared spectrum detection device provided by the invention based on MEMS;
Fig. 7 is the algorithm modeling procedure figure of chemometric model of the present invention;
Wherein:101 be connection setup unit, and 102 be instruction reception unit, and 103 be recognition unit, and 1031 open for light source Unit, 1032 be light source scanning unit, and 1033 be detection unit, and 1034 be transmission unit, and 104 be processing unit, and 1041 be to look into Unit is looked for, 1042 be data generating unit, and 1043 be display unit, and 105 establish unit for spectra database, and 106 be chemistry meter Amount learns model foundation unit, and 1 is optical module group, and 2 be bluetooth module, and 3 be LED state indicator light, and 4 be solid-state button, and 5 be lithium Battery, 6 be shell, and 7 be USB charging interface, 8 circuit boards in order to control.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments;Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is the flow signal for the portable near infrared spectrum detection method based on MEMS that the embodiment of the present invention one provides Figure, as shown in Figure 1, the portable near infrared spectrum detection method based on MEMS, including:
S101, communication link is established with client;
S102, the detection that starts for receiving client transmission instruct;
S103, identification detected sample, obtain spectroscopic data, and spectroscopic data is sent to cloud service by client Device;
The quantitative data of detected sample is obtained after S104, cloud server processing spectroscopic data.
Specifically, before what the reception client was sent starts detection instruction, including:Different types of sample is detected, Corresponding spectra database is formed according to different types of sample;Corresponding spectroscopic data is formed according to different types of sample Different chemometric models is established in library.
Specifically, in the step S103, including:Start detection instruction according to what client was sent, opens light source;According to The near infrared light signal that light source is launched carries out light beam scanning to detected sample, and nearly diffusing reflection occurs for infrared signal Enter beam splitting system afterwards, beam splitting system is to optical signal prosessing and transmits;Nearly infrared signal is converted into electric signal, generates image And obtain spectroscopic data;Spectroscopic data is sent to cloud server by client.
Specifically, in the step S104, including:The corresponding chemistry of detected sample is searched in chemometric model Meterological model;Spectroscopic data and chemometric model are synthesized, the quantitative data of detected sample is obtained;It will quantify Data are sent to client and are shown.
Specifically, start detection device power switch, started by built-in control chip program and detection device is powered System starts running, and opens simultaneously the client of mobile phone, and equipment wireless connection is carried out by WIFI communication modules;Client selects The application (such as tobacco, milk powder, apple) detected is needed, " detection " button is clicked, order is sent to cloud by client by mobile phone Client database, while cloud database calls the model of respective application;Detected sample is put into the detection window of detection device, Light source starts after detection device is directed at detected sample, and the stable near infrared light signal of light source transmitting reaches sample to be tested and sends out Raw diffusing reflection, optical signal enter in beam splitting system (grating).Dispersion occurs for optical signal in beam splitting system, and polychromatic light diverges to list Coloured light, the light beam after dispersion enter detector (1mm InGaAs diode arrays), are obtained opto-electronic conversion by A/D converter Image is generated to electric signal and in a detector, the spectroscopic data of sample to be tested is obtained.Client is by mobile phone by spectroscopic data It uploads to cloud database (such as tobacco chemistry meterological model) and the quantitative data of sample to be tested is obtained (such as by model prediction Total alkaloid, total reducing sugar, moisture etc.).It is completed in 10 seconds by system optimization and Frame Design detection process.If you need to continue to detect " continuing to detect " button for clicking client, can also click " historical record " and check the result detected before.
Fig. 2 is the structural representation for the portable near infrared spectrum detection device based on MEMS that the embodiment of the present invention one provides Figure, as shown in Fig. 2, the portable near infrared spectrum detection device based on MEMS, including:
Connection setup unit 101:For establishing communication link with client;
Instruction reception unit 102:The detection that starts for receiving client transmission instructs;
Recognition unit 103:Detected sample for identification obtains spectroscopic data, and spectroscopic data is sent out by client It send to cloud server;
Processing unit 104:The quantitative data of detected sample is obtained after handling spectroscopic data for cloud server.
Fig. 3 is the structural representation of the portable near infrared spectrum detection device provided by Embodiment 2 of the present invention based on MEMS Scheme, as shown in figure 3, on the basis of embodiment one, further includes:
Spectra database establishes unit 105:For detecting different types of sample, formed pair according to different types of sample The spectra database answered;
Chemometric model establishes unit 106:Corresponding spectra database is formed according to different types of sample, is established Different chemometric models.
Specifically, detection device opens power supply, and bluetooth module starts, and client passes through bluetooth connection, inspection with detection device Device acquisition window alignment modeling sample (such as tobacco, milk powder, fruit) is surveyed, client exports acquisition instructions, detection device light Source is opened, light beam scanning modeling sample, and optical signal is transferred to beam splitting system (grating), beam splitting system by diffusing reflection form To optical signal prosessing and it is transferred to detector, detector converts optical signals into electric signal and generates a complete spectroscopic data, And be shown in client, while being uploaded to the spectroscopic data of generation by the 4G network communicating systems of mobile phone where client Cloud server.A large amount of spectroscopic datas (big data) of modeling sample are acquired by this process repeatedly, cloud server is by adopting The big data collected carries out chemometric model foundation (modeling) to the application of function.(such as:Modeling sample is apple, is established Chemometric model be apple Brix pols).
Specifically, chemometric model establishes the algorithm modeling procedure of unit 106, including:Batch input respective application The spectroscopic data of (such as apple, tobacco) and corresponding property data, establish sample sets.Pass through " the window to width for 2r+1 point Each point in mouth " (wave-length coverage) is averaged or is fitted, in the hope of the best discreet value smoothly counted.What is used herein is smooth Processing method is S-G methods.By smoothing processing can effective smooth high frequencies noise, improve signal-to-noise ratio.Enter after Pretreated spectra Operation is carried out in the algorithm of independent development, principle is equipped with q dependent variable and p independent variable.Study dependent variable and independent variable Statistical relationship observes n sample point, thus constitutes independent variable and the tables of data X and Y of dependent variable.Algorithm is respectively in X and Y Extract t and u, it is desirable that:(1) t and u should carry the variation information in each tables of data as wide as possible;(2) phase of t and u Pass degree can reach maximum.After first ingredient is extracted, algorithm implements recurrence of the X to the recurrence and Y of t to t respectively. If regression equation has reached satisfied precision, algorithm terminates;Otherwise, by the residual, information after being explained by t using X and Residual, information after Y is explained by t carries out the second constituents extraction taken turns.And so on, until a relatively satisfactory precision can be reached Until.If being finally extracted multiple ingredients altogether to X, then algorithm is expressed again by by implementing recurrence of the yk to these ingredients of X Regression equation at yk about former independent variable.Method is as follows:
The first step,
Note t1 is first ingredient of E0, and t1=E0w1, w1 are first axis of E0, it is a unit vector, i.e., | | W1 | |=1.
Note u1 is first ingredient of F0, and u1=F0c1, c1 are first axis of F0, and | | c1 | |=1.Then, it Following optimization problem is solved, i.e.,
Remember θ 1=w1'E0'F0c1, the i.e. exactly target function value of optimization problem. (7-1)
Using Lagrangian Arithmetic, can obtain
E0'F0F0'E0w1=θ 12w1 (7-8)
F0'E0E0'F0c1=θ 12c1 (7-9)
So w1 corresponds to the unit character vector of E0'F0F0'E0 matrix maximum eigenvalue, and c1 corresponds to F0' The unit character vector of E0E0'F0 matrix maximum eigenvalue θ 12.
After acquiring axis w1 and c1, you can obtain ingredient
T 1=E0w1
U 1=F0c1
Then, the regression equation of E0 and F0 to t 1 is sought respectively:
E0=t 1p1'+E1 (7-10)
F0=t 1r1'+F1 (7-12)
In formula, regression coefficient vector is:
P1=E0't 1/ | | t 1 | | 2 (7-13)
R1=F0't 1/ | | t 1 | | 2 (7-15)
And E1 and F1 are the residual matrix of two equations respectively.
Second step,
Second axis w2 and c2 and second ingredient t2, u2 then are asked with residual matrix E1 and F1 substitution E0 and F0, There is t2=E1w2;U2=F1c2;θ 2=<t2,u2>=w2'E1'F1c2;W2 corresponds to E1'F1F1'E1 matrix maximum features The unit character vector of value, and c2 corresponds to the unit character vector of F1'E1E1'F1 matrix maximum eigenvalue θ 22.
Calculate regression coefficient:
P2=E1't 2/ | | t 2 | | 2
R2=F1't 2/ | | t2 | | 2
Therefore, there is regression equation:
E1=t 2p2'+E2
F1=t 2r2'+F2
So calculate, if the order of X is A, there will be
E0=t 1p1'+ ...+tApA'(7-16)
F0=t 1r1'+ ...+tArA'+FA (7-17)
Due to t1 ... ..., tA can be expressed as E01 ... ..., the linear combination of E0p, and therefore, formula (7-17) can be with It is reduced into regression equation forms of the yk*=F0k about xj*=E0j, i.e. yk*=α k1x1*+ ...+α kp xp*+FAk, k=1, 2 ... ..., q;FAk is the kth row of residual matrix FA.
Modeling is completed, and follow-up modelling effect optimizes model.Pass through rejecting abnormalities sample and different parameter settings Model is optimized and model is tested, when test result meets application requirement, model is final application model.
Since near-infrared examines the limitation and principle factor of technology soon, the technical parameter of every equipment room is caused to have certain mistake Difference is (such as:If acquiring spectroscopic data with A equipment and establishing model, it will appear certain error when B device is using the model, make At testing result inaccuracy), to solve this problem, the error that this patent solves equipment room using independent research algorithm is asked Topic realizes that a model multiple devices use the technical barrier of error minimum;Traditional equipment wave band is 700nm -1100nm, spectrum Section is limited, the limited or even useless problem of chemical group of the spectral information reaction of sample occurs, cause model foundation error compared with The problem of greatly or can not modeling.Integrated by software and hardware, this patent wave-length coverage 900-1700nm increases wave band, improves The chemical group of spectral information reaction so that model is more accurate, reliable.
Fig. 4 is the structural representation for the portable near infrared spectrum detection device based on MEMS that the embodiment of the present invention three provides Figure, as shown in figure 4, on the basis of embodiment two, the recognition unit 103, including:
Light source opening unit 103 1:Start detection instruction according to what client was sent, opens light source;
Light source scanning unit 1032:The near infrared light signal launched according to light source carries out light beam to detected sample and sweeps It retouches, and nearly infrared signal enters beam splitting system after diffusing reflection occurs, beam splitting system is to optical signal prosessing and transmits;
Detection unit 1033:It is converted into electric signal for nearly infrared signal, generate image and obtains spectroscopic data, is examined It includes detector to survey unit 1033;
Transmission unit 1034:For spectroscopic data to be sent to cloud server by client.
Fig. 5 is the structural representation for the portable near infrared spectrum detection device based on MEMS that the embodiment of the present invention four provides Figure, as shown in figure 5, on the basis of embodiment three, the processing unit 104, including:
Searching unit 1041:For searching the corresponding Chemical Measurement mould of detected sample in chemometric model Type;
Data generating unit 1042:For synthesizing spectroscopic data and chemometric model, test sample to be checked is obtained The quantitative data of product;
Display unit 1043:It is shown for quantitative data to be sent to client.
The data generating unit 1042 specifically includes following algorithm:
Specifically, Fig. 7 is the algorithm modeling procedure figure of chemometric model of the present invention, as shown in fig. 7, detection device is opened Power supply is opened, bluetooth module starts, and for client with detection device by bluetooth connection, detection device acquisition window is directed at test sample to be checked Product (such as tobacco, milk powder, fruit), client output detection instruction, detection device light source are opened, and light beam scans test sample to be checked Product, and optical signal is transferred to beam splitting system (grating) by diffusing reflection form, beam splitting system is to optical signal prosessing and is transferred to Detector, detector converts optical signals into electric signal and generates a complete spectroscopic data, while client passes through mobile phone The spectroscopic data of generation is uploaded to cloud server by 4G network communicating systems, this spectroscopic data is input to by cloud server Corresponding chemometric model in cloud platform database, model is by predicting that prediction result is output to client by this spectrum On.(such as:Detected sample is apple, and testing result is shown in client after client clicks after detection 10s by the above process On, testing result is Brix pols 12.6%.If sample to be detected is tobacco, testing result is total alkaloid 2.13).
Fig. 6 is the external structure schematic diagram of the portable near infrared spectrum detection device provided by the invention based on MEMS, As shown in fig. 6, the portable near infrared spectrum detection device based on MEMS, including:Optical module group 1, bluetooth module 2, LED shapes State indicator light 3, solid-state button 4, lithium battery 5, shell 6, USB charging interface 7 and control circuit board 8 form.
The optical module group includes light source, beam splitting system, detector, and sampling window is rectangle, size be 15mm × 10mm;Light source is double integrated vacuum tungsten lamps, and light source life is more than 1.7 ten thousand hours, solves the problems, such as light source service life;Light splitting system System is grating, and indentation number (the quarter number of lines of grating planar) 800/mm is solved due to applying grating since spectrum corresponds to spectrum There are the influences of spectra overlapping for section, cause the problem that precision is relatively low;Detector:1mm InGaAs diode arrays, using 1mm InGaAs diode arrays will not occur due to accumulative illumination, cause detector temperature excessively high to cause precision compared with Low influence, and reduce spectral signal-noise ratio influence, so as to get original spectrum more stablize, efficiently;The bluetooth module is logical It crosses 4.0 agreements of Bluetooth to be communicated, the communication function between intelligent terminal and mobile phone A pp is provided;The LED state refers to Show that lamp includes red, yellow, blue, green four kinds of colors, corresponding state is battery charging, detection, bluetooth connection status, power supply confession respectively Electricity condition;The solid-state button is plastic button, and user can click the inspection that solid-state button was detected or clicked mobile phone A pp Button is surveyed to be detected;The lithium battery is 3.7v2000 milliamperes of lithium batteries, and standby time 8 hours solves traditional product and waits for Machine time short problem, electricity is provided for detection device;The shell is made of PVC material, plays beautiful and protective effect;It is described USB charging interface USB4.0 plays charging and PC end data transfer functions.Device wave-length coverage 900-1700nm, shape is perpendicular Vertical ellipse, size 92.7x63.2x48.2mm, weight are less than 200g, small and exquisite convenient for carrying and Site Detection uses Flexibly.
Correspondingly, the portable near infrared spectrum detecting system based on MEMS, including:Detection device, client and cloud Server is held, wherein:
The detection device includes the portable near infrared spectrum based on MEMS as described in any in claim 5 to 8 Detection device;
The client:It is instructed for obtaining the detection that starts that user sends out;Spectroscopic data is sent to cloud server;With In display cloud server treated quantitative data;Client is based on Android studio exploitations, function interface and program Including bluetooth discovery/connection, selection application function (such as detection of apple sugariness, the detection of tobacco total alkali, milk powder brand and place of production detection Deng), in detection, testing result show, history detection record, continues detection, return page up etc., the operating system of client is adopted With AndroidAPP programs, compared with PC, LINUX program of traditional product, customer experience sense is more preferable, and UI is exquisite, easy to operate, Flexibly, it is easy left-hand seat.Solves the usage scenario problem of outdoor study.
The cloud server:For receiving the spectroscopic data and processing that client is sent out, this cloud server uses c++ The independent research and programming for carrying out algorithm and model, meet enterprise and professional standard, optional preprocessing procedures, such as smooth, Differential and baseline correction etc.;A variety of deterministic algorithms such as principal component analysis (PCA), offset minimum binary differentiate (PLS-DA) and support to Amount machine (SVM);A variety of Quantitative algorithms such as Partial Least Squares (PLS), principal component regression (PCR) and Support vector regression (SVM-R)。
The front-end functionality of cloud server:Front-end user interface:Receive the single sample spectrum number that detection device end is sent According to the detection function interface selected according to user is (such as qualitative:Milk powder is qualitative equal quantitative:Apple sugariness etc.) type set selection phase The interior established model answered is calculated (such as qualitative:What is;It is quantitative:Content;), and export result (qualitative results be what is, it is fixed Amount result is content), carry out result displaying for user front end.
The background function of cloud server:1, qualitative model:Software input interface can receive multiple sample spectrum data (NIRscan nano spectrum) and select modeling type (qualitative), software maintenance staff that can carry out modeling work, can protect after the completion Interior established model is saved as to use for function.Workflow is:Create model name --- qualitative or quantitative (selecting property herein) --- Class sets (class A, class B, class C ..., etc.) --- input multiple sample spectrum data (NIRscan Nano spectrum) and according to data setting type class A, class B, class C ..., etc.) --- selection algorithm --- life At model, --- model audits (if passing through) --- generating or upload model ---, and client shows that this application is available;2, quantitative mould Type:Software input interface can receive multiple sample spectrum data (NIRscan nano spectrum) and corresponding number property data letter Breath, software maintenance staff can carry out modeling work, can save used for function for interior established model after the completion.Workflow is:Wound Established model title --- qualitative or is quantitative (selected amount herein) --- inputs multiple sample spectrum data (NIRscan nano light Spectrum) and --- selection algorithm --- generation model --- model audits (if passing through) --- generation of corresponding number property data information Or uploading model --- client shows that this application is available.3, technology segment:Project construction environment:Window Server 2012 +MySQL 5.7+JDK 1.8+Tomcat 8.5;For the coding of front-end user interface part (5.1) main body program kernel code Language use C++ is realized, is quickly calculated with realizing, is met the experience of terminal client efficient operation;Front-end user interface is finally delivered Form needs are encapsulated as can be by the network interface of http https protocol access.Input/output argument is all made of JSON numbers Carry out data transmission according to format.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (9)

1. the portable near infrared spectrum detection method based on MEMS, it is characterised in that:Including:
S101, communication link is established with client;
S102, the detection that starts for receiving client transmission instruct;
S103, identification detected sample, obtain spectroscopic data, and spectroscopic data is sent to cloud server by client;
The quantitative data of detected sample is obtained after S104, cloud server processing spectroscopic data.
2. the portable near infrared spectrum detection method according to claim 1 based on MEMS, it is characterised in that:It is described to connect Before what receipts client was sent starts detection instruction, including:
Different types of sample is detected, corresponding spectra database is formed according to different types of sample;
Corresponding spectra database is formed according to different types of sample, establishes different chemometric models.
3. the portable near infrared spectrum detection method according to claim 1 based on MEMS, it is characterised in that:The step In rapid S103, including:
Start detection instruction according to what client was sent, opens light source;
The near infrared light signal launched according to light source carries out light beam scanning to detected sample, and nearly infrared signal is sent out Enter beam splitting system after raw diffusing reflection, beam splitting system is to optical signal prosessing and transmits;
Nearly infrared signal is converted into electric signal, generates image and obtains spectroscopic data;
Spectroscopic data is sent to cloud server by client.
4. the portable near infrared spectrum detection method according to claim 1 based on MEMS, it is characterised in that:The step In rapid S104, including:
The corresponding chemometric model of detected sample is searched in chemometric model;
Spectroscopic data and chemometric model are synthesized, the quantitative data of detected sample is obtained;
Quantitative data is sent to client to show.
5. the portable near infrared spectrum detection device based on MEMS, it is characterised in that:Including:
Connection setup unit (101):For establishing communication link with client;
Instruction reception unit (102):The detection that starts for receiving client transmission instructs;
Recognition unit (103):Detected sample for identification obtains spectroscopic data, and spectroscopic data is sent by client To cloud server;
Processing unit (104):The quantitative data of detected sample is obtained after handling spectroscopic data for cloud server.
6. the portable near infrared spectrum detection device according to claim 5 based on MEMS, it is characterised in that:Also wrap It includes:
Spectra database establishes unit (105):For detecting different types of sample, correspondence is formed according to different types of sample Spectra database;
Chemometric model establishes unit (106):Corresponding spectra database is formed according to different types of sample, is established not Same chemometric model.
7. the portable near infrared spectrum detection device according to claim 5 based on MEMS, it is characterised in that:The knowledge Other unit (103), including:
Light source opening unit (1031):Start detection instruction according to what client was sent, opens light source;
Light source scanning unit (1032):The near infrared light signal launched according to light source carries out light beam scanning to detected sample, And nearly infrared signal enters beam splitting system after diffusing reflection occurs, beam splitting system is to optical signal prosessing and transmits;
Detection unit (1033):It is converted into electric signal for nearly infrared signal, generate image and obtains spectroscopic data;
Transmission unit (1034):For spectroscopic data to be sent to cloud server by client.
8. the portable near infrared spectrum detection device according to claim 5 based on MEMS, it is characterised in that:The place Unit (104) is managed, including:
Searching unit (1041):For searching the corresponding chemometric model of detected sample in chemometric model;
Data generating unit (1042):For synthesizing spectroscopic data and chemometric model, detected sample is obtained Quantitative data;
Display unit (1043):It is shown for quantitative data to be sent to client.
9. the portable near infrared spectrum detecting system based on MEMS, it is characterised in that:Including:Detection device, client and cloud Server is held, wherein:
The detection device includes the portable near infrared spectrum detection based on MEMS as described in any in claim 5 to 8 Device;
The client:It is instructed for obtaining the detection that starts that user sends out;Spectroscopic data is sent to cloud server;For showing Show cloud server treated quantitative data;
The cloud server:For receiving the spectroscopic data and processing that client is sent out.
CN201810137506.5A 2018-02-10 2018-02-10 Portable near infrared spectrum detection method based on MEMS, device and system Pending CN108387550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810137506.5A CN108387550A (en) 2018-02-10 2018-02-10 Portable near infrared spectrum detection method based on MEMS, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810137506.5A CN108387550A (en) 2018-02-10 2018-02-10 Portable near infrared spectrum detection method based on MEMS, device and system

Publications (1)

Publication Number Publication Date
CN108387550A true CN108387550A (en) 2018-08-10

Family

ID=63075745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810137506.5A Pending CN108387550A (en) 2018-02-10 2018-02-10 Portable near infrared spectrum detection method based on MEMS, device and system

Country Status (1)

Country Link
CN (1) CN108387550A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109724940A (en) * 2019-02-26 2019-05-07 宜宾五粮液股份有限公司 Utilize the method and system of near infrared spectrometer detection vinasse component content
CN110514620A (en) * 2019-08-30 2019-11-29 四川长虹电器股份有限公司 Spectral method of detection and system based on portable near infrared spectrometer
CN113607674A (en) * 2021-06-30 2021-11-05 广州德芯半导体科技有限公司 Multi-gas detection method and system based on MEMS gas sensor array
CN113984657A (en) * 2021-09-26 2022-01-28 淮阴工学院 Portable apple brix meter based on spectrum technology and apple brix measuring method
CN114076745A (en) * 2020-08-20 2022-02-22 成都市食品药品检验研究院 Saffron identification method based on cloud-interconnection portable near-infrared technology and adulterated product quantitative prediction method thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6058352A (en) * 1997-07-25 2000-05-02 Physical Optics Corporation Accurate tissue injury assessment using hybrid neural network analysis
CN105136742A (en) * 2015-08-21 2015-12-09 董海萍 Cloud spectrum database-based miniature spectrometer and spectrum detection method
CN105466881A (en) * 2016-01-14 2016-04-06 昆明睿意铂科技股份有限公司 Portable near-infrared spectrum detection system
CN105527246A (en) * 2016-01-14 2016-04-27 昆明睿意铂科技股份有限公司 Portable near infrared spectrum detection system
CN105675537A (en) * 2015-12-31 2016-06-15 深圳市芭田生态工程股份有限公司 Spectrum detection system and wireless data connection adopted spectrum detector thereof
CN105891146A (en) * 2016-03-29 2016-08-24 电子科技大学 Intelligent terminal for spectrum detection and detection method thereof
CN106092913A (en) * 2015-05-29 2016-11-09 深圳市琨伦创业投资有限公司 A kind of corps nutrient safety detection method and system thereof
CN106092959A (en) * 2016-06-30 2016-11-09 上海仪器仪表研究所 A kind of near-infrared food quality based on cloud platform monitoring system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6058352A (en) * 1997-07-25 2000-05-02 Physical Optics Corporation Accurate tissue injury assessment using hybrid neural network analysis
CN106092913A (en) * 2015-05-29 2016-11-09 深圳市琨伦创业投资有限公司 A kind of corps nutrient safety detection method and system thereof
CN105136742A (en) * 2015-08-21 2015-12-09 董海萍 Cloud spectrum database-based miniature spectrometer and spectrum detection method
CN105675537A (en) * 2015-12-31 2016-06-15 深圳市芭田生态工程股份有限公司 Spectrum detection system and wireless data connection adopted spectrum detector thereof
CN105466881A (en) * 2016-01-14 2016-04-06 昆明睿意铂科技股份有限公司 Portable near-infrared spectrum detection system
CN105527246A (en) * 2016-01-14 2016-04-27 昆明睿意铂科技股份有限公司 Portable near infrared spectrum detection system
CN105891146A (en) * 2016-03-29 2016-08-24 电子科技大学 Intelligent terminal for spectrum detection and detection method thereof
CN106092959A (en) * 2016-06-30 2016-11-09 上海仪器仪表研究所 A kind of near-infrared food quality based on cloud platform monitoring system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109724940A (en) * 2019-02-26 2019-05-07 宜宾五粮液股份有限公司 Utilize the method and system of near infrared spectrometer detection vinasse component content
CN110514620A (en) * 2019-08-30 2019-11-29 四川长虹电器股份有限公司 Spectral method of detection and system based on portable near infrared spectrometer
CN114076745A (en) * 2020-08-20 2022-02-22 成都市食品药品检验研究院 Saffron identification method based on cloud-interconnection portable near-infrared technology and adulterated product quantitative prediction method thereof
CN113607674A (en) * 2021-06-30 2021-11-05 广州德芯半导体科技有限公司 Multi-gas detection method and system based on MEMS gas sensor array
CN113984657A (en) * 2021-09-26 2022-01-28 淮阴工学院 Portable apple brix meter based on spectrum technology and apple brix measuring method

Similar Documents

Publication Publication Date Title
CN108387550A (en) Portable near infrared spectrum detection method based on MEMS, device and system
CN102435580B (en) Quick near-infrared measuring device and method for milk ingredients
CN106092959B (en) A kind of near-infrared food quality monitoring system based on cloud platform
CN105466881A (en) Portable near-infrared spectrum detection system
CN105651728B (en) A kind of portable near infrared spectrum detection system
CN101907564B (en) Rapeseed quality non-destructive testing method and device based on near infrared spectrum technology
CN105527246A (en) Portable near infrared spectrum detection system
CN106323909A (en) Handheld near infrared spectrum detection system and detection method for quality of fruits and vegetables
CN107860473A (en) A kind of intelligent handhold spectrometer based on cloud data
CN104897607A (en) Food modeling and rapid detecting integration method and system adopting portable NIRS (near infrared spectroscopy)
US9797874B2 (en) Optical testing system and method
CN103281459A (en) Mobile phone capable of measuring sweetness and PH value of fruit
CN109668843A (en) A method of the Portable multiple spectrum imaging technique based on mobile phone detects bacon quality
CN106770067A (en) Portable kiwi fruit sugar the cannot-harm-detection device
CN107064044B (en) Method and device for rapidly detecting polyphenol content in tea extract
CN207675640U (en) A kind of agricultural product nutritional quality detection spectrometer
CN111781155A (en) Portable milk component analysis method and device
CN205506679U (en) Portable near infrared spectroscopy detecting system
CN111781154A (en) Low-cost milk component analysis method and device based on multispectral sensor
CN202372440U (en) Near-infrared milk component rapid measurement device
CN108037081A (en) A kind of vinifera maturity monitoring method and system
CN208383716U (en) Portable multifunctional fluorescence fast quantitative analysis instrument
CN107132197B (en) Method and device for detecting total acid content of vinegar
CN108195469A (en) A kind of portable color measurement instrument
CN201724900U (en) Rapeseed quality nondestructive testing device based on near infrared spectrum technique

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: 20180810

RJ01 Rejection of invention patent application after publication