A UV laser cutting control method and system
The UV laser cutting path and process parameters are optimized through the ant colony algorithm and genetic algorithm, which solves the problems of insufficient real-time performance and poor adaptability in the existing technology, and achieves efficient and accurate UV laser cutting control.
Patent Information
- Application Number
- CN202411154756.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-22
AI Technical Summary
Existing UV laser cutting technology has insufficient real-time performance, poor adaptability, and poor robustness, making it difficult to meet the increasing processing requirements and practical application needs.
Ant colony algorithm is used to determine the optimal contour cutting path, and adaptive control rules are constructed through visual sensors and image segmentation algorithms. Combined with the time delay compensation module, the ultraviolet laser power is adjusted in real time; at the same time, process parameters are optimized through genetic algorithms to improve cutting quality.
It improves the real-time and adaptability of the cutting process, enhances robustness, achieves more efficient and precise cutting control, and meets modern processing needs.
Smart Images

Figure CN118657171B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control technology, and in particular to an ultraviolet laser cutting control method and system. Background Art
[0002] Laser cutting technology is a thermal processing method that uses a high-power density laser beam to irradiate the surface of the workpiece, causing the material to melt, vaporize or undergo a chemical reaction and be removed. It is widely used in the field of precision cutting of metal and non-metal materials. Ultraviolet laser cutting is an important branch of laser cutting technology. It uses ultraviolet laser with a shorter wavelength as a processing heat source and is particularly suitable for cutting highly reflective materials, heat-sensitive materials and micro-parts.
[0003] UV laser cutting faces some technical challenges, such as thermal effects during cutting, plasma shielding effects, and seam quality control. In order to obtain high-quality cutting results, it is necessary to reasonably set process parameters such as laser power, cutting speed, and gas assist, and to monitor and feedback control the cutting process in real time.
[0004] In summary, the existing ultraviolet laser cutting technology has problems such as insufficient real-time performance, poor adaptability, and low robustness, and it is difficult to meet the increasingly high processing requirements and practical application needs. The present invention can solve the problems in the prior art. Summary of the invention
[0005] The embodiments of the present invention provide a UV laser cutting control method and system, which can solve the problems in the prior art.
[0006] According to a first aspect of the embodiments of the present invention,
[0007] Provided is a UV laser cutting control method, comprising:
[0008] The geometric features of the contour of the workpiece to be cut are recognized, and the feature points and the tangent directions corresponding to the feature points are extracted. Based on the cutting direction constraint and the laser head motion constraint, the optimal contour cutting path is iteratively determined through the ant colony algorithm, and the optimal contour cutting path is smoothed to generate a cutting control action.
[0009] Execute the cutting control action, collect cutting image information corresponding to the cutting process based on the visual sensor, extract cutting feature parameters through the image segmentation algorithm, perform cluster analysis on the historical cutting data acquired in advance, build a nonlinear mapping model between the cutting feature parameters and the ultraviolet laser power, determine the adaptive control rules, combine with the time delay compensation module, learn the future cutting state changes, generate the ultraviolet laser power real-time adjustment amount through the real-time cutting feature parameters based on the adaptive control rules, and implement online cutting control;
[0010] The process parameters are selected as optimization variables, and the fitness function is constructed according to the cutting quality evaluation index. The process parameters are encoded by genetic chromosomes using a hybrid encoding method. Combined with the adaptive crossover mutation probability, the process parameters are iterated through a genetic algorithm to generate the optimal process parameters and implement offline process optimization.
[0011] In an optional embodiment,
[0012] The geometric features of the contour of the workpiece to be cut are recognized, and the feature points and the tangent directions corresponding to the feature points are extracted. Based on the cutting direction constraints and the laser head motion constraints, the optimal contour cutting path is iteratively determined through the ant colony algorithm, and the optimal contour cutting path is smoothed to generate the cutting control action including:
[0013] The geometric features of the contour of the workpiece to be cut are recognized, a discrete point set representing the contour shape is obtained by using a contour extraction algorithm based on region growth, feature points of the discrete point set are extracted by curvature analysis, contour feature points are determined, and the tangent direction of each contour feature point is calculated;
[0014] Based on the contour feature points, graph nodes are determined; based on the connections between the contour feature points, graph edges are determined; combined with the tangent direction, weights corresponding to the graph edges are determined to generate an undirected weighted graph; a quality function is constructed based on the total cutting path length and the number of laser head steering times; and a cutting path optimization model is constructed in combination with cutting direction constraints and laser head motion constraints;
[0015] The constructed cutting path optimization model is solved by using an ant colony algorithm, and the optimal cutting path is determined based on the quality function by searching on the undirected weighted graph by setting state transfer rules and pheromone update mechanism;
[0016] The optimal cutting path is regarded as a control polygon of a Bezier curve, and the optimal cutting path is locally smoothed by adjusting the positions of control vertices to obtain a smooth cutting trajectory, thereby generating a cutting control action;
[0017] In an optional embodiment,
[0018] The constructed cutting path optimization model is solved by using an ant colony algorithm. By setting state transition rules and pheromone update mechanisms, searching on the undirected weighted graph, and determining the optimal cutting path based on the quality function includes:
[0019] Setting the initial parameters of the ant colony algorithm and determining an adaptive volatility factor function;
[0020] Based on the preset total number of candidate feature points, randomly select candidate feature points, based on the preset total number of ants in the ant colony, randomly place all ants at the candidate feature points, and initialize the pheromone matrix;
[0021] Based on the pheromone matrix and the heuristic function, combined with the preset pheromone importance factor and the preset heuristic function importance factor, the transfer rule is determined, the characteristic point transfer probability is calculated, and based on the characteristic point transfer probability, the roulette wheel selection strategy is used in combination with the repeated access taboo table to sequentially construct the complete path of each ant;
[0022] Based on the quality function, the quality value corresponding to the complete path of each ant is calculated, the local optimal path is determined, and the local pheromone increment is calculated. If the quality value of the local optimal path is the historical maximum value, the global optimal path is determined, and the global pheromone increment is calculated. Based on the local pheromone increment and the global pheromone increment, the pheromone matrix is updated in combination with the adaptive volatility factor function;
[0023] Repeat the iteration until the preset maximum number of iterations is reached, obtain the final global optimal path, and determine the optimal cutting path.
[0024] In an optional embodiment,
[0025] Also includes:
[0026] The formula of the adaptive volatility factor function is as follows:
[0027] ;
[0028] in, r ( t ) indicates the t Iterative adaptive volatility factor, r min represents the minimum value of the adaptive volatility factor, r max represents the maximum value of the adaptive volatility factor, t represents the iteration number, T Indicates the total number of iterations;
[0029] The characteristic point transfer probability is as follows:
[0030] ;
[0031] in, Represents ants k From the feature point i Transfer to feature point j The transition probability, i ij ( t ) indicates the tFeature points in iteration i and feature points j The pheromone concentration between α represents the pheromone importance factor, or ij Representing feature points i and feature points j The heuristic function value between β represents the importance factor of the heuristic function, s Indicates the ordinal number of feature points in the transferable set, allow k Represents ants k Transferable collections, i is ( t ) indicates the t Feature points in iteration i and feature points s The pheromone concentration between or is Representing feature points i and feature points s The heuristic function value between ;
[0032] Update the pheromone matrix, the formula is as follows:
[0033] ;
[0034] in, i ij ( t+ 1) Indicates the t+ 1 Feature points in iteration i and feature points j The pheromone concentration between represents the global pheromone increment, Represents the local pheromone increment.
[0035] In an optional embodiment,
[0036] Performing cluster analysis on the pre-acquired historical cutting data, the cluster analysis comprising:
[0037] The historical cutting data includes cutting data under multiple viewing angles;
[0038] For the cut data of each perspective, similarity matrices at multiple granularity levels are constructed by adjusting the parameters of similarity measurement;
[0039] Based on the similarity matrix of each granularity level of each viewpoint, the Laplacian matrix is calculated;
[0040] Based on each Laplace matrix, multiply it with the shared low-dimensional subspace representation matrix in turn to generate the Laplace transformed matrix, calculate the sum of the traces of the Laplace transformed matrix, and construct the objective function by combining the normalization constraint and non-negative constraint of the view weight;
[0041] The shared low-dimensional subspace representation matrix is fixed, and the value corresponding to the objective function is minimized by iteratively optimizing the objective function, the view weight is updated, the view weight is fixed, and the shared low-dimensional subspace representation matrix is updated by solving the generalized eigenvalue with the view weight as the coefficient, and the view weight and the shared low-dimensional subspace representation matrix are updated alternately until a preset number of iterations is reached, and the optimal adaptive view weight and the optimal shared low-dimensional subspace representation matrix are determined;
[0042] The optimal shared low-dimensional subspace representation matrix of each granularity level is clustered to obtain the clustering result. Based on the optimal adaptive view weight, the clustering results of different granularity levels are fused through a voting mechanism to obtain the final clustering result.
[0043] Based on the final clustering results, the cluster centers and cluster labels of samples are adjusted through iterative optimization to minimize the total loss of clustering similarity and determine the optimal clustering results.
[0044] In an optional embodiment,
[0045] The objective function is formulated as follows:
[0046] ;
[0047] in, Z represents the shared low-dimensional subspace representation matrix, w represents the perspective weight, V represents the total number of all viewing angles, v represents the perspective ordinal number, G Represents the total number of all granularity levels, g Indicates the ordinal number of the granularity level, w v,g Representation perspective v At the granular level g The weight of represents the trace of the matrix, L v,g represents the Laplacian matrix of the view v at the granularity level g, l 1 represents the first regularization coefficient, B v,g Representation perspective v At the granular level g The target matrix, l 2 represents the second regularization coefficient, Represents the square of the Frobenius norm.
[0048] In an optional embodiment,
[0049] Select process parameters as optimization variables, construct fitness functions according to cutting quality evaluation indicators, use hybrid coding to encode the process parameters in genetic chromosomes, combine adaptive crossover mutation probability, iterate the process parameters through genetic algorithms, generate optimal process parameters, and implement offline process optimization, including:
[0050] Selecting one or more of laser power, cutting speed and focus position as optimization variables, and constructing a fitness function according to a cutting quality evaluation index;
[0051] The optimization variables are mixedly coded, where continuous variables are coded with real numbers and discrete variables are coded with integers to form chromosome strings. Each chromosome string corresponds to a set of process parameter combinations. The initial population individuals are randomly generated according to the preset population size.
[0052] Based on the fitness function, the fitness value corresponding to the chromosome string is calculated, and a high-quality individual is selected as a parent individual by a selection operator, a crossover operation is performed on the chromosome string corresponding to the parent individual to generate a new child individual, and a mutation operation is performed on the chromosome string corresponding to the child individual to introduce a new gene;
[0053] Calculate the diversity index of the population, including gene entropy and fitness variance. When the diversity index is lower than the preset diversity threshold, the crossover and mutation probabilities are increased by linear interpolation according to the ratio of the current number of iterations to the maximum number of iterations. When the diversity index is higher than the preset threshold, the crossover and mutation probabilities are reduced by linear interpolation.
[0054] Until the preset maximum number of iterations is reached, the individual with the highest fitness value in the current population is output as the optimal process parameters.
[0055] According to a second aspect of the embodiments of the present invention,
[0056] Provided is a UV laser cutting control system, comprising:
[0057] The first unit is used to identify the geometric features of the contour of the workpiece to be cut, extract the feature points and the tangent directions corresponding to the feature points, iteratively determine the optimal contour cutting path through the ant colony algorithm based on the cutting direction constraint and the laser head motion constraint, smooth the optimal contour cutting path, and generate a cutting control action;
[0058] The second unit is used to execute the cutting control action, collect cutting image information corresponding to the cutting process based on the visual sensor, extract cutting feature parameters through the image segmentation algorithm, perform cluster analysis on the historical cutting data acquired in advance, build a nonlinear mapping model between the cutting feature parameters and the ultraviolet laser power, determine the adaptive control rules, combine with the time delay compensation module, learn the future cutting state changes, generate the ultraviolet laser power real-time adjustment amount through the real-time cutting feature parameters based on the adaptive control rules, and implement online cutting control;
[0059] The third unit is used to select process parameters as optimization variables, construct a fitness function according to the cutting quality evaluation index, use a hybrid encoding method to encode the process parameters in a genetic chromosome, combine the adaptive crossover mutation probability, iterate the process parameters through a genetic algorithm, generate the optimal process parameters, and implement offline process optimization.
[0060] According to a third aspect of the embodiments of the present invention,
[0061] An electronic device is provided, comprising:
[0062] processor;
[0063] a memory for storing processor-executable instructions;
[0064] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0065] According to a fourth aspect of the embodiments of the present invention,
[0066] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0067] In the embodiments of the present invention, the ant colony algorithm is used to search for the optimal cutting path, and the trade-off between pheromones and heuristic functions can be combined to efficiently find a high-quality cutting path between contour feature points; the volatilization factor function is dynamically adjusted to ensure that the algorithm has a strong global exploration capability in the early stage of the search, which is conducive to discovering a wider search space; the pheromone matrix is updated according to the evaluation results, the pheromone concentration of the high-quality path is enhanced, and the algorithm is guided to converge to the global optimal solution faster, thereby improving the efficiency and quality of the cutting path; the cutting data from different perspectives can be comprehensively understood. The multi-faceted characteristics of the cutting process are helpful to discover the key factors affecting the cutting quality; multiple granularity levels are constructed. Similarity matrix, similarity matrix at different granularity levels can capture the similarity relationship of samples at different scales and reveal the structure and characteristics of data more comprehensively; introduce shared low-dimensional subspace representation matrix to realize the fusion and consistent representation of data from different perspectives, which is helpful to comprehensively utilize the information of multi-perspective data and improve the comprehensiveness and efficiency of data analysis; dynamically adjust the crossover and mutation probabilities to ensure that diversity and global exploration capabilities are enhanced in the early stages of evolution, and the convergence speed and local search capabilities are accelerated in the later stages; use diversity indicators such as gene entropy and fitness variance to prevent premature convergence of the population, maintain population diversity, and ensure that the algorithm can jump out of the local optimal solution and find the global optimal solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] Figure 1 A schematic diagram of a process flow of an ultraviolet laser cutting control method according to an embodiment of the present invention;
[0069] Figure 2 The figure is a schematic diagram of the structure of an ultraviolet laser cutting control system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0070] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0071] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0072] Figure 1 FIG. 1 is a flow chart of a UV laser cutting control method according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0073] S101. Recognize the geometric features of the contour of the workpiece to be cut, extract the feature points and the tangent directions corresponding to the feature points, iteratively determine the optimal contour cutting path through the ant colony algorithm based on the cutting direction constraint and the laser head motion constraint, smooth the optimal contour cutting path, and generate a cutting control action;
[0074] In this embodiment, geometric feature recognition and feature point extraction can accurately identify the key geometric features of the contour of the cut workpiece; extract feature points and calculate their tangent directions to provide a basis for subsequent cutting path planning; the ant colony algorithm can help avoid falling into the local optimal solution, and through global and local pheromone update strategies, gradually optimize the cutting path during iteration to improve cutting efficiency and quality; smoothing processing helps to reduce sudden changes in the laser head during movement and improve cutting accuracy and workpiece surface quality.
[0075] In an optional embodiment, geometric feature recognition is performed on the contour of the workpiece to be cut, feature points and tangent directions corresponding to the feature points are extracted, an optimal contour cutting path is iteratively determined through an ant colony algorithm based on cutting direction constraints and laser head motion constraints, the optimal contour cutting path is smoothed, and the generation of cutting control actions includes:
[0076] The geometric features of the contour of the workpiece to be cut are recognized, a discrete point set representing the contour shape is obtained by using a contour extraction algorithm based on region growth, feature points of the discrete point set are extracted by curvature analysis, contour feature points are determined, and the tangent direction of each contour feature point is calculated;
[0077] Based on the contour feature points, graph nodes are determined; based on the connections between the contour feature points, graph edges are determined; combined with the tangent direction, weights corresponding to the graph edges are determined to generate an undirected weighted graph; a quality function is constructed based on the total cutting path length and the number of laser head steering times; and a cutting path optimization model is constructed in combination with cutting direction constraints and laser head motion constraints;
[0078] The constructed cutting path optimization model is solved by using an ant colony algorithm, and the optimal cutting path is determined based on the quality function by searching on the undirected weighted graph by setting state transfer rules and pheromone update mechanism;
[0079] The optimal cutting path is regarded as a control polygon of a Bezier curve, and the optimal cutting path is locally smoothed by adjusting the positions of control vertices to obtain a smooth cutting trajectory, thereby generating a cutting control action;
[0080] The binary image of the workpiece to be cut is subjected to contour extraction. A pixel point on the contour is selected as the seed point. Adjacent pixels with the same grayscale value are merged into the same region through the region growing algorithm to obtain a discrete point set representing the contour shape. The curvature at each contour point is calculated. By setting the curvature threshold, points with obvious curvature changes are extracted as contour feature points. The curvature can be estimated by fitting the local curve of the contour point and calculating the second-order derivative of the curve at the contour point. For each contour feature point, the tangent direction is calculated, that is, the first-order derivative direction of the contour curve at that point.
[0081] An undirected graph is constructed with the extracted contour feature points as the nodes of the graph and the connections between the contour feature points as the edges of the graph. For each edge in the graph, a weight value is assigned according to the tangent direction difference between the two contour feature points it connects. The larger the tangent direction difference, the larger the steering angle of the laser head when cutting along the edge, and the larger the corresponding weight value. In this way, the contour feature points and tangent direction information are mapped into an undirected weighted graph.
[0082] The total length of the cutting path and the number of laser head turns are used as optimization targets to construct a quality function. The total length can be calculated by accumulating the Euclidean distance of each edge on the cutting path, and the number of laser head turns can be calculated by counting the number of times the tangent direction change amplitude of adjacent edges on the cutting path exceeds the preset threshold. During the optimization process, the following constraints need to be met: cutting direction constraint, requiring the cutting path to traverse the contour in a clockwise or counterclockwise direction; laser head motion constraint, requiring the speed, acceleration and steering angle of the laser head during the cutting process to not exceed the motion limit of the machine. The quality function and constraints are combined to construct a mathematical model for cutting path optimization.
[0083] Initialize the parameters of the ant colony algorithm, such as the number of ants, pheromone concentration, pheromone volatility coefficient, etc. Randomly place each ant on a node of the undirected weighted graph as the starting point. For each ant, select the next node according to the state transition rule. The state transition rule comprehensively considers factors such as the distance between nodes, the tangent direction difference, and the pheromone concentration. By repeatedly applying the state transition rule, the ant searches for a path from the starting point to the end point on the graph to obtain a feasible cutting path. Evaluate the quality of each cutting path according to the quality function and record the optimal path in the current iteration. Update the pheromone concentration of each edge, increase the pheromone concentration of the edge on the optimal path, and reduce the pheromone concentration of other edges. Repeat the above search process until the maximum number of iterations is reached or the termination condition is met, and output the global optimal cutting path.
[0084] The optimal cutting path obtained by the search is regarded as the control polygon of the Bezier curve, and the contour feature points and tangent directions are used as control vertices and tangent vectors. By adjusting the positions of the internal control vertices, the cutting path is locally smoothed while keeping the starting point, end point and overall shape unchanged, making the cutting path smoother and more fluent. The smoothed cutting path is used as the motion trajectory of the laser head to avoid frequent steering and sharp speed changes of the laser head, thereby improving cutting efficiency and section quality.
[0085] According to the smoothed cutting trajectory, the control action sequence of the laser cutting machine is generated. The control action includes parameters such as the position, speed, acceleration, laser power of the laser head, and auxiliary actions such as gas supply and follow-up height adjustment. The control action sequence is converted into CNC code or machine instructions and sent to the control system of the laser cutting machine to execute the cutting task. In the actual cutting process, the cutting status is monitored in real time through sensors, and the control parameters are adaptively adjusted according to the feedback information to ensure cutting quality and efficiency.
[0086] In this embodiment, the region growing algorithm and curvature calculation are used to accurately extract contour feature points, ensure that the cutting path is carried out along the contour of the workpiece, avoid errors and missed cutting; by calculating the tangent direction difference and assigning weights, ensure that the laser head has a moderate steering angle during the cutting process, reduce motion mutations, and improve cutting quality; optimize the cutting path based on the ant colony algorithm, consider the cutting direction constraints and laser head motion constraints, and search for the optimal path in a global range; effectively reduce the total length of the cutting path and the number of laser head turns, improve cutting efficiency and machine life; smooth the optimal cutting path to ensure the continuity and smoothness of the cutting path, and avoid oscillations and vibrations during the cutting process; and achieve a more accurate and stable laser cutting motion trajectory by adjusting the control point position and optimizing the cutting parameters.
[0087] In an optional embodiment, an ant colony algorithm is used to solve the constructed cutting path optimization model, and by setting a state transition rule and a pheromone update mechanism, searching on the undirected weighted graph, and determining the optimal cutting path based on the quality function includes:
[0088] Setting the initial parameters of the ant colony algorithm and determining an adaptive volatility factor function;
[0089] Based on the preset total number of candidate feature points, randomly select candidate feature points, based on the preset total number of ants in the ant colony, randomly place all ants at the candidate feature points, and initialize the pheromone matrix;
[0090] Based on the pheromone matrix and the heuristic function, combined with the preset pheromone importance factor and the preset heuristic function importance factor, the transfer rule is determined, the characteristic point transfer probability is calculated, and based on the characteristic point transfer probability, the roulette wheel selection strategy is used in combination with the repeated access taboo table to sequentially construct the complete path of each ant;
[0091] Based on the quality function, the quality value corresponding to the complete path of each ant is calculated, the local optimal path is determined, and the local pheromone increment is calculated. If the quality value of the local optimal path is the historical maximum value, the global optimal path is determined, and the global pheromone increment is calculated. Based on the local pheromone increment and the global pheromone increment, the pheromone matrix is updated in combination with the adaptive volatility factor function;
[0092] Repeat the iteration until the preset maximum number of iterations is reached, obtain the final global optimal path, and determine the optimal cutting path.
[0093] The adaptive volatilization factor function specifically refers to a function used to dynamically adjust the volatilization rate of pheromone in the ant colony algorithm. According to the algorithm's iterative process, the value of the pheromone volatilization factor is adaptively changed to balance the algorithm's global exploration and local utilization capabilities.
[0094] The candidate feature points specifically refer to a part of contour feature points selected on the contour to be cut through a certain sampling or screening method as candidate nodes for ants to depart from and arrive at, so as to reduce the dimension of the search space.
[0095] The pheromone matrix specifically refers to a matrix used to record the pheromone concentration on each edge in the ant colony algorithm. The matrix elements represent the pheromone concentration of the edge between two nodes, and the pheromone concentration affects the probability of ants choosing a path.
[0096] The heuristic function specifically refers to the heuristic information used to evaluate nodes or edges in the ant colony algorithm, reflecting the attractiveness of nodes or edges. The heuristic function is usually designed according to the characteristics of the problem, such as distance, direction, quality and other factors.
[0097] The transfer rule specifically refers to the ant selecting the next node to visit according to the transfer rule in the ant colony algorithm. The transfer rule comprehensively considers the pheromone concentration and heuristic function value between nodes, and determines the movement direction of the ant through a certain probability selection strategy.
[0098] The repeated access taboo table specifically refers to a table used in the ant colony algorithm to record the nodes that each ant has visited during the path construction process, so as to prevent the ants from repeatedly visiting the same node and improve the search efficiency.
[0099] The pheromone increment specifically refers to the calculation of the amount of pheromone that needs to be added to the corresponding edge according to the quality of the solution found by the ants in the ant colony algorithm. The pheromone increment is proportional to the quality of the solution. The higher the quality of the solution, the greater the pheromone increment on the corresponding edge.
[0100] Set the relevant parameters of the ant colony algorithm, including the total number of ants, the maximum number of iterations, the pheromone importance factor, the heuristic function importance factor, etc. Determine the adaptive volatility factor function, which dynamically adjusts the pheromone volatility rate according to the ratio of the current number of iterations to the maximum number of iterations. The volatility factor function can be in the form of linear decrease, exponential decrease, etc., so that the algorithm has a greater global exploration ability in the early stage and a stronger local utilization ability in the later stage.
[0101] According to the preset total number of candidate feature points, a part of the points are randomly selected from the contour feature point set as candidate feature points to form the search space of the ant colony algorithm. The number of candidate feature points should balance the search efficiency and path diversity, covering the main shape features of the contour while avoiding too many redundant nodes. According to the preset total number of ants in the ant colony, create a corresponding number of ant individuals, and randomly place all ants on the candidate feature points as their starting positions. Initialize the pheromone matrix and set the pheromone concentration on all edges to the same initial value.
[0102] For each ant, the next feature point to be visited is selected through the transfer rule according to the current feature point, and the complete cutting path is gradually constructed. The transfer rule comprehensively considers the pheromone matrix and the heuristic function. The pheromone matrix reflects the previous search experience of the ants, and the heuristic function reflects the prior knowledge of the problem itself. The relative weights of the two in the transfer rule are adjusted by the preset pheromone importance factor and the heuristic function importance factor. The transfer probability of each candidate feature point is calculated according to the transfer rule, and the roulette wheel selection strategy is adopted to determine the next feature point to be visited in a probabilistic manner. At the same time, the repeated visit taboo table is used to record the feature points that the ants have visited to avoid repeated visits until a complete path from the starting point to the end point is constructed.
[0103] When all ants have completed the construction of the cutting path, the quality value of each path is evaluated according to the quality function, and the path with the highest quality value in the current iteration is found as the local optimal path, and the corresponding local pheromone increment is calculated. If the quality value of the local optimal path exceeds the historical optimal value, it is recorded as the global optimal path, and the global pheromone increment is calculated. According to the local pheromone increment and the global pheromone increment, the pheromone matrix is updated. For the edges on the local optimal path and the global optimal path, the corresponding pheromone concentration is increased. For other edges, a certain amount of pheromone is volatilized according to the rules of the adaptive volatilization factor function.
[0104] Repeat multiple rounds of iterative search. In each round of iteration, the ants reconstruct the cutting path based on the updated pheromone matrix, evaluate the path quality, and update the pheromone. As the iterations proceed, pheromones continue to accumulate on high-quality paths, guiding the ants to search in a better direction. When the preset maximum number of iterations is reached, the algorithm stops and outputs the global optimal path as the final optimal cutting path.
[0105] In this embodiment, the ant colony algorithm is used to search for the optimal cutting path, and the trade-off between pheromones and heuristic functions can be used to efficiently find a high-quality cutting path between contour feature points; the dynamically adjusted volatility factor function ensures that the algorithm has a strong global exploration capability in the early stage of the search, which is conducive to discovering a wider search space; the pheromone matrix is updated according to the evaluation results, the pheromone concentration of high-quality paths is enhanced, and the algorithm is guided to converge to the global optimal solution more quickly, thereby improving the efficiency and quality of the cutting path; the algorithm can dynamically adjust the pheromone concentration according to the results of each round of iteration, while avoiding excessive accumulation of pheromones leading to early convergence; combined with real-time feedback information from sensors, adaptive adjustment of parameters in the cutting process is achieved to ensure the stability and controllability of cutting quality and efficiency throughout the process.
[0106] In an optional embodiment, it also includes:
[0107] The formula of the adaptive volatility factor function is as follows:
[0108] ;
[0109] in, r ( t ) indicates the t Iterative adaptive volatility factor, r min represents the minimum value of the adaptive volatility factor, r max represents the maximum value of the adaptive volatility factor, t represents the iteration number, T Indicates the total number of iterations;
[0110] The characteristic point transfer probability is as follows:
[0111] ;
[0112] in, Represents ants k From the feature point i Transfer to feature point j The transition probability, i ij ( t ) indicates the t Feature points in iterationi and feature points j The pheromone concentration between α represents the pheromone importance factor, or ij Representing feature points i and feature points j The heuristic function value between β represents the importance factor of the heuristic function, s Indicates the ordinal number of feature points in the transferable set, allow k Represents ants k Transferable collections, i is ( t ) indicates the t Feature points in iteration i and feature points s The pheromone concentration between or is Representing feature points i and feature points s The heuristic function value between ;
[0113] Update the pheromone matrix, the formula is as follows:
[0114] ;
[0115] in, i ij ( t+ 1) Indicates the t+ 1 Feature points in iteration i and feature points j The pheromone concentration between represents the global pheromone increment, Represents the local pheromone increment.
[0116] The adaptive volatility factor function controls the dynamic change of the adaptive volatility factor during the iteration process. Initially, there is a larger volatility rate, which promotes global search. As the iteration proceeds, the volatility factor gradually decreases, which enhances the local search capability of the algorithm and helps to find high-quality cutting paths more quickly in the search space.
[0117] The characteristic point transfer probability formula calculates the probability of the ant choosing the next transfer based on the pheromone concentration and the heuristic function value. The pheromone concentration reflects the previous search path experience of the ant, and the heuristic function provides additional heuristic information according to the specific nature of the problem, effectively guiding the ant to explore in the direction of a more favorable path, thereby improving the convergence speed and search efficiency of the algorithm.
[0118] The update formula of the pheromone matrix describes how the pheromone matrix is updated through global and local pheromone increments. The global pheromone increment reflects the global optimal solution in the current iteration, which helps to strengthen the influence of good paths; the local pheromone increment reflects the local contribution of each ant path, which helps to avoid the algorithm from falling into the local optimal solution. By dynamically adjusting the pheromone concentration, the ants are effectively guided to concentrate on exploring high-quality cutting paths during the search process, improving the algorithm's global search ability and path optimization effect.
[0119] S102. Execute the cutting control action, collect the cutting image information corresponding to the cutting process based on the visual sensor, extract the cutting feature parameters through the image segmentation algorithm, perform cluster analysis on the historical cutting data acquired in advance, build a nonlinear mapping model between the cutting feature parameters and the ultraviolet laser power, determine the adaptive control rules, combine with the time delay compensation module, learn the future cutting state changes, generate the ultraviolet laser power real-time adjustment amount through the real-time cutting feature parameters based on the adaptive control rules, and implement online cutting control;
[0120] While executing the cutting control action, the visual sensor installed near the laser cutting head collects the image information of the cutting process in real time. The visual sensor continuously captures the image of the cutting area at a certain frame rate to capture the cutting state characteristics such as the slit morphology, the molten pool morphology, and the plasma plume. The collected cutting image sequence is preprocessed, such as denoising, enhancement, correction, etc., to improve the image quality and contrast. The image segmentation algorithm is used to segment the cutting image to separate the area from the background.
[0121] Perform cluster analysis on a large amount of historical cutting data acquired in advance to explore the correlation between cutting characteristic parameters and ultraviolet laser power. Preferably, the K-means algorithm is used to cluster the historical data and classify similar cutting states into the same category. Cluster analysis can reveal the distribution characteristics of laser power under different cutting states and provide a basis for establishing adaptive control rules. By visualizing the clustering results, such as two-dimensional scatter plots, three-dimensional scatter plots, etc., the correlation between cutting characteristic parameters and laser power can be intuitively displayed.
[0122] Based on cluster analysis, a nonlinear mapping model between cutting characteristic parameters and ultraviolet laser power is constructed. Due to the complexity and nonlinearity of the cutting process, it is difficult for traditional linear control models to accurately describe the relationship between characteristic parameters and laser power. A nonlinear modeling method is adopted, with cutting characteristic parameters as model input and laser power as model output, and historical data is used to train and verify the model. By adjusting the model structure and parameters, such as the number of hidden layer nodes and the type of kernel function, the model performance is optimized so that the model can better fit the nonlinear characteristics of the actual cutting process.
[0123] Based on the nonlinear mapping model and cluster analysis results, the adaptive control rules of the UV laser cutting process are determined. The control rules use the cutting characteristic parameters as the criterion, dynamically adjust the laser power according to the changes in the parameters, and realize adaptive optimization control of the cutting process. For example, when the slit width is too large, the laser power is appropriately increased to accelerate the cutting speed; when the molten pool size is too small, the laser power is appropriately reduced to prevent the slit deformation.
[0124] Due to the inertia of the cutting system and the measurement transmission delay, there is a certain time difference between the cutting characteristic parameters collected in real time and the current actual cutting state. The delay compensation module is introduced to learn the change trend of the cutting characteristic parameters in the historical data, predict the change of the cutting state in the future period of time, and generate a feedforward compensation amount. The compensation amount is superimposed on the feedback adjustment amount generated by the adaptive control rule to achieve active compensation for the delay. The delay compensation model can adopt a time series prediction method, preferably a Kalman filter, to model the historical change sequence of the cutting characteristic parameters and predict future change trends. By adjusting parameters such as the model order and window length, the compensation effect is optimized and the real-time response capability of the control system is improved.
[0125] The adaptive control rules and time delay compensation model are integrated into the control system of the laser cutting machine to achieve real-time optimization and adjustment of online cutting parameters.
[0126] In this embodiment, the visual sensor can continuously capture images of the cutting area at a certain frame rate, capture cutting state characteristics, and reflect the actual situation of the cutting process in real time. A large amount of historical cutting data acquired in advance is clustered and analyzed to explore the correlation between cutting feature parameters and ultraviolet laser power. Based on the cluster analysis results, a nonlinear mapping model of cutting feature parameters and ultraviolet laser power is constructed to improve the prediction and control accuracy of the cutting process; the adaptive control rules of the ultraviolet laser cutting process dynamically adjust the laser power according to the cutting feature parameters extracted in real time to achieve real-time optimization and regulation of the cutting process; the time delay compensation module is introduced to predict future cutting state changes by learning historical data, effectively overcome the influence of measurement transmission delay on control performance, and improve the real-time response capability and stability of the system.
[0127] In an optional embodiment, cluster analysis is performed on the pre-acquired historical cutting data, and the cluster analysis includes:
[0128] The historical cutting data includes cutting data from multiple perspectives;
[0129] For the cut data of each perspective, similarity matrices at multiple granularity levels are constructed by adjusting the parameters of similarity measurement;
[0130] Based on the similarity matrix of each granularity level of each viewpoint, the Laplacian matrix is calculated;
[0131] Based on each Laplace matrix, multiply it with the shared low-dimensional subspace representation matrix in turn to generate the Laplace transformed matrix, calculate the sum of the traces of the Laplace transformed matrix, and construct the objective function by combining the normalization constraint and non-negative constraint of the view weight;
[0132] The shared low-dimensional subspace representation matrix is fixed, and the value corresponding to the objective function is minimized by iteratively optimizing the objective function, the view weight is updated, the view weight is fixed, and the shared low-dimensional subspace representation matrix is updated by solving the generalized eigenvalue with the view weight as the coefficient, and the view weight and the shared low-dimensional subspace representation matrix are updated alternately until a preset number of iterations is reached, and the optimal adaptive view weight and the optimal shared low-dimensional subspace representation matrix are determined;
[0133] The optimal shared low-dimensional subspace representation matrix of each granularity level is clustered to obtain the clustering result. Based on the optimal adaptive view weight, the clustering results of different granularity levels are fused through a voting mechanism to obtain the final clustering result.
[0134] Based on the final clustering results, the cluster centers and cluster labels of samples are adjusted through iterative optimization to minimize the total loss of clustering similarity and determine the optimal clustering results.
[0135] Extract cutting data from multiple perspectives from the historical cutting database, such as front perspective, side perspective, top perspective, etc. The cutting data from each perspective includes multi-dimensional information such as cutting image, cutting feature parameters, laser power, cutting quality, etc. Preprocess the cutting data from each perspective, such as data cleaning, feature selection, data normalization, etc., and convert it into a numerical matrix suitable for cluster analysis. At the same time, construct a sample similarity matrix for the cutting data from each perspective to measure the similarity between samples. The similarity matrix can be calculated based on metric functions such as Euclidean distance and cosine similarity.
[0136] For the cut data of each perspective, by adjusting the parameters of the similarity measurement function, such as distance threshold, number of neighbors, etc., similarity matrices at multiple granularity levels are constructed. Different granularity levels correspond to different similarity thresholds, thereby capturing the similarity relationship between samples at different scales. For example, the coarse-grained similarity matrix considers a larger similarity threshold and emphasizes global similarity; the fine-grained similarity matrix considers a smaller similarity threshold and emphasizes local similarity.
[0137] Based on the similarity matrix of each granularity level of each perspective, the corresponding Laplace matrix is calculated. The Laplace matrix is a matrix representation of an undirected weighted graph, which reflects the connectivity and weight information between nodes in the graph. For a given similarity matrix, it is first converted into an adjacency matrix, and then the Laplace matrix is calculated according to the definition formula of the Laplace matrix. The diagonal elements of the Laplace matrix represent the degree of the node, and the non-diagonal elements represent the negative value of the edge weight between the nodes. The Laplace matrix has good spectral characteristics and can be used for graph clustering and dimensionality reduction analysis.
[0138] A shared low-dimensional subspace representation matrix is introduced to map the cut data from different perspectives into the same low-dimensional subspace to achieve the fusion and consistent representation of data from different perspectives. The Laplace matrix of each granularity level based on each perspective is multiplied with the shared low-dimensional subspace representation matrix to generate a Laplace transformed matrix. The sum of the traces of the Laplace transformed matrix is calculated as part of the objective function to measure the similarity of data from different perspectives in the low-dimensional subspace. At the same time, the perspective weight variable is introduced to indicate the contribution of different perspectives to the clustering results. When constructing the objective function, the normalization constraints and non-negative constraints of the perspective weight are considered to ensure the rationality and interpretability of the weight.
[0139] Solve the objective function by alternating optimization to obtain the optimal view weight and shared low-dimensional subspace representation matrix. First, fix the shared low-dimensional subspace representation matrix, transform the objective function into an optimization problem about the view weight, and update the view weight through an iterative optimization algorithm, preferably the gradient descent method, to minimize the value of the objective function. Then, fix the view weight, transform the objective function into an optimization problem about the shared low-dimensional subspace representation matrix, and update the shared low-dimensional subspace representation matrix by solving the generalized eigenvalue problem with the view weight as the coefficient. Alternately update the view weight and the shared low-dimensional subspace representation matrix until the preset number of iterations or convergence conditions are reached to obtain the optimal adaptive view weight and the optimal shared low-dimensional subspace representation matrix.
[0140] Cluster analysis is performed on the optimal shared low-dimensional subspace representation matrix of each granularity level to obtain clustering results at different granularities. K-means is preferred, and the optimal number of clusters and cluster centers are selected according to the clustering evaluation index. Since similarity matrices of different granularities have different characterizations of sample similarity, clustering results may be different. In order to comprehensively utilize clustering information of different granularities, a voting fusion mechanism based on optimal adaptive perspective weights is proposed. For each sample, a weighted vote is performed based on its category label in the clustering results of different granularities and the weight of the corresponding perspective to obtain the final category label of the sample. Through voting fusion, the clustering results of different perspectives and different granularities can be fully utilized to improve the accuracy and robustness of clustering.
[0141] On the basis of obtaining the initial clustering results after voting fusion, the clustering results are further optimized and adjusted to improve the clustering performance. Through iterative optimization, the cluster centers and cluster labels of samples are updated alternately to minimize the total cluster similarity loss. Cluster similarity loss measures the similarity between a sample and its cluster center, as well as the dissimilarity between a sample and other cluster centers. By minimizing the total cluster similarity loss, samples of the same category are clustered together as much as possible, and samples of different categories are separated as much as possible. In each iteration, the cluster labels are fixed, and the cluster centers are updated to the mean vectors of samples of the corresponding categories; the cluster centers are fixed, and the cluster labels of samples are reallocated according to the similarity between the samples and the cluster centers. The cluster centers and cluster labels are updated iteratively until the preset number of iterations is reached or the clustering results converge, and the optimal clustering results are obtained.
[0142] In this embodiment, the cutting data under different perspectives can fully understand the various characteristics of the cutting process, which is helpful to discover the key factors affecting the cutting quality; construct similarity matrices at multiple granularity levels, and the similarity matrices at different granularity levels can capture the similarity relationship of samples at different scales, and more comprehensively reveal the structure and characteristics of the data; calculate the corresponding Laplace matrix according to the similarity matrix of each granularity level, and perform effective graph clustering and dimensionality reduction analysis to reveal the inherent structure and pattern of the data; introduce a shared low-dimensional subspace representation matrix to achieve the fusion and consistent representation of data from different perspectives, which is helpful to comprehensively utilize the information of multi-perspective data and improve the comprehensiveness and efficiency of data analysis; solve the objective function by alternating optimization, and consider the normalization constraints and non-negative constraints of the perspective weights during the optimization process to ensure the rationality and interpretability of the weights. The final clustering result can be further optimized through the voting fusion mechanism to improve the accuracy and robustness of clustering.
[0143] In an optional embodiment, the objective function has the following formula:
[0144] ;
[0145] in, Z represents the shared low-dimensional subspace representation matrix, w represents the perspective weight, V represents the total number of all viewing angles, v represents the perspective ordinal number, G Represents the total number of all granularity levels, g Indicates the ordinal number of the granularity level, w v,g Representation perspective v At the granular level g The weight of represents the trace of the matrix, Lv,g represents the Laplacian matrix of the view v at the granularity level g, l 1 represents the first regularization coefficient, B v,g Representation perspective v At the granular level g The target matrix, l 2 represents the second regularization coefficient, Represents the square of the Frobenius norm.
[0146] The main function of the objective function is to optimize the shared low-dimensional subspace representation matrix and the perspective weight at the same time, so that data of different perspectives and granularity levels can be reasonably represented in a unified low-dimensional subspace. The specific function is divided into three parts: the first perspective and granularity level Laplace transform part, the low-dimensional subspace representation matrix is transformed by the Laplace matrix, and the perspective weight is considered to maintain the local similarity between samples in the low-dimensional subspace, reflecting the data structure of the perspective at the granularity level; the second target matrix and the difference between the matrix after Laplace transformation, the difference between the matrix after Laplace transformation and the target matrix is measured, and the first regularization coefficient is used to adjust to ensure that the low-dimensional subspace representation matrix can be close to the target matrix after transformation, reflecting the data characteristics of different perspectives and granularity levels; the third shared low-dimensional subspace representation matrix regularization, the Frobenius norm of the shared low-dimensional subspace representation matrix is regularized, and the second regularization coefficient is used to adjust to prevent overfitting, ensure that the complexity of the matrix is moderate, and improve the generalization ability of the model.
[0147] According to the formula, by constructing a shared low-dimensional subspace representation matrix, the multidimensional characteristics of the data can be captured more comprehensively; by optimizing the perspective weight matrix, it helps to improve the accuracy and robustness of the clustering results; through the transformation of the Laplace matrix, the local similarity of the data in the low-dimensional subspace is maintained, and the model's understanding and representation capabilities of the data structure are enhanced; by optimizing the objective function, the low-dimensional subspace representation matrix and the perspective weight are optimized, thereby improving the accuracy and consistency of the clustering results.
[0148] S103. Select process parameters as optimization variables, construct a fitness function according to the cutting quality evaluation index, use a hybrid encoding method to encode the process parameters by genetic chromosomes, combine the adaptive crossover mutation probability, iterate the process parameters through a genetic algorithm, generate the optimal process parameters, and implement offline process optimization.
[0149] In this embodiment, by constructing a fitness function based on the cutting quality evaluation index, the genetic algorithm can effectively search the process parameter space, find the optimal combination, and significantly improve the cutting quality and stability; offline process optimization can significantly reduce the experimental cost and time, and can efficiently search in the parameter space to find the approximate optimal solution, accelerate the optimization process, and shorten the product development cycle.
[0150] In an optional embodiment, process parameters are selected as optimization variables, a fitness function is constructed according to the cutting quality evaluation index, a hybrid encoding method is used to encode the process parameters by genetic chromosomes, and the process parameters are iterated by a genetic algorithm in combination with the adaptive crossover mutation probability to generate the optimal process parameters. The offline process optimization includes:
[0151] Selecting one or more of laser power, cutting speed and focus position as optimization variables, and constructing a fitness function according to a cutting quality evaluation index;
[0152] The optimization variables are mixedly coded, where continuous variables are coded with real numbers and discrete variables are coded with integers to form chromosome strings. Each chromosome string corresponds to a set of process parameter combinations. The initial population individuals are randomly generated according to the preset population size.
[0153] Based on the fitness function, the fitness value corresponding to the chromosome string is calculated, and a high-quality individual is selected as a parent individual by a selection operator, a crossover operation is performed on the chromosome string corresponding to the parent individual to generate a new child individual, and a mutation operation is performed on the chromosome string corresponding to the child individual to introduce a new gene;
[0154] Calculate the diversity index of the population, including gene entropy and fitness variance. When the diversity index is lower than the preset diversity threshold, the crossover and mutation probabilities are increased by linear interpolation according to the ratio of the current number of iterations to the maximum number of iterations. When the diversity index is higher than the preset threshold, the crossover and mutation probabilities are reduced by linear interpolation.
[0155] Until the preset maximum number of iterations is reached, the individual with the highest fitness value in the current population is output as the optimal process parameters.
[0156] According to the characteristics and influencing factors of the cutting process, one or more of the laser power, cutting speed and focus position are selected as optimization variables. For continuous variables, real number encoding is used to map them to real values within a fixed range. For discrete variables, such as focus position, integer encoding is used to map them to a set of preset discrete values. Different types of optimization variables are combined in a certain order to form a chromosome string, and each chromosome string corresponds to a set of process parameter combinations. The length of the chromosome string depends on the number of optimization variables and the encoding accuracy.
[0157] According to the cutting quality evaluation index, the fitness function is constructed. The cutting quality evaluation index includes kerf width, kerf depth, heat affected zone, etc. These indicators are integrated into the fitness function by weighted combination. The design of the fitness function should meet the following principles: it is sensitive to the cutting quality and can effectively distinguish the advantages and disadvantages of different process parameter combinations; it has continuity and differentiability to facilitate subsequent optimization calculations; the value range is appropriate to avoid overflow or too small values.
[0158] The initial population is randomly generated according to the preset population size. The population size usually depends on the complexity of the problem and the limitation of computing resources. Each individual in the initial population corresponds to a chromosome string, that is, a set of process parameter combinations. For each optimization variable, a value is randomly generated within the coding range; the generated variable values are combined in the order of the chromosome string to form a complete individual; the above process is repeated until the preset number of individuals are generated;
[0159] Based on the constructed fitness function, the fitness value corresponding to each individual is calculated. The higher the fitness value, the better the cutting quality of the corresponding process parameter combination. According to the fitness value, the individuals in the population are selected, the best are selected, and the inferior individuals are eliminated. Roulette selection allocates selection probability according to the fitness value of the individual. The higher the fitness value, the greater the probability of being selected.
[0160] The selected high-quality parent individuals are randomly paired and crossover operations are performed according to the preset crossover probability to generate new offspring individuals. The crossover operation simulates the process of gene recombination in biological evolution, and generates offspring individuals with new characteristics by exchanging fragments of the chromosome strings of the parent individuals. Preferably, the crossover operator includes single-point crossover, multi-point crossover, and uniform crossover. Single-point crossover randomly selects a crossover point and exchanges the chromosome fragments of the parent individual after the crossover point; multi-point crossover selects multiple crossover points and alternately exchanges the chromosome fragments of the parent individual between the crossover points; uniform crossover exchanges each gene position of the parent individual with a certain probability.
[0161] For the offspring individuals generated by crossover, some individuals are randomly selected for mutation operations according to the preset mutation probability. The mutation operation simulates the process of gene mutation in biological evolution. By locally modifying the chromosome string of an individual, new genes are introduced to jump out of the local optimum and explore a wider solution space. Preferably, the mutation operators include basic bit mutation, uniform mutation, and boundary mutation. Basic bit mutation randomly selects some gene bits and mutates them to another possible value; uniform mutation mutates each gene bit with a certain probability to generate a new value; boundary mutation mutates the value of individual gene bits to the boundary of their coding range. Mutation operations can maintain the diversity of the population, prevent premature convergence, and improve the global search capability of the algorithm.
[0162] In the process of evolution, diversity indicators are introduced to measure the evolutionary state of the population. The diversity indicators include gene entropy and fitness variance. Gene entropy measures the uniformity of the values of different genes in the population. The larger the entropy value, the higher the diversity of the population; fitness variance measures the discreteness of the fitness values of individuals in the population. The larger the variance, the higher the diversity of the population. In each iteration, the diversity index of the current population is calculated and compared with the preset diversity threshold. When the diversity index is lower than the threshold, it indicates that the population tends to be homogenized, and it is necessary to increase the probability of crossover and mutation and introduce new genes; when the diversity index is higher than the threshold, it indicates that the population is too divergent, and it is necessary to reduce the probability of crossover and mutation and speed up the convergence.
[0163] According to the ratio of the current number of iterations to the maximum number of iterations, the crossover and mutation probabilities are dynamically adjusted through linear interpolation. In the early stages of evolution, the crossover and mutation probabilities are increased to promote population diversity and global exploration; in the later stages of evolution, the crossover and mutation probabilities are reduced to speed up population convergence and local search.
[0164] Repeat the iterative evolution until the preset maximum number of iterations is reached, and output the individual with the highest fitness value in the current population as the optimal process parameter combination. The parameters such as laser power, cutting speed and focus position corresponding to this individual are the best parameter settings obtained through genetic algorithm optimization, which can achieve higher cutting quality and efficiency.
[0165] In this embodiment, a combination of real number coding and integer coding is adopted to enable the algorithm to process continuous and discrete variables, improve the diversity of the search space and the ability to solve complex problems; by dynamically adjusting the crossover and mutation probabilities, it is ensured that the diversity and global exploration ability are enhanced in the early stages of evolution, and the convergence speed and local search ability are accelerated in the later stages; diversity indicators such as gene entropy and fitness variance are used to prevent premature convergence of the population, maintain population diversity, and ensure that the algorithm can jump out of the local optimal solution and find the global optimal solution; according to the comparison result of the diversity indicator with the preset threshold, the crossover and mutation probabilities are dynamically adjusted to avoid population homogeneity and excessive divergence, thereby improving the stability of the algorithm.
[0166] Figure 2 FIG. 1 is a schematic diagram of a structure of an ultraviolet laser cutting control system according to an embodiment of the present invention. Figure 2 As shown, the system comprises:
[0167] The first unit is used to identify the geometric features of the contour of the workpiece to be cut, extract the feature points and the tangent directions corresponding to the feature points, iteratively determine the optimal contour cutting path through the ant colony algorithm based on the cutting direction constraint and the laser head motion constraint, smooth the optimal contour cutting path, and generate a cutting control action;
[0168] The second unit is used to execute the cutting control action, collect cutting image information corresponding to the cutting process based on the visual sensor, extract cutting feature parameters through the image segmentation algorithm, perform cluster analysis on the historical cutting data acquired in advance, build a nonlinear mapping model between the cutting feature parameters and the ultraviolet laser power, determine the adaptive control rules, combine with the time delay compensation module, learn the future cutting state changes, generate the ultraviolet laser power real-time adjustment amount through the real-time cutting feature parameters based on the adaptive control rules, and implement online cutting control;
[0169] The third unit is used to select process parameters as optimization variables, construct a fitness function according to the cutting quality evaluation index, use a hybrid encoding method to encode the process parameters in a genetic chromosome, combine the adaptive crossover mutation probability, iterate the process parameters through a genetic algorithm, generate the optimal process parameters, and implement offline process optimization.
[0170] According to a third aspect of the embodiments of the present invention,
[0171] An electronic device is provided, comprising:
[0172] processor;
[0173] a memory for storing processor-executable instructions;
[0174] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0175] According to a fourth aspect of the embodiments of the present invention,
[0176] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0177] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.
[0178] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A UV laser cutting control method, characterized in that: include: The geometric features of the contour of the workpiece to be cut are recognized, and the feature points and the tangent directions corresponding to the feature points are extracted. Based on the cutting direction constraint and the laser head motion constraint, the optimal contour cutting path is iteratively determined through the ant colony algorithm, and the optimal contour cutting path is smoothed to generate a cutting control action. Execute the cutting control action, collect cutting image information corresponding to the cutting process based on the visual sensor, extract cutting feature parameters through the image segmentation algorithm, perform cluster analysis on the historical cutting data acquired in advance, build a nonlinear mapping model between the cutting feature parameters and the ultraviolet laser power, determine the adaptive control rules, combine with the time delay compensation module, learn the future cutting state changes, generate the ultraviolet laser power real-time adjustment amount through the real-time cutting feature parameters based on the adaptive control rules, and implement online cutting control; Selecting process parameters as optimization variables, constructing a fitness function according to cutting quality evaluation indicators, using a hybrid encoding method to encode the process parameters in genetic chromosomes, combining adaptive crossover mutation probability, iterating the process parameters through a genetic algorithm, generating optimal process parameters, and implementing offline process optimization; The geometric features of the contour of the workpiece to be cut are recognized, and the feature points and the tangent directions corresponding to the feature points are extracted. Based on the cutting direction constraints and the laser head motion constraints, the optimal contour cutting path is iteratively determined through the ant colony algorithm, and the optimal contour cutting path is smoothed to generate the cutting control action including: The geometric features of the contour of the workpiece to be cut are recognized, a discrete point set representing the contour shape is obtained by using a contour extraction algorithm based on region growth, feature points of the discrete point set are extracted by curvature analysis, contour feature points are determined, and the tangent direction of each contour feature point is calculated; Based on the contour feature points, graph nodes are determined; based on the connections between the contour feature points, graph edges are determined; combined with the tangent direction, weights corresponding to the graph edges are determined to generate an undirected weighted graph; a quality function is constructed based on the total cutting path length and the number of laser head steering times; and a cutting path optimization model is constructed in combination with cutting direction constraints and laser head motion constraints; The constructed cutting path optimization model is solved by using an ant colony algorithm, and the optimal cutting path is determined based on the quality function by searching on the undirected weighted graph by setting state transfer rules and pheromone update mechanism; The optimal cutting path is regarded as a control polygon of a Bezier curve, and the optimal cutting path is locally smoothed by adjusting the positions of control vertices to obtain a smooth cutting trajectory and generate a cutting control action.
2. The method according to claim 1, characterized in that The constructed cutting path optimization model is solved by using an ant colony algorithm. By setting state transition rules and pheromone update mechanisms, searching on the undirected weighted graph, and determining the optimal cutting path based on the quality function includes: Setting the initial parameters of the ant colony algorithm and determining an adaptive volatility factor function; Based on the preset total number of candidate feature points, randomly select candidate feature points, based on the preset total number of ants in the ant colony, randomly place all ants at the candidate feature points, and initialize the pheromone matrix; Based on the pheromone matrix and the heuristic function, combined with the preset pheromone importance factor and the preset heuristic function importance factor, the transfer rule is determined, the characteristic point transfer probability is calculated, and based on the characteristic point transfer probability, the roulette wheel selection strategy is used in combination with the repeated access taboo table to sequentially construct the complete path of each ant; Based on the quality function, the quality value corresponding to the complete path of each ant is calculated, the local optimal path is determined, and the local pheromone increment is calculated. If the quality value of the local optimal path is the historical maximum value, the global optimal path is determined, and the global pheromone increment is calculated. Based on the local pheromone increment and the global pheromone increment, the pheromone matrix is updated in combination with the adaptive volatility factor function; Repeat the iteration until the preset maximum number of iterations is reached, obtain the final global optimal path, and determine the optimal cutting path.
3. The method according to claim 2, characterized in that Also includes: The formula of the adaptive volatility factor function is as follows: ; in, ρ ( t ) indicates the t Iterative adaptive volatility factor, ρ min represents the minimum value of the adaptive volatility factor, ρ max represents the maximum value of the adaptive volatility factor, t represents the iteration number, T Indicates the total number of iterations; The characteristic point transfer probability is as follows: ; in, Represents ants k From the feature point i Transfer to feature point j The transition probability, θ ij ( t ) indicates the t Iteration feature points i and feature points j The pheromone concentration between α represents the pheromone importance factor, η ij Representing feature points i and feature points j The heuristic function value between β represents the importance factor of the heuristic function, s Indicates the ordinal number of feature points in the transferable set, allow k Represents ants k Transferable collections, θ is ( t ) indicates the t Feature points in iteration i and feature points s The pheromone concentration between η is Representing feature points i and feature points s The heuristic function value between ; Update the pheromone matrix, the formula is as follows: ; in, θ ij ( t+ 1) Indicates the t+ 1 Feature points in iteration i and feature points j The pheromone concentration between represents the global pheromone increment, Represents the local pheromone increment.
4. The method according to claim 1, characterized in that: Performing cluster analysis on the pre-acquired historical cutting data, the cluster analysis comprising: The historical cutting data includes cutting data under multiple viewing angles; For the cut data of each perspective, similarity matrices at multiple granularity levels are constructed by adjusting the parameters of similarity measurement; Based on the similarity matrix of each granularity level of each viewpoint, the Laplacian matrix is calculated; Based on each Laplace matrix, multiply it with the shared low-dimensional subspace representation matrix in turn to generate the Laplace transformed matrix, calculate the sum of the traces of the Laplace transformed matrix, and construct the objective function by combining the normalization constraint and non-negative constraint of the view weight; The shared low-dimensional subspace representation matrix is fixed, and the value corresponding to the objective function is minimized by iteratively optimizing the objective function, the view weight is updated, the view weight is fixed, and the shared low-dimensional subspace representation matrix is updated by solving the generalized eigenvalue with the view weight as the coefficient, and the view weight and the shared low-dimensional subspace representation matrix are updated alternately until a preset number of iterations is reached, and the optimal adaptive view weight and the optimal shared low-dimensional subspace representation matrix are determined; The optimal shared low-dimensional subspace representation matrix of each granularity level is clustered to obtain the clustering result. Based on the optimal adaptive view weight, the clustering results of different granularity levels are fused through a voting mechanism to obtain the final clustering result. Based on the final clustering results, the cluster centers and cluster labels of samples are adjusted through iterative optimization to minimize the total loss of clustering similarity and determine the optimal clustering results.
5. The method according to claim 4, characterized in that The objective function is formulated as follows: ; in, Z represents the shared low-dimensional subspace representation matrix, w represents the perspective weight, V represents the total number of all viewing angles, v represents the perspective ordinal number, G Represents the total number of all granularity levels, g Indicates the ordinal number of the granularity level, w v,g Representation perspective v At the granular level g The weight of represents the trace of the matrix, L v,g represents the Laplacian matrix of the view v at the granularity level g, λ 1 represents the first regularization coefficient, B v,g Representation perspective v At the granular level g The target matrix, λ 2 represents the second regularization coefficient, Represents the square of the Frobenius norm.
6. The method according to claim 1, characterized in that Select process parameters as optimization variables, construct fitness functions according to cutting quality evaluation indicators, use hybrid coding to encode the process parameters in genetic chromosomes, combine adaptive crossover mutation probability, iterate the process parameters through genetic algorithms, generate optimal process parameters, and implement offline process optimization, including: Selecting one or more of laser power, cutting speed and focus position as optimization variables, and constructing a fitness function according to a cutting quality evaluation index; The optimization variables are mixedly coded, where continuous variables are coded with real numbers and discrete variables are coded with integers to form chromosome strings. Each chromosome string corresponds to a set of process parameter combinations. The initial population individuals are randomly generated according to the preset population size. Based on the fitness function, the fitness value corresponding to the chromosome string is calculated, and a high-quality individual is selected as a parent individual by a selection operator, a crossover operation is performed on the chromosome string corresponding to the parent individual to generate a new child individual, and a mutation operation is performed on the chromosome string corresponding to the child individual to introduce a new gene; Calculate the diversity index of the population, including gene entropy and fitness variance. When the diversity index is lower than the preset diversity threshold, the crossover and mutation probabilities are increased by linear interpolation according to the ratio of the current number of iterations to the maximum number of iterations. When the diversity index is higher than the preset threshold, the crossover and mutation probabilities are reduced by linear interpolation. Until the preset maximum number of iterations is reached, the individual with the highest fitness value in the current population is output as the optimal process parameters.
7. A UV laser cutting control system, used to implement the method described in any one of claims 1 to 6, characterized in that: include: The first unit is used to identify the geometric features of the contour of the workpiece to be cut, extract the feature points and the tangent directions corresponding to the feature points, iteratively determine the optimal contour cutting path through the ant colony algorithm based on the cutting direction constraint and the laser head motion constraint, smooth the optimal contour cutting path, and generate a cutting control action; The second unit is used to execute the cutting control action, collect cutting image information corresponding to the cutting process based on the visual sensor, extract cutting feature parameters through the image segmentation algorithm, perform cluster analysis on the historical cutting data acquired in advance, build a nonlinear mapping model between the cutting feature parameters and the ultraviolet laser power, determine the adaptive control rules, combine with the time delay compensation module, learn the future cutting state changes, generate the ultraviolet laser power real-time adjustment amount through the real-time cutting feature parameters based on the adaptive control rules, and implement online cutting control; The third unit is used to select process parameters as optimization variables, construct a fitness function according to the cutting quality evaluation index, use a hybrid encoding method to encode the process parameters in a genetic chromosome, combine the adaptive crossover mutation probability, iterate the process parameters through a genetic algorithm, generate the optimal process parameters, and implement offline process optimization.
8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method for visual inspection and laser cutting track planning of low-gray-level rubber cushion
CN111299815A
CAD model generation method and system based on integral sketch
CN118395528A
Double-resource die job shop scheduling optimization method based on ammas-ga nested algorithm
WO2022000924A1
