SLM forming process performance prediction and multi-agent collaborative optimization method and storage medium
By optimizing the initial weights of the BP neural network using SSA and Adam, and combining this with the DBO algorithm to optimize the SLM process parameters, the complexity and instability of determining SLM forming process parameters were resolved. This enabled rapid and stable performance prediction and parameter optimization, thereby improving the forming quality and mechanical properties of SLM.
Patent Information
- Application Number
- CN202611188346.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-06
- Publication Date
- 2026-11-27
AI Technical Summary
Existing methods for determining SLM forming process parameters suffer from long experimental cycles, high material consumption, complex calculations, and difficulty in meeting the need for rapid adjustments. Conventional neural network prediction results are unstable, and intelligent optimization algorithms struggle to balance multiple performance indicators and constraints.
The initial weights and biases of the BP neural network are optimized using SSA, the model is trained using the Adam algorithm, and the process parameter constraints are optimized using the DBO optimization algorithm. This establishes a method for predicting SLM forming performance and multi-agent collaborative optimization, integrating performance prediction and parameter optimization functions.
It enables rapid and stable prediction of SLM forming performance and efficient parameter optimization, reduces reliance on manual experience, and improves the control efficiency of forming quality and mechanical properties.
Smart Images

Figure CN123179585A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of additive manufacturing and intelligent process optimization, specifically to a method for performance prediction and process parameter optimization of selective laser melting forming based on machine learning and intelligent optimization algorithms, and particularly to a method for performance prediction and multi-agent collaborative optimization of SLM forming process and a storage medium. Background Technology
[0002] Selective Laser Melting (SLM) is a metal additive manufacturing technology that uses metal powder as raw material and a high-energy laser beam to scan and melt it layer by layer along a predetermined path to form a shape. This technology features high degree of freedom in forming, high material utilization, and suitability for manufacturing complex structural parts, and has been applied in fields such as aerospace, mold making, biomedicine, and automotive manufacturing.
[0003] In the SLM forming process, key process parameters such as laser power, scanning speed, scanning spacing, powder layer thickness, and scanning method collectively affect the temperature distribution, solidification behavior, and thermal cycling process of the molten pool, thereby influencing the residual stress, yield strength, tensile strength, and other performance indicators of the formed part. There is a strong coupling relationship between different process parameters. Excessive energy input may cause overheating of the molten pool, evaporation spatter, and significant thermal stress; insufficient energy input may lead to poor fusion, reduced porosity, and decreased density. Therefore, the rational selection of process parameters is crucial for ensuring the quality and mechanical properties of SLM forming.
[0004] The determination of existing SLM process parameters typically relies on orthogonal experiments, single-factor experiments, empirical formulas, or numerical simulation methods. Experimental methods require the preparation of a large number of samples and the testing of temperature, stress, and mechanical properties, resulting in long testing cycles, high material consumption, and high costs. While numerical simulation methods can analyze the temperature and stress fields during the forming process, they usually require the establishment of complex finite element models and the setting of material thermophysical parameters, boundary conditions, and heat source models. The calculation process is complex and cannot meet the needs for rapid adjustment of process parameters.
[0005] With the development of machine learning technology, neural networks can be used to establish nonlinear mapping relationships between SLM process parameters and forming performance, and predict forming performance based on input process parameters. However, the initial weights and biases of conventional neural networks are usually determined randomly, making the model training results susceptible to the influence of initial parameters, which may lead to slow convergence, unstable prediction results, or getting trapped in local optima. Furthermore, some existing methods only predict a single performance index, failing to simultaneously consider the relationships between multiple performance indices such as mean stress, temperature, yield strength, and tensile strength.
[0006] In optimizing process parameters, existing methods typically use the maximum or minimum of a single index as the optimization objective, or employ simple weighting to handle multiple indices, rarely considering constraints such as yield strength, tensile strength, and volumetric energy density simultaneously. If the sole objective is to reduce forming stress, the resulting parameter combination may not meet the strength requirements of the formed part; without constraints on volumetric energy density, the process parameter combination may fall into regions with excessively high or low energy input. Furthermore, some intelligent optimization algorithms suffer from the difficulty of balancing search accuracy and convergence speed, and when using a fixed number of iterations as the stopping condition, the algorithm may stop before convergence or continue to perform a large amount of invalid calculations after the results have stabilized. Summary of the Invention
[0007] To address the aforementioned issues, this invention proposes a method for predicting SLM forming process performance and a multi-agent collaborative optimization method and storage medium. This method uses SSA to globally optimize the initial weights and biases of the BP neural network and employs the Adam algorithm for model fine-tuning training to improve the stability and accuracy of the prediction model, enabling SLM forming process performance prediction under given input parameters. Based on the prediction model algorithm, the DBO optimization algorithm is used to constrain and optimize the process parameters, thereby obtaining a better combination of SLM process parameters while satisfying the given range of yield strength, tensile strength, and volumetric energy density.
[0008] This invention discloses a method for predicting the performance of SLM forming process and for multi-agent collaborative optimization, comprising the following steps: The first step is to obtain SLM process test data, which includes input process parameters and forming performance indicators corresponding to the input process parameters. The input process parameters are laser power, scanning speed, scanning spacing, powder layer thickness and scanning mode. The forming performance indicators are average stress, average temperature, yield strength and tensile strength. The second step is to standardize the field names in the SLM process test data obtained in the first step, clean up missing and invalid data, and divide the test data into training set, validation set and test set according to a preset ratio; and use the statistical parameters of the training set to standardize the input process parameters and output performance indicators respectively. The third step is to use the input process parameters processed in the second step as the input of the BP neural network and the forming performance index processed in the second step as the output of the BP neural network to establish a nonlinear mapping relationship between the SLM process parameters and the forming performance index. The fourth step is to use the Sparrow Search Algorithm (SSA) to optimize the initial weights and biases of the BP neural network, thereby obtaining the optimal combination of initial weights and biases. The fifth step involves using the Adam algorithm to train and fine-tune the BP neural network optimized by the Sparrow Search Algorithm (SSA) to obtain the optimal BP neural network parameters. The saved optimal network parameters are then loaded into the BP neural network to obtain the optimized and trained SLM forming performance prediction model. The sixth step involves determining the optimization conditions for the process parameters as needed. These conditions include the range of laser power, scanning speed, scanning spacing, powder layer thickness, fixed scanning mode, minimum yield strength, minimum tensile strength, and volumetric energy density. The purpose of this step is to set search boundaries and constraints for the subsequent adaptive DBO process parameter optimization process, ensuring that the algorithm optimizes only within the parameter range allowed by the equipment and reasonable in the process. By constraining the minimum yield strength, minimum tensile strength, and volumetric energy density ranges, feasible combinations of process parameters that meet the mechanical performance and thermal input requirements are selected. The seventh step involves using laser power, scanning speed, scanning spacing, and powder layer thickness as variables to be optimized. Multiple candidate process parameter combinations are randomly generated based on the upper and lower boundaries of each variable to be optimized, and the initial fitness value of each candidate process parameter combination is calculated to complete the initialization of the DBO population of the dung beetle optimization algorithm, providing an initial search basis for subsequent DBO iteration updates, feasible solution screening, and optimal process parameter search. The eighth step involves inputting the combination of each candidate process parameter and the fixed scanning method into the trained SLM forming performance prediction model to obtain the corresponding predicted average stress, predicted average temperature, predicted yield strength, and predicted tensile strength. The comprehensive fitness value of candidate process parameter combinations is obtained by using predicted mean stress, predicted yield strength, predicted tensile strength, and volumetric energy density. The dung beetle population location is updated based on the comprehensive fitness value of each candidate process parameter combination; During the dung beetle population position update process, the directional memory coefficient and distance perturbation coefficient in the rolling dung beetle position update, as well as the random perturbation coefficient in the stealing dung beetle position update, are dynamically adjusted based on the current iteration number, the maximum iteration number, and the proportion of feasible solutions in the current population that satisfy all constraints. Step 9: When the predicted yield strength corresponding to the candidate process parameter combination is not lower than the minimum yield strength, the predicted tensile strength is not lower than the minimum tensile strength, and the volumetric energy density is within the preset range, the candidate process parameter combination is determined as a feasible solution. When the predicted average stress of the feasible solution is lower than the predicted average stress of the current historical feasible optimal solution, the historical feasible optimal solution is updated. When a candidate combination of process parameters does not meet any constraint, the corresponding constraint violation penalty is added to its fitness value, and the population search continues. Step 10: After reaching the preset minimum number of iterations, compare the total improvement of the historical feasible optimal average stress within the most recent preset iteration window. When the total improvement is less than the preset improvement threshold, the algorithm is determined to have converged and stops iterating; When the total improvement is not less than the preset improvement threshold, return to step 8 to continue searching for process parameters until the convergence condition is met or the maximum number of iterations is reached. Step 11: When a feasible solution that satisfies all constraints is obtained during the search process, output the laser power, scanning speed, scanning spacing, powder layer thickness and fixed scanning mode corresponding to the historical feasible optimal solution, and output the predicted average stress, predicted average temperature, predicted yield strength, predicted tensile strength and volumetric energy density corresponding to the combination of process parameters. When a feasible solution satisfying all constraints is not obtained even after reaching the maximum number of iterations, the approximate optimal combination of process parameters and its corresponding prediction performance in the sense of the penalty function are output.
[0009] Preferably, in the third step, the BP neural network includes an input layer, a first hidden layer, a second hidden layer, and an output layer; The input layer consists of 5 nodes, which correspond to the encoding of laser power, scanning speed, scanning spacing, powder layer thickness, and scanning method, respectively. The output layer includes four nodes, corresponding to mean stress, mean temperature, yield strength, and tensile strength, respectively.
[0010] Preferably, in step four, the initial weights and biases of the BP neural network are optimized using the Sparrow Search Algorithm (SSA) as follows: all weights and biases in the BP neural network are expanded into a parameter vector to be optimized, the sparrow population is initialized, and the sparrow population size, maximum number of iterations, and parameter search boundary are set. The parameter vector corresponding to each sparrow individual is assigned to the BP neural network, and the prediction error of the neural network is calculated using the validation set. The neural network parameters corresponding to each sparrow individual are evaluated, and the prediction error is used as the fitness value of the sparrow individual. The Sparrow Search Algorithm (SSA) evaluates sparrow individuals in order of increasing fitness value. The smaller the fitness value, the better the initial weights and biases of the corresponding neural network, thus obtaining the optimal combination of initial weights and biases.
[0011] Preferably, in the fifth step, the Adam algorithm is used to train and fine-tune the BP neural network optimized by the Sparrow Search Algorithm (SSA). Specifically, the optimal initial weights and biases obtained in the fourth step are assigned to the BP neural network. The BP neural network is trained in batches using the training set, and the prediction effect of the model during the training process is evaluated using the validation set. When the prediction effect of the validation set is improved, the current BP neural network parameters are saved. When the prediction effect of the validation set is not improved for a preset number of consecutive rounds, the training is stopped, and the BP neural network parameters corresponding to the best prediction effect of the validation set are restored.
[0012] Preferably, in step six, the volumetric energy density E is determined by the laser power, scanning speed, scanning spacing, and layer thickness, and calculated using the following formula: ; Where P is the laser power, V is the scanning speed, H is the scanning spacing, and T is the layer thickness; When the volumetric energy density is less than the set lower limit or greater than the set upper limit, the candidate process parameter combination does not meet the volumetric energy density constraint.
[0013] Preferably, in step seven, a dung beetle population is randomly generated within the respective ranges of laser power, scanning speed, scanning spacing, and powder layer thickness; each dung beetle individual represents a set of candidate process parameter combinations, and each candidate process parameter combination is expressed as follows: ; in, For the first Individual dung beetle; For the first Laser power in the candidate process parameters; No. Scanning speed in the candidate process parameters; No. Scanning interval in the candidate process parameters; No. The thickness of the powder layer in the candidate process parameters.
[0014] Preferably, in step eight, the expression for the overall fitness value is as follows: ; in, The overall fitness value, To predict mean stress, This is the penalty coefficient; For penalties, the following formula is used for calculation: ; in, To predict yield strength, The lower limit of the set yield strength, To predict tensile strength, The set lower limit of tensile strength, For volumetric energy density, and These are the lower and upper limits of volumetric energy density, respectively. When the corresponding constraints are met, the corresponding penalty term is zero. The smaller the overall fitness value, the better the combination of candidate process parameters.
[0015] Preferably, in the ninth step, to improve the search stability and convergence efficiency of the dung beetle optimization algorithm in the SLM multi-constraint process parameter optimization process, an adaptive perturbation coefficient update mechanism is introduced during the dung beetle population position update process: Let the adaptive perturbation coefficient at the t-th iteration be... , and ,in, For the directional memory coefficients in the position update of the rolling dung beetle, This represents the distance perturbation coefficient in the position update of the rolling dung beetle. For the random perturbation coefficient in the dung beetle's position update; The dung beetle population size is N. In the t-th iteration, the number of feasible solutions satisfying all constraints on yield strength, tensile strength, and volumetric energy density is _____. The proportion of feasible solutions in the current population for: ; Let the maximum number of iterations be Then the adaptive adjustment factor for: ; According to the adaptive adjustment factor The three adaptive perturbation coefficients are updated according to the following formulas: ; ; ; in, and These are the lower and upper limits of the directional memory coefficient, respectively; and These are the lower and upper limits of the distance perturbation coefficient, respectively; and These are the lower and upper limits of the random disturbance coefficient, respectively; When the algorithm is in the early stages of the search or the proportion of feasible solutions is low Larger , and The corresponding increase is made to enhance the global exploration capability of the population; when the algorithm enters the later stages of the search or the proportion of currently feasible solutions is high, Smaller , and The corresponding reduction is used to enhance local development capabilities and convergence stability.
[0016] A computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the SLM forming process performance prediction and multi-agent collaborative optimization method.
[0017] This invention, by inputting SLM process parameters such as laser power, scanning speed, scanning spacing, powder layer thickness, and scanning method, utilizes a trained BP neural network prediction model to obtain corresponding forming performance prediction results such as average stress, average temperature, yield strength, and tensile strength. Based on this, by setting the value ranges for laser power, scanning speed, scanning spacing, and powder layer thickness, as well as constraints such as minimum yield strength, minimum tensile strength, and volumetric energy density ranges, the dung beetle optimization algorithm iteratively searches for candidate process parameter combinations to obtain process parameter combinations that satisfy preset performance constraints and have low predicted average stress.
[0018] This invention employs a sparrow search algorithm to optimize the initial weights and biases of a backpropagation (BP) neural network, and uses the Adam algorithm to train and fine-tune the BP neural network. This reduces the impact of random initial weights and biases on the model training results and improves the stability of the forming performance prediction model training process. During process parameter optimization, the predicted average stress is used as the primary optimization objective, and penalties are applied to candidate process parameter combinations that do not meet yield strength constraints, tensile strength constraints, or volumetric energy density constraints. This ensures that the optimized results can balance forming stress, material mechanical properties, and laser energy input requirements.
[0019] For different material grades or different SLM forming conditions, corresponding process parameters and forming performance training samples can be established through experiments. The training samples are then loaded into the prediction and optimization model of this invention to retrain the model and iteratively optimize the process parameters. This enables the auxiliary selection of SLM process parameter combinations for corresponding materials, reduces the workload of repeated experiments based on human experience, and improves the efficiency of forming performance prediction and process parameter screening and optimization.
[0020] Compared with the prior art, the beneficial effects of the present invention are also reflected in the following three aspects: First, at the application level, this invention does not merely predict the forming performance of SLM, but integrates forming performance prediction and process parameter optimization into the same framework. On one hand, it uses a trained prediction model to rapidly predict average stress, average temperature, yield strength, and tensile strength based on laser power, scanning speed, scanning spacing, powder layer thickness, and scanning method. On the other hand, it further optimizes process parameters based on the prediction model, thereby achieving continuous processing from "performance prediction" to "parameter optimization," improving the efficiency and practicality of SLM process parameter selection. Secondly, at the algorithm combination level, this invention employs a staged coupling of SSA-Adam-BP and DBO algorithms. SSA is used to optimize the initial weights and biases of the BP neural network, while Adam is used to train and fine-tune the BP neural network. The trained BP neural network serves as the SLM forming performance prediction model, and DBO uses this prediction model as a surrogate model to search for process parameters. Through this algorithm combination, this invention integrates prediction model training with process parameter optimization, avoiding the problems of low efficiency and insufficient stability caused by relying solely on empirical experiments or a single optimization algorithm. Third, at the algorithm improvement level, this invention addresses the multi-constraint process parameter optimization problem in SLM by improving the dung beetle optimization algorithm through constraint adaptation and adaptive parameters. During process parameter optimization, for candidate process parameter combinations that do not meet the constraints of yield strength, tensile strength, or volumetric energy density, a constraint violation penalty is added to the fitness function; for candidate solutions that satisfy all constraints, the lowest predicted average stress is used as the basis for updating the feasible optimal solution. Simultaneously, based on the current iteration number, the maximum iteration number, and the proportion of feasible solutions satisfying all constraints in the current population, the direction memory coefficient in the rolling dung beetle position update is dynamically adjusted. ), distance disturbance coefficient ( ) and the random perturbation coefficient in the dung beetle location update ( This enhances the algorithm's global exploration capability in the early stages of the search or when there are few feasible solutions, and enhances its local development capability in the later stages of the search or when there are many feasible solutions. Furthermore, after reaching the preset minimum number of iterations, the algorithm converges based on the total improvement of the historical optimal average stress within the most recent preset iteration window, thereby reducing invalid iterations and improving the stability and search efficiency of the process parameter optimization process. Attached Figure Description
[0021] Figure 1 This is a structural diagram of the algorithm framework of the present invention.
[0022] Figure 2 This is a flowchart illustrating the implementation process of the present invention.
[0023] Figure 3This is a flowchart illustrating the process parameter optimization based on the dung beetle optimization algorithm of this invention.
[0024] Figure 4 This is a flowchart of the adaptive parameter update mechanism based on the dung beetle optimization algorithm of this invention.
[0025] Figure 5 This is a schematic diagram of the operating interface of the SLM forming performance prediction and process parameter optimization system of the present invention. Detailed Implementation
[0026] The present invention will be described below with reference to the accompanying drawings.
[0027] See Figure 1-4 As shown, the present invention provides a method for predicting the performance of SLM forming process and for multi-agent collaborative optimization, comprising the following steps: The first step is to acquire SLM process test data. The SLM process test data includes input process parameters and forming performance indicators corresponding to the input process parameters. The input process parameters are laser power, scanning speed, scanning spacing, powder layer thickness, and scanning mode. The forming performance indicators are average stress, average temperature, yield strength, and tensile strength. The scanning mode encoding includes at least one of 0-unidirectional scanning, 1-reciprocating scanning, 2-rotational scanning, and 3-partition scanning. The second step involves preprocessing and standardizing the acquired SLM process test data. This includes unifying field names, cleaning up missing and invalid data, and dividing the test data into training, validation, and test sets according to preset proportions. The statistical parameters of the training set are used to standardize the input process parameters and output performance indicators. The default proportions for the training, validation, and test sets are 70%, 15%, and 15%, respectively. The mean and standard deviation of the training set are used to standardize the input process parameters and output performance indicators in the training, validation, and test sets. The third step is to construct a BP neural network prediction model. Laser power, scanning speed, scanning spacing, powder layer thickness, and scanning mode encoding are used as inputs to the BP neural network, while average stress, average temperature, yield strength, and tensile strength are used as outputs. A nonlinear mapping relationship is established between SLM process parameters and forming performance indicators. The BP neural network includes an input layer, a first hidden layer, a second hidden layer, and an output layer. The input layer includes 5 nodes, corresponding to the laser power, scanning speed, scanning spacing, powder layer thickness, and scanning mode encoding, respectively. The output layer includes 4 nodes, corresponding to average stress, average temperature, yield strength, and tensile strength, respectively. In one embodiment, the default number of nodes in the first hidden layer and the second hidden layer are 16 and 8, respectively. The fourth step involves optimizing the initial weights and biases of the BP neural network using the Sparrow Search Algorithm (SSA). All weights and biases in the BP neural network are expanded into a parameter vector to be optimized. The sparrow population is initialized, and the population size, maximum number of iterations, and parameter search boundary are set. The prediction error of the validation set is used to evaluate the neural network parameters corresponding to each sparrow individual. The position of the sparrow individual is iteratively updated based on the evaluation results to obtain the optimal initial weight and bias combination. The parameter vector corresponding to each sparrow individual is assigned to the BP neural network, and the prediction error of the neural network is calculated using the validation set. This prediction error is used as the fitness value of the sparrow individual. The Sparrow Search Algorithm evaluates sparrow individuals in ascending order of fitness value; a smaller fitness value indicates a better initial weight and bias for the corresponding neural network. The fifth step involves training and fine-tuning the BP neural network optimized by the sparrow search algorithm using the Adam algorithm. The optimal initial weights and biases obtained in the fourth step are assigned to the BP neural network. The BP neural network is then trained in batches using the training set, and the prediction performance of the model during training is evaluated using the validation set. When the prediction performance on the validation set improves, the current BP neural network parameters are saved. When the prediction performance on the validation set does not improve for a preset number of consecutive rounds, training is stopped, and the BP neural network parameters corresponding to the best prediction performance on the validation set are restored. The saved optimal network parameters are then loaded into the BP neural network to obtain the optimized SLM forming performance prediction model. Step 6: Input process parameter optimization conditions; the process parameter optimization conditions include the range of laser power, the range of scanning speed, the range of scanning spacing, the range of powder layer thickness, fixed scanning mode, minimum yield strength, minimum tensile strength, and volumetric energy density range. The volumetric energy density E is determined by the laser power, scanning speed, scanning spacing, and layer thickness, and is calculated using the following formula: ; Where P is the laser power, V is the scanning speed, H is the scanning spacing, and T is the layer thickness; When the volumetric energy density is less than the set lower limit or greater than the set upper limit, the candidate process parameter combination does not meet the volumetric energy density constraint. Step 7: Initialize the DBO population for the dung beetle optimization algorithm; take laser power, scanning speed, scanning spacing and powder layer thickness as variables to be optimized, randomly generate multiple candidate process parameter combinations according to the upper and lower boundaries of each variable to be optimized, and calculate the initial fitness value of each candidate process parameter combination. Specifically, dung beetle populations are randomly generated within the respective ranges of laser power, scanning speed, scanning spacing, and powder layer thickness; each dung beetle individual represents a set of candidate process parameter combinations, and each candidate process parameter combination is expressed as follows: ; in, For the first Individual dung beetle; For the first Laser power in the candidate process parameters; No. Scanning speed in the candidate process parameters; No. Scanning interval in the candidate process parameters; No. The powder layer thickness in the candidate process parameters; The eighth step involves inputting the combination of each candidate process parameter and the fixed scanning method into the trained SLM forming performance prediction model to obtain the corresponding predicted average stress, predicted average temperature, predicted yield strength, and predicted tensile strength. The comprehensive fitness value of candidate process parameter combinations is obtained by using predicted mean stress, predicted yield strength, predicted tensile strength, and volumetric energy density. The dung beetle population location is updated based on the comprehensive fitness value of each candidate process parameter combination; During the dung beetle population position update process, the directional memory coefficient and distance perturbation coefficient in the rolling dung beetle position update, as well as the random perturbation coefficient in the stealing dung beetle position update, are dynamically adjusted based on the current iteration number, the maximum iteration number, and the proportion of feasible solutions in the current population that satisfy all constraints. The expression for the overall fitness value is as follows: ; in, The overall fitness value, To predict mean stress, This is the penalty coefficient; For penalties, the following formula is used for calculation: ; in, To predict yield strength, The lower limit of the set yield strength, To predict tensile strength, The set lower limit of tensile strength, For volumetric energy density, and These are the lower and upper limits of volumetric energy density, respectively. When the corresponding constraints are met, the corresponding penalty term is zero. The smaller the overall fitness value, the better the combination of candidate process parameters. Step 9: Determine whether the candidate process parameter combination meets the constraints. When the predicted yield strength and predicted tensile strength of the candidate process parameter combination are not lower than the minimum yield strength and the predicted tensile strength are not lower than the minimum tensile strength, and the volumetric energy density is within the preset range, the candidate process parameter combination is determined as a feasible solution. When the predicted average stress of the feasible solution is lower than the predicted average stress of the current historical feasible optimal solution, the historical feasible optimal solution is updated. When the candidate process parameter combination does not meet any constraint, the corresponding constraint violation penalty is added to its fitness value, and the population search continues. To improve the search stability and convergence efficiency of the dung beetle optimization algorithm in the SLM multi-constraint process parameter optimization process, an adaptive perturbation coefficient update mechanism is introduced during the dung beetle population position update process: Let the adaptive perturbation coefficient at the t-th iteration be... , and ,in, For the directional memory coefficients in the position update of the rolling dung beetle, This represents the distance perturbation coefficient in the position update of the rolling dung beetle. For the random perturbation coefficient in the dung beetle's position update; The dung beetle population size is N. In the t-th iteration, the number of feasible solutions satisfying all constraints on yield strength, tensile strength, and volumetric energy density is _____. The proportion of feasible solutions in the current population for: ; Let the maximum number of iterations be Then the adaptive adjustment factor for: ; According to the adaptive adjustment factor The three adaptive perturbation coefficients are updated according to the following formulas: ; ; ; in, and These are the lower and upper limits of the directional memory coefficient, respectively; and These are the lower and upper limits of the distance perturbation coefficient, respectively; and These are the lower and upper limits of the random disturbance coefficient, respectively; When the algorithm is in the early stages of the search or the proportion of feasible solutions is low Larger , and The corresponding increase is made to enhance the global exploration capability of the population; when the algorithm enters the later stages of the search or the proportion of currently feasible solutions is high, Smaller , and The corresponding reduction is made to enhance local exploitation capabilities and convergence stability; In each iteration, feasible solutions that satisfy all constraints are selected from the candidate process parameter combinations generated in this round. Among the feasible solutions, the optimal feasible solution with the lowest predicted average stress is determined. When the predicted average stress of the optimal feasible solution in this round is lower than the predicted average stress of the historical optimal feasible solution, the laser power, scanning speed, scanning spacing and powder layer thickness corresponding to the optimal feasible solution in this round are updated to the historical optimal feasible process parameters. In one embodiment, the minimum number of iterations is 500 rounds, the preset iteration window is the most recent 100 rounds, and the preset improvement threshold is [missing information]. MPa, with a maximum number of iterations of 10,000 rounds; the minimum number of iterations, preset iteration window, preset improvement threshold, and maximum number of iterations can be adjusted according to the scale of experimental data and the requirements for optimization accuracy. Step 10: Determine whether the dung beetle optimization algorithm meets the convergence condition; after the algorithm reaches the preset minimum number of iterations, compare the total improvement of the historical feasible optimal average stress within the most recent preset iteration window; when the total improvement is less than the preset improvement threshold, determine that the algorithm has converged and stop iterating; when the total improvement is not less than the preset improvement threshold, return to step 8 to continue searching for process parameters until the convergence condition is met or the maximum number of iterations is reached. Step 11: Output the optimization results. When a feasible solution satisfying all constraints is obtained during the search process, output the laser power, scanning speed, scanning spacing, powder layer thickness, and fixed scanning mode corresponding to the historical feasible optimal solution, and output the predicted average stress, predicted average temperature, predicted yield strength, predicted tensile strength, and volumetric energy density corresponding to this combination of process parameters. When a feasible solution satisfying all constraints is not obtained after reaching the maximum number of iterations, output the approximate optimal combination of process parameters in the sense of the penalty function and its corresponding prediction performance.
[0028] A computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the SLM forming process performance prediction and multi-agent collaborative optimization method.
[0029] As a specific embodiment, this invention provides a method for SLM process performance prediction and parameter optimization, which is implemented through programming to obtain the following results: Figure 5The interface shown is for the SLM process performance prediction and parameter optimization system. This system interface mainly includes a data and training module, a single-sample prediction module, a process optimization module, and a results chart module.
[0030] like Figure 5 As shown, after importing the SLM process example experimental data file into the data and training module, the system displays the data status as "loaded," with a total of 320 samples, including 224 training samples, 48 validation samples, and 48 test samples. The input feature dimension is 5, and the output target dimension is 4. Input features include laser power, scanning speed, scanning interval, powder layer thickness, and scanning mode. Output targets include average stress, average temperature, yield strength, and tensile strength. In the model training parameters, the number of nodes in the first hidden layer of the BP neural network is set to 16, the number of nodes in the second hidden layer is set to 8, the learning rate is set to 0.001, the number of training epochs is set to 300, the batch size is set to 32, the SSA population size is set to 20, the SSA iteration count is set to 30, the training ratio is set to 0.70, the validation ratio is set to 0.15, and the random seed is set to 42. The system operation log shows that after the model was fine-tuned and trained using the Adam algorithm, the training loss and validation loss gradually decreased, indicating that the established SSA-Adam-BP neural network can learn the nonlinear mapping relationship between SLM process parameters and forming performance.
[0031] In the single-sample prediction module, the input laser power is 250 W, the scanning speed is 1200 mm / s, the scanning interval is 0.10 mm, the powder layer thickness is 0.03 mm, and the scanning mode is selected as "1=reciprocating scan". After clicking "Start Prediction", the system calls the trained SLM process performance prediction model to predict the forming performance corresponding to this set of process parameters. The prediction results show that the predicted average stress corresponding to this set of process parameters is 130.2875 MPa, the predicted average temperature is 659.3181℃, the predicted yield strength is 592.2787 MPa, and the predicted tensile strength is 673.5860 MPa. This demonstrates that the system can quickly output corresponding multi-performance prediction results after inputting a single set of SLM process parameters.
[0032] In the process optimization module, the laser power search range is set to 180–320 W, the scanning speed search range to 800–1800 mm / s, the scanning spacing search range to 0.08–0.14 mm, the powder layer thickness search range to 0.02–0.05 mm, and the volumetric energy density range to 40–80 J / mm³. The fixed scanning mode is "1 = reciprocating scan". The minimum yield strength is set to 430 MPa, the minimum tensile strength is set to 520 MPa, and the optimization stop threshold is set to... After clicking "Start Optimization", the system uses the trained SSA-Adam-BP neural network as the performance prediction model, takes the minimum predicted average stress as the optimization objective, and uses the range of yield strength, tensile strength and volumetric energy density as constraints. It then uses the adaptive DBO algorithm to iteratively optimize the laser power, scanning speed, scanning spacing and powder layer thickness.
[0033] The optimization results show that, under the above constraints, the optimal combination of process parameters output by the system is as follows: optimal laser power 198.7956 W, optimal scanning speed 1800.0000 mm / s, optimal scanning spacing 0.0800 mm, optimal powder layer thickness 0.0200 mm, and fixed scanning mode "1=reciprocating scan". The predicted average stress corresponding to this combination of process parameters is 106.4688 MPa, the predicted average temperature is 603.7914 ℃, the predicted yield strength is 550.6385 MPa, the predicted tensile strength is 608.9127 MPa, and the volumetric energy density is 69.0263 J / mm³. The system judgment results show that this combination of process parameters meets the strength constraints, and the volumetric energy density is within the set range.
[0034] As demonstrated by the above embodiments, this invention can rapidly predict process performance under given SLM process parameter ranges and performance constraints using an SSA-Adam-BP neural network, and automatically search for optimal process parameter combinations that satisfy yield strength, tensile strength, and volumetric energy density constraints using an adaptive DBO algorithm. Compared to relying solely on manual experiments to select process parameters, this method reduces the number of experiments, improves the efficiency of process parameter optimization, and provides data-driven optimization basis for SLM forming process parameter matching.
Claims
1. A method for predicting the performance of SLM forming process and for multi-agent collaborative optimization, characterized in that, Includes the following steps: The first step is to obtain SLM process test data, which includes input process parameters and forming performance indicators corresponding to the input process parameters. The input process parameters are laser power, scanning speed, scanning spacing, powder layer thickness and scanning mode. The forming performance indicators are average stress, average temperature, yield strength and tensile strength. The second step is to standardize the field names in the SLM process test data obtained in the first step, clean up missing and invalid data, and divide the test data into training set, validation set and test set according to a preset ratio; and use the statistical parameters of the training set to standardize the input process parameters and output performance indicators respectively. The third step is to use the input process parameters processed in the second step as the input of the BP neural network and the forming performance index processed in the second step as the output of the BP neural network to establish a nonlinear mapping relationship between the SLM process parameters and the forming performance index. The fourth step is to use the Sparrow Search Algorithm (SSA) to optimize the initial weights and biases of the BP neural network; To obtain the optimal combination of initial weights and biases; The fifth step involves using the Adam algorithm to train and fine-tune the BP neural network optimized by the Sparrow Search Algorithm (SSA) to obtain the optimal BP neural network parameters. The saved optimal network parameters are then loaded into the BP neural network to obtain the optimized and trained SLM forming performance prediction model. The sixth step is to determine the optimization conditions of the process parameters as needed. The optimization conditions of the process parameters include the range of laser power, the range of scanning speed, the range of scanning spacing, the range of powder layer thickness, fixed scanning mode, minimum yield strength, minimum tensile strength, and volumetric energy density. The seventh step involves using laser power, scanning speed, scanning spacing, and powder layer thickness as variables to be optimized. Multiple candidate process parameter combinations are randomly generated based on the upper and lower boundaries of each variable to be optimized, and the initial fitness value of each candidate process parameter combination is calculated to complete the initialization of the dung beetle optimization algorithm population. This process provides an initial search basis for subsequent DBO iteration updates, feasible solution screening, and optimal process parameter search. The eighth step involves inputting the combination of each candidate process parameter and the fixed scanning method into the trained SLM forming performance prediction model to obtain the corresponding predicted average stress, predicted average temperature, predicted yield strength, and predicted tensile strength. The comprehensive fitness value of candidate process parameter combinations is obtained by using predicted mean stress, predicted yield strength, predicted tensile strength, and volumetric energy density. The dung beetle population location is updated based on the comprehensive fitness value of each candidate process parameter combination; During the dung beetle population position update process, the directional memory coefficient and distance perturbation coefficient in the rolling dung beetle position update, as well as the random perturbation coefficient in the stealing dung beetle position update, are dynamically adjusted based on the current iteration number, the maximum iteration number, and the proportion of feasible solutions in the current population that satisfy all constraints. Step 9: When the predicted yield strength corresponding to the candidate process parameter combination is not lower than the minimum yield strength, the predicted tensile strength is not lower than the minimum tensile strength, and the volumetric energy density is within the preset range, the candidate process parameter combination is determined as a feasible solution. When the predicted average stress of the feasible solution is lower than the predicted average stress of the current historical feasible optimal solution, the historical feasible optimal solution is updated. When a candidate combination of process parameters does not meet any constraint, the corresponding constraint violation penalty is added to its fitness value, and the population search continues. Step 10: After reaching the preset minimum number of iterations, compare the total improvement of the historical feasible optimal average stress within the most recent preset iteration window. When the total improvement is less than the preset improvement threshold, the algorithm is determined to have converged and stops iterating; When the total improvement is not less than the preset improvement threshold, return to step 8 to continue searching for process parameters until the convergence condition is met or the maximum number of iterations is reached. Step 11: When a feasible solution that satisfies all constraints is obtained during the search process, output the laser power, scanning speed, scanning spacing, powder layer thickness and fixed scanning mode corresponding to the historical feasible optimal solution, and output the predicted average stress, predicted average temperature, predicted yield strength, predicted tensile strength and volumetric energy density corresponding to the combination of process parameters. When a feasible solution satisfying all constraints is not obtained even after reaching the maximum number of iterations, the approximate optimal combination of process parameters and its corresponding prediction performance in the sense of the penalty function are output.
2. The SLM forming process performance prediction and multi-agent collaborative optimization method as described in claim 1, characterized in that, In the third step, the BP neural network includes an input layer, a first hidden layer, a second hidden layer, and an output layer; The input layer consists of 5 nodes, which correspond to the encoding of laser power, scanning speed, scanning spacing, powder layer thickness and scanning method, respectively; The output layer includes four nodes, corresponding to mean stress, mean temperature, yield strength, and tensile strength, respectively.
3. The SLM forming process performance prediction and multi-agent collaborative optimization method as described in claim 1, characterized in that, In step four, the initial weights and biases of the BP neural network are optimized using the Sparrow Search Algorithm (SSA) as follows: all weights and biases in the BP neural network are expanded into a parameter vector to be optimized, the sparrow population is initialized, and the sparrow population size, maximum number of iterations, and parameter search boundary are set. The parameter vector corresponding to each sparrow individual is assigned to the BP neural network, and the prediction error of the neural network is calculated using the validation set. The neural network parameters corresponding to each sparrow individual are evaluated, and the prediction error is used as the fitness value of the sparrow individual. The Sparrow Search Algorithm (SSA) evaluates sparrow individuals in order of increasing fitness value. The smaller the fitness value, the better the initial weights and biases of the corresponding neural network, thus obtaining the optimal combination of initial weights and biases.
4. The SLM forming process performance prediction and multi-agent collaborative optimization method as described in claim 1, characterized in that, In the fifth step, the Adam algorithm is used to train and fine-tune the BP neural network optimized by the Sparrow Search Algorithm (SSA). Specifically, the optimal initial weights and biases obtained in the fourth step are assigned to the BP neural network. The BP neural network is trained in batches using the training set, and the prediction effect of the model during the training process is evaluated using the validation set. When the prediction effect of the validation set is improved, the current BP neural network parameters are saved. When the prediction effect of the validation set is not improved for a preset number of consecutive rounds, the training is stopped, and the BP neural network parameters corresponding to the best prediction effect of the validation set are restored.
5. The SLM forming process performance prediction and multi-agent collaborative optimization method as described in claim 1, characterized in that, In the sixth step, the volumetric energy density E is determined by the laser power, scanning speed, scanning spacing, and layer thickness, and is calculated using the following formula: ; Where P is the laser power, V is the scanning speed, H is the scanning spacing, and T is the layer thickness; When the volumetric energy density is less than the set lower limit or greater than the set upper limit, the candidate process parameter combination does not meet the volumetric energy density constraint.
6. The SLM forming process performance prediction and multi-agent collaborative optimization method as described in claim 1, characterized in that, In step seven, a dung beetle population is randomly generated within the respective ranges of laser power, scanning speed, scanning spacing, and powder layer thickness. Each dung beetle represents a set of candidate process parameter combinations, and each candidate process parameter combination is expressed as follows: ; in, For the first Individual dung beetle; For the first Laser power in the candidate process parameters; No. Scanning speed in the candidate process parameters; No. Scanning interval in the candidate process parameters; No. The thickness of the powder layer in the candidate process parameters.
7. The method for predicting SLM forming process performance and multi-agent collaborative optimization as described in claim 1, characterized in that, In the eighth step, the expression for the comprehensive fitness value is as follows: ; in, The overall fitness value, To predict mean stress, This is the penalty coefficient; For penalties, the following formula is used for calculation: ; in, To predict yield strength, The lower limit of the set yield strength, To predict tensile strength, The set lower limit of tensile strength, For volumetric energy density, and These are the lower and upper limits of volumetric energy density, respectively. When the corresponding constraints are met, the corresponding penalty term is zero. The smaller the overall fitness value, the better the combination of candidate process parameters.
8. The SLM forming process performance prediction and multi-agent collaborative optimization method as described in claim 1, characterized in that, In the ninth step, to improve the search stability and convergence efficiency of the dung beetle optimization algorithm in the SLM multi-constraint process parameter optimization process, an adaptive perturbation coefficient update mechanism is introduced during the dung beetle population position update process: Let the adaptive perturbation coefficient at the t-th iteration be... , and ,in, For the directional memory coefficients in the position update of the rolling dung beetle, For the distance perturbation coefficient in the position update of the rolling dung beetle, For the random perturbation coefficient in the dung beetle's position update; The dung beetle population size is N. In the t-th iteration, the number of feasible solutions satisfying all constraints on yield strength, tensile strength, and volumetric energy density is _____. The proportion of feasible solutions in the current population for: ; Let the maximum number of iterations be Then the adaptive adjustment factor for: ; According to the adaptive adjustment factor The three adaptive perturbation coefficients are updated according to the following formulas: ; ; ; in, and These are the lower and upper limits of the directional memory coefficient, respectively; and These are the lower and upper limits of the distance perturbation coefficient, respectively; and These are the lower and upper limits of the random disturbance coefficient, respectively; When the algorithm is in the early stages of the search or the proportion of feasible solutions is low Larger , and The corresponding increase is made to enhance the global exploration capability of the population; when the algorithm enters the later stages of the search or the proportion of currently feasible solutions is high, Smaller , and The corresponding reduction is used to enhance local development capabilities and convergence stability.
9. A computer-readable storage medium storing a computer program, wherein when executed by a processor, the computer program implements the steps of the SLM forming process performance prediction and multi-agent collaborative optimization method as described in any one of claims 1-8.
