원시데이터 수집 시스템
선정목록으로

Plasmonic colours predicted by deep learning

간접 관련 필름·전자재료 · (13) 프리즘 필름 (11) 배리어 필름(15) 디스플레이 패널재료

기본 정보

저자
  1. Joshua Baxter — University of Ottawa, Department of Physics, Ottawa, K1N 6N5, Canada
  2. Antonio Calà Lesina — University of Ottawa, Department of Physics, Ottawa, K1N 6N5, Canada
  3. Jean‐Michel Guay — University of Ottawa, Department of Physics, Ottawa, K1N 6N5, Canada
  4. Arnaud Weck — University of Ottawa, Department of Physics, Ottawa, K1N 6N5, Canada
  5. Pierre Berini — University of Ottawa, Department of Physics, Ottawa, K1N 6N5, Canada
  6. Lora Ramunno — University of Ottawa, Centre for Research in Photonics, Ottawa, K1N 6N5, Canada
DOI
10.1038/s41598-019-44522-7
저널
Scientific Reports
발행년도
2019
발행기관
Nature Portfolio
피인용수
89
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-019-44522-7
토픽
Color Science and Applications
OpenAlex ID
W2914112367

평가 내용

관련도
간접 관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
(11) 배리어 필름, (15) 디스플레이 패널재료
R&D 측면
분석·모델링
확신도
0.70
근거 용어
deep learning, plasmonic colours, nanophotonic structures, inverse design, FDTD simulations
판단 근거
본 논문은 딥러닝을 이용해 나노 구조의 플라즈모닉 색상을 예측하고 설계하는 연구로, 직접적인 제품 연구는 아니나 광학 필름(13)이나 디스플레이 소재(15)의 미세 구조 설계 및 색상 제어 원리에 응용 가능한 분석 모델링 기술을 다루고 있습니다.
R&D 활용 포인트
광학 필름의 미세 구조(Prism 등) 설계 시 딥러닝 기반의 역설계(Inverse Design) 모델을 도입하여, 원하는 광학 특성(색상, 휘도 등)을 얻기 위한 구조 파라미터를 신속하게 도출하는 데 활용 가능합니다.
평가 입력
본문 39,039자 중 30,032자 발췌

초록

Picosecond laser pulses have been used as a surface colouring technique for noble metals, where the colours result from plasmonic resonances in the metallic nanoparticles created and redeposited on the surface by ablation and deposition processes. This technology provides two datasets which we use to train artificial neural networks, data from the experiment itself (laser parameters vs. colours) and data from the corresponding numerical simulations (geometric parameters vs. colours). We apply deep learning to predict the colour in both cases. We also propose a method for the solution of the inverse problem -- wherein the geometric parameters and the laser parameters are predicted from colour -- using an iterative multivariable inverse design method.

본문 39,039자

본문 펼치기
## OPEN Received: 12 March 2019 Accepted: 17 May 2019 Published: xx xx xxxx # Plasmonic colours predicted by deep learning [Joshua Baxter](http://orcid.org/0000-0002-1498-9361) <sup>1,2</sup> [, Antonino Calà Lesina](http://orcid.org/0000-0002-9384-6245) <sup>1,2,3</sup> , Jean-Michel Guay <sup>1,2,4</sup> [, Arnaud Weck](http://orcid.org/0000-0001-8768-4449) <sup>1,2,4</sup> , Pierre Berini <sup>1,2,3</sup> & Lora Ramunno <sup>1,2</sup> Picosecond laser pulses have been used as a surface colouring technique for noble metals, where the colours result from plasmonic resonances in the metallic nanoparticles created and redeposited on the surface by ablation and deposition processes. This technology provides two datasets which we use to train artificial neural networks, data from the experiment itself (laser parameters vs. colours) and data from the corresponding numerical simulations (geometric parameters vs. colours). We apply deep learning to predict the colour in both cases. We also propose a method for the solution of the inverse problem – wherein the geometric parameters and the laser parameters are predicted from colour – using an iterative multivariable inverse design method. Deep learning (DL) refers to a sub-field of Machine Learning and Artificial Intelligence where multi-layered artificial neural networks, or deep neural networks (DNNs), are used for high accuracy predictions and classifications. Deep learning has been used in speech recognition, image classification, vision, and pattern extraction, to name a few examples <sup>1</sup> . Its application in photonics is recent. For example, DL has been used to classify scanning electron microscope (SEM) images of nanostructures <sup>2</sup>, to increase the resolution of microscopy <sup>3</sup>, and for the design of nanophotonic structures <sup>4–10</sup> . DL models can be used to find patterns in complicated datasets and are particularly useful when large pre-calculated or pre-measured datasets are available for training. Both simulations and experiments in nanophotonics can provide the large datasets required for DL. For example, geometric parameter sweeps are used in plasmonics to optimize the design of nanostructures, while parameters are tuned in experiments to produce the best nanofabrication results. The exploration of the parameter space based on trials is time-consuming. Using data from parameter sweeps, one can train a DL model to predict the experimental or simulation outcome for a new set of input parameters, thus avoiding the need to run many trials of the actual experiment or computation. Further, in an industrial setting where the environment is not well controlled, environmental parameters can be tracked and can become additional inputs of a deep learning application. An application which may benefit from DL is the plasmonic colouration of metal surfaces via laser machining. By controlling different laser parameters such as scanning speed, hatch spacing, burst number, etc., laser-machined surfaces (Fig. 1(a)) with a large range of colours (Fig. 1(b)) were created <sup>11,12</sup> . Finite-difference time-domain (FDTD) simulations were performed based on the geometries inspired by the experimental SEM images and the measured nanoparticle distributions, and these simulations were able to explain experimental trends. This includes finding that the colour transition from blue to yellow occurs when the inter-particle spacing for nanoparticles of radius _R_ = 35 nm is progressively increased. The nanoparticle distribution is modelled as a periodic hexagonal lattice of single-sized nanoparticles embedded into a metal surface (Fig. 1(c)), and the output of the simulation is a reflection spectrum from which the colour is rendered to the Red-Green-Blue (RGB) colour scale <sup>13</sup> (Fig. 1(d)). Both experiments and simulations contain challenges which can be addressed by DL. On the experimental side, the colours generated by a new set of laser parameters must be determined empirically through trial and error. On the computational side, the requirement for accuracy means that a large-scale FDTD simulation has to be run in order to find the colour corresponding to a new set of geometric parameters, and this is time-consuming. In this paper we apply DL to the direct prediction of new colours using both the experimental and simulation data. We predict colours from laser parameters by leveraging the dataset linking laser parameters to real, physical colours. We also predict colours from nanoparticle geometries by using the dataset linking the simulation 1University of Ottawa, Department of Physics, Ottawa, K1N 6N5, Canada. 2University of Ottawa, Centre for Research in Photonics, Ottawa, K1N 6N5, Canada. <sup>3</sup> University of Ottawa, School of Electrical Engineering and Computer Science, Ottawa, K1N 6N5, Canada. <sup>4</sup> University of Ottawa, Department of Mechanical Engineering, Ottawa, K1N [6N5, Canada. Correspondence and requests for materials should be addressed to J.B. (email: jbaxt089@uottawa.ca)](mailto:jbaxt089@uottawa.ca) [or A.C.L. (email: antonino.calalesina@uottawa.ca)](mailto:antonino.calalesina@uottawa.ca) Figure 1. ( a ) High-magnification SEM image of a laser-machined silver surface. ( b ) Colour palette obtained by the laser-machining of silver surfaces <sup>11</sup> . ( c ) Simplified model of the silver surface used in FDTD simulations (where the blue box is the unit cell). ( d ) Simulated reflectance spectra as a function of inter-nanoparticle distance. ( a, b ) Are used and modified (stretched and removed labels from b ) with permission under the [Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/).](https://creativecommons.org/licenses/by/4.0/) geometries to computed colours. We then apply DNNs to aid in the solution of the inverse design problem, whereby inputting colours, the model returns appropriate geometric or laser parameters. In solving the inverse design problem, we use an iterative multivariable inverse design method in which the inverse solution is found by iteratively solving for individual outputs. To the best of our knowledge, this is the first time this method has been reported. Traditional optimization and inverse design techniques (e.g. genetic algorithms or gradient-based methods) have been applied to photonics applications <sup>14</sup> . These methods would be time consuming for the large-scale simulations, and costly to implement in the lab. This is why we highlight the importance of using the data that has already been accumulated to train efficient DL models. Direct Prediction of Colours Using simulation data. In this section we use DNNs for the prediction of colours from nanoparticle geometries using the FDTD dataset. The FDTD simulations were run to calculate the reflectance spectra from single-sized silver nanoparticle distributions embedded into flat silver surfaces. Statistical analysis of SEM images of laser-coloured silver surfaces show a bimodal distribution of nanoparticle sizes, which are referred to as medium nanoparticles (10 < _Rm_ < 75 nm) with an average radius of ≈35 nm, and small nanoparticles ( _Rs_ < 10 nm) <sup>11,12</sup> . Simulations have shown that the effect of the small nanoparticles averages out, thus they do not contribute significantly to the colours observed in experiments <sup>11,12</sup> . Indeed, the experimental palette (see Fig. 1(b)) can be reproduced with single-sized nanoparticles of radius 35 nm (see Fig. 1(d)). For this reason, we use the single-sized nanoparticle data for this study. The particles are arranged in a hexagonal lattice in the _x_ - _z_ plane as shown in Fig. 2, where only a unit cell is simulated and periodic boundaries are placed in the _x_ - and _z_ - directions. We excited the system with a broadband plane wave pulsed signal which allows us to capture the full visible spectrum (broadband simulation) with a single run of the code. The incoming pulse was _z_ -polarized and propagated in the _y_ -direction, which is truncated by Convolutional Perfectly Matched Layers (CPMLs). Simulations are run with particle radii _R_ ranging from 5 nm to 100 nm. The embedding depth _Remb_ represents the percentage of the radius embedded into the silver surface, and it ranges from 30 to 100%, where an embedding of 100% means that we simulate a hemisphere. The inter-particle spacing _Dcc_ describes the center-to-center spacing between the nanoparticles. To remove correlation between spacing and radius, we also define an edge-to-edge spacing _Dee_ = _Dcc_ - 2 _R_ which ranges from 5 nm to 80 nm. The simulation domain was discretized using a uniform space step and a cubic Yee cell <sup>15</sup> ( _dx_ = _dy_ = _dz_ ). We used a space-step of _dx_ = 0.125 nm for _R_ = 5 to 10 nm, _dx_ = 0.25 nm for _R_ = 15 to 20 nm, _dx_ = 0.5 nm for _R_ = 25 to 45 nm and _dx_ = 1 nm for _R_ = 50 to 100 nm. The total number of Yee cells depends on the space step and geometry but is on the order of 10 <sup>8</sup> . We run convergence tests to ensure sufficient accuracy <sup>16</sup> . The optical parameters of silver were modelled by the Drude + 2 Critical Points model <sup>17,18</sup> . To simulate the metal substrate as a half plane, we used a Figure 2. Layout of the nanoparticle geometry in the _x_ - _z_ plane. The blue tinted box is the unit cell used in the FDTD simulations. 100 nm thick silver layer, at the end of which there was zero transmittance; this layer was terminated by a CPML. The length of the y-dimension was chosen such that the reflectance is computed in the far-field region, which is at least 100 nm from the top of the nanoparticles. The reflectance spectra were computed over the optical wavelength range of 350–750 nm and were converted to RGB values. Simulations were performed using an in-house 3D-FDTD parallel code <sup>16</sup> running on the IBM BlueGene/Q supercomputer (64 k cores) <sup>19</sup> operated by SOSCIP at Scinet, University of Toronto, Canada. For the direct prediction DL application, the input is the simulation geometries which are parameterized by nanoparticle radius _R_, embedding depth _Remb_, and edge-to-edge nanoparticle spacing _Dee_ . The output is one of the colour values R, G, or B. Our total simulation dataset consists of 770 datapoints. To optimize the use of DL, we need first to find the most ideal DNN architecture: the number hidden layers (HLs) and the number of nodes in each HL that best models our dataset. N-fold Cross Validation (CV) <sup>20</sup> is a process where the data is separated into N subsets. A DNN is trained using N-1 of the subsets. The Nth subset is used for testing and the error is recorded. This process is repeated N times so that each subset is used for testing. The error of a given DNN architecture is the average error from the N DNNs on the test sets. Ten-fold CV is applied to DNNs with HL number ranging from 1 to 10, and nodes per HL ranging from 4 to 72. We simplify this process by only making DNNs with equal numbers of nodes per HL. Seeing as each DNN outputs only one value (be it R, G, or B), this process is repeated for each colour component. To find an ideal DNN architecture we decided to find one with a minimum sum of normalized Mean Square Errors (MSEs):   min( _RMSE_ ) min( _BMSE_ ) min( _GMSE_ )  (1) _<u>RMSE</u>_ + _<u>BMSE</u>_ + _<u>GMSE</u>_  min( _RMSE_ ) min( _BMSE_ ) min( _GMSE_ )  _<u>MSE</u>_ _R_ _MSE_ _<u>B</u>_ _<u>MSE</u>_  min min( _<u>RMSERMSE</u>_ ) + min( _<u>BMSEBMSE</u>_ ) + min( _<u>GMSEG</u>_ + _<u>MSE</u>_ + _<u>G</u>_ _<u>MSE</u>_ _B_ _MSE_ _MSE_ where _RMSE_, _GMSE_, and _BMSE_ are the mean squared error for the R, G and B values respectively. We also want a DNN that uses a minimal number of HLs and nodes, in order to avoid over-fitting and long training times. Because of the large number of DNNs trained in the CV process, we made use of the SOSCIP GPU cluster <sup>21</sup> where we could train 4 DNNs consecutively on a single node consisting of 4 GPUs. The DNN codes were written using TensorFlow <sup>22</sup> and the weights of the DNNs were optimized using an Adam Optimizer <sup>23</sup> . Figure 3 shows the normalized MSE sum as a function of nodes per HL for all of HLs considered. We see that the error plateaus for five or more HLs, after 40 nodes per HL. Beyond this point, the DNNs all have similar accuracies. Because of this, the five HL DNN with 40 nodes per HL, as sketched in Fig. 4(a), was chosen to model the simulation dataset. A node in a hidden layer will receive as inputs the outputs from a previous layer, as shown in Fig. 4(b). The node performs a linear transformation on the inputs: ( _n_ −1)) = _b_ ( _n_ ) + ∑ _a_ ( _n_ ) _x_ ( _n_ ( _n_ ( _n_ _j_ ( _n_ ) _i_ (2) _f_ ( x ( _n_ −1)) = _bj_ ( _n_ ) + ∑ _ai_ (, _nj_ ) _xi_ ( _n_ _i_ _i_ (, _nj_ ) _xi_ ( _n_ −1) _i_, _j_ where _ai_ (, _nj_ ) is the weight of the _jth_ node in the _nth_ hidden layer applied to the _ith_ input, and _bj_ ( _n_ ) is the bias of the _jth_ node in the _n_ <sup>_th_</sup> hidden layer. The output of this node is given by the rectified linear activation function: (, _nj_ ) is the weight of the _jth_ node in the _nth_ hidden layer applied to the _ith_ input, and _bj_ ( where _ai_ (, _nj_ _xj_ ( _n_ ) = max( _f_ ( x ( _n_ −1)), 0) (3) The training process involves adjusting the weights _ai_ (, _nj_ ) and the biases _bj_ ( _n_ ) to minimize the error on the train ing set. This DNN was trained using 90% of the available data. The remaining randomly selected 10% not used in the training process was used for testing. (, _nj_ ) and the biases _bj_ ( The training process involves adjusting the weights _ai_ (, _nj_ Figure 3. Weighted sum of the MSE for different DNN architectures for the simulation dataset. Figure 4. ( a ) Sketch of the DNN used on the simulation dataset. ( b ) The _j_ <sup>_th_</sup> hidden layer node of the _n_ <sup>_th_</sup> hidden layer. Figure 5(a) shows a palette of some of the colours used in the test set, where the calculated colours from the FDTD simulations are shown on the left and the DNN predicted colours are shown on the right for the same geometric parameters. To the right of the colour pair in Fig. 5(a) we report the corresponding Δ _E_ value <sup>24</sup> which is dimensionless and provides a quantitative measure of the difference between the two colours: Δ _E_ = ( _L_ 1 - _L_ 2)2 + ( _a_ 1 - _a_ 2)2 + ( _b_ 1 - _b_ 2)2 (4) where _Li_, _ai_, and _bi_ (i = 1, 2) are the colour coordinates in an alternate colour space, calculated from the RGB values <sup>13</sup> . For reference, a Δ _E_ of 1 is the threshold of a colour difference that is just perceptible to the human eye, and 6–7 (as a subjective threshold) is often deemed acceptable in commercial practice. In the test set of 77 colours, only 8 surpass a Δ _E_ of 7. For example, the penultimate block in Fig. 5(a) yields Δ _E_ = 7.73, yet the colour difference is only somewhat noticeable. The mean Δ _E_ of the entire test set is 2.61. The colour palette and corresponding Δ _E_ demonstrate the predictive accuracy of our model. Figure 5(b) compares the RGB values of FDTD vs DNN for the entire test set. Each circle represents a single datapoint, where the _x_ -axis is the R, G, or B value of the FDTD calculation, and the _y_ -axis is the corresponding R, G, or B value predicted by the DNN. The colour of the circle is either red, green or blue, corresponding to which RGB component that datapoint represents. The ideal linear model ( _y_ = _x_ ) is also displayed for convenience as a solid line. The mean percent error on the test set for R, G, and B are 0.48%, 0.67%, and 3.31% respectively, showing that the DNN chosen predicts all three value with very good accuracy. The larger error for the blue is likely due to the relative lack of representation of low blue values in the dataset. The DNN was not given enough training data with blue values below 0.6 where we clearly see the most error in Fig. 5(b). We can see from the plot that numerical values are well predicted from the model. Figure 5. FDTD simulation colours vs. DNN prediction. ( a ) Comparison between FDTD simulation colours (left) and DNN predicted colours (right) on the test set with corresponding Δ _E_ values. ( b ) Comparison between RGB values from the simulation results ( _x_ -axis) and the DNN predictions ( _y_ -axis) along with the ideal linear model ( _y_ = _x_ ). The colour of each circle represents whether the point represents an R (red), G (green), or B (blue) datapoint. It is worth noting that this model can only be used for interpolation and very small extrapolations. Large extrapolations can lead to nonphysical results. Over the range spanned by our data, this model can predict the colours with high accuracy (less than 4% error) without having to run additional simulations. Using laser machining data. In this section we repeat the above analysis for the laser parameter dataset. This dataset consisted originally of 10 laser parameters and 1841 datapoints. We eliminated 6 laser parameters due to lack of variation and effect on colour, which left 4 laser parameters under consideration: laser scanning speed, hatch spacing, number of laser pulses per burst, and laser fluence. Physically these parameters affect the total accumulated fluence on the metal surface. This was found empirically to be the key factor in colour production, so that different laser parameters with the same total accumulated fluence produced very similar colours <sup>11</sup> . While eliminating laser parameters, we also removed the corresponding datapoints to ensure that the training process was not affected. The number of datapoints in our updated set is 1745. We use the process outlined in the previous section to find the ideal DNN for this dataset. We choose our model to be a DNN with 3 HLs and 60 nodes per hidden layer. We split our data randomly into two sets: 90% for training and 10% for testing. We again display a comparison between some of the DNN predicted colours and those measured in the lab in Fig. 6(a) along with the Δ _E_ for the test set. The error is higher for this dataset in comparison to the simulation dataset. There is a much more complicated relationship between laser parameters and the RGB of the resulting colour. Despite this, the DNN has found enough relationships to be able to predict a colour within a given range of the measured colours, resulting in a mean Δ _E_ of 5.27 for the test set, where 41 of the 175 test datapoints are greater than 7. We can see a few of these in Fig. 6(a), as the second, third, fifth, and last blocks from the top. The first and third, although having high Δ _E_ values, are still subjectively well predicted. The last block however is the result of a large difference (greater than 0.1) in the R, G and B values. Large errors like these are rare but should be expected in a large test set such as this, where there will likely be points that are not well represented in the training data. This means that the DNN is not as well trained in these regions of parameter space. In Fig. 6(b) we display the comparison of RGB values for the entire test set. The mean percent error for R, G and B are 4.29%, 4.88%, and 5.47% respectively. We see that this DNN predicts each colour reasonably well. However we point out that care should be taken when applying DL to the prediction of subjective results – here, even a small error can change the colour perceptively. Implicit parameters like temperature or humidity deviations in a laboratory environment may also affect the colour, in addition to the explicit parameters such as laser settings considered here. In commercial setting, the time of day may be relevant due to workplace traffic or machinery vibrations. The relationship between these implicit effects and the resulting colour is very complicated. Though not tracked in our work, these are all parameters that can used as additional inputs into a deep learning model. Inverse Design Prediction from Colours Using simulation data. In this section we solve the inverse problem: we find the simulation geometries that are required to produce given colours, where the RGB values are now the inputs. Solving the inverse problem is not a trivial task as the solution may not be unique. Multiple geometries may produce the same colour so a DNN cannot be directly trained to predict geometric parameters from a given colour. Methods to get around the uniqueness problem have been suggested, including (1) training the inputs using back-propagation with the Figure 6. Laser parameter colours vs. DNN prediction. ( a ) Comparison between the measured colours (left) and DNN predicted colours (right) with corresponding Δ _E_ values. ( b ) Comparison between RGB values from the experimental measurements ( _x_ -axis) and the DNN predictions ( _y_ -axis) along with the ideal linear model ( _y_ = _x_ ). The colour of each circle represents whether the point represents an R (red), G (green), or B (blue) datapoint. weights of the DNN fixed <sup>7</sup>, (2) training the inverse DNN using the direct DNN <sup>8,10</sup>, and (3) applying reinforcement learning <sup>9</sup> . Here we introduce a more straightforward iterative multivariable inverse design approach, which to our knowledge remains unreported. Our approach involves training _n_ neural networks; { _DNN_ 1, _DNN_ 2, …, _DNNn_ }, where _n_ is the number of outputs (in this case our geometric parameters), given by { _O_ 1, _O_ 2, …, _On_ }. _DNN_ 1 is trained to calculate output _O_ 1 from the desired inputs (in this case the RGB values) and the remainder of the outputs { _O_ 2, …, _On_ }. This means that the remainder of the outputs act as inputs for _DNN_ 1 alongside the desired RGB values. _DNN_ 2 is trained to calculate _O_ 2 using the desired inputs and the remainder of the outputs { _O_ 1, _O_ 3, …, _On_ }, and so on. Once all _n_ DNNs are trained, we can calculate the set of outputs in an iterative procedure. We first calculate _On_ using the _DNNn_ with the desired inputs and the remaining outputs (which can be initialized as random numbers or the mean values of the dataset). Next we calculate _On_ −1 using _DNNn_ −1 with the desired inputs and the remaining outputs including the updated _On_ . This is repeated for all outputs. This process can be repeated until the values of the outputs have relaxed to a final value. This method is very simple in implementation since it requires no special treatment of the DNNs unlike inverse design methods suggested in previous studies <sup>7–10</sup> . In the case of our simulation geometry, _n_ = 3. _DNN_ 1 is trained to predict the particle spacing from R, G, B, radius, and embedding. _DNN_ 2 predicts the embedding from R, G, B, radius, and spacing. _DNN_ 3 predicts the radius from R, G, B, embedding, and spacing. After training these three DNNs, we can then calculate the three geometric parameters using the iterative procedure outlined in Fig. 7(a). First the radius and embedding are set as the mean radius and mean embedding of the dataset, providing a good starting place for the parameter search. We then calculate the spacing using our spacing DNN. The calculated spacing value and mean radius value are used to predict the embedding. This embedding and the spacing are then used to calculate the radius. We then repeat these steps until the geometric parameters relax to their final values. This generally this takes 10–20 iterations, however, this may vary depending on the colours themselves. If the colours are not well represented in the training data, the number of iterations will increase. As sketched in Fig. 7(b), we use 5 HLs with 40 nodes per hidden layer for our backwards DNNs. A sample colour palette of our test dataset is shown in Fig. 8(a) where on the left we display a set of desired colours, and on the right we display the colours generated by the output geometric parameters. We see an agreement between the input colour, and that generated by our iterative method. We also see Δ _E_ values within the same range as the direct prediction with a mean of 2.83. The comparison between input and output RGB values are given in Fig. 8(b) where the percent error between the input and output colours are 0.83%, 1.34%, and 2.12% for R, G and B respectively. The slight increase in error between the direct and inverse prediction is expected due to error accumulation between the backward DNNs used to calculate the geometries and the forward DNN used for testing the geometries. The geometries output by the relaxation are not guaranteed to provide the closest possible colour to the input. They depend on the initial inputs ( _O_ 1 and _O_ 2 in Fig. 7). Multiple initialized inputs can be used to find multiple possible geometries, and the one which has the least error between input and output colours should be used. In traditional optimization methods such as gradient based methods and genetic algorithms, solutions are iteratively sought by trying to minimize an error function. Depending on the complexity of the problem, this can require hundreds or thousands of iterations where at least one simulation must be run for each iteration, Figure 7. ( a ) Iterative multivariable inverse design algorithm for the prediction of geometric parameters from colours. We input the desired R, G, B and initial (random or mean) values for the radius and embedding. We then iterate through DNN calculations for spacing, embedding, radius until the last iteration. ( b ) DNN calculation iteration procedure. Figure 8. Geometric parameter inverse DNN prediction. ( a ) Comparison between the input test colours (left) and the colours produced by the output geometric parameters (right) with corresponding Δ _E_ values. ( b ) Comparison between input RGB values ( _x_ -axis) and the values produced by the output geometric parameters ( _y_ -axis) along with the ideal linear model ( _y_ = _x_ ). The colour of each circle represents whether the point represents an R (red), G (green), or B (blue) datapoint. and all this to obtain only one optimized solution. The multivariable inverse design method also requires a large number of simulations upfront for data acquisition, the number of which may be comparable to what is required for an optimization method. However, once these data are used to train the DNNs, it is then possible to obtain a large number of optimized solutions very rapidly. In this study, we seek to find many optimized solutions satisfying different constraints using an existing simulation dataset. Thus using DNNs – which take less than a second per prediction, versus hours on a super computer for a single simulation iteration – wins over traditional optimization. Figure 9. Laser parameter inverse DNN prediction. ( a ) Comparison between the input test colours (left) and the colours produced by the output laser parameters (right) with corresponding Δ _E_ values. ( b ) Comparison between input RGB values ( _x_ -axis) and the values produced by the output laser parameters ( _y_ -axis) along with the ideal linear model ( _y_ = _x_ ). The colour of each circle represents whether the point represents an R (red), G (green), or B (blue) datapoint. Using laser machining data. The laser parameter dataset was obtained from the Royal Canadian Mint, who uses this colouring technique to create artwork on silver <sup>11</sup> . The colours for this artwork are chosen carefully using a palette of known experimentally-obtained colours. The laser is then programmed with the corresponding laser parameters to create this colour on the metal surface. This process is restricted to the list of known colours. However, by using DNNs to predict the laser parameters required to produce a given desired colour, this process can be simplified and laser parameters can be predicted for colours that are not within the known list. We use the iterative multivariable inverse design procedure introduced in the previous section with _n_ = 4 for the four laser parameters that we want to predict (the same ones as used for Fig. 6). We train our four backward DNNs with 90% of the data and test it with the other 10%. These DNNs have three HLs and 60 nodes per HL. We use the direct prediction DNN to calculate the colour from the predicted laser parameters. We show some of the colours output in Fig. 9(a) and display the numerical results in Fig. 9(b). The percent error between the input and output colours are 5.50%, 4.57%, and 6.09% for R, G, and B, respectively, and the mean of Δ _E_ is 6.31, which remains less than our limit of 7. Numerically these errors are small and result in the linear pattern displayed in Fig. 9(b). However, these errors are large enough that some colours are switched in the process. For example, the fifth box from the top in the palette of Fig. 9(a) reveals a change from the desired grey to the output purple. Such changes are caused by differences in the RGB values of the order of 0.07. These differences should be expected due to the accumulation of error in experiment, the backward DNNs, and the forward DNN used to test the backward DNNs. Despite the error in some of the colours, the majority of them are accurately predicted. Conclusion We have applied deep learning to plasmonic metal colouration through (1) direct prediction of colours and (2) inverse prediction of parameters required for a desired colour, using both simulation and experimental data sets, with good prediction accuracy. The direct prediction of colours from new parameters means that we increase the palette of available colours without needing to run further simulations or experiments. The Royal Canadian Mint has started using laser colouring on silver <sup>11</sup> where the appropriate colours are chosen manually from the database. The inverse prediction can automate this process by finding the laser parameters (that are not necessarily in the database) that best match the desired colour. This method allows for the fixing of certain input parameters, like scanning speed or laser fluence. Fixing the scanning speed is of particular interest, as with higher scanning speeds, a surface can be coloured in less time. The direct prediction can be expanded for industrial applications where environments (temperature, humidity, vibrations, etc) are much less controlled. Environmental factors can be taken into account in the training of the deep neural networks and therefore the output colour of a laser machined surface can be predicted with higher accuracy. Finally, the relaxation technique we developed for the inverse prediction has numerous potential applications in nanophotonics <sup>14</sup> . Since it is much easier to implement than advanced methods such as reinforcement learning, and faster than traditional optimization techniques like gradient based methods, it is more accessible to those new to the field of deep learning. Data Availability The datasets generated and analyzed during the current study are available from the corresponding authors on reasonable request. References 1. LeCun, Y., Bengio, Y. & Hinton, G. Deep learning. _Nat._ 521 [, 436–444, https://doi.org/10.1038/nature14539 (2015).](https://doi.org/10.1038/nature14539) 2. Modarres, M. H. _et al_ . Neural Network for Nanoscience Scanning Electron Microscope Image Recognition. _Sci. Reports_ 7, 13282, [https://doi.org/10.1038/s41598-017-13565-z (2017).](https://doi.org/10.1038/s41598-017-13565-z) 3. Rivenson, Y. _et al_ . Deep learning microscopy. _Opt._ 4 [, 1437–1443, https://doi.org/10.1364/OPTICA.4.001437 (2017).](https://doi.org/10.1364/OPTICA.4.001437) 4. Ma, W., Cheng, F. & Liu, Y. Deep-Learning-Enabled On-Demand Design of Chiral Metamaterials. _ACS Nano_ 12 [, 6326–6334, https://](https://doi.org/10.1021/acsnano.8b03569) [doi.org/10.1021/acsnano.8b03569 (2018).](https://doi.org/10.1021/acsnano.8b03569) 5. Malkiel, I. _et al_ . Plasmonic nanostructure design and characterization via Deep Learning. _Light. Sci. & Appl._ 7 [, 60, https://doi.](https://doi.org/10.1038/s41377-018-0060-7) [org/10.1038/s41377-018-0060-7 (2018).](https://doi.org/10.1038/s41377-018-0060-7) 6. Pilozzi, L., Farrelly, F. A., Marcucci, G. & Conti, C. Machine learning inverse problem for topological photonics. _Commun. Phys._ 1, [57, https://doi.org/10.1038/s42005-018-0058-8 (2018).](https://doi.org/10.1038/s42005-018-0058-8) 7. Peurifoy, J. _et al_ . Nanophotonic particle simulation and inverse design using artificial neural networks. _Sci. Adv._ 4 [, eaar4206, https://](https://doi.org/10.1126/sciadv.aar4206) [doi.org/10.1126/sciadv.aar4206 (2018).](https://doi.org/10.1126/sciadv.aar4206) 8. Liu, D., Tan, Y., Khoram, E. & Yu, Z. Training Deep Neural Networks for the Inverse Design of Nanophotonic Structures. _ACS_ _Photonics_ 5 [, 1365–1369, https://doi.org/10.1021/acsphotonics.7b01377 (2018).](https://doi.org/10.1021/acsphotonics.7b01377) 9. Sajedian, I., Badloe, T. & Rho, J. Finding the best design parameters for optical nanostructures using reinforcement learning. _arXiv:1810.10964 [physics_ ] ArXiv: 1810.10964 (2018). 10. Liu, Z., Zhu, D., Rodrigues, S. P., Lee, K.-T. & Cai, W. Generative Model for the Inverse Design of Metasurfaces. _Nano Lett._ 18, [6570–6576, https://doi.org/10.1021/acs.nanolett.8b03171 (2018).](https://doi.org/10.1021/acs.nanolett.8b03171) 11. Guay, J.-M. _et al_ . Laser-induced plasmonic colours on metals. _Nat. Commun._ 8 [, 16095, https://doi.org/10.1038/ncomms16095 (2017).](https://doi.org/10.1038/ncomms16095) 12. Guay, J.-M. _et al_ . Topography Tuning for Plasmonic Color Enhancement via Picosecond Laser Bursts. _Adv. Opt. Mater._ 6, 1800189, [https://doi.org/10.1002/adom.201800189 (2018).](https://doi.org/10.1002/adom.201800189) [13. Math|EasyRGB. Available at: https://www.easyrgb.com/en/math.php. (Accessed: 24th October 2018).](https://www.easyrgb.com/en/math.php) 14. Molesky, S. _et al_ . Inverse design in nanophotonics. _Nat. Photonics_ 12 [, 659, https://doi.org/10.1038/s41566-018-0246-9 (2018).](https://doi.org/10.1038/s41566-018-0246-9) 15. Yee, K. Numerical solution of initial boundary value problems involving maxwell’s equations in isotropic media. _IEEE Transactions_ _on Antennas Propag._ 14 [, 302–307, https://doi.org/10.1109/TAP.1966.1138693 (1966).](https://doi.org/10.1109/TAP.1966.1138693) 16. Calà Lesina, A., Vaccari, A., Berini, P. & Ramunno, L. On the convergence and accuracy of the FDTD method for nanoplasmonics. _Opt. Express_ 23 [, 10481–10497, https://doi.org/10.1364/OE.23.010481 (2015).](https://doi.org/10.1364/OE.23.010481) 17. Prokopidis, K. P. & Zografopoulos, D. C. A Unified FDTD/PML Scheme Based on Critical Points for Accurate Studies of Plasmonic Structures. _J. Light. Technol._ 31 [, 2467–2476, https://doi.org/10.1109/JLT.2013.2265166 (2013).](https://doi.org/10.1109/JLT.2013.2265166) 18. Vial, A., Laroche, T., Dridi, M. & Le Cunff, L. A new model of dispersion for metals leading to a more accurate modeling of plasmonic structures using the FDTD method. _Appl. Phys. A_ 103 [, 849–853, https://doi.org/10.1007/s00339-010-6224-9 (2011).](https://doi.org/10.1007/s00339-010-6224-9) [19. BGQ - SciNetWiki. Available at: https://wiki.scinet.utoronto.ca/wiki/index.php/BGQ. (Accessed: 24th October 2018).](https://wiki.scinet.utoronto.ca/wiki/index.php/BGQ) 20. James, G., Witten, D., Hastie, T. & Tibshirani, R. _An Introduction to Statistical Learning: with Applications in R_ . Springer Texts in Statistics (Springer-Verlag, New York, 2013). [21. SOSCIP GPU - SciNet Users Documentation. Available at: https://docs.scinet.utoronto.ca/index.php/SOSCIP_GPU. (Accessed:](https://docs.scinet.utoronto.ca/index.php/SOSCIP_GPU) 24th October 2018). [22. TensorFlow. Available at: https://www.tensorflow.org/. (Accessed: 24th October 2018).](https://www.tensorflow.org/) 23. Kingma, D. P. & Ba, J. Adam: A Method for Stochastic Optimization. _arXiv:1412.6980 [cs_ ] ArXiv: 1412.6980 (2014). 24. Guay, J.-M. _et al_ . Passivation of Plasmonic Colors on Bulk Silver by Atomic Layer Deposition of Aluminum Oxide. _Langmuir_ 34, [4998–5010, https://doi.org/10.1021/acs.langmuir.8b00210 (2018).](https://doi.org/10.1021/acs.langmuir.8b00210) Acknowledgements SOSCIP is funded by the Federal Economic Development Agency of Southern Ontario, the Province of Ontario, IBM Canada Ldt., Ontario Centres of Excellence, Mitacs and Ontario academic member institutions. The authors thank SOSCIP for their computational resources and financial support. We acknowledge the computational resources and support from Scinet. We acknowledge financial support from the National Sciences and Engineering Research Council of Canada, and the Canada Research Chairs program. The authors also thank the Royal Canadian Mint for the use of their laser lab and the data acquired from it. We would like to thank Graham Killaire, Meagan Ginn, Guillaume Côté, and Martin Charron for their contributions in creating the colour palettes at the Royal Canadian Mint. Author Contributions A.C.L. proposed the application of machine learning for colour prediction and inverse design. J.B. conducted the deep learning study including data structuring, coding the deep neural networks, and developing the inverse design method under the supervision of A.C.L. and L.R. J.B. and A.C.L. created the figures. A.C.L. designed and conducted the FDTD simulations under the supervision of P.B. and L.R., J.-M.G. conducted the experiments and supplied the experimental data under the supervision of A.W. and P.B., J.B., A.C.L. and L.R. wrote the manuscript, and J.-M.G., A.W. and P.B. were involved in the editing process. Additional Information Competing Interests: The authors declare no competing interests. Publisher’s note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the [copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2019

섹션 본문 55문단 · 54,504자

(제목 없음)

1Picosecond laser pulses have been used as a surface colouring technique for noble metals, where the colours result from plasmonic resonances in the metallic nanoparticles created and redeposited on the surface by ablation and deposition processes. This technology provides two datasets which we use to train artificial neural networks, data from the experiment itself (laser parameters vs. colours) and data from the corresponding numerical simulations (geometric parameters vs. colours). We apply deep learning to predict the colour in both cases. We also propose a method for the solution of the inverse problem -wherein the geometric parameters and the laser parameters are predicted from colour -using an iterative multivariable inverse design method.Deep learning (DL) refers to a sub-field of Machine Learning and Artificial Intelligence where multi-layered artificial neural networks, or deep neural networks (DNNs), are used for high accuracy predictions and classifications. Deep learning has been used in speech recognition, image classification, vision, and pattern extraction, to name a few examples 1 . Its application in photonics is recent. For example, DL has been used to classify scanning electron microscope (SEM) images of nanostructures 2 , to increase the resolution of microscopy 3 , and for the design of nanophotonic structures 4-10 . DL models can be used to find patterns in complicated datasets and are particularly useful when large pre-calculated or pre-measured datasets are available for training. Both simulations and experiments in nanophotonics can provide the large datasets required for DL. For example, geometric parameter sweeps are used in plasmonics to optimize the design of nanostructures, while parameters are tuned in experiments to produce the best nanofabrication results. The exploration of the parameter space based on trials is time-consuming. Using data from parameter sweeps, one can train a DL model to predict the experimental or simulation outcome for a new set of input parameters, thus avoiding the need to run many trials of the actual experiment or computation. Further, in an industrial setting where the environment is not well controlled, environmental parameters can be tracked and can become additional inputs of a deep learning application.An application which may benefit from DL is the plasmonic colouration of metal surfaces via laser machining. By controlling different laser parameters such as scanning speed, hatch spacing, burst number, etc., laser-machined surfaces (Fig. 1(a)) with a large range of colours (Fig. 1(b)) were created 11,12 . Finite-difference time-domain (FDTD) simulations were performed based on the geometries inspired by the experimental SEM images and the measured nanoparticle distributions, and these simulations were able to explain experimental trends. This includes finding that the colour transition from blue to yellow occurs when the inter-particle spacing for nanoparticles of radius R = 35 nm is progressively increased. The nanoparticle distribution is modelled as a periodic hexagonal lattice of single-sized nanoparticles embedded into a metal surface(Fig. 1(c)), and the output of the simulation is a reflection spectrum from which the colour is rendered to the Red-Green-Blue (RGB) colour scale 13(Fig. 1(d)). Both experiments and simulations contain challenges which can be addressed by DL. On the experimental side, the colours generated by a new set of laser parameters must be determined empirically through trial and error. On the computational side, the requirement for accuracy means that a large-scale FDTD simulation has to be run in order to find the colour corresponding to a new set of geometric parameters, and this is time-consuming.In this paper we apply DL to the direct prediction of new colours using both the experimental and simulation data. We predict colours from laser parameters by leveraging the dataset linking laser parameters to real, physical colours. We also predict colours from nanoparticle geometries by using the dataset linking the simulation

2Picosecond laser pulses have been used as a surface colouring technique for noble metals, where the colours result from plasmonic resonances in the metallic nanoparticles created and redeposited on the surface by ablation and deposition processes. This technology provides two datasets which we use to train artificial neural networks, data from the experiment itself (laser parameters vs. colours) and data from the corresponding numerical simulations (geometric parameters vs. colours). We apply deep learning to predict the colour in both cases. We also propose a method for the solution of the inverse problem -wherein the geometric parameters and the laser parameters are predicted from colour -using an iterative multivariable inverse design method.

3Deep learning (DL) refers to a sub-field of Machine Learning and Artificial Intelligence where multi-layered artificial neural networks, or deep neural networks (DNNs), are used for high accuracy predictions and classifications. Deep learning has been used in speech recognition, image classification, vision, and pattern extraction, to name a few examples 1 . Its application in photonics is recent. For example, DL has been used to classify scanning electron microscope (SEM) images of nanostructures 2 , to increase the resolution of microscopy 3 , and for the design of nanophotonic structures [4][5][6][7][8][9][10] . DL models can be used to find patterns in complicated datasets and are particularly useful when large pre-calculated or pre-measured datasets are available for training. Both simulations and experiments in nanophotonics can provide the large datasets required for DL. For example, geometric parameter sweeps are used in plasmonics to optimize the design of nanostructures, while parameters are tuned in experiments to produce the best nanofabrication results. The exploration of the parameter space based on trials is time-consuming. Using data from parameter sweeps, one can train a DL model to predict the experimental or simulation outcome for a new set of input parameters, thus avoiding the need to run many trials of the actual experiment or computation. Further, in an industrial setting where the environment is not well controlled, environmental parameters can be tracked and can become additional inputs of a deep learning application.

4An application which may benefit from DL is the plasmonic colouration of metal surfaces via laser machining. By controlling different laser parameters such as scanning speed, hatch spacing, burst number, etc., laser-machined surfaces ( Fig. 1(a)) with a large range of colours ( Fig. 1(b)) were created 11,12 . Finite-difference time-domain (FDTD) simulations were performed based on the geometries inspired by the experimental SEM images and the measured nanoparticle distributions, and these simulations were able to explain experimental trends. This includes finding that the colour transition from blue to yellow occurs when the inter-particle spacing for nanoparticles of radius R = 35 nm is progressively increased. The nanoparticle distribution is modelled as a periodic hexagonal lattice of single-sized nanoparticles embedded into a metal surface ( Fig. 1(c)), and the output of the simulation is a reflection spectrum from which the colour is rendered to the Red-Green-Blue (RGB) colour scale 13 (Fig. 1(d)). Both experiments and simulations contain challenges which can be addressed by DL. On the experimental side, the colours generated by a new set of laser parameters must be determined empirically through trial and error. On the computational side, the requirement for accuracy means that a large-scale FDTD simulation has to be run in order to find the colour corresponding to a new set of geometric parameters, and this is time-consuming.

5In this paper we apply DL to the direct prediction of new colours using both the experimental and simulation data. We predict colours from laser parameters by leveraging the dataset linking laser parameters to real, physical colours. We also predict colours from nanoparticle geometries by using the dataset linking the simulation geometries to computed colours. We then apply DNNs to aid in the solution of the inverse design problem, whereby inputting colours, the model returns appropriate geometric or laser parameters. In solving the inverse design problem, we use an iterative multivariable inverse design method in which the inverse solution is found by iteratively solving for individual outputs. To the best of our knowledge, this is the first time this method has been reported. Traditional optimization and inverse design techniques (e.g. genetic algorithms or gradient-based methods) have been applied to photonics applications 14 . These methods would be time consuming for the large-scale simulations, and costly to implement in the lab. This is why we highlight the importance of using the data that has already been accumulated to train efficient DL models.

Direct prediction of Colours

6Using simulation data. In this section we use DNNs for the prediction of colours from nanoparticle geometries using the FDTD dataset. The FDTD simulations were run to calculate the reflectance spectra from single-sized silver nanoparticle distributions embedded into flat silver surfaces.

7Statistical analysis of SEM images of laser-coloured silver surfaces show a bimodal distribution of nanoparticle sizes, which are referred to as medium nanoparticles (10 < R m < 75 nm) with an average radius of ≈35 nm, and small nanoparticles (R s < 10 nm) 11,12 . Simulations have shown that the effect of the small nanoparticles averages out, thus they do not contribute significantly to the colours observed in experiments 11,12 . Indeed, the experimental palette (see Fig. 1(b)) can be reproduced with single-sized nanoparticles of radius 35 nm (see Fig. 1(d)). For this reason, we use the single-sized nanoparticle data for this study.

8The particles are arranged in a hexagonal lattice in the x-z plane as shown in Fig. 2, where only a unit cell is simulated and periodic boundaries are placed in the x-and z-directions. We excited the system with a broadband plane wave pulsed signal which allows us to capture the full visible spectrum (broadband simulation) with a single run of the code. The incoming pulse was z-polarized and propagated in the y-direction, which is truncated by Convolutional Perfectly Matched Layers (CPMLs). Simulations are run with particle radii R ranging from 5 nm to 100 nm. The embedding depth R emb represents the percentage of the radius embedded into the silver surface, and it ranges from 30 to 100%, where an embedding of 100% means that we simulate a hemisphere. The inter-particle spacing D cc describes the center-to-center spacing between the nanoparticles. To remove correlation between spacing and radius, we also define an edge-to-edge spacing D ee = D cc − 2R which ranges from 5 nm to 80 nm. The simulation domain was discretized using a uniform space step and a cubic Yee cell 15 (dx = dy = dz). We used a space-step of dx = 0.125 nm for R = 5 to 10 nm, dx = 0.25 nm for R = 15 to 20 nm, dx = 0.5 nm for R = 25 to 45 nm and dx = 1 nm for R = 50 to 100 nm. The total number of Yee cells depends on the space step and geometry but is on the order of 10 8 . We run convergence tests to ensure sufficient accuracy 16 . The optical parameters of silver were modelled by the Drude + 2 Critical Points model 17,18 . To simulate the metal substrate as a half plane, we used a 100 nm thick silver layer, at the end of which there was zero transmittance; this layer was terminated by a CPML. The length of the y-dimension was chosen such that the reflectance is computed in the far-field region, which is at least 100 nm from the top of the nanoparticles. The reflectance spectra were computed over the optical wavelength range of 350-750 nm and were converted to RGB values. Simulations were performed using an in-house 3D-FDTD parallel code 16 running on the IBM BlueGene/Q supercomputer (64 k cores) 19 operated by SOSCIP at Scinet, University of Toronto, Canada.

9For the direct prediction DL application, the input is the simulation geometries which are parameterized by nanoparticle radius R, embedding depth R emb , and edge-to-edge nanoparticle spacing D ee . The output is one of the colour values R, G, or B. Our total simulation dataset consists of 770 datapoints.

10To optimize the use of DL, we need first to find the most ideal DNN architecture: the number hidden layers (HLs) and the number of nodes in each HL that best models our dataset. N-fold Cross Validation (CV) 20 is a process where the data is separated into N subsets. A DNN is trained using N-1 of the subsets. The Nth subset is used for testing and the error is recorded. This process is repeated N times so that each subset is used for testing. The error of a given DNN architecture is the average error from the N DNNs on the test sets.

11Ten-fold CV is applied to DNNs with HL number ranging from 1 to 10, and nodes per HL ranging from 4 to 72. We simplify this process by only making DNNs with equal numbers of nodes per HL. Seeing as each DNN outputs only one value (be it R, G, or B), this process is repeated for each colour component. To find an ideal DNN architecture we decided to find one with a minimum sum of normalized Mean Square Errors (MSEs):

12where R MSE , G MSE , and B MSE are the mean squared error for the R, G and B values respectively. We also want a DNN that uses a minimal number of HLs and nodes, in order to avoid over-fitting and long training times. Because of the large number of DNNs trained in the CV process, we made use of the SOSCIP GPU cluster 21 where we could train 4 DNNs consecutively on a single node consisting of 4 GPUs. The DNN codes were written using TensorFlow 22 and the weights of the DNNs were optimized using an Adam Optimizer 23 . Figure 3 shows the normalized MSE sum as a function of nodes per HL for all of HLs considered. We see that the error plateaus for five or more HLs, after 40 nodes per HL. Beyond this point, the DNNs all have similar accuracies. Because of this, the five HL DNN with 40 nodes per HL, as sketched in Fig. 4(a), was chosen to model the simulation dataset.

13A node in a hidden layer will receive as inputs the outputs from a previous layer, as shown in Fig. 4(b). The node performs a linear transformation on the inputs:

14where a i j n , ( ) is the weight of the j th node in the n th hidden layer applied to the i th input, and b j n ( ) is the bias of the j th node in the n th hidden layer. The output of this node is given by the rectified linear activation function:

15The training process involves adjusting the weights a i j n , ( ) and the biases b j n ( ) to minimize the error on the training set. This DNN was trained using 90% of the available data. The remaining randomly selected 10% not used in the training process was used for testing. www.nature.com/scientificreports www.nature.com/scientificreports/ Figure 5(a) shows a palette of some of the colours used in the test set, where the calculated colours from the FDTD simulations are shown on the left and the DNN predicted colours are shown on the right for the same geometric parameters. To the right of the colour pair in Fig. 5(a) we report the corresponding ΔE value 24 which is dimensionless and provides a quantitative measure of the difference between the two colours: where L i , a i , and b i (i = 1, 2) are the colour coordinates in an alternate colour space, calculated from the RGB values 13 . For reference, a ΔE of 1 is the threshold of a colour difference that is just perceptible to the human eye, and 6-7 (as a subjective threshold) is often deemed acceptable in commercial practice. In the test set of 77 colours, only 8 surpass a ΔE of 7. For example, the penultimate block in Fig. 5(a) yields ΔE = 7.73, yet the colour difference is only somewhat noticeable. The mean ΔE of the entire test set is 2.61. The colour palette and corresponding ΔE demonstrate the predictive accuracy of our model. Figure 5(b) compares the RGB values of FDTD vs DNN for the entire test set. Each circle represents a single datapoint, where the x-axis is the R, G, or B value of the FDTD calculation, and the y-axis is the corresponding R, G, or B value predicted by the DNN. The colour of the circle is either red, green or blue, corresponding to which RGB component that datapoint represents. The ideal linear model (y = x) is also displayed for convenience as a solid line. The mean percent error on the test set for R, G, and B are 0.48%, 0.67%, and 3.31% respectively, showing that the DNN chosen predicts all three value with very good accuracy. The larger error for the blue is likely due to the relative lack of representation of low blue values in the dataset. The DNN was not given enough training data with blue values below 0.6 where we clearly see the most error in Fig. 5(b). We can see from the plot that numerical values are well predicted from the model. www.nature.com/scientificreports www.nature.com/scientificreports/ It is worth noting that this model can only be used for interpolation and very small extrapolations. Large extrapolations can lead to nonphysical results. Over the range spanned by our data, this model can predict the colours with high accuracy (less than 4% error) without having to run additional simulations.

16Using laser machining data. In this section we repeat the above analysis for the laser parameter dataset.

17This dataset consisted originally of 10 laser parameters and 1841 datapoints. We eliminated 6 laser parameters due to lack of variation and effect on colour, which left 4 laser parameters under consideration: laser scanning speed, hatch spacing, number of laser pulses per burst, and laser fluence. Physically these parameters affect the total accumulated fluence on the metal surface. This was found empirically to be the key factor in colour production, so that different laser parameters with the same total accumulated fluence produced very similar colours 11 . While eliminating laser parameters, we also removed the corresponding datapoints to ensure that the training process was not affected. The number of datapoints in our updated set is 1745.

18We use the process outlined in the previous section to find the ideal DNN for this dataset. We choose our model to be a DNN with 3 HLs and 60 nodes per hidden layer.

19We split our data randomly into two sets: 90% for training and 10% for testing. We again display a comparison between some of the DNN predicted colours and those measured in the lab in Fig. 6(a) along with the ΔE for the test set. The error is higher for this dataset in comparison to the simulation dataset. There is a much more complicated relationship between laser parameters and the RGB of the resulting colour. Despite this, the DNN has found enough relationships to be able to predict a colour within a given range of the measured colours, resulting in a mean ΔE of 5.27 for the test set, where 41 of the 175 test datapoints are greater than 7. We can see a few of these in Fig. 6(a), as the second, third, fifth, and last blocks from the top. The first and third, although having high ΔE values, are still subjectively well predicted. The last block however is the result of a large difference (greater than 0.1) in the R, G and B values. Large errors like these are rare but should be expected in a large test set such as this, where there will likely be points that are not well represented in the training data. This means that the DNN is not as well trained in these regions of parameter space. In Fig. 6(b) we display the comparison of RGB values for the entire test set. The mean percent error for R, G and B are 4.29%, 4.88%, and 5.47% respectively. We see that this DNN predicts each colour reasonably well. However we point out that care should be taken when applying DL to the prediction of subjective results -here, even a small error can change the colour perceptively. Implicit parameters like temperature or humidity deviations in a laboratory environment may also affect the colour, in addition to the explicit parameters such as laser settings considered here. In commercial setting, the time of day may be relevant due to workplace traffic or machinery vibrations. The relationship between these implicit effects and the resulting colour is very complicated. Though not tracked in our work, these are all parameters that can used as additional inputs into a deep learning model.

Inverse Design prediction from Colours

20Using simulation data. In this section we solve the inverse problem: we find the simulation geometries that are required to produce given colours, where the RGB values are now the inputs. Solving the inverse problem is not a trivial task as the solution may not be unique. Multiple geometries may produce the same colour so a DNN cannot be directly trained to predict geometric parameters from a given colour. Methods to get around the uniqueness problem have been suggested, including (1) training the inputs using back-propagation with the www.nature.com/scientificreports www.nature.com/scientificreports/ weights of the DNN fixed 7 , (2) training the inverse DNN using the direct DNN 8,10 , and (3) applying reinforcement learning 9 . Here we introduce a more straightforward iterative multivariable inverse design approach, which to our knowledge remains unreported.

21Our Once all n DNNs are trained, we can calculate the set of outputs in an iterative procedure. We first calculate O n using the DNN n with the desired inputs and the remaining outputs (which can be initialized as random numbers or the mean values of the dataset). Next we calculate O n−1 using DNN n−1 with the desired inputs and the remaining outputs including the updated O n . This is repeated for all outputs. This process can be repeated until the values of the outputs have relaxed to a final value. This method is very simple in implementation since it requires no special treatment of the DNNs unlike inverse design methods suggested in previous studies [7][8][9][10] .

22In the case of our simulation geometry, n = 3. DNN 1 is trained to predict the particle spacing from R, G, B, radius, and embedding. DNN 2 predicts the embedding from R, G, B, radius, and spacing. DNN 3 predicts the radius from R, G, B, embedding, and spacing. After training these three DNNs, we can then calculate the three geometric parameters using the iterative procedure outlined in Fig. 7(a).

23First the radius and embedding are set as the mean radius and mean embedding of the dataset, providing a good starting place for the parameter search. We then calculate the spacing using our spacing DNN. The calculated spacing value and mean radius value are used to predict the embedding. This embedding and the spacing are then used to calculate the radius. We then repeat these steps until the geometric parameters relax to their final values. This generally this takes 10-20 iterations, however, this may vary depending on the colours themselves. If the colours are not well represented in the training data, the number of iterations will increase. As sketched in Fig. 7(b), we use 5 HLs with 40 nodes per hidden layer for our backwards DNNs.

24A sample colour palette of our test dataset is shown in Fig. 8(a) where on the left we display a set of desired colours, and on the right we display the colours generated by the output geometric parameters. We see an agreement between the input colour, and that generated by our iterative method. We also see ΔE values within the same range as the direct prediction with a mean of 2.83. The comparison between input and output RGB values are given in Fig. 8(b) where the percent error between the input and output colours are 0.83%, 1.34%, and 2.12% for R, G and B respectively. The slight increase in error between the direct and inverse prediction is expected due to error accumulation between the backward DNNs used to calculate the geometries and the forward DNN used for testing the geometries. The geometries output by the relaxation are not guaranteed to provide the closest possible colour to the input. They depend on the initial inputs (O 1 and O 2 in Fig. 7). Multiple initialized inputs can be used to find multiple possible geometries, and the one which has the least error between input and output colours should be used.

25In traditional optimization methods such as gradient based methods and genetic algorithms, solutions are iteratively sought by trying to minimize an error function. Depending on the complexity of the problem, this can require hundreds or thousands of iterations where at least one simulation must be run for each iteration, www.nature.com/scientificreports www.nature.com/scientificreports/ and all this to obtain only one optimized solution. The multivariable inverse design method also requires a large number of simulations upfront for data acquisition, the number of which may be comparable to what is required for an optimization method. However, once these data are used to train the DNNs, it is then possible to obtain a large number of optimized solutions very rapidly. In this study, we seek to find many optimized solutions satisfying different constraints using an existing simulation dataset. Thus using DNNs -which take less than a second per prediction, versus hours on a super computer for a single simulation iteration -wins over traditional optimization. www.nature.com/scientificreports www.nature.com/scientificreports/ Using laser machining data. The laser parameter dataset was obtained from the Royal Canadian Mint, who uses this colouring technique to create artwork on silver 11 . The colours for this artwork are chosen carefully using a palette of known experimentally-obtained colours. The laser is then programmed with the corresponding laser parameters to create this colour on the metal surface. This process is restricted to the list of known colours. However, by using DNNs to predict the laser parameters required to produce a given desired colour, this process can be simplified and laser parameters can be predicted for colours that are not within the known list.

26We use the iterative multivariable inverse design procedure introduced in the previous section with n = 4 for the four laser parameters that we want to predict (the same ones as used for Fig. 6). We train our four backward DNNs with 90% of the data and test it with the other 10%. These DNNs have three HLs and 60 nodes per HL. We use the direct prediction DNN to calculate the colour from the predicted laser parameters. We show some of the colours output in Fig. 9(a) and display the numerical results in Fig. 9(b). The percent error between the input and output colours are 5.50%, 4.57%, and 6.09% for R, G, and B, respectively, and the mean of ΔE is 6.31, which remains less than our limit of 7. Numerically these errors are small and result in the linear pattern displayed in Fig. 9(b). However, these errors are large enough that some colours are switched in the process. For example, the fifth box from the top in the palette of Fig. 9(a) reveals a change from the desired grey to the output purple. Such changes are caused by differences in the RGB values of the order of 0.07. These differences should be expected due to the accumulation of error in experiment, the backward DNNs, and the forward DNN used to test the backward DNNs. Despite the error in some of the colours, the majority of them are accurately predicted.

Conclusion

27We have applied deep learning to plasmonic metal colouration through (1) direct prediction of colours and (2) inverse prediction of parameters required for a desired colour, using both simulation and experimental data sets, with good prediction accuracy. The direct prediction of colours from new parameters means that we increase the palette of available colours without needing to run further simulations or experiments. The Royal Canadian Mint has started using laser colouring on silver 11 where the appropriate colours are chosen manually from the database. The inverse prediction can automate this process by finding the laser parameters (that are not necessarily in the database) that best match the desired colour. This method allows for the fixing of certain input parameters, like scanning speed or laser fluence. Fixing the scanning speed is of particular interest, as with higher scanning speeds, a surface can be coloured in less time. The direct prediction can be expanded for industrial applications where environments (temperature, humidity, vibrations, etc) are much less controlled. Environmental factors can be taken into account in the training of the deep neural networks and therefore the output colour of a laser machined surface can be predicted with higher accuracy. Finally, the relaxation technique we developed for the inverse prediction has numerous potential applications in nanophotonics 14 . Since it is much easier to implement than advanced methods such as reinforcement learning, and faster than traditional optimization techniques like gradient based methods, it is more accessible to those new to the field of deep learning.

Data Availability

28The datasets generated and analyzed during the current study are available from the corresponding authors on reasonable request.

(제목 없음)

29Picosecond laser pulses have been used as a surface colouring technique for noble metals, where the colours result from plasmonic resonances in the metallic nanoparticles created and redeposited on the surface by ablation and deposition processes. This technology provides two datasets which we use to train artificial neural networks, data from the experiment itself (laser parameters vs. colours) and data from the corresponding numerical simulations (geometric parameters vs. colours). We apply deep learning to predict the colour in both cases. We also propose a method for the solution of the inverse problem -wherein the geometric parameters and the laser parameters are predicted from colour -using an iterative multivariable inverse design method.

30Deep learning (DL) refers to a sub-field of Machine Learning and Artificial Intelligence where multi-layered artificial neural networks, or deep neural networks (DNNs), are used for high accuracy predictions and classifications. Deep learning has been used in speech recognition, image classification, vision, and pattern extraction, to name a few examples 1 . Its application in photonics is recent. For example, DL has been used to classify scanning electron microscope (SEM) images of nanostructures 2 , to increase the resolution of microscopy 3 , and for the design of nanophotonic structures [4][5][6][7][8][9][10] . DL models can be used to find patterns in complicated datasets and are particularly useful when large pre-calculated or pre-measured datasets are available for training. Both simulations and experiments in nanophotonics can provide the large datasets required for DL. For example, geometric parameter sweeps are used in plasmonics to optimize the design of nanostructures, while parameters are tuned in experiments to produce the best nanofabrication results. The exploration of the parameter space based on trials is time-consuming. Using data from parameter sweeps, one can train a DL model to predict the experimental or simulation outcome for a new set of input parameters, thus avoiding the need to run many trials of the actual experiment or computation. Further, in an industrial setting where the environment is not well controlled, environmental parameters can be tracked and can become additional inputs of a deep learning application.

31An application which may benefit from DL is the plasmonic colouration of metal surfaces via laser machining. By controlling different laser parameters such as scanning speed, hatch spacing, burst number, etc., laser-machined surfaces ( Fig. 1(a)) with a large range of colours ( Fig. 1(b)) were created 11,12 . Finite-difference time-domain (FDTD) simulations were performed based on the geometries inspired by the experimental SEM images and the measured nanoparticle distributions, and these simulations were able to explain experimental trends. This includes finding that the colour transition from blue to yellow occurs when the inter-particle spacing for nanoparticles of radius R = 35 nm is progressively increased. The nanoparticle distribution is modelled as a periodic hexagonal lattice of single-sized nanoparticles embedded into a metal surface ( Fig. 1(c)), and the output of the simulation is a reflection spectrum from which the colour is rendered to the Red-Green-Blue (RGB) colour scale 13 (Fig. 1(d)). Both experiments and simulations contain challenges which can be addressed by DL. On the experimental side, the colours generated by a new set of laser parameters must be determined empirically through trial and error. On the computational side, the requirement for accuracy means that a large-scale FDTD simulation has to be run in order to find the colour corresponding to a new set of geometric parameters, and this is time-consuming.

32In this paper we apply DL to the direct prediction of new colours using both the experimental and simulation data. We predict colours from laser parameters by leveraging the dataset linking laser parameters to real, physical colours. We also predict colours from nanoparticle geometries by using the dataset linking the simulation geometries to computed colours. We then apply DNNs to aid in the solution of the inverse design problem, whereby inputting colours, the model returns appropriate geometric or laser parameters. In solving the inverse design problem, we use an iterative multivariable inverse design method in which the inverse solution is found by iteratively solving for individual outputs. To the best of our knowledge, this is the first time this method has been reported. Traditional optimization and inverse design techniques (e.g. genetic algorithms or gradient-based methods) have been applied to photonics applications 14 . These methods would be time consuming for the large-scale simulations, and costly to implement in the lab. This is why we highlight the importance of using the data that has already been accumulated to train efficient DL models.

Direct prediction of Colours

33Using simulation data. In this section we use DNNs for the prediction of colours from nanoparticle geometries using the FDTD dataset. The FDTD simulations were run to calculate the reflectance spectra from single-sized silver nanoparticle distributions embedded into flat silver surfaces.

34Statistical analysis of SEM images of laser-coloured silver surfaces show a bimodal distribution of nanoparticle sizes, which are referred to as medium nanoparticles (10 < R m < 75 nm) with an average radius of ≈35 nm, and small nanoparticles (R s < 10 nm) 11,12 . Simulations have shown that the effect of the small nanoparticles averages out, thus they do not contribute significantly to the colours observed in experiments 11,12 . Indeed, the experimental palette (see Fig. 1(b)) can be reproduced with single-sized nanoparticles of radius 35 nm (see Fig. 1(d)). For this reason, we use the single-sized nanoparticle data for this study.

35The particles are arranged in a hexagonal lattice in the x-z plane as shown in Fig. 2, where only a unit cell is simulated and periodic boundaries are placed in the x-and z-directions. We excited the system with a broadband plane wave pulsed signal which allows us to capture the full visible spectrum (broadband simulation) with a single run of the code. The incoming pulse was z-polarized and propagated in the y-direction, which is truncated by Convolutional Perfectly Matched Layers (CPMLs). Simulations are run with particle radii R ranging from 5 nm to 100 nm. The embedding depth R emb represents the percentage of the radius embedded into the silver surface, and it ranges from 30 to 100%, where an embedding of 100% means that we simulate a hemisphere. The inter-particle spacing D cc describes the center-to-center spacing between the nanoparticles. To remove correlation between spacing and radius, we also define an edge-to-edge spacing D ee = D cc − 2R which ranges from 5 nm to 80 nm. The simulation domain was discretized using a uniform space step and a cubic Yee cell 15 (dx = dy = dz). We used a space-step of dx = 0.125 nm for R = 5 to 10 nm, dx = 0.25 nm for R = 15 to 20 nm, dx = 0.5 nm for R = 25 to 45 nm and dx = 1 nm for R = 50 to 100 nm. The total number of Yee cells depends on the space step and geometry but is on the order of 10 8 . We run convergence tests to ensure sufficient accuracy 16 . The optical parameters of silver were modelled by the Drude + 2 Critical Points model 17,18 . To simulate the metal substrate as a half plane, we used a 100 nm thick silver layer, at the end of which there was zero transmittance; this layer was terminated by a CPML. The length of the y-dimension was chosen such that the reflectance is computed in the far-field region, which is at least 100 nm from the top of the nanoparticles. The reflectance spectra were computed over the optical wavelength range of 350-750 nm and were converted to RGB values. Simulations were performed using an in-house 3D-FDTD parallel code 16 running on the IBM BlueGene/Q supercomputer (64 k cores) 19 operated by SOSCIP at Scinet, University of Toronto, Canada.

36For the direct prediction DL application, the input is the simulation geometries which are parameterized by nanoparticle radius R, embedding depth R emb , and edge-to-edge nanoparticle spacing D ee . The output is one of the colour values R, G, or B. Our total simulation dataset consists of 770 datapoints.

37To optimize the use of DL, we need first to find the most ideal DNN architecture: the number hidden layers (HLs) and the number of nodes in each HL that best models our dataset. N-fold Cross Validation (CV) 20 is a process where the data is separated into N subsets. A DNN is trained using N-1 of the subsets. The Nth subset is used for testing and the error is recorded. This process is repeated N times so that each subset is used for testing. The error of a given DNN architecture is the average error from the N DNNs on the test sets.

38Ten-fold CV is applied to DNNs with HL number ranging from 1 to 10, and nodes per HL ranging from 4 to 72. We simplify this process by only making DNNs with equal numbers of nodes per HL. Seeing as each DNN outputs only one value (be it R, G, or B), this process is repeated for each colour component. To find an ideal DNN architecture we decided to find one with a minimum sum of normalized Mean Square Errors (MSEs):

39where R MSE , G MSE , and B MSE are the mean squared error for the R, G and B values respectively. We also want a DNN that uses a minimal number of HLs and nodes, in order to avoid over-fitting and long training times. Because of the large number of DNNs trained in the CV process, we made use of the SOSCIP GPU cluster 21 where we could train 4 DNNs consecutively on a single node consisting of 4 GPUs. The DNN codes were written using TensorFlow 22 and the weights of the DNNs were optimized using an Adam Optimizer 23 . Figure 3 shows the normalized MSE sum as a function of nodes per HL for all of HLs considered. We see that the error plateaus for five or more HLs, after 40 nodes per HL. Beyond this point, the DNNs all have similar accuracies. Because of this, the five HL DNN with 40 nodes per HL, as sketched in Fig. 4(a), was chosen to model the simulation dataset.

40A node in a hidden layer will receive as inputs the outputs from a previous layer, as shown in Fig. 4(b). The node performs a linear transformation on the inputs:

41where a i j n , ( ) is the weight of the j th node in the n th hidden layer applied to the i th input, and b j n ( ) is the bias of the j th node in the n th hidden layer. The output of this node is given by the rectified linear activation function:

42The training process involves adjusting the weights a i j n , ( ) and the biases b j n ( ) to minimize the error on the training set. This DNN was trained using 90% of the available data. The remaining randomly selected 10% not used in the training process was used for testing. www.nature.com/scientificreports www.nature.com/scientificreports/ Figure 5(a) shows a palette of some of the colours used in the test set, where the calculated colours from the FDTD simulations are shown on the left and the DNN predicted colours are shown on the right for the same geometric parameters. To the right of the colour pair in Fig. 5(a) we report the corresponding ΔE value 24 which is dimensionless and provides a quantitative measure of the difference between the two colours: where L i , a i , and b i (i = 1, 2) are the colour coordinates in an alternate colour space, calculated from the RGB values 13 . For reference, a ΔE of 1 is the threshold of a colour difference that is just perceptible to the human eye, and 6-7 (as a subjective threshold) is often deemed acceptable in commercial practice. In the test set of 77 colours, only 8 surpass a ΔE of 7. For example, the penultimate block in Fig. 5(a) yields ΔE = 7.73, yet the colour difference is only somewhat noticeable. The mean ΔE of the entire test set is 2.61. The colour palette and corresponding ΔE demonstrate the predictive accuracy of our model. Figure 5(b) compares the RGB values of FDTD vs DNN for the entire test set. Each circle represents a single datapoint, where the x-axis is the R, G, or B value of the FDTD calculation, and the y-axis is the corresponding R, G, or B value predicted by the DNN. The colour of the circle is either red, green or blue, corresponding to which RGB component that datapoint represents. The ideal linear model (y = x) is also displayed for convenience as a solid line. The mean percent error on the test set for R, G, and B are 0.48%, 0.67%, and 3.31% respectively, showing that the DNN chosen predicts all three value with very good accuracy. The larger error for the blue is likely due to the relative lack of representation of low blue values in the dataset. The DNN was not given enough training data with blue values below 0.6 where we clearly see the most error in Fig. 5(b). We can see from the plot that numerical values are well predicted from the model. www.nature.com/scientificreports www.nature.com/scientificreports/ It is worth noting that this model can only be used for interpolation and very small extrapolations. Large extrapolations can lead to nonphysical results. Over the range spanned by our data, this model can predict the colours with high accuracy (less than 4% error) without having to run additional simulations.

43Using laser machining data. In this section we repeat the above analysis for the laser parameter dataset.

44This dataset consisted originally of 10 laser parameters and 1841 datapoints. We eliminated 6 laser parameters due to lack of variation and effect on colour, which left 4 laser parameters under consideration: laser scanning speed, hatch spacing, number of laser pulses per burst, and laser fluence. Physically these parameters affect the total accumulated fluence on the metal surface. This was found empirically to be the key factor in colour production, so that different laser parameters with the same total accumulated fluence produced very similar colours 11 . While eliminating laser parameters, we also removed the corresponding datapoints to ensure that the training process was not affected. The number of datapoints in our updated set is 1745.

45We use the process outlined in the previous section to find the ideal DNN for this dataset. We choose our model to be a DNN with 3 HLs and 60 nodes per hidden layer.

46We split our data randomly into two sets: 90% for training and 10% for testing. We again display a comparison between some of the DNN predicted colours and those measured in the lab in Fig. 6(a) along with the ΔE for the test set. The error is higher for this dataset in comparison to the simulation dataset. There is a much more complicated relationship between laser parameters and the RGB of the resulting colour. Despite this, the DNN has found enough relationships to be able to predict a colour within a given range of the measured colours, resulting in a mean ΔE of 5.27 for the test set, where 41 of the 175 test datapoints are greater than 7. We can see a few of these in Fig. 6(a), as the second, third, fifth, and last blocks from the top. The first and third, although having high ΔE values, are still subjectively well predicted. The last block however is the result of a large difference (greater than 0.1) in the R, G and B values. Large errors like these are rare but should be expected in a large test set such as this, where there will likely be points that are not well represented in the training data. This means that the DNN is not as well trained in these regions of parameter space. In Fig. 6(b) we display the comparison of RGB values for the entire test set. The mean percent error for R, G and B are 4.29%, 4.88%, and 5.47% respectively. We see that this DNN predicts each colour reasonably well. However we point out that care should be taken when applying DL to the prediction of subjective results -here, even a small error can change the colour perceptively. Implicit parameters like temperature or humidity deviations in a laboratory environment may also affect the colour, in addition to the explicit parameters such as laser settings considered here. In commercial setting, the time of day may be relevant due to workplace traffic or machinery vibrations. The relationship between these implicit effects and the resulting colour is very complicated. Though not tracked in our work, these are all parameters that can used as additional inputs into a deep learning model.

Inverse Design prediction from Colours

47Using simulation data. In this section we solve the inverse problem: we find the simulation geometries that are required to produce given colours, where the RGB values are now the inputs. Solving the inverse problem is not a trivial task as the solution may not be unique. Multiple geometries may produce the same colour so a DNN cannot be directly trained to predict geometric parameters from a given colour. Methods to get around the uniqueness problem have been suggested, including (1) training the inputs using back-propagation with the www.nature.com/scientificreports www.nature.com/scientificreports/ weights of the DNN fixed 7 , (2) training the inverse DNN using the direct DNN 8,10 , and (3) applying reinforcement learning 9 . Here we introduce a more straightforward iterative multivariable inverse design approach, which to our knowledge remains unreported.

48Our Once all n DNNs are trained, we can calculate the set of outputs in an iterative procedure. We first calculate O n using the DNN n with the desired inputs and the remaining outputs (which can be initialized as random numbers or the mean values of the dataset). Next we calculate O n−1 using DNN n−1 with the desired inputs and the remaining outputs including the updated O n . This is repeated for all outputs. This process can be repeated until the values of the outputs have relaxed to a final value. This method is very simple in implementation since it requires no special treatment of the DNNs unlike inverse design methods suggested in previous studies [7][8][9][10] .

49In the case of our simulation geometry, n = 3. DNN 1 is trained to predict the particle spacing from R, G, B, radius, and embedding. DNN 2 predicts the embedding from R, G, B, radius, and spacing. DNN 3 predicts the radius from R, G, B, embedding, and spacing. After training these three DNNs, we can then calculate the three geometric parameters using the iterative procedure outlined in Fig. 7(a).

50First the radius and embedding are set as the mean radius and mean embedding of the dataset, providing a good starting place for the parameter search. We then calculate the spacing using our spacing DNN. The calculated spacing value and mean radius value are used to predict the embedding. This embedding and the spacing are then used to calculate the radius. We then repeat these steps until the geometric parameters relax to their final values. This generally this takes 10-20 iterations, however, this may vary depending on the colours themselves. If the colours are not well represented in the training data, the number of iterations will increase. As sketched in Fig. 7(b), we use 5 HLs with 40 nodes per hidden layer for our backwards DNNs.

51A sample colour palette of our test dataset is shown in Fig. 8(a) where on the left we display a set of desired colours, and on the right we display the colours generated by the output geometric parameters. We see an agreement between the input colour, and that generated by our iterative method. We also see ΔE values within the same range as the direct prediction with a mean of 2.83. The comparison between input and output RGB values are given in Fig. 8(b) where the percent error between the input and output colours are 0.83%, 1.34%, and 2.12% for R, G and B respectively. The slight increase in error between the direct and inverse prediction is expected due to error accumulation between the backward DNNs used to calculate the geometries and the forward DNN used for testing the geometries. The geometries output by the relaxation are not guaranteed to provide the closest possible colour to the input. They depend on the initial inputs (O 1 and O 2 in Fig. 7). Multiple initialized inputs can be used to find multiple possible geometries, and the one which has the least error between input and output colours should be used.

52In traditional optimization methods such as gradient based methods and genetic algorithms, solutions are iteratively sought by trying to minimize an error function. Depending on the complexity of the problem, this can require hundreds or thousands of iterations where at least one simulation must be run for each iteration, www.nature.com/scientificreports www.nature.com/scientificreports/ and all this to obtain only one optimized solution. The multivariable inverse design method also requires a large number of simulations upfront for data acquisition, the number of which may be comparable to what is required for an optimization method. However, once these data are used to train the DNNs, it is then possible to obtain a large number of optimized solutions very rapidly. In this study, we seek to find many optimized solutions satisfying different constraints using an existing simulation dataset. Thus using DNNs -which take less than a second per prediction, versus hours on a super computer for a single simulation iteration -wins over traditional optimization. www.nature.com/scientificreports www.nature.com/scientificreports/ Using laser machining data. The laser parameter dataset was obtained from the Royal Canadian Mint, who uses this colouring technique to create artwork on silver 11 . The colours for this artwork are chosen carefully using a palette of known experimentally-obtained colours. The laser is then programmed with the corresponding laser parameters to create this colour on the metal surface. This process is restricted to the list of known colours. However, by using DNNs to predict the laser parameters required to produce a given desired colour, this process can be simplified and laser parameters can be predicted for colours that are not within the known list.

53We use the iterative multivariable inverse design procedure introduced in the previous section with n = 4 for the four laser parameters that we want to predict (the same ones as used for Fig. 6). We train our four backward DNNs with 90% of the data and test it with the other 10%. These DNNs have three HLs and 60 nodes per HL. We use the direct prediction DNN to calculate the colour from the predicted laser parameters. We show some of the colours output in Fig. 9(a) and display the numerical results in Fig. 9(b). The percent error between the input and output colours are 5.50%, 4.57%, and 6.09% for R, G, and B, respectively, and the mean of ΔE is 6.31, which remains less than our limit of 7. Numerically these errors are small and result in the linear pattern displayed in Fig. 9(b). However, these errors are large enough that some colours are switched in the process. For example, the fifth box from the top in the palette of Fig. 9(a) reveals a change from the desired grey to the output purple. Such changes are caused by differences in the RGB values of the order of 0.07. These differences should be expected due to the accumulation of error in experiment, the backward DNNs, and the forward DNN used to test the backward DNNs. Despite the error in some of the colours, the majority of them are accurately predicted.

Conclusion

54We have applied deep learning to plasmonic metal colouration through (1) direct prediction of colours and (2) inverse prediction of parameters required for a desired colour, using both simulation and experimental data sets, with good prediction accuracy. The direct prediction of colours from new parameters means that we increase the palette of available colours without needing to run further simulations or experiments. The Royal Canadian Mint has started using laser colouring on silver 11 where the appropriate colours are chosen manually from the database. The inverse prediction can automate this process by finding the laser parameters (that are not necessarily in the database) that best match the desired colour. This method allows for the fixing of certain input parameters, like scanning speed or laser fluence. Fixing the scanning speed is of particular interest, as with higher scanning speeds, a surface can be coloured in less time. The direct prediction can be expanded for industrial applications where environments (temperature, humidity, vibrations, etc) are much less controlled. Environmental factors can be taken into account in the training of the deep neural networks and therefore the output colour of a laser machined surface can be predicted with higher accuracy. Finally, the relaxation technique we developed for the inverse prediction has numerous potential applications in nanophotonics 14 . Since it is much easier to implement than advanced methods such as reinforcement learning, and faster than traditional optimization techniques like gradient based methods, it is more accessible to those new to the field of deep learning.

Data Availability

55The datasets generated and analyzed during the current study are available from the corresponding authors on reasonable request.

참고문헌 22건

  1. On the convergence and accuracy of the FDTD method for nanoplasmonics Optics Express · Optica Publishing Group · 2015 10.1364/oe.23.010481
  2. A new model of dispersion for metals leading to a more accurate modeling of plasmonic structures using the FDTD method Applied Physics A · Springer Science+Business Media · 2011 10.1007/s00339-010-6224-9
  3. A Unified FDTD/PML Scheme Based on Critical Points for Accurate Studies of Plasmonic Structures Journal of Lightwave Technology · Institute of Electrical and Electronics Engineers · 2013 10.1109/jlt.2013.2265166
  4. Numerical solution of initial boundary value problems involving maxwell's equations in isotropic media IEEE Transactions on Antennas and Propagation · IEEE Antennas & Propagation Society · 1966 10.1109/tap.1966.1138693
  5. An Introduction to Statistical Learning Springer texts in statistics · Springer International Publishing · 2013 10.1007/978-1-4614-7138-7
  6. Laser-induced plasmonic colours on metals Nature Communications · Nature Portfolio · 2017 10.1038/ncomms16095
  7. Topography Tuning for Plasmonic Color Enhancement via Picosecond Laser Bursts Advanced Optical Materials · Wiley · 2018 10.1002/adom.201800189
  8. Deep learning microscopy Optica · Optica Publishing Group · 2017 10.1364/optica.4.001437
  9. Neural Network for Nanoscience Scanning Electron Microscope Image Recognition Scientific Reports · Nature Portfolio · 2017 10.1038/s41598-017-13565-z
  10. Training Deep Neural Networks for the Inverse Design of Nanophotonic Structures ACS Photonics · American Chemical Society · 2018 10.1021/acsphotonics.7b01377
  11. Nanophotonic particle simulation and inverse design using artificial neural networks Science Advances · American Association for the Advancement of Science · 2018 10.1126/sciadv.aar4206
  12. Passivation of Plasmonic Colors on Bulk Silver by Atomic Layer Deposition of Aluminum Oxide Langmuir · American Chemical Society · 2018 10.1021/acs.langmuir.8b00210
  13. Generative Model for the Inverse Design of Metasurfaces Nano Letters · American Chemical Society · 2018 10.1021/acs.nanolett.8b03171
  14. Deep-Learning-Enabled On-Demand Design of Chiral Metamaterials ACS Nano · American Chemical Society · 2018 10.1021/acsnano.8b03569
  15. Plasmonic nanostructure design and characterization via Deep Learning Light Science & Applications · Springer Nature · 2018 10.1038/s41377-018-0060-7
  16. Finding the best design parameters for optical nanostructures using reinforcement learning arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1810.10964
  17. Deep learning Nature · Nature Portfolio · 2015 10.1038/nature14539
  18. Machine learning inverse problem for topological photonics Communications Physics · Nature Portfolio · 2018 10.1038/s42005-018-0058-8
  19. (제목 없음) DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · Schloss Dagstuhl – Leibniz Center for Informatics · 2021 10.4230/lipics.cp.2021.42
  20. Nanophotonic particle simulation and inverse design using artificial neural networks 2018 10.1117/12.2289195
  21. Inverse design in nanophotonics Nature Photonics · Nature Portfolio · 2018 10.1038/s41566-018-0246-9
  22. Training deep neural networks for the inverse design of nanophotonic structures Conference on Lasers and Electro-Optics · 2019 10.1364/cleo_at.2019.jf2f.4