Precise stainless steel surface treatment optimization method and system
By establishing a model of the relationship between surface roughness and process parameters and optimizing the combination of process parameters, the problem of relying on experience in precision stainless steel surface treatment in the existing technology has been solved, and the surface treatment effect has been improved and stability controlled.
Patent Information
- Application Number
- CN202410948396.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, the selection of process parameters for precision stainless steel surface treatment relies on experience, resulting in poor surface treatment effects and large differences between batches, making it difficult to meet the increasing product performance requirements.
By determining the target surface roughness of the stainless steel product to be processed, multiple process parameter combinations are obtained, and by randomly selecting samples for surface treatment, a relationship model between surface roughness and process parameters is established, and process parameters are optimized based on this model. Obtain the optimal combination of process parameters.
It achieves improvement and stable control of precision stainless steel surface treatment effects, improves production efficiency, and reduces differences between batches.
Smart Images

Figure CN118682633A
Abstract
Description
Technical Field
[0001] The invention relates to the field of metal surface treatment, and in particular to a method and system for optimizing the surface treatment of precision stainless steel. Background Art
[0002] Precision stainless steel surface treatment mainly adopts mechanical polishing, electrolytic polishing, chemical polishing and other methods. In actual production, in order to obtain the ideal surface treatment effect, it is necessary to reasonably select the surface treatment process and optimize the process parameters according to the type of stainless steel material, the shape and size of the product, and the surface quality requirements. However, in the prior art, the selection of surface treatment process parameters mainly depends on the experience and repeated tests of the operator, lacking scientific guidance and optimization methods, resulting in poor surface treatment effect of precision stainless steel, large differences between batches, low production efficiency, and difficulty in meeting the increasingly high product performance requirements. Summary of the invention
[0003] The present application provides a precision stainless steel surface treatment optimization method and system, aiming to solve the technical problem in the prior art that the selection of precision stainless steel surface treatment process parameters relies on experience, resulting in poor surface treatment effects of precision stainless steel.
[0004] In view of the above problems, the present application provides a method and system for optimizing the surface treatment of precision stainless steel.
[0005] The first aspect disclosed in the present application provides a precision stainless steel surface treatment optimization method, the method comprising: determining a stainless steel product to be treated, the stainless steel product to be treated being a batch of stainless steel workpieces to be treated, and obtaining a target surface roughness of the stainless steel product to be treated; obtaining multiple process parameters of the surface treatment process, and setting a value range of the multiple process parameters, and obtaining N process parameter combinations within the value range, wherein N is the number of process parameter combinations; randomly selecting an equal number of stainless steel workpieces to be treated from the stainless steel product to be treated according to the number of process parameter combinations, to obtain N stainless steel workpieces to be treated; performing surface treatment on the N stainless steel workpieces to be treated respectively through the N process parameter combinations, and obtaining N surface roughnesses; establishing a relationship model between surface roughness and process parameters according to the N process parameter combinations and the N surface roughnesses; taking the target surface roughness as a constraint condition and taking the multiple process parameters as decision variables, optimizing the process parameters based on the relationship model, and obtaining the optimal process parameter combination; performing surface treatment on the stainless steel product to be treated through the optimal process parameter combination.
[0006] Another aspect disclosed in the present application provides a precision stainless steel surface treatment optimization system, which includes: a target acquisition module, which is used to determine the stainless steel product to be processed, the stainless steel product to be processed is a batch of stainless steel workpieces to be processed, and obtain the target surface roughness of the stainless steel product to be processed; a parameter combination acquisition module, which is used to obtain multiple process parameters of the surface treatment process, and set the value range of multiple process parameters, and obtain N process parameter combinations within the value range, wherein N is the number of process parameter combinations; a workpiece selection module, which is used to randomly select an equal number of stainless steel workpieces to be processed from the stainless steel product to be processed according to the number of process parameter combinations , obtaining N stainless steel workpieces to be processed; a workpiece surface treatment module, used to perform surface treatment on the N stainless steel workpieces to be processed respectively through N process parameter combinations, and obtain N surface roughnesses; a relationship model establishment module, used to establish a relationship model between surface roughness and process parameters according to the N process parameter combinations and the N surface roughnesses; a process parameter optimization module, used to optimize the process parameters based on the relationship model with the target surface roughness as a constraint condition and multiple process parameters as decision variables, and obtain the optimal process parameter combination; a batch surface treatment module, used to perform surface treatment on the stainless steel products to be processed through the optimal process parameter combination.
[0007] One or more technical solutions provided in this application have at least the following technical effects or advantages: By determining the stainless steel products to be processed, the stainless steel products to be processed are batches of stainless steel workpieces to be processed, and obtaining the target surface roughness of the stainless steel products to be processed, it is clarified that the optimized processing object is a batch of precision stainless steel workpieces, and the target surface roughness of the surface treatment is obtained, providing a basis for subsequent optimization; multiple process parameters of the surface treatment process are obtained, and the value ranges of multiple process parameters are set, and N process parameter combinations are obtained within the value range, where N is the number of process parameter combinations, and the process parameters that affect the surface treatment effect are selected, and by setting the value range, N different process parameter combinations are obtained, which are prepared for subsequent experiments and modeling; according to the number of process parameter combinations, an equal number of stainless steel workpieces to be processed are randomly selected from the stainless steel products to be processed to obtain N stainless steel workpieces to be processed, and samples equal to the number of process parameter combinations are selected from the batch of workpieces to be processed, ensuring that each process parameter combination has a corresponding test sample, thereby improving the representativeness and reliability of the test data; N process parameter combinations are respectively used to test the N stainless steel workpieces to be processed. The stainless steel workpiece is surface treated and N surface roughnesses are obtained, which provides a data basis for establishing a relationship model between process parameters and surface roughness; according to N process parameter combinations and N surface roughnesses, a relationship model between surface roughness and process parameters is established, which describes the relationship between process parameters and surface roughness and provides a tool for optimizing process parameters; with the target surface roughness as a constraint condition and multiple process parameters as decision variables, process parameters are optimized based on the relationship model to obtain the optimal process parameter combination, thereby achieving the optimization of process parameters; the stainless steel product to be treated is surface treated by the optimal process parameter combination, thereby achieving a technical solution for improving the surface treatment effect and stabilizing control, and solving the technical problem that the selection of process parameters for surface treatment of precision stainless steel in the prior art depends on experience, resulting in poor surface treatment effect of precision stainless steel. By establishing a relationship model between surface roughness and process parameters and optimizing process parameters based on the model, the optimal process parameter combination is obtained, thereby achieving the technical effect of improving the surface treatment effect of precision stainless steel.
[0008] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A flow chart of a method for optimizing the surface treatment of precision stainless steel is provided for the embodiment of the present application.
[0010] Figure 2 A structural schematic diagram of a precision stainless steel surface treatment optimization system is provided for an embodiment of the present application.
[0011] Explanation of the reference numerals: target acquisition module 11 , parameter combination acquisition module 12 , workpiece selection module 13 , workpiece surface treatment module 14 , relationship model establishment module 15 , process parameter optimization module 16 , batch surface treatment module 17 . DETAILED DESCRIPTION
[0012] The overall idea of the technical solution provided by this application is as follows: The embodiments of the present application provide a method and system for optimizing the surface treatment of precision stainless steel. By acquiring the process parameters and surface roughness data of the surface treatment process, a relationship model between the process parameters and surface roughness is established, and the process parameters are optimized based on the model to obtain the optimal process parameter combination, thereby obtaining the optimal process parameter combination, and applying it to the precision stainless steel surface treatment process to improve the surface treatment effect and batch stability.
[0013] First, determine the precision stainless steel products to be processed and obtain the target surface roughness. Then, select the process parameters of the surface treatment process, set the parameter value range, and obtain N process parameter combinations. Next, randomly select samples equal to the number of parameter combinations from the products to be processed, use different process parameter combinations to perform surface treatment on the samples, and obtain the corresponding surface roughness data. Based on the obtained data, establish a relationship model between process parameters and surface roughness. Then, use the target surface roughness as a constraint condition and the process parameters as decision variables to obtain the optimal process parameter combination. After that, apply the optimal process parameter combination to the surface treatment process of precision stainless steel products.
[0014] After introducing the basic principles of the present application, various non-limiting implementation methods of the present application will be specifically described below in conjunction with the drawings in the specification.
[0015] Embodiment 1, as Figure 1 As shown, the embodiment of the present application provides a method for optimizing the surface treatment of precision stainless steel, the method comprising: S1: Determine a stainless steel product to be processed, where the stainless steel product to be processed is a batch of stainless steel workpieces to be processed, and obtain a target surface roughness of the stainless steel product to be processed.
[0016] Specifically, first, the surface treatment object is identified, which is a batch of stainless steel workpieces to be treated, that is, semi-finished products that have undergone preliminary surface treatment but have not reached the target surface roughness. At the same time, the target surface roughness of the stainless steel products to be treated is obtained from the product design specifications. The target surface roughness refers to the ideal roughness value to be achieved on the surface of the stainless steel workpiece after surface treatment, which is determined according to the specific application requirements and use environment of the product.
[0017] By clarifying the surface treatment objects and goals, clear optimization directions and evaluation criteria are provided for subsequent process parameter optimization and surface treatment implementation.
[0018] S2: Acquire multiple process parameters of the surface treatment process, set value ranges of the multiple process parameters, and acquire N process parameter combinations within the value range, wherein N is the number of process parameter combinations.
[0019] Specifically, the surface treatment process usually involves multiple process parameters, such as processing time, processing temperature, processing pressure, etc. The values of these parameters have a direct impact on the effect of surface treatment. In order to find the optimal combination of process parameters, first, the value range of each process parameter is set. The setting of the value range refers to existing process standards, equipment capabilities, operating experience and other factors to ensure that the values of the process parameters are within a reasonable and feasible range.
[0020] After determining the value range of each process parameter, select several specific parameter values within the value range, and generate N process parameter combinations by permutation and combination for subsequent surface treatment to obtain surface roughness data under different process parameter combinations. Among them, the generation of process parameter combinations can adopt the method of full factorial experimental design, or representative parameter combinations can be selected according to orthogonal test tables or other experimental design methods to reduce the number of experiments. Among them, N is the number of process parameter combinations. The larger N is, the more data points are obtained, and the established relationship model will be more accurate and comprehensive. But at the same time, too large N values will also increase experimental costs and time consumption. By obtaining the value range of process parameters and generating N process parameter combinations, a basis is provided for subsequent surface treatment.
[0021] S3: randomly selecting an equal number of stainless steel workpieces to be processed from the stainless steel products to be processed according to the number of the process parameter combinations to obtain N stainless steel workpieces to be processed.
[0022] Specifically, each of the N process parameter combinations obtained requires a workpiece to be processed for surface treatment testing to obtain corresponding surface roughness data. Therefore, a number of stainless steel workpieces to be processed equal to the number of process parameter combinations is selected from the stainless steel products to be processed, that is, N stainless steel workpieces to be processed.
[0023] When selecting stainless steel workpieces to be processed, the principle of randomness is followed to ensure the representativeness and reliability of the test data. The random selection method can be to randomly select from the stainless steel products to be processed, or to select at equal intervals according to certain rules (such as by sequential numbering) to ensure that the probability of each stainless steel workpiece to be processed being selected is equal.
[0024] By randomly selecting stainless steel workpieces to be processed that are equal in number to the process parameter combinations, corresponding test samples are allocated to each process parameter combination, laying the foundation for subsequent surface treatment tests.
[0025] S4: performing surface treatment on N stainless steel workpieces to be processed respectively through N process parameter combinations, and obtaining N surface roughnesses.
[0026] Specifically, among the N stainless steel workpieces to be processed, each stainless steel workpiece to be processed corresponds to a process parameter combination. According to the specific parameter values of each process parameter combination, the corresponding workpiece to be processed is surface treated. After the surface treatment is completed, the surface roughness of each processed workpiece is measured to obtain N surface roughnesses. For example, for each processed workpiece, multiple measurements are performed at different positions, and then the average value is taken as the surface roughness value of the workpiece.
[0027] By measuring the surface roughness of N processed workpieces, N surface roughness data corresponding to N process parameter combinations are obtained, reflecting the effects of surface treatment under different process parameter combinations and providing a basis for establishing a relationship model between surface roughness and process parameters.
[0028] S5: establishing a relationship model between surface roughness and process parameters according to the N process parameter combinations and the N surface roughnesses.
[0029] Specifically, N process parameter combinations and corresponding N surface roughnesses were obtained through surface treatment experiments, reflecting the corresponding relationship between process parameters and surface roughness. Using these test data, a relationship model between surface roughness and process parameters was established to describe the relationship between process parameters and surface roughness. Among them, there are many methods to establish a relationship model between surface roughness and process parameters, such as multiple linear regression, nonlinear regression, response surface method, etc. Among them, multiple linear regression establishes a regression equation by assuming that there is a linear relationship between surface roughness and each process parameter; while nonlinear regression and response surface method take into account the possible nonlinear relationship and interaction effect between factors, and can establish a more complex and accurate model. The established relationship model is expressed in the form of a mathematical equation or a computer program. By inputting a process parameter combination, the corresponding surface roughness prediction value can be calculated, which provides support for the subsequent process parameter optimization. By comparing the predicted surface roughness of different process parameter combinations, the direction and scope of optimization can be quickly evaluated and screened, and the optimization efficiency can be improved.
[0030] S6: Taking the target surface roughness as a constraint condition and the multiple process parameters as decision variables, optimizing the process parameters based on the relationship model to obtain the optimal process parameter combination.
[0031] Specifically, the obtained relationship model gives the mapping relationship between process parameters and surface roughness. Using this relationship model, combined with the target surface roughness, the process parameters are optimized and solved to find the optimal combination of process parameters. Among them, process parameter optimization is a multi-objective constrained optimization problem. On the one hand, the optimization goal is to find a set of process parameter combinations so that the corresponding surface roughness is as close as possible to or meets the target surface roughness requirements; on the other hand, the values of process parameters must meet certain constraints, such as the range of values. Therefore, an optimization model is established, the target surface roughness is used as a constraint condition, the process parameters are used as decision variables, and the objective function and constraint function are constructed. After the optimization model is established, it is solved by an intelligent optimization algorithm, such as genetic algorithm, particle swarm optimization, etc. By continuously iteratively searching the values of decision variables, evaluating the objective function and constraint function, a solution that meets the constraints and has the optimal objective function is found, that is, the optimal process parameter combination.
[0032] S7: performing surface treatment on the stainless steel product to be processed by using the optimal process parameter combination.
[0033] Specifically, the obtained optimal process parameter combination is applied to the actual surface treatment equipment and production line to batch process the stainless steel products to be processed. When the optimal process parameter combination is applied for surface treatment, the values of various process parameters, such as processing time, processing temperature, processing pressure, etc., are set strictly in accordance with the optimal process parameter combination, and these parameters are ensured to remain stable throughout the batch processing process, so as to achieve surface treatment of the stainless steel products to be processed and meet the target roughness requirements.
[0034] Furthermore, the embodiment of the present application also includes: Extract value ranges of multiple process parameters, and divide the value range of each process parameter into a number of sub-intervals; and generate N process parameter combinations according to the number of sub-intervals corresponding to each process parameter.
[0035] In a feasible implementation, first, the value range of each process parameter is extracted and determined according to factors such as process requirements, equipment capabilities, and material properties, and the value range should cover the feasible value space of the parameter. For example, for the processing time parameter, its value range is determined to be 10 to 60 minutes based on the production rhythm of the equipment and the quality requirements of the product. After determining the value range of each process parameter, the value range is further divided into several sub-intervals. The sub-intervals are divided into equal or unequal divisions, and the size and number of sub-intervals are determined according to the importance and sensitivity of the parameters. For example, for more important or sensitive parameters, more or smaller sub-intervals are divided to explore their effects on surface roughness more finely; and for minor parameters or insensitive parameters, fewer or larger sub-intervals are divided to reduce the number of process parameter combinations.
[0036] Then, N process parameter combinations are generated by combining the corresponding process parameter values in the sub-intervals of each process parameter. For example, by using orthogonal experimental design, uniform design, Latin hypercube design, etc., points are uniformly selected in the parameter space to generate representative and balanced parameter combinations, which can not only cover the main range of parameter changes, but also reduce the number of experiments and improve the experimental efficiency.
[0037] Furthermore, the embodiment of the present application also includes: Set M loop variables, where M is the number of process parameters, and each loop variable corresponds to a process parameter; within the value range of each loop variable, take values in turn according to the sub-interval of the corresponding process parameter, and traverse all possible sub-interval combinations through M loops; when the loop reaches the innermost layer, get the first sub-interval combination, randomly select process parameter values in the first sub-interval combination, get the first process parameter combination, and add it to the N process parameter combinations.
[0038] In a preferred embodiment, since the surface treatment process involves multiple process parameters, the values of each process parameter need to be considered simultaneously when generating a process parameter combination. In order to achieve this, a loop variable is set for each process parameter, and the number of loop variables M is equal to the number of process parameters. Each loop variable corresponds to a process parameter, which is used to control the traversal and value of the parameter subinterval in the nested loop. For example, assuming there are three process parameters (processing time, processing temperature, processing pressure), three loop variables (i, j, k) are set, corresponding to these three parameters respectively, and the value range of the loop variable is consistent with the number of subintervals of the corresponding parameter. For example, if the processing time is divided into three subintervals, the value range of the loop variable i is 1 to 3.
[0039] After setting M loop variables, construct M nested loops, starting from the outermost loop, set the value of each loop variable to the sub-interval number of the corresponding process parameter in turn, so as to traverse all possible sub-interval combinations, and each sub-interval combination is represented by the specific values of the M loop variables. In the nested loop, when the loop reaches the innermost layer, that is, all loop variables have been valued, and a certain sub-interval combination is obtained, that is, the first sub-interval combination, indicating that each process parameter falls within a specific sub-interval. On the basis of this sub-interval combination, further randomly select the specific value of each parameter to obtain a complete process parameter combination, as the first process parameter combination, added to the N process parameter combinations for subsequent surface treatment experiments.
[0040] Furthermore, the embodiment of the present application also includes: Acquire historical data of a stainless steel workpiece similar to the stainless steel product to be processed, the historical data including known process parameter combination data and corresponding surface roughness data; perform data preprocessing on the N process parameter combinations, the N surface roughnesses and the historical data to obtain data representation in a unified format; use the preprocessed N process parameter combinations and the N surface roughnesses as training data, and use the preprocessed historical data as auxiliary data; construct a neural network model, and use the auxiliary data to pretrain the neural network model to obtain a pretrained model; use the pretrained model as an initialization basis, use the training data to train the pretrained model, and obtain a relationship model between surface roughness and process parameters.
[0041] In a preferred embodiment, in the actual production process, there is a large amount of historical data, which records the process parameter combinations and corresponding surface roughness of stainless steel products in different periods and batches, which is of great value for establishing a relationship model. Therefore, before modeling, historical data similar to the current stainless steel product to be processed is extracted from the historical database as an auxiliary data source for modeling. Among them, the judgment of similarity is based on multiple dimensions, such as product type, processing equipment, roughness requirements, etc. By setting similarity measurement indicators, such as Euclidean distance, cosine similarity, etc., a group of historical data most similar to the stainless steel product to be processed is retrieved from the historical database.
[0042] The historical data obtained, as well as the N process parameter combinations and N surface roughness obtained, come from different periods and equipment. Therefore, there are problems such as inconsistent formats, different units, and different dimensions, and they cannot be directly used for model training. In order to eliminate these differences, all data are preprocessed and converted into a unified representation. Among them, the specific operations of preprocessing include data cleaning, data normalization, feature scaling, feature encoding, etc. After preprocessing, all process parameter combination data and surface roughness data will be converted into a unified form, creating a good data foundation for the establishment of the model.
[0043] Afterwards, the preprocessed data is divided into training data and auxiliary data. The training data refers to the data directly used to train the relational model, including the N obtained process parameter combinations and the corresponding N surface roughnesses, which come from actual tests on the current stainless steel products to be processed; the auxiliary data refers to the data used to assist in model training, which comes from the acquired historical data. Although these data are not completely consistent with the current stainless steel products to be processed, they contain rich prior knowledge and experience information. Introducing them into model training as auxiliary data can help the model converge to the optimal state faster and improve the generalization performance and robustness of the model.
[0044] Subsequently, a neural network model is constructed, which consists of an input layer, a hidden layer and an output layer, and each layer contains a certain number of neuron nodes. The input layer receives the process parameter data, the output layer gives the surface roughness prediction value, and the hidden layer is responsible for feature extraction and nonlinear transformation. After the neural network model is constructed, the model is pre-trained using the auxiliary data obtained. The purpose of pre-training is to use the prior knowledge contained in the auxiliary data to initialize the parameters of the model so that it converges to a reasonable state as soon as possible, laying the foundation for subsequent fine training. After the pre-training is completed, the pre-trained model is obtained, which has certain process knowledge and experience, but cannot be directly used for actual prediction. On this basis, the pre-trained model is further fine-tuned and optimized using the obtained training data to adapt to the characteristics of the current stainless steel products to be processed and improve the accuracy and applicability of the model. After iterative training, the final relationship model between surface roughness and process parameters is obtained. The model combines experimental data and historical experience, can accurately reflect the intrinsic relationship between process parameters and surface quality, and provides an important decision-making basis for subsequent process optimization.
[0045] Furthermore, the embodiment of the present application also includes: An optimization model is established with the target surface roughness as a constraint condition and the multiple process parameters as decision variables, wherein the objective function of the optimization model is the absolute value of the difference between the output of the relationship model and the target surface roughness; the optimization model is solved, and the optimal solution obtained is used as the optimal process parameter combination.
[0046] In a feasible implementation, a relationship model between surface roughness and process parameters has been established, which is a mapping model from process parameters to surface roughness. By inputting a set of process parameter combinations, the corresponding surface roughness can be obtained. In actual process optimization, it is hoped to find a set of process parameter combinations so that the corresponding surface roughness value is as close to or as close to the given target surface roughness as possible. Therefore, with the target surface roughness as the optimization target and multiple process parameters as the decision, a corresponding optimization model is established. Among them, the objective function of the optimization model is set as the absolute value of the difference between the output of the relationship model and the target surface roughness, which measures the degree of deviation between the predicted surface roughness and the target surface roughness under the process parameter combination. The smaller the deviation, the closer the process parameter combination is to the optimal solution. Therefore, the optimization goal of the optimization model is to find a set of process parameter combinations that minimize the objective function. In addition to the objective function, the optimization model also needs to set decision variables and constraints. The decision variables are the process parameters to be optimized, such as processing time, processing temperature, processing pressure, etc.; the constraints are restrictions on the values of the decision variables, such as the upper and lower bounds of each process parameter, the relationship between different process parameters, etc.
[0047] In order to obtain the optimal combination of process parameters, an optimization algorithm is used to optimize the process parameters, that is, to solve the optimization model. Among them, the optimization algorithm includes gradient descent method, Newton method, quasi-Newton method, heuristic search algorithm, etc. Through iterative search, the values of decision variables are continuously updated, the objective function and constraints are evaluated, and finally converge to the optimal solution, thereby obtaining the optimal combination of process parameters.
[0048] Furthermore, the embodiment of the present application also includes: An interactive dual optimization channel is established, wherein the interactive dual optimization channel includes a first optimization channel and a second optimization channel; within the value range of the multiple process parameters, two initial process parameter combinations are randomly generated as the first optimization starting point and the second optimization starting point respectively; the first optimization channel takes the first optimization starting point as the initial solution, and the second optimization channel takes the second optimization starting point as the initial solution, and the optimization model is iteratively solved; an interaction cycle is set, and when the number of optimization iterations of any optimization channel triggers the interaction cycle, all optimization results accumulated by the first optimization channel and the second optimization channel in the current interaction cycle are analyzed, the objective function value corresponding to each optimization result is compared, and the two solutions with the smallest objective function value are selected, and the current optimal solutions of the first optimization channel and the second optimization channel are updated respectively; the updated current optimal solution is used as a new optimization starting point, and iterative optimization is continued through the first optimization channel and the second optimization channel; when the preset convergence condition is reached, the current optimal solutions of the first optimization channel and the second optimization channel are compared, and the solution with the smaller objective function value is selected as the optimal solution of the optimization model and the optimal process parameter combination.
[0049] In a preferred embodiment, first, an interactive dual optimization channel is established, including a first optimization channel and a second optimization channel, and a parallel optimization strategy is used to simultaneously start two independent but interrelated optimization processes, thereby increasing the diversity and globality of the search, effectively avoiding the risk of a single search path falling into a local optimum, and increasing the probability of finding a global optimal solution. Then, within the value range of multiple process parameters, two initial process parameter combinations are randomly generated as the first optimization starting point and the second optimization starting point, respectively, for example, Latin hypercube sampling or Monte Carlo method is used to ensure that the initial points are evenly distributed in the parameter space.
[0050] Subsequently, the first optimization channel takes the first optimization starting point as the initial solution, and the second optimization channel takes the second optimization starting point as the initial solution to iteratively solve the optimization model. In each optimization channel, different optimization algorithms are used, such as gradient descent, simulated annealing, or genetic algorithm, to increase the diversity of search strategies. For example, the first optimization channel uses the particle swarm optimization algorithm, while the second optimization channel uses the differential evolution algorithm. The heterogeneous algorithm optimization method can fully utilize the advantages of different algorithms and adapt to different types of parameter space characteristics. The two channels run in parallel and explore separately to improve the optimization efficiency. During the iteration process, each channel will maintain its current optimal solution and historical optimal solution, providing a basis for subsequent interaction and update.
[0051] At the same time, an interaction cycle is set. When the number of optimization iterations of any optimization channel triggers the interaction cycle, all optimization results accumulated by the first optimization channel and the second optimization channel in the current interaction cycle are analyzed, and the objective function values corresponding to each optimization result are compared. The two solutions with the smallest objective function values are selected to update the current optimal solutions of the first optimization channel and the second optimization channel respectively. The setting of the interaction cycle is based on a fixed number of iterations or a dynamic adjustment strategy, such as adaptive adjustment according to the speed of optimization progress. One possible dynamic adjustment strategy is to shorten the interaction cycle to increase the frequency of information exchange when the improvement of the optimal solution is small over multiple consecutive cycles; when the optimal solution is still improving rapidly, extend the interaction cycle to allow more sufficient local search. Information exchange and collaborative optimization between the two channels are achieved through a periodic interaction mechanism, which helps to accelerate convergence to the optimal solution while maintaining search diversity.
[0052] Subsequently, the updated current optimal solution is used as the new optimization starting point, and the first optimization channel and the second optimization channel are continued to perform iterative optimization. The search results of the two channels are integrated through the dynamic update strategy, so that the subsequent optimization process can be carried out in a more promising solution space area, which improves the search efficiency. The update strategy adopts a complete replacement or partial replacement method. For example, only some parameter values are updated, and some original search directions are retained to balance local fine search and global exploration. At the same time, in order to prevent premature convergence, certain random disturbances are introduced in the update process, such as making small random adjustments to the updated solution. In this way, even if the two channels converge to the same solution at a certain moment, they can be dispersed again in the next round of search and continue to explore new areas.
[0053] When the preset convergence condition is reached, the current optimal solutions of the first optimization channel and the second optimization channel are compared, and the solution with the smaller objective function value is selected as the optimal solution of the optimization model, that is, the optimal process parameter combination. The convergence condition may be that the maximum number of iterations is reached, the improvement of the objective function value is less than a preset threshold, or the difference between the optimal solutions of the two channels is less than a certain tolerance, etc. For example, the following convergence condition may be set: within K consecutive interaction cycles, the Euclidean distance between the optimal solutions of the two channels is less than the preset distance threshold, and the relative improvement of the objective function value is less than the preset amplitude threshold.
[0054] Through the interactive dual-channel optimization method, an efficient solution to multi-parameter optimization problems is achieved. It not only balances global search and local optimization, but also improves the efficiency of optimization and the reliability of results through periodic information interaction and dynamic update mechanism.
[0055] Furthermore, the embodiment of the present application also includes: In the process of surface treatment of the stainless steel product to be treated by the optimal process parameter combination, the treated stainless steel workpiece is randomly selected according to a preset sampling frequency, the surface roughness is measured, and the average surface roughness is calculated; the average surface roughness is compared with the target surface roughness to obtain a roughness difference, and if the roughness difference is greater than a preset difference threshold, multiple local process parameter combinations are generated in the neighborhood of the optimal process parameter combination; the process parameter combination with the best surface roughness among the multiple local process parameter combinations is determined and used as an updated process parameter combination; and the stainless steel product to be treated is surface treated by the updated process parameter combination.
[0056] In a feasible implementation, in the process of surface treatment of the stainless steel product to be treated by the optimal process parameter combination, the treated stainless steel workpieces are randomly selected according to the preset sampling frequency, the surface roughness is measured, and the average surface roughness is calculated. Specifically, the setting of the sampling frequency needs to comprehensively consider production efficiency, inspection cost and quality control requirements. For example, 1 piece is randomly selected for inspection for every 100 pieces of workpieces processed. The surface roughness can be measured using a high-precision surface roughness meter, and measurements are performed at multiple positions of each sampled workpiece, and then the average value is taken to promptly reflect the quality fluctuations in the surface treatment process and provide a basis for subsequent parameter adjustments.
[0057] Subsequently, the average surface roughness is compared with the target surface roughness to obtain the roughness difference. If the roughness difference is greater than the preset difference threshold, multiple local process parameter combinations are generated in the neighborhood of the optimal process parameter combination. The setting of the preset difference threshold should be based on product quality requirements and process stability considerations, for example, it is set to ±5% of the target roughness. When it is detected that the roughness difference exceeds the threshold, it means that the current process parameters may no longer be optimal and local optimization is required. When generating local process parameter combinations in the neighborhood of the optimal process parameter combination, methods such as orthogonal experimental design or small-range uniform design can be used to ensure that the newly generated parameter combinations can fully explore the neighborhood space. For example, 5-10 new parameter combinations are generated within the range of ±10% of each process parameter.
[0058] After that, the process parameter combination with the best surface roughness among multiple local process parameter combinations is determined and used as the updated process parameter combination. A quick evaluation is performed through small batch tests or by using the established relationship model. If a small batch test is used, a small number of samples are processed and tested for each local process parameter combination, and the combination with the best actual effect is selected. If a relationship model is used for evaluation, each local process parameter combination is input into the model, the predicted surface roughness values are compared, and the parameter combination closest to the target roughness is selected, thereby minimizing interference with the production process while ensuring the optimization effect. Next, the surface of the stainless steel product to be treated is treated by updating the process parameter combination. When applying the updated process parameter combination, a progressive adjustment strategy is adopted, that is, the new parameters are first applied in a small range for verification, and then extended to the entire production batch after confirming that the effect is stable, thereby minimizing the risk of parameter adjustment and ensuring the continuity and stability of production.
[0059] Through real-time monitoring and dynamic optimization of the surface treatment process, we can effectively respond to various fluctuations and interferences that may occur in the production process, such as process drift caused by changes in raw material batches, equipment wear and other factors. By timely adjusting process parameters, the consistency and stability of product quality are guaranteed.
[0060] In summary, the precision stainless steel surface treatment optimization method provided in the embodiment of the present application has the following technical effects: Determine the stainless steel products to be processed, which are batches of stainless steel workpieces to be processed, and obtain the target surface roughness of the stainless steel products to be processed, so as to provide a basis for subsequent modeling and optimization. Obtain multiple process parameters of the surface treatment process, set the value ranges of multiple process parameters, and obtain N process parameter combinations within the value range, where N is the number of process parameter combinations, in preparation for subsequent experiments and modeling. According to the number of process parameter combinations, randomly select an equal number of stainless steel workpieces to be processed from the stainless steel products to be processed, and obtain N stainless steel workpieces to be processed, so as to ensure that each parameter combination has a corresponding test sample, thereby improving the representativeness and reliability of the test data. Surface treatment is performed on the N stainless steel workpieces to be processed respectively through N process parameter combinations, and N surface roughness is obtained, so as to provide a basis for establishing a relationship model between process parameters and surface roughness. According to the N process parameter combinations and N surface roughness, a relationship model between surface roughness and process parameters is established to provide support for the optimization of process parameters. With the target surface roughness as a constraint condition and multiple process parameters as decision variables, the process parameters are optimized based on the relationship model, the optimal process parameter combination is obtained, and the process parameters are optimized. The surface treatment of the stainless steel products to be processed is carried out through the optimal combination of process parameters to achieve the improvement and stable control of the surface treatment effect.
[0061] Embodiment 2, based on the same inventive concept as the method for optimizing the surface treatment of precision stainless steel in the above embodiment, Figure 2 As shown, the embodiment of the present application provides a precision stainless steel surface treatment optimization system, the system comprising: A target acquisition module 11 is used to determine a stainless steel product to be processed, wherein the stainless steel product to be processed is a batch of stainless steel workpieces to be processed, and to obtain a target surface roughness of the stainless steel product to be processed; A parameter combination acquisition module 12 is used to acquire multiple process parameters of the surface treatment process, and set the value range of the multiple process parameters, and acquire N process parameter combinations within the value range, wherein N is the number of process parameter combinations; A workpiece selection module 13 is used to randomly select an equal number of stainless steel workpieces to be processed from the stainless steel products to be processed according to the number of the process parameter combinations to obtain N stainless steel workpieces to be processed; The workpiece surface treatment module 14 is used to perform surface treatment on N stainless steel workpieces to be processed respectively through N process parameter combinations, and obtain N surface roughnesses; A relationship model building module 15, for building a relationship model between surface roughness and process parameters according to the N process parameter combinations and the N surface roughnesses; A process parameter optimization module 16 is used to optimize the process parameters based on the relationship model with the target surface roughness as a constraint condition and the multiple process parameters as decision variables to obtain an optimal process parameter combination; The batch surface treatment module 17 is used to perform surface treatment on the stainless steel products to be treated by using the optimal process parameter combination.
[0062] Furthermore, the parameter combination acquisition module 12 includes the following execution steps: Extracting value ranges of multiple process parameters, and dividing the value range of each process parameter into a number of sub-ranges; According to a number of sub-intervals corresponding to each process parameter, N process parameter combinations are generated.
[0063] Furthermore, the parameter combination acquisition module 12 further includes the following execution steps: Set M loop variables, where M is the number of process parameters, and each loop variable corresponds to one process parameter; Within the value range of each loop variable, the sub-intervals of the corresponding process parameters are sequentially selected, and all possible sub-interval combinations are traversed through M cycles; When the loop reaches the innermost layer, a first sub-interval combination is obtained, a process parameter value is randomly selected from the first sub-interval combination, a first process parameter combination is obtained, and the first process parameter combination is added to the N process parameter combinations.
[0064] Furthermore, the relationship model building module 15 includes the following execution steps: Acquire historical data of a stainless steel workpiece similar to the stainless steel product to be processed, wherein the historical data includes known process parameter combination data and corresponding surface roughness data; Performing data preprocessing on the N process parameter combinations, the N surface roughnesses, and the historical data to obtain data representation in a unified format; Using the preprocessed N process parameter combinations and the N surface roughnesses as training data, and using the preprocessed historical data as auxiliary data; Constructing a neural network model, and using the auxiliary data to pre-train the neural network model to obtain a pre-trained model; The pre-trained model is initialized based on the training data, and the pre-trained model is trained to obtain a relationship model between surface roughness and process parameters.
[0065] Furthermore, the process parameter optimization module 16 includes the following execution steps: Establishing an optimization model with the target surface roughness as a constraint condition and the multiple process parameters as decision variables, wherein the objective function of the optimization model is the absolute value of the difference between the output of the relationship model and the target surface roughness; The optimization model is solved, and the optimal solution obtained is used as the optimal process parameter combination.
[0066] Furthermore, the process parameter optimization module 16 also includes the following execution steps: Establishing an interactive dual optimization channel, wherein the interactive dual optimization channel includes a first optimization channel and a second optimization channel; Randomly generate two initial process parameter combinations within the value range of the multiple process parameters, which serve as the first optimization starting point and the second optimization starting point respectively; The first optimization channel uses the first optimization starting point as an initial solution, and the second optimization channel uses the second optimization starting point as an initial solution to iteratively solve the optimization model; Set an interaction cycle. When the number of optimization iterations of any optimization channel triggers the interaction cycle, analyze all optimization results accumulated by the first optimization channel and the second optimization channel in the current interaction cycle, compare the objective function values corresponding to each optimization result, select the two solutions with the smallest objective function value, and update the current optimal solutions of the first optimization channel and the second optimization channel respectively. Taking the updated current optimal solution as the new optimization starting point, continue to iterate the optimization through the first optimization channel and the second optimization channel; When the preset convergence condition is reached, the current optimal solutions of the first optimization channel and the second optimization channel are compared, and the solution with the smaller objective function value is selected as the optimal solution of the optimization model and as the optimal process parameter combination.
[0067] Furthermore, the embodiment of the present application also includes a process parameter updating module, which includes the following execution steps: In the process of surface treating the stainless steel product to be treated by the optimal process parameter combination, randomly selecting the treated stainless steel workpieces according to a preset sampling frequency, measuring the surface roughness, and calculating the average surface roughness; Comparing the average surface roughness with the target surface roughness to obtain a roughness difference, and if the roughness difference is greater than a preset difference threshold, generating a plurality of local process parameter combinations in the neighborhood of the optimal process parameter combination; Determine a process parameter combination with the best surface roughness among multiple local process parameter combinations, and use it as an updated process parameter combination; The stainless steel product to be processed is surface treated by the updated process parameter combination.
[0068] Any step of the method described above can be stored as a computer instruction or program in an unlimited computer memory, and can be called and recognized by an unlimited computer processor to implement any method in the embodiments of the present application, without any unnecessary restrictions.
[0069] Furthermore, the first or second mentioned above may not only represent an order relationship, but may also represent a specific concept, and / or refer to multiple elements that can be selected individually or in full. Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application intends to include these modifications and variations.
Claims
1. A method for optimizing the surface treatment of precision stainless steel, characterized in that: The method further comprises: Determine a stainless steel product to be processed, wherein the stainless steel product to be processed is a batch of stainless steel workpieces to be processed, and obtain a target surface roughness of the stainless steel product to be processed; Acquire multiple process parameters of the surface treatment process, set value ranges of the multiple process parameters, and acquire N process parameter combinations within the value range, where N is the number of process parameter combinations; Randomly selecting an equal number of stainless steel workpieces to be processed from the stainless steel products to be processed according to the number of the process parameter combinations to obtain N stainless steel workpieces to be processed; Surface treatment is performed on N stainless steel workpieces to be processed respectively through N process parameter combinations, and N surface roughnesses are obtained; Establishing a relationship model between surface roughness and process parameters according to the N process parameter combinations and the N surface roughnesses; Taking the target surface roughness as a constraint condition and the multiple process parameters as decision variables, optimizing the process parameters based on the relationship model to obtain an optimal process parameter combination; The stainless steel product to be processed is surface treated by using the optimal process parameter combination.
2. The method for optimizing the surface treatment of precision stainless steel according to claim 1, characterized in that: Acquiring multiple process parameters of the surface treatment process, and setting the value ranges of the multiple process parameters, and acquiring N process parameter combinations within the value ranges, including: Extracting value ranges of multiple process parameters, and dividing the value range of each process parameter into a number of sub-ranges; According to a number of sub-intervals corresponding to each process parameter, N process parameter combinations are generated.
3. The method for optimizing the surface treatment of precision stainless steel according to claim 2, characterized in that: According to the several sub-intervals corresponding to each process parameter, N process parameter combinations are generated, including: Set M loop variables, where M is the number of process parameters, and each loop variable corresponds to one process parameter; Within the value range of each loop variable, the sub-intervals of the corresponding process parameters are sequentially selected, and all possible sub-interval combinations are traversed through M cycles; When the loop reaches the innermost layer, a first sub-interval combination is obtained, a process parameter value is randomly selected from the first sub-interval combination, a first process parameter combination is obtained, and the first process parameter combination is added to the N process parameter combinations.
4. The method for optimizing the surface treatment of precision stainless steel according to claim 1, characterized in that: According to the N process parameter combinations and the N surface roughnesses, a relationship model between surface roughness and process parameters is established, including: Acquire historical data of a stainless steel workpiece similar to the stainless steel product to be processed, wherein the historical data includes known process parameter combination data and corresponding surface roughness data; Performing data preprocessing on the N process parameter combinations, the N surface roughnesses, and the historical data to obtain data representation in a unified format; Using the preprocessed N process parameter combinations and the N surface roughnesses as training data, and using the preprocessed historical data as auxiliary data; Constructing a neural network model, and using the auxiliary data to pre-train the neural network model to obtain a pre-trained model; The pre-trained model is initialized based on the training data, and the pre-trained model is trained to obtain a relationship model between surface roughness and process parameters.
5. The method for optimizing the surface treatment of precision stainless steel according to claim 1, characterized in that: Taking the target surface roughness as a constraint condition and the multiple process parameters as decision variables, optimizing the process parameters based on the relationship model to obtain the optimal process parameter combination includes: Establishing an optimization model with the target surface roughness as a constraint condition and the multiple process parameters as decision variables, wherein the objective function of the optimization model is the absolute value of the difference between the output of the relationship model and the target surface roughness; The optimization model is solved, and the optimal solution obtained is used as the optimal process parameter combination.
6. The method for optimizing the surface treatment of precision stainless steel according to claim 5, characterized in that: Solving the optimization model and using the optimal solution obtained as the optimal process parameter combination includes: Establishing an interactive dual optimization channel, wherein the interactive dual optimization channel includes a first optimization channel and a second optimization channel; Randomly generate two initial process parameter combinations within the value range of the multiple process parameters, which serve as the first optimization starting point and the second optimization starting point respectively; The first optimization channel uses the first optimization starting point as an initial solution, and the second optimization channel uses the second optimization starting point as an initial solution to iteratively solve the optimization model; Set an interaction cycle. When the number of optimization iterations of any optimization channel triggers the interaction cycle, analyze all optimization results accumulated by the first optimization channel and the second optimization channel in the current interaction cycle, compare the objective function values corresponding to each optimization result, select the two solutions with the smallest objective function value, and update the current optimal solutions of the first optimization channel and the second optimization channel respectively. Taking the updated current optimal solution as the new optimization starting point, continue to iterate the optimization through the first optimization channel and the second optimization channel; When the preset convergence condition is reached, the current optimal solutions of the first optimization channel and the second optimization channel are compared, and the solution with the smaller objective function value is selected as the optimal solution of the optimization model and as the optimal process parameter combination.
7. The method for optimizing the surface treatment of precision stainless steel according to claim 1, characterized in that: The method further comprises: In the process of surface treating the stainless steel product to be treated by the optimal process parameter combination, randomly selecting the treated stainless steel workpieces according to a preset sampling frequency, measuring the surface roughness, and calculating the average surface roughness; Comparing the average surface roughness with the target surface roughness to obtain a roughness difference, and if the roughness difference is greater than a preset difference threshold, generating a plurality of local process parameter combinations in the neighborhood of the optimal process parameter combination; Determine a process parameter combination with the best surface roughness among multiple local process parameter combinations, and use it as an updated process parameter combination; The stainless steel product to be processed is surface treated by the updated process parameter combination.
8. Precision stainless steel surface treatment optimization system, characterized by: For implementing the precision stainless steel surface treatment optimization method according to any one of claims 1 to 7, the system further comprises: A target acquisition module, the target acquisition module is used to determine the stainless steel product to be processed, the stainless steel product to be processed is a batch of stainless steel workpieces to be processed, and obtain the target surface roughness of the stainless steel product to be processed; A parameter combination acquisition module, the parameter combination acquisition module is used to acquire multiple process parameters of the surface treatment process, and set the value range of the multiple process parameters, and acquire N process parameter combinations within the value range, wherein N is the number of process parameter combinations; A workpiece selection module, the workpiece selection module is used to randomly select an equal number of stainless steel workpieces to be processed from the stainless steel products to be processed according to the number of the process parameter combinations, to obtain N stainless steel workpieces to be processed; A workpiece surface treatment module, wherein the workpiece surface treatment module is used to perform surface treatment on N stainless steel workpieces to be treated respectively through N process parameter combinations, and obtain N surface roughnesses; A relationship model building module, the relationship model building module is used to build a relationship model between surface roughness and process parameters according to the N process parameter combinations and the N surface roughnesses; A process parameter optimization module, wherein the process parameter optimization module is used to optimize the process parameters based on the relationship model with the target surface roughness as a constraint condition and the multiple process parameters as decision variables to obtain an optimal process parameter combination; A batch surface treatment module is used to perform surface treatment on the stainless steel products to be treated by using the optimal process parameter combination.
Citation Information
Cited By
Aero-engine blade polishing parameter interval solving method and related device
CN119647014A
Method and related device for solving the polishing parameter interval of aircraft engine blades
CN119647014B
Bolt surface treatment process parameter optimization method and system in digital twin environment
CN120995611A
Method and system for optimizing bolt surface treatment process parameters under digital twin environment
CN120995611B
CNC cutting parameter determination method, device and system and machine tool equipment
CN121300250A
