Digital coding metasurface response characteristic automatic prediction method based on time domain finite difference method and convolutional neural network

Through the combination of finite difference time domain method and convolutional neural network, the problem of low computational efficiency and insufficient accuracy of metasurface electromagnetic response in traditional methods is solved, and fast and high-precision prediction of electromagnetic response characteristics is achieved, which is suitable for complex metasurface structures. Digitally encoded metasurfaces.

CN118536328APending Publication Date: 2024-08-23SOUTHEAST UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410474625.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-19
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing technologies When designing and optimizing large-scale digital programmable metasurfaces, traditional electromagnetic response calculation and simulation methods are time-consuming and inefficient. They also require designers to have high electromagnetic theory knowledge, making it difficult to achieve fast and high-precision electromagnetic analysis. Response characteristic prediction.

Method used

Using a method based on the finite difference time domain method and convolutional neural network, a metasurface finite difference time domain model is constructed by randomly generating 0/1 matrices, collecting electromagnetic response data, training the CNN network model, and learning the 0/1 matrix and electromagnetic response data relationship between them, optimize model parameters, and achieve rapid prediction of electromagnetic response characteristics of metasurfaces.

Benefits of technology

It significantly improves the prediction speed of electromagnetic response characteristics, ensures high-precision prediction results, and is suitable for predicting electromagnetic response characteristics of complex metasurface structures and large-scale metasurfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536328A
    Figure CN118536328A
Patent Text Reader

Abstract

The invention discloses a digital coding metasurface response characteristic automatic prediction method based on a time domain finite difference method and a convolutional neural network, and the method comprises the steps: randomly generating a plurality of 0 / 1 matrixes which are composed of numbers 0 / 1 and represent metasurface geometric characteristics, and setting light field information and simulation parameters; constructing a time domain finite difference model corresponding to the metasurface according to the 0 / 1 matrix; simulating the time domain finite difference model according to the set light field information and simulation parameters, collecting electromagnetic response data of the metasurface, and making and dividing a training set and a test set of a CNN network model by using the electromagnetic response data and a 0 / 1 matrix; constructing a CNN network model, and training the CNN network model according to the training set; and utilizing the trained CNN network model to quickly predict the electromagnetic response characteristics of the digital coding metasurface. According to the method, the electromagnetic response of the metasurface with any geometrical characteristic can be quickly predicted with high precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a metasurface property prediction and design technology, and in particular to a method for automatically predicting response characteristics of a digitally coded metasurface based on a finite difference time domain method and a convolutional neural network. Background Art

[0002] Metamaterials are artificial structures that can control electromagnetic waves. By artificially constructing specific geometric structures on a macroscopic subwavelength scale, metamaterials can achieve electromagnetic physical phenomena that are difficult to achieve with natural materials. As a two-dimensional equivalent form of metamaterials, metasurfaces can also achieve flexible control of electromagnetic waves. In 2014, Professor Cui Tiejun and others proposed the digital representation of metasurfaces and introduced programmable gate arrays. By using bits and bytes in digital information to map the equivalent medium parameters and distribution characteristics of metamaterials, they proposed digitally coded metasurfaces, which effectively simplified the design and optimization process of metasurfaces. Using FPGAs, digital coding patterns can be dynamically changed, and different electromagnetic functions can be flexibly controlled through programming, and rich electromagnetic functions can be realized. Although metasurfaces have these advantages, the calculation, modeling and simulation of the electromagnetic response properties of large-scale digital programmable metasurfaces rely on traditional commercial computer simulation software. Especially in the case of high dimensions and a large number of metasurfaces to be calculated, traditional modeling and simulation methods are extremely time-consuming and inefficient, and have high requirements on the designer's electromagnetic theoretical knowledge.

[0003] As the core of deep learning algorithms, the structure of neural networks is inspired by the structure of the human brain. They can imitate the process of neurons transmitting signals to each other, rely on training data for learning, and continuously improve their own accuracy in specific application scenarios. By consuming a certain amount of upfront cost, once trained and tuned, neural networks can become powerful tools for corresponding application scenarios, and can quickly predict data, greatly improving the speed and efficiency of big data processing, prediction and other application processes. Because neural networks and other related algorithms have superior characteristics such as high efficiency and accuracy in dealing with big data processing, they have been applied to many currently hot research fields, including metasurface design. Summary of the invention

[0004] Purpose of the invention: The purpose of the present invention is to provide a method for automatically predicting the response characteristics of a digitally coded metasurface based on a finite-difference time-domain method and a convolutional neural network, which significantly improves the speed of predicting the electromagnetic response characteristics while ensuring the high accuracy of the predicted electromagnetic response characteristics of the metasurface.

[0005] Technical solution: The present invention provides a method for automatically predicting the response characteristics of a digitally coded metasurface based on a finite-difference time-domain method and a convolutional neural network, comprising the following steps:

[0006] Randomly generate multiple groups of 0 / 1 matrices composed of digital 0 / 1 representing the geometric features of the metasurface, and set the light field information and simulation parameters;

[0007] Construct the finite-difference time-domain model of the corresponding metasurface according to the 0 / 1 matrix;

[0008] According to the set light field information and simulation parameters, the finite-difference time-domain model is simulated, and the electromagnetic response data of the metasurface is collected. The training set and test set of the CNN network model are prepared and divided using the electromagnetic response data and the 0 / 1 matrix.

[0009] Constructing a CNN network model, and training the CNN network model according to the training set; the CNN network model gradually improves the prediction accuracy of the CNN network model by learning the linear or nonlinear relationship between the 0 / 1 matrix in the training set and the electromagnetic response data, and optimizing and updating the parameters of the CNN network model;

[0010] The trained CNN network model is used to quickly predict the electromagnetic response characteristics of the digitally coded metasurface.

[0011] Furthermore, a finite-difference time-domain model corresponding to the metasurface is constructed according to the 0 / 1 matrix, specifically:

[0012] The finite-difference time-domain model of the metasurface is mapped through a 0 / 1 matrix. On the xy plane, the number 1 represents that the small square grid area centered on the corresponding coordinates should be modeled as a metal material of a preset thickness, and the number 0 represents that the small square grid area centered on the corresponding coordinates is empty.

[0013] Furthermore, the electromagnetic response data of the metasurface is collected by setting a monitor, and the reflection spectrum T(f) is calculated according to the following formula:

[0014]

[0015] Among them, P(f) is the Poynting vector, Re represents its real part, monitor under the integral sign is the integration of the entire monitor plane, and sourcepower(f) is the net input energy of the light source.

[0016] Furthermore, the CNN network model includes a convolutional layer, a pooling layer, an LSTM layer, an attention layer and a fully connected layer connected in sequence. The model input is a 0 / 1 matrix. The convolutional layer extracts features from the input 0 / 1 matrix. The pooling layer uses the maximum pooling method, and the data output by the convolutional layer is further feature extracted. The LSTM layer is used to capture the dependency between the data output by the pooling layer. The attention layer is used to evaluate the importance of the data output by the LSTM layer and allocate computing resources according to the importance of the data. The fully connected layer connects the data output by the attention layer to the output of the CNN network model.

[0017] Furthermore, the nonlinear activation function used in the fully connected layer of the CNN network model is the LeakyReLU function.

[0018] Furthermore, the ADAM optimizer and BP algorithm are used to continuously optimize and update the parameters of the CNN network model.

[0019] Furthermore, the calculation formula for the prediction accuracy of the CNN network model is:

[0020]

[0021] Where n represents the number of spectral points, R is the true value of the reflectance spectrum T(f), and R * is the predicted value of the CNN network model for the metasurface reflection spectrum T(f).

[0022] In one embodiment of the present invention, a digital coding metasurface response characteristic automatic prediction system based on finite difference time domain method and convolutional neural network includes:

[0023] A 0 / 1 matrix generation unit, used for randomly generating multiple groups of 0 / 1 matrices consisting of numbers 0 / 1 representing the geometric features of the hypersurface;

[0024] A parameter setting unit, used to set light field information and simulation parameters;

[0025] A finite-difference time-domain model construction unit, used for constructing a finite-difference time-domain model corresponding to the hypersurface according to a 0 / 1 matrix;

[0026] A data set making unit is used to simulate the finite difference time domain model according to the set light field information and simulation parameters, collect the electromagnetic response data of the metasurface, and use the electromagnetic response data and 0 / 1 matrix to make and divide the training set and test set of the CNN network model;

[0027] The CNN network model construction and training unit is used to construct the CNN network model and train the CNN network model according to the training set; the CNN network model learns the linear or nonlinear relationship between the 0 / 1 matrix in the training set and the electromagnetic response data, and optimizes and updates the parameters of the CNN network model, thereby gradually improving the prediction accuracy of the CNN network model;

[0028] The prediction unit is used to quickly predict the electromagnetic response characteristics of the digitally coded metasurface using the trained CNN network model.

[0029] In one embodiment of the present invention, an electronic device includes:

[0030] A memory storing executable program code;

[0031] a processor coupled to the memory;

[0032] The processor calls the executable program code stored in the memory to execute the steps of the above-mentioned method for automatically predicting the response characteristics of a digitally encoded metasurface based on a finite-difference time-domain method and a convolutional neural network.

[0033] In one embodiment of the present invention, a computer-readable storage medium stores computer instructions, which, when called, are used to execute the steps of the method for automatically predicting the response characteristics of a digitally encoded metasurface based on a finite-difference time-domain method and a convolutional neural network as described above.

[0034] Beneficial effects: Compared with the prior art, the advantages of the present invention are: the method of the present invention can automatically train the neural network model and predict the electromagnetic response characteristics of the digitally encoded metasurface under specific conditions. Compared with traditional simulation software, the speed of predicting the electromagnetic response characteristics is significantly improved when the metasurface structure is complex and the number of metasurfaces to be calculated is large, while ensuring the high accuracy of the predicted electromagnetic response characteristics of the metasurface; the training process of the CNN network model is top-level controlled by MATLAB programming, and the electromagnetic response of the metasurface with any geometric features can be predicted quickly and with high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A brief flow chart of the method of the present invention is shown in FIG.

[0036] Figure 2 An example of a hypersurface structure diagram (xy perspective) generated by automatic modeling simulation provided by an embodiment of the present invention;

[0037] Figure 3 A schematic diagram of a CNN network model constructed in an embodiment of the present invention;

[0038] Figure 4 A comparison diagram of the reflection spectrum curve predicted by the CNN network model provided in an embodiment of the present invention and the actual reflection spectrum curve generated by FDTD simulation (the blue curve represents the true value, and the red curve represents the predicted value). DETAILED DESCRIPTION

[0039] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Examples of the embodiments are shown in the accompanying drawings, and the specific embodiments described in the following embodiments of the present invention are only exemplary embodiments of the present invention, intended to explain the present invention, and are not intended to limit the present invention.

[0040] like Figure 1 As shown, the present invention comprises the following steps:

[0041] S1. MATLAB randomly generates multiple groups of 0 / 1 matrices consisting of only the numbers 0 / 1 that represent the geometric features of the metasurface, and sets the relevant light field information and simulation parameters;

[0042] The light field information includes: light source direction, light source range, light source position, light source frequency or wavelength range, light source incident angle (θ, value, polarization angle of the light source;

[0043] The simulation parameters include: the size of the simulation area, the boundary conditions of each boundary of the simulation area, and the simulation accuracy;

[0044] S2, start the FDTD software to construct a finite difference time domain model of the corresponding metasurface according to the 0 / 1 matrix;

[0045] First, a multi-layer substrate structure is constructed;

[0046] Then, the hypersurface geometry is mapped through a 0 / 1 matrix, where the number 1 ( Figure 2 The orange part in (a) to (d) represents the metal material that should be modeled as a preset thickness in the small square mesh area centered on the corresponding coordinates. The number 0 ( Figure 2 The green part in (a) to (d) represents the small square mesh area centered on the corresponding coordinates without modeling metal materials.

[0047] Taking the metasurface unit structure composed of 16×16 small squares as an example, the mapping principle is explained:

[0048] Loop through the 16×16 small squares. If the number in the i-th row and j-th column of the 0 / 1 matrix is ​​1, then (-80+(j-0.5)*10)*10 9: ,80-(i-0.5)*10)*10 9: ) is taken as the center and a square metal structure with a side length of 10nm is established. The scale size used here is that each small grid has a side length of 10nm, and the side length of the metasurface geometric unit used here is 10×16=160nm.

[0049] S3. According to the set light field information and simulation parameters, the finite difference time domain model is simulated, and a monitor is set to collect the electromagnetic response data of the metasurface, and the training set and test set of the CNN network model are prepared and divided by using the electromagnetic response data and the 0 / 1 matrix;

[0050] When setting up a monitor, specify the monitor type, monitor range, monitor position, and the number of light source frequency points or wavelength points. This example sets up a two-dimensional monitor to monitor the electric and magnetic field distribution on an entire plane and calculate the reflection spectrum T(f) according to the following formula:

[0051]

[0052] Where P(f) is the Poynting vector, Re represents its real part, monitor under the integral sign represents the integration over the entire monitor plane, and sourcepower(f) is the net input energy of the light source;

[0053] The method of making and dividing the training set and test set is: automatically export the 0 / 1 matrix as an xls file, representing the geometric pattern structure of the hypersurface, as the input data set of the CNN network model; automatically export the T(f) spectrum obtained by simulation as an xls file, as the output data set of the CNN network model. Then, 90% of the input data set and the corresponding output data set are used as the training set, and the remaining 10% of the input data set and the corresponding output data set are used as the test set;

[0054] S4, constructing a CNN network model, and training the CNN network model according to the training set; the CNN network model continuously updates the parameters of the CNN network model by learning the linear or nonlinear relationship between the 0 / 1 matrix in the training set and the hypersurface T(f) spectrum, using the ADAM optimizer (stochastic gradient descent method) and the BP algorithm, thereby gradually improving the prediction accuracy of the CNN network model;

[0055] like Figure 3 As shown in the figure, the process of building a CNN network model is:

[0056] S401: Given input as a tensor in the form of a 0 / 1 matrix;

[0057] S402: Construct a convolution layer to extract features from the input tensor;

[0058] S403: construct a pooling layer and use the maximum pooling method to further extract features from the data from the convolution layer;

[0059] S404: Build an LSTM layer to capture the dependencies between the data from the pooling layer;

[0060] S405: Construct an attention layer to evaluate the importance of data from the LSTM layer and allocate more computing resources to more important data;

[0061] S406: Construct a fully connected layer to connect the data from the attention layer to the output of the CNN network model, which is a high-dimensional long vector.

[0062] The nonlinear activation function used in the fully connected layer of the CNN network model is the LeakyReLU function.

[0063] The ADAM optimizer is used to update the parameters of the CNN network model. The ADAM optimizer is an optimizer that updates the parameters of the network model based on the stochastic gradient descent method SGD. Its characteristic, which is different from the general stochastic gradient descent method, is that the learning rate of this method is also continuously updated.

[0064] BP algorithm is the back propagation algorithm, which refers to updating the network model parameters in the reverse direction from the output layer to the input layer;

[0065] S5. Use the trained CNN network model to quickly predict the T(f) spectrum of the digitally coded metasurface in the test set.

[0066] The trained CNN network model quickly predicts the T(f) spectrum of the digitally encoded metasurface in the test set, and at the same time, exports the test data (i.e., the T(f) spectrum data predicted by the CNN network model) and the evaluation results (i.e., the average prediction accuracy of the CNN network model) as an xls file and saves it to the specified path.

[0067] The T(f) spectrum image predicted by the CNN network model is as follows Figure 4 As shown, the prediction accuracy reaches over 95%.

[0068] Specifically, the formula used to calculate the prediction accuracy is as follows:

[0069]

[0070] Where n represents the number of spectral points. Figure 4 The number used in is 100, R is the true value of the reflection spectrum T(f) (i.e. the simulation value of the FDTD software), R * is the predicted value of the CNN network model for the metasurface reflection spectrum T(f).

[0071] In one embodiment of the present invention, a digital coding metasurface response characteristic automatic prediction system based on finite difference time domain method and convolutional neural network includes:

[0072] A 0 / 1 matrix generation unit, used for randomly generating multiple groups of 0 / 1 matrices consisting of numbers 0 / 1 representing the geometric features of the hypersurface;

[0073] A parameter setting unit, used to set light field information and simulation parameters;

[0074] A finite-difference time-domain model construction unit, used for constructing a finite-difference time-domain model corresponding to the hypersurface according to a 0 / 1 matrix;

[0075] A data set making unit is used to simulate the finite difference time domain model according to the set light field information and simulation parameters, collect the electromagnetic response data of the metasurface, and use the electromagnetic response data and 0 / 1 matrix to make and divide the training set and test set of the CNN network model;

[0076] The CNN network model construction and training unit is used to construct the CNN network model and train the CNN network model according to the training set; the CNN network model learns the linear or nonlinear relationship between the 0 / 1 matrix in the training set and the electromagnetic response data, and optimizes and updates the parameters of the CNN network model, thereby gradually improving the prediction accuracy of the CNN network model;

[0077] The prediction unit is used to quickly predict the electromagnetic response characteristics of the digitally coded metasurface using the trained CNN network model.

[0078] In one embodiment of the present invention, an electronic device includes:

[0079] A memory storing executable program code;

[0080] a processor coupled to the memory;

[0081] The processor calls the executable program code stored in the memory to execute the steps of the above-mentioned method for automatically predicting the response characteristics of a digitally encoded metasurface based on a finite-difference time-domain method and a convolutional neural network.

[0082] In one embodiment of the present invention, a computer-readable storage medium stores computer instructions, which, when called, are used to execute the steps of the method for automatically predicting the response characteristics of a digitally encoded metasurface based on a finite-difference time-domain method and a convolutional neural network as described above.

Claims

1. A method for automatically predicting the response characteristics of a digitally coded metasurface based on a finite-difference time-domain method and a convolutional neural network, characterized in that: The following steps are involved: Randomly generate multiple groups of 0 / 1 matrices composed of digital 0 / 1 representing the geometric features of the metasurface, and set the light field information and simulation parameters; Construct the finite-difference time-domain model of the corresponding metasurface according to the 0 / 1 matrix; According to the set light field information and simulation parameters, the finite-difference time-domain model is simulated, and the electromagnetic response data of the metasurface is collected. The training set and test set of the CNN network model are prepared and divided using the electromagnetic response data and the 0 / 1 matrix. Constructing a CNN network model, and training the CNN network model according to the training set; the CNN network model gradually improves the prediction accuracy of the CNN network model by learning the linear or nonlinear relationship between the 0 / 1 matrix in the training set and the electromagnetic response data, and optimizing and updating the parameters of the CNN network model; The trained CNN network model is used to quickly predict the electromagnetic response characteristics of the digitally coded metasurface.

2. According to claim 1, a method for automatically predicting the response characteristics of a digitally coded metasurface based on a finite-difference time-domain method and a convolutional neural network is characterized in that: The finite-difference time-domain model of the corresponding metasurface is constructed according to the 0 / 1 matrix, specifically: The finite-difference time-domain model of the metasurface is mapped through a 0 / 1 matrix. On the xy plane, the number 1 represents that the small square grid area centered on the corresponding coordinates should be modeled as a metal material of a preset thickness, and the number 0 represents that the small square grid area centered on the corresponding coordinates is empty.

3. The method for automatically predicting the response characteristics of a digitally coded metasurface based on a finite-difference time-domain method and a convolutional neural network according to claim 1 is characterized in that: The electromagnetic response data of the metasurface is collected by setting up a monitor, and the reflection spectrum T(f) is calculated according to the following formula: Among them, P(f) is the Poynting vector, Re represents its real part, monitor under the integral sign is the integration of the entire monitor plane, and sourcepower(f) is the net input energy of the light source.

4. The method for automatically predicting the response characteristics of a digitally coded metasurface based on a finite-difference time-domain method and a convolutional neural network according to claim 1 is characterized in that: The CNN network model includes a convolutional layer, a pooling layer, an LSTM layer, an attention layer, and a fully connected layer connected in sequence. The model input is a 0 / 1 matrix. The convolutional layer extracts features from the input 0 / 1 matrix. The pooling layer uses the maximum pooling method, and the data output by the convolutional layer is further feature extracted. The LSTM layer is used to capture the dependencies between the data output by the pooling layer; The attention layer is used to evaluate the importance of the data output by the LSTM layer and allocate computing resources according to the importance of the data; The fully connected layer connects the data output by the attention layer to the output of the CNN network model.

5. The method for automatically predicting the response characteristics of a digitally coded metasurface based on a finite-difference time-domain method and a convolutional neural network according to claim 4 is characterized in that: The nonlinear activation function used in the fully connected layer of the CNN network model is the LeakyReLU function.

6. The method for automatically predicting the response characteristics of a digitally coded metasurface based on a finite-difference time-domain method and a convolutional neural network according to claim 1, characterized in that: The ADAM optimizer and BP algorithm are used to continuously optimize and update the parameters of the CNN network model.

7. The method for automatically predicting the response characteristics of a digitally coded metasurface based on a finite-difference time-domain method and a convolutional neural network according to claim 1, characterized in that: The calculation formula for the prediction accuracy of the CNN network model is: Where n represents the number of spectral points, R is the true value of the reflectance spectrum, and R p is the predicted value of the CNN network model for the metasurface reflection spectrum T(f).

8. An automatic prediction system for digital coding metasurface response characteristics based on finite difference time domain method and convolutional neural network, characterized in that: include: A 0 / 1 matrix generation unit, used for randomly generating multiple groups of 0 / 1 matrices consisting of numbers 0 / 1 representing the geometric features of the hypersurface; A parameter setting unit, used to set light field information and simulation parameters; A finite-difference time-domain model construction unit, used for constructing a finite-difference time-domain model corresponding to the hypersurface according to a 0 / 1 matrix; A data set making unit is used to simulate the finite difference time domain model according to the set light field information and simulation parameters, collect the electromagnetic response data of the metasurface, and use the electromagnetic response data and 0 / 1 matrix to make and divide the training set and test set of the CNN network model; The CNN network model construction and training unit is used to construct the CNN network model and train the CNN network model according to the training set; the CNN network model learns the linear or nonlinear relationship between the 0 / 1 matrix in the training set and the electromagnetic response data, and optimizes and updates the parameters of the CNN network model, thereby gradually improving the prediction accuracy of the CNN network model; The prediction unit is used to quickly predict the electromagnetic response characteristics of the digitally coded metasurface using the trained CNN network model.

9. An electronic device, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the steps of the method for automatically predicting the response characteristics of a digitally encoded metasurface based on a finite-difference time-domain method and a convolutional neural network as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, which, when called, are used to execute the steps of the method for automatically predicting the response characteristics of a digitally encoded metasurface based on a finite-difference time-domain method and a convolutional neural network as described in any one of claims 1 to 7.