A convolutional neural network-based optical micro-nanostructure optimization method
Through the optical micro-nano structure optimization method based on convolutional neural network, combined with the genetic algorithm, the problems of long simulation time and local optimality in traditional optical structure design are solved, efficient and automatic optical structure optimization is achieved, and the calculation efficiency is significantly improved. and optimize the accuracy of results.
Patent Information
- Application Number
- CN202210457018.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-24
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-04-24
AI Technical Summary
Traditional optical structure design methods have problems such as long simulation time, the need for manual intervention, and the tendency to fall into local optimality. The optimization process has limited ability to simultaneously optimize multiple parameters.
The optical micro-nano structure optimization method based on convolutional neural network is used to automatically find the optimal optical structure by constructing a predictive spectral network and combining it with a genetic algorithm, reducing manual intervention and improving optimization efficiency.
It significantly shortens the calculation time, improves the optimization efficiency, avoids the problem of falling into the local optimum, and realizes the simultaneous optimization of multiple parameters to obtain more accurate spectral prediction results.
Smart Images

Figure CN114662248B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of optical structure design, and more specifically, relates to an optical micro-nano structure optimization method based on convolutional neural network. Background Art
[0002] In the field of photoelectric detection, detecting environmental components through changes in the environmental refractive index plays a very important role. With the emergence of metasurfaces, people can achieve regulation of optical parameters such as amplitude, polarization, phase, etc. by changing the unit structure of the metasurface structure. For example, the transmission spectrum of an optical micro-nanostructure depends on the structural parameters of the metasurface unit structure and the refractive index of the selected material. When the material, metasurface unit period and working wavelength range are selected, the transmission spectrum of the metasurface structure will directly depend on its corresponding metasurface unit structure parameters.
[0003] The traditional method of optical structure design is to use numerical simulation and parameter scanning for optimization. First, the optical structure is simulated to determine whether its spectrum meets the requirements. If not, the parameter scanning method is used to optimize the parameters of the metasurface unit structure.
[0004] The above-mentioned traditional optical structure design methods have the following disadvantages: (1) The simulation time is too long, and each time the parameters are optimized, the structure must be remodeled and re-simulated, which has a very high overall time cost. (2) The optimization process has limitations and usually requires manual intervention. The optimization process cannot optimize multiple parameters at the same time. Only one parameter is optimized while other parameters are fixed, which makes the optimization result easily fall into the local optimum. Summary of the invention
[0005] The present invention provides an optical micro-nano structure optimization method based on a convolutional neural network to solve the problems of long simulation time, need for manual intervention, and easy falling into local optimum in traditional optical structure design methods.
[0006] The present invention provides an optical micro-nano structure optimization method based on a convolutional neural network, comprising the following steps:
[0007] Step 1: Acquire a simulation data set, construct a prediction spectrum network based on a convolutional neural network, and use the simulation data set to train the prediction spectrum network to obtain a trained prediction spectrum network;
[0008] Step 2: Combine the trained prediction spectrum network and use a genetic algorithm to find the optimal optical structure.
[0009] Preferably, the optical micro-nanostructure optimization method based on convolutional neural network also includes: step 3, verifying the optical properties of the optimal optical structure through numerical simulation.
[0010] Preferably, in step 1, obtaining the simulation data set includes the following sub-steps: performing numerical simulation through the time-domain finite difference method, batch simulating multiple groups of optical micro-nano structures with different optical structure parameters, and obtaining spectral data corresponding to each group of optical micro-nano structures; each group of initial data groups includes optical structure parameters and their corresponding spectral data; for each group of initial data groups, converting the optical structure parameters into their corresponding optical structure images, and performing grayscale and normalization preprocessing on the optical structure images in turn, and using the preprocessed optical structure images and their corresponding spectral data as a group of data groups in the simulation data set.
[0011] Preferably, the optical structure parameters are converted into their corresponding optical structure images using the matplotlib library in Python.
[0012] Preferably, in step 1, the input of the predicted spectrum network is the preprocessed optical structure image, and the output of the predicted spectrum network is the predicted spectrum corresponding to the optical structure image; the predicted spectrum network includes four convolutional layers and four maximum pooling layers connected alternately, and three consecutive fully connected layers; the number of convolution kernels of the four convolutional layers are 16, 32, 64, and 64, respectively, and the corresponding convolution kernel sizes are (5, 5), (3, 3), (3, 3), and (3, 3), respectively; the step size used by the four convolutional layers is (1, 1), the zero padding adopts the same mode, and the activation function is the Relu function; the pooling windows of the four maximum pooling layers are (3, 3), and the step size is (2, 2); the number of neurons in the three fully connected layers are 500, 500, and 250, respectively, and the activation function of the three fully connected layers is the Relu function.
[0013] Preferably, step 2 comprises the following sub-steps:
[0014] Step 2.1, within a given parameter range, binary encoding is performed on the optical structure parameters to be optimized to obtain a number of different genotype codes;
[0015] Step 2.2: Randomly initialize a population, where each individual in the population corresponds to a genotype code;
[0016] Step 2.3, decoding each individual in the population to obtain the optical structure parameters corresponding to each individual, converting the optical structure parameters into an optical structure image, and performing grayscale and normalization preprocessing on the optical structure image in sequence;
[0017] Step 2.4: for each individual, the preprocessed optical structure image is input into the trained prediction spectrum model, the trained prediction spectrum model outputs a predicted spectrum, an objective function is calculated based on the predicted spectrum, and a fitness function value is obtained according to the objective function;
[0018] Step 2.5: Based on the fitness function value, select individuals as parents according to the random competition selection method;
[0019] Step 2.6: The genotype coding of the parent generation is crossover-operated according to the crossover rule to generate offspring;
[0020] Step 2.7, the offspring undergoes mutation operation according to the mutation rule;
[0021] Step 2.8, determine whether the objective function of the offspring meets the termination condition, where the termination condition is that the objective function of the offspring meets the set requirements or reaches the set number of iterations; if so, return the optimal solution in the current population as the optimal optical structure; if not, start a new round of iteration.
[0022] Preferably, in step 2.1, there are m optical structural parameters to be optimized, the coding length of each optical structural parameter is n bits, and the genotype code is formed by interleaving the coding combination of each optical structural parameter, and the genotype code is m*n bits.
[0023] Preferably, the specific implementation method of step 2.5 is: each time a parent is selected, a pair of individuals is selected in a roulette manner, and the individual with a higher fitness function value is selected as the parent; the parent is selected in the above manner until the population is full.
[0024] Preferably, the crossover rule is: according to the crossover probability, two individuals are randomly selected from the parent generation for crossover, two crossover points are selected in their genotype codes, the parent generation codes between the two crossover points are exchanged, and the codes outside the crossover points are retained; the mutation rule is: according to the mutation probability, the offspring is mutated, a mutation point is randomly selected in its genotype code, and it is binary inverted.
[0025] Preferably, the spectrum is one of a transmission spectrum, a reflection spectrum, an absorption spectrum, and a scattering spectrum; and the objective function is one of polarization conversion efficiency, half-width at half maximum of a characteristic spectrum, a quality factor, a modulation depth, a sensitivity, and an operating wavelength.
[0026] One or more technical solutions provided in the present invention have at least the following technical effects or advantages:
[0027] In the present invention, a prediction spectrum network based on a convolutional neural network is first constructed, and the prediction spectrum network is trained using a simulation data set to obtain a trained prediction spectrum network, and then combined with the trained prediction spectrum network, a genetic algorithm is used to find the optimal optical structure. The input of the prediction spectrum network in the present invention is an optical structure image, and the output is a predicted spectrum corresponding to the optical structure image. Since the optical structure image has richer information than the optical structure parameters, the prediction spectrum network constructed based on the convolutional neural network of the present invention can extract richer features, can better fit the spectrum curve, and obtain a predicted spectrum with a very small error from the true spectrum. The present invention uses a genetic algorithm in combination with a trained prediction spectrum network to perform intelligent optimization within a given range of optical parameters to obtain the most optimized optical structure parameters, and does not require traditional manual intervention to optimize the parameters, which can effectively improve the problem that traditional optical parameter optimization is prone to fall into local optimality, and eliminates the factor of manual intervention. In addition, compared with other algorithms such as particle swarm optimization, genetic algorithms are not easy to fall into local optimality, and the optimization results are better. Compared with the traditional method of using the finite-difference time-domain method to perform numerical simulation to optimize parameters, the present invention uses a trained prediction spectrum network to obtain the optimal optical structure, which can greatly shorten the calculation time, save time cost, and improve optimization efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A flowchart of an optical micro-nanostructure optimization method based on a convolutional neural network provided in an embodiment of the present invention;
[0029] Figure 2 A structural diagram of a convolutional neural network in an optical parameter optimization design method based on a convolutional neural network provided in an embodiment of the present invention;
[0030] Figure 3 A flowchart of an optical parameter optimization design method based on a convolutional neural network provided in an embodiment of the present invention, in which a trained prediction spectrum network is combined with a genetic algorithm to find the optimal optical structure. DETAILED DESCRIPTION
[0031] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0032] This embodiment provides an optical micro-nanostructure optimization method based on convolutional neural network, see Figures 1 to 3 , mainly including the following steps:
[0033] Step 1: obtain a simulation data set, construct a prediction spectrum network based on a convolutional neural network, and use the simulation data set to train the prediction spectrum network to obtain a trained prediction spectrum network.
[0034] Wherein, the acquisition of the simulation data set includes the following sub-steps: numerical simulation is performed through the time-domain finite difference method, multiple groups of optical micro-nano structures with different optical structure parameters are batch simulated, and spectral data corresponding to each group of optical micro-nano structures are obtained; each group of initial data groups includes optical structure parameters and their corresponding spectral data; for each group of initial data groups, the optical structure parameters are converted into their corresponding optical structure images, and the optical structure images are preprocessed by grayscale and normalization in turn, and the preprocessed optical structure images and their corresponding spectral data are used as a group of data groups in the simulation data set.
[0035] Specifically, the optical structure parameters can be converted into their corresponding optical structure images using the matplotlib library in Python.
[0036] The input of the predicted spectrum network is the preprocessed optical structure image, and the output of the predicted spectrum network is the predicted spectrum corresponding to the optical structure image. That is, the predicted spectrum network uses the optical structure image as input to train the convolutional neural network, and adjusts the structure of the convolutional neural network according to the error between the true value of the spectrum and the predicted value of the spectrum.
[0037] See also Figure 2 The prediction spectrum network includes four convolutional layers and four maximum pooling layers connected alternately, and three consecutive fully connected layers; the number of convolution kernels of the four convolutional layers are 16, 32, 64, and 64 respectively, and the corresponding convolution kernel sizes are (5, 5), (3, 3), (3, 3), and (3, 3) respectively. The step size used by the four convolutional layers is (1, 1), the zero padding adopts the same mode, and the activation function is the Relu function; the pooling window of the four maximum pooling layers is (3, 3), and the step size is (2, 2); the number of neurons in the three fully connected layers is 500, 500, and 250 respectively, and the activation function of the three fully connected layers is the Relu function.
[0038] Step 2: Combine the trained prediction spectrum network and use a genetic algorithm to find the optimal optical structure.
[0039] For details, see Figure 3 , the step 2 comprises the following sub-steps:
[0040] Step 2.1: within a given parameter range, binary code the optical structure parameters to be optimized to obtain several different genotype codes.
[0041] There are m optical structural parameters to be optimized, and the coding length of each optical structural parameter is n bits. The genotype code is formed by interleaving the coding combination of each optical structural parameter, and the genotype code is m*n bits.
[0042] Step 2.2: Randomly initialize a population, and each individual in the population corresponds to a genotype code.
[0043] Step 2.3, decode each individual in the population to obtain the optical structure parameters corresponding to each individual, convert the optical structure parameters into an optical structure image, and perform grayscale and normalization preprocessing on the optical structure image in sequence.
[0044] Step 2.4: for each individual, the preprocessed optical structure image is input into the trained prediction spectrum model, the trained prediction spectrum model outputs a predicted spectrum, an objective function is calculated based on the predicted spectrum, and a fitness function value is obtained according to the objective function.
[0045] Taking the spectrum as the transmission spectrum and the objective function as the half-maximum full width as an example, the smaller the half-maximum full width, the higher the fitness function value.
[0046] Step 2.5: Based on the fitness function value, select individuals as parents according to the random competition selection method.
[0047] Each time a parent is selected, a pair of individuals is selected in a roulette manner, and the individual with the higher fitness function value is selected as the parent; parents are selected in the above manner until the population is full.
[0048] That is, the probability of an individual in the population being selected is proportional to the size of its fitness function value. The higher the fitness function value, the greater the possibility of being selected. The fitness function values of all individuals in the population are accumulated and normalized, and the individuals that can be used for random competition are randomly selected.
[0049] Among them, the i-th individual a in the population i The probability of being selected is P 选择 (a i ) is calculated using the following formula:
[0050]
[0051] Among them, f is the fitness function and n is the total number of individuals in the population.
[0052] Step 2.6: The genotype coding of the parent generation is crossover-operated according to the crossover rule to generate offspring.
[0053] The crossover rule is: according to the crossover probability, two individuals are randomly selected from the parent generation for crossover, two crossover points are selected within their genotype codes, the parent generation codes between the two crossover points are exchanged, and the codes outside the crossover points are retained.
[0054] Step 2.7: The offspring undergoes mutation operation according to the mutation rules.
[0055] The mutation rule is: according to the mutation probability, the offspring is mutated, and a mutation point is randomly selected in its genotype code and binary inverted.
[0056] Step 2.8, determine whether the objective function of the offspring meets the termination condition, where the termination condition is that the objective function of the offspring meets the set requirements or reaches the set number of iterations; if so, return the optimal solution in the current population as the optimal optical structure; if not, start a new round of iteration.
[0057] The spectrum is one of a transmission spectrum, a reflection spectrum, an absorption spectrum, and a scattering spectrum; and the objective function is one of polarization conversion efficiency, half-maximum full width of a characteristic spectrum, quality factor, modulation depth, sensitivity, and operating wavelength.
[0058] The preferred solution may further include: step 3, verifying the optical properties of the optimal optical structure through numerical simulation.
[0059] The present invention is further described below by taking the transmission spectrum as the spectrum and the half-maximum full width as the objective function as an example.
[0060] The present invention provides an optical micro-nano structure optimization method based on convolutional neural network, which mainly includes the following aspects:
[0061] 1. Acquisition of simulation data sets.
[0062] The finite difference time domain method FDTD is used to model and simulate multiple groups of optical structures with different parameters, and their corresponding transmission spectra are obtained. The order of the multiple groups of data obtained is shuffled to ensure that the data is well distributed. Then, the numerical data such as the optical structure parameters are converted into the corresponding optical structure image, for example, the numerical data is converted into the corresponding optical structure image using the matplotlib library in Python. After that, the obtained optical structure image is grayed so that its pixel value range is [0, 255], and then normalized so that its range is normalized to [0, 1]. Preprocessing the image can better train the convolutional neural network. The preprocessed optical structure image and its corresponding transmission spectrum are used as a set of data groups in the simulation data set.
[0063] 2. Construction and training of prediction spectrum network.
[0064] Firstly, a prediction spectrum network based on convolutional neural network is constructed, and then the constructed prediction spectrum network is trained using a simulation data set, with the preprocessed optical structure image as input and the predicted value of the transmission spectrum as output. According to the error between the true value and the predicted value of the transmission spectrum, the network structure and the hyperparameters involved in the network (learning rate, batch size, loss function, etc.) are adjusted, so that the adjusted network can approximately fit the transmission spectrum with a smaller error, and finally a trained prediction spectrum network is obtained.
[0065] The trained prediction spectrum network can accurately predict the transmission spectra corresponding to different optical structure images in a very short time. For example, the parameters of the convolutional neural network are randomly initialized, the data set size is 4096 groups of data, 3000 groups are used as training sets, and 1096 groups are used as test sets. If some wrong data are found during the training process, the error between the prediction result and the true value is relatively large, and the transmission spectrum of the true value does not meet the needs of the optical structure design, then these data will be removed to reduce the error.
[0066] The convolutional neural network for predicting the transmission spectrum includes the following parts: input, convolution layer, pooling layer, fully connected layer and output. The input is the processed optical structure image, whose size is 289*289. There are 4 convolution layers, each with multiple convolution kernels to learn different features of the image. The number of convolution kernels in each layer is 16, 32, 64, and 64 respectively; the corresponding convolution kernel sizes are (5, 5), (3, 3), (3, 3), and (3, 3). The step size used is (1, 1), that is, the moving distance of the convolution kernel in the vertical and horizontal directions is 1. Padding (zero padding) adopts the same mode, that is, the feature size of the input is kept unchanged after convolution, and the activation function applied is Relu function, that is, f(x) = max(0, x). With the increase of convolution layers, the features learned by the convolutional neural network are from shallow to deep, so as to better fit the transmission spectrum curve.
[0067] The pooling layer follows each convolutional layer. The pooling layer can effectively reduce the size of the weight parameter matrix, thereby reducing the parameters of the convolutional neural network learning. Introducing the pooling layer in the convolutional neural network can significantly speed up the network training speed and alleviate the overfitting phenomenon. The pooling layer uses Max Pooling, that is, the maximum value within the pooling window range is selected as the pooled value of the area. There are 4 pooling layers, and the size of the pooling window of each layer is (3, 3) and its step size is (2, 2).
[0068] There are three fully connected layers, and the number of neurons in each layer is 500, 500, and 250 respectively. The 500 neurons in the first layer are fully connected with the output features of the expanded convolutional layer, and the output of the 250 neurons in the last layer is the corresponding 250 transmission spectrum point values. The activation function of each layer is the Relu function, that is, f(x) = max(0, x).
[0069] 3. Optimization of optical structure parameters.
[0070] Different optical structural parameters are encoded to form their genotypes, and the first generation population is randomly initialized. The genotype is then decoded into its corresponding structural parameters. For different optical structural parameters, the corresponding optical structural images are first obtained, and then the corresponding transmission spectra are predicted by the trained prediction spectrum network to obtain the objective function. According to the predicted transmission spectrum, the fitness function value is obtained, and the fitness function value is used to evaluate the advantages and disadvantages of different parameters. According to the level of adaptability, individuals with high adaptability are selected as parents by random competition, and then crossover and mutation are performed to produce individuals of the next generation. Each iteration retains the optimal individuals of this generation and the value of the fitness function to prevent missing the optimal structural parameters during the iteration process. The optimal structural parameters optimized by the genetic algorithm are modeled and simulated by the finite difference time domain optical structure to obtain the corresponding transmission spectrum and verify the optimization results.
[0071] For example, the four structural parameters to be optimized corresponding to the half-width are binary-encoded, and the encoding length of each structural parameter is 4 bits. The encoding combination of each structural parameter is interleaved to form the final genotype encoding (16 bits). The size of the population can be set to 500. The genotype of the population is decoded into structural parameters, and then the corresponding structural image is drawn through the structural parameters. After grayscale processing and normalization, it is used as the input of the trained prediction spectrum network. According to the prediction results of the network, the objective function can be obtained, that is, the half-width of the structure is obtained through the transmission spectrum. The narrower the half-width, the better its optical properties, that is, the better its adaptability.
[0072] The steps to obtain the half-maximum full width through the transmission spectrum are: find the highest point T of the transmission value max and the lowest point T min , find its center point T middle Then, starting from the lowest wavelength, look for the wavelength closest to T middle The spectral value point T right and T left , and its corresponding wavelength and After taking the difference, we get the full width at half maximum (FWHM) corresponding to the structure. The corresponding formula is as follows:
[0073] T middle =(Tmax -T min ) / 2
[0074]
[0075] Specifically, first find the lowest point T of the transmission value min , and select the 10 points before and after this point. Between these 20 transmission value points, 10 transmission values are added at equal intervals between every two points to ensure the accuracy of the calculated half-height full width. Each time the population evaluates its fitness, the best individual in the population is retained to prevent missing the best structural parameters during the iteration process.
[0076] For example, the crossover probability is set to 0.8, which means that the selected parent has an 80% chance of crossover. Two individuals are selected from the parent generation through random competition for crossover. Within the coding length of the individual genotype, two different crossover points are selected. The genotype codes of the parent between the two crossover points are exchanged, and the codes outside the crossover points are retained, thereby obtaining new offspring. Secondly, the offspring after crossover mutates again, and the mutation probability is set to 0.003, that is, the offspring has a 0.3% probability of mutation. A mutation point is randomly selected in its encoded genotype and it is binary inverted.
[0077] An optical micro-nanostructure optimization method based on a convolutional neural network provided by an embodiment of the present invention includes at least the following technical effects:
[0078] (1) Compared with the traditional method of using the finite difference time domain method (FDTD) to perform numerical simulation to obtain the spectrum, the spectrum prediction network based on the convolutional neural network of the present invention can greatly shorten the calculation time and save time cost. Taking the transmission spectrum of 4000 sets of data as an example, the traditional numerical simulation method requires at least 600 seconds, while the trained spectrum prediction network only needs 11 seconds to quickly obtain its transmission spectrum. The traditional method is 54 times different from the method provided by the present invention. And when optimizing the structural parameters, the present invention uses a genetic algorithm to automatically optimize within a given parameter range, which can efficiently find the optimal structural parameters, effectively improve the problem that the traditional optical parameter optimization is prone to fall into the local optimum, and eliminate the factor of manual intervention. The narrower half-height full width obtained by optimizing the structural parameters once is explained. Compared with the traditional parameter optimization, the structural parameter optimization method combining the genetic algorithm and the convolutional neural network obtains a narrower half-height full width, which is 0.0672 smaller than the optimal result in the original data set. The error between the predicted value and the true value of the trained spectrum prediction network based on the convolutional neural network is extremely small. The error evaluation index here is mse (mean square error), and the error can be further reduced by adjusting the hyperparameters and network structure. The trained spectrum prediction network obtained in the present invention can predict the transmission spectrum error of 6.1×10 -4 .
[0079] (2) The prediction spectrum network constructed based on the convolutional neural network of the present invention can extract more abundant features and better fit the spectrum curve. Taking the half-height full width as an example of the objective function, the half-height full width is determined by several structural parameters (such as the length and width corresponding to multiple rectangular block structures). Although there are only a few structural parameters, the corresponding image information is very rich. In addition, for a more complex structure, not only the length, width and height change in its structure, but also the angle, shape and material change, which cannot be expressed by parameters. However, the use of convolutional neural networks can well extract these features, thereby better fitting the spectrum curve.
[0080] (3) Compared with other algorithms such as particle swarm optimization, the genetic algorithm used in the present invention is not easy to fall into local optimality and has better optimization results.
[0081] (4) The structural parameter optimization method provided by the present invention is easy to use and can be used to optimize the structural parameters without having to understand too much optical knowledge.
[0082] Finally, it should be noted that the above specific implementation methods are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to examples, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.
Claims
1. A method for optimizing optical micro-nano structures based on convolutional neural networks. It is characterized in that The following steps are involved: Step 1: Acquire a simulation data set, construct a prediction spectrum network based on a convolutional neural network, and use the simulation data set to train the prediction spectrum network to obtain a trained prediction spectrum network; In step 1, the input of the prediction spectrum network is the preprocessed optical structure image, and the output of the prediction spectrum network is the predicted spectrum corresponding to the optical structure image; The prediction spectrum network includes four convolutional layers and four maximum pooling layers connected alternately, and three consecutive fully connected layers; the number of convolution kernels of the four convolutional layers is 16, 32, 64, and 64 respectively, and the corresponding convolution kernel sizes are (5,5), (3,3), (3,3), and (3,3) respectively. The step size used by the four convolutional layers is (1,1), the zero padding adopts the same mode, and the activation function is the Relu function; the pooling window of the four maximum pooling layers is (3,3), and the step size is (2,2); the number of neurons in the three fully connected layers is 500, 500, and 250 respectively, and the activation function of the three fully connected layers is the Relu function; Step 2, combining the trained prediction spectrum network and using a genetic algorithm to find the optimal optical structure; The step 2 includes the following sub-steps: Step 2.1, within a given parameter range, binary encoding is performed on the optical structure parameters to be optimized to obtain a number of different genotype codes; Step 2.2: Randomly initialize a population, where each individual in the population corresponds to a genotype code; Step 2.3, decoding each individual in the population to obtain the optical structure parameters corresponding to each individual, converting the optical structure parameters into an optical structure image, and performing grayscale and normalization preprocessing on the optical structure image in sequence; Step 2.4: for each individual, the preprocessed optical structure image is input into the trained prediction spectrum model, the trained prediction spectrum model outputs a predicted spectrum, an objective function is calculated based on the predicted spectrum, and a fitness function value is obtained according to the objective function; Step 2.5: Based on the fitness function value, select individuals as parents according to the random competition selection method; Step 2.6: The genotype coding of the parent generation is crossover-operated according to the crossover rule to generate offspring; Step 2.7, the offspring undergoes mutation operation according to the mutation rule; Step 2.8, determine whether the objective function of the offspring meets the termination condition, where the termination condition is that the objective function of the offspring meets the set requirements or reaches the set number of iterations; if so, return the optimal solution in the current population as the optimal optical structure; if not, start a new round of iteration.
2. The optical micro-nanostructure optimization method based on convolutional neural network according to claim 1, It is characterized in that The method also includes: step 3, verifying the optical properties of the optimal optical structure through numerical simulation.
3. The optical micro-nanostructure optimization method based on convolutional neural network according to claim 1, It is characterized in that In step 1, obtaining a simulation data set includes the following sub-steps: Numerical simulation is performed by using the finite difference time domain method to batch simulate multiple groups of optical micro-nano structures with different optical structural parameters, and obtain the spectral data corresponding to each group of optical micro-nano structures; each group of initial data includes the optical structural parameters and their corresponding spectral data; For each initial data set, the optical structure parameters are converted into the corresponding optical structure images, and the optical structure images are preprocessed by grayscale and normalization in turn. The preprocessed optical structure images and their corresponding spectral data are used as a data set in the simulation data set.
4. The optical micro-nanostructure optimization method based on convolutional neural network according to claim 3, It is characterized in that The optical structure parameters are converted into their corresponding optical structure images using the matplotlib library in Python.
5. The optical micro-nanostructure optimization method based on convolutional neural network according to claim 1, It is characterized in that In the step 2.1, there are m optical structural parameters to be optimized, and the coding length of each optical structural parameter is n bits. The genotype code is formed by interleaving the coding combination of each optical structural parameter, and the genotype code is m×n bits.
6. The optical micro-nanostructure optimization method based on convolutional neural network according to claim 1, It is characterized in that The specific implementation method of step 2.5 is: each time a parent is selected, a pair of individuals is selected in a roulette manner, and the individual with a higher fitness function value is selected as the parent; the parent is selected in the above manner until the population is full.
7. The optical micro-nano structure optimization method based on convolutional neural network according to claim 1, It is characterized in that The crossover rule is: according to the crossover probability, two individuals are randomly selected from the parent generation for crossover, two crossover points are selected in their genotype codes, the parent generation codes between the two crossover points are exchanged, and the codes outside the crossover points are retained; The mutation rule is: according to the mutation probability, the offspring is mutated, and a mutation point is randomly selected in its genotype code and binary inverted.
8. The optical micro-nanostructure optimization method based on convolutional neural network according to claim 1, It is characterized in that The spectrum is one of a transmission spectrum, a reflection spectrum, an absorption spectrum, and a scattering spectrum; the objective function is one of polarization conversion efficiency, half-maximum full width of a characteristic spectrum, a quality factor, a modulation depth, a sensitivity, and an operating wavelength.
Citation Information
Patent Citations
A hyperspectral image sharpening method based on a spectral prediction residual convolutional neural network
CN109727207A
Optical structure optimization design method based on deep neural network
CN113591298A
System and method for optimization of a database for the training and testing of prediction algorithms
US20060230006A1
