Laser mode recognition method based on interference image machine learning
Through a machine learning method based on interference images, the frequency domain features of laser interference fringe data are extracted and the support vector machine algorithm is used to solve the problem of high efficiency and automation of laser state identification in traditional methods, and achieve high accuracy and accuracy of laser state. Reliability identification, suitable for online automatic processing.
Patent Information
- Application Number
- CN202410797458.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-24
AI Technical Summary
When existing technology evaluates the working status of a laser, the traditional method requires high-cost measuring instruments or manual interpretation of the display on the oscilloscope, and cannot achieve efficient and automatic laser pattern recognition, especially when a large number of applications and online adjustments are required.
A machine learning method based on interference images is used to collect laser interference fringe data through an interference device, extract frequency domain features, and use a support vector machine algorithm to build a classification model to achieve automatic recognition of laser patterns.
It achieves high-accuracy and reliable identification of laser status, reduces costs, is suitable for online automatic processing, and is suitable for universal applications of individual lasers.
Smart Images

Figure CN118691887A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of laser technology and relates to a laser mode recognition method based on interference image machine learning. The method can be applied to the recognition of the working states of various lasers. Background Art
[0002] As an important light source, laser has been widely used in many fields, such as communication, fiber optic sensing, medical diagnosis, high-precision measurement, etc. The high stable output and narrow spectral width of the laser when working in the single longitudinal mode state are of great significance in applications that require precise control. There are two traditional methods for evaluating the single longitudinal mode state of the laser: the convenient method is to directly use a spectrum analyzer. However, this requires the introduction of high-performance measuring instruments, which is only suitable for experiments, tests and other scenarios. In situations where a large number of applications are required, it is impossible to directly measure each laser mode that needs to be confirmed from the perspective of cost and efficiency. Another common method is to combine the use of scanning interferometers, photoelectric detection circuits and oscilloscopes. The basic principle of the scanning interferometer is that the confocal cavity composed of two concave mirrors with the same radius of curvature is adjusted by a piezoelectric sensor to adjust the cavity length, and then adjust the peak frequency, so that the laser can pass through the interferometer at a certain cavity length, be detected by the subsequent photodetector, and then generate an electrical signal to be displayed on the oscilloscope. However, this traditional method requires the display on the oscilloscope to be interpreted to distinguish the mode state of the input laser, and there is no direct result to be conveniently used for subsequent control and processing. Summary of the invention
[0003] In view of the above-mentioned deficiencies in the prior art, the present invention provides a laser mode recognition method based on interference image machine learning, which uses a machine learning algorithm to process laser interference image data, extracts features through actual sampling data, and generates a classification model after training, which can effectively evaluate whether the laser is working in a single longitudinal mode state or a multi-longitudinal mode state. The present invention has high accuracy and reliability in laser mode classification, and can be applied in precision spectroscopy applications that require a single longitudinal mode laser beam, and is particularly suitable for situations where the laser is adjusted online and the mode state of the laser cannot be manually identified.
[0004] The technical solution of the present invention is as follows:
[0005] 1) Obtaining interference images;
[0006] 1-1) Using an interference device to make the laser light emitted by the laser interfere, using two reflection planes with preset angles, where the front surface is partially reflective and the rear surface is fully reflective, the two reflected light beams are superimposed to produce interference fringes;
[0007] 1-2) Use a linear CCD or COMS detector to collect interference fringes in the horizontal direction to obtain a one-dimensional digital image of the interference fringes;
[0008] 2) Collect raw data for training;
[0009] 2-1) adjusting the working parameters of the laser, recording the state of the laser beam emitted by the laser, which state is a single longitudinal mode or multiple longitudinal modes, and simultaneously collecting a one-dimensional digital image of the interference fringes of the laser;
[0010] 3) Extract frequency domain features;
[0011] 3-1) Performing fast Fourier transform on the one-dimensional digital image data of the interference fringes to obtain its amplitude spectrum;
[0012] 3-2) Calculate the characteristic quantity of the amplitude spectrum of each group of data, the characteristic quantity includes:
[0013] Max_value: maximum value of amplitude;
[0014] Main_freq: The spatial frequency value corresponding to the maximum amplitude;
[0015] FWHM: The spatial frequency half-width corresponding to the maximum amplitude;
[0016] Power: The sum of the absolute values of all frequency amplitudes;
[0017] Ratio: Max_value / (Power-Max_value), that is, the proportion of the maximum value in the total energy;
[0018] 4) Build a machine learning classification model;
[0019] 4-1) Using the Support Vector Machine (SVM) machine learning algorithm as an algorithm for classifying the laser mode state;
[0020] 4-2) using each group of feature quantities and the corresponding laser beam single longitudinal mode or multi-longitudinal mode label as a training sample set to train SVM, SVM uses a linear kernel function and normalizes the input features, and trains to obtain a laser beam mode state classification model for the laser used;
[0021] 5) Evaluate the classification effect;
[0022] 5-1) Collect one-dimensional digital images of interference fringes emitted by the laser under different working conditions, and simultaneously record the laser beam state as the original image data for testing the classification effect;
[0023] 5-2) extracting the frequency domain feature quantity of the test interference fringe image and inputting it into the trained classification model to obtain the recognition result of the laser mode;
[0024] 5-3) Indicators for evaluating classification effects include:
[0025] Accuracy: the number of samples correctly classified / total number of samples;
[0026] Precision: The number of correctly classified positive samples / the number of all samples classified as positive samples;
[0027] Recall: The number of correctly classified positive samples / the number of samples that are actually positive samples;
[0028] F1 value (F1-score): 2*(precision*recall) / (precision+recall). The F1 value is the harmonic mean of precision and recall, and is used to measure the overall effect of the classifier.
[0029] Compared with the existing technology, the laser pattern recognition method based on interference image machine learning has the following advantages:
[0030] First, compared with the method of directly using a spectrum analyzer, this method uses a universal optical wedge and a linear array camera, which is lower in cost and more economical to use in large quantities at multiple locations.
[0031] 2. Compared with the traditional methods of scanning interferometer, photoelectric detection circuit and oscilloscope, this method takes advantage of the development of computer technology, combines digital image technology, signal processing technology and machine learning technology, and the recognition model running on the computer can directly output the laser pattern recognition results without human intervention, which is more suitable for online automatic processing.
[0032] 3. This method collects the actual laser interference fringe data of the laser itself under different working conditions as samples for training the recognition model. Therefore, this method can be used for any individual laser without adjustment or adaptation, and has good versatility.
[0033] In summary, this method is based on a machine learning algorithm and can effectively evaluate whether the laser is operating in a single longitudinal mode state or a multi-longitudinal mode state. It is particularly suitable for situations where the laser needs to be adjusted online and the laser mode state needs to be automatically identified. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 Schematic diagram of laser interference fringes.
[0035] Figure 2 It is a one-dimensional digital image of multiple interference fringes of different patterns. DETAILED DESCRIPTION
[0036] The following is a specific experimental case to illustrate the application process of the method described in the summary of the invention:
[0037] 1. When a laser is working normally, two batches of interference fringe data of the emitted laser are randomly collected, one batch as a training set and the other batch as a test set. It is also recorded whether the corresponding laser is a single longitudinal mode or multiple longitudinal modes. The number is shown in Table 1.
[0038] Table 1
[0039]
[0040] Each collected one-dimensional digital image is 2048*2 bytes of data, displayed together as shown in the attached Figure 2 As shown, the left side is the training set sample, and the right side is the test set sample, where the laser in the single longitudinal mode state is represented by a green solid line, and the laser in the multi-longitudinal mode state is represented by a red dotted line.
[0041] 2. According to the method described in the invention content, the characteristic quantity of the amplitude spectrum is calculated after performing fast Fourier transform (FFT) on the one-dimensional digital image data of all interference fringes.
[0042] 3. Use the feature quantity of the training set data to train the SVM model. After the training is completed, the feature quantity of the test set data is input into the recognition model to obtain the predicted value of the laser mode state of the test set.
[0043] 4. According to the laser mode state of the pre-recorded test set and the predicted value obtained by identification using this method, the evaluation index of the classification effect is calculated, and the results are listed in Table 2. The results show that the laser mode state recognition of the test set samples is completely correct.
[0044] Table 2
[0045]
[0046] The above specific implementation schemes embody the basic principles, main features and advantages of the present invention. Relevant technical personnel should understand that the present invention is not limited by the above specific implementation cases. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements. These changes and improvements all fall within the scope of the present invention to be protected. The scope of protection required by the present invention is defined by the attached claims and their equivalents.
Claims
1. A laser pattern recognition method based on interference image machine learning, characterized in that: The method comprises the following steps: 1) Obtaining interference images; 1-1) Using an interference device to make the laser light emitted by the laser interfere, using two reflection planes with preset angles, where the front surface is partially reflective and the rear surface is fully reflective, the two reflected light beams are superimposed to produce interference fringes; 1-2) Use a linear CCD or COMS detector to collect interference fringes in the horizontal direction to obtain a one-dimensional digital image of the interference fringes; 2) Collect raw data for training; 2-1) adjusting the working parameters of the laser, recording the state of the laser beam emitted by the laser, which state is a single longitudinal mode or multiple longitudinal modes, and simultaneously collecting a one-dimensional digital image of the interference fringes of the laser; 3) Extract frequency domain features; 3-1) Performing fast Fourier transform on the one-dimensional digital image data of the interference fringes to obtain its amplitude spectrum; 3-2) Calculate the characteristic quantity of the amplitude spectrum of each group of data, the characteristic quantity includes: Max_value: maximum value of amplitude; Main_freq: The spatial frequency value corresponding to the maximum amplitude; FWHM: The spatial frequency half-width corresponding to the maximum amplitude; Power: The sum of the absolute values of all frequency amplitudes; Ratio: Max_value / (Power-Max_value), that is, the proportion of the maximum value in the total energy; 4) Build a machine learning classification model; 4-1) Using the Support Vector Machine (SVM) machine learning algorithm as an algorithm for classifying the laser mode state; 4-2) using each group of feature quantities and the corresponding laser beam single longitudinal mode or multi-longitudinal mode label as a training sample set to train SVM, SVM uses a linear kernel function and normalizes the input features, and trains to obtain a laser beam mode state classification model for the laser used; 5) Evaluate the classification effect; 5-1) Collect one-dimensional digital images of interference fringes emitted by the laser under different working conditions, and simultaneously record the laser beam state as the original image data for testing the classification effect; 5-2) extracting the frequency domain feature quantity of the test interference fringe image and inputting it into the trained classification model to obtain the recognition result of the laser mode; 5-3) Indicators for evaluating classification effects include: Accuracy: the number of samples correctly classified / total number of samples; Precision: The number of correctly classified positive samples / the number of all samples classified as positive samples; Recall: The number of correctly classified positive samples / the number of samples that are actually positive samples; F1 value (F1-score): 2*(precision*recall) / (precision+recall). The F1 value is the harmonic mean of precision and recall, and is used to measure the overall effect of the classifier.
