Method and device for predicting process parameters of optical fiber preform primary drawing
By combining genetic algorithms and BP neural networks, historical data of optical fiber preforms are used to optimize process parameter predictions, which solves the problem of arbitrary selection of process parameters for one-time stretching of optical fiber preforms and improves the accuracy and consistency of process parameters.
Patent Information
- Application Number
- CN202010978830.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-17
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-09-17
AI Technical Summary
In the existing technology, the parameters of the one-time stretching process of the optical fiber preform are randomly selected, and the process parameters cannot be adjusted according to the properties of the optical fiber preform, resulting in inaccurate parameter settings during the processing.
Using a method based on the combination of genetic algorithm and BP neural network, the BP neural network is structurally optimized and trained through the historical processing data of optical fiber preforms, and the stretching process parameters of optical fiber preforms are predicted, including processing temperature, feeding speed and stretching. speed.
It is possible to adjust the process parameters according to the properties of the optical fiber preform, improve the accuracy and consistency of the process parameters, and solve the problem of arbitrary parameter selection.
Smart Images

Figure CN112100940B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical fiber preform and machine learning technology, and in particular to a method for predicting a primary stretching process parameter of an optical fiber preform and a device for predicting a primary stretching process parameter of an optical fiber preform. Background Art
[0002] Optical fiber is an important medium for transmitting information through photoelectric conversion based on the total reflection of light. It has the advantages of strong anti-electromagnetic interference ability, good transmission fidelity, light weight, low radiation, long transmission distance, and long service life. Optical fiber preform is a high-purity quartz glass rod with a specific refractive index profile used to manufacture optical fiber. The internal structure of the optical fiber is formed in the preform. The preform directly determines the type and performance of the optical fiber, and its production is the most important part of the optical fiber process.
[0003] The operation of axially stretching and radially shrinking the optical fiber preform mother rod while keeping the core-to-shell ratio and refractive index distribution constant is called the primary stretching process. The specific process is to clamp the upper end of the optical fiber preform mother rod at the top of the optical fiber drawing tower, put the lower end into the center area of a graphite high-temperature furnace at about 2,000 degrees Celsius to heat it to a molten state, and evenly stretch the mother rod to the required size under the traction of the bottom end.
[0004] At present, most companies in the industry will encounter the following problems in the setting of important parameters when conducting the primary stretching process of optical fiber preforms: First, there is the problem of parameter preset. The current process parameters are preset by on-site workers based on the preform mother rod batches and past processing experience. The parameter selection is relatively arbitrary and there is no clear quantitative relationship between the parameters; second, different mother rods in the same batch with obvious fluctuations in material properties within a certain range are treated in a general manner and processed with exactly the same processing parameters; finally, when key monitoring variables are abnormal during the processing process, workers tend to make inaccurate control measures. Summary of the invention
[0005] The purpose of the embodiment of the present invention is to predict the primary stretching process parameters of the optical fiber preform based on genetic algorithm and BP neural network, so as to solve the problem in the prior art that the parameters are selected arbitrarily and the process parameters cannot be adjusted according to the properties of the optical fiber preform.
[0006] In order to achieve the above object, in a first aspect of the present invention, a method for predicting process parameters of an optical fiber preform primary drawing process is provided, comprising:
[0007] Obtaining the rod diameter parameters of the optical fiber preform, wherein the rod diameter parameters of the optical fiber preform include the rod diameter of the mother rod, the rod diameter of the stretched target rod, and the rod diameter after stretching;
[0008] Taking the mother rod diameter, the stretching target rod diameter and the rod diameter after stretching as input, the stretching process parameters of the optical fiber preform are predicted through a preset BP neural network model, and the stretching process parameters include processing temperature, feeding speed and stretching speed; the preset BP neural network model is obtained by optimizing the structure of the BP neural network through a genetic algorithm, and training the BP neural network optimized by the genetic algorithm through historical processing data of the optical fiber preform;
[0009] The historical processing data includes historical rod diameter parameters of the optical fiber preform and corresponding stretching process parameters.
[0010] Optionally, the preset BP neural network model is obtained by optimizing the structure of the BP neural network through a genetic algorithm, and training the BP neural network optimized by the genetic algorithm through historical processing data of the optical fiber preform, including:
[0011] Obtain historical processing data of optical fiber preform;
[0012] Preprocess the historical processing data of optical fiber preform;
[0013] Divide the preprocessed historical data into a training set, a test set and a cross-validation set;
[0014] Determine the initial structure of the BP neural network according to the training set, train the BP neural network through the training set, and construct an initial BP neural network model with the network structure that has the best effect verified by the test set and the cross-validation set;
[0015] Optimizing the structure of the initial BP neural network model according to the genetic algorithm to obtain an optimized BP neural network model;
[0016] The network structure of the optimized BP neural network model is updated by error back propagation to obtain the preset BP neural network model.
[0017] Optionally, determining the initial structure of the BP neural network based on the training set includes:
[0018] Determining the number of nodes in the input layer and the output layer of the BP neural network according to the number of rod diameter parameters in the training set and the corresponding stretching process parameters; and
[0019] The prediction effects under different numbers of hidden layer nodes are calculated and compared according to the empirical formula to determine the optimal number of hidden layer nodes of the BP neural network.
[0020] Optionally, the structural optimization of the initial BP neural network model according to the genetic algorithm to obtain an optimized BP neural network model includes:
[0021] Performing real number encoding on the weights and thresholds of the initial BP neural network model to obtain an initial population;
[0022] According to the test set, the cross validation set and the preset population parameters, the fitness of the individual is calculated, the optimal individual is selected from the current population according to the fitness of the individual, the crossover and mutation operations are performed until the termination condition is reached, the optimal weights and thresholds are selected to update the weights and thresholds of the initial BP neural network model, and the optimized BP neural network model is obtained;
[0023] The population parameters include population size, maximum genetic generation, crossover probability and mutation probability.
[0024] Optionally, the updating of the network structure of the optimized BP neural network model by error back propagation to obtain the preset BP neural network model includes:
[0025] The optimized BP neural network model is trained according to the rod diameter parameters and the corresponding stretching process parameters in the training set, the error between the predicted value and the expected value of the optimized BP neural network model is calculated, and the weights and thresholds of the optimized BP neural network model are updated by error back propagation until the number of iterations is reached or the error between the predicted value and the expected value is less than the set value, thereby obtaining the preset BP neural network model.
[0026] In a second aspect of the present invention, there is provided a device for predicting process parameters of a primary drawing process of an optical fiber preform, comprising:
[0027] A data acquisition module is configured to acquire the rod diameter parameters of the optical fiber preform, wherein the rod diameter parameters of the optical fiber preform include the rod diameter of the mother rod, the rod diameter of the stretched target rod, and the rod diameter after stretching;
[0028] The prediction module is configured to take the diameter of the mother rod, the target diameter of the stretched rod and the diameter of the stretched rod as inputs, and predict the stretching process parameters of the optical fiber preform through a preset BP neural network model, wherein the stretching process parameters include processing temperature, feeding speed and stretching speed; the preset BP neural network model is obtained by optimizing the structure of the BP neural network through a genetic algorithm, and training the BP neural network optimized by the genetic algorithm through historical processing data of the optical fiber preform;
[0029] The historical processing data includes historical rod diameter parameters of the optical fiber preform and corresponding stretching process parameters.
[0030] Optionally, the prediction module includes:
[0031] A historical data acquisition unit, configured to acquire historical processing data of the optical fiber preform;
[0032] A data processing unit configured to pre-process the historical processing data of the optical fiber preform;
[0033] A data set division unit is configured to divide the preprocessed historical processed data into a training set, a test set and a cross-validation set;
[0034] A first training unit is configured to determine an initial structure of a BP neural network based on the training set, train the BP neural network through the training set, and construct an initial BP neural network model with a network structure that has the best effect verified by the test set and the cross-validation set;
[0035] A second training unit is configured to perform structural optimization on the initial BP neural network model according to the genetic algorithm to obtain an optimized BP neural network model;
[0036] The third training unit is configured to update the network structure of the optimized BP neural network model through error back propagation to obtain the preset BP neural network model.
[0037] Optionally, the first training unit is further configured to:
[0038] Determining the number of nodes in the input layer and the output layer of the BP neural network according to the number of rod diameter parameters in the training set and the corresponding stretching process parameters; and
[0039] The prediction effects under different numbers of hidden layer nodes are calculated and compared according to the empirical formula to determine the optimal number of hidden layer nodes of the BP neural network.
[0040] Optionally, the second training unit includes:
[0041] A first calculation subunit is configured to perform real number encoding on the weights and thresholds of the initial BP neural network model to obtain an initial population;
[0042] The second computing subunit is configured to calculate the fitness of the individual according to the test set, the cross validation set and the preset population parameters, select the best individual from the current population according to the fitness of the individual, perform crossover and mutation operations until the termination condition is reached, select the best weights and thresholds to update the weights and thresholds of the initial BP neural network model, and obtain an optimized BP neural network model;
[0043] The population parameters include population size, maximum genetic generation, crossover probability and mutation probability.
[0044] Optionally, the third training unit is configured to:
[0045] The optimized BP neural network model is trained according to the rod diameter parameters and the corresponding stretching process parameters in the training set, the error between the predicted value and the expected value of the optimized BP neural network model is calculated, and the weights and thresholds of the optimized BP neural network model are updated by error back propagation until the number of iterations is reached or the error between the predicted value and the expected value is less than the set value, thereby obtaining the preset BP neural network model.
[0046] The above technical solution of the present invention combines the genetic algorithm and the BP neural network and complements each other's advantages, uses the BP neural network to establish a complex nonlinear mapping relationship between the mother rod diameter, the stretching target rod diameter, the processing temperature, the feeding speed, the stretching speed and the rod diameter after stretching, uses the genetic algorithm to optimize the structure and parameters of the BP neural network, and seeks the optimal parameter combination that meets the process requirements within the parameter feasible domain, thereby constructing a process parameter prediction model based on the genetic algorithm and the BP neural network to predict the primary stretching process parameters of the optical fiber preform, which meets the actual process requirements and has strong practicality, and effectively solves the problem of arbitrary parameter selection and inability to adjust the process parameters according to the properties of the optical fiber preform in the prior art.
[0047] Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0049] Figure 1 It is a method flow chart of a method for predicting optical fiber preform primary drawing process parameters provided by a preferred embodiment of the present invention;
[0050] Figure 2 It is a schematic diagram of the process flow for predicting the primary drawing process parameters of an optical fiber preform provided by a preferred embodiment of the present invention;
[0051] Figure 3 It is a flow chart of genetic algorithm and BP neural network algorithm provided by the preferred embodiment of the present invention;
[0052] Figure 4 It is a schematic diagram of the genetic algorithm principle provided by the preferred embodiment of the present invention;
[0053] Figure 5 It is a schematic block diagram of an optical fiber preform primary stretching process parameter prediction device provided in a preferred embodiment of the present invention.
[0054] Description of Reference Numerals
[0055] 201-data acquisition module, 202-prediction module. DETAILED DESCRIPTION
[0056] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.
[0057] like Figure 1 , Figure 2 and Figure 3 As shown, in a first aspect of this embodiment, a method for predicting process parameters of an optical fiber preform primary drawing is provided, comprising:
[0058] S100, obtaining the rod diameter parameters of the optical fiber preform, the rod diameter parameters of the optical fiber preform including the mother rod diameter, the stretching target rod diameter and the rod diameter after stretching;
[0059] S200, taking the mother rod diameter, the stretching target rod diameter and the rod diameter after stretching as input, predicting the stretching process parameters of the optical fiber preform through a preset BP neural network model, the stretching process parameters including processing temperature, feeding speed and stretching speed; the preset BP neural network model is obtained by optimizing the structure of the BP neural network through a genetic algorithm, and training the BP neural network optimized by the genetic algorithm through historical processing data of the optical fiber preform, wherein the historical processing data includes historical rod diameter parameters of the optical fiber preform and corresponding stretching process parameters.
[0060] In this way, this embodiment combines the genetic algorithm and the BP neural network and complements their advantages, uses the BP neural network to establish a complex nonlinear mapping relationship between the mother rod diameter, the stretching target rod diameter, the processing temperature, the feed speed, the stretching speed and the rod diameter after stretching, and uses the genetic algorithm to optimize the structure and parameters of the BP neural network, and seeks the optimal parameter combination that meets the process requirements within the parameter feasible domain, thereby constructing a process parameter prediction model based on the genetic algorithm and the BP neural network to predict the primary stretching process parameters of the optical fiber preform, which meets the actual process requirements and has strong practicality, and effectively solves the problem of arbitrary parameter selection and inability to adjust the process parameters according to the properties of the optical fiber preform in the prior art.
[0061] Specifically, genetic algorithms can simulate the evolutionary phenomenon of survival of the fittest in nature, map the search space, that is, the composition space of the problem solution, into the genetic space, and encode the possible solutions into a vector - chromosome, each element of the vector is called a gene. By continuously calculating the fitness of each chromosome, the best chromosome is selected to obtain the optimal solution; BP neural network is the most widely used network in artificial neural networks and has a relatively mature algorithm. It has strong nonlinear mapping ability, high self-learning and self-adaptation ability, strong generalization ability and certain fault tolerance, and can be used for parameter prediction. Despite this, it still has obvious shortcomings: slow convergence speed, easy to fall into local minimum, unfixed network structure selection and strong sample dependence, these shortcomings may cause large deviations, thus affecting the prediction results. This embodiment, by combining genetic algorithm and BP neural network, can effectively solve the problems of slow convergence speed of traditional BP neural network, easy to fall into local minimum, unstable network structure selection and strong sample dependence. On this basis, by establishing a complex nonlinear mapping relationship between the mother rod diameter, the stretching target rod diameter, the processing temperature, the feeding speed, the stretching speed and the rod diameter after stretching, the primary stretching process parameters of the optical fiber preform are predicted based on the genetic algorithm and the BP neural network, so that the primary stretching process parameters of the optical fiber preform can be adjusted according to the material properties of different optical fiber preforms.
[0062] In step S100, the processing data collected at the factory site is directly obtained, wherein the processing data includes the rod diameter parameters and the stretching process parameters of the optical fiber preform, specifically including the diameter of the mother rod of the optical fiber preform, the stretching target rod diameter, the processing temperature, the feeding speed, the stretching speed and the rod diameter after stretching, and the relationship between the rod diameter after stretching and each influencing factor is pre-established and expressed as: R f =f(R i ,R t ,T,V f ,V d ), where R f is the rod diameter after stretching, R i is the diameter of the mother rod, R t is the target rod diameter, T is the processing temperature, V f is the feeding speed, V d is the stretching speed.
[0063] In step S200, the historical processing data of the primary stretching process of the optical fiber preform collected at the factory site is obtained in advance, and the BP neural network is trained according to the historical processing data of the optical fiber preform, so as to establish a prediction model. Therefore, the preset BP neural network model is obtained by optimizing the structure of the BP neural network through a genetic algorithm, and training the BP neural network optimized by the genetic algorithm through the historical processing data of the optical fiber preform, including:
[0064] S201, obtaining historical processing data of optical fiber preform;
[0065] S202, preprocessing the historical processing data of the optical fiber preform;
[0066] S203, dividing the pre-processed historical processed data into a training set, a test set and a cross-validation set;
[0067] S204, determining the initial structure of the BP neural network based on the training set, training the BP neural network through the training set, and constructing an initial BP neural network model with the network structure that has the best effect verified by the test set and the cross-validation set;
[0068] S205, optimizing the structure of the initial BP neural network model according to a genetic algorithm to obtain an optimized BP neural network model;
[0069] S206, updating the network structure of the optimized BP neural network model through error back propagation to obtain a preset BP neural network model.
[0070] Among them, the acquired historical processing data of optical fiber preform rods and other data are preprocessed, mainly including outlier processing, interpolation processing, training set test set division and normalization processing. For all the acquired historical data, several data pieces whose rod diameter after stretching obviously exceeds the tolerance requirements of the process are directly deleted, and several empty data pieces generated by acquisition anomalies are replaced by Lagrange interpolation. After the data sample set is determined, it is divided into 70% as a training set, 15% as a test set, and 15% as a cross-validation set. The data sample set is normalized based on the maximum and minimum method according to different parameter categories. The maximum and minimum method formula is as follows: where x std is the normalized data, x is the original data, and x min is the minimum value of the data sequence, x max The maximum value of the data series.
[0071] In step S204, the initial structure of the BP neural network is determined based on the training set, including:
[0072] Determine the number of nodes in the input layer and output layer of the BP neural network according to the number of rod diameter parameters in the training set and the corresponding stretching process parameters;
[0073] The prediction effects under different numbers of hidden layer nodes are calculated and compared according to the empirical formula to determine the optimal number of hidden layer nodes of the BP neural network.
[0074] This embodiment uses the mother rod diameter, the stretching target rod diameter and the rod diameter after stretching as the input of the BP neural network, and the processing temperature, feeding speed and stretching speed as the output of the BP neural network. Then, according to the number of rod diameter parameters and the corresponding stretching process parameters, the number of nodes in the input layer and the output layer of the BP neural network can be determined as 3 for the input layer and 3 for the output layer. At the same time, this embodiment uses a BP neural network containing one hidden layer to establish a one-time stretching process parameter prediction model for optical fiber preforms. The number of hidden layer nodes is selected from an appropriate range according to an empirical formula and tried one by one. The prediction effects under different numbers of hidden layer nodes are calculated and compared according to the empirical formula to determine the optimal number of hidden layer nodes of the BP neural network. Select the network structure with the best test effect and cross-validation effect. Among them, the empirical formula includes:
[0075] 1)
[0076] 2) m = log2n;
[0077] 3)
[0078] Where m is the number of nodes in the hidden layer, n is the number of nodes in the input layer, l is the number of nodes in the output layer, α is a constant between 1 and 10, and the deviation between the prediction and the actual result, that is, the prediction accuracy, is determined by the loss function formula, which is:
[0079]
[0080] Among them, J is the cost function for the entire training set, w is the weight value, b is the bias value, m is the number of samples, i is the index number of selected samples, k is the index number of output results, L is the loss function for a single training sample, y k (i) is the actual result of the i-th sample, is the prediction result of the i-th sample.
[0081] After clarifying the parameter relationship of the BP neural network and preliminarily determining the initial structure of the BP neural network, the BP neural network is preliminarily trained through the training set data, and the output results are verified through the test set and cross-validation set. The network structure with the best verification effect is selected to determine the topological structure and related parameters of the BP neural network, and the initial BP neural network model is constructed based on this.
[0082] like Figure 4 As shown in the figure, after determining the topological structure of the neural network, it is necessary to further determine the feasible domain of the objective function and the parameters in the actual process. Then, the structure of the initial BP neural network model is optimized according to the genetic algorithm to obtain the optimized BP neural network model, including:
[0083] The weights and thresholds of the initial BP neural network model are encoded with real numbers to obtain the initial population;
[0084] According to the test set, cross-validation set and preset population parameters, the fitness of the individual is calculated, and the best individual is selected from the current population according to the fitness of the individual. The crossover and mutation operations are performed until the termination condition is reached. The optimal weights and thresholds are selected to update the weights and thresholds of the initial BP neural network model to obtain the optimized BP neural network model.
[0085] Among them, population parameters include population size, maximum genetic generations, crossover probability and mutation probability.
[0086] First, the BP neural network weights and thresholds are encoded with real numbers to obtain the initial population. Then, the structural parameters, optimization operator and fitness function of the genetic algorithm are set as follows:
[0087] 1) Population size: that is, the number of individuals contained in the population. If the population size is too small, the search range will be reduced, resulting in the inability to find the optimal solution. If the population size is too large, the search range will be increased, resulting in low optimization efficiency. In the model of this implementation, the population size is set to 100;
[0088] 2) Crossover probability: The process of exchanging some genes of chromosomes of two individuals in a certain way to form two new individuals is called crossover. If the crossover probability is too small, the search speed will be reduced or even stagnant. If the probability is too high, the structure of excellent individuals will be destroyed. In this implementation, the crossover probability is set to 0.6;
[0089] 3) Mutation probability: After the crossover operation, the new individual has a certain probability of undergoing gene mutation. The mutation probability is generally small. In this embodiment, the mutation probability is set to 0.01;
[0090] 4) Maximum genetic generation: When the number of program iterations reaches the set termination value, the search process will automatically stop. In this implementation, the maximum genetic generation is set to 500;
[0091] 5) Optimization operator: The low-level selection operator and recombination operator used in the search process. In this implementation, the roulette selection operator is selected as the selection operator, and the single-point crossover is selected as the recombination operator.
[0092] 6) Fitness function: In order to make the residual error between the predicted value and the expected value of the BP neural network as small as possible during prediction, the norm of the error matrix between the predicted value and the expected value of the predicted sample is selected as the output of the objective function in this embodiment, and the fitness function adopts the sorted fitness allocation function - FitnessV = ranking (obj), where obj is the output of the objective function.
[0093] After decoding the BP neural network code, the weights and thresholds are obtained and assigned to the newly created BP neural network. The BP neural network is trained using the training set samples, and then the prediction performance of the network is evaluated using the test set and cross-validation set samples. The fitness of the current population is calculated, and chromosomes with high fitness are selected for replication. A new population is generated through population crossover and mutation processes. It is determined whether the program termination condition is met. If the termination condition has not been met, the step is repeated. If the termination condition has been met, the neural network is decoded to obtain the optimal neural network weights and thresholds. Among them, the termination condition may include but is not limited to: after several iterations, the overall situation of the population does not change much; the set maximum genetic generation is reached; the preset fitness function value is reached.
[0094] The optimal solution obtained by the genetic algorithm is used as the weight and threshold of the optimized BP neural network model, the optimized BP neural network model is trained through the training set, the prediction error of the optimized BP neural network model is calculated, and the weights and thresholds of each layer of the network are corrected according to the obtained error to achieve the reverse propagation of the error, until the number of iterations is reached or the error is controlled within a certain acceptable range, thereby completing the training of the optimized BP neural network model and obtaining the optimized BP neural network model with a final structure. Therefore, the network structure of the optimized BP neural network model is updated by error reverse propagation to obtain a preset BP neural network model, including:
[0095] The optimized BP neural network model is trained according to the rod diameter parameters and the corresponding stretching process parameters in the training set, and the error between the predicted value and the expected value of the optimized BP neural network model is calculated. The weights and thresholds of the optimized BP neural network model are updated by error back propagation until the number of iterations is reached or the error between the predicted value and the expected value is less than the set value, and the preset BP neural network model is obtained.
[0096] Among them, the main steps of the back propagation algorithm are as follows:
[0097] 1) Network initialization: The connection weight ω from the input layer to the hidden layer ij , the connection weight from the hidden layer to the output layer ν ki , hidden layer threshold θ i And the output layer threshold σ k Assign the corresponding value of the optimal solution obtained by the genetic algorithm;
[0098] 2) Calculate the input variable α of the i-th node in the hidden layer of the neural network i :
[0099] 3) Calculate the output variable y of the i-th node in the hidden layer of the neural network i :
[0100] 4) Calculate the input variable β of the kth node in the output layer of the neural network k :
[0101] 5) Calculate the output variable o of the kth node in the output layer of the neural network k :
[0102] 6) Calculate the difference e between the predicted value and the expected value of the kth node in the output layer of the neural network k :e k =y k -o k , so we can see that the total error of the neural network is
[0103] 7) Update the connection weights from the hidden layer to the output layer:
[0104] 8) Update the output layer threshold:
[0105] 9) Update the connection weights from the input layer to the hidden layer:
[0106] 10) Update the hidden layer threshold: Among them, φ(x) and ψ(x) represent the activation functions of the hidden layer and the output layer respectively;
[0107] 11) Determine whether the algorithm meets the termination conditions, such as reaching the number of iterations or the connection weight and threshold adjustment amount are lower than the preset value. If not, return to step 2 of the back propagation algorithm.
[0108] According to the above-mentioned reverse propagation algorithm, the normalized training set samples are input into the optimized BP neural network model for calculation, and the weights and thresholds of each layer of the network are corrected according to the error to realize the reverse propagation of the error until the algorithm reaches the number of iterations or the error is less than the preset value. The training is completed and the final structure-determined optimized BP neural network model is obtained, which is used as the preset BP neural network model.
[0109] The normalized test set and cross-validation set samples are input into the preset BP neural network model obtained according to the above steps for calculation and verification. The verification results show that the predicted values of the BP neural network model optimized by the genetic algorithm are significantly consistent with the measured values than the traditional BP neural network model.
[0110] like Figure 5 As shown, in a second aspect of the present invention, a device for predicting process parameters of a primary drawing process of an optical fiber preform is provided, comprising:
[0111] The data acquisition module 201 is configured to acquire the rod diameter parameters of the optical fiber preform, wherein the rod diameter parameters of the optical fiber preform include the mother rod diameter, the stretching target rod diameter, and the rod diameter after stretching;
[0112] The prediction module 202 is configured to take the diameter of the mother rod, the target diameter of the stretched rod and the diameter of the stretched rod as inputs, and predict the stretching process parameters of the optical fiber preform through a preset BP neural network model, the stretching process parameters including processing temperature, feeding speed and stretching speed; the preset BP neural network model is obtained by optimizing the structure of the BP neural network through a genetic algorithm, and training the BP neural network optimized by the genetic algorithm through historical processing data of the optical fiber preform;
[0113] The historical processing data includes the historical rod diameter parameters of the optical fiber preform and the corresponding stretching process parameters.
[0114] Optionally, the prediction module 202 includes:
[0115] A historical data acquisition unit, configured to acquire historical processing data of the optical fiber preform;
[0116] A data processing unit configured to pre-process historical processing data of the optical fiber preform;
[0117] A data set division unit is configured to divide the preprocessed historical processed data into a training set, a test set and a cross-validation set;
[0118] The first training unit is configured to determine the initial structure of the BP neural network according to the training set, train the BP neural network through the training set, and construct an initial BP neural network model with the network structure that has the best effect verified by the test set and the cross-validation set;
[0119] The second training unit is configured to perform structural optimization on the initial BP neural network model according to a genetic algorithm to obtain an optimized BP neural network model;
[0120] The third training unit is configured to update the network structure of the optimized BP neural network model through error back propagation to obtain a preset BP neural network model.
[0121] Optionally, the first training unit is further configured to:
[0122] Determining the number of nodes in the input layer and the output layer of the BP neural network according to the number of rod diameter parameters in the training set and the corresponding stretching process parameters; and
[0123] The prediction effects under different numbers of hidden layer nodes are calculated and compared according to the empirical formula to determine the optimal number of hidden layer nodes of the BP neural network.
[0124] Optionally, the second training unit includes:
[0125] A first calculation subunit is configured to perform real number encoding on the weights and thresholds of the initial BP neural network model to obtain an initial population;
[0126] The second computing subunit is configured to calculate the fitness of the individual according to the test set, the cross-validation set and the preset population parameters, select the best individual from the current population according to the fitness of the individual, perform crossover and mutation operations until the termination condition is reached, select the best weights and thresholds to update the weights and thresholds of the initial BP neural network model, and obtain the optimized BP neural network model;
[0127] Population parameters include population size, maximum genetic generations, crossover probability and mutation probability.
[0128] Optionally, the third training unit is configured to:
[0129] The optimized BP neural network model is trained according to the rod diameter parameters and the corresponding stretching process parameters in the training set, and the error between the predicted value and the expected value of the optimized BP neural network model is calculated. The weights and thresholds of the optimized BP neural network model are updated by error back propagation until the number of iterations is reached or the error between the predicted value and the expected value is less than the set value, and the preset BP neural network model is obtained.
[0130] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0131] In summary, this embodiment combines the genetic algorithm and the BP neural network and complements their advantages, uses the BP neural network to establish a complex nonlinear mapping relationship between the mother rod diameter, the stretching target rod diameter, the processing temperature, the feed speed, the stretching speed and the rod diameter after stretching, and uses the genetic algorithm to optimize the structure and parameters of the BP neural network, and seeks the optimal parameter combination that meets the process requirements within the parameter feasible domain, thereby constructing a process parameter prediction model based on the genetic algorithm and the BP neural network to predict the primary stretching process parameters of the optical fiber preform, which meets the actual process requirements and has strong practicality, and effectively solves the problem of arbitrary parameter selection and inability to adjust the process parameters according to the properties of the optical fiber preform in the prior art.
[0132] The optional embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the above embodiments. Within the technical concept of the embodiments of the present invention, a variety of simple modifications can be made to the technical solutions of the embodiments of the present invention, and these simple modifications all belong to the protection scope of the embodiments of the present invention.
[0133] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, the embodiments of the present invention will not further describe various possible combinations.
[0134] Those skilled in the art will understand that all or part of the steps in the method for implementing the above-mentioned embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions for making a single-chip microcomputer, a chip or a processor (processor) execute all or part of the steps of the method of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0135] In addition, various embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the embodiments of the present invention, they should also be regarded as the contents disclosed in the embodiments of the present invention.
Claims
1. A method for predicting process parameters of optical fiber preform primary drawing, characterized in that: include: Obtaining the rod diameter parameters of the optical fiber preform, wherein the rod diameter parameters of the optical fiber preform include the rod diameter of the mother rod, the rod diameter of the stretched target rod, and the rod diameter after stretching; Taking the mother rod diameter, the stretching target rod diameter and the rod diameter after stretching as input, the stretching process parameters of the optical fiber preform are predicted through a preset BP neural network model, and the stretching process parameters include processing temperature, feeding speed and stretching speed; the preset BP neural network model is obtained by optimizing the structure of the BP neural network through a genetic algorithm, and training the BP neural network optimized by the genetic algorithm through historical processing data of the optical fiber preform; The historical processing data includes historical rod diameter parameters of the optical fiber preform and corresponding stretching process parameters; The preset BP neural network model is obtained by optimizing the structure of the BP neural network through a genetic algorithm, and training the BP neural network optimized by the genetic algorithm through historical processing data of the optical fiber preform, including: Obtain historical processing data of optical fiber preform; Preprocess the historical processing data of optical fiber preform; Divide the preprocessed historical data into a training set, a test set and a cross-validation set; Determine the initial structure of the BP neural network according to the training set, train the BP neural network through the training set, and construct an initial BP neural network model with the network structure that has the best effect verified by the test set and the cross-validation set; Performing structural optimization on the initial BP neural network model according to the genetic algorithm to obtain an optimized BP neural network model; The network structure of the optimized BP neural network model is updated by error back propagation to obtain the preset BP neural network model; Determining the initial structure of the BP neural network based on the training set includes: Determining the number of nodes in the input layer and the output layer of the BP neural network according to the number of rod diameter parameters in the training set and the corresponding stretching process parameters; and Calculate and compare the prediction effects under different numbers of hidden layer nodes according to the empirical formula to determine the optimal number of hidden layer nodes of the BP neural network; Among them, the empirical formula includes: m = log2n; Where m is the number of hidden layer nodes, n is the number of input layer nodes, l is the number of output layer nodes, and α is a constant between 1 and 10; The loss function used to judge the prediction effect is: Among them, J is the cost function for the entire training set, w is the weight value, b is the bias value, m is the number of samples, i is the index number of selected samples, k is the index number of output results, L is the loss function for a single training sample, y k (i) is the actual result of the i-th sample, is the prediction result of the i-th sample; The method of updating the network structure of the optimized BP neural network model by error back propagation to obtain the preset BP neural network model includes: The optimized BP neural network model is trained according to the rod diameter parameters and the corresponding stretching process parameters in the training set, the error between the predicted value and the expected value of the optimized BP neural network model is calculated, and the weight and threshold of the optimized BP neural network model are updated by error back propagation until the number of iterations is reached or the error between the predicted value and the expected value is less than the set value, thereby obtaining the preset BP neural network model; The steps of the back propagation algorithm include: 1) Network initialization: The connection weight ω from the input layer to the hidden layer ij , the connection weight from the hidden layer to the output layer ν ki , hidden layer threshold θ i And the output layer threshold σ k Assign the corresponding value of the optimal solution obtained by the genetic algorithm; 2) Calculate the input variable α of the i-th node in the hidden layer of the neural network i : 3) Calculate the output variable y of the i-th node in the hidden layer of the neural network i : 4) Calculate the input variable β of the kth node in the output layer of the neural network k : 5) Calculate the output variable o of the kth node in the output layer of the neural network k : 6) Calculate the difference e between the predicted value and the expected value of the kth node in the output layer of the neural network k :e k =y k -o k , so we can see that the total error of the neural network is 7) Update the connection weights from the hidden layer to the output layer: 8) Update the output layer threshold: 9) Update the connection weights from the input layer to the hidden layer: 10) Update the hidden layer threshold: Among them, φ(x) and ψ(x) represent the activation functions of the hidden layer and the output layer respectively; 11) Determine whether the algorithm meets the termination condition. If not, return to step 2, where the termination condition includes reaching the number of iterations, or the weight and threshold adjustment amount are lower than the preset value.
2. The optical fiber preform primary drawing process parameter prediction method according to claim 1, characterized in that: The structural optimization of the initial BP neural network model according to the genetic algorithm to obtain the optimized BP neural network model includes: Performing real number encoding on the weights and thresholds of the initial BP neural network model to obtain an initial population; According to the test set, the cross validation set and the preset population parameters, the fitness of the individual is calculated, the optimal individual is selected from the current population according to the fitness of the individual, the crossover and mutation operations are performed until the termination condition is reached, the optimal weights and thresholds are selected to update the weights and thresholds of the initial BP neural network model, and the optimized BP neural network model is obtained; The population parameters include population size, maximum genetic generation, crossover probability and mutation probability.
3. An optical fiber preform primary drawing process parameter prediction device, characterized in that: include: A data acquisition module is configured to acquire the rod diameter parameters of the optical fiber preform, wherein the rod diameter parameters of the optical fiber preform include the rod diameter of the mother rod, the rod diameter of the stretched target rod, and the rod diameter after stretching; The prediction module is configured to take the diameter of the mother rod, the target diameter of the stretched rod and the diameter of the stretched rod as inputs, and predict the stretching process parameters of the optical fiber preform through a preset BP neural network model, wherein the stretching process parameters include processing temperature, feeding speed and stretching speed; the preset BP neural network model is obtained by optimizing the structure of the BP neural network through a genetic algorithm, and training the BP neural network optimized by the genetic algorithm through historical processing data of the optical fiber preform; The historical processing data includes historical rod diameter parameters of the optical fiber preform and corresponding stretching process parameters; The prediction module comprises: A historical data acquisition unit, configured to acquire historical processing data of the optical fiber preform; A data processing unit configured to pre-process the historical processing data of the optical fiber preform; A data set division unit is configured to divide the preprocessed historical processed data into a training set, a test set and a cross-validation set; A first training unit is configured to determine an initial structure of a BP neural network based on the training set, train the BP neural network through the training set, and construct an initial BP neural network model with a network structure that has the best effect verified by the test set and the cross-validation set; A second training unit is configured to perform structural optimization on the initial BP neural network model according to the genetic algorithm to obtain an optimized BP neural network model; A third training unit is configured to update the network structure of the optimized BP neural network model through error back propagation to obtain the preset BP neural network model; The first training unit is further configured to: Determining the number of nodes in the input layer and the output layer of the BP neural network according to the number of rod diameter parameters in the training set and the corresponding stretching process parameters; and Calculate and compare the prediction effects under different numbers of hidden layer nodes according to the empirical formula to determine the optimal number of hidden layer nodes of the BP neural network; Among them, the empirical formula includes: m = log2n; Where m is the number of hidden layer nodes, n is the number of input layer nodes, l is the number of output layer nodes, and α is a constant between 1 and 10; The loss function used to judge the prediction effect is: Among them, J is the cost function for the entire training set, w is the weight value, b is the bias value, m is the number of samples, i is the index number of selected samples, k is the index number of output results, L is the loss function for a single training sample, y k (i) is the actual result of the i-th sample, is the prediction result of the i-th sample; The third training unit is configured as follows: The optimized BP neural network model is trained according to the rod diameter parameters and the corresponding stretching process parameters in the training set, the error between the predicted value and the expected value of the optimized BP neural network model is calculated, and the weight and threshold of the optimized BP neural network model are updated by error back propagation until the number of iterations is reached or the error between the predicted value and the expected value is less than the set value, thereby obtaining the preset BP neural network model; The steps of the back propagation algorithm include: 1) Network initialization: The connection weight ω from the input layer to the hidden layer ij , the connection weight from the hidden layer to the output layer ν ki , hidden layer threshold θ i And the output layer threshold σ k Assign the corresponding value of the optimal solution obtained by the genetic algorithm; 2) Calculate the input variable α of the i-th node in the hidden layer of the neural network i : 3) Calculate the output variable y of the i-th node in the hidden layer of the neural network i : 4) Calculate the input variable β of the kth node in the output layer of the neural network k : 5) Calculate the output variable o of the kth node in the output layer of the neural network k : 6) Calculate the difference e between the predicted value and the expected value of the kth node in the output layer of the neural network k :e k =y k -o k , so we can see that the total error of the neural network is 7) Update the connection weights from the hidden layer to the output layer: 8) Update the output layer threshold: 9) Update the connection weights from the input layer to the hidden layer: 10) Update the hidden layer threshold: Among them, φ(x) and ψ(x) represent the activation functions of the hidden layer and the output layer respectively; 11) Determine whether the algorithm meets the termination condition. If not, return to step 2, where the termination condition includes reaching the number of iterations, or the weight and threshold adjustment amount are lower than the preset value.
4. The optical fiber preform primary drawing process parameter prediction device according to claim 3, characterized in that: The second training unit comprises: A first calculation subunit is configured to perform real number encoding on the weights and thresholds of the initial BP neural network model to obtain an initial population; The second computing subunit is configured to calculate the fitness of the individual according to the test set, the cross validation set and the preset population parameters, select the best individual from the current population according to the fitness of the individual, perform crossover and mutation operations until the termination condition is reached, select the best weights and thresholds to update the weights and thresholds of the initial BP neural network model, and obtain an optimized BP neural network model; The population parameters include population size, maximum genetic generation, crossover probability and mutation probability.
