CN114004341A - Optical fiber preform preparation process optimization method based on genetic algorithm and BP neural network - Google Patents

Optical fiber preform preparation process optimization method based on genetic algorithm and BP neural network Download PDF

Info

Publication number
CN114004341A
CN114004341A CN202111345402.1A CN202111345402A CN114004341A CN 114004341 A CN114004341 A CN 114004341A CN 202111345402 A CN202111345402 A CN 202111345402A CN 114004341 A CN114004341 A CN 114004341A
Authority
CN
China
Prior art keywords
optical fiber
chromosome
neural network
fitness
fiber preform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111345402.1A
Other languages
Chinese (zh)
Inventor
于景明
陈卫东
孙洋
张斌
李浩源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weihai Changhe Light Guide Technology Co ltd
Shandong University
Hongan Group Co Ltd
Original Assignee
Weihai Changhe Light Guide Technology Co ltd
Shandong University
Hongan Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weihai Changhe Light Guide Technology Co ltd, Shandong University, Hongan Group Co Ltd filed Critical Weihai Changhe Light Guide Technology Co ltd
Priority to CN202111345402.1A priority Critical patent/CN114004341A/en
Publication of CN114004341A publication Critical patent/CN114004341A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • CCHEMISTRY; METALLURGY
    • C03GLASS; MINERAL OR SLAG WOOL
    • C03BMANUFACTURE, SHAPING, OR SUPPLEMENTARY PROCESSES
    • C03B37/00Manufacture or treatment of flakes, fibres, or filaments from softened glass, minerals, or slags
    • C03B37/01Manufacture of glass fibres or filaments
    • C03B37/012Manufacture of preforms for drawing fibres or filaments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/12Computing arrangements based on biological models using genetic models
    • G06N3/126Evolutionary algorithms, e.g. genetic algorithms or genetic programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Biophysics (AREA)
  • Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Evolutionary Biology (AREA)
  • Chemical & Material Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physiology (AREA)
  • Genetics & Genomics (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • Geochemistry & Mineralogy (AREA)
  • Manufacturing & Machinery (AREA)
  • Materials Engineering (AREA)
  • Organic Chemistry (AREA)
  • Optical Communication System (AREA)

Abstract

The application provides an optimization method of an optical fiber preform preparation process based on a Genetic algorithm and a BP (back propagation) neural network, which comprises the steps of processing test data, constructing an optical fiber preform preparation quality prediction model net based on the BP neural network, constructing a Genetic algorithm model, optimizing an initial weight and a threshold of the optical fiber preform preparation quality prediction model net based on the BP neural network, assigning the weight and the threshold optimized by the Genetic algorithm to the BP neural network, training the BP neural network, testing the optical fiber preform preparation quality prediction model net based on the BP neural network, adjusting the weight and the threshold of the optical fiber preform preparation quality prediction model net according to a test error, and obtaining the optical fiber preform preparation quality prediction model based on the BP neural network; then, optimizing the input data through a genetic algorithm model optize to find out the optimal input gas combination; the invention can use the neural network to replace a large amount of experimental labor, save the cost and improve the efficiency.

Description

Optical fiber preform preparation process optimization method based on genetic algorithm and BP neural network
Technical Field
The invention relates to the technical field of optical fiber preform production, in particular to an optical fiber preform preparation process optimization method based on a genetic algorithm and a BP neural network.
Background
In the field of optical fiber preform production, a controlled variable method is mostly adopted for experiments in the aspect of optical fiber preform manufacturing quality, and in recent years, a neural network and a genetic algorithm are rapidly developed, so that the method is suitable for solving the complex relation and is better applied in the aspects of material preparation and optimization.
At present, the process optimization method in the field of optical fiber preform production needs to be carried out by experiments, and the influence of different gas components on the preparation quality of the optical fiber preform is tested by using a controlled variable method; however, the method has the characteristics of too many variables to be controlled, nonlinearity, strong coupling property and the like, and a great amount of experiments are needed to find a better process scheme, so that a great amount of manpower, material resources and time are consumed.
Disclosure of Invention
The invention aims to make up for the defects of the prior art, and provides an optimization method of a preparation process of an optical fiber preform based on a genetic algorithm and a BP neural network, wherein the technical scheme adopted by the invention is as follows:
an optical fiber perform preparation process optimization method based on a genetic algorithm and a BP neural network comprises the following specific steps:
step 1: collecting original data of optical fiber preform production, collecting gas flow of a blast burner and optical rod quality corresponding to the gas flow when the optical fiber preform is prepared, and respectively using the gas flow as input data and the optical rod quality as output data;
step 2: preprocessing the collected original data, and removing invalid data to obtain a preprocessed data set; the invalid data refers to the data of abnormal production conditions of the optical fiber preform and the quality of the optical fiber preform, and is caused by accidental factors in production;
and step 3: grading the quality of the optical rod, dividing the quality of the optical rod into a plurality of grades according to the optical performance of the optical rod, the transmission performance of the produced optical fiber and the mechanical performance, and grouping the preprocessed data sets according to the grade of the quality of the optical rod;
and 4, step 4: dividing each group of data into a training set and a testing set by adopting a retention method;
and 5: normalizing the training set by using a mapminmax function, normalizing input data and output data of the training set to be between-1 and 1, and outputting normalized input transformation data input train and output transformation data output train;
step 6: constructing an optical fiber preform preparation quality prediction model net based on a BP neural network;
and 7: constructing a Genetic algorithm model, optimizing an initial weight and a threshold of a BP neural network-based optical fiber preform preparation quality prediction model net to obtain an optimal individual x, wherein the optimal individual x comprises the initial weight and the threshold information of the optimized BP neural network;
and 8: assigning the weight value and the threshold value optimized by the genetic algorithm to a BP neural network; extracting an initial weight and a threshold value of the optimized BP neural network from the optimal individual x solved by the genetic algorithm, and assigning a value to the BP neural network after finishing;
and step 9: BP neural network training: setting training parameters, iteration times, learning efficiency and target precision; inputting normalized input transformation data input train and output transformation data output train by using a train function to complete the training of the neural network, namely completing the training of an optical fiber preform preparation quality prediction model based on the BP neural network;
step 10: normalizing the training set by using a mapminmax function, normalizing the input data of the test set and the output data of the test set to be between-1 and 1, and respectively outputting the normalized input test and output test;
step 11: testing an optical fiber preform preparation quality prediction model net based on a BP neural network; using a sim function, bringing the normalized test set input data input test into a trained optical fiber preform preparation quality prediction model net for testing to obtain a coded test result, and recording the coded test result as an; decoding the optical fiber preform, and recording a decoding result as test _ simul, namely a test result of the optical fiber preform quality prediction model;
step 12: the test result test _ simul is differed from the test set output data output test to obtain the test error of the optical fiber preform preparation quality prediction model; adjusting the weight and the threshold of a net model for predicting the preparation quality of the optical fiber preform according to the test error to obtain an optical fiber preform preparation quality prediction model based on the BP neural network;
step 13: storing the trained network data of the quality prediction model prepared by the optical fiber preform based on the BP neural network by using a save net function;
step 14: establishing a genetic algorithm model optimize, optimizing a preparation quality prediction model net of the optical fiber perform of the BP neural network, and searching a predicted optimal individual y of the quality of the optical fiber perform, wherein the optimal individual y comprises input conditions corresponding to the preparation of the optical fiber perform, namely optimal process conditions for preparing the optical fiber perform.
Optionally, in step 14, establishing the genetic algorithm model optisize includes the steps of:
step 14.1: initializing parameters of a genetic algorithm: setting iteration times maxgen2, population size sizepop2, cross probability pcross2 and variation probability pmutation2 of the network, and adjusting according to the data volume and difference;
step 14.2: defining a chromosome length lenchrom2 and a boundary value bound2 according to the number inputnum of BP neural network input data, wherein the chromosome length lenchrom2 is the same as the number inputnum of the BP neural network input data, and the boundary value bound2 is a matrix of rows and columns 2 of the inputnum, wherein the first column is a lower boundary, and the second column is an upper boundary;
step 14.3: population initialization: inputting the chromosome length lenchrom2 and the boundary value bound obtained in the previous step into a function code2, and randomly generating chromosome individuals to form a population individuals 2; defining a population structure, wherein the population individuals2 comprises the fitness of population individuals and the coding information of each chromosome;
step 14.4: calculating the fitness; loading the stored BP neural network optical fiber perform to prepare a quality prediction model net by using a load net function, and inputting individual chromosome information in population individuals2 to obtain information of the quality prediction model prepared by the BP neural network optical fiber perform; inputting the coded individual information of the chromosome and the information of the quality prediction model prepared by the BP neural network optical fiber perform into a fitness calculation function fun2 to obtain corresponding fitness individuals2. fitness2; finding out the chromosome bestchrom2 with the best fitness in each generation and recording the chromosome information, the best fitness value bestfittness 2 and the average fitness avgfittness 2 of the generation;
step 14.5: selecting operation: inputting the population information individuals2 and the population quantity sizpop2 into a selection function select2, and outputting a selected new population individuals 2; the selection mode in the selection function select2 is to determine the probability of selection according to the fitness value of each individual;
step 14.6: and (3) cross operation: inputting the cross probability pcross2, the chromosome length lenchrom2, the chromosome information chrom2 and the population quantity sizepop2 into a cross function cross2, selecting chromosome individuals needing cross operation from a new population individuals2 obtained by selection operation according to the cross operation probability pcross2 by the cross function cross2, randomly pairing every two chromosome individuals, and performing cross exchange on partial genes to obtain the crossed chromosome individuals chrom 2;
step 14.7: mutation operation: inputting the variation probability pmutation2, the chromosome length lenchrom2, the chromosome information chrom2, the population quantity sizepop2, the current iteration num2, the maximum iteration maxgen2 and the boundary bound2 of each individual into a variation function Mutation2, selecting individuals needing variation operation from the crossed chromosome chrom2, mutating certain genes on the individuals, and outputting the chromosome chrom2 after variation; wherein, the chromosome for mutation is randomly selected, and the mutation position is also randomly selected;
step 14.8: and (3) replacement operation: inputting the individual information of the mutated chromosome chrom2 into a fitness function fun2 one by one, and outputting and recording the fitness value individuals2.fitness2 of each individual; finding out chromosomes with minimum fitness and maximum fitness and positions of the chromosomes in the population, and replacing the chromosomes with maximum fitness by the chromosomes with minimum fitness values; recording the best fitness and the average fitness in each generation and the fitness of all individuals in the population;
step 14.9: iterative training: returning to the step 14.5, and carrying out next iteration; when the set maximum iteration times or the calculation result reaches the convergence condition, ending the iterative training of the genetic algorithm, and obtaining the chromosome y with the best fitness;
step 14.10: and outputting a result: and decoding the best chromosome y and outputting the optimal technological parameters for preparing the optical fiber preform.
Optionally, in said step 14.5, the selection in the selection function select2 is roulette.
Optionally, in the step 6, constructing the BP neural network-based optical fiber preform preparation quality prediction model net includes: the three-layer neural network structure comprises an input layer, a hidden layer and an output layer; the input layer to hidden layer transfer function is "tansig" and the hidden layer to output layer transfer function is "purelin"; the number m of the input layer neurons is adapted to the number of the types of gases of the blast burner during the preparation of the optical fiber preform, and the input layer neurons respectively input the gas flow rates corresponding to the input layer neurons; the number of neurons in the output layer is y, and the quality grade of the corresponding optical rod of the neurons in the output layer is; the number of hidden layer neurons is n, according to the number of input layersm and the number of neurons in the output layer y are adjusted by taking m ═ n + y)1/2+ a or m- ㏒2n or m ═ n (nl)1/2A is one of constants between 1 and 10.
Optionally, the number n of hidden layer neurons is determined by the formula (n + y)1/2+a。
Optionally, in step 7, the Genetic algorithm model (Genetic) comprises the steps of:
step 7.1: initializing parameters of a genetic algorithm, and setting parameters of the genetic algorithm according to the data volume of the preprocessed data set, wherein the parameters comprise iteration times maxgen, population scale sizepop, cross probability pcross and variation probability pmutation;
step 7.2: calculating the total number numsum of nodes of the BP neural network optical fiber perform quality prediction model, and adopting a formula numsum which is m + n + n + y; setting a chromosome length lenchrom and a boundary value bound, wherein the length lenchrom of the chromosome is the same as the total number of nodes numsum;
step 7.3: population initialization: inputting the chromosome length lenchrom and the boundary value bound obtained in the previous step into a function code, and randomly generating chromosome individuals to form a population individuals;
step 7.4: calculating the fitness: inputting the information of the chromosome individual into a BP neural network-based optical fiber perform preparation quality prediction model net to obtain the information of the BP neural network optical fiber perform preparation quality prediction model; inputting the coded individual information of the chromosome and the information of the quality prediction model prepared by the BP neural network optical fiber preform into a fitness calculation function fun to obtain corresponding fitness indicvidials. Finding out the chromosome bestchrom with the best fitness in each generation and recording the chromosome information, the best fitness value bestfittness and the average fitness avgfittness of the generation;
step 7.5: selecting operation: inputting the population information individuals and the population quantity sizpop into a selection function select, and outputting the selected new population individuals; the selection mode in the selection function select is to determine the probability of selection according to the fitness value of each individual;
step 7.6: and (3) cross operation: inputting the cross probability pcross, the chromosome length lenchrom, the chromosome information chrom and the population quantity sizepop into a cross function cross, selecting chromosomes needing cross operation from a new population individuals obtained by selection operation according to the cross operation probability pcross, randomly pairing every two chromosomes, and performing cross exchange on partial genes to obtain crossed chromosome individuals chrom;
step 7.7: mutation operation: inputting the variation probability pmutation, the chromosome length lenchrom, the chromosome information chrom, the population quantity sizepop, the current iteration number num, the maximum iteration number maxgen and the individual boundary bound into a variation function Mutation, selecting chromosomes needing variation operation from the crossed chromosomes according to the probability pmutation of the variation operation, then mutating certain genes on the chromosomes, and outputting the chromosome after variation; wherein, the chromosome for mutation is randomly selected, and the mutation position is also randomly selected;
step 7.8: and (3) replacement operation: inputting the chromosome population subjected to mutation operation into a fitness function fun one by one, recalculating fitness, selecting an optimal individual, outputting and recording the fitness value individuals. fittness of the chromosome, finding out the chromosomes with minimum and maximum fitness and the positions of the chromosomes in the population, and replacing the chromosomes with maximum fitness by the chromosomes with minimum fitness; recording the best fitness, the average fitness and the fitness of all chromosomes of the population in each generation;
step 7.9: performing iterative training, returning to the step 7.5, and performing next iteration; when the set maximum iteration times maxgen are reached, ending the iteration training to obtain the chromosome x with the maximum fitness;
step 7.10: and outputting a result: and decoding the best chromosome x, and outputting the optimal initial weight value and the threshold value.
Optionally, said step 7.5, the selection in the selection function select is roulette.
Optionally, in step 4, the ratio of the data amount of the training set to the data amount of the test set is 7 to 3.
Optionally, in step 9, the iteration number maxgen is set to 100, the learning efficiency is set to 0.05, and the target accuracy is set to 0.00001.
The invention has the following advantages:
the method adopts neural network operation, combines the gas flow of the blowtorch for preparing the optical fiber perform as the whole input data, uses the quality of the optical fiber perform as the output data, and constructs the optical fiber perform preparation quality prediction model based on the BP neural network, which can adapt to the nonlinear correlation and linear correlation characteristics of the input data and the output data, and can adapt to the coupling characteristic between the input data, thereby obtaining the prediction model with small deviation with the actual production; the gas flow combination of the blowtorch is integrally used as input data, so that an accurate prediction result can be obtained quickly; then, optimizing an optical fiber preform preparation quality prediction model net of the BP neural network by constructing a genetic algorithm for optimizing input data, and searching a predicted optical fiber preform quality optimal individual to obtain an input condition corresponding to the preparation of the optical fiber preform, namely an optimal process condition for preparing the optical fiber preform; different original data groups are input, different optimal process conditions can be obtained, a table of the optimal process conditions for preparing the optical fiber preform is made, the price of the optical rod prepared by combining the gas flow of the corresponding blowtorch is obtained by combining the price and the using amount of the gas of the blowtorch, the lowest preparation cost of the optical rod is found out, a large amount of labor for carrying out experiments through control variables is replaced, waste of raw materials such as the optical rod and paint is avoided, the cost is saved, and the efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without inventive labor.
FIG. 1 is a flow chart of constructing a BP neural network-based optical fiber preform preparation quality prediction model;
FIG. 2 is a flow chart of the whole method for optimizing the process of manufacturing an optical fiber preform based on a genetic algorithm and a BP neural network.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present application clearer, the present application is further described in detail below with reference to the accompanying drawings.
Now, the optimization method of the optical fiber preform preparation process based on the genetic algorithm and the BP neural network is explained. The optimization method of the optical fiber preform preparation process based on the genetic algorithm and the BP neural network is shown in figure 2:
an optical fiber perform preparation process optimization method based on a genetic algorithm and a BP neural network comprises the following specific steps:
step 1: collecting original data of optical fiber preform production, collecting gas flow of a blast burner and optical rod quality corresponding to the gas flow when the optical fiber preform is prepared, and respectively using the gas flow as input data and the optical rod quality as output data;
step 2: preprocessing the collected original data, and removing invalid data to obtain a preprocessed data set; the invalid data refers to the data of abnormal production conditions of the optical fiber preform and the quality of the optical fiber preform, and is caused by accidental factors in production;
and step 3: grading the quality of the optical rod, dividing the quality of the optical rod into a plurality of grades according to the optical performance of the optical rod, the transmission performance of the produced optical fiber and the mechanical performance, and grouping the preprocessed data sets according to the grade of the quality of the optical rod;
and 4, step 4: dividing each group of data into a training set and a testing set by adopting a retention method;
and 5: normalizing the training set by using a mapminmax function, normalizing input data and output data of the training set to be between-1 and 1, and outputting normalized input transformation data input train and output transformation data output train;
step 6: constructing an optical fiber preform preparation quality prediction model net based on a BP neural network;
and 7: constructing a Genetic algorithm model, optimizing an initial weight and a threshold of a BP neural network-based optical fiber preform preparation quality prediction model net to obtain an optimal individual x, wherein the optimal individual x comprises the initial weight and the threshold information of the optimized BP neural network;
and 8: assigning the weight value and the threshold value optimized by the genetic algorithm to a BP neural network; extracting an initial weight and a threshold value of the optimized BP neural network from the optimal individual x solved by the genetic algorithm, and assigning a value to the BP neural network after finishing;
and step 9: BP neural network training: setting training parameters, iteration times, learning efficiency and target precision; inputting normalized input transformation data input train and output transformation data output train by using a train function to complete the training of the neural network, namely completing the training of an optical fiber preform preparation quality prediction model based on the BP neural network;
step 10: normalizing the training set by using a mapminmax function, normalizing the input data of the test set and the output data of the test set to be between-1 and 1, and respectively outputting the normalized input test and output test;
step 11: testing an optical fiber preform preparation quality prediction model net based on a BP neural network; using a sim function, bringing the normalized test set input data input test into a trained optical fiber preform preparation quality prediction model net for testing to obtain a coded test result, and recording the coded test result as an; decoding the optical fiber preform, and recording a decoding result as test _ simul, namely a test result of the optical fiber preform quality prediction model;
step 12: the test result test _ simul is differed from the test set output data output test to obtain the test error of the optical fiber preform preparation quality prediction model; adjusting the weight and the threshold of a net model for predicting the preparation quality of the optical fiber preform according to the test error to obtain an optical fiber preform preparation quality prediction model based on the BP neural network;
step 13: storing the trained network data of the quality prediction model prepared by the optical fiber preform based on the BP neural network by using a save net function;
step 14: establishing a genetic algorithm model optimize, optimizing a preparation quality prediction model net of the optical fiber perform of the BP neural network, and searching a predicted optimal individual y of the quality of the optical fiber perform, wherein the optimal individual y comprises input conditions corresponding to the preparation of the optical fiber perform, namely optimal process conditions for preparing the optical fiber perform.
Step 6, constructing the BP neural network-based optical fiber preform preparation quality prediction model net comprises the following steps: the three-layer neural network structure comprises an input layer, a hidden layer and an output layer; the input layer to hidden layer transfer function is "tansig" and the hidden layer to output layer transfer function is "purelin"; the number m of the input layer neurons is adapted to the number of the types of gases of the blast burner during the preparation of the optical fiber preform, and the input layer neurons respectively input the gas flow rates corresponding to the input layer neurons; the number of neurons in the output layer is y, and the quality grade of the corresponding optical rod of the neurons in the output layer is; the number of hidden layer neurons is n, and is adjusted according to the number m of input layers and the number y of output layer neurons, and one of m ═ n + y)1/2+ a, m ═ ㏒ 2n, and m ═ nl)1/2 is adopted, and a is one of constants between 1 and 10. Preferably, the number n of hidden layer neurons is determined using the formula m ═ n + y 1/2+ a.
Step 7, the Genetic algorithm model (Genetic) comprises the steps of:
step 7.1: initializing parameters of a genetic algorithm, and setting parameters of the genetic algorithm according to the data volume of the preprocessed data set, wherein the parameters comprise iteration times maxgen, population scale sizepop, cross probability pcross and variation probability pmutation;
step 7.2: calculating the total number numsum of nodes of the BP neural network optical fiber perform quality prediction model, and adopting a formula numsum which is m + n + n + y; setting a chromosome length lenchrom and a boundary value bound, wherein the length lenchrom of the chromosome is the same as the total number of nodes numsum;
step 7.3: population initialization: inputting the chromosome length lenchrom and the boundary value bound obtained in the previous step into a function code, and randomly generating chromosome individuals to form a population individuals;
step 7.4: calculating the fitness: inputting the information of the chromosome individual into a BP neural network-based optical fiber perform preparation quality prediction model net to obtain the information of the BP neural network optical fiber perform preparation quality prediction model; inputting the coded individual information of the chromosome and the information of the quality prediction model prepared by the BP neural network optical fiber preform into a fitness calculation function fun to obtain corresponding fitness indicvidials. Finding out the chromosome bestchrom with the best fitness in each generation and recording the chromosome information, the best fitness value bestfittness and the average fitness avgfittness of the generation;
step 7.5: selecting operation: inputting the population information individuals and the population quantity sizpop into a selection function select, and outputting the selected new population individuals; the selection mode in the selection function select is to determine the probability of selection according to the fitness value of each individual;
step 7.6: and (3) cross operation: inputting the cross probability pcross, the chromosome length lenchrom, the chromosome information chrom and the population quantity sizepop into a cross function cross, selecting chromosomes needing cross operation from a new population individuals obtained by selection operation according to the cross operation probability pcross, randomly pairing every two chromosomes, and performing cross exchange on partial genes to obtain crossed chromosome individuals chrom;
step 7.7: mutation operation: inputting the variation probability pmutation, the chromosome length lenchrom, the chromosome information chrom, the population quantity sizepop, the current iteration number num, the maximum iteration number maxgen and the individual boundary bound into a variation function Mutation, selecting chromosomes needing variation operation from the crossed chromosomes according to the probability pmutation of the variation operation, then mutating certain genes on the chromosomes, and outputting the chromosome after variation; wherein, the chromosome for mutation is randomly selected, and the mutation position is also randomly selected;
step 7.8: and (3) replacement operation: inputting the chromosome population subjected to mutation operation into a fitness function fun one by one, recalculating fitness, selecting an optimal individual, outputting and recording the fitness value individuals. fittness of the chromosome, finding out the chromosomes with minimum and maximum fitness and the positions of the chromosomes in the population, and replacing the chromosomes with maximum fitness by the chromosomes with minimum fitness; recording the best fitness, the average fitness and the fitness of all chromosomes of the population in each generation;
step 7.9: performing iterative training, returning to the step 7.5, and performing next iteration; when the set maximum iteration times maxgen are reached, ending the iteration training to obtain the chromosome x with the maximum fitness;
step 7.10: and outputting a result: and decoding the best chromosome x, and outputting the optimal initial weight value and the threshold value.
Step 7.5, the selection in the selection function select is performed by roulette.
Step 14, establishing the genetic algorithm model optime comprises the following steps:
step 14.1: initializing parameters of a genetic algorithm: setting iteration times maxgen2, population size sizepop2, cross probability pcross2 and variation probability pmutation2 of the network, and adjusting according to the data volume and difference;
step 14.2: defining a chromosome length lenchrom2 and a boundary value bound2 according to the number inputnum of BP neural network input data, wherein the chromosome length lenchrom2 is the same as the number inputnum of the BP neural network input data, and the boundary value bound2 is a matrix of rows and columns 2 of the inputnum, wherein the first column is a lower boundary, and the second column is an upper boundary;
step 14.3: population initialization: inputting the chromosome length lenchrom2 and the boundary value bound obtained in the previous step into a function code2, and randomly generating chromosome individuals to form a population individuals 2; defining a population structure, wherein the population individuals2 comprises the fitness of population individuals and the coding information of each chromosome;
step 14.4: calculating the fitness; loading the stored BP neural network optical fiber perform to prepare a quality prediction model net by using a load net function, and inputting individual chromosome information in population individuals2 to obtain information of the quality prediction model prepared by the BP neural network optical fiber perform; inputting the coded individual information of the chromosome and the information of the quality prediction model prepared by the BP neural network optical fiber perform into a fitness calculation function fun2 to obtain corresponding fitness individuals2. fitness2; finding out the chromosome bestchrom2 with the best fitness in each generation and recording the chromosome information, the best fitness value bestfittness 2 and the average fitness avgfittness 2 of the generation;
step 14.5: selecting operation: inputting the population information individuals2 and the population quantity sizpop2 into a selection function select2, and outputting a selected new population individuals 2; the selection mode in the selection function select2 is to determine the probability of selection according to the fitness value of each individual;
step 14.6: and (3) cross operation: inputting the cross probability pcross2, the chromosome length lenchrom2, the chromosome information chrom2 and the population quantity sizepop2 into a cross function cross2, selecting chromosome individuals needing cross operation from a new population individuals2 obtained by selection operation according to the cross operation probability pcross2 by the cross function cross2, randomly pairing every two chromosome individuals, and performing cross exchange on partial genes to obtain the crossed chromosome individuals chrom 2;
step 14.7: mutation operation: inputting the variation probability pmutation2, the chromosome length lenchrom2, the chromosome information chrom2, the population quantity sizepop2, the current iteration num2, the maximum iteration maxgen2 and the boundary bound2 of each individual into a variation function Mutation2, selecting individuals needing variation operation from the crossed chromosome chrom2, mutating certain genes on the individuals, and outputting the chromosome chrom2 after variation; wherein, the chromosome for mutation is randomly selected, and the mutation position is also randomly selected;
step 14.8: and (3) replacement operation: inputting the individual information of the mutated chromosome chrom2 into a fitness function fun2 one by one, and outputting and recording the fitness value individuals2.fitness2 of each individual; finding out chromosomes with minimum fitness and maximum fitness and positions of the chromosomes in the population, and replacing the chromosomes with maximum fitness by the chromosomes with minimum fitness values; recording the best fitness and the average fitness in each generation and the fitness of all individuals in the population;
step 14.9: iterative training: returning to the step 14.5, and carrying out next iteration; when the set maximum iteration times or the calculation result reaches the convergence condition, ending the iterative training of the genetic algorithm, and obtaining the chromosome y with the best fitness;
step 14.10: and outputting a result: and decoding the best chromosome y and outputting the optimal technological parameters for preparing the optical fiber preform.
Step 14.5, the selection in the selection function select2 is roulette.
The present application is described in further detail below with reference to examples, and it should be understood that the specific examples described herein are for purposes of illustration only and are not intended to limit the present application.
Example 1, a flowchart for constructing a model for predicting quality of an optical fiber preform based on a BP neural network is shown in fig. 1, and the following experiment was performed for the optical fiber preform production using the above flowchart.
Firstly, according to the step 1: collecting 100 groups of gas flow of a blast burner and the quality of an optical rod corresponding to the gas flow when the optical fiber preform is prepared, and respectively using the gas flow as input data and the output data as original data;
according to the step 2: preprocessing 100 groups of collected original data, and obtaining a preprocessed data set if invalid data are not found;
according to the step 3: dividing the quality of the optical fiber preform into 5 grades, and grouping the preprocessed data sets according to the grade of the quality of the optical fiber preform;
according to the step 4: dividing five groups of data according to a ratio of 7 to 3 by adopting a retention method, and dividing a training set and a test set;
according to the step 5: normalizing the training set by using a mapminmax function, normalizing input data and output data of the training set to be between-1 and 1, and outputting normalized input transformation data input train and output transformation data output train;
according to the step 6: constructing an optical fiber preform preparation quality prediction model net based on a BP neural network: the device comprises a three-layer neural network structure of an input layer, a hidden layer and an output layer; the input layer to hidden layer transfer function is "tansig" and the hidden layer to output layer transfer function is "purelin"(ii) a The number m of the neurons in the input layer is adapted to the number of the types of gases of the blast burner during the preparation of the optical fiber preform, and the neurons in the input layer respectively input the gas flow corresponding to the neurons; the number of neurons in the output layer is y, and the quality grade of the corresponding optical rod of the neurons in the output layer is; the number of hidden layer neurons is n, the adjustment is performed according to the number m of input layer neurons and the number y of output layer neurons, and m is (n + y)1/2+ a, a is one of constants between 1 and 10; in example 1, m is equal to 7, n is equal to 15, y is 1;
according to the step 7: constructing a Genetic algorithm model, optimizing an initial weight and a threshold of a BP neural network-based optical fiber preform preparation quality prediction model net to obtain an optimal individual x, wherein the optimal individual x comprises the initial weight and the threshold information of the optimized BP neural network;
according to the step 8: extracting an initial weight and a threshold value of the optimized BP neural network from the optimal individual x solved by the genetic algorithm, and assigning a value to the BP neural network after finishing;
according to the step 9: carrying out BP neural network training: setting training parameters, wherein the iteration times are 100, the learning efficiency is 0.05, and the target precision is 0.00001; inputting normalized input transformation data input train and output transformation data output train by using a train function to complete the training of the neural network, namely completing the training of an optical fiber preform preparation quality prediction model based on the BP neural network;
according to the step 10: normalizing the training set by using a mapminmax function, normalizing the input data of the test set and the output data of the test set to be between-1 and 1, and respectively outputting the normalized input test and output test;
according to the step 11: testing an optical fiber preform preparation quality prediction model net based on a BP neural network; using a sim function, bringing the normalized test set input data input test into a trained optical fiber preform preparation quality prediction model net for testing to obtain a coded test result, and recording the coded test result as an; decoding the optical fiber preform, and recording a decoding result as test _ simul, namely a test result of the optical fiber preform quality prediction model;
according to the step 12: the test result test _ simul is differed from the test set output data output test to obtain the test error of the optical fiber preform preparation quality prediction model; adjusting the weight and the threshold of a net model for predicting the preparation quality of the optical fiber preform according to the test error to obtain an optical fiber preform preparation quality prediction model based on the BP neural network;
step 13: and storing the trained network data of the quality prediction model prepared by the optical fiber preform based on the BP neural network by using the save net function.
Finally, under the condition of keeping other production conditions unchanged, changing the gas flow of the blowtorch during the preparation of the optical fiber preform, and randomly generating 16 groups of gas flows of the blowtorch during the preparation of the optical fiber preform for combination; respectively inputting the gas flow of the blowtorch when 16 groups of optical fiber preforms are prepared randomly into the trained BP neural network and used for actual production; recording and comparing the quality of the optical fiber preform obtained by the two modes with the same gas component, and analyzing the accuracy of predicting the preparation quality of the optical fiber preform by the BP neural network. Data from the above experiment are recorded as follows:
TABLE 1 optical fiber preform quality prediction experiment
Figure BDA0003353819730000131
Figure BDA0003353819730000141
As can be seen from Table 1, the deviation of the predicted result of the optical fiber preform preparation quality prediction model based on the BP neural network and the production experiment result is not large, only one group of data errors exceed 0.5, and the rest errors are far less than 0.5 and are within an acceptable range; therefore, the optical fiber perform preparation quality prediction model based on the BP neural network can realize accurate prediction of the quality of the optical fiber perform.
Example 2
Embodiment 1 completes the construction and storage of the optical fiber preform preparation quality prediction model based on the BP neural network, as shown in fig. 2, the flowchart of the optical fiber preform preparation process optimization method based on the genetic algorithm and the BP neural network is basically the same as the construction of the optical fiber preform preparation quality prediction model based on the BP neural network in embodiment 1, and the same points are not repeated.
The establishing of the genetic algorithm model optimize comprises the following steps:
step 14.1: initializing parameters of a genetic algorithm: setting iteration times maxgen2, population size sizepop2, cross probability pcross2 and variation probability pmutation2 of the network, and adjusting according to the data volume and difference; in this embodiment, the iteration number maxgen2 is set to 200, the population size sizepop2 is set to 23, the crossover probability pcross2 is set to 0.05, and the mutation probability pmutation2 is set to 0.00001;
step 14.2: defining a chromosome length lenchrom2 and a boundary value bound2 according to the number inputnum of BP neural network input data, wherein the chromosome length lenchrom2 is the same as the number inputnum of the BP neural network input data, and the boundary value bound2 is a matrix of rows and columns 2 of the inputnum, wherein the first column is a lower boundary, and the second column is an upper boundary;
step 14.3: population initialization: inputting the chromosome length lenchrom2 and the boundary value bound obtained in the previous step into a function code2, and randomly generating chromosome individuals to form a population individuals 2; defining a population structure, wherein the population individuals2 comprises the fitness of population individuals and the coding information of each chromosome;
step 14.4: calculating the fitness; loading the stored BP neural network optical fiber perform to prepare a quality prediction model net by using a load net function, and inputting individual chromosome information in population individuals2 to obtain information of the quality prediction model prepared by the BP neural network optical fiber perform; inputting the coded individual information of the chromosome and the information of the quality prediction model prepared by the BP neural network optical fiber perform into a fitness calculation function fun2 to obtain corresponding fitness individuals2. fitness2; finding out the chromosome bestchrom2 with the best fitness in each generation and recording the chromosome information, the best fitness value bestfittness 2 and the average fitness avgfittness 2 of the generation;
step 14.5: selecting operation: inputting the population information individuals2 and the population quantity sizpop2 into a selection function select2, and outputting a selected new population individuals 2; the selection mode in the selection function select2 is to determine the probability of selection according to the fitness value of each individual;
step 14.6: and (3) cross operation: inputting the cross probability pcross2, the chromosome length lenchrom2, the chromosome information chrom2 and the population quantity sizepop2 into a cross function cross2, selecting chromosome individuals needing cross operation from a new population individuals2 obtained by selection operation according to the cross operation probability pcross2 by the cross function cross2, randomly pairing every two chromosome individuals, and performing cross exchange on partial genes to obtain the crossed chromosome individuals chrom 2;
step 14.7: mutation operation: inputting the variation probability pmutation2, the chromosome length lenchrom2, the chromosome information chrom2, the population quantity sizepop2, the current iteration num2, the maximum iteration maxgen2 and the boundary bound2 of each individual into a variation function Mutation2, selecting individuals needing variation operation from the crossed chromosome chrom2, mutating certain genes on the individuals, and outputting the chromosome chrom2 after variation; wherein, the chromosome for mutation is randomly selected, and the mutation position is also randomly selected;
step 14.8: and (3) replacement operation: inputting the individual information of the mutated chromosome chrom2 into a fitness function fun2 one by one, and outputting and recording the fitness value individuals2.fitness2 of each individual; finding out chromosomes with minimum fitness and maximum fitness and positions of the chromosomes in the population, and replacing the chromosomes with maximum fitness by the chromosomes with minimum fitness values; recording the best fitness and the average fitness in each generation and the fitness of all individuals in the population;
step 14.9: iterative training: returning to the step 14.5, and carrying out next iteration; when the set maximum iteration times or the calculation result reaches the convergence condition, ending the iterative training of the genetic algorithm, and obtaining the chromosome y with the best fitness;
step 14.10: and outputting a result: and decoding the best chromosome y and outputting the optimal technological parameters for preparing the optical fiber preform.
Wherein, step 14.5, the selection in the selection function select2 is roulette.
Under the condition of keeping other production conditions unchanged, changing the gas flow of a blast burner when the optical fiber preform is prepared, generating a combination of 23 groups of gas flow of the blast burner when the optical fiber preform is prepared each time, inputting the combination into an optical fiber preform preparation quality prediction model net of a BP (back propagation) neural network for optimizing, and searching a predicted optical fiber preform quality optimal individual y to obtain an optimal process condition for preparing the optical fiber preform; respectively inputting the optimal process parameters of the optical fiber preform rod preparation output each time into the trained BP neural network and using the trained BP neural network for actual production; recording and comparing the quality of the optical fiber preform obtained by using the same gas component in the two modes; data from the above experiment are recorded as follows:
TABLE 2 statistics of optimization results of optical fiber preform process parameters
Figure BDA0003353819730000161
Figure BDA0003353819730000171
As can be seen from Table 2, the optimized technological parameters of the optical fiber preform preparation process optimization method based on the genetic algorithm and the BP neural network can produce the high-quality optical fiber preform in a production test; on the basis of the experimental data, the optimized result of the optical fiber preform preparation process optimization method based on the genetic algorithm and the BP neural network is the same as the production experimental result, the corresponding production cost is calculated according to the total amount of the used gas and the unit price of the gas, the gas flow combination with the cost within an acceptable range can be obtained, and the gas flow combination with the lowest production cost can also be obtained.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (9)

1. An optical fiber perform preparation process optimization method based on a genetic algorithm and a BP neural network comprises the following specific steps:
step 1: collecting original data of optical fiber preform production, collecting gas flow of a blast burner and optical rod quality corresponding to the gas flow when the optical fiber preform is prepared, and respectively using the gas flow as input data and the optical rod quality as output data;
step 2: preprocessing the collected original data, and removing invalid data to obtain a preprocessed data set; the invalid data refers to the data of abnormal production conditions of the optical fiber preform and the quality of the optical fiber preform, and is caused by accidental factors in production;
and step 3: grading the quality of the optical rod, dividing the quality of the optical rod into a plurality of grades according to the optical performance of the optical rod, the transmission performance of the produced optical fiber and the mechanical performance, and grouping the preprocessed data sets according to the grade of the quality of the optical rod;
and 4, step 4: dividing each group of data into a training set and a testing set by adopting a retention method;
and 5: normalizing the training set by using a mapminmax function, normalizing input data and output data of the training set to be between-1 and 1, and outputting normalized input transformation data input train and output transformation data output train;
step 6: constructing an optical fiber preform preparation quality prediction model net based on a BP neural network;
and 7: constructing a Genetic algorithm model, optimizing an initial weight and a threshold of a BP neural network-based optical fiber preform preparation quality prediction model net to obtain an optimal individual x, wherein the optimal individual x comprises the initial weight and the threshold information of the optimized BP neural network;
and 8: assigning the weight value and the threshold value optimized by the genetic algorithm to a BP neural network; extracting an initial weight and a threshold value of the optimized BP neural network from the optimal individual x solved by the genetic algorithm, and assigning a value to the BP neural network after finishing;
and step 9: BP neural network training: setting training parameters, iteration times, learning efficiency and target precision; inputting normalized input transformation data input train and output transformation data output train by using a train function to complete the training of the neural network, namely completing the training of an optical fiber preform preparation quality prediction model based on the BP neural network;
step 10: normalizing the training set by using a mapminmax function, normalizing the input data of the test set and the output data of the test set to be between-1 and 1, and respectively outputting the normalized input test and output test;
step 11: testing an optical fiber preform preparation quality prediction model net based on a BP neural network; using a sim function, bringing the normalized test set input data input test into a trained optical fiber preform preparation quality prediction model net for testing to obtain a coded test result, and recording the coded test result as an; decoding the optical fiber preform, and recording a decoding result as test _ simul, namely a test result of the optical fiber preform quality prediction model;
step 12: the test result test _ simul is differed from the test set output data output test to obtain the test error of the optical fiber preform preparation quality prediction model; adjusting the weight and the threshold of a net model for predicting the preparation quality of the optical fiber preform according to the test error to obtain an optical fiber preform preparation quality prediction model based on the BP neural network;
step 13: storing the trained network data of the quality prediction model prepared by the optical fiber preform based on the BP neural network by using a save net function;
step 14: establishing a genetic algorithm model optimize, optimizing a preparation quality prediction model net of the optical fiber perform of the BP neural network, and searching a predicted optimal individual y of the quality of the optical fiber perform, wherein the optimal individual y comprises input conditions corresponding to the preparation of the optical fiber perform, namely optimal process conditions for preparing the optical fiber perform.
2. The method for optimizing the process of manufacturing an optical fiber preform based on a genetic algorithm and a BP neural network as claimed in claim 1, wherein said step 14 of establishing a genetic algorithm model optize comprises the steps of:
step 14.1: initializing parameters of a genetic algorithm: setting iteration times maxgen2, population size sizepop2, cross probability pcross2 and variation probability pmutation2 of the network, and adjusting according to the data volume and difference;
step 14.2: defining a chromosome length lenchrom2 and a boundary value bound2 according to the number inputnum of BP neural network input data, wherein the chromosome length lenchrom2 is the same as the number inputnum of the BP neural network input data, and the boundary value bound2 is a matrix of rows and columns 2 of the inputnum, wherein the first column is a lower boundary, and the second column is an upper boundary;
step 14.3: population initialization: inputting the chromosome length lenchrom2 and the boundary value bound obtained in the previous step into a function code2, and randomly generating chromosome individuals to form a population individuals 2; defining a population structure, wherein the population individuals2 comprises the fitness of population individuals and the coding information of each chromosome;
step 14.4: calculating the fitness; loading the stored BP neural network optical fiber perform to prepare a quality prediction model net by using a load net function, and inputting individual chromosome information in population individuals2 to obtain information of the quality prediction model prepared by the BP neural network optical fiber perform; inputting the coded individual information of the chromosome and the information of the quality prediction model prepared by the BP neural network optical fiber perform into a fitness calculation function fun2 to obtain corresponding fitness individuals2. fitness2; finding out the chromosome bestchrom2 with the best fitness in each generation and recording the chromosome information, the best fitness value bestfittness 2 and the average fitness avgfittness 2 of the generation;
step 14.5: selecting operation: inputting the population information individuals2 and the population quantity sizpop2 into a selection function select2, and outputting a selected new population individuals 2; the selection mode in the selection function select2 is to determine the probability of selection according to the fitness value of each individual;
step 14.6: and (3) cross operation: inputting the cross probability pcross2, the chromosome length lenchrom2, the chromosome information chrom2 and the population quantity sizepop2 into a cross function cross2, selecting chromosome individuals needing cross operation from a new population individuals2 obtained by selection operation according to the cross operation probability pcross2 by the cross function cross2, randomly pairing every two chromosome individuals, and performing cross exchange on partial genes to obtain the crossed chromosome individuals chrom 2;
step 14.7: mutation operation: inputting the variation probability pmutation2, the chromosome length lenchrom2, the chromosome information chrom2, the population quantity sizepop2, the current iteration num2, the maximum iteration maxgen2 and the boundary bound2 of each individual into a variation function Mutation2, selecting individuals needing variation operation from the crossed chromosome chrom2, mutating certain genes on the individuals, and outputting the chromosome chrom2 after variation; wherein, the chromosome for mutation is randomly selected, and the mutation position is also randomly selected;
step 14.8: and (3) replacement operation: inputting the individual information of the mutated chromosome chrom2 into a fitness function fun2 one by one, and outputting and recording the fitness value individuals2.fitness2 of each individual; finding out chromosomes with minimum fitness and maximum fitness and positions of the chromosomes in the population, and replacing the chromosomes with maximum fitness by the chromosomes with minimum fitness values; recording the best fitness and the average fitness in each generation and the fitness of all individuals in the population;
step 14.9: iterative training: returning to the step 14.5, and carrying out next iteration; when the set maximum iteration times or the calculation result reaches the convergence condition, ending the iterative training of the genetic algorithm, and obtaining the chromosome y with the best fitness;
step 14.10: and outputting a result: and decoding the best chromosome y and outputting the optimal technological parameters for preparing the optical fiber preform.
3. The method for optimizing a process for manufacturing an optical fiber preform based on a genetic algorithm and a BP neural network as claimed in claim 2, wherein the selection of the selection function select2 is performed by roulette in step 14.5.
4. The optimization method for the manufacturing process of the optical fiber preform based on the genetic algorithm and the BP neural network as claimed in any one of claims 1 to 3, wherein the step 6 of constructing the BP neural network-based optical fiber preform manufacturing quality prediction model net comprises: the three-layer neural network structure comprises an input layer, a hidden layer and an output layer; the input layer to hidden layer transfer function is "tansig" and the hidden layer to output layer transfer function is "purelin"; the number m of the input layer neurons is adapted to the number of the types of gases of the blast burner during the preparation of the optical fiber preform, and the input layer neurons respectively input the gas flow rates corresponding to the input layer neurons; the number of neurons in the output layer is y, and the quality grade of the corresponding optical rod of the neurons in the output layer is; the number of hidden layer neurons is n, the adjustment is performed according to the number m of input layer neurons and the number y of output layer neurons, and m is (n + y)1/2+ a or m- ㏒2n or m ═ n (nl)1/2A is one of constants between 1 and 10.
5. The method of claim 4, wherein the number of hidden layer neurons n is determined by the formula (m ═ n + y)1/2+a。
6. The method for optimizing a process for manufacturing an optical fiber preform based on a Genetic algorithm and a BP neural network as claimed in claim 4, wherein said step 7, the Genetic algorithm model (Genetic) comprises the steps of:
step 7.1: initializing parameters of a genetic algorithm, and setting parameters of the genetic algorithm according to the data volume of the preprocessed data set, wherein the parameters comprise iteration times maxgen, population scale sizepop, cross probability pcross and variation probability pmutation;
step 7.2: calculating the total number numsum of nodes of the BP neural network optical fiber perform quality prediction model, and adopting a formula numsum which is m + n + n + y; setting a chromosome length lenchrom and a boundary value bound, wherein the length lenchrom of the chromosome is the same as the total number of nodes numsum;
step 7.3: population initialization: inputting the chromosome length lenchrom and the boundary value bound obtained in the previous step into a function code, and randomly generating chromosome individuals to form a population individuals;
step 7.4: calculating the fitness: inputting the information of the chromosome individual into a BP neural network-based optical fiber perform preparation quality prediction model net to obtain the information of the BP neural network optical fiber perform preparation quality prediction model; inputting the coded individual information of the chromosome and the information of the quality prediction model prepared by the BP neural network optical fiber preform into a fitness calculation function fun to obtain corresponding fitness indicvidials. Finding out the chromosome bestchrom with the best fitness in each generation and recording the chromosome information, the best fitness value bestfittness and the average fitness avgfittness of the generation;
step 7.5: selecting operation: inputting the population information individuals and the population quantity sizpop into a selection function select, and outputting the selected new population individuals; the selection mode in the selection function select is to determine the probability of selection according to the fitness value of each individual;
step 7.6: and (3) cross operation: inputting the cross probability pcross, the chromosome length lenchrom, the chromosome information chrom and the population quantity sizepop into a cross function cross, selecting chromosomes needing cross operation from a new population individuals obtained by selection operation according to the cross operation probability pcross, randomly pairing every two chromosomes, and performing cross exchange on partial genes to obtain crossed chromosome individuals chrom;
step 7.7: mutation operation: inputting the variation probability pmutation, the chromosome length lenchrom, the chromosome information chrom, the population quantity sizepop, the current iteration number num, the maximum iteration number maxgen and the individual boundary bound into a variation function Mutation, selecting chromosomes needing variation operation from the crossed chromosomes according to the probability pmutation of the variation operation, then mutating certain genes on the chromosomes, and outputting the chromosome after variation; wherein, the chromosome for mutation is randomly selected, and the mutation position is also randomly selected;
step 7.8: and (3) replacement operation: inputting the chromosome population subjected to mutation operation into a fitness function fun one by one, recalculating fitness, selecting an optimal individual, outputting and recording the fitness value individuals. fittness of the chromosome, finding out the chromosomes with minimum and maximum fitness and the positions of the chromosomes in the population, and replacing the chromosomes with maximum fitness by the chromosomes with minimum fitness; recording the best fitness, the average fitness and the fitness of all chromosomes of the population in each generation;
step 7.9: performing iterative training, returning to the step 7.5, and performing next iteration; when the set maximum iteration times maxgen are reached, ending the iteration training to obtain the chromosome x with the maximum fitness;
step 7.10: and outputting a result: and decoding the best chromosome x, and outputting the optimal initial weight value and the threshold value.
7. The method for optimizing a process for manufacturing an optical fiber preform based on a genetic algorithm and a BP neural network as claimed in claim 6, wherein the selection of the selection function select in step 7.5 is performed by roulette.
8. The method for optimizing the process of manufacturing an optical fiber preform based on a genetic algorithm and a BP neural network as claimed in any one of claims 1 to 3, wherein in the step 4, the data volume ratio of the training set to the testing set is 7 to 3.
9. The method for optimizing the process of manufacturing an optical fiber preform based on a genetic algorithm and a BP neural network as claimed in any one of claims 1 to 3, wherein in the step 9, the iteration number maxgen is set to 100, the learning efficiency is set to 0.05, and the target accuracy is set to 0.00001.
CN202111345402.1A 2021-11-15 2021-11-15 Optical fiber preform preparation process optimization method based on genetic algorithm and BP neural network Pending CN114004341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111345402.1A CN114004341A (en) 2021-11-15 2021-11-15 Optical fiber preform preparation process optimization method based on genetic algorithm and BP neural network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111345402.1A CN114004341A (en) 2021-11-15 2021-11-15 Optical fiber preform preparation process optimization method based on genetic algorithm and BP neural network

Publications (1)

Publication Number Publication Date
CN114004341A true CN114004341A (en) 2022-02-01

Family

ID=79928962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111345402.1A Pending CN114004341A (en) 2021-11-15 2021-11-15 Optical fiber preform preparation process optimization method based on genetic algorithm and BP neural network

Country Status (1)

Country Link
CN (1) CN114004341A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115796011A (en) * 2022-11-16 2023-03-14 四川大学 Hydrogen storage bed heat transfer performance optimization method based on neural network and genetic algorithm

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004063831A2 (en) * 2003-01-15 2004-07-29 Bracco Imaging S.P.A. System and method for optimization of a database for the training and testing of prediction algorithms
CN112053019A (en) * 2019-06-06 2020-12-08 湖南师范大学 Optical fiber preform deposition process intelligent method based on big data model predictive control framework
CN112100940A (en) * 2020-09-17 2020-12-18 浙江大学 Method and device for predicting primary stretching technological parameters of optical fiber preform
CN113449930A (en) * 2021-07-27 2021-09-28 威海长和光导科技有限公司 Optical fiber preform preparation quality prediction method based on BP neural network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004063831A2 (en) * 2003-01-15 2004-07-29 Bracco Imaging S.P.A. System and method for optimization of a database for the training and testing of prediction algorithms
CN112053019A (en) * 2019-06-06 2020-12-08 湖南师范大学 Optical fiber preform deposition process intelligent method based on big data model predictive control framework
CN112100940A (en) * 2020-09-17 2020-12-18 浙江大学 Method and device for predicting primary stretching technological parameters of optical fiber preform
CN113449930A (en) * 2021-07-27 2021-09-28 威海长和光导科技有限公司 Optical fiber preform preparation quality prediction method based on BP neural network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115796011A (en) * 2022-11-16 2023-03-14 四川大学 Hydrogen storage bed heat transfer performance optimization method based on neural network and genetic algorithm

Similar Documents

Publication Publication Date Title
CN110363344B (en) Probability integral parameter prediction method for optimizing BP neural network based on MIV-GP algorithm
CN113449930A (en) Optical fiber preform preparation quality prediction method based on BP neural network
CN111832101B (en) Construction method of cement strength prediction model and cement strength prediction method
CN113094980B (en) Solder paste printing quality prediction method and system based on IGA-DNN
CN103105246A (en) Greenhouse environment forecasting feedback method of back propagation (BP) neural network based on improvement of genetic algorithm
CN110059887B (en) BP neural network risk identification method and system based on adaptive genetic algorithm
CN111639820A (en) Energy consumption parameter optimization method and system for cement kiln production
CN113361761A (en) Short-term wind power integration prediction method and system based on error correction
CN115689070B (en) Energy prediction method for optimizing BP neural network model based on monarch butterfly algorithm
CN115310664A (en) RBF neural network training method and prediction system based on gene regulation genetic algorithm
CN112069656A (en) Durable concrete mix proportion multi-objective optimization method based on LSSVM-NSGAII
CN114004341A (en) Optical fiber preform preparation process optimization method based on genetic algorithm and BP neural network
CN105404142A (en) Aluminum electrolytic multi-parameter control method based on BP neural network and MBFO algorithm
CN112347670B (en) Rockfill material creep parameter prediction method based on neural network response surface
CN114004153A (en) Penetration depth prediction method based on multi-source data fusion
CN105426959A (en) Aluminium electrolysis energy conservation and emission reduction method based on BP neural network and self-adaptive MBFO algorithm
CN113282747A (en) Text classification method based on automatic machine learning algorithm selection
CN114004008A (en) Airplane assembly line resource configuration optimization method based on neural network and genetic algorithm
CN105069323B (en) Microbial fermentation control optimization method based on Memetic algorithms
CN113743003B (en) Method for calculating intensity of high-voltage line to ground electric field by considering influence of temperature and humidity
CN105426960B (en) Aluminium electroloysis energy-saving and emission-reduction control method based on BP neural network Yu MBFO algorithms
CN114219605A (en) Wind control method, device and storage medium
CN106503326A (en) A kind of many two grades of river course maximums of determination enter the Reverse Design of mainstream amount
CN117313554B (en) Multi-section combined multi-objective optimization method, system, equipment and medium for coking production
CN117574690B (en) Biochar preparation analysis method based on negative carbon emission and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220201