A method for predicting the grade of copper matte in oxygen-enriched bottom-blowing furnace based on GA-BP neural network
Through the improved GA-BP neural network model, the problem of copper grade detection lag is solved by using adaptive crossover and variation probability regulation mechanisms, and more efficient prediction and production process optimization are achieved.
Patent Information
- Application Number
- CN202410489618.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-23
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-04-23
AI Technical Summary
During the oxygen-rich bottom blown copper smelting process, real-time detection of copper sulfide grades is difficult, and the detection results are lagging, which affects the optimization control of the production process.
The prediction method based on GA-BP neural network is adopted, and the genetic algorithm is improved, the adaptive cross probability regulation mechanism and the adaptive mutation probability regulation mechanism are added, the BP neural network model is optimized, and the copper grade is predicted using on-site production data.
It improves prediction accuracy, shortens detection time, provides more accurate real-time guidance, and improves the stability and efficiency of the production process.
Smart Images

Figure CN118380059B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of oxygen-enriched bottom-blown copper matte grade prediction, and in particular to an oxygen-enriched bottom-blown copper matte grade prediction method based on a GA-BP neural network. Background Art
[0002] Oxygen-enriched bottom-blown copper smelting technology is a new copper smelting process independently developed by my country. It has the characteristics of low environmental pollution, strong concentrate processing capacity, and low oxygen consumption in the production process. It has been rapidly developed in recent years. However, since the copper smelting process is carried out under high temperature and high pressure, the internal smelting environment is extremely complex, and some key process parameters in the production process have strong coupling, large time lag, difficulty in online detection, and lag in production process optimization and control. The copper matte grade is a very important control parameter in the bottom-blown copper smelting process. It not only has an important impact on the reaction process in the furnace, but also is crucial to subsequent production. At present, the detection of copper matte grade is mainly determined by expensive testing instruments, which has low detection efficiency and high resource consumption. Moreover, because the temperature of copper matte is high, it needs to be cooled for a period of time before it can be directly measured. This long-term lag detection will cause certain errors in the actual data, which is not conducive to real-time guidance of the production process. Therefore, it is of great significance to use a new method to intelligently predict the copper matte grade in the bottom-blown copper smelting process to maintain a stable and smooth production process.
[0003] The copper matte grade is a key process parameter in the oxygen-enriched bottom-blown copper smelting process. Summary of the invention
[0004] 1. Technical issues to be solved
[0005] In view of the shortcomings of the prior art, the present invention provides an oxygen-enriched bottom-blown copper matte grade prediction method based on a GA-BP neural network, which has the advantages of accurate prediction and solves the above-mentioned technical problems.
[0006] (II) Technical solution
[0007] To achieve the above object, the present invention provides the following technical solution: a method for predicting the grade of oxygen-enriched bottom-blown copper matte based on a GA-BP neural network, comprising the following steps:
[0008] S1. Collect actual production data of the copper smelter during the stable production cycle, where the actual production data includes mineral unit oxygen consumption x1, solvent rate x2, oxygen enrichment concentration x3, copper content x4, sulfur content x5, iron content x6, silicon dioxide content x7 and magnesium oxide content x8, and normalize the collected data, and use 80% of the processed data as training data and 20% as test data;
[0009] S2. On the basis of the existing GA-BP model, the genetic algorithm GA is improved to obtain an improved genetic algorithm GA, specifically, an adaptive crossover probability adjustment mechanism and an adaptive mutation probability adjustment mechanism are added to the genetic algorithm GA, wherein the adaptive crossover probability adjustment mechanism is used to adjust the population update speed in the early genetic stage and the stability in the late genetic stage of the genetic algorithm GA, and the adaptive mutation probability adjustment mechanism is used to improve the population diversity;
[0010] S3. Optimize the BP neural network model through the improved genetic algorithm GA, and use the actual production data of mineral unit oxygen consumption x1, solvent rate x2, oxygen enrichment concentration x3, copper content x4, sulfur content x5, iron content x6, silicon dioxide content x7 and magnesium oxide content x8 as the input of the BP neural network model, and finally obtain the copper matte grade value;
[0011] S4. Verify the prediction accuracy of the improved GA-BP model.
[0012] As a preferred technical solution of the present invention, the adaptive crossover probability adjustment mechanism in step S2 is expressed as follows:
[0013]
[0014] P cmax =((0.9-0.4) / num_max)*num+0.5
[0015] Among them, P c represents the probability of the i-th individual undergoing a crossover operator during the genetic process, e represents the natural logarithm, P cmax Represents the value of the maximum crossover probability, P cmin represents the value of the minimum crossover probability, f i represents the fitness function value of the i-th individual, f avg represents the average fitness value in the current population, f max Indicates the maximum fitness value in the current population, num_max indicates the maximum number of iterations during the iteration process, and num indicates the current number of iterations.
[0016] As a preferred technical solution of the present invention, the expression of the adaptive mutation probability adjustment mechanism is as follows:
[0017]
[0018] P mmax =-((0.09-0.05) / num_max)+0.09
[0019] Among them, P mrepresents the probability of mutation of i individuals in the genetic process, num_max represents the maximum number of iterations in the iterative process, and f i represents the fitness function value of the i-th individual, P mmax Represents the value of the maximum mutation probability, P mmin represents the value of the minimum mutation probability, f avg represents the average fitness value in the current population, f max Indicates the maximum fitness value in the current population.
[0020] As a preferred technical solution of the present invention, the specific steps of the improved genetic algorithm in step S2 are as follows:
[0021] S2.1, population initialization, and set population generation g = 1;
[0022] S2.2. Calculate the fitness of the g-th generation population. The calculation expression is as follows:
[0023]
[0024] Among them, f itk represents the fitness function, y k represents the true value of the iterative sample of the kth group population size in the gth generation, represents the predicted value of the iterative training sample of the kth group of population size samples in the gth generation, and norm represents y k and The norm of the difference between
[0025] S2.3, select the best individual of the current iteration and its fitness function value, and determine whether the preset stop condition is met or the set maximum number of iterations is reached. If the stop condition is met or the maximum number of iterations is reached, the iteration is stopped, and the one with the smallest fitness function value is output as the best individual. If the stop condition is not met or the maximum number of iterations is not reached, execute step S2.4;
[0026] S2.4, select operator;
[0027] S2.5, crossover operator through adaptive crossover probability adjustment mechanism;
[0028] S2.6, mutation operator through adaptive mutation probability adjustment mechanism;
[0029] S2.7. Retain the best individual of the current generation through the elite individual retention strategy, generate a new population of g+1 generations, and jump to step S2.2, using g+1 as the initial value of step S2.2 for iteration.
[0030] As a preferred technical solution of the present invention, the prediction expression of step S4 is as follows:
[0031]
[0032]
[0033] Among them, RMSE represents the root mean square error, MAE represents the mean absolute error, and y represents the actual value. represents the predicted value of the model, |*| represents the absolute value, Indicates summing the internal data.
[0034] Compared with the prior art, the present invention provides a method for predicting the grade of oxygen-enriched bottom-blown copper matte based on GA-BP neural network, which has the following beneficial effects:
[0035] 1. The present invention adds an adaptive crossover probability adjustment mechanism and an adaptive mutation probability adjustment mechanism to the genetic algorithm GA in the traditional GA-BP model. By adding the adaptive crossover probability adjustment mechanism and the adaptive mutation probability adjustment mechanism, the values of the crossover parameters and the mutation parameters are dynamically adjusted during the iteration process, thereby improving the search efficiency of the genetic algorithm and optimizing the initial weights and thresholds of the BP neural network.
[0036] 2. The present invention collects on-site production data, mines the implicit process parameter information therein, establishes a prediction model, and the simulation results show that the model prediction results are consistent with the actual production data. The method of this case can be used to guide actual production operations and can be used for copper flash smelting process parameter optimization. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a schematic diagram of the improved genetic algorithm GA process of the present invention;
[0038] Figure 2 It is a schematic diagram of the BP neural network of the present invention;
[0039] Figure 3 It is a schematic diagram for comparing the predicted value and the actual value of the copper matte grade of the present invention;
[0040] Figure 4 It is a schematic diagram of the fitness evolution curve of the present invention;
[0041] Figure 5 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] See also Figure 1-5 The oxygen-enriched bottom-blown copper matte grade prediction method based on GA-BP neural network includes the following steps:
[0044] S1. Collect actual production data of the copper smelter during the stable production cycle, where the actual production data includes mineral unit oxygen consumption x1, solvent rate x2, oxygen enrichment concentration x3, copper content x4, sulfur content x5, iron content x6, silicon dioxide content x7 and magnesium oxide content x8, and normalize the collected data, and use 80% of the processed data as training data and 20% as test data;
[0045] S2. On the basis of the existing GA-BP model, the genetic algorithm GA is improved to obtain an improved genetic algorithm GA, specifically, an adaptive crossover probability adjustment mechanism and an adaptive mutation probability adjustment mechanism are added to the genetic algorithm GA. The adaptive crossover probability adjustment mechanism is used to adjust the population update speed in the early genetic stage and the stability in the late genetic stage of the genetic algorithm GA, and the adaptive mutation probability adjustment mechanism is used to improve the population diversity;
[0046] The specific steps of the improved genetic algorithm in step S2 are as follows:
[0047] S2.1, population initialization, and set population generation g = 1;
[0048] S2.2. Calculate the fitness of the g-th generation population. The calculation expression is as follows:
[0049]
[0050] Among them, f itk represents the fitness function, y k represents the true value of the iterative sample of the kth group population size in the gth generation, represents the predicted value of the iterative training sample of the kth group of population size samples in the gth generation, and norm represents y k and The norm of the difference between
[0051] S2.3, select the best individual of the current iteration and its fitness function value, and determine whether the stopping condition is met (the fitness function value is less than the threshold) or the set maximum number of iterations is reached. If the stopping condition is met or the maximum number of iterations is reached, the iteration is stopped, and the output with the smallest fitness function value is the best individual. If the stopping condition is not met or the maximum number of iterations is not reached, execute step S2.4;
[0052] S2.4, select operator;
[0053] S2.5, crossover operator through adaptive crossover probability adjustment mechanism;
[0054] S2.6, mutation operator through adaptive mutation probability adjustment mechanism;
[0055] S2.7. Retain the best individual of the current generation through the elite individual retention strategy, generate a new population of g+1 generations, and jump to step S2.2, using g+1 as the initial value of step S2.2 for iteration.
[0056] The elite individual retention strategy is to directly copy the individual with the highest fitness function value and put it into the parent population to be cross-paired. After all the parent individuals have undergone the crossover operator, the elite individual retention mechanism is used to replace the individual with the worst fitness function value in the population after the crossover, so as to eliminate individuals with poor quality and retain the elite individuals.
[0057] S3. The BP neural network model is optimized by the improved genetic algorithm GA, and the actual production data of mineral unit oxygen consumption x1, solvent rate x2, oxygen enrichment concentration x3, copper content x4, sulfur content x5, iron content x6, silicon dioxide content x7 and magnesium oxide content x8 are used as the input of the BP neural network model, and finally the copper matte grade value is obtained. The number of intermediate neurons in the BP network is 17;
[0058] S4. Verify the prediction accuracy of the improved GA-BP model.
[0059] Furthermore, in the crossover operator P c The value determines the update speed of individuals in the entire population. c If the value is too large, it will destroy the excellent genetic model; on the contrary, if the P value is too small, c The value will lead to slow algorithm search efficiency and difficulty in population evolution. Appropriately increase P c The value of can expand the global search ability and speed up the population update in the early stage of evolution. In the later stage of evolution, each individual in the population tends to be stable, and the appropriate reduction of P c The value is to preserve the excellent genetic structure
[0060] In addition, considering that the crossover operation may change or even destroy the gene structure, the probability of crossover operation should be appropriately reduced for individuals with higher fitness; on the contrary, a higher P should be given to individuals with poor fitness. c The value is used to increase the probability of participating in the crossover operation and thus continuously optimize. The adaptive crossover probability adjustment mechanism in step S2 is expressed as follows:
[0061]
[0062] P cmax =((0.9-0.4) / num_max)*num+0.5
[0063] Among them, P c represents the probability of crossover operator in individual i during the genetic process, e represents the natural logarithm, P cmax Represents the value of the maximum crossover probability, P cmin represents the value of the minimum crossover probability, f i represents the fitness function value of the i-th individual, f avg represents the average fitness value in the current population, f max Indicates the maximum fitness value in the current population, num_max indicates the maximum number of iterations during the iteration process, num is the current number of iterations, P cmin =0.5.
[0064] Furthermore, in the mutation operator P m The value determines the probability of individual variation in the population. Appropriate variation of individuals can improve the diversity of the population and jump out of the local optimum with a certain probability. m The value directly affects the efficiency of generating new individuals in genetic evolution. If the value is too large, the algorithm is similar to a simple random search; if the value is too small, it is difficult to generate new individual structures. The expression of the adaptive mutation probability adjustment mechanism is as follows:
[0065]
[0066] P mmax =-((0.09-0.05) / num_max)+0.09
[0067] Among them, P m represents the probability of mutation of i individuals in the genetic process, num_max represents the maximum number of iterations in the iterative process, and f i represents the fitness function value of the i-th individual, P mmax Represents the value of the maximum mutation probability, P mmin represents the value of the minimum mutation probability, f avg represents the average fitness value in the current population, f max Indicates the maximum fitness value in the current population
[0068] Furthermore, the prediction expression of step S4 is as follows:
[0069]
[0070]
[0071] Among them, RMSE represents the root mean square error, MAE represents the mean absolute error, and y represents the actual value. represents the predicted value of the model, |*| represents the absolute value, Indicates the sum of internal data;
[0072] Table 1 is part of the experimental data of this case:
[0073] Table 1
[0074]
[0075]
[0076] The prediction results of the present invention are shown in Table 2:
[0077] Table 2
[0078] Prediction Model RMSE MAE BP 0.9093 0.6556 Standard GA-BP 0.6466 0.5563 The GA-BP model optimized in this paper 0.4626 0.4050
[0079] Depend on Figure 3 It can be seen that the prediction model proposed in this paper can well predict the trend of copper matte grade, and has better prediction effect and higher accuracy than other models. In order to further see the prediction effect of several models more intuitively, the evaluation index values of several prediction models are shown in Table 6. From Table 2, it can be clearly seen that the prediction method proposed in this paper has improved accuracy in both RMSE and MAE. Compared with the traditional GA-BP prediction method, the RMSE and MAE values are reduced by 18.4% and 15.13% respectively.
[0080] The test conditions of the adaptive crossover probability adjustment mechanism and the adaptive mutation probability adjustment mechanism improved in this paper are shown in Table 3 below:
[0081] Table 3
[0082]
[0083] from Figure 4 It can be seen from the experimental results that the improved GA-BP adaptive adjustment mechanism optimization algorithm in this paper is significantly faster than the traditional genetic algorithm (SGA) and has higher accuracy than the traditional genetic algorithm (SGA).
[0084] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. The oxygen-enriched bottom-blown copper matte grade prediction method based on GA-BP neural network is characterized by: The following steps are involved: S1. Collect actual production data of copper smelters during stable production cycles, including unit oxygen consumption of minerals. Solvent rate , oxygen enrichment concentration , copper content , sulfur content 、 Iron content , silica content and magnesium oxide content , and normalize the collected data, and use 80% of the processed data as training data and 20% as test data; S2. On the basis of the existing GA-BP model, the genetic algorithm GA is improved to obtain an improved genetic algorithm GA. The specific improvement is to add an adaptive crossover probability adjustment mechanism and an adaptive mutation probability adjustment mechanism to the genetic algorithm GA. The adaptive crossover probability adjustment mechanism is used to adjust the population update speed in the early genetic stage and the stability in the late genetic stage of the genetic algorithm GA. The adaptive mutation probability adjustment mechanism is used to improve the population diversity. The adaptive crossover probability adjustment mechanism in step S2 is expressed as follows: ; ; in, Indicates the genetic process The probability of a crossover operator occurring in an individual is represents the natural logarithm, represents the value of the maximum crossover probability, represents the value of the minimum crossover probability, Indicates The fitness function value of each individual, represents the average fitness value in the current population, Represents the maximum fitness value in the current population, Indicates the maximum number of iterations during the iteration process. is the current iteration number; The expression of the adaptive mutation probability adjustment mechanism is as follows: ; ; in, Indicates the genetic process The probability of a mutation occurring in an individual, Indicates the maximum number of iterations during the iteration process. Indicates The fitness function value of each individual, represents the value of the maximum mutation probability, represents the value of the minimum mutation probability, represents the average fitness value in the current population, Indicates the maximum fitness value in the current population; S3, optimize the BP neural network model through the improved genetic algorithm GA, and convert the actual production data mineral unit oxygen consumption Solvent rate , oxygen enrichment concentration , copper content , sulfur content 、 Iron content , silica content and magnesium oxide content As the input of BP neural network model, the copper matte grade value is finally obtained; S4. Verify the prediction accuracy of the improved GA-BP model.
2. The method for predicting the grade of oxygen-enriched bottom-blown copper matte based on GA-BP neural network according to claim 1 is characterized in that: The specific steps of the improved genetic algorithm in step S2 are as follows: S2.
1. Population initialization and setting of population generations ; S2.2, for The fitness of the generation population is calculated, and the calculation expression is as follows: ; in, represents the fitness function, Indicates The true value of the iterative sample of the kth group of population size in the generation, Indicates The predicted value of the iterative training sample of the kth group of population size samples in the generation, express and The norm of the difference between S2.3, select the best individual of the current iteration and its fitness function value, and determine whether the preset stop condition is met or the set maximum number of iterations is reached. If the stop condition is met or the maximum number of iterations is reached, the iteration is stopped, and the one with the smallest fitness function value is output as the best individual. If the stop condition is not met or the maximum number of iterations is not reached, execute step S2.4; S2.4, select operator; S2.5, crossover operator through adaptive crossover probability adjustment mechanism; S2.6, mutation operator through adaptive mutation probability adjustment mechanism; S2.7, retain the best individuals of the current generation through the elite individual retention strategy, and generate Generate a new population and jump to step S2.
2. As the initial value of step S2.2, iterate.
3. The method for predicting the grade of oxygen-enriched bottom-blown copper matte based on GA-BP neural network according to claim 1 is characterized in that: The prediction expression of step S4 is as follows: ; ; in, represents the root mean square error, represents the mean absolute error, Indicates the actual value, represents the predicted value of the model, represents the absolute value, Indicates summing the internal data.
Citation Information
Cited By
Method for on-line prediction of grade of copper matte in copper flash smelting and model construction
CN120089248A
An online prediction method and model construction for copper flash smelting matte grade
CN120089248B
Method for on-line prediction of iron content in copper flash smelting copper slag and model construction
CN120473006A
