1. Introduction
Spectroscopic ellipsometry (SE), as a non-contact, non-destructive, and pollution-free optical measurement technique, is commonly employed to measure substrates and films. The measurement principle of SE obtains the change in polarization state after the interaction between the light and the sample. Based on that, multiple measurement parameters, e.g., optical constant (refractive index
and extinction coefficient
), thickness, band gap, and surface roughness, can be obtained in one measurement [
1,
2,
3]. SE possesses high precision and accuracy in characterizing the properties of materials. Hence, SE measurement technology has become a powerful tool to obtain optical properties of perovskite solar cells [
4,
5].
SE measurement technology, as an indirect measurement technology, has some limitations. The optical and geometrical properties of the substrate or the film cannot be directly obtained from the measured spectrum. Instead, it requires a complex process of ellipsometry data analysis, involving a parametric optimization procedure. One of the most commonly used algorithms is the linear regression method based on the gradient-based Levenberg–Marquardt (LM) algorithm. However, the LM algorithm is strongly dependent on good initial values of parameters and easily trapped in local optimality. To address the problem, metaheuristic optimization algorithms have been taken into account. Among them, the whale optimization algorithm (WOA) is not only random but also a complex learning process; hence, it does not dependent on good initial values of parameters, compared to the LM algorithm [
6,
7]. When the WOA is applied to ellipsometry data fitting, it can realize global searching and does not depend on the initial parameter values. Therefore, the WOA is applied to determine the thickness and refractive index of SnO
2 films in 400–800 nm (transparent band).
Tin oxide (SnO
2), as a kind of n-type semiconductor, has excellent physics and chemistry properties, such as high direct band gap in the range of (3.6–4.31 eV), high electron mobility (250 cm
2V
−1s
−1), low resistivity (2.8 × 10
−3 Ω cm), natural abundance, non-toxicity, and stable chemical properties [
8,
9]. The extinction coefficient is close to 0 in the visible and infrared regions due to the high transparency (80–90%) of SnO
2 films, and it has absorption in the ultraviolet region [
10]. Due to significant potential application value, SnO
2 material, as the electron transfer layer, has been widely applied in perovskite solar cells [
11], and perovskite materials also have wide spectral absorption (about 300–800 nm).
In this paper, WOA is applied to align generated Psi and Delta data by the established model with experimental data to obtain the thickness and refractive index of SnO2 films, consistently achieving satisfactory results through multiple iterations. The thickness values can be determined in the transparent band of the materials; the data of 400–800 nm is used in the simulation. Simultaneously, the refractive index of the films will be obtained. Based on that, the complexity of fitting can be reduced and the fitting speed sped up. In addition, the refractive index and thickness of SnO2 films on two types of substrates can be analyzed by the LM with a single Tauc–Lorentz oscillator model.
The structure of this paper is as follows.
Section 2 introduces the measurement and fitting principle of spectroscopic ellipsometry. In
Section 3, a data-fitting method based on the WOA is proposed to determine the thickness and refractive index of films. In
Section 4, the main results are derived from the proposed fitting method. Conclusions and future directions are presented in
Section 5.
2. Spectroscopic Ellipsometry Measurement Technology
SE requires a process of measurement, modelling, and fitting to determine the properties of samples. As shown in
Figure 1, based on measuring the polarization state of light, SE is used to measure the polarization change information when polarized light interacts with the sample. Based on that, the ellipsometry parameters (i.e., amplitude ratio Ψ/phase difference Δ) can be obtained. Then, the measured data can be fitted by establishing appropriate structural models and optical models of films. Subsequently, optical properties of samples, such as the thickness, refractive indices, or dielectric constants, will be obtained with high precision and accuracy. Usually, it is essential to understand the properties of film material. The fundamental ellipsometry equation is as follows [
12]:
where
and
are Fresnel reflection coefficients of p-polarized and s-polarized light, respectively.
For an SnO
2 film sample, it consists of three parts, namely the air/SnO
2 film/glass substrate model, as shown in
Figure 2. There are two interfaces for the optical model. One is the air/film interface and the other is the film/substrate interface. Hence, the Fresnel reflection coefficient cab be described as follows:
where
,
.
. Similarly,
and
can be obtained.
and
are reflection coefficients.
is the thickness of the film. The complex refractive index can be described as
, where
is the refractive index and
is the extinction coefficient.
The process of ellipsometry data fitting involves a parametric optimization procedure. It is necessary to use the fitting algorithm to match the data measured (
and
) by SE and the data generated (
and
) by the model in the entire spectral range. The iterative fitting process is usually completed by the nonlinear LM algorithm. However, the LM algorithm is strongly dependent on good initial values of parameters and is easily trapped in local optimality. Herein, the WOA is utilized to fit measured data and model data. It has the ability to search globally and does not depend on the selection of the initial point. The mean square error parameter (MSE) is usually used to evaluate the fitting effect. Additionally, MSE is regarded as the evaluation function in the WOA. The MSE is defined as follows [
13]:
where
is the number of test points and
is the number of all parameters involved in the fitting process.
and
represent measured data, and
and
are theoretically modelled data.
Note that some dispersion models are used to describe the optical properties of the materials during the data fitting process. In this paper, the fused quartz (FQ) substrate and soda-lime (SL) substrate employ a Cauchy model [
14] and Cauchy–Urbach model [
15], respectively. The Cauchy model is obtained from the following equation:
where
is refractive index,
is wavelength, and
,
, and
are the parameters known as the Cauchy coefficients.
The Cauchy–Urbach model adds a second function to describe the absorption tail, with the extinction coefficient as a function of wavelength given by
To obtain the thickness of films, the SnO
2 film layer is modelled with the Tauc–Lorentz model. The fitting procedure of films can be described in three steps. In the first step, the Cauchy model is used to describe the transparent region of films, and can obtain the initial values of thickness. In the second step, the B-spline function is used to fit the whole spectrum curve of films; simultaneously, it satisfies Kramers–Kronig. In the last step, the fitting curve is parameterized by a Tauc–Lorentz model. Based on the above three steps, a better fitting effect and minimization of the MSE can be obtained. The Tauc–Lorentz model has five fitting parameters, namely
,
,
,
, and
, and it can be described as follows [
16]:
where
represents amplitude parameter,
is a broadening parameter,
represents band gap energy,
is peak transition energy, and
is a parameter associated with high frequency.
3. A Data-Fitting Method Based on the WOA
The WOA is a swarm intelligence optimization search method proposed by Mirjalili and Lewis in 2016, and it is inspired by the hunting of humpback whales [
17]. The WOA can realize the purpose of optimal search through the process of whale group search, encircling, hunting, and attacking prey. The WOA is based on meta-heuristics, and the advantages satisfy [
18] the following: (1) the searching process is random and (2) the local optimal solutions can be prevented. Details about the optimization process of the WOA can be found in some studies [
19,
20].
In ellipsometry fitting, the properties of films are unknown and there are two parameters (thickness and refractive index) that need to be determined. In this paper, the WOA is demonstrated for the determination of the thickness and refractive index of SnO2 film on soda-lime (SnO2-SL) and SnO2 film on fused quartz (SnO2-FQ) in the 400–800 nm (transparent band) range. According to Formula (5), the refractive index of films is described using the Cauchy model, where two parameters ( and ) need to be determined, with set to 0. The WOA will explore a three-dimensional space. Firstly, the WOA will initialize the random solution and constantly update the location. Then, it can find the optimal solution by learning, which is the desired parameter for films. The performance of WOA fitting will be determined based on the fitness function, as defined in Formula (4). The fitness function represents the error between the data measured ( and ) by SE and the data calculated ( and ) by the model. A smaller MSE value between the measured and model data indicates a better fitting result. The ( and ) can be obtained, and from Formulas (1)–(3) and (5) the values of and can be determined.
The framework of the data-fitting method is based on the WOA method, as shown in
Figure 3, comprising four distinct parts. Based on that, the desired parameters of films can be obtained. It is worth noting that some parameters of the proposed method must be set. Herein, the maximum number of iterations is set to 60, and the number of individuals is set to 30.
Four steps of the WOA for ellipsometry data fitting are given as follows:
Step 1: The films are measured by SE to obtain ellipsometry parameter curve data ( and ).
Step 2: The models of films are built to obtain parameter curve data ( and ) of samples.
Step 3: The WOA is used to fit the parameter curve data measured ( and ) and the model’s parameter curve data built ( and ).
Step 4: The thickness and refractive index of the films can be obtained when the value of MSE is relatively small.
4. Experimental and Results
In this section, experiments are performed based on SnO2 films. To verify the effectiveness of the data-fitting method based on the WOA for ellipsometry data, the thickness and refractive index of SnO2 films are determined with the transparent wavelength coverage (400–800 nm). During data fitting, the optical model of the samples is considered to be an air/SnO2 film/glass substrate model.
- (1)
Fabrication of films
Two kinds of SL and FQ glasses are selected as the substrates, with a size of 20 × 0 mm. The thickness of the SL and FQ substrates is about 0.7 mm and 1 mm, respectively. Also, the two substrates are transparent in the visible spectrum, which is conducive to the analysis of SE. One side of the substrates is polished, and the other side is roughened to avoid backside reflections in ellipsometry measurement. It is well known that the cleanliness of the substrate can affect the performance of the film. Firstly, the substrates are washed ultrasonically for 15 min. After that, the substrates are washed with detergent, deionized water, acetone, ethyl alcohol, and isopropanol for 30 min, and then blow-dried. Finally, the substrates are cleaned with ultraviolet ozone (UVO) for 30 min. SnO2 colloidal dispersion (15 wt% in H2O) was purchased from Alfa Aesar. SnO2 colloidal solution is diluted by deionized water to SnO2 nanocrystal solution. The SnO2 nanocrystal solution is obtained by diluting the SnO2 colloidal solution with deionized water (v/v = 1:2). The SnO2 nanocrystal solution is spin-coated on SL and FQ substrates with 4000 rpm for 30 s, and then the films are annealed on a hotplate at 150 °C for 15 min.
X-ray photoelectron spectroscopy (XPS) is used to analyze the elemental composition of the films.
Figure 4a,b indicate the XPS survey spectra of both FQ-SnO
2 and SL-SnO
2 films, which can clearly show the peaks of Sn element, O element, and C element in all SnO
2 films.
Figure 4c,d show the detailed XPS spectra of Sn3d and O1s. The detailed XPS spectra of Sn3d include Sn3d
5/2 and Sn3d
3/2, and they are found at around 486.5 eV and 494.9 eV, which is very close to the binding energy in the literature [
21]. The detailed XPS spectra of O1s are found at around 530.4 eV and 532.0 eV, and are consistent with the article [
22]. Based on that, it is indicated that SnO
2 films have been successfully prepared.
When the SnO
2 films have been prepared, the surface morphology of the films is studied using the 3D profilometer (Zygo).
Figure 5a,b show the Zygo results of two samples. The surface roughness Sa for nine areas of the films is measured using Zygo. The average values of surface roughness Sa of the SL-SnO
2 and the FQ-SnO
2 are 2.06 nm and 1.03 nm, respectively, which indicates that films have an extremely smooth surface. Based on that, the roughness of the SnO
2 film may be neglected in ellipsometry fitting processing.
Due to the fact that the roughness of SnO
2 films measured by Zygo is relatively small, it may be ignored in the fitting process of ellipsometry. So, to further explore the effect of surface roughness on the optical properties of SnO
2 films, the relationship between the thickness of the rough layer and the ellipsometry curves (Psi and Delta) is simulated. Assuming that the optical constants of two glass substrates are unchanged, the surface roughness of the films is set as 0 nm, 1 nm, 2 nm, and 3 nm, respectively. As shown in
Figure 6a,b, it can be clearly observed that the Psi curves and Delta curves hardly change when the values of the rough layer change. In addition, the Delta curve has a slight change compared to the Psi curve. Usually, Psi is related to the optical constant of the film, and Delta is usually related to the thickness of the film. Therefore, the result shows that the film’s optical constant cannot change. In the follow-up ellipsometry fitting, a surface roughness layer of SnO
2 is not taken into consideration for the optical model. On the other hand, it can also avoid introducing too many parameters into the fitting process, which could lead to parameter coupling and negatively affect the SE analysis results.
The thicknesses of SnO
2-FQ and SnO
2-SL films are determined using the LM, and the measurements are performed at light incidence angles of 55°, 60°, and 65°. The SnO
2 films are modelled using the Tauc–Lorentz model. As shown in
Figure 7a–d, the measured ellipsometry spectra curves (
and
) and model curves (
and
) agree well over the entire spectral range with smaller values of MSE. Subsequently, the thickness of the films is obtained. The thickness and MSE of SnO
2-SL are found to be 36.90 nm and 2.015, respectively, while the thickness and MSE of SnO
2-FQ are 33.94 nm and 1.275, respectively.
- (2)
Validation of the WOA for ellipsometry data fitting
The Cauchy model and the Cauchy–Urbach model are utilized to characterize the optical properties of the FQ substrate and SL substrate, respectively. The optical constants of the two substrates are determined, and their parameters remain fixed during the fitting process. To verify the suitability of the WOA, the same SnO2 films are subjected to ellipsometry measurements and LM fitting. The obtained values of thickness and refractive index of prepared SnO2 films are compared with the corresponding results obtained using LM fitting on the same SnO2 films.
Firstly, the WOA is applied to determine the thickness and refractive index of SnO
2-FQ.
Figure 8a,b illustrate the experimentally measured ellipsometry parameters (
and
) using SE and their corresponding fitted ellipsometry parameters (
and
) derived from the model. Here, the symbols of
and
represent Psi curves and Delta curves, respectively. The model data (blue dotted line) are generated using a single Cauchy model applied to the film, while the experimentally measured data (red line) are obtained through SE. The comparison between the two curves indicates a significantly better fitting result. The experimental curve exactly overrides the fitted curve. Based on this, parameters
and
of the Cauchy model are determined, with
set to 0. Further, the refractive index and thickness of the films can be determined. As illustrated in
Figure 8c, the refractive index curve (green dotted line) of the SnO
2 film is obtained using the WOA. For the same sample, the corresponding refractive index curve (red dotted line) derived from LM is also shown in
Figure 8c. It is clear from the figure that both curves demonstrate a consistent overall trend. These results prove the potentiality of the present approach.
Figure 8d presents the convergence curve based on the WOA, showing that the best particle approaches a smaller fitness value after 12 iterations. The thickness of the SnO
2-FQ obtained by the WOA is found to be 34.52 nm.
Similarly, the WOA is applied to SnO
2-SL to determine the thickness and refractive index of SnO
2 films. As shown in
Figure 9a,b, it is clearly shown that the measurement ellipsometry curves’ data (
and
) fit very well with the corresponding curves generated by the model (
and
). The experimental parameter curve exactly overrides the fitted curve. Based on that, to verify the suitability of the WOA, the same SnO
2 film is subjected to LM fitting. In
Figure 9c, the refractive index curve (green dotted line) of SnO
2-SL is obtained using the WOA. The corresponding refractive index curve (red dotted line) derived from LM is also presented, demonstrating a consistent overall trend across the entire wavelength range. Hence, the WOA can successfully obtain the refractive index of the SnO
2 film.
Figure 9d is the convergence curve of the fitness function based on the WOA, and the best particle is near the smaller fitness value after nine iterations. The thickness of SnO
2-SL obtained by the WOA is found to be 36.66 nm.
The thickness values of two samples obtained by the WOA and LM algorithm are compared, as listed in
Table 1. The thickness of films obtained by the WOA and LM remains consistent. Hence, as a search algorithm, the WOA can effectively obtain the thickness and refractive index of SnO
2 (transparent band). These results prove the potentiality of the present approach, and they are still very much within the acceptable range for most optical applications. On the other hand, the thickness and refractive index of samples from the WOA can serve as initial values for the LM algorithm, potentially reducing the number of iterations and enhancing the speed of ellipsometry analysis. The algorithm can be successfully applied to obtain a variety of results for the thickness and refractive index of transparent films.