In-situ rapid rice detection system and method based on deep learning and ultrafast laser breakdown spectroscopy
Through deep learning algorithms and strong-field femtosecond laser filamentation technology, the problem of traditional LIBS in rice spectral resolution is solved, rapid identification and classification of rice is achieved, the identification speed is improved, and real-time data without preprocessing is achieved in situ. collection.
Patent Information
- Application Number
- CN202211311994.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-25
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional LIBS technology has the problem of difficulty in quickly distinguishing different types of rice spectra, and requires sample preprocessing steps, which limits its real-time and rapid data collection and identification capabilities in rice data identification and classification.
Using deep learning algorithms combined with strong-field femtosecond laser filamentation technology in the air to achieve in-situ rapid collection and classification of rice spectra, through femtosecond laser amplifiers, plano-convex lenses, dielectric film high-reflection mirrors, sample trays, and three-dimensional precision displacement platforms And a grating spectrometer with an enhanced charge-coupled device forms a slender optical filament that acts on the rice sample to collect spectral signals and conduct deep learning model training and prediction.
It achieves efficient classification of rice data, reduces the technical difficulty of data analysis, improves recognition speed, and realizes real-time and rapid data collection and recognition without preprocessing in situ, achieving a prediction success rate of 98%.
Smart Images

Figure CN115656145B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of ultrafast laser sensing technology, and specifically relates to a device and method for in-situ detection of spectra of different types of rice by using strong field laser to form filaments in the air and analyzing and classifying the spectra in combination with a deep learning algorithm. Background Art
[0002] At present, Laser-induced Breakdown Spectroscopy (LIBS) has been widely used in online elemental analysis. The traditional LIBS technology mainly collects and analyzes the emission spectrum of the plasma generated by the tightly focused nanosecond laser ablation of the material surface to achieve the calibration of the elements inside the target material and the determination of their content. This LIBS technology can simplify the element analysis steps because it does not require chemical treatment of the detected objects, and there is no chemical waste generated by the use of chemicals. Thanks to these advantages, laser-induced breakdown spectroscopy technology has been widely used in various fields such as industrial production, pharmaceuticals, environment and biological applications.
[0003] However, the traditional LIBS analysis method has the defect of being difficult to quickly distinguish the spectra of the same but different categories of substances. For example, when distinguishing the spectra of different categories of rice, since these rices contain almost the same trace elements and the content of each trace element is slightly different, the collected characteristic spectra are very similar and it is difficult to distinguish the spectra of different types of rice by the naked eye. Therefore, it is necessary to use complex mathematical and physical methods to analyze the collected spectra in order to classify different rice spectrum data, which undoubtedly increases the difficulty of LIBS data analysis. In addition, a sample preparation step is still required in the traditional LIBS data acquisition process, that is, the sample needs to be ground and pressed flat. This is because the traditional LIBS technology uses a tightly focused laser beam, which is highly dependent on the distance between the focus and the target, so it is not suitable for direct in-situ detection of samples. In summary, simplifying the analysis process of LIBS data, improving the speed of LIBS in rice data recognition and classification, and realizing real-time and fast data acquisition and recognition without preprocessing in situ are of great significance to the development of LIBS technology.
[0004] Today, deep learning, as an emerging discipline, has been applied by researchers from various disciplines to numerous research topics and engineering applications, and machine learning has been proven to have high application potential in data classification and feature recognition.
[0005] When strong femtosecond lasers propagate in optical media, they will be modulated by the Kerr self-focusing effect and the plasma defocusing effect to form narrow plasma filaments, which are usually called femtosecond laser filaments. The generation position and length of the filaments can be adjusted by modifying the energy of the laser pulse and the focusing focal length. In addition, the filaments have strong anti-interference ability and can be formed in harsh environments. Summary of the invention
[0006] In order to simplify the analysis process of traditional laser induced breakdown spectrometer (LIBS) data, improve the speed of LIBS in rice data recognition and classification, and realize real-time rapid data acquisition and recognition without preprocessing in situ, the present invention provides a system and method for in-situ acquisition of rice spectrum and rapid feature recognition and classification by combining deep learning algorithm with strong field laser filamentation in air.
[0007] The present invention is achieved through the following technical solutions:
[0008] The in-situ rapid rice detection system based on deep learning and ultrafast laser breakdown spectroscopy comprises a femtosecond laser amplifier 1, a half wave plate 2, a polarizer 3, a plano-convex lens 4, a dielectric film high reflector 5, a sample tray 6, a three-dimensional precision displacement platform 7, an aluminum mirror 8, a biconvex lens 9, a grating spectrometer 10 equipped with an enhanced charge coupled device, and a computer 11; wherein, the femtosecond laser pulse generated by the laser amplifier 1 sequentially passes through the half wave plate 2, the polarizer 3, the plano-convex lens 4, and the dielectric film high reflector 5, and then generates a slender light filament above the sample tray 6 containing rice, and the light filament acts on the rice in the sample tray 6 to generate an in-situ laser signal, and the generated laser signal is then reflected to the biconvex lens 9 via the aluminum mirror 8, and then incident on the grating spectrometer 10 equipped with an enhanced charge coupled device after being focused by the biconvex lens 9, and the spectral signal collected by the grating spectrometer 10 equipped with an enhanced charge coupled device is then input into the computer 11 for analysis.
[0009] Furthermore, the system also includes a three-dimensional precision displacement platform 7, which is connected to a computer 11 and is used to move a sample tray 6 containing rice so that the light filaments act on different areas of the rice sample to achieve in-situ generation of a characteristic breakdown spectrum of the rice without pre-sample preparation, and is programmed and controlled by the computer 11; the energy of the femtosecond laser pulse can be continuously changed by rotating a half-wave plate.
[0010] Furthermore, the central wavelength of the laser pulse generated by the femtosecond laser amplifier 1 is 800nm, the pulse width is 35fs-200fs continuously adjustable, the repetition frequency is 1Hz-1000Hz, the polarization direction is horizontal polarization, the single pulse energy is 0.5mJ-4.0mJ, and it can be continuously adjusted through the half wave plate 2 and the polarizer 3.
[0011] Furthermore, the focal length of the plano-convex lens 4 is 100 cm, and the laser pulse forms a plasma filament with a length of 6 cm after passing through the plano-convex lens 4.
[0012] Furthermore, the adjustment distance of the three-dimensional precision displacement platform 7 is 0.05mm-50.00mm.
[0013] On the other hand, the present invention also provides a detection method of an in-situ rapid rice detection system based on deep learning and ultrafast laser breakdown spectroscopy, and the specific steps are as follows:
[0014] (1) Select rice samples of different varieties with similar appearance;
[0015] (2) Select a standard sample and place it in the sample tray 6, and move the three-dimensional precision displacement platform 7 so that the ultrafast laser filament acts on different areas of the rice sample, thereby realizing the in-situ generation of the rice characteristic breakdown spectrum;
[0016] (3) collecting characteristic laser-induced breakdown spectra generated by the action of light filaments on rice samples as a database for training the neural network, randomly selecting 80% of them as training samples, and using the remaining 20% as test samples;
[0017] (4) Change to another standard rice sample and repeat steps (2) and (3) until all the rice sample data are collected to obtain a large number of training samples and test samples;
[0018] (5) Use the tensorflow 2.0 framework to build a deep learning neural network model and set the initial network parameters;
[0019] (6) Input the collected training data and test data into the established deep learning neural network model to iterate the model for at least 2000 rounds, and adjust the parameters of the model to achieve the optimal classification success rate of the model;
[0020] (7) Save the trained classification model, place any standard sample of rice in the sample tray 6, move the three-dimensional precision displacement platform 7 so that the ultrafast laser light filament acts on different areas of the rice sample to generate an in-situ characteristic breakdown spectrum of the rice, collect the characteristic laser induced breakdown spectrum generated by the light filament acting on the rice sample and input it into the trained model, thereby performing real-time online feature detection and category prediction for any standard sample of rice.
[0021] Furthermore, the different varieties described in step (1) include indica rice, long-grain rice, northeastern rice and common rice.
[0022] Furthermore, the initial network parameters described in step (5) include the number of neural network layers, activation functions adapted to each layer, and an optimizer of the network model; wherein the activation function of the network model uses Relu and Softmax, and the optimizer of the network model uses Adam.
[0023] Compared with the prior art, the present invention has the following advantages:
[0024] The present invention constructs a large number of training sets and test sets required for deep learning by collecting breakdown spectrum information of different standard rice samples, and uses these data to train the constructed deep learning network model and achieves a prediction success rate of up to 98%. Since this method does not require complex and profound mathematical and physical theories for modeling and analysis when classifying different rice data, this method can greatly reduce the technical difficulty of data classification and improve classification efficiency.
[0025] In addition, the present invention also adopts femtosecond laser filament breakdown spectroscopy technology to replace the traditional laser induced breakdown spectroscopy technology, thereby realizing in-situ breakdown spectrum data collection, and further realizing real-time in-situ rapid detection and classification of different types of rice samples. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.
[0027] Figure 1 It is a schematic diagram of the device of the in-situ rapid rice detection system based on deep learning and ultrafast laser breakdown spectroscopy of the present invention;
[0028] In the figure: femtosecond laser amplifier 1, half wave plate 2, polarizer 3, plano-convex lens 4, dielectric film high reflective mirror 5, sample tray 6, three-dimensional precision displacement platform 7, aluminum mirror 8, double convex lens 9, grating spectrometer with enhanced charge coupled device 10 and computer 11.
[0029] The frequency of the laser pulse emitted by the femtosecond laser amplifier 1 is 1-1000 Hz, the polarization direction is horizontal, the focal length of the plano-convex lens 4 is 100 cm, and the laser pulse can form the following after passing through the plano-convex lens 4: Figure 2 The plasma filament shown is about 6 cm long;
[0030] Figure 2 Schematic diagram of the formed plasma filament;
[0031] Figure 3Schematic diagram of the curve of training rounds and classification success rate. DETAILED DESCRIPTION
[0032] The present invention is further described below in conjunction with the accompanying drawings. In order to clearly and completely describe the technical solution and its specific working process of the present invention, the specific implementation of the present invention is as follows in conjunction with the accompanying drawings of the specification:
[0033] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0034] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0035] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0036] Example 1
[0037] The present invention provides an in-situ rapid rice detection system based on deep learning and ultrafast laser breakdown spectroscopy: comprising a femtosecond laser amplifier 1, a half wave plate 2, a polarizer 3, a plano-convex lens 4, a dielectric film high reflector 5, a sample tray 6, a three-dimensional precision displacement platform 7, an aluminum mirror 8, a biconvex lens 9, a grating spectrometer 10 equipped with an enhanced charge coupled device, and a computer 11. The femtosecond laser pulse generated by the laser amplifier 1 sequentially passes through the half wave plate 2, the polarizer 3, the plano-convex lens 4, and the dielectric film high reflector 5, and then generates a slender light filament above the sample tray 6 containing rice. The light filament acts on the rice in the sample tray 6 to generate an in-situ laser signal. The generated light signal is then reflected to the biconvex lens 9 through the aluminum mirror 8 and then focused by the biconvex lens before being incident on the grating spectrometer 10 equipped with an enhanced charge coupled device. The spectrum signal collected by the grating spectrometer 10 is then input into the computer 11 for analysis.
[0038] The system also includes a three-dimensional precision displacement platform 7, which is connected to a computer 11 and is used to move a sample tray 6 containing rice so that the light filaments act on different areas of the rice sample to achieve in-situ generation of the rice characteristic breakdown spectrum without pre-sample preparation, and is programmed and controlled by the computer 11; the energy of the femtosecond laser pulse can be continuously changed by rotating the half-wave plate 2.
[0039] The central wavelength of the laser pulse generated by the femtosecond laser amplifier 1 is 800nm, the pulse width is continuously adjustable from 35fs to 200fs, the repetition frequency is 1Hz to 1000Hz, the polarization direction is horizontal polarization, the single pulse energy is 0.5mJ to 4.0mJ, and it can be continuously adjusted through the half wave plate 2 and the polarizer 3.
[0040] The focal length of the plano-convex lens 4 is 100 cm. After the laser pulse passes through the plano-convex lens 4, a plasma filament with a length of 6 cm is formed.
[0041] The adjustment distance of the three-dimensional precision displacement platform 7 is 0.05mm-50.00mm.
[0042] Example 2
[0043] This embodiment provides a detection method of an in-situ rapid rice detection system based on deep learning and ultrafast laser breakdown spectroscopy, which specifically includes the following contents:
[0044] Rice samples of different varieties with similar appearances are selected as standard samples for the experiment, including Northeastern rice, common rice, indica rice and long-grained rice; one of the standard samples is selected and placed in a sample tray 6, and a three-dimensional precision displacement platform 7 is moved so that ultrafast laser filaments act on different areas of the rice sample to realize in-situ generation of a characteristic breakdown spectrum of the rice without pre-sample preparation; a plurality of characteristic laser-induced breakdown spectra of the standard sample are collected as training samples and test samples for training a neural network; another standard rice sample is used to collect characteristic spectra until all the data of the rice samples are collected, thereby obtaining a large amount of data as a database for training the neural network, and 80% of the data are randomly selected as training samples, and the remaining 20% are used as test samples.
[0045] A deep learning neural network model is constructed in computer 11, and initial network parameters are set, including the number of neural network layers, activation functions suitable for each layer, and an optimizer for the network model; the activation functions of the neural network all use Relu activation functions except the output layer, which uses the Softmax activation function suitable for classification, and the optimizer uses Adam during neural network training; in addition, the learning efficiency of the deep learning neural network is set to 0.1, the loss function uses SparseCategoricalCrossentropy, and the evaluation standard is set to Sparse_categorical_accuracy; the prepared training data set is input into the established deep neural network model to train the model and adjust the parameters of the model to achieve the optimal classification success rate of the model; Figure 3 As shown in the figure, after thousands of rounds of training and parameter adjustment, a classification success rate of up to 99% was achieved for the prepared training data set.
[0046] The above-mentioned trained optimal neural network model is used to perform real-time online feature detection and category prediction on any standard sample of rice; after multiple real-time classification and prediction experiments, an average prediction success rate of up to 98% was successfully achieved for all experimental samples; and for a single prediction process, that is, from placing the rice on the sample tray to the light filament scanning, data collection and model prediction, the entire process takes less than one minute to achieve real-time in-situ rapid detection and classification of different types of rice.
[0047] The preferred embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the present invention is not limited to the specific details in the above embodiments. Within the technical concept of the present invention, a variety of simple modifications can be made to the technical solution of the present invention, and these simple modifications all belong to the protection scope of the present invention.
[0048] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present invention will not further describe various possible combinations.
[0049] In addition, various embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the present invention, they should also be regarded as the contents disclosed by the present invention.
Claims
1. An in-situ rapid rice detection system based on deep learning and ultrafast laser breakdown spectroscopy, characterized in that: The invention comprises a femtosecond laser amplifier (1), a half-wave plate (2), a polarizing plate (3), a plano-convex lens (4), a dielectric film high-reflection mirror (5), a sample tray (6), a three-dimensional precision displacement platform (7), an aluminum mirror (8), a biconvex lens (9), a grating spectrometer (10) equipped with an enhanced charge-coupled device, and a computer (11); wherein the femtosecond laser pulse generated by the laser amplifier (1) sequentially passes through the half-wave plate (2), the polarizing plate (3), the plano-convex lens (4), and the dielectric film high-reflection mirror (5), and then generates a slender light filament above the sample tray (6) containing rice, and the light filament acts on the rice in the sample tray (6) to generate an in-situ laser signal, and the generated laser signal is then reflected to the biconvex lens (9) via the aluminum mirror (8), and then focused by the biconvex lens (9) and incident on the grating spectrometer (10) equipped with an enhanced charge-coupled device, and the spectrum signal collected by the grating spectrometer (10) equipped with an enhanced charge-coupled device is then input into the computer (11) for analysis; The laser pulse generated by the femtosecond laser amplifier (1) has a central wavelength of 800 nm, a pulse width of 35 fs-200 fs which is continuously adjustable, a repetition frequency of 1 Hz-1000 Hz, a polarization direction of horizontal polarization, a single pulse energy of 0.5 mJ-4.0 mJ, and can be continuously adjusted through a half wave plate (2) and a polarizer (3); The focal length of the plano-convex lens (4) is 100 cm, and the laser pulse forms a plasma filament with a length of 6 cm after passing through the plano-convex lens (4).
2. The in-situ rapid rice detection system based on deep learning and ultrafast laser breakdown spectroscopy as claimed in claim 1, characterized in that, The system further comprises a three-dimensional precision displacement platform (7), which is connected to a computer (11) and is used to move a sample tray (6) containing rice, so that the light filaments act on different areas of the rice sample to realize in-situ generation of a characteristic breakdown spectrum of the rice without pre-sample preparation, and is programmed and controlled by the computer (11); the energy of the femtosecond laser pulse can be continuously changed by rotating the half-wave plate.
3. The in-situ rapid rice detection system based on deep learning and ultrafast laser breakdown spectroscopy as claimed in claim 1, characterized in that, The adjustment distance of the three-dimensional precision displacement platform (7) is 0.05 mm-50.00 mm.
4. The in-situ rapid rice detection system based on deep learning and ultrafast laser breakdown spectroscopy as claimed in claim 1, characterized in that, The specific steps are as follows: (1) Select rice samples of different varieties with similar appearance; (2) selecting a standard sample and placing it in a sample tray (6), and moving a three-dimensional precision displacement platform (7) so that the ultrafast laser light filament acts on different areas of the rice sample, thereby realizing in-situ generation of a characteristic breakdown spectrum of the rice; (3) collecting characteristic laser-induced breakdown spectra generated by the action of light filaments on rice samples as a database for training the neural network, randomly selecting 80% of them as training samples, and using the remaining 20% as test samples; (4) Change to another standard rice sample and repeat steps (2) and (3) until all the rice sample data are collected to obtain a large number of training samples and test samples; (5) Use the tensorflow 2.0 framework to build a deep learning neural network model and set the initial network parameters; (6) Input the collected training data and test data into the established deep learning neural network model to iterate the model for at least 2000 rounds, and adjust the parameters of the model to achieve the optimal classification success rate of the model; (7), save the trained classification model, place any standard sample of rice in the sample tray (6), move the three-dimensional precision displacement platform (7) so that the ultrafast laser light filament acts on different areas of the rice sample to generate an in-situ rice characteristic breakdown spectrum, collect the characteristic laser induced breakdown spectrum generated by the light filament acting on the rice sample and input it into the trained model, thereby performing real-time online feature detection and category prediction for any standard sample of rice.
5. The detection method of the in-situ rapid rice detection system based on deep learning and ultrafast laser breakdown spectroscopy as claimed in claim 4, characterized in that, The different varieties described in step (1) include indica rice, long-grain rice, northeastern rice and common rice.
6. The detection method of the in-situ rapid rice detection system based on deep learning and ultrafast laser breakdown spectroscopy as claimed in claim 4, characterized in that, The initial network parameters described in step (5) include the number of neural network layers, activation functions adapted to each layer, and an optimizer of the network model; wherein the activation function of the network model uses Relu and Softmax, and the optimizer of the network model uses Adam.
Citation Information
Patent Citations
Device and method for detection of particulate matter distribution in flames by strong field laser
CN107941662A
Fruit and vegetable identification method and system
CN109800795A
Method and device for detecting femtosecond plasma raster induced breakdown spectra
CN109884034A
Multi-pulse induced spectrum method and device based on femtosecond plasma grating
CN113960015A
Tobacco leaf classification equipment and method based on laser-induced breakdown spectroscopy
CN114504116A
