A kind of beef quality rapid detection system and method
Technical field
The present invention relates to a kind of food inspection field, especially relate to a kind of simple in structure, operate fast and convenient, detect beef quality degree rapid detection system accurately, and the method for quick of this system.
Background technology
Consumption of meat is an important component part of food consumption always, and beef is that consumers in general are than preferable food.In recent years, the transformation of people's philosophy of life, the level of consumption constantly strengthens, more and more higher to the quality requirements of beef food.As beef can be divided into common beef and top grade beef, the delicate succulence of the general muscle fibre of top grade beef, contains a certain amount of fat between muscle, lipochondrion is tiny, in musculature, is uniformly distributed, and becomes marble grain, be commonly called as snowflake meat, this top grade beef that belongs to, other belong to common beef.And common people can not well distinguish top grade beef and common beef, this makes to be easily taken in the time buying, and causes unnecessary loss.At present the detection technique of beef quality is generally passed through to organoleptic detection, physics and chemistry detection etc.Organoleptic detection is often evaluated the impact of the factors such as expert's experience, psychology and physiology, different teacher of the evaluating is due to impacts such as its hobby, mood, sex and sense organ sensitivity, may be difficult to obtain consistent evaluation result, therefore the accuracy of evaluation result is often difficult to ensure.Physics and chemistry detects needs a series of equipment and device to complete, process complexity, and detection time is long, and equipment is also complicated.Therefore wish a kind of Apparatus and method for that can the cold fresh beef quality of quick, easy, accurate Non-Destructive Testing, in time beef is detected, to identify the quality of beef.
Summary of the invention
The present invention solves in prior art beef quality to detect and exist subjective inaccurately, and has the problem of checkout equipment testing process complexity, provide a kind of simple in structure, operate fast and convenient, detect beef quality rapid detection system accurately.
The present invention also provide a kind of operation fast and convenient, detect beef quality method for quick accurately.
Above-mentioned technical matters of the present invention is mainly solved by following technical proposals: a kind of beef quality rapid detection system, comprise pedestal, on pedestal, be provided with the bracket for placing sample, above bracket, be provided with radiation source, described radiation source is rotatably connected on the adjusting mechanism of adjusting radiation source position, adjusting mechanism is arranged on pedestal, below bracket, be provided with receiving mechanism, control module is set in pedestal, and control module is connected with radiation source, adjusting pole, receiving mechanism;
Radiation source: transmitting detects light beam to sample, and can receive the reflected light information on sample, feeds back to control module;
Receiving mechanism: remain with radiation source and align, receive the transmitted light of radiation source, and feed back to control module;
Control module: control radiation source, adjusting mechanism, receiving mechanism work, according to the spectral information of radiation source or receiving mechanism feedback, calculate sample signal to noise ratio (S/N ratio) by accidental resonance analysis meter, and with drawing sample freshness information after tables of data.
System of the present invention detects beef quality by spectral analysis, can detect quicker, easy, accurately beef quality.Radiation source is used for launching detecting light beam, also can receive irreflexive light on sample simultaneously.This radiation source is rotatably connected on adjusting mechanism, and radiation source can be rotated around axle, and adjusting mechanism can be rotated and highly regulate simultaneously, makes like this radiation source irradiation position can all cover sample.Receiving mechanism is for the transmitted light of receiving beam on sample, and in the time that radiation source irradiation position changes, receiving mechanism also will be adjusted position and remain with radiation source and align.Radiation source, adjusting mechanism, receiving mechanism all feed back to control module by information, and control module is according to their work of their information control.Control module also will carry out analytical calculation to the spectral information detecting simultaneously, draws snr value, also stores pre-set beef quality standard value tables of data in control module, by with the snr value calculating after draw sample quality.Radiation source adopts Halogen lamp LED or generating laser.This device can can't harm beef is detected, and the scene that is applicable to is detected beef in enormous quantities.
As a kind of preferred version, between described radiation source and control module, be connected with control circuit for light source, control circuit for light source comprises wave generating unit, NI data collecting card and power amplifier unit, control module is connected with wave generating unit input end, wave generating unit output terminal is connected with NI data collecting card input end, NI data collecting card output terminal connects power amplifier unit input end, and power amplifier unit output terminal connects radiation source.Power amplifier unit includes single chip computer AT 89C2051, three-terminal voltage-stabilizing pipe LM7805, the passive crystal oscillator of relay J RC4100,11.0592MHz, LED fluorescent tube.Control module control waveform generation unit produces the waveform of controlling the intensity of light source, has NI data collecting card to gather waveform, then sends to power amplifier unit, carries out work by power amplifier unit control radiation source intensity according to waveform.
As a kind of preferred version, described bracket is arranged on pedestal by jacking gear, described jacking gear comprises the lifting cover being fixed on pedestal, lifting cover is square hollow cylinder, in lifting cover, insert and be provided with the square elevating lever being mated, elevating lever upper end is fixed on bracket, overlaps on a sidewall and has threaded hole in lifting, on threaded hole, be screwed with adjustment bolt, elevating lever and lifting cover are fixed.This jacking gear is for the height of bracket.Radiation source can be well radiated on sample.
As a kind of preferred version, described receiving mechanism includes receiver, slide and swingle, described slide is the arcuate structure taking radiation source rotating shaft as the center of circle, on slide, offer chute, described receiver is arranged in chute, on chute two side, be provided with gathering sill, on receiver both sides, correspondence is provided with angle sheave, gathering sill is provided with the gear teeth, angle sheave is arranged in gathering sill, and angle sheave is gear, and angle sheave is meshed and is connected with gathering sill, slide is fixed on swingle upper end, and swingle rotates and is arranged on pedestal.Receiver is used for receiving transmitted ray, this receiver will keep aliging with radiation source, in the time that radiation source moves, thereby by controlling angle sheave rotation, receiver is moved, because this slide is the arcuate structure taking radiation source rotating shaft as the center of circle, therefore mobile receiver can make receiver keep aliging with radiation source.This swingle can drive slide to be rotated, and in the time that radiation source is rotated, by controlling swingle synchronous rotary, makes receiver keep keeping aliging with radiation source.
As a kind of preferred version, in described receiver, be provided with the drive motor of output shafts, two output shafts of drive motor are connected with angle sheave respectively, connect the first motor that drives swingle to rotate in described swingle lower end, drive motor and the first motor are connected on control module, on receiver bottom, are provided with roller.Drive motor drives angle sheave to rotate, and receiver is moved.The first motor drives swingle to rotate.All controlled unit controls of drive motor and the first motor, control module is according to radiation source rotation information, and corresponding control slide rotates and receiver moves, and keeps receiver and radiation source to align.
As a kind of preferred version, described adjusting mechanism comprises first body of rod, second body of rod, rotary screw and guide pole, first body of rod vertically arranges, described radiation source is connected to by rotating shaft on the lower end of first body of rod, rotating shaft is connected with the second motor that driver rotates, the first body of rod upper end is through on clutch shaft bearing, be provided with the 3rd motor on bearing top, the 3rd motor output shaft is connected with the first body of rod upper end, described second body of rod and the perpendicular setting of first body of rod, the second lever front end is fixed on clutch shaft bearing, be disposed with thread bush and orienting sleeve in the second body of rod rear end, described rotary screw and guide pole are arranged side by side on pedestal, thread bush and orienting sleeve are nested with respectively on rotary screw and guide pole, be connected with the 4th motor in rotary screw lower end, rotary screw upper end connects the second bearing, guide pole upper end and the second bearing fix, the second motor, the 3rd motor and the 4th motor are connected on control module.This adjusting mechanism can be rotated first body of rod, can adjust the height of second body of rod simultaneously, thereby regulates the irradiation position of radiation source.The vertical insertion of rotating shaft is arranged on the first lever front end, rotating shaft front end is fixed on radiation source centre position, the second motor output shaft parallels with rotating shaft, and the second motor output shaft is aimed at rotating shaft rear end and is fixedly connected with it, the second Electric Machine Control radiation source rotational angle.The 3rd motor output shaft is parallel with second body of rod, and the 3rd motor output shaft is connected to the second body of rod upper end, makes second body of rod along its axis rotation.The 4th driven by motor screw mandrel rotation, screw mandrel rotation can drive cover thread bush thereon to move up and down, thereby makes the second body of rod oscilaltion, and orienting sleeve is enclosed within on guide pole, second body of rod is remained and do not rock and remain on lifting in same vertical plane.
A kind of beef quality method for quick, comprises the following steps:
Step 1: prepare beef sample, sample is placed on bracket, radiation source is adjusted angle and is irradiated respectively some check points, on each check point, then radiation source intensity decline and change according to cotangent curve according to oblique line increase in irradiation process, control module collection reflection or transmittance spectra data, then adjust radiation source irradiation position, reflection or transmittance spectra data at the some variant points of sample collection like this;
Step 2: by each check point spectroscopic data substitution accidental resonance model, by accidental resonance model being carried out to single order and second order differentiate, and single order accidental resonance model is passed through to quadravalence jade for asking rain Ge Kuta algorithm, calculate each check point signal to noise ratio (S/N ratio) output valve;
Step 3: the threshold value of each check point signal to noise ratio (S/N ratio) output valve and setting is compared, judge that check point is white spectrum or red spectrum, then the check point of white light spectrum and red spectrum is added up the quality of judgement sample.
As a kind of preferred version, in step 3, by the each spectroscopic data difference substitution accidental resonance model gathering, its formula is as follows,
Wherein
for input matrix, comprise periodically sinusoidal signal
spectral measurement signal Spect (t), and in grasp noise N (t), A is signal amplitude, f is signal frequency, and D is external noise intensity, and ξ (t) is external noise, x (t) is Brownian movement Particles Moving lopcus function, and t is run duration;
Accidental resonance model is carried out to single order and second order differentiate is that V (x, t) carries out single order and second order differentiate for x, and to make its equation be 0, obtain formula and be,
Set noise intensity D=0,
spect (t)=0, N (t)=0, the critical value that B=1 tries to achieve cyclical signal is
By A
cin substitution first derivation function, establish X
0(t)=0, sn
0=0;
With quadravalence jade for asking rain Ge Kuta Algorithm for Solving single order accidental resonance model, obtain:
And calculate
Wherein x
nfor the n order derivative value of x (t), sn
nbe the n order derivative of S (t) in the value at t=0 place, n=0,1 ..., N-1, a, b are the constant of setting, and calculate x
1(t), x
1(t) ..., x
n+1(t) value;
To x
1(t), x
2(t) ..., x
n+1(t) carry out integration, obtain x (t), and obtain the position x of x (t) in the double-deck stochastic system generation accidental resonance moment of single order and second order differentiate function composition
mvalue and x
mcorresponding resonance moment t1 and with the corresponding noise D1 of t1, D1 is a value in D; D is a function with 0.01 stepping in [0,1] scope, has known the t1 moment, and D1 has just determined.
Then pass through formula
The signal to noise ratio (S/N ratio) of calculating each spectroscopic data output, obtains wherein Δ U=a of each check point signal to noise ratio (S/N ratio) output valve
2/ 4b.In Practical Project is measured, the data of measurement comprise echo signal and interference noise conventionally, if echo signal is covered by strong background noise, we cannot accurately detect.Under the help of accidental resonance, inside grasp the weakened echo signal feeble signal of noise and effectively amplified, echo signal is likely caught in.Sometimes because echo signal is too faint and ground unrest is too strong, individual layer accidental resonance can not effectively reduce system noise, therefore just individual layer accidental resonance output signal again need to be delivered in lower one deck stochastic resonance system and analyzed, the object that so finally realize target feeble signal is measured.
As a kind of preferred version, the threshold value of each check point signal to noise ratio (S/N ratio) output valve and setting is compared process by step 3, if SNR >-68.74, judge that check point corresponding to this signal to noise ratio (S/N ratio) output valve is white spectrum point, is fat meat, if SNR <-77.49, judge that check point corresponding to this signal to noise ratio (S/N ratio) output valve is red spectrum point, be lean meat, the process of statistics is to calculate the number of the check point of white spectrum, is designated as M
1, the number of the check point of calculating red spectrum, is designated as M
2if,
order
i=1 ... m, m is check point quantity, judgement sample is top grade beef, otherwise judgement sample is common beef.
As a kind of preferred version, when detection, started by radiation source position for the first time, detect each time afterwards, radiation source angle is by increasing clockwise by 5 degree.
Therefore, advantage of the present invention is: adopt spectral detection mode, can carry out Non-Destructive Testing to sample; Apparatus structure is simple, it is fast and convenient to operate, it is accurate to detect data.
Brief description of the drawings
Accompanying drawing 1 is a kind of structural representation of apparatus of the present invention;
Accompanying drawing 2 is a kind of structural representations of receiving mechanism in apparatus of the present invention;
Accompanying drawing 3 is a kind of cross-sectional view of receiving mechanism slide in the present invention;
Accompanying drawing 4 is the connecting frame schematic diagram between control module and receiving mechanism in the present invention, adjusting mechanism;
Accompanying drawing 5 is a kind of schematic flow sheets of method in the present invention;
Accompanying drawing 6 is a kind of structural frames diagrams of control circuit for light source in the present invention;
Accompanying drawing 7 is a kind of waveform schematic diagram of radiation source Strength Changes in the present invention.
1-pedestal 2-bracket 3-radiation source 4-adjusting mechanism 5-receiving mechanism 6-receiver 7-slide 8-swingle 9-chute 10-gathering sill 11-angle sheave 12-control module 13-drive motor 14-first motor 15-second motor 16-the 3rd motor 17-the 4th motor 18-first body of rod 19-second body of rod 20-rotary screw 21-guide pole 22-rotating shaft 23-clutch shaft bearing 24-thread bush 25-orienting sleeve 26-the second bearing 27-roller 28-wave generating unit 29-NI data collecting card 30-power amplifier unit 31-lifting cover 32-elevating lever 33-adjusts bolt
Embodiment
Below by embodiment, and by reference to the accompanying drawings, technical scheme of the present invention is described in further detail.
Embodiment:
A kind of beef quality rapid detection system of the present embodiment, as shown in Figure 1, comprises pedestal 1, is provided with the bracket 2 for placing sample on pedestal, and bracket is connected on pedestal by support column.Above bracket, be provided with radiation source 3, on pedestal, be provided with the adjusting mechanism 4 of adjusting radiation source position, radiation source is rotatably connected on adjusting mechanism 4, below bracket, be provided with receiving mechanism 5, control module 12 is set in pedestal, and control module is connected with radiation source, adjusting pole, receiving mechanism.Bracket 2 is arranged on pedestal 1 by jacking gear, described jacking gear comprises the lifting cover 31 being fixed on pedestal, lifting cover is square hollow cylinder, in lifting cover, insert and be provided with the square elevating lever 32 being mated, elevating lever upper end is fixed on bracket, overlap on a sidewall and have threaded hole in lifting, on threaded hole, be screwed with and adjust bolt 33, elevating lever and lifting cover are fixed.
As shown in Figures 2 and 3, receiving mechanism 5 includes receiver 6, slide 7 and swingle 8, slide is the arcuate structure taking radiation source rotating shaft as the center of circle, on slide, have and be provided with chute 9, receiver mobile link is in chute, on chute two side, be provided with gathering sill 10, on receiver both sides, correspondence is provided with angle sheave 11, gathering sill is provided with the gear teeth, angle sheave is arranged in gathering sill, and angle sheave is gear, and angle sheave is meshed and is connected with gathering sill, receiver is provided with roller 27 on bottom, and roller contacts with chute bottom.In receiver, be provided with the drive motor 13 of output shafts, two output shafts of drive motor are connected with angle sheave 11 respectively.Slide is fixed on swingle upper end, and swingle rotates and is arranged on pedestal 1, and swingle lower end connects the first motor 14 that drives swingle to rotate, and drive motor and the first motor are connected on control module 12.
Between described radiation source 3 and control module 12, be connected with control circuit for light source, as shown in Figure 6, control circuit for light source comprises wave generating unit 28, NI data collecting card 29 and power amplifier unit 30, control module is connected with wave generating unit input end, wave generating unit output terminal is connected with NI data collecting card input end, NI data collecting card output terminal connects power amplifier unit input end, and power amplifier unit output terminal connects radiation source.
As shown in Figure 1, adjusting mechanism 4 comprises first body of rod 18, second body of rod 19, rotary screw 20 and guide pole 21, first body of rod vertically arranges, radiation source 3 is connected to by rotating shaft 22 on the lower end of first body of rod, rotating shaft is connected with the second motor 15 that driver rotates, the first body of rod upper end is through on clutch shaft bearing 23, be provided with the 3rd motor 16 on bearing top, the 3rd motor output shaft is connected with the first body of rod upper end, second body of rod and the perpendicular setting of first body of rod, the second lever front end is fixed on clutch shaft bearing, be disposed with thread bush 24 and orienting sleeve 25 in the second body of rod rear end, rotary screw and guide pole are arranged side by side on pedestal, thread bush and orienting sleeve are nested with respectively on rotary screw and guide pole, be connected with the 4th motor 17 in rotary screw lower end, rotary screw upper end connects the second bearing 26, guide pole upper end and the second bearing fix, the second motor, the 3rd motor and the 4th motor are connected on control module 12.
Adjusting mechanism control radiation source position, radiation source can be rotated around the shaft under the second Electric Machine Control, controls radiation source irradiating angle.First body of rod can pivot under the 3rd Electric Machine Control, adjusts planar 360 degree rotations of radiation source, and rotary screw can be adjusted the second body of rod oscilaltion, adjusts the position of radiation source at height.Receive swingle in structure and rotated by the first Electric Machine Control, the control module control first motor anglec of rotation is the same with the 3rd motor anglec of rotation, makes first body of rod anglec of rotation the same with the slide anglec of rotation, makes the receiver radiation source that can align all the time.Drive motor drives receiver to move, and this receiver will keep aliging with radiation source, and receiver, when mobile, once receive the transmitted light of radiation source, stops moving, and now receiver and radiation source align.
As shown in Figure 5, beef quality method for quick comprises the following steps:
Step 1: prepare beef sample, beef sample thickness is 17mm-23mm, adopts the sample of 22mm thickness in the present embodiment.Sample is placed on bracket, radiation source is adjusted angle and is irradiated respectively some check points, on each check point, then radiation source intensity decline and change according to cotangent curve according to oblique line increase in irradiation process, control module collection reflection or transmittance spectra data, then adjust radiation source irradiation position, reflection or transmittance spectra data at the some variant points of sample collection like this.This adjustment angle radiation source position for the first time of serving as reasons starts, and detects each time afterwards, and radiation source angle, by increasing clockwise by 5 degree, so just can obtain the spectroscopic data of some check points.
Step 2: by each check point spectroscopic data substitution accidental resonance model, by accidental resonance model being carried out to single order and second order differentiate, and single order accidental resonance model is passed through to quadravalence jade for asking rain Ge Kuta algorithm, calculate each check point signal to noise ratio (S/N ratio) output valve.
In the each spectroscopic data difference substitution accidental resonance model gathering, its formula is as follows,
Wherein
for input matrix, comprise periodically sinusoidal signal
spectral measurement signal Spect (t), and in grasp noise N (t), A is signal amplitude, f is signal frequency, and D is external noise intensity, and ξ (t) is external noise, x (t) is Brownian movement Particles Moving lopcus function, and t is run duration.
Accidental resonance model is carried out to single order and second order differentiate is that V (x, t) carries out single order and second order differentiate for x, and to make its equation be 0, obtain formula and be,
Set noise intensity D=0,
spect (t)=0, N (t)=0, the critical value that B=1 tries to achieve cyclical signal is
By A
cin substitution first derivation function, establish X
0(t)=0, sn
0=0;
With quadravalence jade for asking rain Ge Kuta Algorithm for Solving single order accidental resonance model, obtain:
And calculate
Wherein x
nfor the n order derivative value of x (t), sn
nbe the n order derivative of S (t) in the value at t=0 place, n=0,1 ..., N-1, a, b are the constant of setting, and calculate x
1(t), x
2(t) ..., x
n+1(t) value;
To x
1(t), x
2(t) ..., x
n+1(t) carry out integration, obtain x (t), and obtain the position x of x (t) in the double-deck stochastic system generation accidental resonance moment of single order and second order differentiate function composition
mvalue and x
mcorresponding resonance moment t1 and with the corresponding noise D1 of t1, D1 is a value in D.
Then pass through formula
The signal to noise ratio (S/N ratio) of calculating each spectroscopic data output, obtains SNR
1, SNR
2..., SNR
i, wherein Δ U=a
2/ 4b.
Step 3: the threshold value of each check point signal to noise ratio (S/N ratio) output valve and setting is compared, judge that check point is white spectrum or red spectrum, then the check point of white light spectrum and red spectrum is added up the quality of judgement sample.
The threshold value of each check point signal to noise ratio (S/N ratio) output valve and setting is compared to process is, if SNR >-68.74, judge that check point corresponding to this signal to noise ratio (S/N ratio) output valve is white spectrum point, be fat meat, if SNR <-77.49, judge that check point corresponding to this signal to noise ratio (S/N ratio) output valve is red spectrum point, is lean meat, the process of statistics is to calculate the number of the check point of white spectrum, is designated as M
1, the number of the check point of calculating red spectrum, is designated as M
2if,
order
i=1 ... m, m is check point quantity, judgement sample is top grade beef, otherwise judgement sample is common beef.
Specific embodiment described herein is only to the explanation for example of the present invention's spirit.Those skilled in the art can make various amendments or supplement or adopt similar mode to substitute described specific embodiment, but can't depart from spirit of the present invention or surmount the defined scope of appended claims.
Although more used the terms such as pedestal, bracket, radiation source, adjusting mechanism, receiving mechanism herein, do not got rid of the possibility that uses other term.Use these terms to be only used to describe more easily and explain essence of the present invention; They are construed to any additional restriction is all contrary with spirit of the present invention.