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

Extracting film thickness and optical constants from spectrophotometric data by evolutionary optimization

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

기본 정보

저자
  1. Rajdeep Dutta — Institute for Infocomm Research (I|||STAR, Singapore, Singapore|||Institute for Infocomm Research (I2R), Agency for Science, Technology and Research (A*STAR), Singapore, Singapore
  2. Siyu Tian — Low Energy Electronic Systems (LEES), Singapore-MIT Alliance for Research and Technology (SMART), Singapore, Singapore|||Solar Energy Research Institute of Singapore (SERIS), National University of Singapore, Singapore, Singapore
  3. Zhe Liu — Department of Mechanical Engineering, Massachusetts Institute of Technology, Cambridge, MA, United States of America,|||Department of Mechanical Engineering, Massachusetts Institute of Technology, Cambridge, MA, United States of America
  4. Madhavkrishnan Lakshminarayanan — Institute for Infocomm Research (I|||Institute for Infocomm Research (I2R), Agency for Science, Technology and Research (A*STAR), Singapore, Singapore
  5. Selvaraj Venkataraj — Solar Energy Research Institute of Singapore (SERIS), National University of Singapore, Singapore, Singapore,|||Solar Energy Research Institute of Singapore (SERIS), National University of Singapore, Singapore, Singapore
  6. Yuanhang Cheng — Solar Energy Research Institute of Singapore (SERIS), National University of Singapore, Singapore, Singapore,|||Solar Energy Research Institute of Singapore (SERIS), National University of Singapore, Singapore, Singapore
  7. Daniil Bash — Institute of Materials Research and Engineering (IMRE), Agency for Science, Technology and Research (A*STAR), Singapore, Singapore,|||Institute of Materials Research and Engineering (IMRE), Agency for Science, Technology and Research (A*STAR), Singapore, Singapore
  8. Vijila Chellappan — Institute of Materials Research and Engineering (IMRE), Agency for Science, Technology and Research (A*STAR), Singapore, Singapore,|||STAR, Singapore, Singapore|||Institute of Materials Research and Engineering (IMRE), Agency for Science, Technology and Research (A*STAR), Singapore, Singapore
  9. Tonio Buonassisi — Department of Mechanical Engineering, Massachusetts Institute of Technology, Cambridge, MA, United States of America|||Low Energy Electronic Systems (LEES), Singapore-MIT Alliance for Research and Technology (SMART), Singapore, Singapore
  10. J. Senthilnath — Institute for Infocomm Research (I2R), Agency for Science, Technology and Research (A*STAR), Singapore, Singapore|||Artificial Intelligence, Analytics And Informatics (AI3), A*STAR, Singapore, Singapore
DOI
10.1371/journal.pone.0276555
저널
PLoS ONE
발행년도
2022
발행기관
Public Library of Science
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1371/journal.pone.0276555
토픽
Analytical Chemistry and Sensors
OpenAlex ID
W4310436568

평가 내용

관련도
간접 관련
사업분야
필름·전자재료 · (11) 배리어 필름
부 분야
(13) 프리즘 필름, (15) 디스플레이 패널재료, (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.80
근거 용어
film thickness, optical constants, spectrophotometric data, refractive index, evolutionary optimization
판단 근거
이 논문은 분광 데이터를 통해 박막의 두께와 광학 상수(굴절률 등)를 추출하는 최적화 알고리즘을 다룹니다. 이는 코오롱인더스트리의 배리어 필름, 광학 필름, CPI 등 다양한 기능성 필름의 두께 및 광학적 특성을 정밀하게 분석하고 제어하는 R&D 공정에 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
필름 제조 공정 중 박막의 두께 균일도 및 굴절률/투과율 등 광학적 물성을 비파괴적으로 신속하게 분석하는 모델링 기술로 활용 가능합니다.
평가 입력
본문 75,706자 중 30,032자 발췌

초록

In this paper, we propose a simple and elegant method to extract the thickness and the optical constants of various films from the reflectance and transmittance spectra in the wavelength range of 350 − 1000 nm. The underlying inverse problem is posed here as an optimization problem. To find unique solutions to this problem, we adopt an evolutionary optimization approach that drives a population of candidate solutions towards the global optimum. An ensemble of Tauc-Lorentz Oscillators (TLOs) and an ensemble of Gaussian Oscillators (GOs), are leveraged to compute the reflectance and transmittance spectra for different candidate thickness values and refractive index profiles. This model-based optimization is solved using two efficient evolutionary algorithms (EAs), namely genetic algorithm (GA) and covariance matrix adaptation evolution strategy (CMAES), such that the resulting spectra simultaneously fit all the given data points in the admissible wavelength range. Numerical results validate the effectiveness of the proposed approach in estimating the optical parameters of interest.

본문 75,706자

본문 펼치기
# PLOS ONE ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0276555&domain=pdf&date_stamp=2022-11-30)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0276555&domain=pdf&date_stamp=2022-11-30)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0276555&domain=pdf&date_stamp=2022-11-30)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0276555&domain=pdf&date_stamp=2022-11-30)</u>~~ ~~<u>[a1111111111](http://crossmark.crossref.org/dialog/?doi=10.1371/journal.pone.0276555&domain=pdf&date_stamp=2022-11-30)</u>~~ OPEN ACCESS Citation: Dutta R, Tian SIP, Liu Z, Lakshminarayanan M, Venkataraj S, Cheng Y, et al. (2022) Extracting film thickness and optical constants from spectrophotometric data by evolutionary optimization. PLoS ONE 17(11): [e0276555. https://doi.org/10.1371/journal.](https://doi.org/10.1371/journal.pone.0276555) [pone.0276555](https://doi.org/10.1371/journal.pone.0276555) Editor: Yuan-Fong Chou Chau, Universiti Brunei Darussalam, BRUNEI DARUSSALAM Received: April 20, 2022 Accepted: October 9, 2022 Published: November 30, 2022 Copyright: © 2022 Dutta et al. This is an open access article distributed under the terms of the [Creative Commons Attribution License, which](http://creativecommons.org/licenses/by/4.0/) permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. Data Availability Statement: We have made the [relevant data and codes available at: https://doi.org/](https://doi.org/10.5281/zenodo.7228228) [10.5281/zenodo.7228228 with the title:](https://doi.org/10.5281/zenodo.7228228) Autonomous-Scientific-Discovery/FilmOptics InverseSolutions: Extracting Film Thickness and Optical Constants from Spectrophotometric Data by Evolutionary Optimization. Funding: This study is supported by the Accelerated Materials Development for Manufacturing Program at A <sup>�</sup> STAR via the AME RESEARCH ARTICLE ## Extracting film thickness and optical constants from spectrophotometric data by evolutionary optimization [Rajdeep DuttaID](https://orcid.org/0000-0003-0195-2153) <sup>1</sup> <sup>☯</sup> *, Siyu Isaac Parker Tian <sup>2,3</sup> <sup>☯</sup> , Zhe Liu <sup>4¤a</sup> , Madhavkrishnan Lakshminarayanan <sup>1</sup> , Selvaraj Venkataraj <sup>3</sup> , Yuanhang Cheng <sup>3¤b</sup> , [Daniil BashID](https://orcid.org/0000-0001-8979-7228) <sup>5</sup> , Vijila Chellappan <sup>5</sup> *, Tonio Buonassisi <sup>2,4</sup> [*, Senthilnath JayaveluID](https://orcid.org/0000-0002-1737-7985) <sup>1,6</sup> * 1 Institute for Infocomm Research (I <sup>2</sup> R), Agency for Science, Technology and Research (A*STAR), Singapore, Singapore, 2 Low Energy Electronic Systems (LEES), Singapore-MIT Alliance for Research and Technology (SMART), Singapore, Singapore, 3 Solar Energy Research Institute of Singapore (SERIS), National University of Singapore, Singapore, Singapore, 4 Department of Mechanical Engineering, Massachusetts Institute of Technology, Cambridge, MA, United States of America, 5 Institute of Materials Research and Engineering (IMRE), Agency for Science, Technology and Research (A*STAR), Singapore, Singapore, 6 Artificial Intelligence, Analytics And Informatics (AI <sup>3</sup> ), A*STAR, Singapore, Singapore ☯ These authors contributed equally to this work. ¤a Current address: School of Materials Science and Chemical Engineering, Xi’an Technological University, Xi’an, Shaanxi, China ¤b Current address: Department of Materials Science and Engineering, City University of Hong Kong, Kowloon, Hong Kong, China - Rajdeep_Dutta@i2r.a-star.edu.sg (RD); c-vijila@imre.a-star.edu.sg (VC); buonassi@mit.edu (TB); <u>J_Senthilnath@i2r.a-star.edu.sg</u> (SJ) ### Abstract In this paper, we propose a simple and elegant method to extract the thickness and the opti cal constants of various films from the reflectance and transmittance spectra in the wave length range of 350 − 1000 nm. The underlying inverse problem is posed here as an optimization problem. To find unique solutions to this problem, we adopt an evolutionary optimization approach that drives a population of candidate solutions towards the global optimum. An ensemble of Tauc-Lorentz Oscillators (TLOs) and an ensemble of Gaussian Oscillators (GOs), are leveraged to compute the reflectance and transmittance spectra for different candidate thickness values and refractive index profiles. This model-based optimi zation is solved using two efficient evolutionary algorithms (EAs), namely genetic algorithm (GA) and covariance matrix adaptation evolution strategy (CMAES), such that the resulting spectra simultaneously fit all the given data points in the admissible wavelength range. Numerical results validate the effectiveness of the proposed approach in estimating the opti cal parameters of interest. Introduction The determination of a thin-film’s thickness and complex refractive index over a broad spectral range is carried out using either ellipsometric or spectrophotometric analysis [1, 2]. [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 1 / 21 PLOS ONE Inverse solution with evolutionary algorithm Programmatic Fund by the Agency for Science, Technology and Research under Grant No. A1898b0043, (R.D., V.C., S.J.) and National Research Foundation, Prime Ministers Office, Singapore under its Campus for Research Excellence and Technological Enterprise (CREATE) program through the Singapore Massachusetts Institute of Technology (MIT) Alliance for Research and Technologys Low Energy Electronic Systems research program (S.T., Z.L., T.B.). Competing interests: The authors have declared that no competing interests exist. _Ellipsometry_ measures how the polarization of a light beam changes on reflection from a surface, whereas _Spectrophotometry_ measures reflectance and/or transmittance of light through thin-films and substrates as function(s) of wavelength. The spectral information, reflectance and/or transmittance data, are fed to a numerical solver for extracting thickness and refractive index and/or extinction coefficient [3, 4]. The information on film thickness and optical constants play a major role in selecting suitable materials or processes for different applications such as solar cells, sensors, displays and window coatings. For example, the optical characterization of perovskite thin-films is a key requirement in photovoltaic device design [5, 6]. To determine the complex refractive indices of CsPbBr3 thin-films [5], researchers have used variable-angle spectroscopic ellipsometry measurements and described the associated bulk planar CsPbBr3 layer with Tauc-Lorentz and Gaussian oscillator models for VASE fitting technique. For optical analysis of semitransparent and opaque solar cells, the complex refractive indices of CH3NH3PbI3 films can be determined by using a combination of variable-angle spectroscopic ellipsometry and spectrophotometry data [6]. Film thickness influences micro-scale physics of electron mobility in thin-film transistors [7] to macro-scale physics of operating characteristics of solar cells [5]. Thickness variations by adjusting the catalyst concentration or by changing the heat-treatment process can be leveraged to shift the reflection band of a film from narrow to broad wavelength region, which benefits in fabricating dielectric reflectors for solar cells and bandpass filters for optical instruments [8]. Moreover, complex refractive index profiles and film thickness are crucial in designing appropriate polymers to produce effective lenses and ultraviolet (UV)-absorbing coatings [9, 10]. Computationally, it is not trivial to achieve accurate estimates of all the optical parameters together [11, 12], since the inverse problem of retrieving the optical characteristics of a film from spectral information is highly non-linear and often ill-conditioned. Accurate measurement of thickness using experimental methods is a time-consuming process in practice [13, 14]. Usually, the most accurate thickness is attained while compromising accuracy of the estimated refractive index [15, 16]. Moreover, different methods perform well in different spectral ranges [16, 17]. Two inherent difficulties in an inverse photometric problem are: (a) _missing_ _information_ induced by the experimental uncertainty or film imperfections [12], and (b) _multi-solution predicament_ due to the fact that the measured intensities might be compatible with other plausible combinations of optical constants [18]. To dissolve the ambiguity in the parameter extraction process, previous researchers [16] exploited reflectance and transmittance spectral measurements at two distinct incident angles of light. In [19], researchers established that multiple incidence angles are not necessary for the optical analysis of a single layer, though it is crucial in analyzing multi-layer stacks with a global optimization algorithm. Thus, there emerges a need of developing efficient methods for rapid and accurate determination of the thickness and the optical constants of thin-films. Several commercial packages of thin-film optical software, such as TFCalc, Filmwizard, Optilayer, and Essential McLeod, provide advanced modelling for optical dispersion laws and use fitting methods to determine the thickness and complex refractive index [15]. However, these packages cannot always find satisfactory solutions, especially when the initial candidate is far away from the desired solution. Due to this fact, previous researchers found the accuracy of estimates concerning in case of a strongly absorbing material like silicon in the visible range [15]. In order to extract the complex dielectric functions of different types of samples like thinfilms and anisotropic crystals from optical spectra, RefFIT [20] offers a variational KramersKronig constrained fitting approach that fits all the measured spectral data points simultaneously, which requires minimal readaptation in different experimental situations. A recent development, RefDex [4, 21] provided an interactive fitting procedure to extract the complex refractive index of a film with known thickness from reflectance and transmittance data. This [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 2 / 21 PLOS ONE Inverse solution with evolutionary algorithm inverse problem is not unique and there exist multiple solutions that minimize the same loss function [4], which mandates imposing physical constraints to determine meaningful solutions. The major concern is that the above-mentioned software-packages do not offer much flexibility on the choice of parameters, such as the number of oscillators and the bounds on model coefficients, involved in their respective optimization procedures. For instance, OptiChar allows an user to set lower and upper limits on the thickness, the refractive index, and the extinction coefficient, and it offers a variety of models like normal, anomal or arbitrary dispersion, and Sellmeier [15]; however, the number of variables and the optimization algorithm used in the estimation process remain unknown to an user [15]. The refractive index and extinction coefficient profiles can be substantially different for various materials [22, 23]. For instance, consider some of the metal-oxides; the complex refractive indices of the iron-oxides, Hematite and Magnetite, exhibit more peaks and valleys (optical transitions) than that of the copper oxides [24]. Due to this fact, it is difficult for a supervised learning based estimation approach to adapt to a variety of materials [25]. Recently, a machine learning model has been developed to predict the correlation between spectral data and thickness; however, this approach was suitable for thickness characterization of dielectric materials but not materials with high extinction coefficients (like titanium nitride: TiN) [26]. To attain generality, there arises a need for supervised learning along with knowledge transfer techniques. On the contrary, an evolutionary optimization approach has potential to offer flexible solutions through swarm-based efficient search space exploration [27], while circumventing intense data curation and training requirements involved in traditional supervised learning techniques [26]. Hence, in the present work, we pose the underlying inverse problem as an optimization problem and solve it with evolutionary algorithms [27]. Earlier studies explored optimization-based fitting procedures to extract optical constants using spectrophotometric data. Woollam et al. [28, 29] developed a solver that allowed sequential addition of various optical models to minimize fitting errors for extracting refractive index and thickness. A local optimizer, Levenberg-Marquardt (LM) algorithm [30], was utilized in their approach, which gradually improved the solution accuracy. The optimizer starts from an initial guess and moves it to a feasible local minimum until another model addition becomes necessary for further reduction in the fitting error. Swarm-based evolutionary algorithms (EAs) are robust and good at finding the global optimum even for high-dimensional problems [31–33], whereas single point based gradient descent variant algorithms face challenges due to local entrapment and require good initial guesses to reach the global optimum [30, 34]. Moreover, multiple local search procedures from different starting points had been utilized in the Clustering Global Optimization (CGO) algorithm to estimate film thickness and optical constants from spectrophotometric data [15, 35]. The estimation accuracy of CGO was good for _SiO_ 2 and _Ta_ 2 _O_ 5 films, although it’s efficiency depends on a balanced choice of the starting intervals [35]. EAs have also been exploited to determine the optical parameters of interest [36]. Genetic algorithm (GA) and simulated annealing (SA) have been exploited in the ellipsometric evaluations, where the traditional gradient-based LM method faces difficulty in tackling the related hilly error surfaces [37]. Gao et al. [15] applied GA and SA on an ensemble of Tauc-Lorentz oscillators to extract the real and imaginary parts of complex refractive index of a film with known thickness from reflectance and transmittance spectra. However, their approach required a large population to determine the desired inverse solutions. In EAs, a large population size enhances the search space exploration and helps in avoiding local optima at the cost of computational overhead. The present work aims to determine various thin-films’ complex refractive indices and thickness values with the help of EAs, such as GA and CMAES. Recently, covariance matrix adaptation evolution strategy (CMAES) has proved to be reliable in solving deterministic and [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 3 / 21 PLOS ONE Inverse solution with evolutionary algorithm stochastic global optimization problems even with a small population size due to the attributes like step-size adaptation, noise effect reduction, and invariance under coordinate systems [27]. Moreover, CMAES exhibited efficient performance on high-dimensional and ill-conditioned optimization problems by utilizing an isotropic (rotation-invariant) evolution path [38]. Further, the performance of the proposed method is validated on metal-oxide and perovskite films, and its computational effectiveness is justified in comparison with the existing methods. The related optical dispersion models and the proposed optimization procedure to solve the addressed inverse problem are described in _Physics to Mathematics_ section. The different types of data used in the present study are illustrated in _Data Curation_ section. The achieved inverse solutions, thickness values and optical constants, of different films are presented in the _Results_ section along with analysis and discussion. Finally, the benefits of the proposed approach are summarized in the _Conclusion_ . Physics to mathematics In our spectrophotometric analysis, the optical parameters to be extracted are: thickness ( _d_ ), refractive index ( _n_ ), and extinction coefficient ( _k_ ), and the measured data are: reflectance ( _R_ ) and transmittance ( _T_ ) spectra. The film thickness ( _d_ ) is a scalar quantity, and the complex refractive index ( _n_ + _ik_ ) is composed of real and imaginary constituents as functions of wavelengths. The real part of a complex refractive index ( _n_ ) describes the propagation velocity of the incident light within the film material, and the imaginary part of it ( _k_ ) concerns about how much of the light gets absorbed in the medium. This study aims to solve the inverse problem of determining { _d_, _n_, _k_ } from { _R_, _T_ }. In the following, we first explain the use of optical oscillator models to emulate complex refractive index and then dive into the problem formulation. Forward calculations via oscillator models The complex dielectric function, _�_ ( _ω_ ) = _�_ 1( _ω_ ) + _i �_ 2( _ω_ ), is analytic in the upper half of the complex _ω_ plane [23, 39], where o ¼ l <sup>_<u>c</u>_</sup> <sup>denotes the frequency of the incident light with λ being its</sup> wavelength and _c_ being the speed of light in the air. The associated photon energy is represented by _E_ = _hω_ ; _h_ is Planck’s constant. The analytic behavior of _�_ ( _ω_ ) stems from the principle of causality [23, 40]. Consequently, the imaginary and real parts of it are interconnected by the Kramers-Kronig relation [40, 41]. Using this relation [39], one can determine _�_ 1 from _�_ 2 as follows. Z <sup>1</sup> 0 _�_ 1ðoÞ ¼ _�_ 1ð1Þ þ <sup><u>2</u></sup> p <sup>_P_</sup> <u>O</u> _<u>�</u>_ <u>2ðOÞ</u> O <sup>2</sup> - - <sup>2</sup> <sup>_d_</sup> <sup>O</sup> <sup>_;_</sup> ð1Þ where _P_ denotes Cauchy’s principle value integral [23]. The complex dielectric function and complex refractive index are related by: _�_ 1 + _i�_ 2 = ( _n_ + _ik_ ) <sup>2</sup>, which leads to _�_ 1ðoÞ ¼ _n_ <sup>2</sup> ðoÞ � _k_ <sup>2</sup> ðoÞ & _�_ 2ðoÞ ¼ 2 _n_ ðoÞ � _k_ ðoÞ _:_ ð2Þ Substituting Eq (2) into Eq (1), unfolds the dispersion relation [23, 42] between the real ( _n_ ) and imaginary ( _k_ ) parts of a complex refractive index as _n_ ðoÞ ¼ _n_ ð1Þ þ <sup><u>2</u></sup> p <sup>_P_</sup> _n_ ðoÞ ¼ _n_ ð1Þ þ <sup><u>2</u></sup> p Z <sup>1</sup> 0 _<u>k</u>_ <u>ðOÞ</u> O <sup>2</sup> - - <sup>2</sup> <sup>_d_</sup> <sup>O</sup> <sup>_:_</sup> ð3Þ To accurately evaluate _n_ ( _ω_ ) from _k_ ( _ω_ ), the above integration (3) requires to be solved for all frequencies ranging from zero to infinity [23, 40]. However, from an experimental perspective, [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 4 / 21 PLOS ONE Inverse solution with evolutionary algorithm it is only feasible to address a finite range of frequencies. A numerical integration with such a limited spectral range gives erroneous results [42]. Instead, if the functional form of _k_ ( _ω_ ) is known for all frequencies, then the functional form of _n_ ( _ω_ ) can be determined elegantly [23]. Therefore, oscillator models are utilized to generate tractable continuous function approximations. In this research, Tauc-Lorentz and Gaussian oscillator models are taken into account, as described below. Ensemble of Tauc-Lorentz Oscillators: Consider a material with the complex dielectric function: _�_ = _�_ 1 + _i�_ 2. According to an ensemble of _N_ Tauc-Lorentz (TL) oscillators [15], the imaginary part of the complex dielectric function can be expressed as 0 for _E_ - _Eg_ _;_ <u>1</u> _E_ <sup>¼</sup> ð _E_ <sup>2</sup> - _E_ <sup>2</sup> _g_ <sup>Þ</sup> ðo <sup>2</sup> - - <sup>2</sup> _g_ <sup>Þ</sup> _<u>AiE</u>_ 0 _<u>iCi</u>_ ð _<u>E</u>_ - _<u>Eg</u>_ Þ 2 2 X _N_ _i_ ¼1 _<u>Ai</u>_ o0 _<u>iCi</u>_ ðo � - _<u>g</u>_ Þ ð4Þ <u>1</u> for _E > Eg_ <sup>Þ</sup> 2 þ _Ci_ 2 <sup>_E_</sup> <sup>2</sup> 2 þ _Ci_ 2 <sup>o2</sup> _�_ 2ð _E_ ¼ _h_ oÞ ¼ 8 >>< >>: X _N_ _i_ ¼1 ð _E_ <sup>2</sup> - _E_ <sup>2</sup> _g_ where _E_ 0 _i_, _Eg_, _Ci_, _Ai_ represent the peak transition energy, the band gap energy, the broadening parameter, and the factor involving optical transition matrix elements for the _i_ ’th TL oscillator, respectively; _ωg_ and _ω_ 0 _i_ are the respective frequencies corresponding to the energies _Eg_ and _E_ 0 _i_ . To calculate _�_ 1 from _�_ 2, let us now recall the Kramers-Kronig relation (1). In practice, the lower limit of the integral in Eq (1) is chosen as _ωg_ instead of 0 because the Tauc-Lorentz model requires _�_ 2 to be zero for photon energies below the band gap [39]. Note that _�_ 1(1) _>_ 1 is a high frequency dielectric constant to prevent _�_ 1 ! 0 when _E < Eg_ . The formulation of these optical functions was first proposed by Forouhi and Bloomer for amorphous semiconductors and insulators [23], and later, extended for crystalline semiconductors and metals [40]. According to the seminal work by Jellison and Modine [39], _�_ 1( _ω_ ) can be derived from Eq (1) by exploiting the continuous approximation (4) of _�_ 2( _ω_ ). These _�_ 1 and _�_ 2 are then used to solve Eq (2) for all _ω_, so that _n_ and _k_ can be deduced as a function of (3 _N_ + 3) parameters, where 3 _N_ parameters come from ( _E_ 0 _i_, _Ci_, _Ai_ ) for _i_ 2 [1, _N_ ] and the rest three parameters are: _d_, _ωg_, and _�_ 1(1). The number of decision variables involved in optimizing an TL ensemble model are: (3 _N_ + 3). Ensemble of Gaussian Oscillators: The imaginary r-index profile according to an ensemble of Gaussian oscillators, is given by X _N_ _i_ ¼1 _k_ ðoÞ ¼ X _N_ �ð _<u>w</u>_ - m _<u>i</u>_ Þ <sup>2</sup> 2s <sup>2</sup> _Ai_ exp _i_ ¼ _i_ ¼1 _AiGs_ ð _Wi_ Þ _;_ ð5Þ where _Gs_ ð _Wi_ Þ ¼ exp <sup>�</sup> <sup>_W_</sup> _i_ <sup>2</sup> s <sup><u>m</u></sup> _i_ <sup>_<u>i</u>_</sup> <sup><u>Þ</u></sup> <sup>stands for the</sup> <sup>_ithGaussian component_</sup> <sup>with mean</sup> <sup>_μi_</sup> <sup>and</sup> _i_ <sup>2</sup> ; _Wi_ ¼ <sup><u>ð</u></sup> <sup>_<u>w</u>_</sup> ~~p~~ <sup><u>�</u></sup> ~~f~~ 2s <sup><u>m</u></sup> _i_ <sup>_<u>i</u>_</sup> <sup><u>Þ</u></sup> variance _σi_, and _Ai_ is the corresponding coefficient for all _i_ = 1, 2, . . ., _N_ [43]. Next, _n_ ( _ω_ ) is determined by applying the Kramers-Kronig integration (3) to the continuous approximation (5) of _k_ ( _ω_ ), which takes shape as ~~p~~ _n_ ðoÞ ¼ _n_ ð1Þ þ <sup><u>2</u></sup> ~~f~~ p f i ~~f~~ fi X _N_ _i_ ¼1 _i_ _Ai_ exp <sup>�</sup> <sup>_W_</sup> <sup>2</sup> _i_ Z <sup>�</sup> <sup>_Wi_</sup> exp <sup>_x_</sup> <sup>2</sup> _dx_ _;_ ð6Þ 0 or _;_ _n_ ðoÞ ¼ _n_ ð1Þ þ X _N_ _AiGs_ ð _Wi_ Þ � Erfið� _Wi_ Þ _;_ ð7Þ _i_ ¼1 where Erfið� _Wi_ Þ ¼ ~~p~~ <u>2</u> ~~f~~ p f i <sup>R</sup> 0 <sup>�</sup> <sup>_Wi_</sup> exp <sup>_x_</sup> <sup>2</sup> _dx_ represents the _i_ <sup>_th_</sup> _imaginary error function_ [44]; _n_ (1) = 1 [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 5 / 21 PLOS ONE Inverse solution with evolutionary algorithm refers to _k_ (1) = 0 and _n_ (1) _>_ 1 refers to _k_ (1)6¼0 [40, 43]. Here, the Gaussian distributions are utilized to retrieve _n_ and _k_ directly instead of deriving them from _�_ 1 and _�_ 2. An ensemble of Gaussian oscillators (GO) composed of _N_ Gaussian distributions, deals with 3 _N_ parameters as _Ai_, _μi_, _σi_ for _i_ 2 [1, _N_ ] and two more parameters as _n_ and _d_ . Thus, the total number of decision variables involved in optimizing an GO ensemble model are: (3 _N_ + 2). Note that the above optical constants, _n_ ( _ω_ ) and _k_ ( _ω_ ), are expressed as _n_ (λ) and _k_ (λ), respectively, during the numerical implementation. Since o ¼ l <sup>_<u>c</u>_</sup> <sup>~~,~~</sup> <sup>the order of (</sup> <sup>_n_</sup> <sup>,</sup> <sup>_k_</sup> <sup>) sequences gets</sup> reversed when the independent variable is changed from _ω_ to λ. The forward calculation of { _Rcalc_ (λ), _Tcalc_ (λ)} for a tuple { _d_, _k_ (λ), _n_ (λ)} is carried out by the transfer-matrix method [17]. The transfer-matrix method is used to calculate the forward and backward propagating electric fields in smooth homogeneous films, which relies on the superposition of the induced electric fields. The overall transfer matrix is obtained by multiplying a matrix that quantifies the change in field due to the light waves propagating through an interface (air-to-film) with another matrix that quantifies the change in field due to the same waves propagating within a layer (film). Inverse problem formulation We now explain how the underlying inverse problem is posed as an optimization problem. An overview of the associated forward and inverse processes is depicted in Fig 1. Optimization problem. The optimization problem is defined as _d;k_ minðlÞ _;n_ ðlÞ <sup>_L_</sup> <sup>¼</sup> Xl _ub_ l¼l _lb_ f _Rmeas_ ðlÞ � _Rcalc_ ðlÞg 2 þ f _Tmeas_ ðlÞ � _Tcalc_ ðlÞg2 _:_ ð8Þ Fig 1. A flow diagram of the forward and inverse processes: (a) The forward process (yellow panel) involves an UV-Vis-NIR Spectrometer to measure the reflectance & transmittance { _R_ (λ), _T_ (λ)} resulting from a film of thickness _d_ _nm_ and complex refractive index: _n_ (λ) + _ik_ (λ), (b) The inverse problem (green panel) is to find the desired optical <u>parameters {</u> _<u>d</u>_ <u>,</u> _<u>n</u>_ <u>(λ),</u> _<u>k</u>_ <u>(λ)} from the measured data {</u> _<u>R</u>_ <u>(λ),</u> _<u>T</u>_ <u>(λ)}.</u> [https://doi.org/10.1371/journal.pone.0276555.g001](https://doi.org/10.1371/journal.pone.0276555.g001) [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 6 / 21 PLOS ONE Inverse solution with evolutionary algorithm In Eq (8), _L_ is the total loss containing differences in the experimentally measured reflectance and transmittance data { _Rmeas_, _Tmeas_ } from their theoretically calculated values { _Rcalc_, _Tcalc_ }, for all wavelengths. The admissible range of the wavelength, i.e. {λ _lb_, λ _ub_ }, depends on the experimental infrastructure. The decision variables associated with the optimization problem, are: thickness _d_, real r-index profile _n_ (λ), and imaginary r-index profile _k_ (λ). Thickness candidates are directly passed to the solver, whereas _n_ and _k_ candidates are passed in terms of the oscillator model parameters. The evaluation of { _Rcalc_ (λ), _Tcalc_ (λ)} for a candidate solution { _d_, _n_ (λ), _k_ (λ)} has been discussed in the preceding section. In order to make the optimization process computationally efficient, we generate candidate solutions within a search space restricted by an intrinsic correlation [23, 42] between the optical parameters of interest. The thickness candidates are chosen from a reasonable range of scalars. The imaginary and real refractive index candidate profiles are provided by the adopted oscillator models. A formulation over a range of wavelengths is computationally more tractable than a formulation at distinct wavelengths. In a discrete approach, the search space increases with the number of wavelengths and it is cumbersome to determine a physically meaningful refractive index (and/or extinction coefficient) profile out of every solution point at each wavelength, while satisfying the associated constraints. However, our proposed optimization approach generates the candidate solutions from a search space restricted by the Kramers-Kronig relation and fits all the given spectral data points simultaneously. Data curation The proposed methodology is implemented on a diverse data set for two kinds of film materials: (A) metal-oxide, and (B) perovskite (MAPbI3). Different types of data used in the present study are summarized in Table 1, and the details are described below. _Fully-synthetic dataset:_ There involves two steps in preparing the fully-synthetic data: (i) emulate refractive indices _n_ and _k_ by using a single Tauc-Lorentz oscillator (commonly used for metal oxide materials), and (ii) obtain the reflectance _R_ and transmittance _T_ by using the transfer-matrix method with the ( _n_, _k_ ) profiles obtained in step (i) and the user-specified _d_ values, where the wavelength range selected in the UV-Vis-NIR is 350–1000 nm. For this dataset, 1, 116 ( _n_, _k_ ) profiles were simulated with a python implementation of the one-oscillator TaucLorentz model in step (i), and 10 random thickness values within a range 20 −2000 nm were used in step (ii) for obtaining ( _R_, _T_ ) spectra. _Semi-synthetic dataset:_ There involves two steps in preparing the semi-synthetic data: (i) obtain refractive indices _n_ and _k_ from the literature [1] (for perovskite materials); (ii) obtain the reflectance _R_ and transmittance _T_ by using the transfer-matrix method with the ( _n_, _k_ ) profiles obtained in step (i) and the user-specified _d_ values, where the wavelength range selected in the UV-Vis-NIR is 350–1000 nm. For this dataset, a set of 18 distinct ( _n_, _k_ ) profiles were selected from the literature in step (i), and 15, 640 ( _R_, _T_ ) spectra were simulated with a python Table 1. Obtaining reflectance and transmittance spectra for different data types. The film thickness in experimental data are measured using combinations of the process variables (M, rpm). Further details are available in the Data Curation section. <u>Type</u> <u>Optical Constants (</u> _<u>n</u>_ <u>,</u> _<u>k</u>_ <u>)</u> <u>Thickness (</u> _<u>d</u>_ <u>)</u> <u>Spectra (</u> _<u>R</u>_ <u>,</u> _<u>T</u>_ <u>)</u> Fully-synthetic <u>Data</u> Semi-synthetic <u>Data</u> 18 varieties of ( _n_, _k_ ) profiles from literature <u>[1]</u> 1116 varieties of ( _n_, _k_ ) profiles simulated random values within a range: 10 −2010 nm calculation method: transfer <u>matrix</u> incremental values within a range: 10 −2010 nm calculation method: transfer <u>matrix</u> Experimental Data metal-oxides: ITO, NiO perovskite: MAPbI3 concentration (M): 0.5, 1.25, 1.5 coating speed (rpm): 3000, spectrophotometric measurements <u>6000</u> [https://doi.org/10.1371/journal.pone.0276555.t001](https://doi.org/10.1371/journal.pone.0276555.t001) [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 7 / 21 PLOS ONE Inverse solution with evolutionary algorithm implementation of the transfer-matrix method by assigning thickness values _d_ in a range 10 −2010 nm with an increment of 1 nm. Unlike the fully-synthetic dataset, the semi-synthetic dataset only requires one-step simulation, i.e., the simulation of ( _R_, _T_ ) spectra using the transfer-matrix method. _Experimental dataset:_ The metal-oxide films, ITO and NiO, are sputtered via physical vapor deposition (PVD) on a glass substrate using an _FHR SV-540_ in-line sputtering tool. The MAPbI3 perovskite film is deposited on a glass substrate with two process variables affecting thickness, which are the concentration of the perovskite precursor solution (PbI2 and MAI with molar ratio of 1:1) and the spin coating speed. We conduct two characterizations: (1) spectrophotometry (UV-Vis) with an _Agilent Cary 7000 UV-Vis-NIR Spectrophotometer_ [45], to obtain the optical reflection and transmission, and (2) profilometry with an _KLA Tencor P-_ _16 + Plus Stylus Profiler_, to obtain the thickness of the deposited films. The extinction coefficient of a material is its characteristic/intrinsic property. In the present study, we have considered a variety of materials, including hypothetical and realistic metaloxides and MAPbI3 perovskites. Each material’s extinction coefficient has a specific maximum and minimum. Considering various material samples used in the current data sets (fully-synthetic, semi-synthetic and experimental), the maximum and the minimum of all the extinction coefficients are 2.0 and 0.00, respectively. Note that the extinction coefficients in the semi-synthetic and experimental data sets are more realistic than that of the fully-synthetic data set, which never go beyond the peak value of 1.5. Results _Implementation Aspects:_ During the implementation for extracting different films’ thickness and optical constants, wavelength (λ) is considered as the independent variable. The reflectance and transmittance spectra are measured for a wavelength range of 350 to 1000 nm. The inverse problem of determining _d_, _n_ (λ), _k_ (λ) from _R_, _T_ is not unique. So, there is a risk that an optimization algorithm unravels solutions that do not make sense physically. To mitigate this issue, we pose bounds on the decision variables involved in TLO and GO models such that negative _n_ and _k_ are always discouraged during the optimization process. The decision variables associated with the TLO ensemble model, i.e. _Ai_, _E_ 0 _i_, _Ci_, _Eg_, _�_ 1, _d_, are selected from a bounded search space: {0, 100}, {0, 10}, {0, 10}, {0, 5}, {0, 2}, {20, 2000}. In TL ensemble model, 2, 3 and 4, 5 oscillator components are chosen for type A and B materials, which gives rise to 9, 12 and 15, 18 variables to be optimized, respectively. For each TLO oscillator, two parameter pf f constraints: | _E_ 0 _i_ | _> Eg_ and j _E_ 0 _i_ j _> Ci=_ 2, are maintained during optimization via penalizing pf f 2 f constraints: | _E_ 0 _i_ | _> Eg_ and j _E_ 0 _i_ j _> Ci=_ 2, are maintained during optimization via penalizing the objective function value. The decision variables associated with the GO model, i.e. _Ai_, _μi_, _σi_, n,� _d_, are selected from a bounded space: {0, 5}, {3, 9}, {0.2, 1.1}, {0, 5}, {20, 2000}. In the GO ensemble model, 2, 3 and 4, 5 oscillator components are chosen for type A and B materials, giving rise to 8, 11 and 14, 17 variables to be optimized, respectively. To save function evaluations, a small population size is selected as per CMAES’s default parameter setting [31] that suggests a population of 10 candidates to tackle 8, 9 decision variables, a population of 11 candidates to tackle 11, 12, 14 decision variables and a population of 12 candidates to tackle 15, 17 decision variables in the objective function. _Algorithm Selection:_ We apply two EAs, namely Genetic Algorithm (GA) and Covariance Matrix Adaptation Evolution Strategy (CMAES), for optimizing the parameters associated with the adopted optical dispersion models: TLO ensemble and GO ensemble. To validate the performance of CMAES and GA on TLO as well as GO ensembles, 20 samples are drawn randomly from the fully-synthetic data set. For each sample, three runs are considered with a maximum of 200 iterations and the best result is stored. Table 2 presents a performance [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 8 / 21 PLOS ONE Inverse solution with evolutionary algorithm Table 2. Performance evaluation of local and global optimization algorithms. Algorithm <u>Model</u> LM GA CMAES <u>TLO</u> <u>61.6164</u> <u>3.0407</u> <u>1.3828</u> <u>GO</u> <u>90.5451</u> <u>2.5997</u> <u>2.4713</u> [https://doi.org/10.1371/journal.pone.0276555.t002](https://doi.org/10.1371/journal.pone.0276555.t002) comparison between the employed local and global optimization algorithms, i.e. LM vs. GA vs. CMAES. The average loss is drastically higher in case of the local optimization algorithm than the global optimization algorithms because the former drives only a single point that may easily get trapped by local optima whereas the latter drives a population of candidates to efficiently explore the search space while avoiding local traps. Therefore, the performance of LM very much depends on the initial condition; a better starting point leads to a lower loss value. On the contrary, the performance of EAs like GA or CMAES is less sensitive to the initial population. Table 2 shows that the average loss achieved by CMAES is the lowest. This study bolsters the use of CMAES over GA in the underlying inverse problem. Upon selecting CMAES, it is applied onto the fully-synthetic, the semi-synthetic and the experimental data. Performance on synthetic data For each sample, five runs are considered with a maximum of 1500 iterations and the best result is stored. We cut the run if CMAES reaches a loss value below 0.05 (stopping criteria). A loss value of 0.05 in Eq (8), refers to a mean square error of 0.05/651 = 7.68 _e_ −5 for (1000 −350) + 1 = 651 wavelengths in the given range. A successful occasion is counted if the thickness estimation error is below 10% along with a minimum loss of � 0.17 (saving criteria). _Results using fully-synthetic data:_ CMAES is applied onto 100 samples randomly drawn from the entire synthetic dataset, and a detailed performance evaluation is presented in Table 3. Overall, the performance metrics, _EEd_, _mEEn_ and _mEEk_, suggest less variance in the estimated thickness values and more variance in the estimated refractive indices. The modelbased optimization prove to be effective with TLO-2 and GO-3. The thickness estimates of various samples for the successful occasions, are shown in Fig 2. For three different inverse solutions, the estimated refractive index ( _n_ ) and extinction coefficient ( _k_ ) are shown in Fig 3, which are in conformity with their references. In Table 3, we mention the medians _mEEn_ and _mEEk_ as the associated R <sup>2</sup> -score sequences contain outliers that might skew the average of scores. An outlier refers to an inverse solution where the real or imaginary refractive index estimates have high variances with respect to their reference profiles, although the corresponding thickness estimate is satisfactory. Table 3. Estimation performance of the adopted oscillator ensemble models applied on 100 samples of type A films, picked randomly from the fully-synthetic data set. _EEd_ : R <sup>2</sup> -score between original and estimated thickness values, _mEEn_ : median of R <sup>2</sup> -scores between original and estimated _n_ (λ) arrays; _mEEk_ : median of R <sup>2</sup> -scores between original and estimated _k_ (λ) arrays; _mEER_ : mean of R <sup>2</sup> -scores between original and estimated _R_ (λ) arrays; _mEET_ : mean of R <sup>2</sup> -scores between original and estimated _T_ (λ) arrays; _SR_ : success rate = number of successful occasions ( _nss_ )/ total occasions ( _ns_ ); and _mFE_ : average number of function evaluations: ð1 _=nss_ Þ � <sup>P</sup> <sup>_n_</sup> _i_ ¼ <sup>_ss_</sup> 1 <sup>_FE_</sup> _i_ <sup>; and</sup> <sup>_mFE_</sup> denotes the average number of function evaluations (iterations × population size). Thin Film Optical Model <u>Scores</u> _<u><mark>EEd</mark></u>_ _<u><mark>mEEn</mark></u>_ _<u><mark>mEEk</mark></u>_ _<u><mark>mEER</mark></u>_ _<u><mark>mEET</mark></u>_ _<u><mark>SR</mark></u>_ _<u><mark>mFE</mark></u>_ type A <u>TLO -2</u> <u>0.99502</u> <u>0.90654</u> <u>0.99779</u> <u>0.93573</u> <u>0.98083</u> <u>0.62</u> <u>228.32</u> <u>TLO -3</u> <u>0.99500</u> <u>0.94185</u> <u>0.99637</u> <u>0.96052</u> <u>0.98018</u> <u>0.57</u> <u>266.59</u> <u>GO -2</u> <u>0.99884</u> <u>-1.41127</u> <u>0.76782</u> <u>0.94592</u> <u>0.87954</u> <u>0.23</u> <u>294.87</u> <u>GO -3</u> <u>0.99627</u> <u>0.25544</u> <u>0.95294</u> <u>0.96604</u> <u>0.99185</u> <u>0.27</u> <u>558.15</u> [https://doi.org/10.1371/journal.pone.0276555.t003](https://doi.org/10.1371/journal.pone.0276555.t003) [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 9 / 21 PLOS ONE Inverse solution with evolutionary algorithm Fig 2. Visual representation of the actual vs. estimated thickness values for the successful occasions reported in Tables <u>3 and 4: (a) thickness estimates of type A films, (b) thickness estimates of type B films.</u> [https://doi.org/10.1371/journal.pone.0276555.g002](https://doi.org/10.1371/journal.pone.0276555.g002) _Results using semi-synthetic data:_ CMAES is applied onto 100 samples randomly drawn from the semi-synthetic dataset, and a detailed performance evaluation is presented in Table 4. Overall, _EEd_ is quite good although _mEEn_ and _mEEk_ are slightly worse. The model-based optimization prove to be effective with TLO-4 and GO-5. The thickness estimates of various samples for the successful occasions are shown in Fig 2. For three different inverse solutions, the estimated refractive index ( _n_ ) and extinction coefficient ( _k_ ) in Fig 4 exhibit a good agreement with the original profiles. To verify the robustness of the proposed method against measurement uncertainty, we inject normally distributed random disturbances into the reflectance and transmittance data of a _d_ = 1350 nm thick perovskite film and run the optimizer to determine the respective inverse solutions. A performance comparison with different levels of measurement noise, i.e. noise _m_, is shown in Fig 5. As per Fig 5(a), the number of iterations required by the optimizer increases as the noise level increases from 5% to 10% of the ( _R_, _T_ ) data. Without any noise, the optimizer takes 238 iterations to reach the global minimum with an estimation error _<_ 0.05. With 5% noise _m_, the optimizer is able to minimize the estimation error below the threshold 0.05 in 367 iterations, however, with 10% noise _m_, the error is 0.201 after 1500 iterations. The retrieved thickness estimates are: 1352.63, 1350.33, 1352.26 with 0%, 5%, 10% noise _m_, respectively. Due to the presence of noise _m_, Fig 5(c) indicates a downward shift in the estimated refractive index and an upward shift in the estimated extinction coefficient for wavelengths below 520 nm. Thus, the proposed method is robust against measurement noise up to certain extent. Performance on experimental data Moreover, the model-based optimization with evolutionary algorithms, GA and CMAES, is used to extract the thickness and the optical constants of a 91 _nm_ thick ITO film and a 99 _nm_ thick MAPbI3 film from the experimentally measured spectra. For each method, the respective optimizers are run ten times and the best results are recorded. The maximum number of allowed iterations is 1000, however, we cut the run if the estimation error goes below 0.05. For two different films, the resulting thickness estimates and the related optimization details are presented in Table 5. The evolution of estimation errors during the optimization process are shown in Fig 6. Even with a small population of 12 candidates, CMAES gives an estimation error of order 10 <sup>−2</sup> in 500 iterations and it reduces faster than that of GA, as supported by Fig 6. For the second film in Table 5, the fitting performance and estimated complex refractive index are shown in Fig 7. In Fig 7(a), TLO fits the spectra better than GO throughout the [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 10 / 21 PLOS ONE Inverse solution with evolutionary algorithm Fig 3. Inverse solutions obtained using the synthetic spectral data of metal-oxide films: (a) Actual and estimated spectra with optimized TLO ensemble; total estimation loss = 0.0260, (b) Actual and estimated optical constants with TLO; actual and estimated thickness = 60.0, 60.26 _nm_, (c) Actual and estimated spectra with optimized GO ensemble; total estimation loss = 0.1011, (d) Actual and estimated optical constants with GO; actual and estimated thickness = 477, 479.71 _nm_, (e) Actual and estimated spectra with optimized TLO ensemble; total estimation <u>loss = 0.0493, (f) Actual and estimated optical constants with TLO; actual and estimated thickness = 1230, 1233.54</u> _<u>nm</u>_ <u>.</u> [https://doi.org/10.1371/journal.pone.0276555.g003](https://doi.org/10.1371/journal.pone.0276555.g003) wavelength range of 350 −1000 nm. Fig 7(c) help visualizing that GO fits the spectra better than TLO in the wavelength range of 350 −500 nm, with an appropriate broadening [46]. These results justify that the model-based optimization with CMAES can produce accurate _d_, _n_ (λ), _k_ (λ) estimates using real data with experimental uncertainty. [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 11 / 21 PLOS ONE Inverse solution with evolutionary algorithm Table 4. Estimation performance of the adopted oscillator ensemble models applied on 100 samples of type B films, picked randomly from the semi-synthetic dataset. Note that the spectral data are in consistent with linear spectrophotometric measurements. Thin Film Optical Model <u>Scores</u> _<u><mark>EEd</mark></u>_ _<u><mark>mEEn</mark></u>_ _<u><mark>mEEk</mark></u>_ _<u><mark>mEER</mark></u>_ _<u><mark>mEET</mark></u>_ _<u><mark>SR</mark></u>_ _<u><mark>mFE</mark></u>_ type B <u>TLO -3</u> <u>0.99528</u> <u>0.79032</u> <u>0.93447</u> <u>0.98572</u> <u>0.99968</u> <u>0.53</u> <u>719.43</u> <u>TLO -4</u> <u>0.99672</u> <u>0.87354</u> <u>0.95219</u> <u>0.98533</u> <u>0.99968</u> <u>0.63</u> <u>755.65</u> <u>TLO -5</u> <u>0.99750</u> <u>0.79227</u> <u>0.94078</u> <u>0.98655</u> <u>0.99969</u> <u>0.48</u> <u>747.08</u> <u>GO -3</u> <u>0.99988</u> <u>-0.17827</u> <u>0.79189</u> <u>0.97610</u> <u>0.99896</u> <u>0.10</u> <u>719.7</u> <u>GO -4</u> <u>0.99996</u> <u>0.30902</u> <u>0.79027</u> <u>0.98416</u> <u>0.99895</u> <u>0.36</u> <u>1161.11</u> <u>GO -5</u> <u>0.99997</u> <u>0.44936</u> <u>0.87493</u> <u>0.98771</u> <u>0.99921</u> <u>0.43</u> <u>1321.56</u> [https://doi.org/10.1371/journal.pone.0276555.t004](https://doi.org/10.1371/journal.pone.0276555.t004) _Point-wise vs. Simultaneous Optimization:_ Earlier research [47] introduced a point-wise unconstrained minimization algorithm (PUMA) that considers finite number of points in a range of wavelengths and makes use of repeated calls to solve the underlying estimation problem. For instance, to extract the thickness and the optical constants of a thin-film from the experimental data, reported in Table 5, the following PUMA calls are made recursively. >puma singl0099b 4 2 10 B 100 0370 0970 3000 1e+100 0 0010 2000 50 0400 950 50 3 5 1 3 5 1 0.10 0.10 0.05 >puma singl0099b 4 2 10 B 100 0370 0970 5000 1.633587e-01 9 0050 0150 01 0400 0700 50 >puma singl0099b 4 2 10 B 100 0370 0970 50000 2.935665e-02 9 0090 0110 01 0450 0650 10 In this case, a quadratic error of 2.9356 _e_ −2 with respect to 100 distinct wavelengths (points) in 350 −1000 nm, is attained by PUMA. The estimated thickness (99 nm) is accurate with reference to the original thickness value (99 nm), though the estimated optical constants in Fig 7(d) do not capture fine transitions and they are not in good agreement with the index profiles found by our proposed method. Moreover, there is a lack of instruction on how to select a range for inflection points in PUMA calls and how many calls are sufficient to solve an inverse problem. _Comparison with Existing Package:_ Furthermore, the proposed method is applied on a literature data ( _R_, _T_ ) to extract the optical constants and the thickness of a Si film [15]. In this case, a population of 50 candidates is leveraged and a minimum loss of 0.02 is selected as the stopping criteria for the CMAES algorithm. The optimal solution is presented in Table 6 and the estimated optical constants are shown in Fig 8. The benefits of the proposed method over the existing Optichar Software (OS) and Clustering Global Optimization (CGO) algorithm, are as follows: (i) In OS, a user has many options (normal, arbitrary dispersion, Sellmeier) for a model-based iterative optimization procedure, however, there are no information available on the decision variables and the optimization algorithm. The proposed method offers clarity on the optimization algorithm and the associated variables; (ii) The effectiveness of CGO depends on the choice of initial intervals of the associated decision variables [35]. It is difficult to explore all the minima with a small initial interval, and on the other hand, a broad initial interval might leave a sharp minimum undetected. Unlike CGO, the CMAES algorithm’s performance is not so sensitive to its parameter bounds and the choice of bounds can be made without requiring much domain knowledge, as shown in Table 6; (iii) Also, CMAES performs faster than CGO and OS as it minimizes the error function with less evaluations (FE), as reported in Table 6. [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 12 / 21 PLOS ONE Inverse solution with evolutionary algorithm Fig 4. Inverse solutions obtained using the semi-synthetic spectral data of MAPbI3 films: (a) Actual and estimated spectra with optimized GO ensemble; total estimation loss = 0.0530, (b) Actual and estimated optical constants with GO; actual and estimated thickness = 62.0, 59.44 _nm_, (c) Actual and estimated spectra with optimized GO ensemble; total estimation loss = 0.0454, (d) Actual and estimated optical constants with GO; actual and estimated thickness = 169.0, 166.53 _nm_, (e) Actual and estimated spectra with optimized TLO ensemble; total estimation loss = 0.0335, (f) Actual and estimated optical constants with TLO; actual and estimated thickness = 1350.0, 1359.86 _<u>nm</u>_ <u>.</u> [https://doi.org/10.1371/journal.pone.0276555.g004](https://doi.org/10.1371/journal.pone.0276555.g004) [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 13 / 21 PLOS ONE Inverse solution with evolutionary algorithm Fig 5. Effect of measurement noise in estimation performance: (a) The top rowpresents noisy spectral data references and estimates, and the bottom row presents the evolution of estimation errors with iterations; the reference and the estimated reflectance and transmittance are in good agreement with each other. The noise level increases from left to right column-wise as 0%, 5%, 10% noise _m_, respectively (b) Estimated spectra vs. wavelength, (c) Estimated optical <u>constants vs. wavelength.</u> [https://doi.org/10.1371/journal.pone.0276555.g005](https://doi.org/10.1371/journal.pone.0276555.g005) Analysis and discussion In Fig 2(a) and 2(b), the optimized TLO ensemble model finds more number of accurate thickness estimates (within 10% of the original values) than the optimized GO ensemble model, which is also supported by Table 3. The thickness estimates are slightly dispersed around their original values for films with _d >_ 1.5 _μm_ . At higher film thickness, the optical constants exhibit a nonlinear dependence commonly observed in earlier research findings [49]. In Fig 3(b), _n_ and _k_ estimates exactly match with the original profiles throughout, however, in Figs 3(d), 4(b) and 4(d), there exist slight differences between the original and estimated _n_, _k_ profiles especially in the low-wavelength regime partially including ultraviolet-visible spectral range. To [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 14 / 21 PLOS ONE Inverse solution with evolutionary algorithm Table 5. Estimation performance of various methods on experimental data. In the present spectrophotometry, light beams fall straight (normally) on the films. Film Method <u>Outcome</u> TLO+CMA GO+CMA TLO+GA GO+GA #1 metal-oxide <u>d (nm)</u> <u>201.19</u> <u>91.76</u> <u>89.33</u> <u>89.04</u> <u>L</u> <u>0.0611</u> <u>0.5399</u> <u>0.2648</u> <u>0.4363</u> <u>iteration</u> <u>1000</u> <u>1000</u> <u>1000</u> <u>1000</u> <u>nFE</u> <u>10000</u> <u>11000</u> <u>10000</u> <u>11000</u> #2 perovskite <u>d (nm)</u> <u>99.05</u> <u>99.33</u> <u>33.05</u> <u>98.76</u> <u>L</u> <u>0.0499</u> <u>0.0499</u> <u>0.2369</u> <u>0.2417</u> <u>iteration</u> <u>600</u> <u>556</u> <u>1000</u> <u>1000</u> <u>nFE</u> <u>7200</u> <u>6672</u> <u>12000</u> <u>12000</u> [https://doi.org/10.1371/journal.pone.0276555.t005](https://doi.org/10.1371/journal.pone.0276555.t005) further inspect this quantitatively, we split the entire wavelength range into two sectors and highlight the estimation performance of the well fitted models as per Tables 3 and 4. - TLO-2 for type A films: For a wavelength range of 350 −500 nm, the estimation metrics are _mEEn_ = 0.41617, _mEEk_ = 0.98999; and for a wavelength range of 500 −1000 nm, the estimation metrics are _mEEn_ = 0.83078, _mEEk_ = 0.99870. - TLO-4 for type B films: For a wavelength range of 350 −500 nm, the estimation metrics are _mEEn_ = −0.47954, _mEEk_ = 0.72331; and for a wavelength range of 500 −1000 nm, the estimation metrics are _mEEn_ = 0.97758, _mEEk_ = 0.95517. The above reported results reveal that the fitting error in _k_ (λ) gets amplified into _n_ (λ) as it propagates through the Kramers-Kronig integration. In the low-wavelength regime, _mEEn_ and _mEEk_ deteriorate for perovskite materials, which could be due to the interaction between multiple inter-band optical transitions [50] or film inhomogeneity [4]. The error metrics reported in Tables 3 and 4 reveal the challenge in achieving a good accuracy of _n_ (λ), _k_ (λ) estimates simultaneously with _d_ . The achieved results justify that the interband transitions for metal-oxide and perovskite materials are well captured by Tauc-Lorentz oscillators. Moreover, the model-based optimization with CMAES can handle measurement uncertainty and extract optical parameters from experimental data, as supported by Table 5 and Fig 7. It is worth noting that a local search algorithm, such as sequential least square Fig 6. Evolution of estimation errors during model-based optimization with CMAES: (a) Error evolution for film 1, <u>(b) Error evolution for film 2 in Table 5.</u> [https://doi.org/10.1371/journal.pone.0276555.g006](https://doi.org/10.1371/journal.pone.0276555.g006) [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 15 / 21 PLOS ONE Inverse solution with evolutionary algorithm Fig 7. Estimated optical constants from the experimentally measured spectra of two different films: (a) Measured vs. estimated spectra for ITO film, (b) Estimated refractive index and extinction coefficient estimates of ITO film. (c) Measured vs. estimated spectra for MAPbI3 film, (d) Estimated refractive index and extinction coefficient estimates of <u>MAPbI3 film.</u> [https://doi.org/10.1371/journal.pone.0276555.g007](https://doi.org/10.1371/journal.pone.0276555.g007) programming (SLSQP from ‘ _scipy.optimize_ ’), can be applied to the estimates found by an EA to further improve the solution accuracy if needed. Inverse problems involve one-to-many mappings and often they are ill-posed [38, 51], therefore, finding exact solutions to such problems is challenging. Further, the difficulty level rises when the inverse solutions are extracted from noisy measurements. The present work demonstrates that the proposed model-based optimization with CMAES does a reasonably good job in extracting accurate inverse solutions. The nature of complex refractive index profiles varies across diverse materials, such as inorganic, organic, and other miscellaneous materials. Thus, the number of oscillator components to be used in an optical ensemble model depends on the type of the concerned material(s), and it is difficult to come up with an universal rule of selecting the same. The current choice is subjective to two types of film materials: metal-oxide and perovskite. To tackle multiple optical transitions in case of MAPbI3 perovskite films, the number of oscillator components is selected as higher than that of metal-oxides films. In general, our solver application can be extended to a variety of materials by adjusting the number of composition elements in the optical dispersion models. The proposed evolutionary optimization approach does not require any prior learning or memory-based mapping. The successful runs take only about a few minutes to find an inverse solution with an i74600M CPU@2.90 GHz processor. The present approach utilizes the spectral data at just one [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 16 / 21 PLOS ONE Inverse solution with evolutionary algorithm Table 6. Performance comparison between the proposed method and the existing methods based on OptiChar software and CGO algorithm. Here, the estimation error is defined according to the reference [15]. Note that the <sup>§</sup> error is calculated with reference to the spectral data [15] generated using a plot digitizer [48], while considering 651 points in the wavelength range of 400 −900 _nm_ . <u>Method</u> <u>Bounds</u> <u>Solution</u> <u>Error [15]</u> _<u><mark>n</mark></u>_ _<u><mark>k</mark></u>_ <u>FE</u> OS × 667.1 0.647 <u>4.427 at 500 nm</u> <u>0.395 at 500 nm</u> × <u>3.809 at 700 nm</u> <u>0.040 at 700 nm</u> CGO _<u>A</u>_ <u>1: 70 −76</u> <u>73.364</u> 0.378 <u>4.487 at 500 nm</u> <u>0.581 at 500 nm</u> 10 <sup>5</sup> _<u>A</u>_ <u>2: 6.5 −12.5</u> <u>9.406</u> 3.789 at 700 nm 0.040 at 700 nm _<u>A</u>_ <u>3: 0.4 −1.4</u> <u>0.832</u> _<u>E</u>_ <u>01: 3.36 −3.96</u> _<u>eV</u>_ <u>3.664</u> _<u>E</u>_ <u>02: −2.24 −1.64</u> _<u>eV</u>_ <u>−1.933</u> _<u>E</u>_ <u>03: −2.74 −2.14</u> _<u>eV</u>_ <u>−2.425</u> _<u>C</u>_ <u>1: 1.7 −2.3</u> <u>1.986</u> _<u>C</u>_ <u>2: 1.15 −1.75</u> <u>1.448</u> _<u>C</u>_ <u>3: 0.15 −0.75</u> <u>0.429</u> _<u>Eg</u>_ <u>: 0.7 −0.9</u> _<u>eV</u>_ <u>0.842</u> _<u>�</u>_ <u>1: 2.28 −2.88</u> <u>2.562</u> _<u>d</u>_ <u>: 660 −680</u> _<u>nm</u>_ <u>670.5</u> Proposed _<u>A</u>_ <u>1: 0 −100</u> <u>13.729</u> §0.004 <u>4.423 at 500 nm</u> <u>0.665 at 500 nm</u> 551 × 50 = 27550 _<u>A</u>_ <u>2: 0 −100</u> <u>96.837</u> 3.829 at 700 nm 0.039 at 700 nm _<u>A</u>_ <u>3: 0 −100</u> <u>31.035</u> _<u>E</u>_ <u>01: −5 −5</u> _<u>eV</u>_ <u>−1.953</u> _<u>E</u>_ <u>02: −5 −5</u> _<u>eV</u>_ <u>3.810</u> _<u>E</u>_ <u>03: −5 −5</u> _<u>eV</u>_ <u>4.714</u> _<u>C</u>_ <u>1: 0 −10</u> <u>1.549</u> _<u>C</u>_ <u>2: 0 −10</u> <u>2.418</u> _<u>C</u>_ <u>3: 0 −10</u> <u>2.504</u> _<u>Eg</u>_ <u>: 0 −5</u> _<u>eV</u>_ <u>0.960</u> _<u>�</u>_ <u>1: 0 −5</u> <u>1.526</u> _<u>d</u>_ <u>: 20 −2000</u> _<u>nm</u>_ <u>664.4</u> [https://doi.org/10.1371/journal.pone.0276555.t006](https://doi.org/10.1371/journal.pone.0276555.t006) Fig 8. Performance comparison between estimation techniques: (a) Measured vs.estimated spectra, (b) Estimated <u>optical constants.</u> [https://doi.org/10.1371/journal.pone.0276555.g008](https://doi.org/10.1371/journal.pone.0276555.g008) [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 17 / 21 PLOS ONE Inverse solution with evolutionary algorithm incident angle of light, however, in future, additional spectral information (at multiple incident angles) can be considered to alleviate the effect of uncertainty in the experimental measurements. Conclusion The proposed model-based optimization with covariance matrix adaptation evolution strategy (CMAES) succeeds in extracting the thickness and the optical constants of metal-oxide and perovskite films from spectrophotometric data using tangible parameters. The employed evolutionary algorithm, CMAES, proves to be efficient in finding globally optimal solutions without spending much function evaluations, and it is robust against measurement uncertainties as well. Overall, the proposed method finds accurate thickness estimates and it can estimate complex refractive indices with multiple transitions. Author Contributions Conceptualization: Rajdeep Dutta, Senthilnath Jayavelu. Data curation: Siyu Isaac Parker Tian, Zhe Liu, Madhavkrishnan Lakshminarayanan, Selvaraj Venkataraj, Yuanhang Cheng, Daniil Bash. Formal analysis: Vijila Chellappan. Investigation: Siyu Isaac Parker Tian, Zhe Liu, Vijila Chellappan, Tonio Buonassisi, Senthil nath Jayavelu. Methodology: Rajdeep Dutta, Siyu Isaac Parker Tian. Project administration: Tonio Buonassisi, Senthilnath Jayavelu. Resources: Selvaraj Venkataraj, Yuanhang Cheng, Daniil Bash, Tonio Buonassisi, Senthilnath Jayavelu. Software: Rajdeep Dutta, Siyu Isaac Parker Tian. Supervision: Vijila Chellappan, Tonio Buonassisi, Senthilnath Jayavelu. Validation: Rajdeep Dutta. Visualization: Rajdeep Dutta, Siyu Isaac Parker Tian, Zhe Liu, Madhavkrishnan Lakshminar ayanan, Selvaraj Venkataraj, Yuanhang Cheng, Daniil Bash. Writing – original draft: Rajdeep Dutta. Writing – review & editing: Siyu Isaac Parker Tian, Madhavkrishnan Lakshminarayanan, Vijila Chellappan, Tonio Buonassisi, Senthilnath Jayavelu. References 1. Loper P, Stuckelberger M, Niesen B, Werner J, Filipic M, Moon S, et al. Complex refractive index spectra of CH3NH3PbI3 perovskite thin films determined by spectroscopic ellipsometry and spectrophotometry. The journal of physical chemistry letters. 2015; [6:66–71. https://doi.org/10.1021/jz502471h PMID:](https://doi.org/10.1021/jz502471h) [26263093](http://www.ncbi.nlm.nih.gov/pubmed/26263093) 2. Nestler P, Helm C. Determination of refractive index and layer thickness of nm-thin films via ellipsometry. Optics Express. 2017; [25: 27077–27085. https://doi.org/10.1364/OE.25.027077 PMID: 29092189](https://doi.org/10.1364/OE.25.027077) 3. Babeva T, Kitova S, Konstantinov I. Photometric methods for determining the optical constants and the thicknesses of thin absorbing films: criteria for precise and unambiguous determination of n, k, and d in a wide spectral range. Applied Optics. 2001; [40:2682–2686. https://doi.org/10.1364/AO.40.002675](https://doi.org/10.1364/AO.40.002675) [PMID: 18357284](http://www.ncbi.nlm.nih.gov/pubmed/18357284) [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 18 / 21 PLOS ONE Inverse solution with evolutionary algorithm 4. Manley P, Yin G, Schmid M. A method for calculating the complex refractive index of inhomogeneous thin films. Journal of Physics D: Applied Physics. 2014; [47:205301. https://doi.org/10.1088/0022-3727/](https://doi.org/10.1088/0022-3727/47/20/205301) [47/20/205301](https://doi.org/10.1088/0022-3727/47/20/205301) 5. Yan W, Mao L, Zhao P, Mertens A, Dottermusch S, Hu H, et al. Determination of complex optical constants and photovoltaic device design of all-inorganic CsPbBr3 perovskite thin films. Optics express. 2020; [28:15706–17. https://doi.org/10.1364/OE.392246 PMID: 32403592](https://doi.org/10.1364/OE.392246) 6. van Eerden M, Jaysankar M, Hadipour A, Merckx T, Schermer JJ, Aernouts T, et al. Optical analysis of planar multicrystalline perovskite solar cells. Advanced Optical Materials. 2017; [18:1700151. https://](https://doi.org/10.1002/adom.201700151) [doi.org/10.1002/adom.201700151](https://doi.org/10.1002/adom.201700151) 7. Ruiz R, Papadimitratos A, Mayer AC, Malliaras GG. Thickness dependence of mobility in pentacene thin-film transistors. Advanced Materials. 2005; [17:1795–1798. https://doi.org/10.1002/adma.](https://doi.org/10.1002/adma.200402077) [200402077](https://doi.org/10.1002/adma.200402077) 8. Yepuri V, Dubey RS, Kumar B. Rapid and economic fabrication approach of dielectric reflectors for energy harvesting applications. Scientific Reports. 2020; [10:1–9. https://doi.org/10.1038/s41598-020-](https://doi.org/10.1038/s41598-020-73052-w) [73052-w PMID: 32985596](https://doi.org/10.1038/s41598-020-73052-w) 9. Nebioglu A, Leon JA, Khudyakov IV. New uv-curable high refractive index oligomers. Industrial & engineering chemistry research. 2008; [47:2155–2159. https://doi.org/10.1021/ie071443f](https://doi.org/10.1021/ie071443f) 10. Pang X, Zhou F. Thermostability and weatherability of tin/tic-ni/mo solar absorption coating by spray method-laser cladding hybrid deposition. Optics and Lasers in Engineering. 2020; [127:105983. https://](https://doi.org/10.1016/j.optlaseng.2019.105983) [doi.org/10.1016/j.optlaseng.2019.105983](https://doi.org/10.1016/j.optlaseng.2019.105983) 11. Piegari A, Masetti E. Thin film thickness measurement: a comparison of various techniques. Thin solid films. 1985; [124:249–257. https://doi.org/10.1016/0040-6090(85)90273-1](https://doi.org/10.1016/0040-6090%0x2885%0x2990273-1) 12. Jan CM, Liu CS, Chen CL, Chen YT. Optical interference system for simultaneously measuring refractive index and thickness of slim transparent plate. Optics and Lasers in Engineering. 2021; [145:106668. https://doi.org/10.1016/j.optlaseng.2021.106668](https://doi.org/10.1016/j.optlaseng.2021.106668) 13. Bash D, Chenardy FH, Ren Z, Cheng JJ, Buonassisi T, Oliveira R, et al. Accelerated automated screening of viscous graphene suspensions with various surfactants for optimal electrical conductivity. Digital Discovery. 2022; [1:139–146. https://doi.org/10.1039/D1DD00008J](https://doi.org/10.1039/D1DD00008J) 14. Bash D, Cai Y, Chellappan V, Wong SL, Yang X, Kumar P, et al. Multi-fidelity high-throughput optimization of electrical conductivity in P3HT-CNT composites. Advanced Functional Materials. 2021; 31 [(36):2102606. https://doi.org/10.1002/adfm.202102606](https://doi.org/10.1002/adfm.202102606) 15. Gao L, Lemarchand F, Lequime M. Reverse engineering from spectrophotometric measurements: performances and efficiency of different optimization algorithms. Applied Physics A. 2012; 108:877–889. [https://doi.org/10.1007/s00339-012-6987-2](https://doi.org/10.1007/s00339-012-6987-2) 16. Babeva T, Kitova S, Konstantinov I. Photometric methods for determining the optical constants and the thicknesses of thin absorbing films: selection of a combination of photometric quantities on the basis of error analysis. Applied Optics. 2001; [40:2675–2681. https://doi.org/10.1364/AO.40.002675 PMID:](https://doi.org/10.1364/AO.40.002675) [18357283](http://www.ncbi.nlm.nih.gov/pubmed/18357283) 17. Katsidis CC, Siapkas DI. General transfer-matrix method for optical multilayer systems with coherent, partially coherent, and incoherent interference. Applied Optics. 2002; [41:3978–3987. https://doi.org/10.](https://doi.org/10.1364/AO.41.003978) [1364/AO.41.003978 PMID: 12099609](https://doi.org/10.1364/AO.41.003978) 18. Lamprecht K, Papousek W, Leising G. Problem of ambiguity in the determination of optical constants of thin absorbing films from spectroscopic reflectance and transmittance measurements. Applied Optics. 1997; [36:6364–6371. https://doi.org/10.1364/AO.36.006364 PMID: 18259490](https://doi.org/10.1364/AO.36.006364) 19. Gao L, Lemarchand F, Lequime M. Exploitation of multiple incidences spectrometric measurements for thin film reverse engineering. Optics express. 2012; [20(14):15734–15751. https://doi.org/10.1364/OE.](https://doi.org/10.1364/OE.20.015734) [20.015734 PMID: 22772265](https://doi.org/10.1364/OE.20.015734) 20. Kuzmenko AB. Kramers-kronig constrained variational analysis of optical data. Review of Scientific Instruments. 2005; [76:083108. https://doi.org/10.1063/1.1979470](https://doi.org/10.1063/1.1979470) 21. Yin G, Merschjann C, Schmid M. The effect of surface roughness on the determination of optical con[stants of cuinse and cugase thin films. Journal of Applied Physics. 2013; 113:213510. https://doi.org/](https://doi.org/10.1063/1.4809550) [10.1063/1.4809550](https://doi.org/10.1063/1.4809550) 22. Chernova E, Pacherova O, Kocourek T, Jelinek M, Dejneka A, Tyunina M. Optical properties of ferroelectric epitaxial K0. 5Na0. 5NbO3 films in visible to ultraviolet range. PloS one. 2016 Apr 13; 11(4): [e0153261. https://doi.org/10.1371/journal.pone.0153261 PMID: 27074042](https://doi.org/10.1371/journal.pone.0153261) 23. Forouhi A, Bloomer I. Optical dispersion relations for amorphous semiconductors and amorphous dielectrics. Physical review B. 1986; [34:7018. https://doi.org/10.1103/PhysRevB.34.7018 PMID:](https://doi.org/10.1103/PhysRevB.34.7018) [9939354](http://www.ncbi.nlm.nih.gov/pubmed/9939354) [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 19 / 21 PLOS ONE Inverse solution with evolutionary algorithm 24. Brimhall N, Herrick N, Allred D, Turley R, Ware M, Peatross J. Measured optical constants of copper from 10 nm to 35 nm. Optics Express. 2009; [17:23873–23879. https://doi.org/10.1364/OE.17.023873](https://doi.org/10.1364/OE.17.023873) [PMID: 20052098](http://www.ncbi.nlm.nih.gov/pubmed/20052098) 25. Siyu Isaac P, Zhe L, Vijila C, Yee-Fun L, Zekun R, Felipe O, et al. Rapid and accurate thin film thickness extraction via uv-vis and machine learning. Proceedings of the 47th IEEE Photovoltaic Specialists Conference. 26. Kwak H, Ryu S, Cho S, Kim J, Yang Y, Kim J. Non-destructive thickness characterisation of 3d multilayer semiconductor devices using optical spectral measurements and machine learning. Light: Advanced Manufacturing. 2021; 2:1–11. 27. Hansen N. The cma evolution strategy: a comparing review. Towards a new evolutionary computation. [2006; 75–102. https://doi.org/10.1007/3-540-32494-1_4](https://doi.org/10.1007/3-540-32494-1_4) 28. Woollam J, Johs B, Herzinger C, Hilfiker J, Synowicki R, Bungay C. Overview of variable-angle spectroscopic ellipsometry (vase): I. basic theory and typical applications. Optical Metrology: A Critical Review. 1999; 10294:1029402. 29. Johs B, Woollam J, Herzinger C, Hilfiker J, Synowicki R, Bungay C. Overview of variable-angle spectroscopic ellipsometry (vase): Ii. advanced applications. Optical Metrology: A Critical Review. 1999; 10294:1029404. 30. More´ JJ. The levenberg-marquardt algorithm: implementation and theory. Numerical analysis. 1978; 105–116. 31. Hansen N. The cma evolution strategy: A tutorial. arXiv preprint. 2016; arXiv:1604.00772. 32. Fujii G., Akimoto Y., Takahashi M., Exploring optimal topology of thermal cloaks by cma-es, Applied Physics Letters [112 (2018) 061108. https://doi.org/10.1063/1.5016090](https://doi.org/10.1063/1.5016090) 33. Liu C, Du WB, Wang WX. Particle swarm optimization with scale-free interactions. PloS one. 2014 May 23; [9(5):e97822. https://doi.org/10.1371/journal.pone.0097822 PMID: 24859007](https://doi.org/10.1371/journal.pone.0097822) 34. Boggs PT, Tolle JW. Sequential quadratic programming. Acta numerica. 1995; [4:1–51. https://doi.org/](https://doi.org/10.1017/S0962492900002518) [10.1017/S0962492900002518](https://doi.org/10.1017/S0962492900002518) 35. Gao L, Lemarchand F, Lequime M. Refractive index determination of SiO2 layer in the UV/Vis/NIR range: spectrophotometric reverse engineering on single and bi-layer designs. Journal of the European Optical Society-Rapid publications. 2013; [8. https://doi.org/10.2971/jeos.2013.13010](https://doi.org/10.2971/jeos.2013.13010) 36. Dorywalski K, Schmidt-Gru¨nd R, Grundmann M. Hybrid ga-gradient method for thin films ellipsometric data evaluation. Journal of Computational Science. 2020; [47:101201. https://doi.org/10.1016/j.jocs.](https://doi.org/10.1016/j.jocs.2020.101201) [2020.101201](https://doi.org/10.1016/j.jocs.2020.101201) 37. Polgar O, Fried M, Lohner T, Barsony I. Comparison of algorithms used for evaluation of ellipsometric measurements random search, genetic algorithms, simulated annealing and hill climbing graphsearches. Surface Science. 2000; [457:157–177. https://doi.org/10.1016/S0039-6028(00)00352-6](https://doi.org/10.1016/S0039-6028%0x2800%0x2900352-6) 38. Hansen N, Ros R, Mauny N, Schoenauer M, Auger A. Impacts of invariance in search: When CMA-ES and PSO face ill-conditioned and non-separable problems. Applied Soft Computing. 2011; 11:5755– [5769. https://doi.org/10.1016/j.asoc.2011.03.001](https://doi.org/10.1016/j.asoc.2011.03.001) 39. Jellison GE Jr, Modine FA. Parameterization of the optical functions of amorphous materials in the interband region. Applied Physics Letters. 1996; [69:371–373. https://doi.org/10.1063/1.118155](https://doi.org/10.1063/1.118155) 40. Forouhi AR, Bloomer I. Optical properties of crystalline semiconductors and dielectrics. Physical review B. 1998; [38:1865–1874. https://doi.org/10.1103/PhysRevB.38.1865](https://doi.org/10.1103/PhysRevB.38.1865) 41. Lucarini V, Saarinen JJ, Peiponen KE, Vartiainen EM. Kramers-kronig relations in optical materials research. Springer Science & Business Media; 2005 Apr. 42. Ohta K, Ishida H. Comparison among several numerical integration methods for kramers-kronig transformation. Applied Spectroscopy. 1988; [42:952–957. https://doi.org/10.1366/0003702884430380](https://doi.org/10.1366/0003702884430380) 43. Canit JC, Billardon M, Badoz JP. Relationship between the real and imaginary parts of the refractive index. JOSA. 1969; [59:1000–1001. https://doi.org/10.1364/JOSA.59.001000](https://doi.org/10.1364/JOSA.59.001000) 44. Korotkov NE, Korotkov AN Integrals related to the error function. Chapman and Hall/CRC; 2020 Mar. 45. MacLeod BP, Parlane FG, Morrissey TD, Ha¨se F, Roch LM, Dettelbach KE, et al. Self-driving laboratory for accelerated discovery of thin-film materials. Science Advances. 2020; [6:eaaz8867. https://doi.org/](https://doi.org/10.1126/sciadv.aaz8867) [10.1126/sciadv.aaz8867 PMID: 32426501](https://doi.org/10.1126/sciadv.aaz8867) 46. Likhachev DV, Malkova N, Poslavsky L. Modified Tauc–Lorentz dispersion model leading to a more accurate representation of absorption features below the bandgap. Thin Solid Films. 2015; 589:844– [851. https://doi.org/10.1016/j.tsf.2015.07.035](https://doi.org/10.1016/j.tsf.2015.07.035) 47. Birgin EG, Chambouleyron I, Martınez JM. Estimation of the optical constants and the thickness of thin films using unconstrained optimization. Journal of Computational Physics. 1999; 151(2):862–880. [https://doi.org/10.1006/jcph.1999.6224](https://doi.org/10.1006/jcph.1999.6224) [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 20 / 21 PLOS ONE Inverse solution with evolutionary algorithm 48. [Rohatgi A. WebPlotDigitizer user manual version 3.4. URL http://arohatgi.info/WebPlotDigitizer/app.](http://arohatgi.info/WebPlotDigitizer/app) 2014:1-8. 49. Qasem A, Mostafa MS, Yakout HA, Mahmoud M, Shaaban ER. Determination of optical bandgap energy and optical characteristics of Cd30Se50S20 thin film at various thicknesses. Optics & Laser Tech[nology. 2022 Apr 1; 148:107770. https://doi.org/10.1016/j.optlastec.2021.107770](https://doi.org/10.1016/j.optlastec.2021.107770) 50. Leguy AM, Azarhoosh P, Alonso MI, Campoy-Quiles M, Weber OJ, Yao J, et al. Experimental and theoretical optical properties of methylammonium lead halide perovskites. Nanoscale. 2016; 8(12):6317– [6327. https://doi.org/10.1039/C5NR05435D PMID: 26477295](https://doi.org/10.1039/C5NR05435D) 51. O’Sullivan F. A statistical perspective on ill-posed inverse problems. Statistical Science. 1986; 1:502– 518. [PLOS ONE | https://doi org/10 1371/journal pone 0276555](https://doi.org/10.1371/journal.pone.0276555) November 30 2022 21 / 21

섹션 본문 35문단 · 36,899자

(제목 없음)

1In this paper, we propose a simple and elegant method to extract the thickness and the optical constants of various films from the reflectance and transmittance spectra in the wavelength range of 350 − 1000 nm. The underlying inverse problem is posed here as an optimization problem. To find unique solutions to this problem, we adopt an evolutionary optimization approach that drives a population of candidate solutions towards the global optimum. An ensemble of Tauc-Lorentz Oscillators (TLOs) and an ensemble of Gaussian Oscillators (GOs), are leveraged to compute the reflectance and transmittance spectra for different candidate thickness values and refractive index profiles. This model-based optimization is solved using two efficient evolutionary algorithms (EAs), namely genetic algorithm (GA) and covariance matrix adaptation evolution strategy (CMAES), such that the resulting spectra simultaneously fit all the given data points in the admissible wavelength range. Numerical results validate the effectiveness of the proposed approach in estimating the optical parameters of interest. OPEN ACCESS Citation: Dutta R, Tian SIP, Liu Z, Lakshminarayanan M, Venkataraj S, Cheng Y, et al. (2022) Extracting film thickness and optical constants from spectrophotometric data by evolutionary optimization. PLoS ONE 17(11): e0276555. https://doi.org/10.Ellipsometry measures how the polarization of a light beam changes on reflection from a surface, whereas Spectrophotometry measures reflectance and/or transmittance of light through thin-films and substrates as function(s) of wavelength. The spectral information, reflectance and/or transmittance data, are fed to a numerical solver for extracting thickness and refractive index and/or extinction coefficient[3,4]. The information on film thickness and optical constants play a major role in selecting suitable materials or processes for different applications such as solar cells, sensors, displays and window coatings. For example, the optical characterization of perovskite thin-films is a key requirement in photovoltaic device design[5,6]. To determine the complex refractive indices of CsPbBr 3 thin-films [5], researchers have used variable-angle spectroscopic ellipsometry measurements and described the associated bulk planar CsPbBr 3 layer with Tauc-Lorentz and Gaussian oscillator models for VASE fitting technique. For optical analysis of semitransparent and opaque solar cells, the complex refractive indices of CH 3 NH 3 PbI 3 films can be determined by using a combination of variable-angle spectroscopic ellipsometry and spectrophotometry data[6]. Film thickness influences micro-scale physics of electron mobility in thin-film transistors [7] to macro-scale physics of operating characteristics of solar cells[5]. Thickness variations by adjusting the catalyst concentration or by changing the heat-treatment process can be leveraged to shift the reflection band of a film from narrow to broad wavelength region, which benefits in fabricating dielectric reflectors for solar cells and bandpass filters for optical instruments[8]. Moreover, complex refractive index profiles and film thickness are crucial in designing appropriate polymers to produce effective lenses and ultraviolet (UV)-absorbing coatings [9, 10].Computationally, it is not trivial to achieve accurate estimates of all the optical parameters together[11,12], since the inverse problem of retrieving the optical characteristics of a film from spectral information is highly non-linear and often ill-conditioned. Accurate measurement of thickness using experimental methods is a time-consuming process in practice[13,14]. Usually, the most accurate thickness is attained while compromising accuracy of the estimated refractive index[15,16]. Moreover, different methods perform well in different spectral ranges[16,17]. Two inherent difficulties in an inverse photometric problem are: (a) missing information induced by the experimental uncertainty or film imperfections[12], and (b) multi-solution predicament due to the fact that the measured intensities might be compatible with other plausible combinations of optical constants[18]. To dissolve the ambiguity in the parameter extraction process, previous researchers [16] exploited reflectance and transmittance spectral measurements at two distinct incident angles of light. In[19], researchers established that multiple incidence angles are not necessary for the optical analysis of a single layer, though it is crucial in analyzing multi-layer stacks with a global optimization algorithm. Thus, there emerges a need of developing efficient methods for rapid and accurate determination of the thickness and the optical constants of thin-films.Several commercial packages of thin-film optical software, such as TFCalc, Filmwizard, Optilayer, and Essential McLeod, provide advanced modelling for optical dispersion laws and use fitting methods to determine the thickness and complex refractive index[15]. However, these packages cannot always find satisfactory solutions, especially when the initial candidate is far away from the desired solution. Due to this fact, previous researchers found the accuracy of estimates concerning in case of a strongly absorbing material like silicon in the visible range[15]. In order to extract the complex dielectric functions of different types of samples like thinfilms and anisotropic crystals from optical spectra, RefFIT [20] offers a variational Kramers-Kronig constrained fitting approach that fits all the measured spectral data points simultaneously, which requires minimal readaptation in different experimental situations. A recent development, RefDex [4,21]provided an interactive fitting procedure to extract the complex refractive index of a film with known thickness from reflectance and transmittance data. ThisPLOS ONEInverse solution with evolutionary algorithm PLOS ONE | https://doi.org/10.

Introduction

2The determination of a thin-film's thickness and complex refractive index over a broad spectral range is carried out using either ellipsometric or spectrophotometric analysis [1,2]. inverse problem is not unique and there exist multiple solutions that minimize the same loss function [4], which mandates imposing physical constraints to determine meaningful solutions. The major concern is that the above-mentioned software-packages do not offer much flexibility on the choice of parameters, such as the number of oscillators and the bounds on model coefficients, involved in their respective optimization procedures. For instance, Opti-Char allows an user to set lower and upper limits on the thickness, the refractive index, and the extinction coefficient, and it offers a variety of models like normal, anomal or arbitrary dispersion, and Sellmeier [15]; however, the number of variables and the optimization algorithm used in the estimation process remain unknown to an user [15]. The refractive index and extinction coefficient profiles can be substantially different for various materials [22,23]. For instance, consider some of the metal-oxides; the complex refractive indices of the iron-oxides, Hematite and Magnetite, exhibit more peaks and valleys (optical transitions) than that of the copper oxides [24]. Due to this fact, it is difficult for a supervised learning based estimation approach to adapt to a variety of materials [25]. Recently, a machine learning model has been developed to predict the correlation between spectral data and thickness; however, this approach was suitable for thickness characterization of dielectric materials but not materials with high extinction coefficients (like titanium nitride: TiN) [26]. To attain generality, there arises a need for supervised learning along with knowledge transfer techniques. On the contrary, an evolutionary optimization approach has potential to offer flexible solutions through swarm-based efficient search space exploration [27], while circumventing intense data curation and training requirements involved in traditional supervised learning techniques [26]. Hence, in the present work, we pose the underlying inverse problem as an optimization problem and solve it with evolutionary algorithms [27].

3Earlier studies explored optimization-based fitting procedures to extract optical constants using spectrophotometric data. Woollam et al. [28,29] developed a solver that allowed sequential addition of various optical models to minimize fitting errors for extracting refractive index and thickness. A local optimizer, Levenberg-Marquardt (LM) algorithm [30], was utilized in their approach, which gradually improved the solution accuracy. The optimizer starts from an initial guess and moves it to a feasible local minimum until another model addition becomes necessary for further reduction in the fitting error. Swarm-based evolutionary algorithms (EAs) are robust and good at finding the global optimum even for high-dimensional problems [31][32][33], whereas single point based gradient descent variant algorithms face challenges due to local entrapment and require good initial guesses to reach the global optimum [30,34]. Moreover, multiple local search procedures from different starting points had been utilized in the Clustering Global Optimization (CGO) algorithm to estimate film thickness and optical constants from spectrophotometric data [15,35]. The estimation accuracy of CGO was good for SiO 2 and Ta 2 O 5 films, although it's efficiency depends on a balanced choice of the starting intervals [35]. EAs have also been exploited to determine the optical parameters of interest [36]. Genetic algorithm (GA) and simulated annealing (SA) have been exploited in the ellipsometric evaluations, where the traditional gradient-based LM method faces difficulty in tackling the related hilly error surfaces [37]. Gao et al. [15] applied GA and SA on an ensemble of Tauc-Lorentz oscillators to extract the real and imaginary parts of complex refractive index of a film with known thickness from reflectance and transmittance spectra. However, their approach required a large population to determine the desired inverse solutions. In EAs, a large population size enhances the search space exploration and helps in avoiding local optima at the cost of computational overhead.

4The present work aims to determine various thin-films' complex refractive indices and thickness values with the help of EAs, such as GA and CMAES. Recently, covariance matrix adaptation evolution strategy (CMAES) has proved to be reliable in solving deterministic and stochastic global optimization problems even with a small population size due to the attributes like step-size adaptation, noise effect reduction, and invariance under coordinate systems [27]. Moreover, CMAES exhibited efficient performance on high-dimensional and ill-conditioned optimization problems by utilizing an isotropic (rotation-invariant) evolution path [38]. Further, the performance of the proposed method is validated on metal-oxide and perovskite films, and its computational effectiveness is justified in comparison with the existing methods. The related optical dispersion models and the proposed optimization procedure to solve the addressed inverse problem are described in Physics to Mathematics section. The different types of data used in the present study are illustrated in Data Curation section. The achieved inverse solutions, thickness values and optical constants, of different films are presented in the Results section along with analysis and discussion. Finally, the benefits of the proposed approach are summarized in the Conclusion.

Physics to mathematics

5In our spectrophotometric analysis, the optical parameters to be extracted are: thickness (d), refractive index (n), and extinction coefficient (k), and the measured data are: reflectance (R) and transmittance (T) spectra. The film thickness (d) is a scalar quantity, and the complex refractive index (n + ik) is composed of real and imaginary constituents as functions of wavelengths. The real part of a complex refractive index (n) describes the propagation velocity of the incident light within the film material, and the imaginary part of it (k) concerns about how much of the light gets absorbed in the medium. This study aims to solve the inverse problem of determining {d, n, k} from {R, T}. In the following, we first explain the use of optical oscillator models to emulate complex refractive index and then dive into the problem formulation.

Forward calculations via oscillator models

6The complex dielectric function, �(ω) = � 1 (ω) + i � 2 (ω), is analytic in the upper half of the complex ω plane [23,39], where o ¼ c l denotes the frequency of the incident light with λ being its wavelength and c being the speed of light in the air. The associated photon energy is represented by E = hω; h is Planck's constant. The analytic behavior of �(ω) stems from the principle of causality [23,40]. Consequently, the imaginary and real parts of it are interconnected by the Kramers-Kronig relation [40,41]. Using this relation [39], one can determine � 1 from � 2 as follows.

7where P denotes Cauchy's principle value integral [23]. The complex dielectric function and complex refractive index are related by: � 1 + i� 2 = (n + ik) 2 , which leads to

8Substituting Eq (2) into Eq (1), unfolds the dispersion relation [23,42] between the real (n) and imaginary (k) parts of a complex refractive index as

9To accurately evaluate n(ω) from k(ω), the above integration (3) requires to be solved for all frequencies ranging from zero to infinity [23,40]. However, from an experimental perspective, it is only feasible to address a finite range of frequencies. A numerical integration with such a limited spectral range gives erroneous results [42]. Instead, if the functional form of k(ω) is known for all frequencies, then the functional form of n(ω) can be determined elegantly [23]. Therefore, oscillator models are utilized to generate tractable continuous function approximations. In this research, Tauc-Lorentz and Gaussian oscillator models are taken into account, as described below.

10Ensemble of Tauc-Lorentz Oscillators: Consider a material with the complex dielectric function: � = � 1 + i� 2 . According to an ensemble of N Tauc-Lorentz (TL) oscillators [15], the imaginary part of the complex dielectric function can be expressed as

11where E 0i , E g , C i , A i represent the peak transition energy, the band gap energy, the broadening parameter, and the factor involving optical transition matrix elements for the i'th TL oscillator, respectively; ω g and ω 0i are the respective frequencies corresponding to the energies E g and E 0i .

12To calculate � 1 from � 2 , let us now recall the Kramers-Kronig relation (1). In practice, the lower limit of the integral in Eq (1) is chosen as ω g instead of 0 because the Tauc-Lorentz model requires � 2 to be zero for photon energies below the band gap [39]. Note that � 1 (1)>1 is a high frequency dielectric constant to prevent � 1 ! 0 when E < E g . The formulation of these optical functions was first proposed by Forouhi and Bloomer for amorphous semiconductors and insulators [23], and later, extended for crystalline semiconductors and metals [40]. According to the seminal work by Jellison and Modine [39], � 1 (ω) can be derived from Eq (1) by exploiting the continuous approximation (4) of � 2 (ω). These � 1 and � 2 are then used to solve Eq (2) for all ω, so that n and k can be deduced as a function of (3N + 3) parameters, where 3N parameters come from (E 0i , C i , A i ) for i 2 [1, N] and the rest three parameters are: d, ω g , and � 1 (1). The number of decision variables involved in optimizing an TL ensemble model are: (3N + 3).

13Ensemble of Gaussian Oscillators: The imaginary r-index profile according to an ensemble of Gaussian oscillators, is given by

14where (3) to the continuous approximation (5) of k(ω), which takes shape as

15where ErfiðÀ W i Þ ¼ 2 ffi ffi p p R À W i 0 exp x 2 dx represents the i th imaginary error function [44]; n(1) = 1 refers to k(1) = 0 and n(1)>1 refers to k(1)6 ¼0 [40,43]. Here, the Gaussian distributions are utilized to retrieve n and k directly instead of deriving them from � 1 and � 2 . An ensemble of Gaussian oscillators (GO) composed of N Gaussian distributions, deals with 3N parameters as A i , μ i , σ i for i 2 [1, N] and two more parameters as n and d. Thus, the total number of decision variables involved in optimizing an GO ensemble model are: (3N + 2).

16Note that the above optical constants, n(ω) and k(ω), are expressed as n(λ) and k(λ), respectively, during the numerical implementation. Since o ¼ c l , the order of (n, k) sequences gets reversed when the independent variable is changed from ω to λ. The forward calculation of {R calc (λ), T calc (λ)} for a tuple {d, k(λ), n(λ)} is carried out by the transfer-matrix method [17]. The transfer-matrix method is used to calculate the forward and backward propagating electric fields in smooth homogeneous films, which relies on the superposition of the induced electric fields. The overall transfer matrix is obtained by multiplying a matrix that quantifies the change in field due to the light waves propagating through an interface (air-to-film) with another matrix that quantifies the change in field due to the same waves propagating within a layer (film).

Inverse problem formulation

17We now explain how the underlying inverse problem is posed as an optimization problem. An overview of the associated forward and inverse processes is depicted in Fig 1. Optimization problem. The optimization problem is defined as In Eq (8), L is the total loss containing differences in the experimentally measured reflectance and transmittance data {R meas , T meas } from their theoretically calculated values {R calc , T calc }, for all wavelengths. The admissible range of the wavelength, i.e. {λ lb , λ ub }, depends on the experimental infrastructure. The decision variables associated with the optimization problem, are: thickness d, real r-index profile n(λ), and imaginary r-index profile k(λ). Thickness candidates are directly passed to the solver, whereas n and k candidates are passed in terms of the oscillator model parameters. The evaluation of {R calc (λ), T calc (λ)} for a candidate solution {d, n(λ), k(λ)} has been discussed in the preceding section.

18In order to make the optimization process computationally efficient, we generate candidate solutions within a search space restricted by an intrinsic correlation [23,42] between the optical parameters of interest. The thickness candidates are chosen from a reasonable range of scalars. The imaginary and real refractive index candidate profiles are provided by the adopted oscillator models. A formulation over a range of wavelengths is computationally more tractable than a formulation at distinct wavelengths. In a discrete approach, the search space increases with the number of wavelengths and it is cumbersome to determine a physically meaningful refractive index (and/or extinction coefficient) profile out of every solution point at each wavelength, while satisfying the associated constraints. However, our proposed optimization approach generates the candidate solutions from a search space restricted by the Kramers-Kronig relation and fits all the given spectral data points simultaneously.

Data curation

19The proposed methodology is implemented on a diverse data set for two kinds of film materials: (A) metal-oxide, and (B) perovskite (MAPbI 3 ). Different types of data used in the present study are summarized in Table 1, and the details are described below.

20Fully-synthetic dataset: There involves two steps in preparing the fully-synthetic data: (i) emulate refractive indices n and k by using a single Tauc-Lorentz oscillator (commonly used for metal oxide materials), and (ii) obtain the reflectance R and transmittance T by using the transfer-matrix method with the (n, k) profiles obtained in step (i) and the user-specified d values, where the wavelength range selected in the UV-Vis-NIR is 350-1000 nm. For this dataset, 1, 116 (n, k) profiles were simulated with a python implementation of the one-oscillator Tauc-Lorentz model in step (i), and 10 random thickness values within a range 20 − 2000 nm were used in step (ii) for obtaining (R, T) spectra.

21Semi-synthetic dataset: There involves two steps in preparing the semi-synthetic data: (i) obtain refractive indices n and k from the literature [1] (for perovskite materials); (ii) obtain the reflectance R and transmittance T by using the transfer-matrix method with the (n, k) profiles obtained in step (i) and the user-specified d values, where the wavelength range selected in the UV-Vis-NIR is 350-1000 nm. For this dataset, a set of 18 distinct (n, k) profiles were selected from the literature in step (i), and 15, 640 (R, T) spectra were simulated with a python implementation of the transfer-matrix method by assigning thickness values d in a range 10 − 2010 nm with an increment of 1 nm. Unlike the fully-synthetic dataset, the semi-synthetic dataset only requires one-step simulation, i.e., the simulation of (R, T) spectra using the transfer-matrix method. Experimental dataset: The metal-oxide films, ITO and NiO, are sputtered via physical vapor deposition (PVD) on a glass substrate using an FHR SV-540 in-line sputtering tool. The MAPbI 3 perovskite film is deposited on a glass substrate with two process variables affecting thickness, which are the concentration of the perovskite precursor solution (PbI 2 and MAI with molar ratio of 1:1) and the spin coating speed. We conduct two characterizations: (1) spectrophotometry (UV-Vis) with an Agilent Cary 7000 UV-Vis-NIR Spectrophotometer [45], to obtain the optical reflection and transmission, and (2) profilometry with an KLA Tencor P-16 + Plus Stylus Profiler, to obtain the thickness of the deposited films.

22The extinction coefficient of a material is its characteristic/intrinsic property. In the present study, we have considered a variety of materials, including hypothetical and realistic metaloxides and MAPbI 3 perovskites. Each material's extinction coefficient has a specific maximum and minimum. Considering various material samples used in the current data sets (fully-synthetic, semi-synthetic and experimental), the maximum and the minimum of all the extinction coefficients are 2.0 and 0.00, respectively. Note that the extinction coefficients in the semi-synthetic and experimental data sets are more realistic than that of the fully-synthetic data set, which never go beyond the peak value of 1.5.

Results

23Implementation Aspects: During the implementation for extracting different films' thickness and optical constants, wavelength (λ) is considered as the independent variable. The reflectance and transmittance spectra are measured for a wavelength range of 350 to 1000 nm. The inverse problem of determining d, n(λ), k(λ) from R, T is not unique. So, there is a risk that an optimization algorithm unravels solutions that do not make sense physically. To mitigate this issue, we pose bounds on the decision variables involved in TLO and GO models such that negative n and k are always discouraged during the optimization process. The decision variables associated with the TLO ensemble model, i.e. Algorithm Selection: We apply two EAs, namely Genetic Algorithm (GA) and Covariance Matrix Adaptation Evolution Strategy (CMAES), for optimizing the parameters associated with the adopted optical dispersion models: TLO ensemble and GO ensemble. To validate the performance of CMAES and GA on TLO as well as GO ensembles, 20 samples are drawn randomly from the fully-synthetic data set. For each sample, three runs are considered with a maximum of 200 iterations and the best result is stored. Table 2 presents a performance comparison between the employed local and global optimization algorithms, i.e. LM vs. GA vs. CMAES. The average loss is drastically higher in case of the local optimization algorithm than the global optimization algorithms because the former drives only a single point that may easily get trapped by local optima whereas the latter drives a population of candidates to efficiently explore the search space while avoiding local traps. Therefore, the performance of LM very much depends on the initial condition; a better starting point leads to a lower loss value. On the contrary, the performance of EAs like GA or CMAES is less sensitive to the initial population. Table 2 shows that the average loss achieved by CMAES is the lowest. This study bolsters the use of CMAES over GA in the underlying inverse problem. Upon selecting CMAES, it is applied onto the fully-synthetic, the semi-synthetic and the experimental data.

Performance on synthetic data

24For each sample, five runs are considered with a maximum of 1500 iterations and the best result is stored. We cut the run if CMAES reaches a loss value below 0.05 (stopping criteria). A loss value of 0.05 in Eq (8), refers to a mean square error of 0.05/651 = 7.68e − 5 for (1000 − 350) + 1 = 651 wavelengths in the given range. A successful occasion is counted if the thickness estimation error is below 10% along with a minimum loss of � 0.17 (saving criteria).

25Results using fully-synthetic data: CMAES is applied onto 100 samples randomly drawn from the entire synthetic dataset, and a detailed performance evaluation is presented in Table 3. Overall, the performance metrics, EE d , mEE n and mEE k , suggest less variance in the estimated thickness values and more variance in the estimated refractive indices. The modelbased optimization prove to be effective with TLO-2 and GO-3. The thickness estimates of various samples for the successful occasions, are shown in Fig 2. For three different inverse solutions, the estimated refractive index (n) and extinction coefficient (k) are shown in Fig 3, which are in conformity with their references. In Table 3, we mention the medians mEE n and mEE k as the associated R 2 -score sequences contain outliers that might skew the average of scores. An outlier refers to an inverse solution where the real or imaginary refractive index estimates have high variances with respect to their reference profiles, although the corresponding thickness estimate is satisfactory. Results using semi-synthetic data: CMAES is applied onto 100 samples randomly drawn from the semi-synthetic dataset, and a detailed performance evaluation is presented in Table 4. To verify the robustness of the proposed method against measurement uncertainty, we inject normally distributed random disturbances into the reflectance and transmittance data of a d = 1350 nm thick perovskite film and run the optimizer to determine the respective inverse solutions. A performance comparison with different levels of measurement noise, i.e. noise m , is shown in Fig 5. As per Fig 5(a), the number of iterations required by the optimizer increases as the noise level increases from 5% to 10% of the (R, T) data. Without any noise, the optimizer takes 238 iterations to reach the global minimum with an estimation error <0.05. With 5% noise m , the optimizer is able to minimize the estimation error below the threshold 0.05 in 367 iterations, however, with 10% noise m , the error is 0.201 after 1500 iterations. The retrieved thickness estimates are: 1352.63, 1350.33, 1352.26 with 0%, 5%, 10% noise m , respectively. Due to the presence of noise m , Fig 5(c) indicates a downward shift in the estimated refractive index and an upward shift in the estimated extinction coefficient for wavelengths below 520 nm. Thus, the proposed method is robust against measurement noise up to certain extent.

Performance on experimental data

26Moreover, the model-based optimization with evolutionary algorithms, GA and CMAES, is used to extract the thickness and the optical constants of a 91 nm thick ITO film and a 99 nm thick MAPbI 3 film from the experimentally measured spectra. For each method, the respective optimizers are run ten times and the best results are recorded. The maximum number of allowed iterations is 1000, however, we cut the run if the estimation error goes below 0.05. For two different films, the resulting thickness estimates and the related optimization details are presented in Table 5. The evolution of estimation errors during the optimization process are shown in Fig 6. Even with a small population of 12 candidates, CMAES gives an estimation error of order 10 −2 in 500 iterations and it reduces faster than that of GA, as supported by Fig 6. For the second film in Table 5, the fitting performance and estimated complex refractive index are shown in Fig 7. In Fig 7(a), TLO fits the spectra better than GO throughout the wavelength range of 350 − 1000 nm. Fig 7(c) help visualizing that GO fits the spectra better than TLO in the wavelength range of 350 − 500 nm, with an appropriate broadening [46]. These results justify that the model-based optimization with CMAES can produce accurate d, n(λ), k(λ) estimates using real data with experimental uncertainty. Point-wise vs. Simultaneous Optimization: Earlier research [47] introduced a point-wise unconstrained minimization algorithm (PUMA) that considers finite number of points in a range of wavelengths and makes use of repeated calls to solve the underlying estimation problem. For instance, to extract the thickness and the optical constants of a thin-film from the experimental data, reported in Table 5, the following PUMA calls are made recursively. In this case, a quadratic error of 2.9356e − 2 with respect to 100 distinct wavelengths (points) in 350 − 1000 nm, is attained by PUMA. The estimated thickness (99 nm) is accurate with reference to the original thickness value (99 nm), though the estimated optical constants in Fig 7(d) do not capture fine transitions and they are not in good agreement with the index profiles found by our proposed method. Moreover, there is a lack of instruction on how to select a range for inflection points in PUMA calls and how many calls are sufficient to solve an inverse problem.

27Comparison with Existing Package: Furthermore, the proposed method is applied on a literature data (R, T) to extract the optical constants and the thickness of a Si film [15]. In this case, a population of 50 candidates is leveraged and a minimum loss of 0.02 is selected as the stopping criteria for the CMAES algorithm. The optimal solution is presented in Table 6 and the estimated optical constants are shown in Fig 8. The benefits of the proposed method over the existing Optichar Software (OS) and Clustering Global Optimization (CGO) algorithm, are as follows: (i) In OS, a user has many options (normal, arbitrary dispersion, Sellmeier) for a model-based iterative optimization procedure, however, there are no information available on the decision variables and the optimization algorithm. The proposed method offers clarity on the optimization algorithm and the associated variables; (ii) The effectiveness of CGO depends on the choice of initial intervals of the associated decision variables [35]. It is difficult to explore all the minima with a small initial interval, and on the other hand, a broad initial interval might leave a sharp minimum undetected. Unlike CGO, the CMAES algorithm's performance is not so sensitive to its parameter bounds and the choice of bounds can be made without requiring much domain knowledge, as shown in Table 6; (iii) Also, CMAES performs faster than CGO and OS as it minimizes the error function with less evaluations (FE), as reported in Table 6. Table 4. Estimation performance of the adopted oscillator ensemble models applied on 100 samples of type B films, picked randomly from the semi-synthetic dataset. Note that the spectral data are in consistent with linear spectrophotometric measurements.

Analysis and discussion

28In Fig 2(a) and 2(b), the optimized TLO ensemble model finds more number of accurate thickness estimates (within 10% of the original values) than the optimized GO ensemble model, which is also supported by Table 3. The thickness estimates are slightly dispersed around their original values for films with d > 1.5 μm. At higher film thickness, the optical constants exhibit a nonlinear dependence commonly observed in earlier research findings [49]. In Fig 3(b), n and k estimates exactly match with the original profiles throughout, however, in Figs 3(d), 4(b) and 4(d), there exist slight differences between the original and estimated n, k profiles especially in the low-wavelength regime partially including ultraviolet-visible spectral range. To

PLOS ONE

29further inspect this quantitatively, we split the entire wavelength range into two sectors and highlight the estimation performance of the well fitted models as per Tables 3 and 4. • TLO-2 for type A films: For a wavelength range of 350 − 500 nm, the estimation metrics are mEE n = 0.41617, mEE k = 0.98999; and for a wavelength range of 500 − 1000 nm, the estimation metrics are mEE n = 0.83078, mEE k = 0.99870.

30• TLO-4 for type B films: For a wavelength range of 350 − 500 nm, the estimation metrics are mEE n = −0.47954, mEE k = 0.72331; and for a wavelength range of 500 − 1000 nm, the estimation metrics are mEE n = 0.97758, mEE k = 0.95517.

31The above reported results reveal that the fitting error in k(λ) gets amplified into n(λ) as it propagates through the Kramers-Kronig integration. In the low-wavelength regime, mEE n and mEE k deteriorate for perovskite materials, which could be due to the interaction between multiple inter-band optical transitions [50] or film inhomogeneity [4].

32The error metrics reported in Tables 3 and 4 reveal the challenge in achieving a good accuracy of n(λ), k(λ) estimates simultaneously with d. The achieved results justify that the interband transitions for metal-oxide and perovskite materials are well captured by Tauc-Lorentz oscillators. Moreover, the model-based optimization with CMAES can handle measurement uncertainty and extract optical parameters from experimental data, as supported by Table 5 and Fig 7. It is worth noting that a local search algorithm, such as sequential least square Table 5.

33https://doi.org/10.1371/journal.pone.0276555.g006 programming (SLSQP from 'scipy.optimize'), can be applied to the estimates found by an EA to further improve the solution accuracy if needed. Inverse problems involve one-to-many mappings and often they are ill-posed [38,51], therefore, finding exact solutions to such problems is challenging. Further, the difficulty level rises when the inverse solutions are extracted from noisy measurements. The present work demonstrates that the proposed model-based optimization with CMAES does a reasonably good job in extracting accurate inverse solutions. The nature of complex refractive index profiles varies across diverse materials, such as inorganic, organic, and other miscellaneous materials. Thus, the number of oscillator components to be used in an optical ensemble model depends on the type of the concerned material(s), and it is difficult to come up with an universal rule of selecting the same. The current choice is subjective to two types of film materials: metal-oxide and perovskite. To tackle multiple optical transitions in case of MAPbI 3 perovskite films, the number of oscillator components is selected as higher than that of metal-oxides films. In general, our solver application can be extended to a variety of materials by adjusting the number of composition elements in the optical dispersion models. The proposed evolutionary optimization approach does not require any prior learning or memory-based mapping. The successful runs take only about a few minutes to find an inverse solution with an i7-4600M CPU@2.90 GHz processor. The present approach utilizes the spectral data at just one Table 6. Performance comparison between the proposed method and the existing methods based on OptiChar software and CGO algorithm. Here, the estimation error is defined according to the reference [15]. Note that the § error is calculated with reference to the spectral data [15] generated using a plot digitizer [48], while considering 651 points in the wavelength range of 400 − 900 nm. incident angle of light, however, in future, additional spectral information (at multiple incident angles) can be considered to alleviate the effect of uncertainty in the experimental measurements.

Conclusion

34The proposed model-based optimization with covariance matrix adaptation evolution strategy (CMAES) succeeds in extracting the thickness and the optical constants of metal-oxide and perovskite films from spectrophotometric data using tangible parameters. The employed evolutionary algorithm, CMAES, proves to be efficient in finding globally optimal solutions without spending much function evaluations, and it is robust against measurement uncertainties as well. Overall, the proposed method finds accurate thickness estimates and it can estimate complex refractive indices with multiple transitions.

Author Contributions

35Conceptualization: Rajdeep Dutta, Senthilnath Jayavelu.

참고문헌 50건

  1. The CMA Evolution Strategy: A Comparing Review Studies in fuzziness and soft computing · Springer Nature · 2007 10.1007/3-540-32494-1_4
  2. Modified Tauc–Lorentz dispersion model leading to a more accurate representation of absorption features below the bandgap Thin Solid Films · Elsevier BV · 2015 10.1016/j.tsf.2015.07.035
  3. Kramers-Kronig relations in optical materials research 2005
  4. Overview of variable-angle spectroscopic ellipsometry (VASE): II. Advanced applications Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 1999 10.1117/12.351667
  5. Overview of variable-angle spectroscopic ellipsometry (VASE): I. Basic theory and typical applications Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 1999 10.1117/12.351660
  6. Experimental and theoretical optical properties of methylammonium lead halide perovskites Nanoscale · Royal Society of Chemistry · 2015 10.1039/c5nr05435d
  7. Thickness Dependence of Mobility in Pentacene Thin‐Film Transistors Advanced Materials · Wiley · 2005 10.1002/adma.200402077
  8. Thin film thickness measurement: A comparison of various techniques Thin Solid Films · Elsevier BV · 1985 10.1016/0040-6090(85)90273-1
  9. Parameterization of the optical functions of amorphous materials in the interband region Applied Physics Letters · American Institute of Physics · 1996 10.1063/1.118064
  10. A method for calculating the complex refractive index of inhomogeneous thin films Journal of Physics D Applied Physics · Institute of Physics · 2014 10.1088/0022-3727/47/20/205301
  11. Optical dispersion relations for amorphous semiconductors and amorphous dielectrics Physical review. B, Condensed matter · American Physical Society · 1986 10.1103/physrevb.34.7018
  12. Complex Refractive Index Spectra of CH<sub>3</sub>NH<sub>3</sub>PbI<sub>3</sub> Perovskite Thin Films Determined by Spectroscopic Ellipsometry and Spectrophotometry The Journal of Physical Chemistry Letters · American Chemical Society · 2014 10.1021/jz502471h
  13. Optical properties of crystalline semiconductors and dielectrics Physical review. B, Condensed matter · American Physical Society · 1988 10.1103/physrevb.38.1865
  14. The effect of surface roughness on the determination of optical constants of CuInSe2 and CuGaSe2 thin films Journal of Applied Physics · American Institute of Physics · 2013 10.1063/1.4809550
  15. Particle Swarm Optimization with Scale-Free Interactions PLoS ONE · Public Library of Science · 2014 10.1371/journal.pone.0097822
  16. Kramers–Kronig constrained variational analysis of optical spectra Review of Scientific Instruments · American Institute of Physics · 2005 10.1063/1.1979470
  17. Comparison of algorithms used for evaluation of ellipsometric measurements random search, genetic algorithms, simulated annealing and hill climbing graph-searches Surface Science · Elsevier BV · 2000 10.1016/s0039-6028(00)00352-6
  18. Reverse engineering from spectrophotometric measurements: performances and efficiency of different optimization algorithms Applied Physics A · Springer Science+Business Media · 2012 10.1007/s00339-012-6987-2
  19. Measured optical constants of copper from 10 nm to 35 nm Optics Express · Optica Publishing Group · 2009 10.1364/oe.17.023873
  20. Photometric methods for determining the optical constants and the thicknesses of thin absorbing films: selection of a combination of photometric quantities on the basis of error analysis Applied Optics · Optica Publishing Group · 2001 10.1364/ao.40.002675
  21. Estimation of the Optical Constants and the Thickness of Thin Films Using Unconstrained Optimization Journal of Computational Physics · Elsevier BV · 1999 10.1006/jcph.1999.6224
  22. Exploitation of multiple incidences spectrometric measurements for thin film reverse engineering Optics Express · Optica Publishing Group · 2012 10.1364/oe.20.015734
  23. Photometric methods for determining the optical constants and the thicknesses of thin absorbing films: criteria for precise and unambiguous determination of n, k, and d in a wide spectral range Applied Optics · Optica Publishing Group · 2001 10.1364/ao.40.002682
  24. Problem of ambiguity in the determination of optical constants of thin absorbing films from spectroscopic reflectance and transmittance measurements Applied Optics · Optica Publishing Group · 1997 10.1364/ao.36.006364
  25. New UV-Curable High Refractive Index Oligomers Industrial & Engineering Chemistry Research · American Chemical Society · 2008 10.1021/ie071443f
  26. Impacts of invariance in search: When CMA-ES and PSO face ill-conditioned and non-separable problems Applied Soft Computing · Elsevier BV · 2011 10.1016/j.asoc.2011.03.001
  27. Comparison among Several Numerical Integration Methods for Kramers-Kronig Transformation Applied Spectroscopy · SAGE Publishing · 1988 10.1366/0003702884430380
  28. A Statistical Perspective on Ill-Posed Inverse Problems Statistical Science · Institute of Mathematical Statistics · 1986 10.1214/ss/1177013525
  29. Sequential Quadratic Programming Acta Numerica · Cambridge University Press · 1995 10.1017/s0962492900002518
  30. General transfer-matrix method for optical multilayer systems with coherent, partially coherent, and incoherent interference Applied Optics · Optica Publishing Group · 2002 10.1364/ao.41.003978
  31. Levenberg--Marquardt algorithm: implementation and theory 1977
  32. The Levenberg-Marquardt algorithm: Implementation and theory Lecture notes in mathematics · Springer Nature · 1978 10.1007/bfb0067700
  33. Relationship between the Real and Imaginary Parts of the Refractive Index Journal of the Optical Society of America · Optica Publishing Group · 1969 10.1364/josa.59.001000
  34. Optical Properties of Ferroelectric Epitaxial K0.5Na0.5NbO3 Films in Visible to Ultraviolet Range PLoS ONE · Public Library of Science · 2016 10.1371/journal.pone.0153261
  35. Optical Analysis of Planar Multicrystalline Perovskite Solar Cells Advanced Optical Materials · Wiley · 2017 10.1002/adom.201700151
  36. Determination of refractive index and layer thickness of nm-thin films via ellipsometry Optics Express · Optica Publishing Group · 2017 10.1364/oe.25.027077
  37. Exploring optimal topology of thermal cloaks by CMA-ES Applied Physics Letters · American Institute of Physics · 2018 10.1063/1.5016090
  38. Thermostability and weatherability of TiN/TiC-Ni/Mo solar absorption coating by spray method-laser cladding hybrid deposition Optics and Lasers in Engineering · Elsevier BV · 2019 10.1016/j.optlaseng.2019.105983
  39. Integrals Related to the Error Function 2020 10.1201/9780367809232
  40. Determination of complex optical constants and photovoltaic device design of all-inorganic CsPbBr<sub>3</sub> perovskite thin films Optics Express · Optica Publishing Group · 2020 10.1364/oe.392246
  41. Self-driving laboratory for accelerated discovery of thin-film materials Science Advances · American Association for the Advancement of Science · 2020 10.1126/sciadv.aaz8867
  42. Hybrid GA-gradient method for thin films ellipsometric data evaluation Journal of Computational Science · Elsevier BV · 2020 10.1016/j.jocs.2020.101201
  43. Rapid and economic fabrication approach of dielectric reflectors for energy harvesting applications Scientific Reports · Nature Portfolio · 2020 10.1038/s41598-020-73052-w
  44. Non-destructive thickness characterisation of 3D multilayer semiconductor devices using optical spectral measurements and machine learning Light Advanced Manufacturing · Changchun Institute of Optics, Fine Mechanics and Physics, Chinese Academy of Sciences · 2021 10.37188/lam.2021.001
  45. Rapid and Accurate Thin Film Thickness Extraction via UV-Vis and Machine Learning 2020 10.1109/pvsc45281.2020.9300634
  46. Optical interference system for simultaneously measuring refractive index and thickness of slim transparent plate Optics and Lasers in Engineering · Elsevier BV · 2021 10.1016/j.optlaseng.2021.106668
  47. Multi‐Fidelity High‐Throughput Optimization of Electrical Conductivity in P3HT‐CNT Composites Advanced Functional Materials · Wiley · 2021 10.1002/adfm.202102606
  48. Accelerated automated screening of viscous graphene suspensions with various surfactants for optimal electrical conductivity Digital Discovery · Royal Society of Chemistry · 2022 10.1039/d1dd00008j
  49. Determination of optical bandgap energy and optical characteristics of Cd30Se50S20 thin film at various thicknesses Optics & Laser Technology · Elsevier BV · 2021 10.1016/j.optlastec.2021.107770
  50. Non-destructive thickness characterisation of 3D multilayer semiconductor devices using optical spectral measurements and machine learning Light Advanced Manufacturing · Changchun Institute of Optics, Fine Mechanics and Physics, Chinese Academy of Sciences · 2020 10.37188/lam.2020.004