Intelligent control method and system of laser
Through the combination of gradient descent and dynamic matrix control algorithms, the output power, wavelength and stability of the laser are dynamically adjusted, and the performance degradation caused by instability in the prior art is solved, achieving the stability and efficient operation of the laser.
Patent Information
- Application Number
- CN202510335534.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2025-07-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing laser control methods are prone to instability, resulting in a decline in overall performance and affecting efficient operation.
An intelligent control method combined with gradient descent algorithm and dynamic matrix control algorithm is adopted to obtain the initial output power, wavelength and stability values, calculate the deviation degree value, dynamically adjust the parameters, and use the optimal adjustment amplitude and compensation amount to ensure the stability and performance optimization of the laser.
On the premise of ensuring the stability of the laser, dynamically optimize the operating efficiency to avoid instability caused by excessive adjustments, and improve the operating efficiency of the laser through real-time compensation and optimization.
Smart Images

Figure CN120389276A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control technology, and particularly to an intelligent control method and system for a laser. Background Art
[0002] At present, with the continuous progress of technology and the continuous growth of the demand for high precision and high intelligence in various fields, as a highly sophisticated device, the application prospect of the laser is becoming increasingly broad. At the same time, higher challenges are also posed to its performance and intelligent control level.
[0003] In the prior art, one control method is to monitor the operating state of the laser in real time through built-in multi-parameter sensors (such as temperature sensors, power meters, micro spectrometers, etc.), and combine with a data fusion processing unit to dynamically adjust the speed parameters. For example, by monitoring the temperature and power changes of the laser, the intelligent control system can adjust the pump power or intracavity loss in real time to maintain stable output. However, the adjustment of the speed parameters itself may also introduce new instabilities. Especially during high-speed adjustment, it may cause instantaneous fluctuations in the output power or wavelength drift, thus affecting the overall performance of the laser.
[0004] In summary, the laser control method in the prior art is prone to introducing new instabilities, resulting in affecting the overall performance of the laser and being unfavorable for the efficient operation of the laser. Summary of the Invention
[0005] The present invention provides an intelligent control method and system for a laser to improve its operating efficiency on the premise of ensuring the stability of the laser.
[0006] In a first aspect, to solve the above technical problems, the present invention provides an intelligent control method for a laser, including:[[]] Obtaining the initial output power, initial wavelength, and initial stability value of the laser; Calculating the deviation degree values by respectively calculating the initial output power, the initial wavelength, and the initial stability value with preset standard values; Taking the deviation degree value as an optimization target, using the gradient descent algorithm to solve with the adjustment amplitude as the independent variable to obtain the optimal adjustment amplitude; Adjusting the speed based on the optimal adjustment amplitude, obtaining the current output power, current wavelength, and current stability value of the laser, and calculating the instantaneous deviation change rate; When the instantaneous deviation change rate does not exceed the preset change rate threshold, continue to perform speed adjustment; When the instantaneous deviation change rate exceeds the preset change rate threshold, pause the speed adjustment and calculate the compensation amount using the dynamic matrix control algorithm; Calculate the adjusted output power, wavelength, and stability value based on the compensation amount, calculate the adjusted output power, wavelength, and stability value with the preset standard value, and obtain the adjusted deviation degree value; Return to the step of using the gradient descent algorithm to solve for the optimal adjustment amplitude according to the adjusted deviation degree value until the instantaneous deviation change rate does not exceed the preset change rate threshold.
[0007] In an alternative implementation, the calculating the deviation degree value by respectively calculating the initial output power, the initial wavelength, and the initial stability value with the preset standard value includes: Calculate the deviation degree value by respectively calculating the initial output power, the initial wavelength value, and the initial stability value with the preset standard value through the root mean square error formula; Among them, the root mean square error formula is expressed as: Among them, represents the deviation degree value of the output power, represents the initial output power at the i-th moment, represents the preset output power at the i-th moment, represents the deviation degree value of the wavelength, represents the initial wavelength value at the i-th moment, represents the preset wavelength value at the i-th moment, represents the deviation degree value of the stability value, represents the initial stability value at the i-th moment, represents the preset stability value at the i-th moment.
[0008] In an alternative implementation, taking the deviation degree value as the optimization objective and using the gradient descent algorithm to solve with the adjustment amplitude as the independent variable to obtain the optimal adjustment amplitude includes: Adopt the gradient method to calculate the relationship curve between the deviation degree value and the adjustment amplitude, and obtain the change trend of the deviation degree value; According to the change trend of the deviation degree value, calculate the gradient value of the adjustment amplitude to obtain the updated adjustment amplitude; Calculate the new output power, the new wavelength value, and the new stability value through the updated adjustment amplitude; Compare the new output power, the new wavelength value, and the new stability value with the preset allowable range; If the new output power, the new wavelength value, and the new stability value are within the allowable range, determine the adjustment amplitude as the optimal adjustment amplitude; If the new output power, the new wavelength value, and the new stability value exceed the allowable range, recalculate the gradient value of the adjustment amplitude, and iteratively update the adjustment amplitude according to the recalculated gradient value until the output power, the wavelength value, and the stability value meet the allowable range.
[0009] In an alternative embodiment, adjusting the speed based on the optimal adjustment amplitude, obtaining the current output power, the current wavelength, and the current stability value of the laser, and calculating the instantaneous deviation change rate includes: Obtaining two current output powers at adjacent time points of the laser, two current wavelengths at adjacent time points, and two current stability values at adjacent time points; Calculating the two current output powers, the two current wavelengths, and the two current stability values with a preset standard value respectively to obtain two current deviation degree values at adjacent time points; Calculating the change rate based on the two current deviation degree values to obtain the instantaneous deviation change rate; Wherein, the formula for calculating the instantaneous deviation change rate is: Wherein, is the instantaneous deviation change rate, 2, 1 are respectively the two current deviation degree values at adjacent time points; is the time interval between adjacent time points.
[0010] In an alternative embodiment, calculating the compensation amount by using the dynamic matrix control algorithm includes: According to the optimal adjustment amplitude, using the dynamic matrix control algorithm to obtain the predicted output power, the predicted wavelength value, and the predicted stability value at the next moment; Calculating the predicted output power, the predicted wavelength value, and the predicted stability value and the actual output power, the actual wavelength value, and the actual stability value at the next moment to obtain the compensation amount.
[0011] In an alternative embodiment, calculating the gradient value of the adjustment amplitude according to the change trend of the deviation degree value to obtain the updated adjustment amplitude includes: Determining whether the adjustment direction is approaching the optimal point according to the change trend of the deviation degree value; When the adjustment direction is approaching the optimal point, obtaining the initial adjustment amplitude and the gradient value of the initial adjustment amplitude; Calculating the updated adjustment amplitude through the following formula: Wherein, is the initial adjustment amplitude, is the preset learning rate parameter, is the gradient value of the initial adjustment amplitude, is the updated adjustment amplitude.
[0012] In an alternative embodiment, the obtaining of the predicted output power, the predicted wavelength value, and the predicted stability value at the next moment according to the optimal adjustment amplitude by using the dynamic matrix control algorithm includes: Calculating the predicted output power, the predicted wavelength value, and the predicted stability value at the next moment respectively through the following formulas: wherein, is the system state vector at time is the system state vector at time is the optimal adjustment amplitude at time is the current deviation degree value, and are respectively the process noise and the measurement noise at time, and A, B, and C are system matrices; represents the predicted value of the output at time calculated based on the information at time , represents the optimal adjustment amplitude at time , respectively represent the th, , , powers of the system matrix represents the process noise at time. In a second aspect, the present invention provides an intelligent control system for a laser, including: A data acquisition module for acquiring the initial output power, the initial wavelength, and the initial stability value of the laser; A deviation value calculation module for calculating the deviation degree values by respectively comparing the initial output power, the initial wavelength, and the initial stability value with preset standard values; An amplitude calculation module for using the deviation degree value as an optimization objective, taking the adjustment amplitude as an independent variable, and solving by using the gradient descent algorithm to obtain the optimal adjustment amplitude; The rate of change calculation module adjusts the speed based on the optimal adjustment amplitude, obtains the current output power, current wavelength, and current stability value of the laser, and calculates the instantaneous deviation rate of change; The parameter adjustment module is configured to continue performing speed adjustment when the instantaneous deviation rate of change does not exceed a preset rate of change threshold; when the instantaneous deviation rate of change exceeds the preset rate of change threshold, suspend the speed adjustment and calculate a compensation amount using a dynamic matrix control algorithm; The deviation adjustment module is configured to calculate the adjusted output power, wavelength, and stability value based on the compensation amount, calculate the adjusted output power, wavelength, and stability value with a preset standard value, and obtain an adjusted deviation degree value; The iterative adjustment module is configured to, based on the adjusted deviation degree value, return to the step of solving for the optimal adjustment amplitude using the gradient descent algorithm until it satisfies that the instantaneous deviation rate of change does not exceed the preset rate of change threshold.
[0013] In a third aspect, the present invention further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the intelligent control method of the laser as described in any one of the above.
[0014] In a fourth aspect, the present invention further provides a computer-readable storage medium. The computer-readable storage medium includes a stored computer program. When the computer program runs, it controls the device where the computer-readable storage medium is located to execute the intelligent control method of the laser as described in any one of the above.
[0015] Compared with the prior art, the present invention has the following beneficial effects: The present invention discloses an intelligent control method for a laser, which includes obtaining the initial output power, initial wavelength, and initial stability value of the laser; calculating the deviation degree values by respectively comparing the initial output power, the initial wavelength, and the initial stability value with preset standard values; taking the deviation degree values as the optimization objectives, using the gradient descent algorithm to solve with the adjustment amplitude as the independent variable to obtain the optimal adjustment amplitude; adjusting the speed based on the optimal adjustment amplitude, obtaining the current output power, current wavelength, and current stability value of the laser, and calculating the instantaneous deviation change rate; when the instantaneous deviation change rate does not exceed the preset change rate threshold, continue to perform speed adjustment; when the instantaneous deviation change rate exceeds the preset change rate threshold, pause the speed adjustment and calculate the compensation amount using the dynamic matrix control algorithm; calculating the adjusted output power, wavelength, and stability value according to the compensation amount, and calculating the adjusted deviation degree value by comparing the adjusted output power, wavelength, and stability value with the preset standard values; according to the adjusted deviation degree value, return to the step of using the gradient descent algorithm to solve for the optimal adjustment amplitude until the instantaneous deviation change rate does not exceed the preset change rate threshold is satisfied.
[0016] The method iteratively optimizes through the gradient descent algorithm, can dynamically adjust parameters, and avoid instability caused by over-adjustment; when the instantaneous deviation change rate exceeds the preset threshold, pause the speed adjustment and calculate the compensation amount using the dynamic matrix control algorithm. The dynamic matrix control algorithm can predict and compensate based on the dynamic characteristics of the system, effectively suppressing instantaneous fluctuations. According to the compensated results, recalculate the deviation degree value and return to the gradient descent algorithm for optimization until the instantaneous deviation change rate meets the requirements. This loop optimization mechanism ensures the stability of the system and the continuous optimization of performance. Through dynamic optimization and real-time compensation, the operation efficiency is effectively improved on the premise of ensuring the stability of the laser. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a schematic flowchart of an intelligent control method for a laser provided by an embodiment of the present invention; Figure 2 is a schematic structural diagram of a fiber laser provided by an embodiment of the present invention.
[0018] Figure 3 is a schematic structural diagram of an intelligent control system for a laser provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0019] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0020] Referring to Figure 1 , the first embodiment of the present invention provides an intelligent control method for a laser, including the following steps: S11, obtaining the initial output power, initial wavelength, and initial stability value of the laser; S12, respectively calculating the deviation degree values by calculating the initial output power, the initial wavelength, and the initial stability value with a preset standard value; S13, using the deviation degree value as the optimization target, taking the adjustment amplitude as the independent variable, and solving by using the gradient descent algorithm to obtain the optimal adjustment amplitude; S14, performing speed adjustment based on the optimal adjustment amplitude, obtaining the current output power, current wavelength, and current stability value of the laser, and calculating the instantaneous deviation change rate; S15, when the instantaneous deviation change rate does not exceed the preset change rate threshold, continue to perform speed adjustment; when the instantaneous deviation change rate exceeds the preset change rate threshold, pause the speed adjustment and calculate the compensation amount by using the dynamic matrix control algorithm; S16, calculating the adjusted output power, wavelength, and stability value according to the compensation amount, and calculating the adjusted output power, wavelength, and stability value with the preset standard value, and obtaining the adjusted deviation degree value; S17, according to the adjusted deviation degree value, return to the step of using the gradient descent algorithm to solve the optimal adjustment amplitude until the instantaneous deviation change rate does not exceed the preset change rate threshold is satisfied.
[0021] In step S11, the initial output power, initial wavelength, and initial stability value of the laser are obtained.
[0022] Among them, the initial output power is the optical power output by the laser in the initial working state, which is usually used to evaluate the emission intensity and energy output level of the laser. The initial wavelength is the central wavelength of the light output by the laser under the initial working conditions. The stability value is an index of the stability of the output power or wavelength of the laser; the initial stability value is the fluctuation range of the initial output power or the drift amount of the initial wavelength, which is used to evaluate the stability of the laser in the initial state. The initial output power of the laser can be directly measured using a power detection conversion unit (such as a photodetector), and the initial wavelength of the laser can be measured using a spectral analyzer or a wavelength meter. The output power of the laser is measured multiple times, and its fluctuation range or standard deviation is calculated to evaluate the power stability; during the wavelength tuning process, the output wavelength is repeatedly measured, and its standard deviation or error range is calculated to evaluate the wavelength stability; thus, the initial stability value is obtained.
[0023] In step S12, the deviation degree values are calculated by respectively comparing the initial output power, the initial wavelength, and the initial stability value with preset standard values, including: By using the root mean square error formula, the initial output power, the initial wavelength value, and the initial stability value are respectively calculated with the preset standard values to obtain the deviation degree values; Among them, the root mean square error formula is expressed as: Among them, represents the deviation degree value of the output power, represents the initial output power at the i-th moment, represents the preset output power at the i-th moment, represents the deviation degree value of the wavelength, represents the initial wavelength value at the i-th moment, represents the preset wavelength value at the i-th moment, represents the deviation degree value of the stability value, represents the initial stability value at the i-th moment, represents the preset stability value at the i-th moment.
[0024] It should be noted that by collecting the output power, wavelength, and stability value of the laser in real time and comparing them with the preset curve, the deviation degree value is calculated, and potential problems can be detected in a timely manner through the deviation degree value.
[0025] For a high-power fiber laser (its structure is as Figure 2Taking the one shown (as an example), its nominal output power is 1000W and the central wavelength is 1064nm. Data can be collected once per second to obtain real-time power values such as 998W, 1002W, etc., wavelength values such as 1063.8nm, 1064.2nm, etc., and power fluctuation percentages representing stability such as 0.2%, 0.3%, etc. These data constitute the real-time working state of the laser. The preset curves represent the ideal state of the laser under normal working conditions. For example, the power curve is a straight line constant at 1000W, the wavelength curve fluctuates slightly around 1064nm, and the stability curve remains below 0.1%. These curves are usually obtained by the manufacturer through fitting a large amount of test data and stored in the database for calling. Comparing the real-time data with the preset curves, the root mean square error (RMSE) can be used to quantify the degree of deviation. The smaller the RMSE value, the closer the actual working state is to the ideal state.
[0026] In step S13, taking the degree of deviation value as the optimization objective and the adjustment amplitude as the independent variable, use the gradient descent algorithm to solve and obtain the optimal adjustment amplitude, including: S131, calculate the relationship curve between the degree of deviation value and the adjustment amplitude using the gradient method, and obtain the change trend of the degree of deviation value; S132, calculate the gradient value of the adjustment amplitude according to the change trend of the degree of deviation value to obtain the updated adjustment amplitude; S133, calculate the new output power, new wavelength value, and new stability value through the updated adjustment amplitude; S134, compare the new output power, the new wavelength value, and the new stability value with the preset allowable range; S135, if the new output power, the new wavelength value, and the new stability value are within the allowable range, determine the adjustment amplitude as the optimal adjustment amplitude; if the new output power, the new wavelength value, and the new stability value exceed the allowable range, recalculate the gradient value of the adjustment amplitude, and iteratively update the adjustment amplitude according to the recalculated gradient value until the output power, wavelength value, and stability value meet the allowable range.
[0027] In step S131, calculate the relationship curve between the degree of deviation value and the adjustment amplitude using the gradient method, and obtain the change trend of the degree of deviation value.
[0028] Note that the gradient method is an optimization algorithm used to find the local minimum of a function. In this example, the gradient method is used to optimize the relationship between the deviation degree and the adjustment amplitude. First, a function needs to be constructed to represent the relationship between the deviation degree and the adjustment amplitude. This function is non - linear because the response of the system is usually not a simple linear relationship. Taking the control of the laser output power as an example, assume the goal is to stabilize the output power at 10 W. Initially, the laser output power is 9 W, and the deviation degree value is 1 W. Starting from a small adjustment amplitude, such as 0.1 W. Through multiple measurements, a series of data points can be obtained to form a relationship curve between the deviation degree value and the adjustment amplitude.
[0029] In step S132, according to the change trend of the deviation degree value, calculate the gradient value of the adjustment amplitude to obtain the updated adjustment amplitude, including: According to the change trend of the deviation degree value, determine whether the adjustment direction is approaching the optimal point; When the adjustment direction is approaching the optimal point, obtain the initial adjustment amplitude and the gradient value of the initial adjustment amplitude; Calculate the updated adjustment amplitude through the following formula: Where, is the initial adjustment amplitude, is the preset learning rate parameter, is the gradient value of the initial adjustment amplitude, is the updated adjustment amplitude.
[0030] Note that obtaining the change trend of the deviation degree value is to predict the future behavior of the system. For example, if it is found that the deviation degree value decreases as the adjustment amplitude increases, but the decreasing speed gradually slows down, this means that the optimal point is being approached. On the contrary, if the deviation degree value starts to increase, it means that the optimal point has been crossed. Calculating the gradient value of the adjustment amplitude is the core of the optimization process. The gradient represents the change rate and direction of the function at the current point. For example, if the gradient is negative, it means that increasing the adjustment amplitude can reduce the deviation degree value; if the gradient is positive, it means that the adjustment amplitude needs to be reduced.
[0031] Exemplarily, assume that at the current point, the calculated gradient value is - 0.5, which means that for every 1 - unit increase in the adjustment amplitude, the deviation degree is expected to decrease by 0.5 units. Based on this gradient, update the adjustment amplitude. The updated amplitude is proportional to the gradient and also takes into account the learning rate. For example, if the learning rate is 0.1, the new adjustment amplitude will increase by 0.05 (-0.5×0.1). After updating the adjustment amplitude, it is necessary to recalculate the output power, wavelength, and stability. There are complex interactions among these parameters.
[0032] In step S133, based on the updated adjustment amplitude, calculate the new output power, the new wavelength value, and the new stability value.
[0033] Exemplarily, assume that the initial output power is 100 mW, the wavelength is 1064 nm, and the stability value is 0.1%. The adjustment amplitude obtained according to the gradient descent algorithm is 0.5 unit. Through the system model, the calculated new output power is 101 mW, the new wavelength value is 1064.005 nm, and the new stability value is 0.105%. These new parameters are all within the preset allowable range (the output power range is 95 - 105 mW, the wavelength range is 1063.5 - 1064.5 nm, and the stability value range is 0.05% - 0.15%). Therefore, the current adjustment amplitude of 0.5 unit is determined as the optimal adjustment amplitude for optimizing the output performance of the laser.
[0034] In steps S134 and S135, compare the new output power, the new wavelength value, and the new stability value with the preset allowable range; if the new output power, the new wavelength value, and the new stability value are within the allowable range, determine the adjustment amplitude as the optimal adjustment amplitude; if the new output power, the new wavelength value, and the new stability value exceed the allowable range, recalculate the gradient value of the adjustment amplitude, and iteratively update the adjustment amplitude according to the recalculated gradient value until the output power, the wavelength value, and the stability value meet the allowable range.
[0035] Exemplarily, assume that the new output power is 9.5W, the wavelength is 1064.2nm, and the stability value is ±0.1%. Comparing these new values with the preset allowable range is a key step to ensure the system performance. Assume that the allowable ranges are 9.5 - 10.5W, 1064 ± 0.5nm, and ±0.2% respectively. In this example, all parameters are within the allowable range, so this adjustment amplitude can be accepted as the current optimal value. However, if any one of the parameters exceeds the range, the process needs to be restarted. For example, if the stability exceeds the range and becomes ±0.3%, the gradient needs to be recalculated to obtain a different value, such as 0.2. This means that the adjustment amplitude needs to be reduced to improve the stability. This iterative process will continue until an adjustment amplitude that meets all conditions is found. The advantage of this method is that it can handle multiple interacting parameters and find the optimal solution in a complex parameter space. By continuously adjusting and measuring, the system can adapt to environmental changes and internal fluctuations and maintain the best performance.
[0036] In step S14, perform speed adjustment based on the optimal adjustment amplitude, obtain the current output power, the current wavelength, and the current stability value of the laser, and calculate the instantaneous deviation change rate, including: Obtain two current output powers at adjacent time points of the laser, two current wavelengths at adjacent time points, and two current stability values at adjacent time points; Calculate the two current output powers, the two current wavelengths, and the two current stability values respectively with a preset standard value to obtain two current deviation degree values at adjacent time points; Perform a rate of change calculation based on the two current deviation degree values to obtain an instantaneous deviation rate of change; Among them, the formula for the instantaneous deviation rate of change is: Among them, is the instantaneous deviation rate of change, 2, 1 are respectively the two current deviation degree values at adjacent time points; is the time interval between adjacent time points.
[0037] Among them, adjacent time points refer to two very close time points in a continuous time series, used to describe the change of the system state in a short time. By measuring the output power, wavelength, and stability value of the system at adjacent time points and calculating their deviation degree values, the instantaneous deviation rate of change can be further obtained. This process helps to dynamically monitor and adjust the performance of the laser to ensure that its output parameters are always close to the preset standard value.
[0038] It should be noted that the precise control of the laser is crucial for a variety of applications. To achieve optimal performance, a preset optimal adjustment amplitude is used to adjust the speed parameter. This method can quickly respond to system changes and maintain output stability. Collecting data at a period of 100 milliseconds is a choice that balances real-time performance and system load. For example, in a fiber optic communication system, this sampling rate is sufficient to capture most transient changes without imposing too much burden on the processor. The collected data includes output power, wavelength, and stability values, and these parameters comprehensively reflect the working state of the laser. Calculating the instantaneous deviation degree rate of change is the key to evaluating the system response.
[0039] In step S15, when the instantaneous deviation rate of change does not exceed the preset rate of change threshold, continue to perform speed adjustment; when the instantaneous deviation rate of change exceeds the preset rate of change threshold, pause the speed adjustment and calculate the compensation amount using the dynamic matrix control algorithm, including: S151, according to the optimal adjustment amplitude, use the dynamic matrix control algorithm to obtain the predicted output power, predicted wavelength value, and predicted stability value at the next moment; S152, calculate the predicted output power, predicted wavelength value, and predicted stability value and the actual output power, actual wavelength value, and actual stability value at the next moment to obtain the compensation amount.
[0040] In step S151, according to the optimal adjustment amplitude, using the dynamic matrix control algorithm, the predicted output power, the predicted wavelength value, and the predicted stability value at the next moment are obtained, including: The predicted output power, the predicted wavelength value, and the predicted stability value at the next moment are calculated respectively through the following formulas: Wherein, is the system state vector at time is the system state vector at time is the optimal adjustment amplitude at time is the current deviation degree value, and are respectively the process noise and the measurement noise at time represents the predicted value of the output at time calculated based on the information at time , represents the optimal adjustment amplitude at time , respectively represent the th , , powers of the system matrix represents the process noise at time
[0041] It should be noted that the dynamic matrix control algorithm plays a role in prediction and optimization, can significantly improve the stability of the laser system, and at the same time provides strong support for subsequent adjustment and optimization.
[0042] Exemplarily, the system matrix is known and is: ; the system state vector at the current moment (unit: degree Celsius); the optimal adjustment amplitude (unit: heating power); the current deviation degree value (unit: degree Celsius); the process noise (unit: degree Celsius); the measurement noise (Unit: degree Celsius). The predicted output power, wavelength, and stability value at the k+1 moment can be calculated through the formula in step S151.
[0043] In step S152, the predicted output power, predicted wavelength value, and predicted stability value are calculated with the actual output power, actual wavelength value, and actual stability value at the next moment to obtain the compensation amount.
[0044] Exemplarily, assume that in a certain sampling, the output power changes from 100 mW to 98 mW, the wavelength drifts from 1550 nm to 1550.5 nm, and the stability index drops from 0.99 to 0.98. These changes will cause the change rate of the instantaneous deviation degree to exceed the preset threshold, such as 5% / s. When the change rate exceeds the threshold, starting the compensation mechanism reflects the adaptive ability of the system. The dynamic matrix control algorithm (DMC) plays an important role here. It can predict the future behavior of the system and calculate the optimal control action accordingly. For example, if it is predicted that the wavelength will further drift, DMC may suggest increasing the intensity of temperature control. Calculating the compensation amount online enables the system to adjust in real time. For example, if it is found that the power decline trend continues, the pump current needs to be increased. This compensation is not fixed but dynamically adjusted according to the change trend of the deviation degree. Assume that the initial compensation is to increase the pump current by 0.5%, but if this is not sufficient to reverse the decline trend, the system will increase the compensation amount to 1% in the next cycle. Updating the adjustment amplitude is the step to put the compensation into practice.
[0045] In step S16, the adjusted output power, wavelength, and stability value are calculated based on the compensation amount, and the adjusted output power, wavelength, and stability value are calculated with the preset standard value to obtain the adjusted deviation degree value.
[0046] Among them, the compensation amount refers to the adjustment amount obtained through the dynamic matrix control algorithm according to the difference between the current output parameters (power, wavelength, stability value) of the laser and the preset standard value. The actual output parameters of the laser are adjusted according to the compensation amount to obtain the adjusted output power, wavelength, and stability value; the adjusted output power, wavelength, and stability value are compared with the preset standard value to calculate the deviation degree value. The deviation degree value can be evaluated by calculating the difference or relative error between the adjusted value and the standard value.
[0047] Exemplarily, the initial measured values of the laser are: output power 95 W, wavelength 1552 nm, and power fluctuation range of ±1.9 W (2% of the stable value). According to the preset standard values (output power 100 W, wavelength 1550 nm, power fluctuation range ±1 W), the calculated compensation amounts are: power compensation amount 5 W, wavelength compensation amount -2 nm, and the power fluctuation range is reduced to ±1 W by adjusting the laser parameters. After adjustment, the output power of the laser is 100 W, the wavelength is 1550 nm, and the power fluctuation range is ±1 W, which is exactly the same as the preset standard values, and the deviation degree values are all 0. This indicates that after compensation adjustment, the performance of the laser reaches the preset requirements.
[0048] In step S17, according to the adjusted deviation degree value, return to the step of using the gradient descent algorithm to solve for the optimal adjustment amplitude until the instantaneous deviation change rate does not exceed the preset change rate threshold.
[0049] Among them, it is necessary to calculate the gradient of the adjusted deviation degree value through the gradient descent algorithm, update the output power, wavelength value, and stable value of the laser according to the gradient and the set learning rate, and then calculate the instantaneous deviation change rate through these three parameters until the instantaneous deviation change rate does not exceed the preset change rate threshold to stop the iterative adjustment process. Through the gradient descent algorithm, the output power, wavelength, and stable value of the laser are continuously adjusted until the change rate of the deviation degree value is lower than the preset threshold. This method can dynamically optimize the performance of the laser to make it closer to the preset standard values.
[0050] To facilitate the understanding of the present invention, some preferred embodiments of the present invention will be further described below.
[0051] In this embodiment, by real-time monitoring the output power, wavelength, and stable value of the laser, and dynamically adjusting the speed parameters to optimize the performance of the laser and improve its operating efficiency.
[0052] The working process is as follows: Step 1: Obtain the initial output power, initial wavelength, and initial stable value of the laser, and set the standard values of each parameter; Step 2: Calculate the deviation degree values by respectively comparing the initial output power, initial wavelength, and initial stable value with the preset standard values; Step 3: Use the deviation degree value as the optimization objective, take the adjustment amplitude as the independent variable, and use the gradient descent algorithm to solve to obtain the optimal adjustment amplitude; Step 4: Based on the optimal adjustment amplitude, perform speed adjustment, obtain the current output power, current wavelength, and current stable value of the laser, and calculate the instantaneous deviation change rate; When the instantaneous deviation change rate does not exceed the preset change rate threshold, continue to perform speed adjustment; when the instantaneous deviation change rate exceeds the preset change rate threshold, suspend the speed adjustment and calculate the compensation amount using the dynamic matrix control algorithm; Step Five: Calculate the adjusted output power, wavelength, and stability value based on the compensation amount, calculate the adjusted output power, wavelength, and stability value with the preset standard value, and obtain the adjusted deviation degree value; Step Six: According to the adjusted deviation degree value, return to Step Three until the instantaneous deviation change rate does not exceed the preset change rate threshold.
[0053] In summary, the present invention discloses an intelligent control method for a laser, including obtaining the initial output power, initial wavelength, and initial stability value of the laser; calculating the deviation degree value by calculating the initial output power, the initial wavelength, and the initial stability value with the preset standard value respectively; using the deviation degree value as the optimization target, taking the adjustment amplitude as the independent variable, and solving with the gradient descent algorithm to obtain the optimal adjustment amplitude; performing speed adjustment based on the optimal adjustment amplitude, obtaining the current output power, current wavelength, and current stability value of the laser, and calculating the instantaneous deviation change rate; when the instantaneous deviation change rate does not exceed the preset change rate threshold, continue to perform speed adjustment; when the instantaneous deviation change rate exceeds the preset change rate threshold, suspend the speed adjustment and calculate the compensation amount using the dynamic matrix control algorithm; calculate the adjusted output power, wavelength, and stability value based on the compensation amount, calculate the adjusted output power, wavelength, and stability value with the preset standard value, and obtain the adjusted deviation degree value; according to the adjusted deviation degree value, return to the step of solving the optimal adjustment amplitude using the gradient descent algorithm until the instantaneous deviation change rate does not exceed the preset change rate threshold.
[0054] The method iteratively optimizes through the gradient descent algorithm, can dynamically adjust parameters, and avoid instability caused by over-adjustment; when the instantaneous deviation change rate exceeds the preset threshold, suspend the speed adjustment and calculate the compensation amount using the dynamic matrix control algorithm. The dynamic matrix control algorithm can predict and compensate based on the dynamic characteristics of the system, effectively suppressing instantaneous fluctuations. According to the compensated result, recalculate the deviation degree value and return to the gradient descent algorithm for optimization until the instantaneous deviation change rate meets the requirements. This loop optimization mechanism ensures the stability of the system and the continuous optimization of performance. Through dynamic optimization and real-time compensation, the operation efficiency is effectively improved on the premise of ensuring the stability of the laser.
[0055] Referring to Figure 3 , the second embodiment of the present invention provides an intelligent control system for a laser, including: A data acquisition module, configured to acquire the initial output power, the initial wavelength, and the initial stability value of a laser; A deviation value calculation module, configured to calculate the deviation degree values by respectively calculating the initial output power, the initial wavelength, and the initial stability value with preset standard values; An amplitude calculation module, configured to use the deviation degree value as an optimization target, take the adjustment amplitude as an independent variable, and solve by using the gradient descent algorithm to obtain the optimal adjustment amplitude; A change rate calculation module, configured to perform speed adjustment based on the optimal adjustment amplitude, acquire the current output power, the current wavelength, and the current stability value of the laser, and calculate the instantaneous deviation change rate; A parameter adjustment module, configured to continue to perform speed adjustment when the instantaneous deviation change rate does not exceed a preset change rate threshold; and when the instantaneous deviation change rate exceeds the preset change rate threshold, pause the speed adjustment and calculate a compensation amount by using a dynamic matrix control algorithm; A deviation adjustment module, configured to calculate the adjusted output power, wavelength, and stability value according to the compensation amount, calculate the adjusted output power, wavelength, and stability value with preset standard values, and obtain the adjusted deviation degree value; An iterative adjustment module, configured to return to the step of solving the optimal adjustment amplitude by using the gradient descent algorithm according to the adjusted deviation degree value until the instantaneous deviation change rate does not exceed the preset change rate threshold is satisfied.
[0056] It should be noted that an intelligent control system for a laser provided in an embodiment of the present invention is used to execute all process steps of an intelligent control method for a laser in the above embodiment, and the working principles and beneficial effects of the two correspond one by one, so details are not described herein again.
[0057] An embodiment of the present invention further provides an electronic device. The electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as an intelligent control program for a laser. When the processor executes the computer program, the steps in the above embodiments of the intelligent control method for a laser are implemented, such as Figure 1 step S11 shown. Alternatively, when the processor executes the computer program, the functions of each module / unit in the above embodiments of each device are implemented, such as a deviation adjustment module.
[0058] Exemplarily, the computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program in the electronic device.
[0059] The electronic device may be a computing device such as a desktop computer, a notebook, a palm computer, and a smart tablet. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the above components are only examples of the electronic device and do not constitute a limitation on the electronic device. It may include more or fewer components than the above, or combine certain components, or different components. For example, the electronic device may further include input / output devices, network access devices, a bus, etc.
[0060] The so-called processor may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The processor is the control center of the electronic device and connects various parts of the entire electronic device through various interfaces and lines.
[0061] The memory can be used to store the computer programs and / or modules. By running or executing the computer programs and / or modules stored in the memory and invoking the data stored in the memory, the processor realizes various functions of the electronic device. The memory mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, phone book, etc.). In addition, the memory can include high-speed random access memory and can also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one magnetic disk storage device, flash device, or other volatile solid-state storage devices.
[0062] Among them, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above-mentioned embodiment methods of the present invention, it can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be realized. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.
[0063] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the attached drawings of the device embodiments provided by the present invention, the connection relationships between the modules indicate that there is a communication connection between them, which can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0064] The specific embodiments described above further elaborate on the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are only specific embodiments of the present invention and are not used to limit the protection scope of the present invention. In particular, it is pointed out that for those skilled in the art, any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An intelligent control method for a laser, characterized in that, Including: Obtain the initial output power, initial wavelength, and initial stability value of the laser; Calculate the deviation degree values by respectively calculating the initial output power, the initial wavelength, and the initial stability value with the preset standard values; Take the deviation degree value as the optimization objective, use the adjustment amplitude as the independent variable, and solve it using the gradient descent algorithm to obtain the optimal adjustment amplitude; Perform speed adjustment based on the optimal adjustment amplitude, obtain the current output power, current wavelength, and current stability value of the laser, and calculate the instantaneous deviation change rate; When the instantaneous deviation change rate does not exceed the preset change rate threshold, continue to perform speed adjustment; When the instantaneous deviation change rate exceeds the preset change rate threshold, pause the speed adjustment and calculate the compensation amount using the dynamic matrix control algorithm; Calculate the adjusted output power, wavelength, and stability value according to the compensation amount, calculate the adjusted output power, wavelength, and stability value with the preset standard value, and obtain the adjusted deviation degree value; According to the adjusted deviation degree value, return to the step of solving the optimal adjustment amplitude using the gradient descent algorithm until the instantaneous deviation change rate does not exceed the preset change rate threshold.
2. The intelligent control method of the laser according to claim 1, characterized in that, The step of respectively calculating the deviation degree values by calculating the initial output power, the initial wavelength, and the initial stability value with the preset standard values includes: Calculate the initial output power, the initial wavelength value, and the initial stability value with the preset standard value respectively through the root mean square error formula to obtain the deviation degree value; Among them, the root mean square error formula is expressed as: Among them, represents the deviation degree value of the output power, represents the initial output power at the i-th moment, represents the preset output power at the i-th moment, represents the deviation degree value of the wavelength, represents the initial wavelength value at the i-th moment, represents the preset wavelength value at the i-th moment, represents the deviation degree value of the stability value, represents the initial stability value at the i-th moment, represents the preset stability value at the i-th moment.
3. The intelligent control method of the laser according to claim 1, characterized in that The step of taking the deviation degree value as the optimization objective, using the adjustment amplitude as the independent variable, and solving it using the gradient descent algorithm to obtain the optimal adjustment amplitude includes: Adopt the gradient method to calculate the relationship curve between the deviation degree value and the adjustment amplitude, and obtain the change trend of the deviation degree value; Calculate the gradient value of the adjustment amplitude according to the change trend of the deviation degree value to obtain the updated adjustment amplitude; Calculate the new output power, new wavelength value, and new stability value through the updated adjustment amplitude; Compare the new output power, the new wavelength value, and the new stability value with the preset allowable range; If the new output power, the new wavelength value, and the new stability value are within the allowable range, determine the adjustment amplitude as the optimal adjustment amplitude; If the new output power, the new wavelength value, and the new stability value exceed the allowable range, recalculate the gradient value of the adjustment amplitude, and iteratively update the adjustment amplitude according to the recalculated gradient value until the output power, wavelength value, and stability value meet the allowable range.
4. The intelligent control method of the laser according to claim 1, wherein The step of performing speed adjustment based on the optimal adjustment amplitude, obtaining the current output power, current wavelength, and current stability value of the laser, and calculating the instantaneous deviation change rate includes: Obtain two current output powers at adjacent time points of the laser, two current wavelengths at adjacent time points, and two current stability values at adjacent time points; Calculate the two current deviation degree values at adjacent time points by respectively calculating the two current output powers, the two current wavelengths, and the two current stability values with preset standard values; Calculate the instantaneous deviation change rate by calculating the change rate based on the two current deviation degree values; Among them, the calculation formula of the instantaneous deviation change rate is: Among them, is the instantaneous deviation change rate, 2, 1 are two current deviation degree values at adjacent time points respectively; is the time interval between adjacent time points.
5. The intelligent control method of the laser according to claim 1, characterized in that, The calculating the compensation amount by using the dynamic matrix control algorithm includes: According to the optimal adjustment amplitude, use the dynamic matrix control algorithm to obtain the predicted output power, predicted wavelength value, and predicted stability value at the next moment; Calculate the compensation amount by calculating the predicted output power, predicted wavelength value, and predicted stability value and the actual output power, actual wavelength value, and actual stability value at the next moment.
6. The intelligent control method of the laser according to claim 3, characterized in that, The calculating the gradient value of the adjustment amplitude according to the change trend of the deviation degree value to obtain the updated adjustment amplitude includes: Determine whether the adjustment direction is approaching the optimal point according to the change trend of the deviation degree value; When the adjustment direction is approaching the optimal point, obtain the initial adjustment amplitude and the gradient value of the initial adjustment amplitude; Calculate the updated adjustment amplitude through the following formula: Among them, is the initial adjustment amplitude, is the preset learning rate parameter, is the gradient value of the initial adjustment amplitude, is the adjusted amplitude after update.
7. The intelligent control method of the laser according to claim 5, characterized in that, The obtaining the predicted output power, predicted wavelength value, and predicted stability value at the next moment according to the optimal adjustment amplitude by using the dynamic matrix control algorithm includes: Calculate the predicted output power, predicted wavelength value, and predicted stability value at the next moment through the following formula respectively: Among them, is the system state vector at the moment, is the system state vector at the moment, is the optimal adjustment amplitude at the moment, is the current deviation degree value, and are respectively the process noise and measurement noise at the moment, and A, B, and C are system matrices; Indicates the predicted value obtained by calculation based on the time information, Indicates the optimal adjustment amplitude at , respectively represent the system matrix , , powers, Indicates the process noise at 8. An intelligent control system for a laser, characterized in that, Including: A data acquisition module for acquiring the initial output power, initial wavelength, and initial stability value of the laser; A deviation value calculation module for calculating the deviation degree value by respectively calculating the initial output power, the initial wavelength, and the initial stability value with a preset standard value; An amplitude calculation module for using the deviation degree value as an optimization target, taking the adjustment amplitude as an independent variable, and solving by using the gradient descent algorithm to obtain the optimal adjustment amplitude; A change rate calculation module for adjusting the speed based on the optimal adjustment amplitude, acquiring the current output power, current wavelength, and current stability value of the laser, and calculating the instantaneous deviation change rate; A parameter adjustment module for continuing to perform speed adjustment when the instantaneous deviation change rate does not exceed the preset change rate threshold; when the instantaneous deviation change rate exceeds the preset change rate threshold, pausing the speed adjustment and calculating the compensation amount by using the dynamic matrix control algorithm; A deviation adjustment module for calculating the adjusted output power, wavelength, and stability value according to the compensation amount, and calculating the adjusted deviation degree value by calculating the adjusted output power, wavelength, and stability value with a preset standard value; An iterative adjustment module for returning to the step of solving the optimal adjustment amplitude by using the gradient descent algorithm according to the adjusted deviation degree value until the instantaneous deviation change rate does not exceed the preset change rate threshold is satisfied.
9. An electronic device, characterized in that, Including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the intelligent control method of the laser as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein when the computer program runs, it controls the device where the computer-readable storage medium is located to execute the intelligent control method of the laser as described in any one of claims 1 to 7.